1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for pet 0.11.5. 4# 5# Report bugs to <isl-development@googlegroups.com>. 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: isl-development@googlegroups.com about your system, 279$0: including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='pet' 592PACKAGE_TARNAME='pet' 593PACKAGE_VERSION='0.11.5' 594PACKAGE_STRING='pet 0.11.5' 595PACKAGE_BUGREPORT='isl-development@googlegroups.com' 596PACKAGE_URL='' 597 598# Factoring default headers for most tests. 599ac_includes_default="\ 600#include <stdio.h> 601#ifdef HAVE_SYS_TYPES_H 602# include <sys/types.h> 603#endif 604#ifdef HAVE_SYS_STAT_H 605# include <sys/stat.h> 606#endif 607#ifdef STDC_HEADERS 608# include <stdlib.h> 609# include <stddef.h> 610#else 611# ifdef HAVE_STDLIB_H 612# include <stdlib.h> 613# endif 614#endif 615#ifdef HAVE_STRING_H 616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617# include <memory.h> 618# endif 619# include <string.h> 620#endif 621#ifdef HAVE_STRINGS_H 622# include <strings.h> 623#endif 624#ifdef HAVE_INTTYPES_H 625# include <inttypes.h> 626#endif 627#ifdef HAVE_STDINT_H 628# include <stdint.h> 629#endif 630#ifdef HAVE_UNISTD_H 631# include <unistd.h> 632#endif" 633 634enable_option_checking=no 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639subdirs 640CONFIG_STATUS_DEPENDENCIES 641GIT_HEAD_VERSION 642GIT_HEAD 643GIT_HEAD_ID 644pkgconfig_libfile 645pkgconfig_libdir 646extra_tests 647extra_noinst_programs 648extra_bin_programs 649LIBYAML_LDFLAGS 650LIBYAML_CPPFLAGS 651HAVE_ISL_BUILDDIR_FALSE 652HAVE_ISL_BUILDDIR_TRUE 653PKG_CONFIG_LIBDIR 654PKG_CONFIG_PATH 655PKG_CONFIG 656ISL_BUILDDIR 657ISL_SRCDIR 658ISL_LIBS 659ISL_CFLAGS 660BUNDLED_ISL_FALSE 661BUNDLED_ISL_TRUE 662LLVM_CONFIG 663CLANG_RFLAG 664CLANG_LIBS 665CLANG_LDFLAGS 666CLANG_CXXFLAGS 667CXXCPP 668CPP 669LT_SYS_LIBRARY_PATH 670OTOOL64 671OTOOL 672LIPO 673NMEDIT 674DSYMUTIL 675MANIFEST_TOOL 676RANLIB 677ac_ct_AR 678AR 679DLLTOOL 680OBJDUMP 681LN_S 682NM 683ac_ct_DUMPBIN 684DUMPBIN 685LD 686FGREP 687EGREP 688SED 689host_os 690host_vendor 691host_cpu 692host 693build_os 694build_vendor 695build_cpu 696build 697LIBTOOL 698GREP 699am__fastdepCXX_FALSE 700am__fastdepCXX_TRUE 701CXXDEPMODE 702ac_ct_CXX 703CXXFLAGS 704CXX 705am__fastdepCC_FALSE 706am__fastdepCC_TRUE 707CCDEPMODE 708am__nodep 709AMDEPBACKSLASH 710AMDEP_FALSE 711AMDEP_TRUE 712am__include 713DEPDIR 714OBJEXT 715EXEEXT 716ac_ct_CC 717CPPFLAGS 718LDFLAGS 719CFLAGS 720CC 721versioninfo 722AM_BACKSLASH 723AM_DEFAULT_VERBOSITY 724AM_DEFAULT_V 725AM_V 726am__untar 727am__tar 728AMTAR 729am__leading_dot 730SET_MAKE 731AWK 732mkdir_p 733MKDIR_P 734INSTALL_STRIP_PROGRAM 735STRIP 736install_sh 737MAKEINFO 738AUTOHEADER 739AUTOMAKE 740AUTOCONF 741ACLOCAL 742VERSION 743PACKAGE 744CYGPATH_W 745am__isrc 746INSTALL_DATA 747INSTALL_SCRIPT 748INSTALL_PROGRAM 749target_alias 750host_alias 751build_alias 752LIBS 753ECHO_T 754ECHO_N 755ECHO_C 756DEFS 757mandir 758localedir 759libdir 760psdir 761pdfdir 762dvidir 763htmldir 764infodir 765docdir 766oldincludedir 767includedir 768runstatedir 769localstatedir 770sharedstatedir 771sysconfdir 772datadir 773datarootdir 774libexecdir 775sbindir 776bindir 777program_transform_name 778prefix 779exec_prefix 780PACKAGE_URL 781PACKAGE_BUGREPORT 782PACKAGE_STRING 783PACKAGE_VERSION 784PACKAGE_TARNAME 785PACKAGE_NAME 786PATH_SEPARATOR 787SHELL 788am__quote' 789ac_subst_files='' 790ac_user_opts=' 791enable_option_checking 792enable_silent_rules 793enable_dependency_tracking 794enable_shared 795enable_static 796with_pic 797enable_fast_install 798with_aix_soname 799with_gnu_ld 800with_sysroot 801enable_libtool_lock 802with_clang_prefix 803with_clang_exec_prefix 804with_isl 805with_isl_prefix 806with_isl_exec_prefix 807with_isl_builddir 808with_libyaml 809with_libyaml_prefix 810with_libyaml_exec_prefix 811' 812 ac_precious_vars='build_alias 813host_alias 814target_alias 815CC 816CFLAGS 817LDFLAGS 818LIBS 819CPPFLAGS 820CXX 821CXXFLAGS 822CCC 823LT_SYS_LIBRARY_PATH 824CPP 825CXXCPP 826PKG_CONFIG 827PKG_CONFIG_PATH 828PKG_CONFIG_LIBDIR 829ISL_CFLAGS 830ISL_LIBS' 831ac_subdirs_all='isl' 832 833# Initialize some variables set by options. 834ac_init_help= 835ac_init_version=false 836ac_unrecognized_opts= 837ac_unrecognized_sep= 838# The variables have the same names as the options, with 839# dashes changed to underlines. 840cache_file=/dev/null 841exec_prefix=NONE 842no_create= 843no_recursion= 844prefix=NONE 845program_prefix=NONE 846program_suffix=NONE 847program_transform_name=s,x,x, 848silent= 849site= 850srcdir= 851verbose= 852x_includes=NONE 853x_libraries=NONE 854 855# Installation directory options. 856# These are left unexpanded so users can "make install exec_prefix=/foo" 857# and all the variables that are supposed to be based on exec_prefix 858# by default will actually change. 859# Use braces instead of parens because sh, perl, etc. also accept them. 860# (The list follows the same order as the GNU Coding Standards.) 861bindir='${exec_prefix}/bin' 862sbindir='${exec_prefix}/sbin' 863libexecdir='${exec_prefix}/libexec' 864datarootdir='${prefix}/share' 865datadir='${datarootdir}' 866sysconfdir='${prefix}/etc' 867sharedstatedir='${prefix}/com' 868localstatedir='${prefix}/var' 869runstatedir='${localstatedir}/run' 870includedir='${prefix}/include' 871oldincludedir='/usr/include' 872docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 873infodir='${datarootdir}/info' 874htmldir='${docdir}' 875dvidir='${docdir}' 876pdfdir='${docdir}' 877psdir='${docdir}' 878libdir='${exec_prefix}/lib' 879localedir='${datarootdir}/locale' 880mandir='${datarootdir}/man' 881 882ac_prev= 883ac_dashdash= 884for ac_option 885do 886 # If the previous option needs an argument, assign it. 887 if test -n "$ac_prev"; then 888 eval $ac_prev=\$ac_option 889 ac_prev= 890 continue 891 fi 892 893 case $ac_option in 894 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 895 *=) ac_optarg= ;; 896 *) ac_optarg=yes ;; 897 esac 898 899 # Accept the important Cygnus configure options, so we can diagnose typos. 900 901 case $ac_dashdash$ac_option in 902 --) 903 ac_dashdash=yes ;; 904 905 -bindir | --bindir | --bindi | --bind | --bin | --bi) 906 ac_prev=bindir ;; 907 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 908 bindir=$ac_optarg ;; 909 910 -build | --build | --buil | --bui | --bu) 911 ac_prev=build_alias ;; 912 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 913 build_alias=$ac_optarg ;; 914 915 -cache-file | --cache-file | --cache-fil | --cache-fi \ 916 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 917 ac_prev=cache_file ;; 918 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 919 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 920 cache_file=$ac_optarg ;; 921 922 --config-cache | -C) 923 cache_file=config.cache ;; 924 925 -datadir | --datadir | --datadi | --datad) 926 ac_prev=datadir ;; 927 -datadir=* | --datadir=* | --datadi=* | --datad=*) 928 datadir=$ac_optarg ;; 929 930 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 931 | --dataroo | --dataro | --datar) 932 ac_prev=datarootdir ;; 933 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 934 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 935 datarootdir=$ac_optarg ;; 936 937 -disable-* | --disable-*) 938 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 939 # Reject names that are not valid shell variable names. 940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 941 as_fn_error $? "invalid feature name: $ac_useropt" 942 ac_useropt_orig=$ac_useropt 943 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 944 case $ac_user_opts in 945 *" 946"enable_$ac_useropt" 947"*) ;; 948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 949 ac_unrecognized_sep=', ';; 950 esac 951 eval enable_$ac_useropt=no ;; 952 953 -docdir | --docdir | --docdi | --doc | --do) 954 ac_prev=docdir ;; 955 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 956 docdir=$ac_optarg ;; 957 958 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 959 ac_prev=dvidir ;; 960 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 961 dvidir=$ac_optarg ;; 962 963 -enable-* | --enable-*) 964 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 965 # Reject names that are not valid shell variable names. 966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 967 as_fn_error $? "invalid feature name: $ac_useropt" 968 ac_useropt_orig=$ac_useropt 969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 970 case $ac_user_opts in 971 *" 972"enable_$ac_useropt" 973"*) ;; 974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 975 ac_unrecognized_sep=', ';; 976 esac 977 eval enable_$ac_useropt=\$ac_optarg ;; 978 979 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 980 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 981 | --exec | --exe | --ex) 982 ac_prev=exec_prefix ;; 983 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 984 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 985 | --exec=* | --exe=* | --ex=*) 986 exec_prefix=$ac_optarg ;; 987 988 -gas | --gas | --ga | --g) 989 # Obsolete; use --with-gas. 990 with_gas=yes ;; 991 992 -help | --help | --hel | --he | -h) 993 ac_init_help=long ;; 994 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 995 ac_init_help=recursive ;; 996 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 997 ac_init_help=short ;; 998 999 -host | --host | --hos | --ho) 1000 ac_prev=host_alias ;; 1001 -host=* | --host=* | --hos=* | --ho=*) 1002 host_alias=$ac_optarg ;; 1003 1004 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1005 ac_prev=htmldir ;; 1006 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1007 | --ht=*) 1008 htmldir=$ac_optarg ;; 1009 1010 -includedir | --includedir | --includedi | --included | --include \ 1011 | --includ | --inclu | --incl | --inc) 1012 ac_prev=includedir ;; 1013 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1014 | --includ=* | --inclu=* | --incl=* | --inc=*) 1015 includedir=$ac_optarg ;; 1016 1017 -infodir | --infodir | --infodi | --infod | --info | --inf) 1018 ac_prev=infodir ;; 1019 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1020 infodir=$ac_optarg ;; 1021 1022 -libdir | --libdir | --libdi | --libd) 1023 ac_prev=libdir ;; 1024 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1025 libdir=$ac_optarg ;; 1026 1027 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1028 | --libexe | --libex | --libe) 1029 ac_prev=libexecdir ;; 1030 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1031 | --libexe=* | --libex=* | --libe=*) 1032 libexecdir=$ac_optarg ;; 1033 1034 -localedir | --localedir | --localedi | --localed | --locale) 1035 ac_prev=localedir ;; 1036 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1037 localedir=$ac_optarg ;; 1038 1039 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1040 | --localstate | --localstat | --localsta | --localst | --locals) 1041 ac_prev=localstatedir ;; 1042 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1043 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1044 localstatedir=$ac_optarg ;; 1045 1046 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1047 ac_prev=mandir ;; 1048 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1049 mandir=$ac_optarg ;; 1050 1051 -nfp | --nfp | --nf) 1052 # Obsolete; use --without-fp. 1053 with_fp=no ;; 1054 1055 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1056 | --no-cr | --no-c | -n) 1057 no_create=yes ;; 1058 1059 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1060 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1061 no_recursion=yes ;; 1062 1063 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1064 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1065 | --oldin | --oldi | --old | --ol | --o) 1066 ac_prev=oldincludedir ;; 1067 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1068 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1069 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1070 oldincludedir=$ac_optarg ;; 1071 1072 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1073 ac_prev=prefix ;; 1074 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1075 prefix=$ac_optarg ;; 1076 1077 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1078 | --program-pre | --program-pr | --program-p) 1079 ac_prev=program_prefix ;; 1080 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1081 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1082 program_prefix=$ac_optarg ;; 1083 1084 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1085 | --program-suf | --program-su | --program-s) 1086 ac_prev=program_suffix ;; 1087 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1088 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1089 program_suffix=$ac_optarg ;; 1090 1091 -program-transform-name | --program-transform-name \ 1092 | --program-transform-nam | --program-transform-na \ 1093 | --program-transform-n | --program-transform- \ 1094 | --program-transform | --program-transfor \ 1095 | --program-transfo | --program-transf \ 1096 | --program-trans | --program-tran \ 1097 | --progr-tra | --program-tr | --program-t) 1098 ac_prev=program_transform_name ;; 1099 -program-transform-name=* | --program-transform-name=* \ 1100 | --program-transform-nam=* | --program-transform-na=* \ 1101 | --program-transform-n=* | --program-transform-=* \ 1102 | --program-transform=* | --program-transfor=* \ 1103 | --program-transfo=* | --program-transf=* \ 1104 | --program-trans=* | --program-tran=* \ 1105 | --progr-tra=* | --program-tr=* | --program-t=*) 1106 program_transform_name=$ac_optarg ;; 1107 1108 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1109 ac_prev=pdfdir ;; 1110 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1111 pdfdir=$ac_optarg ;; 1112 1113 -psdir | --psdir | --psdi | --psd | --ps) 1114 ac_prev=psdir ;; 1115 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1116 psdir=$ac_optarg ;; 1117 1118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1119 | -silent | --silent | --silen | --sile | --sil) 1120 silent=yes ;; 1121 1122 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1123 | --runstate | --runstat | --runsta | --runst | --runs \ 1124 | --run | --ru | --r) 1125 ac_prev=runstatedir ;; 1126 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1127 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1128 | --run=* | --ru=* | --r=*) 1129 runstatedir=$ac_optarg ;; 1130 1131 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1132 ac_prev=sbindir ;; 1133 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1134 | --sbi=* | --sb=*) 1135 sbindir=$ac_optarg ;; 1136 1137 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1138 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1139 | --sharedst | --shareds | --shared | --share | --shar \ 1140 | --sha | --sh) 1141 ac_prev=sharedstatedir ;; 1142 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1143 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1144 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1145 | --sha=* | --sh=*) 1146 sharedstatedir=$ac_optarg ;; 1147 1148 -site | --site | --sit) 1149 ac_prev=site ;; 1150 -site=* | --site=* | --sit=*) 1151 site=$ac_optarg ;; 1152 1153 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1154 ac_prev=srcdir ;; 1155 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1156 srcdir=$ac_optarg ;; 1157 1158 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1159 | --syscon | --sysco | --sysc | --sys | --sy) 1160 ac_prev=sysconfdir ;; 1161 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1162 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1163 sysconfdir=$ac_optarg ;; 1164 1165 -target | --target | --targe | --targ | --tar | --ta | --t) 1166 ac_prev=target_alias ;; 1167 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1168 target_alias=$ac_optarg ;; 1169 1170 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1171 verbose=yes ;; 1172 1173 -version | --version | --versio | --versi | --vers | -V) 1174 ac_init_version=: ;; 1175 1176 -with-* | --with-*) 1177 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1178 # Reject names that are not valid shell variable names. 1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1180 as_fn_error $? "invalid package name: $ac_useropt" 1181 ac_useropt_orig=$ac_useropt 1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1183 case $ac_user_opts in 1184 *" 1185"with_$ac_useropt" 1186"*) ;; 1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1188 ac_unrecognized_sep=', ';; 1189 esac 1190 eval with_$ac_useropt=\$ac_optarg ;; 1191 1192 -without-* | --without-*) 1193 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1194 # Reject names that are not valid shell variable names. 1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1196 as_fn_error $? "invalid package name: $ac_useropt" 1197 ac_useropt_orig=$ac_useropt 1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1199 case $ac_user_opts in 1200 *" 1201"with_$ac_useropt" 1202"*) ;; 1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1204 ac_unrecognized_sep=', ';; 1205 esac 1206 eval with_$ac_useropt=no ;; 1207 1208 --x) 1209 # Obsolete; use --with-x. 1210 with_x=yes ;; 1211 1212 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1213 | --x-incl | --x-inc | --x-in | --x-i) 1214 ac_prev=x_includes ;; 1215 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1216 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1217 x_includes=$ac_optarg ;; 1218 1219 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1220 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1221 ac_prev=x_libraries ;; 1222 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1223 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1224 x_libraries=$ac_optarg ;; 1225 1226 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1227Try \`$0 --help' for more information" 1228 ;; 1229 1230 *=*) 1231 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1232 # Reject names that are not valid shell variable names. 1233 case $ac_envvar in #( 1234 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1235 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1236 esac 1237 eval $ac_envvar=\$ac_optarg 1238 export $ac_envvar ;; 1239 1240 *) 1241 # FIXME: should be removed in autoconf 3.0. 1242 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1243 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1244 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1245 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1246 ;; 1247 1248 esac 1249done 1250 1251if test -n "$ac_prev"; then 1252 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1253 as_fn_error $? "missing argument to $ac_option" 1254fi 1255 1256if test -n "$ac_unrecognized_opts"; then 1257 case $enable_option_checking in 1258 no) ;; 1259 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1260 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1261 esac 1262fi 1263 1264# Check all directory arguments for consistency. 1265for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1266 datadir sysconfdir sharedstatedir localstatedir includedir \ 1267 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1268 libdir localedir mandir runstatedir 1269do 1270 eval ac_val=\$$ac_var 1271 # Remove trailing slashes. 1272 case $ac_val in 1273 */ ) 1274 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1275 eval $ac_var=\$ac_val;; 1276 esac 1277 # Be sure to have absolute directory names. 1278 case $ac_val in 1279 [\\/$]* | ?:[\\/]* ) continue;; 1280 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1281 esac 1282 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1283done 1284 1285# There might be people who depend on the old broken behavior: `$host' 1286# used to hold the argument of --host etc. 1287# FIXME: To remove some day. 1288build=$build_alias 1289host=$host_alias 1290target=$target_alias 1291 1292# FIXME: To remove some day. 1293if test "x$host_alias" != x; then 1294 if test "x$build_alias" = x; then 1295 cross_compiling=maybe 1296 elif test "x$build_alias" != "x$host_alias"; then 1297 cross_compiling=yes 1298 fi 1299fi 1300 1301ac_tool_prefix= 1302test -n "$host_alias" && ac_tool_prefix=$host_alias- 1303 1304test "$silent" = yes && exec 6>/dev/null 1305 1306 1307ac_pwd=`pwd` && test -n "$ac_pwd" && 1308ac_ls_di=`ls -di .` && 1309ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1310 as_fn_error $? "working directory cannot be determined" 1311test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1312 as_fn_error $? "pwd does not report name of working directory" 1313 1314 1315# Find the source files, if location was not specified. 1316if test -z "$srcdir"; then 1317 ac_srcdir_defaulted=yes 1318 # Try the directory containing this script, then the parent directory. 1319 ac_confdir=`$as_dirname -- "$as_myself" || 1320$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1321 X"$as_myself" : 'X\(//\)[^/]' \| \ 1322 X"$as_myself" : 'X\(//\)$' \| \ 1323 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1324$as_echo X"$as_myself" | 1325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1326 s//\1/ 1327 q 1328 } 1329 /^X\(\/\/\)[^/].*/{ 1330 s//\1/ 1331 q 1332 } 1333 /^X\(\/\/\)$/{ 1334 s//\1/ 1335 q 1336 } 1337 /^X\(\/\).*/{ 1338 s//\1/ 1339 q 1340 } 1341 s/.*/./; q'` 1342 srcdir=$ac_confdir 1343 if test ! -r "$srcdir/$ac_unique_file"; then 1344 srcdir=.. 1345 fi 1346else 1347 ac_srcdir_defaulted=no 1348fi 1349if test ! -r "$srcdir/$ac_unique_file"; then 1350 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1351 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1352fi 1353ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1354ac_abs_confdir=`( 1355 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1356 pwd)` 1357# When building in place, set srcdir=. 1358if test "$ac_abs_confdir" = "$ac_pwd"; then 1359 srcdir=. 1360fi 1361# Remove unnecessary trailing slashes from srcdir. 1362# Double slashes in file names in object file debugging info 1363# mess up M-x gdb in Emacs. 1364case $srcdir in 1365*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1366esac 1367for ac_var in $ac_precious_vars; do 1368 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1369 eval ac_env_${ac_var}_value=\$${ac_var} 1370 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1371 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1372done 1373 1374# 1375# Report the --help message. 1376# 1377if test "$ac_init_help" = "long"; then 1378 # Omit some internal or obsolete options to make the list less imposing. 1379 # This message is too long to be a string in the A/UX 3.1 sh. 1380 cat <<_ACEOF 1381\`configure' configures pet 0.11.5 to adapt to many kinds of systems. 1382 1383Usage: $0 [OPTION]... [VAR=VALUE]... 1384 1385To assign environment variables (e.g., CC, CFLAGS...), specify them as 1386VAR=VALUE. See below for descriptions of some of the useful variables. 1387 1388Defaults for the options are specified in brackets. 1389 1390Configuration: 1391 -h, --help display this help and exit 1392 --help=short display options specific to this package 1393 --help=recursive display the short help of all the included packages 1394 -V, --version display version information and exit 1395 -q, --quiet, --silent do not print \`checking ...' messages 1396 --cache-file=FILE cache test results in FILE [disabled] 1397 -C, --config-cache alias for \`--cache-file=config.cache' 1398 -n, --no-create do not create output files 1399 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1400 1401Installation directories: 1402 --prefix=PREFIX install architecture-independent files in PREFIX 1403 [$ac_default_prefix] 1404 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1405 [PREFIX] 1406 1407By default, \`make install' will install all the files in 1408\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1409an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1410for instance \`--prefix=\$HOME'. 1411 1412For better control, use the options below. 1413 1414Fine tuning of the installation directories: 1415 --bindir=DIR user executables [EPREFIX/bin] 1416 --sbindir=DIR system admin executables [EPREFIX/sbin] 1417 --libexecdir=DIR program executables [EPREFIX/libexec] 1418 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1419 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1420 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1421 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1422 --libdir=DIR object code libraries [EPREFIX/lib] 1423 --includedir=DIR C header files [PREFIX/include] 1424 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1425 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1426 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1427 --infodir=DIR info documentation [DATAROOTDIR/info] 1428 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1429 --mandir=DIR man documentation [DATAROOTDIR/man] 1430 --docdir=DIR documentation root [DATAROOTDIR/doc/pet] 1431 --htmldir=DIR html documentation [DOCDIR] 1432 --dvidir=DIR dvi documentation [DOCDIR] 1433 --pdfdir=DIR pdf documentation [DOCDIR] 1434 --psdir=DIR ps documentation [DOCDIR] 1435_ACEOF 1436 1437 cat <<\_ACEOF 1438 1439Program names: 1440 --program-prefix=PREFIX prepend PREFIX to installed program names 1441 --program-suffix=SUFFIX append SUFFIX to installed program names 1442 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1443 1444System types: 1445 --build=BUILD configure for building on BUILD [guessed] 1446 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1447_ACEOF 1448fi 1449 1450if test -n "$ac_init_help"; then 1451 case $ac_init_help in 1452 short | recursive ) echo "Configuration of pet 0.11.5:";; 1453 esac 1454 cat <<\_ACEOF 1455 1456Optional Features: 1457 --disable-option-checking ignore unrecognized --enable/--with options 1458 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1459 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1460 --enable-silent-rules less verbose build output (undo: "make V=1") 1461 --disable-silent-rules verbose build output (undo: "make V=0") 1462 --enable-dependency-tracking 1463 do not reject slow dependency extractors 1464 --disable-dependency-tracking 1465 speeds up one-time build 1466 --enable-shared[=PKGS] build shared libraries [default=yes] 1467 --enable-static[=PKGS] build static libraries [default=yes] 1468 --enable-fast-install[=PKGS] 1469 optimize for fast installation [default=yes] 1470 --disable-libtool-lock avoid locking (might break parallel builds) 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-clang-prefix=DIR Prefix of clang installation 1484 --with-clang-exec-prefix=DIR 1485 Exec prefix of clang installation 1486 --with-isl=build|bundled|system 1487 Which isl to use [default=bundled] 1488 --with-isl-prefix=DIR Prefix of isl installation 1489 --with-isl-exec-prefix=DIR 1490 Exec prefix of isl installation 1491 --with-isl-builddir=DIR Location of isl builddir 1492 --with-libyaml=system|no 1493 Which libyaml to use [default=system] 1494 --with-libyaml-prefix=DIR 1495 Prefix of libyaml installation 1496 --with-libyaml-exec-prefix=DIR 1497 Exec prefix of libyaml installation 1498 1499Some influential environment variables: 1500 CC C compiler command 1501 CFLAGS C compiler flags 1502 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1503 nonstandard directory <lib dir> 1504 LIBS libraries to pass to the linker, e.g. -l<library> 1505 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1506 you have headers in a nonstandard directory <include dir> 1507 CXX C++ compiler command 1508 CXXFLAGS C++ compiler flags 1509 LT_SYS_LIBRARY_PATH 1510 User-defined run-time library search path. 1511 CPP C preprocessor 1512 CXXCPP C++ preprocessor 1513 PKG_CONFIG path to pkg-config utility 1514 PKG_CONFIG_PATH 1515 directories to add to pkg-config's search path 1516 PKG_CONFIG_LIBDIR 1517 path overriding pkg-config's built-in search path 1518 ISL_CFLAGS C compiler flags for ISL, overriding pkg-config 1519 ISL_LIBS linker flags for ISL, overriding pkg-config 1520 1521Use these variables to override the choices made by `configure' or to help 1522it to find libraries and programs with nonstandard names/locations. 1523 1524Report bugs to <isl-development@googlegroups.com>. 1525_ACEOF 1526ac_status=$? 1527fi 1528 1529if test "$ac_init_help" = "recursive"; then 1530 # If there are subdirs, report their specific --help. 1531 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1532 test -d "$ac_dir" || 1533 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1534 continue 1535 ac_builddir=. 1536 1537case "$ac_dir" in 1538.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1539*) 1540 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1541 # A ".." for each directory in $ac_dir_suffix. 1542 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1543 case $ac_top_builddir_sub in 1544 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1545 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1546 esac ;; 1547esac 1548ac_abs_top_builddir=$ac_pwd 1549ac_abs_builddir=$ac_pwd$ac_dir_suffix 1550# for backward compatibility: 1551ac_top_builddir=$ac_top_build_prefix 1552 1553case $srcdir in 1554 .) # We are building in place. 1555 ac_srcdir=. 1556 ac_top_srcdir=$ac_top_builddir_sub 1557 ac_abs_top_srcdir=$ac_pwd ;; 1558 [\\/]* | ?:[\\/]* ) # Absolute name. 1559 ac_srcdir=$srcdir$ac_dir_suffix; 1560 ac_top_srcdir=$srcdir 1561 ac_abs_top_srcdir=$srcdir ;; 1562 *) # Relative name. 1563 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1564 ac_top_srcdir=$ac_top_build_prefix$srcdir 1565 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1566esac 1567ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1568 1569 cd "$ac_dir" || { ac_status=$?; continue; } 1570 # Check for guested configure. 1571 if test -f "$ac_srcdir/configure.gnu"; then 1572 echo && 1573 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1574 elif test -f "$ac_srcdir/configure"; then 1575 echo && 1576 $SHELL "$ac_srcdir/configure" --help=recursive 1577 else 1578 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1579 fi || ac_status=$? 1580 cd "$ac_pwd" || { ac_status=$?; break; } 1581 done 1582fi 1583 1584test -n "$ac_init_help" && exit $ac_status 1585if $ac_init_version; then 1586 cat <<\_ACEOF 1587pet configure 0.11.5 1588generated by GNU Autoconf 2.69 1589 1590Copyright (C) 2012 Free Software Foundation, Inc. 1591This configure script is free software; the Free Software Foundation 1592gives unlimited permission to copy, distribute and modify it. 1593_ACEOF 1594 exit 1595fi 1596 1597## ------------------------ ## 1598## Autoconf initialization. ## 1599## ------------------------ ## 1600 1601# ac_fn_c_try_compile LINENO 1602# -------------------------- 1603# Try to compile conftest.$ac_ext, and return whether this succeeded. 1604ac_fn_c_try_compile () 1605{ 1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1607 rm -f conftest.$ac_objext 1608 if { { ac_try="$ac_compile" 1609case "(($ac_try" in 1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1611 *) ac_try_echo=$ac_try;; 1612esac 1613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1614$as_echo "$ac_try_echo"; } >&5 1615 (eval "$ac_compile") 2>conftest.err 1616 ac_status=$? 1617 if test -s conftest.err; then 1618 grep -v '^ *+' conftest.err >conftest.er1 1619 cat conftest.er1 >&5 1620 mv -f conftest.er1 conftest.err 1621 fi 1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1623 test $ac_status = 0; } && { 1624 test -z "$ac_c_werror_flag" || 1625 test ! -s conftest.err 1626 } && test -s conftest.$ac_objext; then : 1627 ac_retval=0 1628else 1629 $as_echo "$as_me: failed program was:" >&5 1630sed 's/^/| /' conftest.$ac_ext >&5 1631 1632 ac_retval=1 1633fi 1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1635 as_fn_set_status $ac_retval 1636 1637} # ac_fn_c_try_compile 1638 1639# ac_fn_cxx_try_compile LINENO 1640# ---------------------------- 1641# Try to compile conftest.$ac_ext, and return whether this succeeded. 1642ac_fn_cxx_try_compile () 1643{ 1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1645 rm -f conftest.$ac_objext 1646 if { { ac_try="$ac_compile" 1647case "(($ac_try" in 1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1649 *) ac_try_echo=$ac_try;; 1650esac 1651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1652$as_echo "$ac_try_echo"; } >&5 1653 (eval "$ac_compile") 2>conftest.err 1654 ac_status=$? 1655 if test -s conftest.err; then 1656 grep -v '^ *+' conftest.err >conftest.er1 1657 cat conftest.er1 >&5 1658 mv -f conftest.er1 conftest.err 1659 fi 1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1661 test $ac_status = 0; } && { 1662 test -z "$ac_cxx_werror_flag" || 1663 test ! -s conftest.err 1664 } && test -s conftest.$ac_objext; then : 1665 ac_retval=0 1666else 1667 $as_echo "$as_me: failed program was:" >&5 1668sed 's/^/| /' conftest.$ac_ext >&5 1669 1670 ac_retval=1 1671fi 1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1673 as_fn_set_status $ac_retval 1674 1675} # ac_fn_cxx_try_compile 1676 1677# ac_fn_c_try_link LINENO 1678# ----------------------- 1679# Try to link conftest.$ac_ext, and return whether this succeeded. 1680ac_fn_c_try_link () 1681{ 1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1683 rm -f conftest.$ac_objext conftest$ac_exeext 1684 if { { ac_try="$ac_link" 1685case "(($ac_try" in 1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1687 *) ac_try_echo=$ac_try;; 1688esac 1689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1690$as_echo "$ac_try_echo"; } >&5 1691 (eval "$ac_link") 2>conftest.err 1692 ac_status=$? 1693 if test -s conftest.err; then 1694 grep -v '^ *+' conftest.err >conftest.er1 1695 cat conftest.er1 >&5 1696 mv -f conftest.er1 conftest.err 1697 fi 1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1699 test $ac_status = 0; } && { 1700 test -z "$ac_c_werror_flag" || 1701 test ! -s conftest.err 1702 } && test -s conftest$ac_exeext && { 1703 test "$cross_compiling" = yes || 1704 test -x conftest$ac_exeext 1705 }; then : 1706 ac_retval=0 1707else 1708 $as_echo "$as_me: failed program was:" >&5 1709sed 's/^/| /' conftest.$ac_ext >&5 1710 1711 ac_retval=1 1712fi 1713 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1714 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1715 # interfere with the next link command; also delete a directory that is 1716 # left behind by Apple's compiler. We do this before executing the actions. 1717 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1719 as_fn_set_status $ac_retval 1720 1721} # ac_fn_c_try_link 1722 1723# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1724# ------------------------------------------------------- 1725# Tests whether HEADER exists and can be compiled using the include files in 1726# INCLUDES, setting the cache variable VAR accordingly. 1727ac_fn_c_check_header_compile () 1728{ 1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1731$as_echo_n "checking for $2... " >&6; } 1732if eval \${$3+:} false; then : 1733 $as_echo_n "(cached) " >&6 1734else 1735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1736/* end confdefs.h. */ 1737$4 1738#include <$2> 1739_ACEOF 1740if ac_fn_c_try_compile "$LINENO"; then : 1741 eval "$3=yes" 1742else 1743 eval "$3=no" 1744fi 1745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1746fi 1747eval ac_res=\$$3 1748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1749$as_echo "$ac_res" >&6; } 1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1751 1752} # ac_fn_c_check_header_compile 1753 1754# ac_fn_c_try_cpp LINENO 1755# ---------------------- 1756# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1757ac_fn_c_try_cpp () 1758{ 1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1760 if { { ac_try="$ac_cpp conftest.$ac_ext" 1761case "(($ac_try" in 1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1763 *) ac_try_echo=$ac_try;; 1764esac 1765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1766$as_echo "$ac_try_echo"; } >&5 1767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1768 ac_status=$? 1769 if test -s conftest.err; then 1770 grep -v '^ *+' conftest.err >conftest.er1 1771 cat conftest.er1 >&5 1772 mv -f conftest.er1 conftest.err 1773 fi 1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1775 test $ac_status = 0; } > conftest.i && { 1776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1777 test ! -s conftest.err 1778 }; then : 1779 ac_retval=0 1780else 1781 $as_echo "$as_me: failed program was:" >&5 1782sed 's/^/| /' conftest.$ac_ext >&5 1783 1784 ac_retval=1 1785fi 1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1787 as_fn_set_status $ac_retval 1788 1789} # ac_fn_c_try_cpp 1790 1791# ac_fn_c_try_run LINENO 1792# ---------------------- 1793# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1794# that executables *can* be run. 1795ac_fn_c_try_run () 1796{ 1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1798 if { { ac_try="$ac_link" 1799case "(($ac_try" in 1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1801 *) ac_try_echo=$ac_try;; 1802esac 1803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1804$as_echo "$ac_try_echo"; } >&5 1805 (eval "$ac_link") 2>&5 1806 ac_status=$? 1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1808 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1809 { { case "(($ac_try" in 1810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1811 *) ac_try_echo=$ac_try;; 1812esac 1813eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1814$as_echo "$ac_try_echo"; } >&5 1815 (eval "$ac_try") 2>&5 1816 ac_status=$? 1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1818 test $ac_status = 0; }; }; then : 1819 ac_retval=0 1820else 1821 $as_echo "$as_me: program exited with status $ac_status" >&5 1822 $as_echo "$as_me: failed program was:" >&5 1823sed 's/^/| /' conftest.$ac_ext >&5 1824 1825 ac_retval=$ac_status 1826fi 1827 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1829 as_fn_set_status $ac_retval 1830 1831} # ac_fn_c_try_run 1832 1833# ac_fn_c_check_func LINENO FUNC VAR 1834# ---------------------------------- 1835# Tests whether FUNC exists, setting the cache variable VAR accordingly 1836ac_fn_c_check_func () 1837{ 1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1840$as_echo_n "checking for $2... " >&6; } 1841if eval \${$3+:} false; then : 1842 $as_echo_n "(cached) " >&6 1843else 1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1845/* end confdefs.h. */ 1846/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1847 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1848#define $2 innocuous_$2 1849 1850/* System header to define __stub macros and hopefully few prototypes, 1851 which can conflict with char $2 (); below. 1852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1853 <limits.h> exists even on freestanding compilers. */ 1854 1855#ifdef __STDC__ 1856# include <limits.h> 1857#else 1858# include <assert.h> 1859#endif 1860 1861#undef $2 1862 1863/* Override any GCC internal prototype to avoid an error. 1864 Use char because int might match the return type of a GCC 1865 builtin and then its argument prototype would still apply. */ 1866#ifdef __cplusplus 1867extern "C" 1868#endif 1869char $2 (); 1870/* The GNU C library defines this for functions which it implements 1871 to always fail with ENOSYS. Some functions are actually named 1872 something starting with __ and the normal name is an alias. */ 1873#if defined __stub_$2 || defined __stub___$2 1874choke me 1875#endif 1876 1877int 1878main () 1879{ 1880return $2 (); 1881 ; 1882 return 0; 1883} 1884_ACEOF 1885if ac_fn_c_try_link "$LINENO"; then : 1886 eval "$3=yes" 1887else 1888 eval "$3=no" 1889fi 1890rm -f core conftest.err conftest.$ac_objext \ 1891 conftest$ac_exeext conftest.$ac_ext 1892fi 1893eval ac_res=\$$3 1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1895$as_echo "$ac_res" >&6; } 1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1897 1898} # ac_fn_c_check_func 1899 1900# ac_fn_cxx_try_cpp LINENO 1901# ------------------------ 1902# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1903ac_fn_cxx_try_cpp () 1904{ 1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1906 if { { ac_try="$ac_cpp conftest.$ac_ext" 1907case "(($ac_try" in 1908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1909 *) ac_try_echo=$ac_try;; 1910esac 1911eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1912$as_echo "$ac_try_echo"; } >&5 1913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1914 ac_status=$? 1915 if test -s conftest.err; then 1916 grep -v '^ *+' conftest.err >conftest.er1 1917 cat conftest.er1 >&5 1918 mv -f conftest.er1 conftest.err 1919 fi 1920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1921 test $ac_status = 0; } > conftest.i && { 1922 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1923 test ! -s conftest.err 1924 }; then : 1925 ac_retval=0 1926else 1927 $as_echo "$as_me: failed program was:" >&5 1928sed 's/^/| /' conftest.$ac_ext >&5 1929 1930 ac_retval=1 1931fi 1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1933 as_fn_set_status $ac_retval 1934 1935} # ac_fn_cxx_try_cpp 1936 1937# ac_fn_cxx_try_link LINENO 1938# ------------------------- 1939# Try to link conftest.$ac_ext, and return whether this succeeded. 1940ac_fn_cxx_try_link () 1941{ 1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1943 rm -f conftest.$ac_objext conftest$ac_exeext 1944 if { { ac_try="$ac_link" 1945case "(($ac_try" in 1946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1947 *) ac_try_echo=$ac_try;; 1948esac 1949eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1950$as_echo "$ac_try_echo"; } >&5 1951 (eval "$ac_link") 2>conftest.err 1952 ac_status=$? 1953 if test -s conftest.err; then 1954 grep -v '^ *+' conftest.err >conftest.er1 1955 cat conftest.er1 >&5 1956 mv -f conftest.er1 conftest.err 1957 fi 1958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1959 test $ac_status = 0; } && { 1960 test -z "$ac_cxx_werror_flag" || 1961 test ! -s conftest.err 1962 } && test -s conftest$ac_exeext && { 1963 test "$cross_compiling" = yes || 1964 test -x conftest$ac_exeext 1965 }; then : 1966 ac_retval=0 1967else 1968 $as_echo "$as_me: failed program was:" >&5 1969sed 's/^/| /' conftest.$ac_ext >&5 1970 1971 ac_retval=1 1972fi 1973 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1974 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1975 # interfere with the next link command; also delete a directory that is 1976 # left behind by Apple's compiler. We do this before executing the actions. 1977 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1979 as_fn_set_status $ac_retval 1980 1981} # ac_fn_cxx_try_link 1982 1983# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 1984# --------------------------------------------------------- 1985# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1986# the include files in INCLUDES and setting the cache variable VAR 1987# accordingly. 1988ac_fn_cxx_check_header_mongrel () 1989{ 1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1991 if eval \${$3+:} false; then : 1992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1993$as_echo_n "checking for $2... " >&6; } 1994if eval \${$3+:} false; then : 1995 $as_echo_n "(cached) " >&6 1996fi 1997eval ac_res=\$$3 1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1999$as_echo "$ac_res" >&6; } 2000else 2001 # Is the header compilable? 2002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2003$as_echo_n "checking $2 usability... " >&6; } 2004cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2005/* end confdefs.h. */ 2006$4 2007#include <$2> 2008_ACEOF 2009if ac_fn_cxx_try_compile "$LINENO"; then : 2010 ac_header_compiler=yes 2011else 2012 ac_header_compiler=no 2013fi 2014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2016$as_echo "$ac_header_compiler" >&6; } 2017 2018# Is the header present? 2019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2020$as_echo_n "checking $2 presence... " >&6; } 2021cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2022/* end confdefs.h. */ 2023#include <$2> 2024_ACEOF 2025if ac_fn_cxx_try_cpp "$LINENO"; then : 2026 ac_header_preproc=yes 2027else 2028 ac_header_preproc=no 2029fi 2030rm -f conftest.err conftest.i conftest.$ac_ext 2031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2032$as_echo "$ac_header_preproc" >&6; } 2033 2034# So? What about this header? 2035case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2036 yes:no: ) 2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2038$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2040$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2041 ;; 2042 no:yes:* ) 2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2044$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2046$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2048$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2050$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2052$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2053( $as_echo "## ----------------------------------------------- ## 2054## Report this to isl-development@googlegroups.com ## 2055## ----------------------------------------------- ##" 2056 ) | sed "s/^/$as_me: WARNING: /" >&2 2057 ;; 2058esac 2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2060$as_echo_n "checking for $2... " >&6; } 2061if eval \${$3+:} false; then : 2062 $as_echo_n "(cached) " >&6 2063else 2064 eval "$3=\$ac_header_compiler" 2065fi 2066eval ac_res=\$$3 2067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2068$as_echo "$ac_res" >&6; } 2069fi 2070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2071 2072} # ac_fn_cxx_check_header_mongrel 2073 2074# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2075# --------------------------------------------------------- 2076# Tests whether HEADER exists and can be compiled using the include files in 2077# INCLUDES, setting the cache variable VAR accordingly. 2078ac_fn_cxx_check_header_compile () 2079{ 2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2082$as_echo_n "checking for $2... " >&6; } 2083if eval \${$3+:} false; then : 2084 $as_echo_n "(cached) " >&6 2085else 2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2087/* end confdefs.h. */ 2088$4 2089#include <$2> 2090_ACEOF 2091if ac_fn_cxx_try_compile "$LINENO"; then : 2092 eval "$3=yes" 2093else 2094 eval "$3=no" 2095fi 2096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2097fi 2098eval ac_res=\$$3 2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2100$as_echo "$ac_res" >&6; } 2101 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2102 2103} # ac_fn_cxx_check_header_compile 2104 2105# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2106# ------------------------------------------------------- 2107# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2108# the include files in INCLUDES and setting the cache variable VAR 2109# accordingly. 2110ac_fn_c_check_header_mongrel () 2111{ 2112 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2113 if eval \${$3+:} false; then : 2114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2115$as_echo_n "checking for $2... " >&6; } 2116if eval \${$3+:} false; then : 2117 $as_echo_n "(cached) " >&6 2118fi 2119eval ac_res=\$$3 2120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2121$as_echo "$ac_res" >&6; } 2122else 2123 # Is the header compilable? 2124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2125$as_echo_n "checking $2 usability... " >&6; } 2126cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2127/* end confdefs.h. */ 2128$4 2129#include <$2> 2130_ACEOF 2131if ac_fn_c_try_compile "$LINENO"; then : 2132 ac_header_compiler=yes 2133else 2134 ac_header_compiler=no 2135fi 2136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2138$as_echo "$ac_header_compiler" >&6; } 2139 2140# Is the header present? 2141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2142$as_echo_n "checking $2 presence... " >&6; } 2143cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2144/* end confdefs.h. */ 2145#include <$2> 2146_ACEOF 2147if ac_fn_c_try_cpp "$LINENO"; then : 2148 ac_header_preproc=yes 2149else 2150 ac_header_preproc=no 2151fi 2152rm -f conftest.err conftest.i conftest.$ac_ext 2153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2154$as_echo "$ac_header_preproc" >&6; } 2155 2156# So? What about this header? 2157case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2158 yes:no: ) 2159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2160$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2162$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2163 ;; 2164 no:yes:* ) 2165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2166$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2168$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2170$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2172$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2174$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2175( $as_echo "## ----------------------------------------------- ## 2176## Report this to isl-development@googlegroups.com ## 2177## ----------------------------------------------- ##" 2178 ) | sed "s/^/$as_me: WARNING: /" >&2 2179 ;; 2180esac 2181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2182$as_echo_n "checking for $2... " >&6; } 2183if eval \${$3+:} false; then : 2184 $as_echo_n "(cached) " >&6 2185else 2186 eval "$3=\$ac_header_compiler" 2187fi 2188eval ac_res=\$$3 2189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2190$as_echo "$ac_res" >&6; } 2191fi 2192 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2193 2194} # ac_fn_c_check_header_mongrel 2195cat >config.log <<_ACEOF 2196This file contains any messages produced by compilers while 2197running configure, to aid debugging if configure makes a mistake. 2198 2199It was created by pet $as_me 0.11.5, which was 2200generated by GNU Autoconf 2.69. Invocation command line was 2201 2202 $ $0 $@ 2203 2204_ACEOF 2205exec 5>>config.log 2206{ 2207cat <<_ASUNAME 2208## --------- ## 2209## Platform. ## 2210## --------- ## 2211 2212hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2213uname -m = `(uname -m) 2>/dev/null || echo unknown` 2214uname -r = `(uname -r) 2>/dev/null || echo unknown` 2215uname -s = `(uname -s) 2>/dev/null || echo unknown` 2216uname -v = `(uname -v) 2>/dev/null || echo unknown` 2217 2218/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2219/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2220 2221/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2222/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2223/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2224/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2225/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2226/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2227/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2228 2229_ASUNAME 2230 2231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2232for as_dir in $PATH 2233do 2234 IFS=$as_save_IFS 2235 test -z "$as_dir" && as_dir=. 2236 $as_echo "PATH: $as_dir" 2237 done 2238IFS=$as_save_IFS 2239 2240} >&5 2241 2242cat >&5 <<_ACEOF 2243 2244 2245## ----------- ## 2246## Core tests. ## 2247## ----------- ## 2248 2249_ACEOF 2250 2251 2252# Keep a trace of the command line. 2253# Strip out --no-create and --no-recursion so they do not pile up. 2254# Strip out --silent because we don't want to record it for future runs. 2255# Also quote any args containing shell meta-characters. 2256# Make two passes to allow for proper duplicate-argument suppression. 2257ac_configure_args= 2258ac_configure_args0= 2259ac_configure_args1= 2260ac_must_keep_next=false 2261for ac_pass in 1 2 2262do 2263 for ac_arg 2264 do 2265 case $ac_arg in 2266 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2267 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2268 | -silent | --silent | --silen | --sile | --sil) 2269 continue ;; 2270 *\'*) 2271 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2272 esac 2273 case $ac_pass in 2274 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2275 2) 2276 as_fn_append ac_configure_args1 " '$ac_arg'" 2277 if test $ac_must_keep_next = true; then 2278 ac_must_keep_next=false # Got value, back to normal. 2279 else 2280 case $ac_arg in 2281 *=* | --config-cache | -C | -disable-* | --disable-* \ 2282 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2283 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2284 | -with-* | --with-* | -without-* | --without-* | --x) 2285 case "$ac_configure_args0 " in 2286 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2287 esac 2288 ;; 2289 -* ) ac_must_keep_next=true ;; 2290 esac 2291 fi 2292 as_fn_append ac_configure_args " '$ac_arg'" 2293 ;; 2294 esac 2295 done 2296done 2297{ ac_configure_args0=; unset ac_configure_args0;} 2298{ ac_configure_args1=; unset ac_configure_args1;} 2299 2300# When interrupted or exit'd, cleanup temporary files, and complete 2301# config.log. We remove comments because anyway the quotes in there 2302# would cause problems or look ugly. 2303# WARNING: Use '\'' to represent an apostrophe within the trap. 2304# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2305trap 'exit_status=$? 2306 # Save into config.log some information that might help in debugging. 2307 { 2308 echo 2309 2310 $as_echo "## ---------------- ## 2311## Cache variables. ## 2312## ---------------- ##" 2313 echo 2314 # The following way of writing the cache mishandles newlines in values, 2315( 2316 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2317 eval ac_val=\$$ac_var 2318 case $ac_val in #( 2319 *${as_nl}*) 2320 case $ac_var in #( 2321 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2322$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2323 esac 2324 case $ac_var in #( 2325 _ | IFS | as_nl) ;; #( 2326 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2327 *) { eval $ac_var=; unset $ac_var;} ;; 2328 esac ;; 2329 esac 2330 done 2331 (set) 2>&1 | 2332 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2333 *${as_nl}ac_space=\ *) 2334 sed -n \ 2335 "s/'\''/'\''\\\\'\'''\''/g; 2336 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2337 ;; #( 2338 *) 2339 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2340 ;; 2341 esac | 2342 sort 2343) 2344 echo 2345 2346 $as_echo "## ----------------- ## 2347## Output variables. ## 2348## ----------------- ##" 2349 echo 2350 for ac_var in $ac_subst_vars 2351 do 2352 eval ac_val=\$$ac_var 2353 case $ac_val in 2354 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2355 esac 2356 $as_echo "$ac_var='\''$ac_val'\''" 2357 done | sort 2358 echo 2359 2360 if test -n "$ac_subst_files"; then 2361 $as_echo "## ------------------- ## 2362## File substitutions. ## 2363## ------------------- ##" 2364 echo 2365 for ac_var in $ac_subst_files 2366 do 2367 eval ac_val=\$$ac_var 2368 case $ac_val in 2369 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2370 esac 2371 $as_echo "$ac_var='\''$ac_val'\''" 2372 done | sort 2373 echo 2374 fi 2375 2376 if test -s confdefs.h; then 2377 $as_echo "## ----------- ## 2378## confdefs.h. ## 2379## ----------- ##" 2380 echo 2381 cat confdefs.h 2382 echo 2383 fi 2384 test "$ac_signal" != 0 && 2385 $as_echo "$as_me: caught signal $ac_signal" 2386 $as_echo "$as_me: exit $exit_status" 2387 } >&5 2388 rm -f core *.core core.conftest.* && 2389 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2390 exit $exit_status 2391' 0 2392for ac_signal in 1 2 13 15; do 2393 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2394done 2395ac_signal=0 2396 2397# confdefs.h avoids OS command line length limits that DEFS can exceed. 2398rm -f -r conftest* confdefs.h 2399 2400$as_echo "/* confdefs.h */" > confdefs.h 2401 2402# Predefined preprocessor variables. 2403 2404cat >>confdefs.h <<_ACEOF 2405#define PACKAGE_NAME "$PACKAGE_NAME" 2406_ACEOF 2407 2408cat >>confdefs.h <<_ACEOF 2409#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2410_ACEOF 2411 2412cat >>confdefs.h <<_ACEOF 2413#define PACKAGE_VERSION "$PACKAGE_VERSION" 2414_ACEOF 2415 2416cat >>confdefs.h <<_ACEOF 2417#define PACKAGE_STRING "$PACKAGE_STRING" 2418_ACEOF 2419 2420cat >>confdefs.h <<_ACEOF 2421#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2422_ACEOF 2423 2424cat >>confdefs.h <<_ACEOF 2425#define PACKAGE_URL "$PACKAGE_URL" 2426_ACEOF 2427 2428 2429# Let the site file select an alternate cache file if it wants to. 2430# Prefer an explicitly selected file to automatically selected ones. 2431ac_site_file1=NONE 2432ac_site_file2=NONE 2433if test -n "$CONFIG_SITE"; then 2434 # We do not want a PATH search for config.site. 2435 case $CONFIG_SITE in #(( 2436 -*) ac_site_file1=./$CONFIG_SITE;; 2437 */*) ac_site_file1=$CONFIG_SITE;; 2438 *) ac_site_file1=./$CONFIG_SITE;; 2439 esac 2440elif test "x$prefix" != xNONE; then 2441 ac_site_file1=$prefix/share/config.site 2442 ac_site_file2=$prefix/etc/config.site 2443else 2444 ac_site_file1=$ac_default_prefix/share/config.site 2445 ac_site_file2=$ac_default_prefix/etc/config.site 2446fi 2447for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2448do 2449 test "x$ac_site_file" = xNONE && continue 2450 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2451 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2452$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2453 sed 's/^/| /' "$ac_site_file" >&5 2454 . "$ac_site_file" \ 2455 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2457as_fn_error $? "failed to load site script $ac_site_file 2458See \`config.log' for more details" "$LINENO" 5; } 2459 fi 2460done 2461 2462if test -r "$cache_file"; then 2463 # Some versions of bash will fail to source /dev/null (special files 2464 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2465 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2466 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2467$as_echo "$as_me: loading cache $cache_file" >&6;} 2468 case $cache_file in 2469 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2470 *) . "./$cache_file";; 2471 esac 2472 fi 2473else 2474 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2475$as_echo "$as_me: creating cache $cache_file" >&6;} 2476 >$cache_file 2477fi 2478 2479# Check that the precious variables saved in the cache have kept the same 2480# value. 2481ac_cache_corrupted=false 2482for ac_var in $ac_precious_vars; do 2483 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2484 eval ac_new_set=\$ac_env_${ac_var}_set 2485 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2486 eval ac_new_val=\$ac_env_${ac_var}_value 2487 case $ac_old_set,$ac_new_set in 2488 set,) 2489 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2490$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2491 ac_cache_corrupted=: ;; 2492 ,set) 2493 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2494$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2495 ac_cache_corrupted=: ;; 2496 ,);; 2497 *) 2498 if test "x$ac_old_val" != "x$ac_new_val"; then 2499 # differences in whitespace do not lead to failure. 2500 ac_old_val_w=`echo x $ac_old_val` 2501 ac_new_val_w=`echo x $ac_new_val` 2502 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2503 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2504$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2505 ac_cache_corrupted=: 2506 else 2507 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2508$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2509 eval $ac_var=\$ac_old_val 2510 fi 2511 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2512$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2513 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2514$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2515 fi;; 2516 esac 2517 # Pass precious variables to config.status. 2518 if test "$ac_new_set" = set; then 2519 case $ac_new_val in 2520 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2521 *) ac_arg=$ac_var=$ac_new_val ;; 2522 esac 2523 case " $ac_configure_args " in 2524 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2525 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2526 esac 2527 fi 2528done 2529if $ac_cache_corrupted; then 2530 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2531$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2532 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2533$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2534 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2535fi 2536## -------------------- ## 2537## Main body of script. ## 2538## -------------------- ## 2539 2540ac_ext=c 2541ac_cpp='$CPP $CPPFLAGS' 2542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2544ac_compiler_gnu=$ac_cv_c_compiler_gnu 2545 2546 2547ac_aux_dir= 2548for ac_dir in build-aux "$srcdir"/build-aux; do 2549 if test -f "$ac_dir/install-sh"; then 2550 ac_aux_dir=$ac_dir 2551 ac_install_sh="$ac_aux_dir/install-sh -c" 2552 break 2553 elif test -f "$ac_dir/install.sh"; then 2554 ac_aux_dir=$ac_dir 2555 ac_install_sh="$ac_aux_dir/install.sh -c" 2556 break 2557 elif test -f "$ac_dir/shtool"; then 2558 ac_aux_dir=$ac_dir 2559 ac_install_sh="$ac_aux_dir/shtool install -c" 2560 break 2561 fi 2562done 2563if test -z "$ac_aux_dir"; then 2564 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 2565fi 2566 2567# These three variables are undocumented and unsupported, 2568# and are intended to be withdrawn in a future Autoconf release. 2569# They can cause serious problems if a builder's source tree is in a directory 2570# whose full name contains unusual characters. 2571ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2572ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2573ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2574 2575 2576 2577am__api_version='1.16' 2578 2579# Find a good install program. We prefer a C program (faster), 2580# so one script is as good as another. But avoid the broken or 2581# incompatible versions: 2582# SysV /etc/install, /usr/sbin/install 2583# SunOS /usr/etc/install 2584# IRIX /sbin/install 2585# AIX /bin/install 2586# AmigaOS /C/install, which installs bootblocks on floppy discs 2587# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2588# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2589# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2590# OS/2's system install, which has a completely different semantic 2591# ./install, which can be erroneously created by make from ./install.sh. 2592# Reject install programs that cannot install multiple files. 2593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2594$as_echo_n "checking for a BSD-compatible install... " >&6; } 2595if test -z "$INSTALL"; then 2596if ${ac_cv_path_install+:} false; then : 2597 $as_echo_n "(cached) " >&6 2598else 2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2600for as_dir in $PATH 2601do 2602 IFS=$as_save_IFS 2603 test -z "$as_dir" && as_dir=. 2604 # Account for people who put trailing slashes in PATH elements. 2605case $as_dir/ in #(( 2606 ./ | .// | /[cC]/* | \ 2607 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2608 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2609 /usr/ucb/* ) ;; 2610 *) 2611 # OSF1 and SCO ODT 3.0 have their own names for install. 2612 # Don't use installbsd from OSF since it installs stuff as root 2613 # by default. 2614 for ac_prog in ginstall scoinst install; do 2615 for ac_exec_ext in '' $ac_executable_extensions; do 2616 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2617 if test $ac_prog = install && 2618 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2619 # AIX install. It has an incompatible calling convention. 2620 : 2621 elif test $ac_prog = install && 2622 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2623 # program-specific install script used by HP pwplus--don't use. 2624 : 2625 else 2626 rm -rf conftest.one conftest.two conftest.dir 2627 echo one > conftest.one 2628 echo two > conftest.two 2629 mkdir conftest.dir 2630 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2631 test -s conftest.one && test -s conftest.two && 2632 test -s conftest.dir/conftest.one && 2633 test -s conftest.dir/conftest.two 2634 then 2635 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2636 break 3 2637 fi 2638 fi 2639 fi 2640 done 2641 done 2642 ;; 2643esac 2644 2645 done 2646IFS=$as_save_IFS 2647 2648rm -rf conftest.one conftest.two conftest.dir 2649 2650fi 2651 if test "${ac_cv_path_install+set}" = set; then 2652 INSTALL=$ac_cv_path_install 2653 else 2654 # As a last resort, use the slow shell script. Don't cache a 2655 # value for INSTALL within a source directory, because that will 2656 # break other packages using the cache if that directory is 2657 # removed, or if the value is a relative name. 2658 INSTALL=$ac_install_sh 2659 fi 2660fi 2661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2662$as_echo "$INSTALL" >&6; } 2663 2664# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2665# It thinks the first close brace ends the variable substitution. 2666test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2667 2668test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2669 2670test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2671 2672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2673$as_echo_n "checking whether build environment is sane... " >&6; } 2674# Reject unsafe characters in $srcdir or the absolute working directory 2675# name. Accept space and tab only in the latter. 2676am_lf=' 2677' 2678case `pwd` in 2679 *[\\\"\#\$\&\'\`$am_lf]*) 2680 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2681esac 2682case $srcdir in 2683 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2684 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2685esac 2686 2687# Do 'set' in a subshell so we don't clobber the current shell's 2688# arguments. Must try -L first in case configure is actually a 2689# symlink; some systems play weird games with the mod time of symlinks 2690# (eg FreeBSD returns the mod time of the symlink's containing 2691# directory). 2692if ( 2693 am_has_slept=no 2694 for am_try in 1 2; do 2695 echo "timestamp, slept: $am_has_slept" > conftest.file 2696 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2697 if test "$*" = "X"; then 2698 # -L didn't work. 2699 set X `ls -t "$srcdir/configure" conftest.file` 2700 fi 2701 if test "$*" != "X $srcdir/configure conftest.file" \ 2702 && test "$*" != "X conftest.file $srcdir/configure"; then 2703 2704 # If neither matched, then we have a broken ls. This can happen 2705 # if, for instance, CONFIG_SHELL is bash and it inherits a 2706 # broken ls alias from the environment. This has actually 2707 # happened. Such a system could not be considered "sane". 2708 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2709 alias in your environment" "$LINENO" 5 2710 fi 2711 if test "$2" = conftest.file || test $am_try -eq 2; then 2712 break 2713 fi 2714 # Just in case. 2715 sleep 1 2716 am_has_slept=yes 2717 done 2718 test "$2" = conftest.file 2719 ) 2720then 2721 # Ok. 2722 : 2723else 2724 as_fn_error $? "newly created file is older than distributed files! 2725Check your system clock" "$LINENO" 5 2726fi 2727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2728$as_echo "yes" >&6; } 2729# If we didn't sleep, we still need to ensure time stamps of config.status and 2730# generated files are strictly newer. 2731am_sleep_pid= 2732if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2733 ( sleep 1 ) & 2734 am_sleep_pid=$! 2735fi 2736 2737rm -f conftest.file 2738 2739test "$program_prefix" != NONE && 2740 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2741# Use a double $ so make ignores it. 2742test "$program_suffix" != NONE && 2743 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2744# Double any \ or $. 2745# By default was `s,x,x', remove it if useless. 2746ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2747program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2748 2749# Expand $ac_aux_dir to an absolute path. 2750am_aux_dir=`cd "$ac_aux_dir" && pwd` 2751 2752if test x"${MISSING+set}" != xset; then 2753 case $am_aux_dir in 2754 *\ * | *\ *) 2755 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2756 *) 2757 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2758 esac 2759fi 2760# Use eval to expand $SHELL 2761if eval "$MISSING --is-lightweight"; then 2762 am_missing_run="$MISSING " 2763else 2764 am_missing_run= 2765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2766$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2767fi 2768 2769if test x"${install_sh+set}" != xset; then 2770 case $am_aux_dir in 2771 *\ * | *\ *) 2772 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2773 *) 2774 install_sh="\${SHELL} $am_aux_dir/install-sh" 2775 esac 2776fi 2777 2778# Installed binaries are usually stripped using 'strip' when the user 2779# run "make install-strip". However 'strip' might not be the right 2780# tool to use in cross-compilation environments, therefore Automake 2781# will honor the 'STRIP' environment variable to overrule this program. 2782if test "$cross_compiling" != no; then 2783 if test -n "$ac_tool_prefix"; then 2784 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2785set dummy ${ac_tool_prefix}strip; ac_word=$2 2786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2787$as_echo_n "checking for $ac_word... " >&6; } 2788if ${ac_cv_prog_STRIP+:} false; then : 2789 $as_echo_n "(cached) " >&6 2790else 2791 if test -n "$STRIP"; then 2792 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2793else 2794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2795for as_dir in $PATH 2796do 2797 IFS=$as_save_IFS 2798 test -z "$as_dir" && as_dir=. 2799 for ac_exec_ext in '' $ac_executable_extensions; do 2800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2801 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2803 break 2 2804 fi 2805done 2806 done 2807IFS=$as_save_IFS 2808 2809fi 2810fi 2811STRIP=$ac_cv_prog_STRIP 2812if test -n "$STRIP"; then 2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2814$as_echo "$STRIP" >&6; } 2815else 2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2817$as_echo "no" >&6; } 2818fi 2819 2820 2821fi 2822if test -z "$ac_cv_prog_STRIP"; then 2823 ac_ct_STRIP=$STRIP 2824 # Extract the first word of "strip", so it can be a program name with args. 2825set dummy strip; ac_word=$2 2826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2827$as_echo_n "checking for $ac_word... " >&6; } 2828if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2829 $as_echo_n "(cached) " >&6 2830else 2831 if test -n "$ac_ct_STRIP"; then 2832 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2833else 2834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2835for as_dir in $PATH 2836do 2837 IFS=$as_save_IFS 2838 test -z "$as_dir" && as_dir=. 2839 for ac_exec_ext in '' $ac_executable_extensions; do 2840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2841 ac_cv_prog_ac_ct_STRIP="strip" 2842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2843 break 2 2844 fi 2845done 2846 done 2847IFS=$as_save_IFS 2848 2849fi 2850fi 2851ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2852if test -n "$ac_ct_STRIP"; then 2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2854$as_echo "$ac_ct_STRIP" >&6; } 2855else 2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2857$as_echo "no" >&6; } 2858fi 2859 2860 if test "x$ac_ct_STRIP" = x; then 2861 STRIP=":" 2862 else 2863 case $cross_compiling:$ac_tool_warned in 2864yes:) 2865{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2866$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2867ac_tool_warned=yes ;; 2868esac 2869 STRIP=$ac_ct_STRIP 2870 fi 2871else 2872 STRIP="$ac_cv_prog_STRIP" 2873fi 2874 2875fi 2876INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2877 2878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2879$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2880if test -z "$MKDIR_P"; then 2881 if ${ac_cv_path_mkdir+:} false; then : 2882 $as_echo_n "(cached) " >&6 2883else 2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2885for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2886do 2887 IFS=$as_save_IFS 2888 test -z "$as_dir" && as_dir=. 2889 for ac_prog in mkdir gmkdir; do 2890 for ac_exec_ext in '' $ac_executable_extensions; do 2891 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2892 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2893 'mkdir (GNU coreutils) '* | \ 2894 'mkdir (coreutils) '* | \ 2895 'mkdir (fileutils) '4.1*) 2896 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2897 break 3;; 2898 esac 2899 done 2900 done 2901 done 2902IFS=$as_save_IFS 2903 2904fi 2905 2906 test -d ./--version && rmdir ./--version 2907 if test "${ac_cv_path_mkdir+set}" = set; then 2908 MKDIR_P="$ac_cv_path_mkdir -p" 2909 else 2910 # As a last resort, use the slow shell script. Don't cache a 2911 # value for MKDIR_P within a source directory, because that will 2912 # break other packages using the cache if that directory is 2913 # removed, or if the value is a relative name. 2914 MKDIR_P="$ac_install_sh -d" 2915 fi 2916fi 2917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2918$as_echo "$MKDIR_P" >&6; } 2919 2920for ac_prog in gawk mawk nawk awk 2921do 2922 # Extract the first word of "$ac_prog", so it can be a program name with args. 2923set dummy $ac_prog; ac_word=$2 2924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2925$as_echo_n "checking for $ac_word... " >&6; } 2926if ${ac_cv_prog_AWK+:} false; then : 2927 $as_echo_n "(cached) " >&6 2928else 2929 if test -n "$AWK"; then 2930 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2931else 2932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2933for as_dir in $PATH 2934do 2935 IFS=$as_save_IFS 2936 test -z "$as_dir" && as_dir=. 2937 for ac_exec_ext in '' $ac_executable_extensions; do 2938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2939 ac_cv_prog_AWK="$ac_prog" 2940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2941 break 2 2942 fi 2943done 2944 done 2945IFS=$as_save_IFS 2946 2947fi 2948fi 2949AWK=$ac_cv_prog_AWK 2950if test -n "$AWK"; then 2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2952$as_echo "$AWK" >&6; } 2953else 2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2955$as_echo "no" >&6; } 2956fi 2957 2958 2959 test -n "$AWK" && break 2960done 2961 2962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2963$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2964set x ${MAKE-make} 2965ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2966if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2967 $as_echo_n "(cached) " >&6 2968else 2969 cat >conftest.make <<\_ACEOF 2970SHELL = /bin/sh 2971all: 2972 @echo '@@@%%%=$(MAKE)=@@@%%%' 2973_ACEOF 2974# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2975case `${MAKE-make} -f conftest.make 2>/dev/null` in 2976 *@@@%%%=?*=@@@%%%*) 2977 eval ac_cv_prog_make_${ac_make}_set=yes;; 2978 *) 2979 eval ac_cv_prog_make_${ac_make}_set=no;; 2980esac 2981rm -f conftest.make 2982fi 2983if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2985$as_echo "yes" >&6; } 2986 SET_MAKE= 2987else 2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2989$as_echo "no" >&6; } 2990 SET_MAKE="MAKE=${MAKE-make}" 2991fi 2992 2993rm -rf .tst 2>/dev/null 2994mkdir .tst 2>/dev/null 2995if test -d .tst; then 2996 am__leading_dot=. 2997else 2998 am__leading_dot=_ 2999fi 3000rmdir .tst 2>/dev/null 3001 3002# Check whether --enable-silent-rules was given. 3003if test "${enable_silent_rules+set}" = set; then : 3004 enableval=$enable_silent_rules; 3005fi 3006 3007case $enable_silent_rules in # ((( 3008 yes) AM_DEFAULT_VERBOSITY=0;; 3009 no) AM_DEFAULT_VERBOSITY=1;; 3010 *) AM_DEFAULT_VERBOSITY=1;; 3011esac 3012am_make=${MAKE-make} 3013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3014$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3015if ${am_cv_make_support_nested_variables+:} false; then : 3016 $as_echo_n "(cached) " >&6 3017else 3018 if $as_echo 'TRUE=$(BAR$(V)) 3019BAR0=false 3020BAR1=true 3021V=1 3022am__doit: 3023 @$(TRUE) 3024.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3025 am_cv_make_support_nested_variables=yes 3026else 3027 am_cv_make_support_nested_variables=no 3028fi 3029fi 3030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3031$as_echo "$am_cv_make_support_nested_variables" >&6; } 3032if test $am_cv_make_support_nested_variables = yes; then 3033 AM_V='$(V)' 3034 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3035else 3036 AM_V=$AM_DEFAULT_VERBOSITY 3037 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3038fi 3039AM_BACKSLASH='\' 3040 3041if test "`cd $srcdir && pwd`" != "`pwd`"; then 3042 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3043 # is not polluted with repeated "-I." 3044 am__isrc=' -I$(srcdir)' 3045 # test to see if srcdir already configured 3046 if test -f $srcdir/config.status; then 3047 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3048 fi 3049fi 3050 3051# test whether we have cygpath 3052if test -z "$CYGPATH_W"; then 3053 if (cygpath --version) >/dev/null 2>/dev/null; then 3054 CYGPATH_W='cygpath -w' 3055 else 3056 CYGPATH_W=echo 3057 fi 3058fi 3059 3060 3061# Define the identity of the package. 3062 PACKAGE='pet' 3063 VERSION='0.11.5' 3064 3065 3066cat >>confdefs.h <<_ACEOF 3067#define PACKAGE "$PACKAGE" 3068_ACEOF 3069 3070 3071cat >>confdefs.h <<_ACEOF 3072#define VERSION "$VERSION" 3073_ACEOF 3074 3075# Some tools Automake needs. 3076 3077ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3078 3079 3080AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3081 3082 3083AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3084 3085 3086AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3087 3088 3089MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3090 3091# For better backward compatibility. To be removed once Automake 1.9.x 3092# dies out for good. For more background, see: 3093# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3094# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3095mkdir_p='$(MKDIR_P)' 3096 3097# We need awk for the "check" target (and possibly the TAP driver). The 3098# system "awk" is bad on some platforms. 3099# Always define AMTAR for backward compatibility. Yes, it's still used 3100# in the wild :-( We should find a proper way to deprecate it ... 3101AMTAR='$${TAR-tar}' 3102 3103 3104# We'll loop over all known methods to create a tar archive until one works. 3105_am_tools='gnutar pax cpio none' 3106 3107am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3108 3109 3110 3111 3112 3113 3114# POSIX will say in a future version that running "rm -f" with no argument 3115# is OK; and we want to be able to make that assumption in our Makefile 3116# recipes. So use an aggressive probe to check that the usage we want is 3117# actually supported "in the wild" to an acceptable degree. 3118# See automake bug#10828. 3119# To make any issue more visible, cause the running configure to be aborted 3120# by default if the 'rm' program in use doesn't match our expectations; the 3121# user can still override this though. 3122if rm -f && rm -fr && rm -rf; then : OK; else 3123 cat >&2 <<'END' 3124Oops! 3125 3126Your 'rm' program seems unable to run without file operands specified 3127on the command line, even when the '-f' option is present. This is contrary 3128to the behaviour of most rm programs out there, and not conforming with 3129the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3130 3131Please tell bug-automake@gnu.org about your system, including the value 3132of your $PATH and any error possibly output before this message. This 3133can help us improve future automake versions. 3134 3135END 3136 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3137 echo 'Configuration will proceed anyway, since you have set the' >&2 3138 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3139 echo >&2 3140 else 3141 cat >&2 <<'END' 3142Aborting the configuration process, to ensure you take notice of the issue. 3143 3144You can download and install GNU coreutils to get an 'rm' implementation 3145that behaves properly: <https://www.gnu.org/software/coreutils/>. 3146 3147If you want to complete the configuration process using your problematic 3148'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3149to "yes", and re-run configure. 3150 3151END 3152 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3153 fi 3154fi 3155 3156# Check whether --enable-silent-rules was given. 3157if test "${enable_silent_rules+set}" = set; then : 3158 enableval=$enable_silent_rules; 3159fi 3160 3161case $enable_silent_rules in # ((( 3162 yes) AM_DEFAULT_VERBOSITY=0;; 3163 no) AM_DEFAULT_VERBOSITY=1;; 3164 *) AM_DEFAULT_VERBOSITY=0;; 3165esac 3166am_make=${MAKE-make} 3167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3168$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3169if ${am_cv_make_support_nested_variables+:} false; then : 3170 $as_echo_n "(cached) " >&6 3171else 3172 if $as_echo 'TRUE=$(BAR$(V)) 3173BAR0=false 3174BAR1=true 3175V=1 3176am__doit: 3177 @$(TRUE) 3178.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3179 am_cv_make_support_nested_variables=yes 3180else 3181 am_cv_make_support_nested_variables=no 3182fi 3183fi 3184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3185$as_echo "$am_cv_make_support_nested_variables" >&6; } 3186if test $am_cv_make_support_nested_variables = yes; then 3187 AM_V='$(V)' 3188 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3189else 3190 AM_V=$AM_DEFAULT_VERBOSITY 3191 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3192fi 3193AM_BACKSLASH='\' 3194 3195 3196versioninfo=10:5:0 3197 3198ac_ext=c 3199ac_cpp='$CPP $CPPFLAGS' 3200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3202ac_compiler_gnu=$ac_cv_c_compiler_gnu 3203if test -n "$ac_tool_prefix"; then 3204 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3205set dummy ${ac_tool_prefix}gcc; ac_word=$2 3206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3207$as_echo_n "checking for $ac_word... " >&6; } 3208if ${ac_cv_prog_CC+:} false; then : 3209 $as_echo_n "(cached) " >&6 3210else 3211 if test -n "$CC"; then 3212 ac_cv_prog_CC="$CC" # Let the user override the test. 3213else 3214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3215for as_dir in $PATH 3216do 3217 IFS=$as_save_IFS 3218 test -z "$as_dir" && as_dir=. 3219 for ac_exec_ext in '' $ac_executable_extensions; do 3220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3221 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3223 break 2 3224 fi 3225done 3226 done 3227IFS=$as_save_IFS 3228 3229fi 3230fi 3231CC=$ac_cv_prog_CC 3232if test -n "$CC"; then 3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3234$as_echo "$CC" >&6; } 3235else 3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3237$as_echo "no" >&6; } 3238fi 3239 3240 3241fi 3242if test -z "$ac_cv_prog_CC"; then 3243 ac_ct_CC=$CC 3244 # Extract the first word of "gcc", so it can be a program name with args. 3245set dummy gcc; ac_word=$2 3246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3247$as_echo_n "checking for $ac_word... " >&6; } 3248if ${ac_cv_prog_ac_ct_CC+:} false; then : 3249 $as_echo_n "(cached) " >&6 3250else 3251 if test -n "$ac_ct_CC"; then 3252 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3253else 3254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3255for as_dir in $PATH 3256do 3257 IFS=$as_save_IFS 3258 test -z "$as_dir" && as_dir=. 3259 for ac_exec_ext in '' $ac_executable_extensions; do 3260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3261 ac_cv_prog_ac_ct_CC="gcc" 3262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3263 break 2 3264 fi 3265done 3266 done 3267IFS=$as_save_IFS 3268 3269fi 3270fi 3271ac_ct_CC=$ac_cv_prog_ac_ct_CC 3272if test -n "$ac_ct_CC"; then 3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3274$as_echo "$ac_ct_CC" >&6; } 3275else 3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3277$as_echo "no" >&6; } 3278fi 3279 3280 if test "x$ac_ct_CC" = x; then 3281 CC="" 3282 else 3283 case $cross_compiling:$ac_tool_warned in 3284yes:) 3285{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3286$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3287ac_tool_warned=yes ;; 3288esac 3289 CC=$ac_ct_CC 3290 fi 3291else 3292 CC="$ac_cv_prog_CC" 3293fi 3294 3295if test -z "$CC"; then 3296 if test -n "$ac_tool_prefix"; then 3297 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3298set dummy ${ac_tool_prefix}cc; ac_word=$2 3299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3300$as_echo_n "checking for $ac_word... " >&6; } 3301if ${ac_cv_prog_CC+:} false; then : 3302 $as_echo_n "(cached) " >&6 3303else 3304 if test -n "$CC"; then 3305 ac_cv_prog_CC="$CC" # Let the user override the test. 3306else 3307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3308for as_dir in $PATH 3309do 3310 IFS=$as_save_IFS 3311 test -z "$as_dir" && as_dir=. 3312 for ac_exec_ext in '' $ac_executable_extensions; do 3313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3314 ac_cv_prog_CC="${ac_tool_prefix}cc" 3315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3316 break 2 3317 fi 3318done 3319 done 3320IFS=$as_save_IFS 3321 3322fi 3323fi 3324CC=$ac_cv_prog_CC 3325if test -n "$CC"; then 3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3327$as_echo "$CC" >&6; } 3328else 3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3330$as_echo "no" >&6; } 3331fi 3332 3333 3334 fi 3335fi 3336if test -z "$CC"; then 3337 # Extract the first word of "cc", so it can be a program name with args. 3338set dummy cc; ac_word=$2 3339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3340$as_echo_n "checking for $ac_word... " >&6; } 3341if ${ac_cv_prog_CC+:} false; then : 3342 $as_echo_n "(cached) " >&6 3343else 3344 if test -n "$CC"; then 3345 ac_cv_prog_CC="$CC" # Let the user override the test. 3346else 3347 ac_prog_rejected=no 3348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3349for as_dir in $PATH 3350do 3351 IFS=$as_save_IFS 3352 test -z "$as_dir" && as_dir=. 3353 for ac_exec_ext in '' $ac_executable_extensions; do 3354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3355 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3356 ac_prog_rejected=yes 3357 continue 3358 fi 3359 ac_cv_prog_CC="cc" 3360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3361 break 2 3362 fi 3363done 3364 done 3365IFS=$as_save_IFS 3366 3367if test $ac_prog_rejected = yes; then 3368 # We found a bogon in the path, so make sure we never use it. 3369 set dummy $ac_cv_prog_CC 3370 shift 3371 if test $# != 0; then 3372 # We chose a different compiler from the bogus one. 3373 # However, it has the same basename, so the bogon will be chosen 3374 # first if we set CC to just the basename; use the full file name. 3375 shift 3376 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3377 fi 3378fi 3379fi 3380fi 3381CC=$ac_cv_prog_CC 3382if test -n "$CC"; then 3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3384$as_echo "$CC" >&6; } 3385else 3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3387$as_echo "no" >&6; } 3388fi 3389 3390 3391fi 3392if test -z "$CC"; then 3393 if test -n "$ac_tool_prefix"; then 3394 for ac_prog in cl.exe 3395 do 3396 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3397set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3399$as_echo_n "checking for $ac_word... " >&6; } 3400if ${ac_cv_prog_CC+:} false; then : 3401 $as_echo_n "(cached) " >&6 3402else 3403 if test -n "$CC"; then 3404 ac_cv_prog_CC="$CC" # Let the user override the test. 3405else 3406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3407for as_dir in $PATH 3408do 3409 IFS=$as_save_IFS 3410 test -z "$as_dir" && as_dir=. 3411 for ac_exec_ext in '' $ac_executable_extensions; do 3412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3413 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3415 break 2 3416 fi 3417done 3418 done 3419IFS=$as_save_IFS 3420 3421fi 3422fi 3423CC=$ac_cv_prog_CC 3424if test -n "$CC"; then 3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3426$as_echo "$CC" >&6; } 3427else 3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3429$as_echo "no" >&6; } 3430fi 3431 3432 3433 test -n "$CC" && break 3434 done 3435fi 3436if test -z "$CC"; then 3437 ac_ct_CC=$CC 3438 for ac_prog in cl.exe 3439do 3440 # Extract the first word of "$ac_prog", so it can be a program name with args. 3441set dummy $ac_prog; ac_word=$2 3442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3443$as_echo_n "checking for $ac_word... " >&6; } 3444if ${ac_cv_prog_ac_ct_CC+:} false; then : 3445 $as_echo_n "(cached) " >&6 3446else 3447 if test -n "$ac_ct_CC"; then 3448 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3449else 3450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3451for as_dir in $PATH 3452do 3453 IFS=$as_save_IFS 3454 test -z "$as_dir" && as_dir=. 3455 for ac_exec_ext in '' $ac_executable_extensions; do 3456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3457 ac_cv_prog_ac_ct_CC="$ac_prog" 3458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3459 break 2 3460 fi 3461done 3462 done 3463IFS=$as_save_IFS 3464 3465fi 3466fi 3467ac_ct_CC=$ac_cv_prog_ac_ct_CC 3468if test -n "$ac_ct_CC"; then 3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3470$as_echo "$ac_ct_CC" >&6; } 3471else 3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3473$as_echo "no" >&6; } 3474fi 3475 3476 3477 test -n "$ac_ct_CC" && break 3478done 3479 3480 if test "x$ac_ct_CC" = x; then 3481 CC="" 3482 else 3483 case $cross_compiling:$ac_tool_warned in 3484yes:) 3485{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3486$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3487ac_tool_warned=yes ;; 3488esac 3489 CC=$ac_ct_CC 3490 fi 3491fi 3492 3493fi 3494 3495 3496test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3498as_fn_error $? "no acceptable C compiler found in \$PATH 3499See \`config.log' for more details" "$LINENO" 5; } 3500 3501# Provide some information about the compiler. 3502$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3503set X $ac_compile 3504ac_compiler=$2 3505for ac_option in --version -v -V -qversion; do 3506 { { ac_try="$ac_compiler $ac_option >&5" 3507case "(($ac_try" in 3508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3509 *) ac_try_echo=$ac_try;; 3510esac 3511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3512$as_echo "$ac_try_echo"; } >&5 3513 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3514 ac_status=$? 3515 if test -s conftest.err; then 3516 sed '10a\ 3517... rest of stderr output deleted ... 3518 10q' conftest.err >conftest.er1 3519 cat conftest.er1 >&5 3520 fi 3521 rm -f conftest.er1 conftest.err 3522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3523 test $ac_status = 0; } 3524done 3525 3526cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3527/* end confdefs.h. */ 3528 3529int 3530main () 3531{ 3532 3533 ; 3534 return 0; 3535} 3536_ACEOF 3537ac_clean_files_save=$ac_clean_files 3538ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3539# Try to create an executable without -o first, disregard a.out. 3540# It will help us diagnose broken compilers, and finding out an intuition 3541# of exeext. 3542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3543$as_echo_n "checking whether the C compiler works... " >&6; } 3544ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3545 3546# The possible output files: 3547ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3548 3549ac_rmfiles= 3550for ac_file in $ac_files 3551do 3552 case $ac_file in 3553 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3554 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3555 esac 3556done 3557rm -f $ac_rmfiles 3558 3559if { { ac_try="$ac_link_default" 3560case "(($ac_try" in 3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3562 *) ac_try_echo=$ac_try;; 3563esac 3564eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3565$as_echo "$ac_try_echo"; } >&5 3566 (eval "$ac_link_default") 2>&5 3567 ac_status=$? 3568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3569 test $ac_status = 0; }; then : 3570 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3571# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3572# in a Makefile. We should not override ac_cv_exeext if it was cached, 3573# so that the user can short-circuit this test for compilers unknown to 3574# Autoconf. 3575for ac_file in $ac_files '' 3576do 3577 test -f "$ac_file" || continue 3578 case $ac_file in 3579 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3580 ;; 3581 [ab].out ) 3582 # We found the default executable, but exeext='' is most 3583 # certainly right. 3584 break;; 3585 *.* ) 3586 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3587 then :; else 3588 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3589 fi 3590 # We set ac_cv_exeext here because the later test for it is not 3591 # safe: cross compilers may not add the suffix if given an `-o' 3592 # argument, so we may need to know it at that point already. 3593 # Even if this section looks crufty: it has the advantage of 3594 # actually working. 3595 break;; 3596 * ) 3597 break;; 3598 esac 3599done 3600test "$ac_cv_exeext" = no && ac_cv_exeext= 3601 3602else 3603 ac_file='' 3604fi 3605if test -z "$ac_file"; then : 3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3607$as_echo "no" >&6; } 3608$as_echo "$as_me: failed program was:" >&5 3609sed 's/^/| /' conftest.$ac_ext >&5 3610 3611{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3612$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3613as_fn_error 77 "C compiler cannot create executables 3614See \`config.log' for more details" "$LINENO" 5; } 3615else 3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3617$as_echo "yes" >&6; } 3618fi 3619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3620$as_echo_n "checking for C compiler default output file name... " >&6; } 3621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3622$as_echo "$ac_file" >&6; } 3623ac_exeext=$ac_cv_exeext 3624 3625rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3626ac_clean_files=$ac_clean_files_save 3627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3628$as_echo_n "checking for suffix of executables... " >&6; } 3629if { { ac_try="$ac_link" 3630case "(($ac_try" in 3631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3632 *) ac_try_echo=$ac_try;; 3633esac 3634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3635$as_echo "$ac_try_echo"; } >&5 3636 (eval "$ac_link") 2>&5 3637 ac_status=$? 3638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3639 test $ac_status = 0; }; then : 3640 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3641# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3642# work properly (i.e., refer to `conftest.exe'), while it won't with 3643# `rm'. 3644for ac_file in conftest.exe conftest conftest.*; do 3645 test -f "$ac_file" || continue 3646 case $ac_file in 3647 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3648 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3649 break;; 3650 * ) break;; 3651 esac 3652done 3653else 3654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3655$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3656as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3657See \`config.log' for more details" "$LINENO" 5; } 3658fi 3659rm -f conftest conftest$ac_cv_exeext 3660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3661$as_echo "$ac_cv_exeext" >&6; } 3662 3663rm -f conftest.$ac_ext 3664EXEEXT=$ac_cv_exeext 3665ac_exeext=$EXEEXT 3666cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3667/* end confdefs.h. */ 3668#include <stdio.h> 3669int 3670main () 3671{ 3672FILE *f = fopen ("conftest.out", "w"); 3673 return ferror (f) || fclose (f) != 0; 3674 3675 ; 3676 return 0; 3677} 3678_ACEOF 3679ac_clean_files="$ac_clean_files conftest.out" 3680# Check that the compiler produces executables we can run. If not, either 3681# the compiler is broken, or we cross compile. 3682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3683$as_echo_n "checking whether we are cross compiling... " >&6; } 3684if test "$cross_compiling" != yes; then 3685 { { ac_try="$ac_link" 3686case "(($ac_try" in 3687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3688 *) ac_try_echo=$ac_try;; 3689esac 3690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3691$as_echo "$ac_try_echo"; } >&5 3692 (eval "$ac_link") 2>&5 3693 ac_status=$? 3694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3695 test $ac_status = 0; } 3696 if { ac_try='./conftest$ac_cv_exeext' 3697 { { case "(($ac_try" in 3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3699 *) ac_try_echo=$ac_try;; 3700esac 3701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3702$as_echo "$ac_try_echo"; } >&5 3703 (eval "$ac_try") 2>&5 3704 ac_status=$? 3705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3706 test $ac_status = 0; }; }; then 3707 cross_compiling=no 3708 else 3709 if test "$cross_compiling" = maybe; then 3710 cross_compiling=yes 3711 else 3712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3713$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3714as_fn_error $? "cannot run C compiled programs. 3715If you meant to cross compile, use \`--host'. 3716See \`config.log' for more details" "$LINENO" 5; } 3717 fi 3718 fi 3719fi 3720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3721$as_echo "$cross_compiling" >&6; } 3722 3723rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3724ac_clean_files=$ac_clean_files_save 3725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3726$as_echo_n "checking for suffix of object files... " >&6; } 3727if ${ac_cv_objext+:} false; then : 3728 $as_echo_n "(cached) " >&6 3729else 3730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3731/* end confdefs.h. */ 3732 3733int 3734main () 3735{ 3736 3737 ; 3738 return 0; 3739} 3740_ACEOF 3741rm -f conftest.o conftest.obj 3742if { { ac_try="$ac_compile" 3743case "(($ac_try" in 3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3745 *) ac_try_echo=$ac_try;; 3746esac 3747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3748$as_echo "$ac_try_echo"; } >&5 3749 (eval "$ac_compile") 2>&5 3750 ac_status=$? 3751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3752 test $ac_status = 0; }; then : 3753 for ac_file in conftest.o conftest.obj conftest.*; do 3754 test -f "$ac_file" || continue; 3755 case $ac_file in 3756 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3757 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3758 break;; 3759 esac 3760done 3761else 3762 $as_echo "$as_me: failed program was:" >&5 3763sed 's/^/| /' conftest.$ac_ext >&5 3764 3765{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3766$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3767as_fn_error $? "cannot compute suffix of object files: cannot compile 3768See \`config.log' for more details" "$LINENO" 5; } 3769fi 3770rm -f conftest.$ac_cv_objext conftest.$ac_ext 3771fi 3772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3773$as_echo "$ac_cv_objext" >&6; } 3774OBJEXT=$ac_cv_objext 3775ac_objext=$OBJEXT 3776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3777$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3778if ${ac_cv_c_compiler_gnu+:} false; then : 3779 $as_echo_n "(cached) " >&6 3780else 3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3782/* end confdefs.h. */ 3783 3784int 3785main () 3786{ 3787#ifndef __GNUC__ 3788 choke me 3789#endif 3790 3791 ; 3792 return 0; 3793} 3794_ACEOF 3795if ac_fn_c_try_compile "$LINENO"; then : 3796 ac_compiler_gnu=yes 3797else 3798 ac_compiler_gnu=no 3799fi 3800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3801ac_cv_c_compiler_gnu=$ac_compiler_gnu 3802 3803fi 3804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3805$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3806if test $ac_compiler_gnu = yes; then 3807 GCC=yes 3808else 3809 GCC= 3810fi 3811ac_test_CFLAGS=${CFLAGS+set} 3812ac_save_CFLAGS=$CFLAGS 3813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3814$as_echo_n "checking whether $CC accepts -g... " >&6; } 3815if ${ac_cv_prog_cc_g+:} false; then : 3816 $as_echo_n "(cached) " >&6 3817else 3818 ac_save_c_werror_flag=$ac_c_werror_flag 3819 ac_c_werror_flag=yes 3820 ac_cv_prog_cc_g=no 3821 CFLAGS="-g" 3822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3823/* end confdefs.h. */ 3824 3825int 3826main () 3827{ 3828 3829 ; 3830 return 0; 3831} 3832_ACEOF 3833if ac_fn_c_try_compile "$LINENO"; then : 3834 ac_cv_prog_cc_g=yes 3835else 3836 CFLAGS="" 3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3838/* end confdefs.h. */ 3839 3840int 3841main () 3842{ 3843 3844 ; 3845 return 0; 3846} 3847_ACEOF 3848if ac_fn_c_try_compile "$LINENO"; then : 3849 3850else 3851 ac_c_werror_flag=$ac_save_c_werror_flag 3852 CFLAGS="-g" 3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3854/* end confdefs.h. */ 3855 3856int 3857main () 3858{ 3859 3860 ; 3861 return 0; 3862} 3863_ACEOF 3864if ac_fn_c_try_compile "$LINENO"; then : 3865 ac_cv_prog_cc_g=yes 3866fi 3867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3868fi 3869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3870fi 3871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3872 ac_c_werror_flag=$ac_save_c_werror_flag 3873fi 3874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3875$as_echo "$ac_cv_prog_cc_g" >&6; } 3876if test "$ac_test_CFLAGS" = set; then 3877 CFLAGS=$ac_save_CFLAGS 3878elif test $ac_cv_prog_cc_g = yes; then 3879 if test "$GCC" = yes; then 3880 CFLAGS="-g -O2" 3881 else 3882 CFLAGS="-g" 3883 fi 3884else 3885 if test "$GCC" = yes; then 3886 CFLAGS="-O2" 3887 else 3888 CFLAGS= 3889 fi 3890fi 3891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3892$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3893if ${ac_cv_prog_cc_c89+:} false; then : 3894 $as_echo_n "(cached) " >&6 3895else 3896 ac_cv_prog_cc_c89=no 3897ac_save_CC=$CC 3898cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3899/* end confdefs.h. */ 3900#include <stdarg.h> 3901#include <stdio.h> 3902struct stat; 3903/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3904struct buf { int x; }; 3905FILE * (*rcsopen) (struct buf *, struct stat *, int); 3906static char *e (p, i) 3907 char **p; 3908 int i; 3909{ 3910 return p[i]; 3911} 3912static char *f (char * (*g) (char **, int), char **p, ...) 3913{ 3914 char *s; 3915 va_list v; 3916 va_start (v,p); 3917 s = g (p, va_arg (v,int)); 3918 va_end (v); 3919 return s; 3920} 3921 3922/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3923 function prototypes and stuff, but not '\xHH' hex character constants. 3924 These don't provoke an error unfortunately, instead are silently treated 3925 as 'x'. The following induces an error, until -std is added to get 3926 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3927 array size at least. It's necessary to write '\x00'==0 to get something 3928 that's true only with -std. */ 3929int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3930 3931/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3932 inside strings and character constants. */ 3933#define FOO(x) 'x' 3934int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3935 3936int test (int i, double x); 3937struct s1 {int (*f) (int a);}; 3938struct s2 {int (*f) (double a);}; 3939int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3940int argc; 3941char **argv; 3942int 3943main () 3944{ 3945return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3946 ; 3947 return 0; 3948} 3949_ACEOF 3950for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3951 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3952do 3953 CC="$ac_save_CC $ac_arg" 3954 if ac_fn_c_try_compile "$LINENO"; then : 3955 ac_cv_prog_cc_c89=$ac_arg 3956fi 3957rm -f core conftest.err conftest.$ac_objext 3958 test "x$ac_cv_prog_cc_c89" != "xno" && break 3959done 3960rm -f conftest.$ac_ext 3961CC=$ac_save_CC 3962 3963fi 3964# AC_CACHE_VAL 3965case "x$ac_cv_prog_cc_c89" in 3966 x) 3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3968$as_echo "none needed" >&6; } ;; 3969 xno) 3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3971$as_echo "unsupported" >&6; } ;; 3972 *) 3973 CC="$CC $ac_cv_prog_cc_c89" 3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3975$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3976esac 3977if test "x$ac_cv_prog_cc_c89" != xno; then : 3978 3979fi 3980 3981ac_ext=c 3982ac_cpp='$CPP $CPPFLAGS' 3983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3985ac_compiler_gnu=$ac_cv_c_compiler_gnu 3986 3987ac_ext=c 3988ac_cpp='$CPP $CPPFLAGS' 3989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3991ac_compiler_gnu=$ac_cv_c_compiler_gnu 3992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3993$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3994if ${am_cv_prog_cc_c_o+:} false; then : 3995 $as_echo_n "(cached) " >&6 3996else 3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3998/* end confdefs.h. */ 3999 4000int 4001main () 4002{ 4003 4004 ; 4005 return 0; 4006} 4007_ACEOF 4008 # Make sure it works both with $CC and with simple cc. 4009 # Following AC_PROG_CC_C_O, we do the test twice because some 4010 # compilers refuse to overwrite an existing .o file with -o, 4011 # though they will create one. 4012 am_cv_prog_cc_c_o=yes 4013 for am_i in 1 2; do 4014 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4015 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4016 ac_status=$? 4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4018 (exit $ac_status); } \ 4019 && test -f conftest2.$ac_objext; then 4020 : OK 4021 else 4022 am_cv_prog_cc_c_o=no 4023 break 4024 fi 4025 done 4026 rm -f core conftest* 4027 unset am_i 4028fi 4029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4030$as_echo "$am_cv_prog_cc_c_o" >&6; } 4031if test "$am_cv_prog_cc_c_o" != yes; then 4032 # Losing compiler, so override with the script. 4033 # FIXME: It is wrong to rewrite CC. 4034 # But if we don't then we get into trouble of one sort or another. 4035 # A longer-term fix would be to have automake use am__CC in this case, 4036 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4037 CC="$am_aux_dir/compile $CC" 4038fi 4039ac_ext=c 4040ac_cpp='$CPP $CPPFLAGS' 4041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4043ac_compiler_gnu=$ac_cv_c_compiler_gnu 4044 4045DEPDIR="${am__leading_dot}deps" 4046 4047ac_config_commands="$ac_config_commands depfiles" 4048 4049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4050$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 4051cat > confinc.mk << 'END' 4052am__doit: 4053 @echo this is the am__doit target >confinc.out 4054.PHONY: am__doit 4055END 4056am__include="#" 4057am__quote= 4058# BSD make does it like this. 4059echo '.include "confinc.mk" # ignored' > confmf.BSD 4060# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4061echo 'include confinc.mk # ignored' > confmf.GNU 4062_am_result=no 4063for s in GNU BSD; do 4064 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4065 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4066 ac_status=$? 4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4068 (exit $ac_status); } 4069 case $?:`cat confinc.out 2>/dev/null` in #( 4070 '0:this is the am__doit target') : 4071 case $s in #( 4072 BSD) : 4073 am__include='.include' am__quote='"' ;; #( 4074 *) : 4075 am__include='include' am__quote='' ;; 4076esac ;; #( 4077 *) : 4078 ;; 4079esac 4080 if test "$am__include" != "#"; then 4081 _am_result="yes ($s style)" 4082 break 4083 fi 4084done 4085rm -f confinc.* confmf.* 4086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4087$as_echo "${_am_result}" >&6; } 4088 4089# Check whether --enable-dependency-tracking was given. 4090if test "${enable_dependency_tracking+set}" = set; then : 4091 enableval=$enable_dependency_tracking; 4092fi 4093 4094if test "x$enable_dependency_tracking" != xno; then 4095 am_depcomp="$ac_aux_dir/depcomp" 4096 AMDEPBACKSLASH='\' 4097 am__nodep='_no' 4098fi 4099 if test "x$enable_dependency_tracking" != xno; then 4100 AMDEP_TRUE= 4101 AMDEP_FALSE='#' 4102else 4103 AMDEP_TRUE='#' 4104 AMDEP_FALSE= 4105fi 4106 4107 4108 4109depcc="$CC" am_compiler_list= 4110 4111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4112$as_echo_n "checking dependency style of $depcc... " >&6; } 4113if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4114 $as_echo_n "(cached) " >&6 4115else 4116 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4117 # We make a subdir and do the tests there. Otherwise we can end up 4118 # making bogus files that we don't know about and never remove. For 4119 # instance it was reported that on HP-UX the gcc test will end up 4120 # making a dummy file named 'D' -- because '-MD' means "put the output 4121 # in D". 4122 rm -rf conftest.dir 4123 mkdir conftest.dir 4124 # Copy depcomp to subdir because otherwise we won't find it if we're 4125 # using a relative directory. 4126 cp "$am_depcomp" conftest.dir 4127 cd conftest.dir 4128 # We will build objects and dependencies in a subdirectory because 4129 # it helps to detect inapplicable dependency modes. For instance 4130 # both Tru64's cc and ICC support -MD to output dependencies as a 4131 # side effect of compilation, but ICC will put the dependencies in 4132 # the current directory while Tru64 will put them in the object 4133 # directory. 4134 mkdir sub 4135 4136 am_cv_CC_dependencies_compiler_type=none 4137 if test "$am_compiler_list" = ""; then 4138 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4139 fi 4140 am__universal=false 4141 case " $depcc " in #( 4142 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4143 esac 4144 4145 for depmode in $am_compiler_list; do 4146 # Setup a source with many dependencies, because some compilers 4147 # like to wrap large dependency lists on column 80 (with \), and 4148 # we should not choose a depcomp mode which is confused by this. 4149 # 4150 # We need to recreate these files for each test, as the compiler may 4151 # overwrite some of them when testing with obscure command lines. 4152 # This happens at least with the AIX C compiler. 4153 : > sub/conftest.c 4154 for i in 1 2 3 4 5 6; do 4155 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4156 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4157 # Solaris 10 /bin/sh. 4158 echo '/* dummy */' > sub/conftst$i.h 4159 done 4160 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4161 4162 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4163 # mode. It turns out that the SunPro C++ compiler does not properly 4164 # handle '-M -o', and we need to detect this. Also, some Intel 4165 # versions had trouble with output in subdirs. 4166 am__obj=sub/conftest.${OBJEXT-o} 4167 am__minus_obj="-o $am__obj" 4168 case $depmode in 4169 gcc) 4170 # This depmode causes a compiler race in universal mode. 4171 test "$am__universal" = false || continue 4172 ;; 4173 nosideeffect) 4174 # After this tag, mechanisms are not by side-effect, so they'll 4175 # only be used when explicitly requested. 4176 if test "x$enable_dependency_tracking" = xyes; then 4177 continue 4178 else 4179 break 4180 fi 4181 ;; 4182 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4183 # This compiler won't grok '-c -o', but also, the minuso test has 4184 # not run yet. These depmodes are late enough in the game, and 4185 # so weak that their functioning should not be impacted. 4186 am__obj=conftest.${OBJEXT-o} 4187 am__minus_obj= 4188 ;; 4189 none) break ;; 4190 esac 4191 if depmode=$depmode \ 4192 source=sub/conftest.c object=$am__obj \ 4193 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4194 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4195 >/dev/null 2>conftest.err && 4196 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4197 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4198 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4199 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4200 # icc doesn't choke on unknown options, it will just issue warnings 4201 # or remarks (even with -Werror). So we grep stderr for any message 4202 # that says an option was ignored or not supported. 4203 # When given -MP, icc 7.0 and 7.1 complain thusly: 4204 # icc: Command line warning: ignoring option '-M'; no argument required 4205 # The diagnosis changed in icc 8.0: 4206 # icc: Command line remark: option '-MP' not supported 4207 if (grep 'ignoring option' conftest.err || 4208 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4209 am_cv_CC_dependencies_compiler_type=$depmode 4210 break 4211 fi 4212 fi 4213 done 4214 4215 cd .. 4216 rm -rf conftest.dir 4217else 4218 am_cv_CC_dependencies_compiler_type=none 4219fi 4220 4221fi 4222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4223$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4224CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4225 4226 if 4227 test "x$enable_dependency_tracking" != xno \ 4228 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4229 am__fastdepCC_TRUE= 4230 am__fastdepCC_FALSE='#' 4231else 4232 am__fastdepCC_TRUE='#' 4233 am__fastdepCC_FALSE= 4234fi 4235 4236 4237ac_ext=cpp 4238ac_cpp='$CXXCPP $CPPFLAGS' 4239ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4240ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4241ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4242if test -z "$CXX"; then 4243 if test -n "$CCC"; then 4244 CXX=$CCC 4245 else 4246 if test -n "$ac_tool_prefix"; then 4247 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4248 do 4249 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4250set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4252$as_echo_n "checking for $ac_word... " >&6; } 4253if ${ac_cv_prog_CXX+:} false; then : 4254 $as_echo_n "(cached) " >&6 4255else 4256 if test -n "$CXX"; then 4257 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4258else 4259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4260for as_dir in $PATH 4261do 4262 IFS=$as_save_IFS 4263 test -z "$as_dir" && as_dir=. 4264 for ac_exec_ext in '' $ac_executable_extensions; do 4265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4266 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4268 break 2 4269 fi 4270done 4271 done 4272IFS=$as_save_IFS 4273 4274fi 4275fi 4276CXX=$ac_cv_prog_CXX 4277if test -n "$CXX"; then 4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4279$as_echo "$CXX" >&6; } 4280else 4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4282$as_echo "no" >&6; } 4283fi 4284 4285 4286 test -n "$CXX" && break 4287 done 4288fi 4289if test -z "$CXX"; then 4290 ac_ct_CXX=$CXX 4291 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4292do 4293 # Extract the first word of "$ac_prog", so it can be a program name with args. 4294set dummy $ac_prog; ac_word=$2 4295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4296$as_echo_n "checking for $ac_word... " >&6; } 4297if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4298 $as_echo_n "(cached) " >&6 4299else 4300 if test -n "$ac_ct_CXX"; then 4301 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4302else 4303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4304for as_dir in $PATH 4305do 4306 IFS=$as_save_IFS 4307 test -z "$as_dir" && as_dir=. 4308 for ac_exec_ext in '' $ac_executable_extensions; do 4309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4310 ac_cv_prog_ac_ct_CXX="$ac_prog" 4311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4312 break 2 4313 fi 4314done 4315 done 4316IFS=$as_save_IFS 4317 4318fi 4319fi 4320ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4321if test -n "$ac_ct_CXX"; then 4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4323$as_echo "$ac_ct_CXX" >&6; } 4324else 4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4326$as_echo "no" >&6; } 4327fi 4328 4329 4330 test -n "$ac_ct_CXX" && break 4331done 4332 4333 if test "x$ac_ct_CXX" = x; then 4334 CXX="g++" 4335 else 4336 case $cross_compiling:$ac_tool_warned in 4337yes:) 4338{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4339$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4340ac_tool_warned=yes ;; 4341esac 4342 CXX=$ac_ct_CXX 4343 fi 4344fi 4345 4346 fi 4347fi 4348# Provide some information about the compiler. 4349$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4350set X $ac_compile 4351ac_compiler=$2 4352for ac_option in --version -v -V -qversion; do 4353 { { ac_try="$ac_compiler $ac_option >&5" 4354case "(($ac_try" in 4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4356 *) ac_try_echo=$ac_try;; 4357esac 4358eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4359$as_echo "$ac_try_echo"; } >&5 4360 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4361 ac_status=$? 4362 if test -s conftest.err; then 4363 sed '10a\ 4364... rest of stderr output deleted ... 4365 10q' conftest.err >conftest.er1 4366 cat conftest.er1 >&5 4367 fi 4368 rm -f conftest.er1 conftest.err 4369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4370 test $ac_status = 0; } 4371done 4372 4373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4374$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4375if ${ac_cv_cxx_compiler_gnu+:} false; then : 4376 $as_echo_n "(cached) " >&6 4377else 4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4379/* end confdefs.h. */ 4380 4381int 4382main () 4383{ 4384#ifndef __GNUC__ 4385 choke me 4386#endif 4387 4388 ; 4389 return 0; 4390} 4391_ACEOF 4392if ac_fn_cxx_try_compile "$LINENO"; then : 4393 ac_compiler_gnu=yes 4394else 4395 ac_compiler_gnu=no 4396fi 4397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4398ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4399 4400fi 4401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4402$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4403if test $ac_compiler_gnu = yes; then 4404 GXX=yes 4405else 4406 GXX= 4407fi 4408ac_test_CXXFLAGS=${CXXFLAGS+set} 4409ac_save_CXXFLAGS=$CXXFLAGS 4410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4411$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4412if ${ac_cv_prog_cxx_g+:} false; then : 4413 $as_echo_n "(cached) " >&6 4414else 4415 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4416 ac_cxx_werror_flag=yes 4417 ac_cv_prog_cxx_g=no 4418 CXXFLAGS="-g" 4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4420/* end confdefs.h. */ 4421 4422int 4423main () 4424{ 4425 4426 ; 4427 return 0; 4428} 4429_ACEOF 4430if ac_fn_cxx_try_compile "$LINENO"; then : 4431 ac_cv_prog_cxx_g=yes 4432else 4433 CXXFLAGS="" 4434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4435/* end confdefs.h. */ 4436 4437int 4438main () 4439{ 4440 4441 ; 4442 return 0; 4443} 4444_ACEOF 4445if ac_fn_cxx_try_compile "$LINENO"; then : 4446 4447else 4448 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4449 CXXFLAGS="-g" 4450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4451/* end confdefs.h. */ 4452 4453int 4454main () 4455{ 4456 4457 ; 4458 return 0; 4459} 4460_ACEOF 4461if ac_fn_cxx_try_compile "$LINENO"; then : 4462 ac_cv_prog_cxx_g=yes 4463fi 4464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4465fi 4466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4467fi 4468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4469 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4470fi 4471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4472$as_echo "$ac_cv_prog_cxx_g" >&6; } 4473if test "$ac_test_CXXFLAGS" = set; then 4474 CXXFLAGS=$ac_save_CXXFLAGS 4475elif test $ac_cv_prog_cxx_g = yes; then 4476 if test "$GXX" = yes; then 4477 CXXFLAGS="-g -O2" 4478 else 4479 CXXFLAGS="-g" 4480 fi 4481else 4482 if test "$GXX" = yes; then 4483 CXXFLAGS="-O2" 4484 else 4485 CXXFLAGS= 4486 fi 4487fi 4488ac_ext=c 4489ac_cpp='$CPP $CPPFLAGS' 4490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4492ac_compiler_gnu=$ac_cv_c_compiler_gnu 4493 4494depcc="$CXX" am_compiler_list= 4495 4496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4497$as_echo_n "checking dependency style of $depcc... " >&6; } 4498if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 4499 $as_echo_n "(cached) " >&6 4500else 4501 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4502 # We make a subdir and do the tests there. Otherwise we can end up 4503 # making bogus files that we don't know about and never remove. For 4504 # instance it was reported that on HP-UX the gcc test will end up 4505 # making a dummy file named 'D' -- because '-MD' means "put the output 4506 # in D". 4507 rm -rf conftest.dir 4508 mkdir conftest.dir 4509 # Copy depcomp to subdir because otherwise we won't find it if we're 4510 # using a relative directory. 4511 cp "$am_depcomp" conftest.dir 4512 cd conftest.dir 4513 # We will build objects and dependencies in a subdirectory because 4514 # it helps to detect inapplicable dependency modes. For instance 4515 # both Tru64's cc and ICC support -MD to output dependencies as a 4516 # side effect of compilation, but ICC will put the dependencies in 4517 # the current directory while Tru64 will put them in the object 4518 # directory. 4519 mkdir sub 4520 4521 am_cv_CXX_dependencies_compiler_type=none 4522 if test "$am_compiler_list" = ""; then 4523 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4524 fi 4525 am__universal=false 4526 case " $depcc " in #( 4527 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4528 esac 4529 4530 for depmode in $am_compiler_list; do 4531 # Setup a source with many dependencies, because some compilers 4532 # like to wrap large dependency lists on column 80 (with \), and 4533 # we should not choose a depcomp mode which is confused by this. 4534 # 4535 # We need to recreate these files for each test, as the compiler may 4536 # overwrite some of them when testing with obscure command lines. 4537 # This happens at least with the AIX C compiler. 4538 : > sub/conftest.c 4539 for i in 1 2 3 4 5 6; do 4540 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4541 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4542 # Solaris 10 /bin/sh. 4543 echo '/* dummy */' > sub/conftst$i.h 4544 done 4545 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4546 4547 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4548 # mode. It turns out that the SunPro C++ compiler does not properly 4549 # handle '-M -o', and we need to detect this. Also, some Intel 4550 # versions had trouble with output in subdirs. 4551 am__obj=sub/conftest.${OBJEXT-o} 4552 am__minus_obj="-o $am__obj" 4553 case $depmode in 4554 gcc) 4555 # This depmode causes a compiler race in universal mode. 4556 test "$am__universal" = false || continue 4557 ;; 4558 nosideeffect) 4559 # After this tag, mechanisms are not by side-effect, so they'll 4560 # only be used when explicitly requested. 4561 if test "x$enable_dependency_tracking" = xyes; then 4562 continue 4563 else 4564 break 4565 fi 4566 ;; 4567 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4568 # This compiler won't grok '-c -o', but also, the minuso test has 4569 # not run yet. These depmodes are late enough in the game, and 4570 # so weak that their functioning should not be impacted. 4571 am__obj=conftest.${OBJEXT-o} 4572 am__minus_obj= 4573 ;; 4574 none) break ;; 4575 esac 4576 if depmode=$depmode \ 4577 source=sub/conftest.c object=$am__obj \ 4578 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4579 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4580 >/dev/null 2>conftest.err && 4581 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4582 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4583 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4584 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4585 # icc doesn't choke on unknown options, it will just issue warnings 4586 # or remarks (even with -Werror). So we grep stderr for any message 4587 # that says an option was ignored or not supported. 4588 # When given -MP, icc 7.0 and 7.1 complain thusly: 4589 # icc: Command line warning: ignoring option '-M'; no argument required 4590 # The diagnosis changed in icc 8.0: 4591 # icc: Command line remark: option '-MP' not supported 4592 if (grep 'ignoring option' conftest.err || 4593 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4594 am_cv_CXX_dependencies_compiler_type=$depmode 4595 break 4596 fi 4597 fi 4598 done 4599 4600 cd .. 4601 rm -rf conftest.dir 4602else 4603 am_cv_CXX_dependencies_compiler_type=none 4604fi 4605 4606fi 4607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4608$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4609CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4610 4611 if 4612 test "x$enable_dependency_tracking" != xno \ 4613 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4614 am__fastdepCXX_TRUE= 4615 am__fastdepCXX_FALSE='#' 4616else 4617 am__fastdepCXX_TRUE='#' 4618 am__fastdepCXX_FALSE= 4619fi 4620 4621 4622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4623$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4624if ${ac_cv_path_GREP+:} false; then : 4625 $as_echo_n "(cached) " >&6 4626else 4627 if test -z "$GREP"; then 4628 ac_path_GREP_found=false 4629 # Loop through the user's path and test for each of PROGNAME-LIST 4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4631for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4632do 4633 IFS=$as_save_IFS 4634 test -z "$as_dir" && as_dir=. 4635 for ac_prog in grep ggrep; do 4636 for ac_exec_ext in '' $ac_executable_extensions; do 4637 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4638 as_fn_executable_p "$ac_path_GREP" || continue 4639# Check for GNU ac_path_GREP and select it if it is found. 4640 # Check for GNU $ac_path_GREP 4641case `"$ac_path_GREP" --version 2>&1` in 4642*GNU*) 4643 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4644*) 4645 ac_count=0 4646 $as_echo_n 0123456789 >"conftest.in" 4647 while : 4648 do 4649 cat "conftest.in" "conftest.in" >"conftest.tmp" 4650 mv "conftest.tmp" "conftest.in" 4651 cp "conftest.in" "conftest.nl" 4652 $as_echo 'GREP' >> "conftest.nl" 4653 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4654 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4655 as_fn_arith $ac_count + 1 && ac_count=$as_val 4656 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4657 # Best one so far, save it but keep looking for a better one 4658 ac_cv_path_GREP="$ac_path_GREP" 4659 ac_path_GREP_max=$ac_count 4660 fi 4661 # 10*(2^10) chars as input seems more than enough 4662 test $ac_count -gt 10 && break 4663 done 4664 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4665esac 4666 4667 $ac_path_GREP_found && break 3 4668 done 4669 done 4670 done 4671IFS=$as_save_IFS 4672 if test -z "$ac_cv_path_GREP"; then 4673 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4674 fi 4675else 4676 ac_cv_path_GREP=$GREP 4677fi 4678 4679fi 4680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4681$as_echo "$ac_cv_path_GREP" >&6; } 4682 GREP="$ac_cv_path_GREP" 4683 4684 4685case `pwd` in 4686 *\ * | *\ *) 4687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4688$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4689esac 4690 4691 4692 4693macro_version='2.4.6' 4694macro_revision='2.4.6' 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708ltmain=$ac_aux_dir/ltmain.sh 4709 4710# Make sure we can run config.sub. 4711$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4712 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4713 4714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4715$as_echo_n "checking build system type... " >&6; } 4716if ${ac_cv_build+:} false; then : 4717 $as_echo_n "(cached) " >&6 4718else 4719 ac_build_alias=$build_alias 4720test "x$ac_build_alias" = x && 4721 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4722test "x$ac_build_alias" = x && 4723 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4724ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4725 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4726 4727fi 4728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4729$as_echo "$ac_cv_build" >&6; } 4730case $ac_cv_build in 4731*-*-*) ;; 4732*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4733esac 4734build=$ac_cv_build 4735ac_save_IFS=$IFS; IFS='-' 4736set x $ac_cv_build 4737shift 4738build_cpu=$1 4739build_vendor=$2 4740shift; shift 4741# Remember, the first character of IFS is used to create $*, 4742# except with old shells: 4743build_os=$* 4744IFS=$ac_save_IFS 4745case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4746 4747 4748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4749$as_echo_n "checking host system type... " >&6; } 4750if ${ac_cv_host+:} false; then : 4751 $as_echo_n "(cached) " >&6 4752else 4753 if test "x$host_alias" = x; then 4754 ac_cv_host=$ac_cv_build 4755else 4756 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4757 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4758fi 4759 4760fi 4761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4762$as_echo "$ac_cv_host" >&6; } 4763case $ac_cv_host in 4764*-*-*) ;; 4765*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4766esac 4767host=$ac_cv_host 4768ac_save_IFS=$IFS; IFS='-' 4769set x $ac_cv_host 4770shift 4771host_cpu=$1 4772host_vendor=$2 4773shift; shift 4774# Remember, the first character of IFS is used to create $*, 4775# except with old shells: 4776host_os=$* 4777IFS=$ac_save_IFS 4778case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4779 4780 4781# Backslashify metacharacters that are still active within 4782# double-quoted strings. 4783sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4784 4785# Same as above, but do not quote variable references. 4786double_quote_subst='s/\(["`\\]\)/\\\1/g' 4787 4788# Sed substitution to delay expansion of an escaped shell variable in a 4789# double_quote_subst'ed string. 4790delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4791 4792# Sed substitution to delay expansion of an escaped single quote. 4793delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4794 4795# Sed substitution to avoid accidental globbing in evaled expressions 4796no_glob_subst='s/\*/\\\*/g' 4797 4798ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4799ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4800ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4801 4802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4803$as_echo_n "checking how to print strings... " >&6; } 4804# Test print first, because it will be a builtin if present. 4805if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4806 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4807 ECHO='print -r --' 4808elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4809 ECHO='printf %s\n' 4810else 4811 # Use this function as a fallback that always works. 4812 func_fallback_echo () 4813 { 4814 eval 'cat <<_LTECHO_EOF 4815$1 4816_LTECHO_EOF' 4817 } 4818 ECHO='func_fallback_echo' 4819fi 4820 4821# func_echo_all arg... 4822# Invoke $ECHO with all args, space-separated. 4823func_echo_all () 4824{ 4825 $ECHO "" 4826} 4827 4828case $ECHO in 4829 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4830$as_echo "printf" >&6; } ;; 4831 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4832$as_echo "print -r" >&6; } ;; 4833 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4834$as_echo "cat" >&6; } ;; 4835esac 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4851$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4852if ${ac_cv_path_SED+:} false; then : 4853 $as_echo_n "(cached) " >&6 4854else 4855 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4856 for ac_i in 1 2 3 4 5 6 7; do 4857 ac_script="$ac_script$as_nl$ac_script" 4858 done 4859 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4860 { ac_script=; unset ac_script;} 4861 if test -z "$SED"; then 4862 ac_path_SED_found=false 4863 # Loop through the user's path and test for each of PROGNAME-LIST 4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4865for as_dir in $PATH 4866do 4867 IFS=$as_save_IFS 4868 test -z "$as_dir" && as_dir=. 4869 for ac_prog in sed gsed; do 4870 for ac_exec_ext in '' $ac_executable_extensions; do 4871 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4872 as_fn_executable_p "$ac_path_SED" || continue 4873# Check for GNU ac_path_SED and select it if it is found. 4874 # Check for GNU $ac_path_SED 4875case `"$ac_path_SED" --version 2>&1` in 4876*GNU*) 4877 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4878*) 4879 ac_count=0 4880 $as_echo_n 0123456789 >"conftest.in" 4881 while : 4882 do 4883 cat "conftest.in" "conftest.in" >"conftest.tmp" 4884 mv "conftest.tmp" "conftest.in" 4885 cp "conftest.in" "conftest.nl" 4886 $as_echo '' >> "conftest.nl" 4887 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4888 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4889 as_fn_arith $ac_count + 1 && ac_count=$as_val 4890 if test $ac_count -gt ${ac_path_SED_max-0}; then 4891 # Best one so far, save it but keep looking for a better one 4892 ac_cv_path_SED="$ac_path_SED" 4893 ac_path_SED_max=$ac_count 4894 fi 4895 # 10*(2^10) chars as input seems more than enough 4896 test $ac_count -gt 10 && break 4897 done 4898 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4899esac 4900 4901 $ac_path_SED_found && break 3 4902 done 4903 done 4904 done 4905IFS=$as_save_IFS 4906 if test -z "$ac_cv_path_SED"; then 4907 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4908 fi 4909else 4910 ac_cv_path_SED=$SED 4911fi 4912 4913fi 4914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4915$as_echo "$ac_cv_path_SED" >&6; } 4916 SED="$ac_cv_path_SED" 4917 rm -f conftest.sed 4918 4919test -z "$SED" && SED=sed 4920Xsed="$SED -e 1s/^X//" 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4933$as_echo_n "checking for egrep... " >&6; } 4934if ${ac_cv_path_EGREP+:} false; then : 4935 $as_echo_n "(cached) " >&6 4936else 4937 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4938 then ac_cv_path_EGREP="$GREP -E" 4939 else 4940 if test -z "$EGREP"; then 4941 ac_path_EGREP_found=false 4942 # Loop through the user's path and test for each of PROGNAME-LIST 4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4944for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4945do 4946 IFS=$as_save_IFS 4947 test -z "$as_dir" && as_dir=. 4948 for ac_prog in egrep; do 4949 for ac_exec_ext in '' $ac_executable_extensions; do 4950 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4951 as_fn_executable_p "$ac_path_EGREP" || continue 4952# Check for GNU ac_path_EGREP and select it if it is found. 4953 # Check for GNU $ac_path_EGREP 4954case `"$ac_path_EGREP" --version 2>&1` in 4955*GNU*) 4956 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4957*) 4958 ac_count=0 4959 $as_echo_n 0123456789 >"conftest.in" 4960 while : 4961 do 4962 cat "conftest.in" "conftest.in" >"conftest.tmp" 4963 mv "conftest.tmp" "conftest.in" 4964 cp "conftest.in" "conftest.nl" 4965 $as_echo 'EGREP' >> "conftest.nl" 4966 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4967 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4968 as_fn_arith $ac_count + 1 && ac_count=$as_val 4969 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4970 # Best one so far, save it but keep looking for a better one 4971 ac_cv_path_EGREP="$ac_path_EGREP" 4972 ac_path_EGREP_max=$ac_count 4973 fi 4974 # 10*(2^10) chars as input seems more than enough 4975 test $ac_count -gt 10 && break 4976 done 4977 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4978esac 4979 4980 $ac_path_EGREP_found && break 3 4981 done 4982 done 4983 done 4984IFS=$as_save_IFS 4985 if test -z "$ac_cv_path_EGREP"; then 4986 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4987 fi 4988else 4989 ac_cv_path_EGREP=$EGREP 4990fi 4991 4992 fi 4993fi 4994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4995$as_echo "$ac_cv_path_EGREP" >&6; } 4996 EGREP="$ac_cv_path_EGREP" 4997 4998 4999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5000$as_echo_n "checking for fgrep... " >&6; } 5001if ${ac_cv_path_FGREP+:} false; then : 5002 $as_echo_n "(cached) " >&6 5003else 5004 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5005 then ac_cv_path_FGREP="$GREP -F" 5006 else 5007 if test -z "$FGREP"; then 5008 ac_path_FGREP_found=false 5009 # Loop through the user's path and test for each of PROGNAME-LIST 5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5011for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5012do 5013 IFS=$as_save_IFS 5014 test -z "$as_dir" && as_dir=. 5015 for ac_prog in fgrep; do 5016 for ac_exec_ext in '' $ac_executable_extensions; do 5017 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5018 as_fn_executable_p "$ac_path_FGREP" || continue 5019# Check for GNU ac_path_FGREP and select it if it is found. 5020 # Check for GNU $ac_path_FGREP 5021case `"$ac_path_FGREP" --version 2>&1` in 5022*GNU*) 5023 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5024*) 5025 ac_count=0 5026 $as_echo_n 0123456789 >"conftest.in" 5027 while : 5028 do 5029 cat "conftest.in" "conftest.in" >"conftest.tmp" 5030 mv "conftest.tmp" "conftest.in" 5031 cp "conftest.in" "conftest.nl" 5032 $as_echo 'FGREP' >> "conftest.nl" 5033 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5034 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5035 as_fn_arith $ac_count + 1 && ac_count=$as_val 5036 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5037 # Best one so far, save it but keep looking for a better one 5038 ac_cv_path_FGREP="$ac_path_FGREP" 5039 ac_path_FGREP_max=$ac_count 5040 fi 5041 # 10*(2^10) chars as input seems more than enough 5042 test $ac_count -gt 10 && break 5043 done 5044 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5045esac 5046 5047 $ac_path_FGREP_found && break 3 5048 done 5049 done 5050 done 5051IFS=$as_save_IFS 5052 if test -z "$ac_cv_path_FGREP"; then 5053 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5054 fi 5055else 5056 ac_cv_path_FGREP=$FGREP 5057fi 5058 5059 fi 5060fi 5061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5062$as_echo "$ac_cv_path_FGREP" >&6; } 5063 FGREP="$ac_cv_path_FGREP" 5064 5065 5066test -z "$GREP" && GREP=grep 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086# Check whether --with-gnu-ld was given. 5087if test "${with_gnu_ld+set}" = set; then : 5088 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5089else 5090 with_gnu_ld=no 5091fi 5092 5093ac_prog=ld 5094if test yes = "$GCC"; then 5095 # Check if gcc -print-prog-name=ld gives a path. 5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5097$as_echo_n "checking for ld used by $CC... " >&6; } 5098 case $host in 5099 *-*-mingw*) 5100 # gcc leaves a trailing carriage return, which upsets mingw 5101 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5102 *) 5103 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5104 esac 5105 case $ac_prog in 5106 # Accept absolute paths. 5107 [\\/]* | ?:[\\/]*) 5108 re_direlt='/[^/][^/]*/\.\./' 5109 # Canonicalize the pathname of ld 5110 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5111 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5112 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5113 done 5114 test -z "$LD" && LD=$ac_prog 5115 ;; 5116 "") 5117 # If it fails, then pretend we aren't using GCC. 5118 ac_prog=ld 5119 ;; 5120 *) 5121 # If it is relative, then search for the first ld in PATH. 5122 with_gnu_ld=unknown 5123 ;; 5124 esac 5125elif test yes = "$with_gnu_ld"; then 5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5127$as_echo_n "checking for GNU ld... " >&6; } 5128else 5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5130$as_echo_n "checking for non-GNU ld... " >&6; } 5131fi 5132if ${lt_cv_path_LD+:} false; then : 5133 $as_echo_n "(cached) " >&6 5134else 5135 if test -z "$LD"; then 5136 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5137 for ac_dir in $PATH; do 5138 IFS=$lt_save_ifs 5139 test -z "$ac_dir" && ac_dir=. 5140 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5141 lt_cv_path_LD=$ac_dir/$ac_prog 5142 # Check to see if the program is GNU ld. I'd rather use --version, 5143 # but apparently some variants of GNU ld only accept -v. 5144 # Break only if it was the GNU/non-GNU ld that we prefer. 5145 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5146 *GNU* | *'with BFD'*) 5147 test no != "$with_gnu_ld" && break 5148 ;; 5149 *) 5150 test yes != "$with_gnu_ld" && break 5151 ;; 5152 esac 5153 fi 5154 done 5155 IFS=$lt_save_ifs 5156else 5157 lt_cv_path_LD=$LD # Let the user override the test with a path. 5158fi 5159fi 5160 5161LD=$lt_cv_path_LD 5162if test -n "$LD"; then 5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5164$as_echo "$LD" >&6; } 5165else 5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5167$as_echo "no" >&6; } 5168fi 5169test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5171$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5172if ${lt_cv_prog_gnu_ld+:} false; then : 5173 $as_echo_n "(cached) " >&6 5174else 5175 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5176case `$LD -v 2>&1 </dev/null` in 5177*GNU* | *'with BFD'*) 5178 lt_cv_prog_gnu_ld=yes 5179 ;; 5180*) 5181 lt_cv_prog_gnu_ld=no 5182 ;; 5183esac 5184fi 5185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5186$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5187with_gnu_ld=$lt_cv_prog_gnu_ld 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5198$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5199if ${lt_cv_path_NM+:} false; then : 5200 $as_echo_n "(cached) " >&6 5201else 5202 if test -n "$NM"; then 5203 # Let the user override the test. 5204 lt_cv_path_NM=$NM 5205else 5206 lt_nm_to_check=${ac_tool_prefix}nm 5207 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5208 lt_nm_to_check="$lt_nm_to_check nm" 5209 fi 5210 for lt_tmp_nm in $lt_nm_to_check; do 5211 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5212 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5213 IFS=$lt_save_ifs 5214 test -z "$ac_dir" && ac_dir=. 5215 tmp_nm=$ac_dir/$lt_tmp_nm 5216 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5217 # Check to see if the nm accepts a BSD-compat flag. 5218 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5219 # nm: unknown option "B" ignored 5220 # Tru64's nm complains that /dev/null is an invalid object file 5221 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5222 case $build_os in 5223 mingw*) lt_bad_file=conftest.nm/nofile ;; 5224 *) lt_bad_file=/dev/null ;; 5225 esac 5226 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5227 *$lt_bad_file* | *'Invalid file or object type'*) 5228 lt_cv_path_NM="$tmp_nm -B" 5229 break 2 5230 ;; 5231 *) 5232 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5233 */dev/null*) 5234 lt_cv_path_NM="$tmp_nm -p" 5235 break 2 5236 ;; 5237 *) 5238 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5239 continue # so that we can try to find one that supports BSD flags 5240 ;; 5241 esac 5242 ;; 5243 esac 5244 fi 5245 done 5246 IFS=$lt_save_ifs 5247 done 5248 : ${lt_cv_path_NM=no} 5249fi 5250fi 5251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5252$as_echo "$lt_cv_path_NM" >&6; } 5253if test no != "$lt_cv_path_NM"; then 5254 NM=$lt_cv_path_NM 5255else 5256 # Didn't find any BSD compatible name lister, look for dumpbin. 5257 if test -n "$DUMPBIN"; then : 5258 # Let the user override the test. 5259 else 5260 if test -n "$ac_tool_prefix"; then 5261 for ac_prog in dumpbin "link -dump" 5262 do 5263 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5264set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5266$as_echo_n "checking for $ac_word... " >&6; } 5267if ${ac_cv_prog_DUMPBIN+:} false; then : 5268 $as_echo_n "(cached) " >&6 5269else 5270 if test -n "$DUMPBIN"; then 5271 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5272else 5273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5274for as_dir in $PATH 5275do 5276 IFS=$as_save_IFS 5277 test -z "$as_dir" && as_dir=. 5278 for ac_exec_ext in '' $ac_executable_extensions; do 5279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5280 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5282 break 2 5283 fi 5284done 5285 done 5286IFS=$as_save_IFS 5287 5288fi 5289fi 5290DUMPBIN=$ac_cv_prog_DUMPBIN 5291if test -n "$DUMPBIN"; then 5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5293$as_echo "$DUMPBIN" >&6; } 5294else 5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5296$as_echo "no" >&6; } 5297fi 5298 5299 5300 test -n "$DUMPBIN" && break 5301 done 5302fi 5303if test -z "$DUMPBIN"; then 5304 ac_ct_DUMPBIN=$DUMPBIN 5305 for ac_prog in dumpbin "link -dump" 5306do 5307 # Extract the first word of "$ac_prog", so it can be a program name with args. 5308set dummy $ac_prog; ac_word=$2 5309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5310$as_echo_n "checking for $ac_word... " >&6; } 5311if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5312 $as_echo_n "(cached) " >&6 5313else 5314 if test -n "$ac_ct_DUMPBIN"; then 5315 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5316else 5317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5318for as_dir in $PATH 5319do 5320 IFS=$as_save_IFS 5321 test -z "$as_dir" && as_dir=. 5322 for ac_exec_ext in '' $ac_executable_extensions; do 5323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5324 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5326 break 2 5327 fi 5328done 5329 done 5330IFS=$as_save_IFS 5331 5332fi 5333fi 5334ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5335if test -n "$ac_ct_DUMPBIN"; then 5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5337$as_echo "$ac_ct_DUMPBIN" >&6; } 5338else 5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5340$as_echo "no" >&6; } 5341fi 5342 5343 5344 test -n "$ac_ct_DUMPBIN" && break 5345done 5346 5347 if test "x$ac_ct_DUMPBIN" = x; then 5348 DUMPBIN=":" 5349 else 5350 case $cross_compiling:$ac_tool_warned in 5351yes:) 5352{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5354ac_tool_warned=yes ;; 5355esac 5356 DUMPBIN=$ac_ct_DUMPBIN 5357 fi 5358fi 5359 5360 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5361 *COFF*) 5362 DUMPBIN="$DUMPBIN -symbols -headers" 5363 ;; 5364 *) 5365 DUMPBIN=: 5366 ;; 5367 esac 5368 fi 5369 5370 if test : != "$DUMPBIN"; then 5371 NM=$DUMPBIN 5372 fi 5373fi 5374test -z "$NM" && NM=nm 5375 5376 5377 5378 5379 5380 5381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5382$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5383if ${lt_cv_nm_interface+:} false; then : 5384 $as_echo_n "(cached) " >&6 5385else 5386 lt_cv_nm_interface="BSD nm" 5387 echo "int some_variable = 0;" > conftest.$ac_ext 5388 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5389 (eval "$ac_compile" 2>conftest.err) 5390 cat conftest.err >&5 5391 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5392 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5393 cat conftest.err >&5 5394 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5395 cat conftest.out >&5 5396 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5397 lt_cv_nm_interface="MS dumpbin" 5398 fi 5399 rm -f conftest* 5400fi 5401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5402$as_echo "$lt_cv_nm_interface" >&6; } 5403 5404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5405$as_echo_n "checking whether ln -s works... " >&6; } 5406LN_S=$as_ln_s 5407if test "$LN_S" = "ln -s"; then 5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5409$as_echo "yes" >&6; } 5410else 5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5412$as_echo "no, using $LN_S" >&6; } 5413fi 5414 5415# find the maximum length of command line arguments 5416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5417$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5418if ${lt_cv_sys_max_cmd_len+:} false; then : 5419 $as_echo_n "(cached) " >&6 5420else 5421 i=0 5422 teststring=ABCD 5423 5424 case $build_os in 5425 msdosdjgpp*) 5426 # On DJGPP, this test can blow up pretty badly due to problems in libc 5427 # (any single argument exceeding 2000 bytes causes a buffer overrun 5428 # during glob expansion). Even if it were fixed, the result of this 5429 # check would be larger than it should be. 5430 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5431 ;; 5432 5433 gnu*) 5434 # Under GNU Hurd, this test is not required because there is 5435 # no limit to the length of command line arguments. 5436 # Libtool will interpret -1 as no limit whatsoever 5437 lt_cv_sys_max_cmd_len=-1; 5438 ;; 5439 5440 cygwin* | mingw* | cegcc*) 5441 # On Win9x/ME, this test blows up -- it succeeds, but takes 5442 # about 5 minutes as the teststring grows exponentially. 5443 # Worse, since 9x/ME are not pre-emptively multitasking, 5444 # you end up with a "frozen" computer, even though with patience 5445 # the test eventually succeeds (with a max line length of 256k). 5446 # Instead, let's just punt: use the minimum linelength reported by 5447 # all of the supported platforms: 8192 (on NT/2K/XP). 5448 lt_cv_sys_max_cmd_len=8192; 5449 ;; 5450 5451 mint*) 5452 # On MiNT this can take a long time and run out of memory. 5453 lt_cv_sys_max_cmd_len=8192; 5454 ;; 5455 5456 amigaos*) 5457 # On AmigaOS with pdksh, this test takes hours, literally. 5458 # So we just punt and use a minimum line length of 8192. 5459 lt_cv_sys_max_cmd_len=8192; 5460 ;; 5461 5462 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5463 # This has been around since 386BSD, at least. Likely further. 5464 if test -x /sbin/sysctl; then 5465 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5466 elif test -x /usr/sbin/sysctl; then 5467 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5468 else 5469 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5470 fi 5471 # And add a safety zone 5472 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5473 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5474 ;; 5475 5476 interix*) 5477 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5478 lt_cv_sys_max_cmd_len=196608 5479 ;; 5480 5481 os2*) 5482 # The test takes a long time on OS/2. 5483 lt_cv_sys_max_cmd_len=8192 5484 ;; 5485 5486 osf*) 5487 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5488 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5489 # nice to cause kernel panics so lets avoid the loop below. 5490 # First set a reasonable default. 5491 lt_cv_sys_max_cmd_len=16384 5492 # 5493 if test -x /sbin/sysconfig; then 5494 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5495 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5496 esac 5497 fi 5498 ;; 5499 sco3.2v5*) 5500 lt_cv_sys_max_cmd_len=102400 5501 ;; 5502 sysv5* | sco5v6* | sysv4.2uw2*) 5503 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5504 if test -n "$kargmax"; then 5505 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5506 else 5507 lt_cv_sys_max_cmd_len=32768 5508 fi 5509 ;; 5510 *) 5511 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5512 if test -n "$lt_cv_sys_max_cmd_len" && \ 5513 test undefined != "$lt_cv_sys_max_cmd_len"; then 5514 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5515 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5516 else 5517 # Make teststring a little bigger before we do anything with it. 5518 # a 1K string should be a reasonable start. 5519 for i in 1 2 3 4 5 6 7 8; do 5520 teststring=$teststring$teststring 5521 done 5522 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5523 # If test is not a shell built-in, we'll probably end up computing a 5524 # maximum length that is only half of the actual maximum length, but 5525 # we can't tell. 5526 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5527 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5528 test 17 != "$i" # 1/2 MB should be enough 5529 do 5530 i=`expr $i + 1` 5531 teststring=$teststring$teststring 5532 done 5533 # Only check the string length outside the loop. 5534 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5535 teststring= 5536 # Add a significant safety factor because C++ compilers can tack on 5537 # massive amounts of additional arguments before passing them to the 5538 # linker. It appears as though 1/2 is a usable value. 5539 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5540 fi 5541 ;; 5542 esac 5543 5544fi 5545 5546if test -n "$lt_cv_sys_max_cmd_len"; then 5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5548$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5549else 5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5551$as_echo "none" >&6; } 5552fi 5553max_cmd_len=$lt_cv_sys_max_cmd_len 5554 5555 5556 5557 5558 5559 5560: ${CP="cp -f"} 5561: ${MV="mv -f"} 5562: ${RM="rm -f"} 5563 5564if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5565 lt_unset=unset 5566else 5567 lt_unset=false 5568fi 5569 5570 5571 5572 5573 5574# test EBCDIC or ASCII 5575case `echo X|tr X '\101'` in 5576 A) # ASCII based system 5577 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5578 lt_SP2NL='tr \040 \012' 5579 lt_NL2SP='tr \015\012 \040\040' 5580 ;; 5581 *) # EBCDIC based system 5582 lt_SP2NL='tr \100 \n' 5583 lt_NL2SP='tr \r\n \100\100' 5584 ;; 5585esac 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5596$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5597if ${lt_cv_to_host_file_cmd+:} false; then : 5598 $as_echo_n "(cached) " >&6 5599else 5600 case $host in 5601 *-*-mingw* ) 5602 case $build in 5603 *-*-mingw* ) # actually msys 5604 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5605 ;; 5606 *-*-cygwin* ) 5607 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5608 ;; 5609 * ) # otherwise, assume *nix 5610 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5611 ;; 5612 esac 5613 ;; 5614 *-*-cygwin* ) 5615 case $build in 5616 *-*-mingw* ) # actually msys 5617 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5618 ;; 5619 *-*-cygwin* ) 5620 lt_cv_to_host_file_cmd=func_convert_file_noop 5621 ;; 5622 * ) # otherwise, assume *nix 5623 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5624 ;; 5625 esac 5626 ;; 5627 * ) # unhandled hosts (and "normal" native builds) 5628 lt_cv_to_host_file_cmd=func_convert_file_noop 5629 ;; 5630esac 5631 5632fi 5633 5634to_host_file_cmd=$lt_cv_to_host_file_cmd 5635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5636$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5637 5638 5639 5640 5641 5642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5643$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5644if ${lt_cv_to_tool_file_cmd+:} false; then : 5645 $as_echo_n "(cached) " >&6 5646else 5647 #assume ordinary cross tools, or native build. 5648lt_cv_to_tool_file_cmd=func_convert_file_noop 5649case $host in 5650 *-*-mingw* ) 5651 case $build in 5652 *-*-mingw* ) # actually msys 5653 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5654 ;; 5655 esac 5656 ;; 5657esac 5658 5659fi 5660 5661to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5663$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5664 5665 5666 5667 5668 5669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5670$as_echo_n "checking for $LD option to reload object files... " >&6; } 5671if ${lt_cv_ld_reload_flag+:} false; then : 5672 $as_echo_n "(cached) " >&6 5673else 5674 lt_cv_ld_reload_flag='-r' 5675fi 5676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5677$as_echo "$lt_cv_ld_reload_flag" >&6; } 5678reload_flag=$lt_cv_ld_reload_flag 5679case $reload_flag in 5680"" | " "*) ;; 5681*) reload_flag=" $reload_flag" ;; 5682esac 5683reload_cmds='$LD$reload_flag -o $output$reload_objs' 5684case $host_os in 5685 cygwin* | mingw* | pw32* | cegcc*) 5686 if test yes != "$GCC"; then 5687 reload_cmds=false 5688 fi 5689 ;; 5690 darwin*) 5691 if test yes = "$GCC"; then 5692 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5693 else 5694 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5695 fi 5696 ;; 5697esac 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707if test -n "$ac_tool_prefix"; then 5708 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5709set dummy ${ac_tool_prefix}objdump; ac_word=$2 5710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5711$as_echo_n "checking for $ac_word... " >&6; } 5712if ${ac_cv_prog_OBJDUMP+:} false; then : 5713 $as_echo_n "(cached) " >&6 5714else 5715 if test -n "$OBJDUMP"; then 5716 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5717else 5718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5719for as_dir in $PATH 5720do 5721 IFS=$as_save_IFS 5722 test -z "$as_dir" && as_dir=. 5723 for ac_exec_ext in '' $ac_executable_extensions; do 5724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5725 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5727 break 2 5728 fi 5729done 5730 done 5731IFS=$as_save_IFS 5732 5733fi 5734fi 5735OBJDUMP=$ac_cv_prog_OBJDUMP 5736if test -n "$OBJDUMP"; then 5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5738$as_echo "$OBJDUMP" >&6; } 5739else 5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5741$as_echo "no" >&6; } 5742fi 5743 5744 5745fi 5746if test -z "$ac_cv_prog_OBJDUMP"; then 5747 ac_ct_OBJDUMP=$OBJDUMP 5748 # Extract the first word of "objdump", so it can be a program name with args. 5749set dummy objdump; ac_word=$2 5750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5751$as_echo_n "checking for $ac_word... " >&6; } 5752if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5753 $as_echo_n "(cached) " >&6 5754else 5755 if test -n "$ac_ct_OBJDUMP"; then 5756 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5757else 5758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5759for as_dir in $PATH 5760do 5761 IFS=$as_save_IFS 5762 test -z "$as_dir" && as_dir=. 5763 for ac_exec_ext in '' $ac_executable_extensions; do 5764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5765 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5767 break 2 5768 fi 5769done 5770 done 5771IFS=$as_save_IFS 5772 5773fi 5774fi 5775ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5776if test -n "$ac_ct_OBJDUMP"; then 5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5778$as_echo "$ac_ct_OBJDUMP" >&6; } 5779else 5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5781$as_echo "no" >&6; } 5782fi 5783 5784 if test "x$ac_ct_OBJDUMP" = x; then 5785 OBJDUMP="false" 5786 else 5787 case $cross_compiling:$ac_tool_warned in 5788yes:) 5789{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5790$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5791ac_tool_warned=yes ;; 5792esac 5793 OBJDUMP=$ac_ct_OBJDUMP 5794 fi 5795else 5796 OBJDUMP="$ac_cv_prog_OBJDUMP" 5797fi 5798 5799test -z "$OBJDUMP" && OBJDUMP=objdump 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5810$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5811if ${lt_cv_deplibs_check_method+:} false; then : 5812 $as_echo_n "(cached) " >&6 5813else 5814 lt_cv_file_magic_cmd='$MAGIC_CMD' 5815lt_cv_file_magic_test_file= 5816lt_cv_deplibs_check_method='unknown' 5817# Need to set the preceding variable on all platforms that support 5818# interlibrary dependencies. 5819# 'none' -- dependencies not supported. 5820# 'unknown' -- same as none, but documents that we really don't know. 5821# 'pass_all' -- all dependencies passed with no checks. 5822# 'test_compile' -- check by making test program. 5823# 'file_magic [[regex]]' -- check by looking for files in library path 5824# that responds to the $file_magic_cmd with a given extended regex. 5825# If you have 'file' or equivalent on your system and you're not sure 5826# whether 'pass_all' will *always* work, you probably want this one. 5827 5828case $host_os in 5829aix[4-9]*) 5830 lt_cv_deplibs_check_method=pass_all 5831 ;; 5832 5833beos*) 5834 lt_cv_deplibs_check_method=pass_all 5835 ;; 5836 5837bsdi[45]*) 5838 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5839 lt_cv_file_magic_cmd='/usr/bin/file -L' 5840 lt_cv_file_magic_test_file=/shlib/libc.so 5841 ;; 5842 5843cygwin*) 5844 # func_win32_libid is a shell function defined in ltmain.sh 5845 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5846 lt_cv_file_magic_cmd='func_win32_libid' 5847 ;; 5848 5849mingw* | pw32*) 5850 # Base MSYS/MinGW do not provide the 'file' command needed by 5851 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5852 # unless we find 'file', for example because we are cross-compiling. 5853 if ( file / ) >/dev/null 2>&1; then 5854 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5855 lt_cv_file_magic_cmd='func_win32_libid' 5856 else 5857 # Keep this pattern in sync with the one in func_win32_libid. 5858 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5859 lt_cv_file_magic_cmd='$OBJDUMP -f' 5860 fi 5861 ;; 5862 5863cegcc*) 5864 # use the weaker test based on 'objdump'. See mingw*. 5865 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5866 lt_cv_file_magic_cmd='$OBJDUMP -f' 5867 ;; 5868 5869darwin* | rhapsody*) 5870 lt_cv_deplibs_check_method=pass_all 5871 ;; 5872 5873freebsd* | dragonfly*) 5874 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5875 case $host_cpu in 5876 i*86 ) 5877 # Not sure whether the presence of OpenBSD here was a mistake. 5878 # Let's accept both of them until this is cleared up. 5879 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5880 lt_cv_file_magic_cmd=/usr/bin/file 5881 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5882 ;; 5883 esac 5884 else 5885 lt_cv_deplibs_check_method=pass_all 5886 fi 5887 ;; 5888 5889haiku*) 5890 lt_cv_deplibs_check_method=pass_all 5891 ;; 5892 5893hpux10.20* | hpux11*) 5894 lt_cv_file_magic_cmd=/usr/bin/file 5895 case $host_cpu in 5896 ia64*) 5897 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5898 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5899 ;; 5900 hppa*64*) 5901 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]' 5902 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5903 ;; 5904 *) 5905 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5906 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5907 ;; 5908 esac 5909 ;; 5910 5911interix[3-9]*) 5912 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5913 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5914 ;; 5915 5916irix5* | irix6* | nonstopux*) 5917 case $LD in 5918 *-32|*"-32 ") libmagic=32-bit;; 5919 *-n32|*"-n32 ") libmagic=N32;; 5920 *-64|*"-64 ") libmagic=64-bit;; 5921 *) libmagic=never-match;; 5922 esac 5923 lt_cv_deplibs_check_method=pass_all 5924 ;; 5925 5926# This must be glibc/ELF. 5927linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5928 lt_cv_deplibs_check_method=pass_all 5929 ;; 5930 5931netbsd* | netbsdelf*-gnu) 5932 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5933 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5934 else 5935 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5936 fi 5937 ;; 5938 5939newos6*) 5940 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5941 lt_cv_file_magic_cmd=/usr/bin/file 5942 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5943 ;; 5944 5945*nto* | *qnx*) 5946 lt_cv_deplibs_check_method=pass_all 5947 ;; 5948 5949openbsd* | bitrig*) 5950 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5951 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5952 else 5953 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5954 fi 5955 ;; 5956 5957osf3* | osf4* | osf5*) 5958 lt_cv_deplibs_check_method=pass_all 5959 ;; 5960 5961rdos*) 5962 lt_cv_deplibs_check_method=pass_all 5963 ;; 5964 5965solaris*) 5966 lt_cv_deplibs_check_method=pass_all 5967 ;; 5968 5969sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5970 lt_cv_deplibs_check_method=pass_all 5971 ;; 5972 5973sysv4 | sysv4.3*) 5974 case $host_vendor in 5975 motorola) 5976 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]' 5977 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5978 ;; 5979 ncr) 5980 lt_cv_deplibs_check_method=pass_all 5981 ;; 5982 sequent) 5983 lt_cv_file_magic_cmd='/bin/file' 5984 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5985 ;; 5986 sni) 5987 lt_cv_file_magic_cmd='/bin/file' 5988 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5989 lt_cv_file_magic_test_file=/lib/libc.so 5990 ;; 5991 siemens) 5992 lt_cv_deplibs_check_method=pass_all 5993 ;; 5994 pc) 5995 lt_cv_deplibs_check_method=pass_all 5996 ;; 5997 esac 5998 ;; 5999 6000tpf*) 6001 lt_cv_deplibs_check_method=pass_all 6002 ;; 6003os2*) 6004 lt_cv_deplibs_check_method=pass_all 6005 ;; 6006esac 6007 6008fi 6009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6010$as_echo "$lt_cv_deplibs_check_method" >&6; } 6011 6012file_magic_glob= 6013want_nocaseglob=no 6014if test "$build" = "$host"; then 6015 case $host_os in 6016 mingw* | pw32*) 6017 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6018 want_nocaseglob=yes 6019 else 6020 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6021 fi 6022 ;; 6023 esac 6024fi 6025 6026file_magic_cmd=$lt_cv_file_magic_cmd 6027deplibs_check_method=$lt_cv_deplibs_check_method 6028test -z "$deplibs_check_method" && deplibs_check_method=unknown 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051if test -n "$ac_tool_prefix"; then 6052 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6053set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6055$as_echo_n "checking for $ac_word... " >&6; } 6056if ${ac_cv_prog_DLLTOOL+:} false; then : 6057 $as_echo_n "(cached) " >&6 6058else 6059 if test -n "$DLLTOOL"; then 6060 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6061else 6062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6063for as_dir in $PATH 6064do 6065 IFS=$as_save_IFS 6066 test -z "$as_dir" && as_dir=. 6067 for ac_exec_ext in '' $ac_executable_extensions; do 6068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6069 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6071 break 2 6072 fi 6073done 6074 done 6075IFS=$as_save_IFS 6076 6077fi 6078fi 6079DLLTOOL=$ac_cv_prog_DLLTOOL 6080if test -n "$DLLTOOL"; then 6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6082$as_echo "$DLLTOOL" >&6; } 6083else 6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6085$as_echo "no" >&6; } 6086fi 6087 6088 6089fi 6090if test -z "$ac_cv_prog_DLLTOOL"; then 6091 ac_ct_DLLTOOL=$DLLTOOL 6092 # Extract the first word of "dlltool", so it can be a program name with args. 6093set dummy dlltool; ac_word=$2 6094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6095$as_echo_n "checking for $ac_word... " >&6; } 6096if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6097 $as_echo_n "(cached) " >&6 6098else 6099 if test -n "$ac_ct_DLLTOOL"; then 6100 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6101else 6102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6103for as_dir in $PATH 6104do 6105 IFS=$as_save_IFS 6106 test -z "$as_dir" && as_dir=. 6107 for ac_exec_ext in '' $ac_executable_extensions; do 6108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6109 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6111 break 2 6112 fi 6113done 6114 done 6115IFS=$as_save_IFS 6116 6117fi 6118fi 6119ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6120if test -n "$ac_ct_DLLTOOL"; then 6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6122$as_echo "$ac_ct_DLLTOOL" >&6; } 6123else 6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6125$as_echo "no" >&6; } 6126fi 6127 6128 if test "x$ac_ct_DLLTOOL" = x; then 6129 DLLTOOL="false" 6130 else 6131 case $cross_compiling:$ac_tool_warned in 6132yes:) 6133{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6134$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6135ac_tool_warned=yes ;; 6136esac 6137 DLLTOOL=$ac_ct_DLLTOOL 6138 fi 6139else 6140 DLLTOOL="$ac_cv_prog_DLLTOOL" 6141fi 6142 6143test -z "$DLLTOOL" && DLLTOOL=dlltool 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6155$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6156if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6157 $as_echo_n "(cached) " >&6 6158else 6159 lt_cv_sharedlib_from_linklib_cmd='unknown' 6160 6161case $host_os in 6162cygwin* | mingw* | pw32* | cegcc*) 6163 # two different shell functions defined in ltmain.sh; 6164 # decide which one to use based on capabilities of $DLLTOOL 6165 case `$DLLTOOL --help 2>&1` in 6166 *--identify-strict*) 6167 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6168 ;; 6169 *) 6170 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6171 ;; 6172 esac 6173 ;; 6174*) 6175 # fallback: assume linklib IS sharedlib 6176 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6177 ;; 6178esac 6179 6180fi 6181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6182$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6183sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6184test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6185 6186 6187 6188 6189 6190 6191 6192 6193if test -n "$ac_tool_prefix"; then 6194 for ac_prog in ar 6195 do 6196 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6197set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6199$as_echo_n "checking for $ac_word... " >&6; } 6200if ${ac_cv_prog_AR+:} false; then : 6201 $as_echo_n "(cached) " >&6 6202else 6203 if test -n "$AR"; then 6204 ac_cv_prog_AR="$AR" # Let the user override the test. 6205else 6206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6207for as_dir in $PATH 6208do 6209 IFS=$as_save_IFS 6210 test -z "$as_dir" && as_dir=. 6211 for ac_exec_ext in '' $ac_executable_extensions; do 6212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6213 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6215 break 2 6216 fi 6217done 6218 done 6219IFS=$as_save_IFS 6220 6221fi 6222fi 6223AR=$ac_cv_prog_AR 6224if test -n "$AR"; then 6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6226$as_echo "$AR" >&6; } 6227else 6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6229$as_echo "no" >&6; } 6230fi 6231 6232 6233 test -n "$AR" && break 6234 done 6235fi 6236if test -z "$AR"; then 6237 ac_ct_AR=$AR 6238 for ac_prog in ar 6239do 6240 # Extract the first word of "$ac_prog", so it can be a program name with args. 6241set dummy $ac_prog; ac_word=$2 6242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6243$as_echo_n "checking for $ac_word... " >&6; } 6244if ${ac_cv_prog_ac_ct_AR+:} false; then : 6245 $as_echo_n "(cached) " >&6 6246else 6247 if test -n "$ac_ct_AR"; then 6248 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6249else 6250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6251for as_dir in $PATH 6252do 6253 IFS=$as_save_IFS 6254 test -z "$as_dir" && as_dir=. 6255 for ac_exec_ext in '' $ac_executable_extensions; do 6256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6257 ac_cv_prog_ac_ct_AR="$ac_prog" 6258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6259 break 2 6260 fi 6261done 6262 done 6263IFS=$as_save_IFS 6264 6265fi 6266fi 6267ac_ct_AR=$ac_cv_prog_ac_ct_AR 6268if test -n "$ac_ct_AR"; then 6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6270$as_echo "$ac_ct_AR" >&6; } 6271else 6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6273$as_echo "no" >&6; } 6274fi 6275 6276 6277 test -n "$ac_ct_AR" && break 6278done 6279 6280 if test "x$ac_ct_AR" = x; then 6281 AR="false" 6282 else 6283 case $cross_compiling:$ac_tool_warned in 6284yes:) 6285{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6286$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6287ac_tool_warned=yes ;; 6288esac 6289 AR=$ac_ct_AR 6290 fi 6291fi 6292 6293: ${AR=ar} 6294: ${AR_FLAGS=cru} 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6307$as_echo_n "checking for archiver @FILE support... " >&6; } 6308if ${lt_cv_ar_at_file+:} false; then : 6309 $as_echo_n "(cached) " >&6 6310else 6311 lt_cv_ar_at_file=no 6312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6313/* end confdefs.h. */ 6314 6315int 6316main () 6317{ 6318 6319 ; 6320 return 0; 6321} 6322_ACEOF 6323if ac_fn_c_try_compile "$LINENO"; then : 6324 echo conftest.$ac_objext > conftest.lst 6325 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6327 (eval $lt_ar_try) 2>&5 6328 ac_status=$? 6329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6330 test $ac_status = 0; } 6331 if test 0 -eq "$ac_status"; then 6332 # Ensure the archiver fails upon bogus file names. 6333 rm -f conftest.$ac_objext libconftest.a 6334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6335 (eval $lt_ar_try) 2>&5 6336 ac_status=$? 6337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6338 test $ac_status = 0; } 6339 if test 0 -ne "$ac_status"; then 6340 lt_cv_ar_at_file=@ 6341 fi 6342 fi 6343 rm -f conftest.* libconftest.a 6344 6345fi 6346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6347 6348fi 6349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6350$as_echo "$lt_cv_ar_at_file" >&6; } 6351 6352if test no = "$lt_cv_ar_at_file"; then 6353 archiver_list_spec= 6354else 6355 archiver_list_spec=$lt_cv_ar_at_file 6356fi 6357 6358 6359 6360 6361 6362 6363 6364if test -n "$ac_tool_prefix"; then 6365 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6366set dummy ${ac_tool_prefix}strip; ac_word=$2 6367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6368$as_echo_n "checking for $ac_word... " >&6; } 6369if ${ac_cv_prog_STRIP+:} false; then : 6370 $as_echo_n "(cached) " >&6 6371else 6372 if test -n "$STRIP"; then 6373 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6374else 6375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6376for as_dir in $PATH 6377do 6378 IFS=$as_save_IFS 6379 test -z "$as_dir" && as_dir=. 6380 for ac_exec_ext in '' $ac_executable_extensions; do 6381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6382 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6384 break 2 6385 fi 6386done 6387 done 6388IFS=$as_save_IFS 6389 6390fi 6391fi 6392STRIP=$ac_cv_prog_STRIP 6393if test -n "$STRIP"; then 6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6395$as_echo "$STRIP" >&6; } 6396else 6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6398$as_echo "no" >&6; } 6399fi 6400 6401 6402fi 6403if test -z "$ac_cv_prog_STRIP"; then 6404 ac_ct_STRIP=$STRIP 6405 # Extract the first word of "strip", so it can be a program name with args. 6406set dummy strip; ac_word=$2 6407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6408$as_echo_n "checking for $ac_word... " >&6; } 6409if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6410 $as_echo_n "(cached) " >&6 6411else 6412 if test -n "$ac_ct_STRIP"; then 6413 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6414else 6415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6416for as_dir in $PATH 6417do 6418 IFS=$as_save_IFS 6419 test -z "$as_dir" && as_dir=. 6420 for ac_exec_ext in '' $ac_executable_extensions; do 6421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6422 ac_cv_prog_ac_ct_STRIP="strip" 6423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6424 break 2 6425 fi 6426done 6427 done 6428IFS=$as_save_IFS 6429 6430fi 6431fi 6432ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6433if test -n "$ac_ct_STRIP"; then 6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6435$as_echo "$ac_ct_STRIP" >&6; } 6436else 6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6438$as_echo "no" >&6; } 6439fi 6440 6441 if test "x$ac_ct_STRIP" = x; then 6442 STRIP=":" 6443 else 6444 case $cross_compiling:$ac_tool_warned in 6445yes:) 6446{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6447$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6448ac_tool_warned=yes ;; 6449esac 6450 STRIP=$ac_ct_STRIP 6451 fi 6452else 6453 STRIP="$ac_cv_prog_STRIP" 6454fi 6455 6456test -z "$STRIP" && STRIP=: 6457 6458 6459 6460 6461 6462 6463if test -n "$ac_tool_prefix"; then 6464 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6465set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6467$as_echo_n "checking for $ac_word... " >&6; } 6468if ${ac_cv_prog_RANLIB+:} false; then : 6469 $as_echo_n "(cached) " >&6 6470else 6471 if test -n "$RANLIB"; then 6472 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6473else 6474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6475for as_dir in $PATH 6476do 6477 IFS=$as_save_IFS 6478 test -z "$as_dir" && as_dir=. 6479 for ac_exec_ext in '' $ac_executable_extensions; do 6480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6481 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6483 break 2 6484 fi 6485done 6486 done 6487IFS=$as_save_IFS 6488 6489fi 6490fi 6491RANLIB=$ac_cv_prog_RANLIB 6492if test -n "$RANLIB"; then 6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6494$as_echo "$RANLIB" >&6; } 6495else 6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6497$as_echo "no" >&6; } 6498fi 6499 6500 6501fi 6502if test -z "$ac_cv_prog_RANLIB"; then 6503 ac_ct_RANLIB=$RANLIB 6504 # Extract the first word of "ranlib", so it can be a program name with args. 6505set dummy ranlib; ac_word=$2 6506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6507$as_echo_n "checking for $ac_word... " >&6; } 6508if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6509 $as_echo_n "(cached) " >&6 6510else 6511 if test -n "$ac_ct_RANLIB"; then 6512 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6513else 6514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6515for as_dir in $PATH 6516do 6517 IFS=$as_save_IFS 6518 test -z "$as_dir" && as_dir=. 6519 for ac_exec_ext in '' $ac_executable_extensions; do 6520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6521 ac_cv_prog_ac_ct_RANLIB="ranlib" 6522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6523 break 2 6524 fi 6525done 6526 done 6527IFS=$as_save_IFS 6528 6529fi 6530fi 6531ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6532if test -n "$ac_ct_RANLIB"; then 6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6534$as_echo "$ac_ct_RANLIB" >&6; } 6535else 6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6537$as_echo "no" >&6; } 6538fi 6539 6540 if test "x$ac_ct_RANLIB" = x; then 6541 RANLIB=":" 6542 else 6543 case $cross_compiling:$ac_tool_warned in 6544yes:) 6545{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6547ac_tool_warned=yes ;; 6548esac 6549 RANLIB=$ac_ct_RANLIB 6550 fi 6551else 6552 RANLIB="$ac_cv_prog_RANLIB" 6553fi 6554 6555test -z "$RANLIB" && RANLIB=: 6556 6557 6558 6559 6560 6561 6562# Determine commands to create old-style static archives. 6563old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6564old_postinstall_cmds='chmod 644 $oldlib' 6565old_postuninstall_cmds= 6566 6567if test -n "$RANLIB"; then 6568 case $host_os in 6569 bitrig* | openbsd*) 6570 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6571 ;; 6572 *) 6573 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6574 ;; 6575 esac 6576 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6577fi 6578 6579case $host_os in 6580 darwin*) 6581 lock_old_archive_extraction=yes ;; 6582 *) 6583 lock_old_archive_extraction=no ;; 6584esac 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624# If no C compiler was specified, use CC. 6625LTCC=${LTCC-"$CC"} 6626 6627# If no C compiler flags were specified, use CFLAGS. 6628LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6629 6630# Allow CC to be a program name with arguments. 6631compiler=$CC 6632 6633 6634# Check for command to grab the raw symbol name followed by C symbol from nm. 6635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6636$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6637if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6638 $as_echo_n "(cached) " >&6 6639else 6640 6641# These are sane defaults that work on at least a few old systems. 6642# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6643 6644# Character class describing NM global symbol codes. 6645symcode='[BCDEGRST]' 6646 6647# Regexp to match symbols that can be accessed directly from C. 6648sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6649 6650# Define system-specific variables. 6651case $host_os in 6652aix*) 6653 symcode='[BCDT]' 6654 ;; 6655cygwin* | mingw* | pw32* | cegcc*) 6656 symcode='[ABCDGISTW]' 6657 ;; 6658hpux*) 6659 if test ia64 = "$host_cpu"; then 6660 symcode='[ABCDEGRST]' 6661 fi 6662 ;; 6663irix* | nonstopux*) 6664 symcode='[BCDEGRST]' 6665 ;; 6666osf*) 6667 symcode='[BCDEGQRST]' 6668 ;; 6669solaris*) 6670 symcode='[BDRT]' 6671 ;; 6672sco3.2v5*) 6673 symcode='[DT]' 6674 ;; 6675sysv4.2uw2*) 6676 symcode='[DT]' 6677 ;; 6678sysv5* | sco5v6* | unixware* | OpenUNIX*) 6679 symcode='[ABDT]' 6680 ;; 6681sysv4) 6682 symcode='[DFNSTU]' 6683 ;; 6684esac 6685 6686# If we're using GNU nm, then use its standard symbol codes. 6687case `$NM -V 2>&1` in 6688*GNU* | *'with BFD'*) 6689 symcode='[ABCDGIRSTW]' ;; 6690esac 6691 6692if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6693 # Gets list of data symbols to import. 6694 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6695 # Adjust the below global symbol transforms to fixup imported variables. 6696 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6697 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6698 lt_c_name_lib_hook="\ 6699 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6700 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6701else 6702 # Disable hooks by default. 6703 lt_cv_sys_global_symbol_to_import= 6704 lt_cdecl_hook= 6705 lt_c_name_hook= 6706 lt_c_name_lib_hook= 6707fi 6708 6709# Transform an extracted symbol line into a proper C declaration. 6710# Some systems (esp. on ia64) link data and code symbols differently, 6711# so use this general approach. 6712lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6713$lt_cdecl_hook\ 6714" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6715" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6716 6717# Transform an extracted symbol line into symbol name and symbol address 6718lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6719$lt_c_name_hook\ 6720" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6721" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6722 6723# Transform an extracted symbol line into symbol name with lib prefix and 6724# symbol address. 6725lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6726$lt_c_name_lib_hook\ 6727" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6728" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6729" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6730 6731# Handle CRLF in mingw tool chain 6732opt_cr= 6733case $build_os in 6734mingw*) 6735 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6736 ;; 6737esac 6738 6739# Try without a prefix underscore, then with it. 6740for ac_symprfx in "" "_"; do 6741 6742 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6743 symxfrm="\\1 $ac_symprfx\\2 \\2" 6744 6745 # Write the raw and C identifiers. 6746 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6747 # Fake it for dumpbin and say T for any non-static function, 6748 # D for any global variable and I for any imported variable. 6749 # Also find C++ and __fastcall symbols from MSVC++, 6750 # which start with @ or ?. 6751 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6752" {last_section=section; section=\$ 3};"\ 6753" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6754" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6755" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6756" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6757" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6758" \$ 0!~/External *\|/{next};"\ 6759" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6760" {if(hide[section]) next};"\ 6761" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6762" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6763" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6764" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6765" ' prfx=^$ac_symprfx" 6766 else 6767 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6768 fi 6769 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6770 6771 # Check to see that the pipe works correctly. 6772 pipe_works=no 6773 6774 rm -f conftest* 6775 cat > conftest.$ac_ext <<_LT_EOF 6776#ifdef __cplusplus 6777extern "C" { 6778#endif 6779char nm_test_var; 6780void nm_test_func(void); 6781void nm_test_func(void){} 6782#ifdef __cplusplus 6783} 6784#endif 6785int main(){nm_test_var='a';nm_test_func();return(0);} 6786_LT_EOF 6787 6788 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6789 (eval $ac_compile) 2>&5 6790 ac_status=$? 6791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6792 test $ac_status = 0; }; then 6793 # Now try to grab the symbols. 6794 nlist=conftest.nm 6795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6796 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6797 ac_status=$? 6798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6799 test $ac_status = 0; } && test -s "$nlist"; then 6800 # Try sorting and uniquifying the output. 6801 if sort "$nlist" | uniq > "$nlist"T; then 6802 mv -f "$nlist"T "$nlist" 6803 else 6804 rm -f "$nlist"T 6805 fi 6806 6807 # Make sure that we snagged all the symbols we need. 6808 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6809 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6810 cat <<_LT_EOF > conftest.$ac_ext 6811/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6812#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6813/* DATA imports from DLLs on WIN32 can't be const, because runtime 6814 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6815# define LT_DLSYM_CONST 6816#elif defined __osf__ 6817/* This system does not cope well with relocations in const data. */ 6818# define LT_DLSYM_CONST 6819#else 6820# define LT_DLSYM_CONST const 6821#endif 6822 6823#ifdef __cplusplus 6824extern "C" { 6825#endif 6826 6827_LT_EOF 6828 # Now generate the symbol file. 6829 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6830 6831 cat <<_LT_EOF >> conftest.$ac_ext 6832 6833/* The mapping between symbol names and symbols. */ 6834LT_DLSYM_CONST struct { 6835 const char *name; 6836 void *address; 6837} 6838lt__PROGRAM__LTX_preloaded_symbols[] = 6839{ 6840 { "@PROGRAM@", (void *) 0 }, 6841_LT_EOF 6842 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6843 cat <<\_LT_EOF >> conftest.$ac_ext 6844 {0, (void *) 0} 6845}; 6846 6847/* This works around a problem in FreeBSD linker */ 6848#ifdef FREEBSD_WORKAROUND 6849static const void *lt_preloaded_setup() { 6850 return lt__PROGRAM__LTX_preloaded_symbols; 6851} 6852#endif 6853 6854#ifdef __cplusplus 6855} 6856#endif 6857_LT_EOF 6858 # Now try linking the two files. 6859 mv conftest.$ac_objext conftstm.$ac_objext 6860 lt_globsym_save_LIBS=$LIBS 6861 lt_globsym_save_CFLAGS=$CFLAGS 6862 LIBS=conftstm.$ac_objext 6863 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6865 (eval $ac_link) 2>&5 6866 ac_status=$? 6867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6868 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6869 pipe_works=yes 6870 fi 6871 LIBS=$lt_globsym_save_LIBS 6872 CFLAGS=$lt_globsym_save_CFLAGS 6873 else 6874 echo "cannot find nm_test_func in $nlist" >&5 6875 fi 6876 else 6877 echo "cannot find nm_test_var in $nlist" >&5 6878 fi 6879 else 6880 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6881 fi 6882 else 6883 echo "$progname: failed program was:" >&5 6884 cat conftest.$ac_ext >&5 6885 fi 6886 rm -rf conftest* conftst* 6887 6888 # Do not use the global_symbol_pipe unless it works. 6889 if test yes = "$pipe_works"; then 6890 break 6891 else 6892 lt_cv_sys_global_symbol_pipe= 6893 fi 6894done 6895 6896fi 6897 6898if test -z "$lt_cv_sys_global_symbol_pipe"; then 6899 lt_cv_sys_global_symbol_to_cdecl= 6900fi 6901if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6903$as_echo "failed" >&6; } 6904else 6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6906$as_echo "ok" >&6; } 6907fi 6908 6909# Response file support. 6910if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6911 nm_file_list_spec='@' 6912elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6913 nm_file_list_spec='@' 6914fi 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6953$as_echo_n "checking for sysroot... " >&6; } 6954 6955# Check whether --with-sysroot was given. 6956if test "${with_sysroot+set}" = set; then : 6957 withval=$with_sysroot; 6958else 6959 with_sysroot=no 6960fi 6961 6962 6963lt_sysroot= 6964case $with_sysroot in #( 6965 yes) 6966 if test yes = "$GCC"; then 6967 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6968 fi 6969 ;; #( 6970 /*) 6971 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6972 ;; #( 6973 no|'') 6974 ;; #( 6975 *) 6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6977$as_echo "$with_sysroot" >&6; } 6978 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6979 ;; 6980esac 6981 6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6983$as_echo "${lt_sysroot:-no}" >&6; } 6984 6985 6986 6987 6988 6989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6990$as_echo_n "checking for a working dd... " >&6; } 6991if ${ac_cv_path_lt_DD+:} false; then : 6992 $as_echo_n "(cached) " >&6 6993else 6994 printf 0123456789abcdef0123456789abcdef >conftest.i 6995cat conftest.i conftest.i >conftest2.i 6996: ${lt_DD:=$DD} 6997if test -z "$lt_DD"; then 6998 ac_path_lt_DD_found=false 6999 # Loop through the user's path and test for each of PROGNAME-LIST 7000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7001for as_dir in $PATH 7002do 7003 IFS=$as_save_IFS 7004 test -z "$as_dir" && as_dir=. 7005 for ac_prog in dd; do 7006 for ac_exec_ext in '' $ac_executable_extensions; do 7007 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7008 as_fn_executable_p "$ac_path_lt_DD" || continue 7009if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7010 cmp -s conftest.i conftest.out \ 7011 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7012fi 7013 $ac_path_lt_DD_found && break 3 7014 done 7015 done 7016 done 7017IFS=$as_save_IFS 7018 if test -z "$ac_cv_path_lt_DD"; then 7019 : 7020 fi 7021else 7022 ac_cv_path_lt_DD=$lt_DD 7023fi 7024 7025rm -f conftest.i conftest2.i conftest.out 7026fi 7027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7028$as_echo "$ac_cv_path_lt_DD" >&6; } 7029 7030 7031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7032$as_echo_n "checking how to truncate binary pipes... " >&6; } 7033if ${lt_cv_truncate_bin+:} false; then : 7034 $as_echo_n "(cached) " >&6 7035else 7036 printf 0123456789abcdef0123456789abcdef >conftest.i 7037cat conftest.i conftest.i >conftest2.i 7038lt_cv_truncate_bin= 7039if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7040 cmp -s conftest.i conftest.out \ 7041 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7042fi 7043rm -f conftest.i conftest2.i conftest.out 7044test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7045fi 7046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7047$as_echo "$lt_cv_truncate_bin" >&6; } 7048 7049 7050 7051 7052 7053 7054 7055# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7056func_cc_basename () 7057{ 7058 for cc_temp in $*""; do 7059 case $cc_temp in 7060 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7061 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7062 \-*) ;; 7063 *) break;; 7064 esac 7065 done 7066 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7067} 7068 7069# Check whether --enable-libtool-lock was given. 7070if test "${enable_libtool_lock+set}" = set; then : 7071 enableval=$enable_libtool_lock; 7072fi 7073 7074test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7075 7076# Some flags need to be propagated to the compiler or linker for good 7077# libtool support. 7078case $host in 7079ia64-*-hpux*) 7080 # Find out what ABI is being produced by ac_compile, and set mode 7081 # options accordingly. 7082 echo 'int i;' > conftest.$ac_ext 7083 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7084 (eval $ac_compile) 2>&5 7085 ac_status=$? 7086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7087 test $ac_status = 0; }; then 7088 case `/usr/bin/file conftest.$ac_objext` in 7089 *ELF-32*) 7090 HPUX_IA64_MODE=32 7091 ;; 7092 *ELF-64*) 7093 HPUX_IA64_MODE=64 7094 ;; 7095 esac 7096 fi 7097 rm -rf conftest* 7098 ;; 7099*-*-irix6*) 7100 # Find out what ABI is being produced by ac_compile, and set linker 7101 # options accordingly. 7102 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7104 (eval $ac_compile) 2>&5 7105 ac_status=$? 7106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7107 test $ac_status = 0; }; then 7108 if test yes = "$lt_cv_prog_gnu_ld"; then 7109 case `/usr/bin/file conftest.$ac_objext` in 7110 *32-bit*) 7111 LD="${LD-ld} -melf32bsmip" 7112 ;; 7113 *N32*) 7114 LD="${LD-ld} -melf32bmipn32" 7115 ;; 7116 *64-bit*) 7117 LD="${LD-ld} -melf64bmip" 7118 ;; 7119 esac 7120 else 7121 case `/usr/bin/file conftest.$ac_objext` in 7122 *32-bit*) 7123 LD="${LD-ld} -32" 7124 ;; 7125 *N32*) 7126 LD="${LD-ld} -n32" 7127 ;; 7128 *64-bit*) 7129 LD="${LD-ld} -64" 7130 ;; 7131 esac 7132 fi 7133 fi 7134 rm -rf conftest* 7135 ;; 7136 7137mips64*-*linux*) 7138 # Find out what ABI is being produced by ac_compile, and set linker 7139 # options accordingly. 7140 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7142 (eval $ac_compile) 2>&5 7143 ac_status=$? 7144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7145 test $ac_status = 0; }; then 7146 emul=elf 7147 case `/usr/bin/file conftest.$ac_objext` in 7148 *32-bit*) 7149 emul="${emul}32" 7150 ;; 7151 *64-bit*) 7152 emul="${emul}64" 7153 ;; 7154 esac 7155 case `/usr/bin/file conftest.$ac_objext` in 7156 *MSB*) 7157 emul="${emul}btsmip" 7158 ;; 7159 *LSB*) 7160 emul="${emul}ltsmip" 7161 ;; 7162 esac 7163 case `/usr/bin/file conftest.$ac_objext` in 7164 *N32*) 7165 emul="${emul}n32" 7166 ;; 7167 esac 7168 LD="${LD-ld} -m $emul" 7169 fi 7170 rm -rf conftest* 7171 ;; 7172 7173x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7174s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7175 # Find out what ABI is being produced by ac_compile, and set linker 7176 # options accordingly. Note that the listed cases only cover the 7177 # situations where additional linker options are needed (such as when 7178 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7179 # vice versa); the common cases where no linker options are needed do 7180 # not appear in the list. 7181 echo 'int i;' > conftest.$ac_ext 7182 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7183 (eval $ac_compile) 2>&5 7184 ac_status=$? 7185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7186 test $ac_status = 0; }; then 7187 case `/usr/bin/file conftest.o` in 7188 *32-bit*) 7189 case $host in 7190 x86_64-*kfreebsd*-gnu) 7191 LD="${LD-ld} -m elf_i386_fbsd" 7192 ;; 7193 x86_64-*linux*) 7194 case `/usr/bin/file conftest.o` in 7195 *x86-64*) 7196 LD="${LD-ld} -m elf32_x86_64" 7197 ;; 7198 *) 7199 LD="${LD-ld} -m elf_i386" 7200 ;; 7201 esac 7202 ;; 7203 powerpc64le-*linux*) 7204 LD="${LD-ld} -m elf32lppclinux" 7205 ;; 7206 powerpc64-*linux*) 7207 LD="${LD-ld} -m elf32ppclinux" 7208 ;; 7209 s390x-*linux*) 7210 LD="${LD-ld} -m elf_s390" 7211 ;; 7212 sparc64-*linux*) 7213 LD="${LD-ld} -m elf32_sparc" 7214 ;; 7215 esac 7216 ;; 7217 *64-bit*) 7218 case $host in 7219 x86_64-*kfreebsd*-gnu) 7220 LD="${LD-ld} -m elf_x86_64_fbsd" 7221 ;; 7222 x86_64-*linux*) 7223 LD="${LD-ld} -m elf_x86_64" 7224 ;; 7225 powerpcle-*linux*) 7226 LD="${LD-ld} -m elf64lppc" 7227 ;; 7228 powerpc-*linux*) 7229 LD="${LD-ld} -m elf64ppc" 7230 ;; 7231 s390*-*linux*|s390*-*tpf*) 7232 LD="${LD-ld} -m elf64_s390" 7233 ;; 7234 sparc*-*linux*) 7235 LD="${LD-ld} -m elf64_sparc" 7236 ;; 7237 esac 7238 ;; 7239 esac 7240 fi 7241 rm -rf conftest* 7242 ;; 7243 7244*-*-sco3.2v5*) 7245 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7246 SAVE_CFLAGS=$CFLAGS 7247 CFLAGS="$CFLAGS -belf" 7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7249$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7250if ${lt_cv_cc_needs_belf+:} false; then : 7251 $as_echo_n "(cached) " >&6 7252else 7253 ac_ext=c 7254ac_cpp='$CPP $CPPFLAGS' 7255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7257ac_compiler_gnu=$ac_cv_c_compiler_gnu 7258 7259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7260/* end confdefs.h. */ 7261 7262int 7263main () 7264{ 7265 7266 ; 7267 return 0; 7268} 7269_ACEOF 7270if ac_fn_c_try_link "$LINENO"; then : 7271 lt_cv_cc_needs_belf=yes 7272else 7273 lt_cv_cc_needs_belf=no 7274fi 7275rm -f core conftest.err conftest.$ac_objext \ 7276 conftest$ac_exeext conftest.$ac_ext 7277 ac_ext=c 7278ac_cpp='$CPP $CPPFLAGS' 7279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7281ac_compiler_gnu=$ac_cv_c_compiler_gnu 7282 7283fi 7284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7285$as_echo "$lt_cv_cc_needs_belf" >&6; } 7286 if test yes != "$lt_cv_cc_needs_belf"; then 7287 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7288 CFLAGS=$SAVE_CFLAGS 7289 fi 7290 ;; 7291*-*solaris*) 7292 # Find out what ABI is being produced by ac_compile, and set linker 7293 # options accordingly. 7294 echo 'int i;' > conftest.$ac_ext 7295 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7296 (eval $ac_compile) 2>&5 7297 ac_status=$? 7298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7299 test $ac_status = 0; }; then 7300 case `/usr/bin/file conftest.o` in 7301 *64-bit*) 7302 case $lt_cv_prog_gnu_ld in 7303 yes*) 7304 case $host in 7305 i?86-*-solaris*|x86_64-*-solaris*) 7306 LD="${LD-ld} -m elf_x86_64" 7307 ;; 7308 sparc*-*-solaris*) 7309 LD="${LD-ld} -m elf64_sparc" 7310 ;; 7311 esac 7312 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7313 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7314 LD=${LD-ld}_sol2 7315 fi 7316 ;; 7317 *) 7318 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7319 LD="${LD-ld} -64" 7320 fi 7321 ;; 7322 esac 7323 ;; 7324 esac 7325 fi 7326 rm -rf conftest* 7327 ;; 7328esac 7329 7330need_locks=$enable_libtool_lock 7331 7332if test -n "$ac_tool_prefix"; then 7333 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7334set dummy ${ac_tool_prefix}mt; ac_word=$2 7335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7336$as_echo_n "checking for $ac_word... " >&6; } 7337if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7338 $as_echo_n "(cached) " >&6 7339else 7340 if test -n "$MANIFEST_TOOL"; then 7341 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7342else 7343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7344for as_dir in $PATH 7345do 7346 IFS=$as_save_IFS 7347 test -z "$as_dir" && as_dir=. 7348 for ac_exec_ext in '' $ac_executable_extensions; do 7349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7350 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7352 break 2 7353 fi 7354done 7355 done 7356IFS=$as_save_IFS 7357 7358fi 7359fi 7360MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7361if test -n "$MANIFEST_TOOL"; then 7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7363$as_echo "$MANIFEST_TOOL" >&6; } 7364else 7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7366$as_echo "no" >&6; } 7367fi 7368 7369 7370fi 7371if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7372 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7373 # Extract the first word of "mt", so it can be a program name with args. 7374set dummy mt; ac_word=$2 7375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7376$as_echo_n "checking for $ac_word... " >&6; } 7377if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7378 $as_echo_n "(cached) " >&6 7379else 7380 if test -n "$ac_ct_MANIFEST_TOOL"; then 7381 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7382else 7383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7384for as_dir in $PATH 7385do 7386 IFS=$as_save_IFS 7387 test -z "$as_dir" && as_dir=. 7388 for ac_exec_ext in '' $ac_executable_extensions; do 7389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7390 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7392 break 2 7393 fi 7394done 7395 done 7396IFS=$as_save_IFS 7397 7398fi 7399fi 7400ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7401if test -n "$ac_ct_MANIFEST_TOOL"; then 7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7403$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7404else 7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7406$as_echo "no" >&6; } 7407fi 7408 7409 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7410 MANIFEST_TOOL=":" 7411 else 7412 case $cross_compiling:$ac_tool_warned in 7413yes:) 7414{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7415$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7416ac_tool_warned=yes ;; 7417esac 7418 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7419 fi 7420else 7421 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7422fi 7423 7424test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7426$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7427if ${lt_cv_path_mainfest_tool+:} false; then : 7428 $as_echo_n "(cached) " >&6 7429else 7430 lt_cv_path_mainfest_tool=no 7431 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7432 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7433 cat conftest.err >&5 7434 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7435 lt_cv_path_mainfest_tool=yes 7436 fi 7437 rm -f conftest* 7438fi 7439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7440$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7441if test yes != "$lt_cv_path_mainfest_tool"; then 7442 MANIFEST_TOOL=: 7443fi 7444 7445 7446 7447 7448 7449 7450 case $host_os in 7451 rhapsody* | darwin*) 7452 if test -n "$ac_tool_prefix"; then 7453 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7454set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7456$as_echo_n "checking for $ac_word... " >&6; } 7457if ${ac_cv_prog_DSYMUTIL+:} false; then : 7458 $as_echo_n "(cached) " >&6 7459else 7460 if test -n "$DSYMUTIL"; then 7461 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7462else 7463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7464for as_dir in $PATH 7465do 7466 IFS=$as_save_IFS 7467 test -z "$as_dir" && as_dir=. 7468 for ac_exec_ext in '' $ac_executable_extensions; do 7469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7470 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7472 break 2 7473 fi 7474done 7475 done 7476IFS=$as_save_IFS 7477 7478fi 7479fi 7480DSYMUTIL=$ac_cv_prog_DSYMUTIL 7481if test -n "$DSYMUTIL"; then 7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7483$as_echo "$DSYMUTIL" >&6; } 7484else 7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7486$as_echo "no" >&6; } 7487fi 7488 7489 7490fi 7491if test -z "$ac_cv_prog_DSYMUTIL"; then 7492 ac_ct_DSYMUTIL=$DSYMUTIL 7493 # Extract the first word of "dsymutil", so it can be a program name with args. 7494set dummy dsymutil; ac_word=$2 7495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7496$as_echo_n "checking for $ac_word... " >&6; } 7497if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7498 $as_echo_n "(cached) " >&6 7499else 7500 if test -n "$ac_ct_DSYMUTIL"; then 7501 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7502else 7503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7504for as_dir in $PATH 7505do 7506 IFS=$as_save_IFS 7507 test -z "$as_dir" && as_dir=. 7508 for ac_exec_ext in '' $ac_executable_extensions; do 7509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7510 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7512 break 2 7513 fi 7514done 7515 done 7516IFS=$as_save_IFS 7517 7518fi 7519fi 7520ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7521if test -n "$ac_ct_DSYMUTIL"; then 7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7523$as_echo "$ac_ct_DSYMUTIL" >&6; } 7524else 7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7526$as_echo "no" >&6; } 7527fi 7528 7529 if test "x$ac_ct_DSYMUTIL" = x; then 7530 DSYMUTIL=":" 7531 else 7532 case $cross_compiling:$ac_tool_warned in 7533yes:) 7534{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7535$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7536ac_tool_warned=yes ;; 7537esac 7538 DSYMUTIL=$ac_ct_DSYMUTIL 7539 fi 7540else 7541 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7542fi 7543 7544 if test -n "$ac_tool_prefix"; then 7545 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7546set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7548$as_echo_n "checking for $ac_word... " >&6; } 7549if ${ac_cv_prog_NMEDIT+:} false; then : 7550 $as_echo_n "(cached) " >&6 7551else 7552 if test -n "$NMEDIT"; then 7553 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7554else 7555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7556for as_dir in $PATH 7557do 7558 IFS=$as_save_IFS 7559 test -z "$as_dir" && as_dir=. 7560 for ac_exec_ext in '' $ac_executable_extensions; do 7561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7562 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7564 break 2 7565 fi 7566done 7567 done 7568IFS=$as_save_IFS 7569 7570fi 7571fi 7572NMEDIT=$ac_cv_prog_NMEDIT 7573if test -n "$NMEDIT"; then 7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7575$as_echo "$NMEDIT" >&6; } 7576else 7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7578$as_echo "no" >&6; } 7579fi 7580 7581 7582fi 7583if test -z "$ac_cv_prog_NMEDIT"; then 7584 ac_ct_NMEDIT=$NMEDIT 7585 # Extract the first word of "nmedit", so it can be a program name with args. 7586set dummy nmedit; ac_word=$2 7587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7588$as_echo_n "checking for $ac_word... " >&6; } 7589if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7590 $as_echo_n "(cached) " >&6 7591else 7592 if test -n "$ac_ct_NMEDIT"; then 7593 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7594else 7595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7596for as_dir in $PATH 7597do 7598 IFS=$as_save_IFS 7599 test -z "$as_dir" && as_dir=. 7600 for ac_exec_ext in '' $ac_executable_extensions; do 7601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7602 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7604 break 2 7605 fi 7606done 7607 done 7608IFS=$as_save_IFS 7609 7610fi 7611fi 7612ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7613if test -n "$ac_ct_NMEDIT"; then 7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7615$as_echo "$ac_ct_NMEDIT" >&6; } 7616else 7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7618$as_echo "no" >&6; } 7619fi 7620 7621 if test "x$ac_ct_NMEDIT" = x; then 7622 NMEDIT=":" 7623 else 7624 case $cross_compiling:$ac_tool_warned in 7625yes:) 7626{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7627$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7628ac_tool_warned=yes ;; 7629esac 7630 NMEDIT=$ac_ct_NMEDIT 7631 fi 7632else 7633 NMEDIT="$ac_cv_prog_NMEDIT" 7634fi 7635 7636 if test -n "$ac_tool_prefix"; then 7637 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7638set dummy ${ac_tool_prefix}lipo; ac_word=$2 7639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7640$as_echo_n "checking for $ac_word... " >&6; } 7641if ${ac_cv_prog_LIPO+:} false; then : 7642 $as_echo_n "(cached) " >&6 7643else 7644 if test -n "$LIPO"; then 7645 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7646else 7647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7648for as_dir in $PATH 7649do 7650 IFS=$as_save_IFS 7651 test -z "$as_dir" && as_dir=. 7652 for ac_exec_ext in '' $ac_executable_extensions; do 7653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7654 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7656 break 2 7657 fi 7658done 7659 done 7660IFS=$as_save_IFS 7661 7662fi 7663fi 7664LIPO=$ac_cv_prog_LIPO 7665if test -n "$LIPO"; then 7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7667$as_echo "$LIPO" >&6; } 7668else 7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7670$as_echo "no" >&6; } 7671fi 7672 7673 7674fi 7675if test -z "$ac_cv_prog_LIPO"; then 7676 ac_ct_LIPO=$LIPO 7677 # Extract the first word of "lipo", so it can be a program name with args. 7678set dummy lipo; ac_word=$2 7679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7680$as_echo_n "checking for $ac_word... " >&6; } 7681if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7682 $as_echo_n "(cached) " >&6 7683else 7684 if test -n "$ac_ct_LIPO"; then 7685 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7686else 7687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7688for as_dir in $PATH 7689do 7690 IFS=$as_save_IFS 7691 test -z "$as_dir" && as_dir=. 7692 for ac_exec_ext in '' $ac_executable_extensions; do 7693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7694 ac_cv_prog_ac_ct_LIPO="lipo" 7695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7696 break 2 7697 fi 7698done 7699 done 7700IFS=$as_save_IFS 7701 7702fi 7703fi 7704ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7705if test -n "$ac_ct_LIPO"; then 7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7707$as_echo "$ac_ct_LIPO" >&6; } 7708else 7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7710$as_echo "no" >&6; } 7711fi 7712 7713 if test "x$ac_ct_LIPO" = x; then 7714 LIPO=":" 7715 else 7716 case $cross_compiling:$ac_tool_warned in 7717yes:) 7718{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7719$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7720ac_tool_warned=yes ;; 7721esac 7722 LIPO=$ac_ct_LIPO 7723 fi 7724else 7725 LIPO="$ac_cv_prog_LIPO" 7726fi 7727 7728 if test -n "$ac_tool_prefix"; then 7729 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7730set dummy ${ac_tool_prefix}otool; ac_word=$2 7731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7732$as_echo_n "checking for $ac_word... " >&6; } 7733if ${ac_cv_prog_OTOOL+:} false; then : 7734 $as_echo_n "(cached) " >&6 7735else 7736 if test -n "$OTOOL"; then 7737 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7738else 7739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7740for as_dir in $PATH 7741do 7742 IFS=$as_save_IFS 7743 test -z "$as_dir" && as_dir=. 7744 for ac_exec_ext in '' $ac_executable_extensions; do 7745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7746 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7748 break 2 7749 fi 7750done 7751 done 7752IFS=$as_save_IFS 7753 7754fi 7755fi 7756OTOOL=$ac_cv_prog_OTOOL 7757if test -n "$OTOOL"; then 7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7759$as_echo "$OTOOL" >&6; } 7760else 7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7762$as_echo "no" >&6; } 7763fi 7764 7765 7766fi 7767if test -z "$ac_cv_prog_OTOOL"; then 7768 ac_ct_OTOOL=$OTOOL 7769 # Extract the first word of "otool", so it can be a program name with args. 7770set dummy otool; ac_word=$2 7771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7772$as_echo_n "checking for $ac_word... " >&6; } 7773if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7774 $as_echo_n "(cached) " >&6 7775else 7776 if test -n "$ac_ct_OTOOL"; then 7777 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7778else 7779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7780for as_dir in $PATH 7781do 7782 IFS=$as_save_IFS 7783 test -z "$as_dir" && as_dir=. 7784 for ac_exec_ext in '' $ac_executable_extensions; do 7785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7786 ac_cv_prog_ac_ct_OTOOL="otool" 7787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7788 break 2 7789 fi 7790done 7791 done 7792IFS=$as_save_IFS 7793 7794fi 7795fi 7796ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7797if test -n "$ac_ct_OTOOL"; then 7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7799$as_echo "$ac_ct_OTOOL" >&6; } 7800else 7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7802$as_echo "no" >&6; } 7803fi 7804 7805 if test "x$ac_ct_OTOOL" = x; then 7806 OTOOL=":" 7807 else 7808 case $cross_compiling:$ac_tool_warned in 7809yes:) 7810{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7811$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7812ac_tool_warned=yes ;; 7813esac 7814 OTOOL=$ac_ct_OTOOL 7815 fi 7816else 7817 OTOOL="$ac_cv_prog_OTOOL" 7818fi 7819 7820 if test -n "$ac_tool_prefix"; then 7821 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7822set dummy ${ac_tool_prefix}otool64; ac_word=$2 7823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7824$as_echo_n "checking for $ac_word... " >&6; } 7825if ${ac_cv_prog_OTOOL64+:} false; then : 7826 $as_echo_n "(cached) " >&6 7827else 7828 if test -n "$OTOOL64"; then 7829 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7830else 7831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7832for as_dir in $PATH 7833do 7834 IFS=$as_save_IFS 7835 test -z "$as_dir" && as_dir=. 7836 for ac_exec_ext in '' $ac_executable_extensions; do 7837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7838 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7840 break 2 7841 fi 7842done 7843 done 7844IFS=$as_save_IFS 7845 7846fi 7847fi 7848OTOOL64=$ac_cv_prog_OTOOL64 7849if test -n "$OTOOL64"; then 7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7851$as_echo "$OTOOL64" >&6; } 7852else 7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7854$as_echo "no" >&6; } 7855fi 7856 7857 7858fi 7859if test -z "$ac_cv_prog_OTOOL64"; then 7860 ac_ct_OTOOL64=$OTOOL64 7861 # Extract the first word of "otool64", so it can be a program name with args. 7862set dummy otool64; ac_word=$2 7863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7864$as_echo_n "checking for $ac_word... " >&6; } 7865if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7866 $as_echo_n "(cached) " >&6 7867else 7868 if test -n "$ac_ct_OTOOL64"; then 7869 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7870else 7871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7872for as_dir in $PATH 7873do 7874 IFS=$as_save_IFS 7875 test -z "$as_dir" && as_dir=. 7876 for ac_exec_ext in '' $ac_executable_extensions; do 7877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7878 ac_cv_prog_ac_ct_OTOOL64="otool64" 7879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7880 break 2 7881 fi 7882done 7883 done 7884IFS=$as_save_IFS 7885 7886fi 7887fi 7888ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7889if test -n "$ac_ct_OTOOL64"; then 7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7891$as_echo "$ac_ct_OTOOL64" >&6; } 7892else 7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7894$as_echo "no" >&6; } 7895fi 7896 7897 if test "x$ac_ct_OTOOL64" = x; then 7898 OTOOL64=":" 7899 else 7900 case $cross_compiling:$ac_tool_warned in 7901yes:) 7902{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7903$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7904ac_tool_warned=yes ;; 7905esac 7906 OTOOL64=$ac_ct_OTOOL64 7907 fi 7908else 7909 OTOOL64="$ac_cv_prog_OTOOL64" 7910fi 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7939$as_echo_n "checking for -single_module linker flag... " >&6; } 7940if ${lt_cv_apple_cc_single_mod+:} false; then : 7941 $as_echo_n "(cached) " >&6 7942else 7943 lt_cv_apple_cc_single_mod=no 7944 if test -z "$LT_MULTI_MODULE"; then 7945 # By default we will add the -single_module flag. You can override 7946 # by either setting the environment variable LT_MULTI_MODULE 7947 # non-empty at configure time, or by adding -multi_module to the 7948 # link flags. 7949 rm -rf libconftest.dylib* 7950 echo "int foo(void){return 1;}" > conftest.c 7951 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7952-dynamiclib -Wl,-single_module conftest.c" >&5 7953 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7954 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7955 _lt_result=$? 7956 # If there is a non-empty error log, and "single_module" 7957 # appears in it, assume the flag caused a linker warning 7958 if test -s conftest.err && $GREP single_module conftest.err; then 7959 cat conftest.err >&5 7960 # Otherwise, if the output was created with a 0 exit code from 7961 # the compiler, it worked. 7962 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7963 lt_cv_apple_cc_single_mod=yes 7964 else 7965 cat conftest.err >&5 7966 fi 7967 rm -rf libconftest.dylib* 7968 rm -f conftest.* 7969 fi 7970fi 7971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7972$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7973 7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7975$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7976if ${lt_cv_ld_exported_symbols_list+:} false; then : 7977 $as_echo_n "(cached) " >&6 7978else 7979 lt_cv_ld_exported_symbols_list=no 7980 save_LDFLAGS=$LDFLAGS 7981 echo "_main" > conftest.sym 7982 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7984/* end confdefs.h. */ 7985 7986int 7987main () 7988{ 7989 7990 ; 7991 return 0; 7992} 7993_ACEOF 7994if ac_fn_c_try_link "$LINENO"; then : 7995 lt_cv_ld_exported_symbols_list=yes 7996else 7997 lt_cv_ld_exported_symbols_list=no 7998fi 7999rm -f core conftest.err conftest.$ac_objext \ 8000 conftest$ac_exeext conftest.$ac_ext 8001 LDFLAGS=$save_LDFLAGS 8002 8003fi 8004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8005$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8006 8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8008$as_echo_n "checking for -force_load linker flag... " >&6; } 8009if ${lt_cv_ld_force_load+:} false; then : 8010 $as_echo_n "(cached) " >&6 8011else 8012 lt_cv_ld_force_load=no 8013 cat > conftest.c << _LT_EOF 8014int forced_loaded() { return 2;} 8015_LT_EOF 8016 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8017 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8018 echo "$AR cru libconftest.a conftest.o" >&5 8019 $AR cru libconftest.a conftest.o 2>&5 8020 echo "$RANLIB libconftest.a" >&5 8021 $RANLIB libconftest.a 2>&5 8022 cat > conftest.c << _LT_EOF 8023int main() { return 0;} 8024_LT_EOF 8025 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8026 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8027 _lt_result=$? 8028 if test -s conftest.err && $GREP force_load conftest.err; then 8029 cat conftest.err >&5 8030 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8031 lt_cv_ld_force_load=yes 8032 else 8033 cat conftest.err >&5 8034 fi 8035 rm -f conftest.err libconftest.a conftest conftest.c 8036 rm -rf conftest.dSYM 8037 8038fi 8039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8040$as_echo "$lt_cv_ld_force_load" >&6; } 8041 case $host_os in 8042 rhapsody* | darwin1.[012]) 8043 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8044 darwin1.*) 8045 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8046 darwin*) # darwin 5.x on 8047 # if running on 10.5 or later, the deployment target defaults 8048 # to the OS version, if on x86, and 10.4, the deployment 8049 # target defaults to 10.4. Don't you love it? 8050 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8051 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8052 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8053 10.[012][,.]*) 8054 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8055 10.*) 8056 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8057 esac 8058 ;; 8059 esac 8060 if test yes = "$lt_cv_apple_cc_single_mod"; then 8061 _lt_dar_single_mod='$single_module' 8062 fi 8063 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8064 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8065 else 8066 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8067 fi 8068 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8069 _lt_dsymutil='~$DSYMUTIL $lib || :' 8070 else 8071 _lt_dsymutil= 8072 fi 8073 ;; 8074 esac 8075 8076# func_munge_path_list VARIABLE PATH 8077# ----------------------------------- 8078# VARIABLE is name of variable containing _space_ separated list of 8079# directories to be munged by the contents of PATH, which is string 8080# having a format: 8081# "DIR[:DIR]:" 8082# string "DIR[ DIR]" will be prepended to VARIABLE 8083# ":DIR[:DIR]" 8084# string "DIR[ DIR]" will be appended to VARIABLE 8085# "DIRP[:DIRP]::[DIRA:]DIRA" 8086# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8087# "DIRA[ DIRA]" will be appended to VARIABLE 8088# "DIR[:DIR]" 8089# VARIABLE will be replaced by "DIR[ DIR]" 8090func_munge_path_list () 8091{ 8092 case x$2 in 8093 x) 8094 ;; 8095 *:) 8096 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8097 ;; 8098 x:*) 8099 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8100 ;; 8101 *::*) 8102 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8103 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8104 ;; 8105 *) 8106 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8107 ;; 8108 esac 8109} 8110 8111ac_ext=c 8112ac_cpp='$CPP $CPPFLAGS' 8113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8115ac_compiler_gnu=$ac_cv_c_compiler_gnu 8116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 8117$as_echo_n "checking how to run the C preprocessor... " >&6; } 8118# On Suns, sometimes $CPP names a directory. 8119if test -n "$CPP" && test -d "$CPP"; then 8120 CPP= 8121fi 8122if test -z "$CPP"; then 8123 if ${ac_cv_prog_CPP+:} false; then : 8124 $as_echo_n "(cached) " >&6 8125else 8126 # Double quotes because CPP needs to be expanded 8127 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 8128 do 8129 ac_preproc_ok=false 8130for ac_c_preproc_warn_flag in '' yes 8131do 8132 # Use a header file that comes with gcc, so configuring glibc 8133 # with a fresh cross-compiler works. 8134 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8135 # <limits.h> exists even on freestanding compilers. 8136 # On the NeXT, cc -E runs the code through the compiler's parser, 8137 # not just through cpp. "Syntax error" is here to catch this case. 8138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8139/* end confdefs.h. */ 8140#ifdef __STDC__ 8141# include <limits.h> 8142#else 8143# include <assert.h> 8144#endif 8145 Syntax error 8146_ACEOF 8147if ac_fn_c_try_cpp "$LINENO"; then : 8148 8149else 8150 # Broken: fails on valid input. 8151continue 8152fi 8153rm -f conftest.err conftest.i conftest.$ac_ext 8154 8155 # OK, works on sane cases. Now check whether nonexistent headers 8156 # can be detected and how. 8157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8158/* end confdefs.h. */ 8159#include <ac_nonexistent.h> 8160_ACEOF 8161if ac_fn_c_try_cpp "$LINENO"; then : 8162 # Broken: success on invalid input. 8163continue 8164else 8165 # Passes both tests. 8166ac_preproc_ok=: 8167break 8168fi 8169rm -f conftest.err conftest.i conftest.$ac_ext 8170 8171done 8172# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8173rm -f conftest.i conftest.err conftest.$ac_ext 8174if $ac_preproc_ok; then : 8175 break 8176fi 8177 8178 done 8179 ac_cv_prog_CPP=$CPP 8180 8181fi 8182 CPP=$ac_cv_prog_CPP 8183else 8184 ac_cv_prog_CPP=$CPP 8185fi 8186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 8187$as_echo "$CPP" >&6; } 8188ac_preproc_ok=false 8189for ac_c_preproc_warn_flag in '' yes 8190do 8191 # Use a header file that comes with gcc, so configuring glibc 8192 # with a fresh cross-compiler works. 8193 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8194 # <limits.h> exists even on freestanding compilers. 8195 # On the NeXT, cc -E runs the code through the compiler's parser, 8196 # not just through cpp. "Syntax error" is here to catch this case. 8197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8198/* end confdefs.h. */ 8199#ifdef __STDC__ 8200# include <limits.h> 8201#else 8202# include <assert.h> 8203#endif 8204 Syntax error 8205_ACEOF 8206if ac_fn_c_try_cpp "$LINENO"; then : 8207 8208else 8209 # Broken: fails on valid input. 8210continue 8211fi 8212rm -f conftest.err conftest.i conftest.$ac_ext 8213 8214 # OK, works on sane cases. Now check whether nonexistent headers 8215 # can be detected and how. 8216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8217/* end confdefs.h. */ 8218#include <ac_nonexistent.h> 8219_ACEOF 8220if ac_fn_c_try_cpp "$LINENO"; then : 8221 # Broken: success on invalid input. 8222continue 8223else 8224 # Passes both tests. 8225ac_preproc_ok=: 8226break 8227fi 8228rm -f conftest.err conftest.i conftest.$ac_ext 8229 8230done 8231# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8232rm -f conftest.i conftest.err conftest.$ac_ext 8233if $ac_preproc_ok; then : 8234 8235else 8236 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8238as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 8239See \`config.log' for more details" "$LINENO" 5; } 8240fi 8241 8242ac_ext=c 8243ac_cpp='$CPP $CPPFLAGS' 8244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8246ac_compiler_gnu=$ac_cv_c_compiler_gnu 8247 8248 8249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8250$as_echo_n "checking for ANSI C header files... " >&6; } 8251if ${ac_cv_header_stdc+:} false; then : 8252 $as_echo_n "(cached) " >&6 8253else 8254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8255/* end confdefs.h. */ 8256#include <stdlib.h> 8257#include <stdarg.h> 8258#include <string.h> 8259#include <float.h> 8260 8261int 8262main () 8263{ 8264 8265 ; 8266 return 0; 8267} 8268_ACEOF 8269if ac_fn_c_try_compile "$LINENO"; then : 8270 ac_cv_header_stdc=yes 8271else 8272 ac_cv_header_stdc=no 8273fi 8274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8275 8276if test $ac_cv_header_stdc = yes; then 8277 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8279/* end confdefs.h. */ 8280#include <string.h> 8281 8282_ACEOF 8283if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8284 $EGREP "memchr" >/dev/null 2>&1; then : 8285 8286else 8287 ac_cv_header_stdc=no 8288fi 8289rm -f conftest* 8290 8291fi 8292 8293if test $ac_cv_header_stdc = yes; then 8294 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8296/* end confdefs.h. */ 8297#include <stdlib.h> 8298 8299_ACEOF 8300if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8301 $EGREP "free" >/dev/null 2>&1; then : 8302 8303else 8304 ac_cv_header_stdc=no 8305fi 8306rm -f conftest* 8307 8308fi 8309 8310if test $ac_cv_header_stdc = yes; then 8311 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8312 if test "$cross_compiling" = yes; then : 8313 : 8314else 8315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8316/* end confdefs.h. */ 8317#include <ctype.h> 8318#include <stdlib.h> 8319#if ((' ' & 0x0FF) == 0x020) 8320# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8321# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8322#else 8323# define ISLOWER(c) \ 8324 (('a' <= (c) && (c) <= 'i') \ 8325 || ('j' <= (c) && (c) <= 'r') \ 8326 || ('s' <= (c) && (c) <= 'z')) 8327# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8328#endif 8329 8330#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8331int 8332main () 8333{ 8334 int i; 8335 for (i = 0; i < 256; i++) 8336 if (XOR (islower (i), ISLOWER (i)) 8337 || toupper (i) != TOUPPER (i)) 8338 return 2; 8339 return 0; 8340} 8341_ACEOF 8342if ac_fn_c_try_run "$LINENO"; then : 8343 8344else 8345 ac_cv_header_stdc=no 8346fi 8347rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8348 conftest.$ac_objext conftest.beam conftest.$ac_ext 8349fi 8350 8351fi 8352fi 8353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8354$as_echo "$ac_cv_header_stdc" >&6; } 8355if test $ac_cv_header_stdc = yes; then 8356 8357$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8358 8359fi 8360 8361# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8362for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8363 inttypes.h stdint.h unistd.h 8364do : 8365 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8366ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8367" 8368if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8369 cat >>confdefs.h <<_ACEOF 8370#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8371_ACEOF 8372 8373fi 8374 8375done 8376 8377 8378for ac_header in dlfcn.h 8379do : 8380 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8381" 8382if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8383 cat >>confdefs.h <<_ACEOF 8384#define HAVE_DLFCN_H 1 8385_ACEOF 8386 8387fi 8388 8389done 8390 8391 8392 8393 8394func_stripname_cnf () 8395{ 8396 case $2 in 8397 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 8398 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 8399 esac 8400} # func_stripname_cnf 8401 8402 8403 8404 8405 8406# Set options 8407 8408 8409 8410 enable_dlopen=no 8411 8412 8413 enable_win32_dll=no 8414 8415 8416 # Check whether --enable-shared was given. 8417if test "${enable_shared+set}" = set; then : 8418 enableval=$enable_shared; p=${PACKAGE-default} 8419 case $enableval in 8420 yes) enable_shared=yes ;; 8421 no) enable_shared=no ;; 8422 *) 8423 enable_shared=no 8424 # Look at the argument we got. We use all the common list separators. 8425 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8426 for pkg in $enableval; do 8427 IFS=$lt_save_ifs 8428 if test "X$pkg" = "X$p"; then 8429 enable_shared=yes 8430 fi 8431 done 8432 IFS=$lt_save_ifs 8433 ;; 8434 esac 8435else 8436 enable_shared=yes 8437fi 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 # Check whether --enable-static was given. 8448if test "${enable_static+set}" = set; then : 8449 enableval=$enable_static; p=${PACKAGE-default} 8450 case $enableval in 8451 yes) enable_static=yes ;; 8452 no) enable_static=no ;; 8453 *) 8454 enable_static=no 8455 # Look at the argument we got. We use all the common list separators. 8456 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8457 for pkg in $enableval; do 8458 IFS=$lt_save_ifs 8459 if test "X$pkg" = "X$p"; then 8460 enable_static=yes 8461 fi 8462 done 8463 IFS=$lt_save_ifs 8464 ;; 8465 esac 8466else 8467 enable_static=yes 8468fi 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479# Check whether --with-pic was given. 8480if test "${with_pic+set}" = set; then : 8481 withval=$with_pic; lt_p=${PACKAGE-default} 8482 case $withval in 8483 yes|no) pic_mode=$withval ;; 8484 *) 8485 pic_mode=default 8486 # Look at the argument we got. We use all the common list separators. 8487 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8488 for lt_pkg in $withval; do 8489 IFS=$lt_save_ifs 8490 if test "X$lt_pkg" = "X$lt_p"; then 8491 pic_mode=yes 8492 fi 8493 done 8494 IFS=$lt_save_ifs 8495 ;; 8496 esac 8497else 8498 pic_mode=default 8499fi 8500 8501 8502 8503 8504 8505 8506 8507 8508 # Check whether --enable-fast-install was given. 8509if test "${enable_fast_install+set}" = set; then : 8510 enableval=$enable_fast_install; p=${PACKAGE-default} 8511 case $enableval in 8512 yes) enable_fast_install=yes ;; 8513 no) enable_fast_install=no ;; 8514 *) 8515 enable_fast_install=no 8516 # Look at the argument we got. We use all the common list separators. 8517 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8518 for pkg in $enableval; do 8519 IFS=$lt_save_ifs 8520 if test "X$pkg" = "X$p"; then 8521 enable_fast_install=yes 8522 fi 8523 done 8524 IFS=$lt_save_ifs 8525 ;; 8526 esac 8527else 8528 enable_fast_install=yes 8529fi 8530 8531 8532 8533 8534 8535 8536 8537 8538 shared_archive_member_spec= 8539case $host,$enable_shared in 8540power*-*-aix[5-9]*,yes) 8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8542$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8543 8544# Check whether --with-aix-soname was given. 8545if test "${with_aix_soname+set}" = set; then : 8546 withval=$with_aix_soname; case $withval in 8547 aix|svr4|both) 8548 ;; 8549 *) 8550 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8551 ;; 8552 esac 8553 lt_cv_with_aix_soname=$with_aix_soname 8554else 8555 if ${lt_cv_with_aix_soname+:} false; then : 8556 $as_echo_n "(cached) " >&6 8557else 8558 lt_cv_with_aix_soname=aix 8559fi 8560 8561 with_aix_soname=$lt_cv_with_aix_soname 8562fi 8563 8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8565$as_echo "$with_aix_soname" >&6; } 8566 if test aix != "$with_aix_soname"; then 8567 # For the AIX way of multilib, we name the shared archive member 8568 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8569 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8570 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8571 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8572 if test 64 = "${OBJECT_MODE-32}"; then 8573 shared_archive_member_spec=shr_64 8574 else 8575 shared_archive_member_spec=shr 8576 fi 8577 fi 8578 ;; 8579*) 8580 with_aix_soname=aix 8581 ;; 8582esac 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593# This can be used to rebuild libtool when needed 8594LIBTOOL_DEPS=$ltmain 8595 8596# Always use our own libtool. 8597LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628test -z "$LN_S" && LN_S="ln -s" 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643if test -n "${ZSH_VERSION+set}"; then 8644 setopt NO_GLOB_SUBST 8645fi 8646 8647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8648$as_echo_n "checking for objdir... " >&6; } 8649if ${lt_cv_objdir+:} false; then : 8650 $as_echo_n "(cached) " >&6 8651else 8652 rm -f .libs 2>/dev/null 8653mkdir .libs 2>/dev/null 8654if test -d .libs; then 8655 lt_cv_objdir=.libs 8656else 8657 # MS-DOS does not allow filenames that begin with a dot. 8658 lt_cv_objdir=_libs 8659fi 8660rmdir .libs 2>/dev/null 8661fi 8662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8663$as_echo "$lt_cv_objdir" >&6; } 8664objdir=$lt_cv_objdir 8665 8666 8667 8668 8669 8670cat >>confdefs.h <<_ACEOF 8671#define LT_OBJDIR "$lt_cv_objdir/" 8672_ACEOF 8673 8674 8675 8676 8677case $host_os in 8678aix3*) 8679 # AIX sometimes has problems with the GCC collect2 program. For some 8680 # reason, if we set the COLLECT_NAMES environment variable, the problems 8681 # vanish in a puff of smoke. 8682 if test set != "${COLLECT_NAMES+set}"; then 8683 COLLECT_NAMES= 8684 export COLLECT_NAMES 8685 fi 8686 ;; 8687esac 8688 8689# Global variables: 8690ofile=libtool 8691can_build_shared=yes 8692 8693# All known linkers require a '.a' archive for static linking (except MSVC, 8694# which needs '.lib'). 8695libext=a 8696 8697with_gnu_ld=$lt_cv_prog_gnu_ld 8698 8699old_CC=$CC 8700old_CFLAGS=$CFLAGS 8701 8702# Set sane defaults for various variables 8703test -z "$CC" && CC=cc 8704test -z "$LTCC" && LTCC=$CC 8705test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8706test -z "$LD" && LD=ld 8707test -z "$ac_objext" && ac_objext=o 8708 8709func_cc_basename $compiler 8710cc_basename=$func_cc_basename_result 8711 8712 8713# Only perform the check for file, if the check method requires it 8714test -z "$MAGIC_CMD" && MAGIC_CMD=file 8715case $deplibs_check_method in 8716file_magic*) 8717 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8719$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8720if ${lt_cv_path_MAGIC_CMD+:} false; then : 8721 $as_echo_n "(cached) " >&6 8722else 8723 case $MAGIC_CMD in 8724[\\/*] | ?:[\\/]*) 8725 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8726 ;; 8727*) 8728 lt_save_MAGIC_CMD=$MAGIC_CMD 8729 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8730 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8731 for ac_dir in $ac_dummy; do 8732 IFS=$lt_save_ifs 8733 test -z "$ac_dir" && ac_dir=. 8734 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8735 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8736 if test -n "$file_magic_test_file"; then 8737 case $deplibs_check_method in 8738 "file_magic "*) 8739 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8740 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8741 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8742 $EGREP "$file_magic_regex" > /dev/null; then 8743 : 8744 else 8745 cat <<_LT_EOF 1>&2 8746 8747*** Warning: the command libtool uses to detect shared libraries, 8748*** $file_magic_cmd, produces output that libtool cannot recognize. 8749*** The result is that libtool may fail to recognize shared libraries 8750*** as such. This will affect the creation of libtool libraries that 8751*** depend on shared libraries, but programs linked with such libtool 8752*** libraries will work regardless of this problem. Nevertheless, you 8753*** may want to report the problem to your system manager and/or to 8754*** bug-libtool@gnu.org 8755 8756_LT_EOF 8757 fi ;; 8758 esac 8759 fi 8760 break 8761 fi 8762 done 8763 IFS=$lt_save_ifs 8764 MAGIC_CMD=$lt_save_MAGIC_CMD 8765 ;; 8766esac 8767fi 8768 8769MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8770if test -n "$MAGIC_CMD"; then 8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8772$as_echo "$MAGIC_CMD" >&6; } 8773else 8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8775$as_echo "no" >&6; } 8776fi 8777 8778 8779 8780 8781 8782if test -z "$lt_cv_path_MAGIC_CMD"; then 8783 if test -n "$ac_tool_prefix"; then 8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8785$as_echo_n "checking for file... " >&6; } 8786if ${lt_cv_path_MAGIC_CMD+:} false; then : 8787 $as_echo_n "(cached) " >&6 8788else 8789 case $MAGIC_CMD in 8790[\\/*] | ?:[\\/]*) 8791 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8792 ;; 8793*) 8794 lt_save_MAGIC_CMD=$MAGIC_CMD 8795 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8796 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8797 for ac_dir in $ac_dummy; do 8798 IFS=$lt_save_ifs 8799 test -z "$ac_dir" && ac_dir=. 8800 if test -f "$ac_dir/file"; then 8801 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8802 if test -n "$file_magic_test_file"; then 8803 case $deplibs_check_method in 8804 "file_magic "*) 8805 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8806 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8807 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8808 $EGREP "$file_magic_regex" > /dev/null; then 8809 : 8810 else 8811 cat <<_LT_EOF 1>&2 8812 8813*** Warning: the command libtool uses to detect shared libraries, 8814*** $file_magic_cmd, produces output that libtool cannot recognize. 8815*** The result is that libtool may fail to recognize shared libraries 8816*** as such. This will affect the creation of libtool libraries that 8817*** depend on shared libraries, but programs linked with such libtool 8818*** libraries will work regardless of this problem. Nevertheless, you 8819*** may want to report the problem to your system manager and/or to 8820*** bug-libtool@gnu.org 8821 8822_LT_EOF 8823 fi ;; 8824 esac 8825 fi 8826 break 8827 fi 8828 done 8829 IFS=$lt_save_ifs 8830 MAGIC_CMD=$lt_save_MAGIC_CMD 8831 ;; 8832esac 8833fi 8834 8835MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8836if test -n "$MAGIC_CMD"; then 8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8838$as_echo "$MAGIC_CMD" >&6; } 8839else 8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8841$as_echo "no" >&6; } 8842fi 8843 8844 8845 else 8846 MAGIC_CMD=: 8847 fi 8848fi 8849 8850 fi 8851 ;; 8852esac 8853 8854# Use C for the default configuration in the libtool script 8855 8856lt_save_CC=$CC 8857ac_ext=c 8858ac_cpp='$CPP $CPPFLAGS' 8859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8861ac_compiler_gnu=$ac_cv_c_compiler_gnu 8862 8863 8864# Source file extension for C test sources. 8865ac_ext=c 8866 8867# Object file extension for compiled C test sources. 8868objext=o 8869objext=$objext 8870 8871# Code to be used in simple compile tests 8872lt_simple_compile_test_code="int some_variable = 0;" 8873 8874# Code to be used in simple link tests 8875lt_simple_link_test_code='int main(){return(0);}' 8876 8877 8878 8879 8880 8881 8882 8883# If no C compiler was specified, use CC. 8884LTCC=${LTCC-"$CC"} 8885 8886# If no C compiler flags were specified, use CFLAGS. 8887LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8888 8889# Allow CC to be a program name with arguments. 8890compiler=$CC 8891 8892# Save the default compiler, since it gets overwritten when the other 8893# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8894compiler_DEFAULT=$CC 8895 8896# save warnings/boilerplate of simple test code 8897ac_outfile=conftest.$ac_objext 8898echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8899eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8900_lt_compiler_boilerplate=`cat conftest.err` 8901$RM conftest* 8902 8903ac_outfile=conftest.$ac_objext 8904echo "$lt_simple_link_test_code" >conftest.$ac_ext 8905eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8906_lt_linker_boilerplate=`cat conftest.err` 8907$RM -r conftest* 8908 8909 8910## CAVEAT EMPTOR: 8911## There is no encapsulation within the following macros, do not change 8912## the running order or otherwise move them around unless you know exactly 8913## what you are doing... 8914if test -n "$compiler"; then 8915 8916lt_prog_compiler_no_builtin_flag= 8917 8918if test yes = "$GCC"; then 8919 case $cc_basename in 8920 nvcc*) 8921 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8922 *) 8923 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8924 esac 8925 8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8927$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8928if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8929 $as_echo_n "(cached) " >&6 8930else 8931 lt_cv_prog_compiler_rtti_exceptions=no 8932 ac_outfile=conftest.$ac_objext 8933 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8934 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8935 # Insert the option either (1) after the last *FLAGS variable, or 8936 # (2) before a word containing "conftest.", or (3) at the end. 8937 # Note that $ac_compile itself does not contain backslashes and begins 8938 # with a dollar sign (not a hyphen), so the echo should work correctly. 8939 # The option is referenced via a variable to avoid confusing sed. 8940 lt_compile=`echo "$ac_compile" | $SED \ 8941 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8942 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8943 -e 's:$: $lt_compiler_flag:'` 8944 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8945 (eval "$lt_compile" 2>conftest.err) 8946 ac_status=$? 8947 cat conftest.err >&5 8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8949 if (exit $ac_status) && test -s "$ac_outfile"; then 8950 # The compiler can only warn and ignore the option if not recognized 8951 # So say no if there are warnings other than the usual output. 8952 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8953 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8954 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8955 lt_cv_prog_compiler_rtti_exceptions=yes 8956 fi 8957 fi 8958 $RM conftest* 8959 8960fi 8961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8962$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8963 8964if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8965 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8966else 8967 : 8968fi 8969 8970fi 8971 8972 8973 8974 8975 8976 8977 lt_prog_compiler_wl= 8978lt_prog_compiler_pic= 8979lt_prog_compiler_static= 8980 8981 8982 if test yes = "$GCC"; then 8983 lt_prog_compiler_wl='-Wl,' 8984 lt_prog_compiler_static='-static' 8985 8986 case $host_os in 8987 aix*) 8988 # All AIX code is PIC. 8989 if test ia64 = "$host_cpu"; then 8990 # AIX 5 now supports IA64 processor 8991 lt_prog_compiler_static='-Bstatic' 8992 fi 8993 lt_prog_compiler_pic='-fPIC' 8994 ;; 8995 8996 amigaos*) 8997 case $host_cpu in 8998 powerpc) 8999 # see comment about AmigaOS4 .so support 9000 lt_prog_compiler_pic='-fPIC' 9001 ;; 9002 m68k) 9003 # FIXME: we need at least 68020 code to build shared libraries, but 9004 # adding the '-m68020' flag to GCC prevents building anything better, 9005 # like '-m68040'. 9006 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9007 ;; 9008 esac 9009 ;; 9010 9011 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9012 # PIC is the default for these OSes. 9013 ;; 9014 9015 mingw* | cygwin* | pw32* | os2* | cegcc*) 9016 # This hack is so that the source file can tell whether it is being 9017 # built for inclusion in a dll (and should export symbols for example). 9018 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9019 # (--disable-auto-import) libraries 9020 lt_prog_compiler_pic='-DDLL_EXPORT' 9021 case $host_os in 9022 os2*) 9023 lt_prog_compiler_static='$wl-static' 9024 ;; 9025 esac 9026 ;; 9027 9028 darwin* | rhapsody*) 9029 # PIC is the default on this platform 9030 # Common symbols not allowed in MH_DYLIB files 9031 lt_prog_compiler_pic='-fno-common' 9032 ;; 9033 9034 haiku*) 9035 # PIC is the default for Haiku. 9036 # The "-static" flag exists, but is broken. 9037 lt_prog_compiler_static= 9038 ;; 9039 9040 hpux*) 9041 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9042 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9043 # sets the default TLS model and affects inlining. 9044 case $host_cpu in 9045 hppa*64*) 9046 # +Z the default 9047 ;; 9048 *) 9049 lt_prog_compiler_pic='-fPIC' 9050 ;; 9051 esac 9052 ;; 9053 9054 interix[3-9]*) 9055 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9056 # Instead, we relocate shared libraries at runtime. 9057 ;; 9058 9059 msdosdjgpp*) 9060 # Just because we use GCC doesn't mean we suddenly get shared libraries 9061 # on systems that don't support them. 9062 lt_prog_compiler_can_build_shared=no 9063 enable_shared=no 9064 ;; 9065 9066 *nto* | *qnx*) 9067 # QNX uses GNU C++, but need to define -shared option too, otherwise 9068 # it will coredump. 9069 lt_prog_compiler_pic='-fPIC -shared' 9070 ;; 9071 9072 sysv4*MP*) 9073 if test -d /usr/nec; then 9074 lt_prog_compiler_pic=-Kconform_pic 9075 fi 9076 ;; 9077 9078 *) 9079 lt_prog_compiler_pic='-fPIC' 9080 ;; 9081 esac 9082 9083 case $cc_basename in 9084 nvcc*) # Cuda Compiler Driver 2.2 9085 lt_prog_compiler_wl='-Xlinker ' 9086 if test -n "$lt_prog_compiler_pic"; then 9087 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9088 fi 9089 ;; 9090 esac 9091 else 9092 # PORTME Check for flag to pass linker flags through the system compiler. 9093 case $host_os in 9094 aix*) 9095 lt_prog_compiler_wl='-Wl,' 9096 if test ia64 = "$host_cpu"; then 9097 # AIX 5 now supports IA64 processor 9098 lt_prog_compiler_static='-Bstatic' 9099 else 9100 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9101 fi 9102 ;; 9103 9104 darwin* | rhapsody*) 9105 # PIC is the default on this platform 9106 # Common symbols not allowed in MH_DYLIB files 9107 lt_prog_compiler_pic='-fno-common' 9108 case $cc_basename in 9109 nagfor*) 9110 # NAG Fortran compiler 9111 lt_prog_compiler_wl='-Wl,-Wl,,' 9112 lt_prog_compiler_pic='-PIC' 9113 lt_prog_compiler_static='-Bstatic' 9114 ;; 9115 esac 9116 ;; 9117 9118 mingw* | cygwin* | pw32* | os2* | cegcc*) 9119 # This hack is so that the source file can tell whether it is being 9120 # built for inclusion in a dll (and should export symbols for example). 9121 lt_prog_compiler_pic='-DDLL_EXPORT' 9122 case $host_os in 9123 os2*) 9124 lt_prog_compiler_static='$wl-static' 9125 ;; 9126 esac 9127 ;; 9128 9129 hpux9* | hpux10* | hpux11*) 9130 lt_prog_compiler_wl='-Wl,' 9131 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9132 # not for PA HP-UX. 9133 case $host_cpu in 9134 hppa*64*|ia64*) 9135 # +Z the default 9136 ;; 9137 *) 9138 lt_prog_compiler_pic='+Z' 9139 ;; 9140 esac 9141 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9142 lt_prog_compiler_static='$wl-a ${wl}archive' 9143 ;; 9144 9145 irix5* | irix6* | nonstopux*) 9146 lt_prog_compiler_wl='-Wl,' 9147 # PIC (with -KPIC) is the default. 9148 lt_prog_compiler_static='-non_shared' 9149 ;; 9150 9151 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9152 case $cc_basename in 9153 # old Intel for x86_64, which still supported -KPIC. 9154 ecc*) 9155 lt_prog_compiler_wl='-Wl,' 9156 lt_prog_compiler_pic='-KPIC' 9157 lt_prog_compiler_static='-static' 9158 ;; 9159 # icc used to be incompatible with GCC. 9160 # ICC 10 doesn't accept -KPIC any more. 9161 icc* | ifort*) 9162 lt_prog_compiler_wl='-Wl,' 9163 lt_prog_compiler_pic='-fPIC' 9164 lt_prog_compiler_static='-static' 9165 ;; 9166 # Lahey Fortran 8.1. 9167 lf95*) 9168 lt_prog_compiler_wl='-Wl,' 9169 lt_prog_compiler_pic='--shared' 9170 lt_prog_compiler_static='--static' 9171 ;; 9172 nagfor*) 9173 # NAG Fortran compiler 9174 lt_prog_compiler_wl='-Wl,-Wl,,' 9175 lt_prog_compiler_pic='-PIC' 9176 lt_prog_compiler_static='-Bstatic' 9177 ;; 9178 tcc*) 9179 # Fabrice Bellard et al's Tiny C Compiler 9180 lt_prog_compiler_wl='-Wl,' 9181 lt_prog_compiler_pic='-fPIC' 9182 lt_prog_compiler_static='-static' 9183 ;; 9184 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9185 # Portland Group compilers (*not* the Pentium gcc compiler, 9186 # which looks to be a dead project) 9187 lt_prog_compiler_wl='-Wl,' 9188 lt_prog_compiler_pic='-fpic' 9189 lt_prog_compiler_static='-Bstatic' 9190 ;; 9191 ccc*) 9192 lt_prog_compiler_wl='-Wl,' 9193 # All Alpha code is PIC. 9194 lt_prog_compiler_static='-non_shared' 9195 ;; 9196 xl* | bgxl* | bgf* | mpixl*) 9197 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9198 lt_prog_compiler_wl='-Wl,' 9199 lt_prog_compiler_pic='-qpic' 9200 lt_prog_compiler_static='-qstaticlink' 9201 ;; 9202 *) 9203 case `$CC -V 2>&1 | sed 5q` in 9204 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9205 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9206 lt_prog_compiler_pic='-KPIC' 9207 lt_prog_compiler_static='-Bstatic' 9208 lt_prog_compiler_wl='' 9209 ;; 9210 *Sun\ F* | *Sun*Fortran*) 9211 lt_prog_compiler_pic='-KPIC' 9212 lt_prog_compiler_static='-Bstatic' 9213 lt_prog_compiler_wl='-Qoption ld ' 9214 ;; 9215 *Sun\ C*) 9216 # Sun C 5.9 9217 lt_prog_compiler_pic='-KPIC' 9218 lt_prog_compiler_static='-Bstatic' 9219 lt_prog_compiler_wl='-Wl,' 9220 ;; 9221 *Intel*\ [CF]*Compiler*) 9222 lt_prog_compiler_wl='-Wl,' 9223 lt_prog_compiler_pic='-fPIC' 9224 lt_prog_compiler_static='-static' 9225 ;; 9226 *Portland\ Group*) 9227 lt_prog_compiler_wl='-Wl,' 9228 lt_prog_compiler_pic='-fpic' 9229 lt_prog_compiler_static='-Bstatic' 9230 ;; 9231 esac 9232 ;; 9233 esac 9234 ;; 9235 9236 newsos6) 9237 lt_prog_compiler_pic='-KPIC' 9238 lt_prog_compiler_static='-Bstatic' 9239 ;; 9240 9241 *nto* | *qnx*) 9242 # QNX uses GNU C++, but need to define -shared option too, otherwise 9243 # it will coredump. 9244 lt_prog_compiler_pic='-fPIC -shared' 9245 ;; 9246 9247 osf3* | osf4* | osf5*) 9248 lt_prog_compiler_wl='-Wl,' 9249 # All OSF/1 code is PIC. 9250 lt_prog_compiler_static='-non_shared' 9251 ;; 9252 9253 rdos*) 9254 lt_prog_compiler_static='-non_shared' 9255 ;; 9256 9257 solaris*) 9258 lt_prog_compiler_pic='-KPIC' 9259 lt_prog_compiler_static='-Bstatic' 9260 case $cc_basename in 9261 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9262 lt_prog_compiler_wl='-Qoption ld ';; 9263 *) 9264 lt_prog_compiler_wl='-Wl,';; 9265 esac 9266 ;; 9267 9268 sunos4*) 9269 lt_prog_compiler_wl='-Qoption ld ' 9270 lt_prog_compiler_pic='-PIC' 9271 lt_prog_compiler_static='-Bstatic' 9272 ;; 9273 9274 sysv4 | sysv4.2uw2* | sysv4.3*) 9275 lt_prog_compiler_wl='-Wl,' 9276 lt_prog_compiler_pic='-KPIC' 9277 lt_prog_compiler_static='-Bstatic' 9278 ;; 9279 9280 sysv4*MP*) 9281 if test -d /usr/nec; then 9282 lt_prog_compiler_pic='-Kconform_pic' 9283 lt_prog_compiler_static='-Bstatic' 9284 fi 9285 ;; 9286 9287 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9288 lt_prog_compiler_wl='-Wl,' 9289 lt_prog_compiler_pic='-KPIC' 9290 lt_prog_compiler_static='-Bstatic' 9291 ;; 9292 9293 unicos*) 9294 lt_prog_compiler_wl='-Wl,' 9295 lt_prog_compiler_can_build_shared=no 9296 ;; 9297 9298 uts4*) 9299 lt_prog_compiler_pic='-pic' 9300 lt_prog_compiler_static='-Bstatic' 9301 ;; 9302 9303 *) 9304 lt_prog_compiler_can_build_shared=no 9305 ;; 9306 esac 9307 fi 9308 9309case $host_os in 9310 # For platforms that do not support PIC, -DPIC is meaningless: 9311 *djgpp*) 9312 lt_prog_compiler_pic= 9313 ;; 9314 *) 9315 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9316 ;; 9317esac 9318 9319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9320$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9321if ${lt_cv_prog_compiler_pic+:} false; then : 9322 $as_echo_n "(cached) " >&6 9323else 9324 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9325fi 9326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9327$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9328lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9329 9330# 9331# Check to make sure the PIC flag actually works. 9332# 9333if test -n "$lt_prog_compiler_pic"; then 9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9335$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9336if ${lt_cv_prog_compiler_pic_works+:} false; then : 9337 $as_echo_n "(cached) " >&6 9338else 9339 lt_cv_prog_compiler_pic_works=no 9340 ac_outfile=conftest.$ac_objext 9341 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9342 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9343 # Insert the option either (1) after the last *FLAGS variable, or 9344 # (2) before a word containing "conftest.", or (3) at the end. 9345 # Note that $ac_compile itself does not contain backslashes and begins 9346 # with a dollar sign (not a hyphen), so the echo should work correctly. 9347 # The option is referenced via a variable to avoid confusing sed. 9348 lt_compile=`echo "$ac_compile" | $SED \ 9349 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9350 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9351 -e 's:$: $lt_compiler_flag:'` 9352 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9353 (eval "$lt_compile" 2>conftest.err) 9354 ac_status=$? 9355 cat conftest.err >&5 9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9357 if (exit $ac_status) && test -s "$ac_outfile"; then 9358 # The compiler can only warn and ignore the option if not recognized 9359 # So say no if there are warnings other than the usual output. 9360 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9361 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9362 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9363 lt_cv_prog_compiler_pic_works=yes 9364 fi 9365 fi 9366 $RM conftest* 9367 9368fi 9369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9370$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9371 9372if test yes = "$lt_cv_prog_compiler_pic_works"; then 9373 case $lt_prog_compiler_pic in 9374 "" | " "*) ;; 9375 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9376 esac 9377else 9378 lt_prog_compiler_pic= 9379 lt_prog_compiler_can_build_shared=no 9380fi 9381 9382fi 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394# 9395# Check to make sure the static flag actually works. 9396# 9397wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9399$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9400if ${lt_cv_prog_compiler_static_works+:} false; then : 9401 $as_echo_n "(cached) " >&6 9402else 9403 lt_cv_prog_compiler_static_works=no 9404 save_LDFLAGS=$LDFLAGS 9405 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9406 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9407 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9408 # The linker can only warn and ignore the option if not recognized 9409 # So say no if there are warnings 9410 if test -s conftest.err; then 9411 # Append any errors to the config.log. 9412 cat conftest.err 1>&5 9413 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9414 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9415 if diff conftest.exp conftest.er2 >/dev/null; then 9416 lt_cv_prog_compiler_static_works=yes 9417 fi 9418 else 9419 lt_cv_prog_compiler_static_works=yes 9420 fi 9421 fi 9422 $RM -r conftest* 9423 LDFLAGS=$save_LDFLAGS 9424 9425fi 9426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9427$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9428 9429if test yes = "$lt_cv_prog_compiler_static_works"; then 9430 : 9431else 9432 lt_prog_compiler_static= 9433fi 9434 9435 9436 9437 9438 9439 9440 9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9442$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9443if ${lt_cv_prog_compiler_c_o+:} false; then : 9444 $as_echo_n "(cached) " >&6 9445else 9446 lt_cv_prog_compiler_c_o=no 9447 $RM -r conftest 2>/dev/null 9448 mkdir conftest 9449 cd conftest 9450 mkdir out 9451 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9452 9453 lt_compiler_flag="-o out/conftest2.$ac_objext" 9454 # Insert the option either (1) after the last *FLAGS variable, or 9455 # (2) before a word containing "conftest.", or (3) at the end. 9456 # Note that $ac_compile itself does not contain backslashes and begins 9457 # with a dollar sign (not a hyphen), so the echo should work correctly. 9458 lt_compile=`echo "$ac_compile" | $SED \ 9459 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9460 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9461 -e 's:$: $lt_compiler_flag:'` 9462 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9463 (eval "$lt_compile" 2>out/conftest.err) 9464 ac_status=$? 9465 cat out/conftest.err >&5 9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9467 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9468 then 9469 # The compiler can only warn and ignore the option if not recognized 9470 # So say no if there are warnings 9471 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9472 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9473 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9474 lt_cv_prog_compiler_c_o=yes 9475 fi 9476 fi 9477 chmod u+w . 2>&5 9478 $RM conftest* 9479 # SGI C++ compiler will create directory out/ii_files/ for 9480 # template instantiation 9481 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9482 $RM out/* && rmdir out 9483 cd .. 9484 $RM -r conftest 9485 $RM conftest* 9486 9487fi 9488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9489$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9490 9491 9492 9493 9494 9495 9496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9497$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9498if ${lt_cv_prog_compiler_c_o+:} false; then : 9499 $as_echo_n "(cached) " >&6 9500else 9501 lt_cv_prog_compiler_c_o=no 9502 $RM -r conftest 2>/dev/null 9503 mkdir conftest 9504 cd conftest 9505 mkdir out 9506 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9507 9508 lt_compiler_flag="-o out/conftest2.$ac_objext" 9509 # Insert the option either (1) after the last *FLAGS variable, or 9510 # (2) before a word containing "conftest.", or (3) at the end. 9511 # Note that $ac_compile itself does not contain backslashes and begins 9512 # with a dollar sign (not a hyphen), so the echo should work correctly. 9513 lt_compile=`echo "$ac_compile" | $SED \ 9514 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9515 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9516 -e 's:$: $lt_compiler_flag:'` 9517 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9518 (eval "$lt_compile" 2>out/conftest.err) 9519 ac_status=$? 9520 cat out/conftest.err >&5 9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9522 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9523 then 9524 # The compiler can only warn and ignore the option if not recognized 9525 # So say no if there are warnings 9526 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9527 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9528 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9529 lt_cv_prog_compiler_c_o=yes 9530 fi 9531 fi 9532 chmod u+w . 2>&5 9533 $RM conftest* 9534 # SGI C++ compiler will create directory out/ii_files/ for 9535 # template instantiation 9536 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9537 $RM out/* && rmdir out 9538 cd .. 9539 $RM -r conftest 9540 $RM conftest* 9541 9542fi 9543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9544$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9545 9546 9547 9548 9549hard_links=nottested 9550if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9551 # do not overwrite the value of need_locks provided by the user 9552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9553$as_echo_n "checking if we can lock with hard links... " >&6; } 9554 hard_links=yes 9555 $RM conftest* 9556 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9557 touch conftest.a 9558 ln conftest.a conftest.b 2>&5 || hard_links=no 9559 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9561$as_echo "$hard_links" >&6; } 9562 if test no = "$hard_links"; then 9563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9564$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9565 need_locks=warn 9566 fi 9567else 9568 need_locks=no 9569fi 9570 9571 9572 9573 9574 9575 9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9577$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9578 9579 runpath_var= 9580 allow_undefined_flag= 9581 always_export_symbols=no 9582 archive_cmds= 9583 archive_expsym_cmds= 9584 compiler_needs_object=no 9585 enable_shared_with_static_runtimes=no 9586 export_dynamic_flag_spec= 9587 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9588 hardcode_automatic=no 9589 hardcode_direct=no 9590 hardcode_direct_absolute=no 9591 hardcode_libdir_flag_spec= 9592 hardcode_libdir_separator= 9593 hardcode_minus_L=no 9594 hardcode_shlibpath_var=unsupported 9595 inherit_rpath=no 9596 link_all_deplibs=unknown 9597 module_cmds= 9598 module_expsym_cmds= 9599 old_archive_from_new_cmds= 9600 old_archive_from_expsyms_cmds= 9601 thread_safe_flag_spec= 9602 whole_archive_flag_spec= 9603 # include_expsyms should be a list of space-separated symbols to be *always* 9604 # included in the symbol list 9605 include_expsyms= 9606 # exclude_expsyms can be an extended regexp of symbols to exclude 9607 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9608 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9609 # as well as any symbol that contains 'd'. 9610 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9611 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9612 # platforms (ab)use it in PIC code, but their linkers get confused if 9613 # the symbol is explicitly referenced. Since portable code cannot 9614 # rely on this symbol name, it's probably fine to never include it in 9615 # preloaded symbol tables. 9616 # Exclude shared library initialization/finalization symbols. 9617 extract_expsyms_cmds= 9618 9619 case $host_os in 9620 cygwin* | mingw* | pw32* | cegcc*) 9621 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9622 # When not using gcc, we currently assume that we are using 9623 # Microsoft Visual C++. 9624 if test yes != "$GCC"; then 9625 with_gnu_ld=no 9626 fi 9627 ;; 9628 interix*) 9629 # we just hope/assume this is gcc and not c89 (= MSVC++) 9630 with_gnu_ld=yes 9631 ;; 9632 openbsd* | bitrig*) 9633 with_gnu_ld=no 9634 ;; 9635 linux* | k*bsd*-gnu | gnu*) 9636 link_all_deplibs=no 9637 ;; 9638 esac 9639 9640 ld_shlibs=yes 9641 9642 # On some targets, GNU ld is compatible enough with the native linker 9643 # that we're better off using the native interface for both. 9644 lt_use_gnu_ld_interface=no 9645 if test yes = "$with_gnu_ld"; then 9646 case $host_os in 9647 aix*) 9648 # The AIX port of GNU ld has always aspired to compatibility 9649 # with the native linker. However, as the warning in the GNU ld 9650 # block says, versions before 2.19.5* couldn't really create working 9651 # shared libraries, regardless of the interface used. 9652 case `$LD -v 2>&1` in 9653 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9654 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9655 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9656 *) 9657 lt_use_gnu_ld_interface=yes 9658 ;; 9659 esac 9660 ;; 9661 *) 9662 lt_use_gnu_ld_interface=yes 9663 ;; 9664 esac 9665 fi 9666 9667 if test yes = "$lt_use_gnu_ld_interface"; then 9668 # If archive_cmds runs LD, not CC, wlarc should be empty 9669 wlarc='$wl' 9670 9671 # Set some defaults for GNU ld with shared library support. These 9672 # are reset later if shared libraries are not supported. Putting them 9673 # here allows them to be overridden if necessary. 9674 runpath_var=LD_RUN_PATH 9675 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9676 export_dynamic_flag_spec='$wl--export-dynamic' 9677 # ancient GNU ld didn't support --whole-archive et. al. 9678 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9679 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9680 else 9681 whole_archive_flag_spec= 9682 fi 9683 supports_anon_versioning=no 9684 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9685 *GNU\ gold*) supports_anon_versioning=yes ;; 9686 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9687 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9688 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9689 *\ 2.11.*) ;; # other 2.11 versions 9690 *) supports_anon_versioning=yes ;; 9691 esac 9692 9693 # See if GNU ld supports shared libraries. 9694 case $host_os in 9695 aix[3-9]*) 9696 # On AIX/PPC, the GNU linker is very broken 9697 if test ia64 != "$host_cpu"; then 9698 ld_shlibs=no 9699 cat <<_LT_EOF 1>&2 9700 9701*** Warning: the GNU linker, at least up to release 2.19, is reported 9702*** to be unable to reliably create shared libraries on AIX. 9703*** Therefore, libtool is disabling shared libraries support. If you 9704*** really care for shared libraries, you may want to install binutils 9705*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9706*** You will then need to restart the configuration process. 9707 9708_LT_EOF 9709 fi 9710 ;; 9711 9712 amigaos*) 9713 case $host_cpu in 9714 powerpc) 9715 # see comment about AmigaOS4 .so support 9716 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9717 archive_expsym_cmds='' 9718 ;; 9719 m68k) 9720 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)' 9721 hardcode_libdir_flag_spec='-L$libdir' 9722 hardcode_minus_L=yes 9723 ;; 9724 esac 9725 ;; 9726 9727 beos*) 9728 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9729 allow_undefined_flag=unsupported 9730 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9731 # support --undefined. This deserves some investigation. FIXME 9732 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9733 else 9734 ld_shlibs=no 9735 fi 9736 ;; 9737 9738 cygwin* | mingw* | pw32* | cegcc*) 9739 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9740 # as there is no search path for DLLs. 9741 hardcode_libdir_flag_spec='-L$libdir' 9742 export_dynamic_flag_spec='$wl--export-all-symbols' 9743 allow_undefined_flag=unsupported 9744 always_export_symbols=no 9745 enable_shared_with_static_runtimes=yes 9746 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' 9747 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9748 9749 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9750 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9751 # If the export-symbols file already is a .def file, use it as 9752 # is; otherwise, prepend EXPORTS... 9753 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9754 cp $export_symbols $output_objdir/$soname.def; 9755 else 9756 echo EXPORTS > $output_objdir/$soname.def; 9757 cat $export_symbols >> $output_objdir/$soname.def; 9758 fi~ 9759 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9760 else 9761 ld_shlibs=no 9762 fi 9763 ;; 9764 9765 haiku*) 9766 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9767 link_all_deplibs=yes 9768 ;; 9769 9770 os2*) 9771 hardcode_libdir_flag_spec='-L$libdir' 9772 hardcode_minus_L=yes 9773 allow_undefined_flag=unsupported 9774 shrext_cmds=.dll 9775 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9776 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9777 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9778 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9779 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9780 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9781 emximp -o $lib $output_objdir/$libname.def' 9782 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9783 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9784 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9785 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9786 prefix_cmds="$SED"~ 9787 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9788 prefix_cmds="$prefix_cmds -e 1d"; 9789 fi~ 9790 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9791 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9792 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9793 emximp -o $lib $output_objdir/$libname.def' 9794 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9795 enable_shared_with_static_runtimes=yes 9796 ;; 9797 9798 interix[3-9]*) 9799 hardcode_direct=no 9800 hardcode_shlibpath_var=no 9801 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9802 export_dynamic_flag_spec='$wl-E' 9803 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9804 # Instead, shared libraries are loaded at an image base (0x10000000 by 9805 # default) and relocated if they conflict, which is a slow very memory 9806 # consuming and fragmenting process. To avoid this, we pick a random, 9807 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9808 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9809 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9810 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' 9811 ;; 9812 9813 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9814 tmp_diet=no 9815 if test linux-dietlibc = "$host_os"; then 9816 case $cc_basename in 9817 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9818 esac 9819 fi 9820 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9821 && test no = "$tmp_diet" 9822 then 9823 tmp_addflag=' $pic_flag' 9824 tmp_sharedflag='-shared' 9825 case $cc_basename,$host_cpu in 9826 pgcc*) # Portland Group C compiler 9827 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' 9828 tmp_addflag=' $pic_flag' 9829 ;; 9830 pgf77* | pgf90* | pgf95* | pgfortran*) 9831 # Portland Group f77 and f90 compilers 9832 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' 9833 tmp_addflag=' $pic_flag -Mnomain' ;; 9834 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9835 tmp_addflag=' -i_dynamic' ;; 9836 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9837 tmp_addflag=' -i_dynamic -nofor_main' ;; 9838 ifc* | ifort*) # Intel Fortran compiler 9839 tmp_addflag=' -nofor_main' ;; 9840 lf95*) # Lahey Fortran 8.1 9841 whole_archive_flag_spec= 9842 tmp_sharedflag='--shared' ;; 9843 nagfor*) # NAGFOR 5.3 9844 tmp_sharedflag='-Wl,-shared' ;; 9845 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9846 tmp_sharedflag='-qmkshrobj' 9847 tmp_addflag= ;; 9848 nvcc*) # Cuda Compiler Driver 2.2 9849 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' 9850 compiler_needs_object=yes 9851 ;; 9852 esac 9853 case `$CC -V 2>&1 | sed 5q` in 9854 *Sun\ C*) # Sun C 5.9 9855 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' 9856 compiler_needs_object=yes 9857 tmp_sharedflag='-G' ;; 9858 *Sun\ F*) # Sun Fortran 8.3 9859 tmp_sharedflag='-G' ;; 9860 esac 9861 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9862 9863 if test yes = "$supports_anon_versioning"; then 9864 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9865 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9866 echo "local: *; };" >> $output_objdir/$libname.ver~ 9867 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9868 fi 9869 9870 case $cc_basename in 9871 tcc*) 9872 export_dynamic_flag_spec='-rdynamic' 9873 ;; 9874 xlf* | bgf* | bgxlf* | mpixlf*) 9875 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9876 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9877 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9878 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9879 if test yes = "$supports_anon_versioning"; then 9880 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9881 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9882 echo "local: *; };" >> $output_objdir/$libname.ver~ 9883 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9884 fi 9885 ;; 9886 esac 9887 else 9888 ld_shlibs=no 9889 fi 9890 ;; 9891 9892 netbsd* | netbsdelf*-gnu) 9893 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9894 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9895 wlarc= 9896 else 9897 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9898 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9899 fi 9900 ;; 9901 9902 solaris*) 9903 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9904 ld_shlibs=no 9905 cat <<_LT_EOF 1>&2 9906 9907*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9908*** create shared libraries on Solaris systems. Therefore, libtool 9909*** is disabling shared libraries support. We urge you to upgrade GNU 9910*** binutils to release 2.9.1 or newer. Another option is to modify 9911*** your PATH or compiler configuration so that the native linker is 9912*** used, and then restart. 9913 9914_LT_EOF 9915 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9916 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9917 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9918 else 9919 ld_shlibs=no 9920 fi 9921 ;; 9922 9923 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9924 case `$LD -v 2>&1` in 9925 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9926 ld_shlibs=no 9927 cat <<_LT_EOF 1>&2 9928 9929*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9930*** reliably create shared libraries on SCO systems. Therefore, libtool 9931*** is disabling shared libraries support. We urge you to upgrade GNU 9932*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9933*** your PATH or compiler configuration so that the native linker is 9934*** used, and then restart. 9935 9936_LT_EOF 9937 ;; 9938 *) 9939 # For security reasons, it is highly recommended that you always 9940 # use absolute paths for naming shared libraries, and exclude the 9941 # DT_RUNPATH tag from executables and libraries. But doing so 9942 # requires that you compile everything twice, which is a pain. 9943 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9944 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9945 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9946 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9947 else 9948 ld_shlibs=no 9949 fi 9950 ;; 9951 esac 9952 ;; 9953 9954 sunos4*) 9955 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9956 wlarc= 9957 hardcode_direct=yes 9958 hardcode_shlibpath_var=no 9959 ;; 9960 9961 *) 9962 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9963 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9964 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9965 else 9966 ld_shlibs=no 9967 fi 9968 ;; 9969 esac 9970 9971 if test no = "$ld_shlibs"; then 9972 runpath_var= 9973 hardcode_libdir_flag_spec= 9974 export_dynamic_flag_spec= 9975 whole_archive_flag_spec= 9976 fi 9977 else 9978 # PORTME fill in a description of your system's linker (not GNU ld) 9979 case $host_os in 9980 aix3*) 9981 allow_undefined_flag=unsupported 9982 always_export_symbols=yes 9983 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' 9984 # Note: this linker hardcodes the directories in LIBPATH if there 9985 # are no directories specified by -L. 9986 hardcode_minus_L=yes 9987 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9988 # Neither direct hardcoding nor static linking is supported with a 9989 # broken collect2. 9990 hardcode_direct=unsupported 9991 fi 9992 ;; 9993 9994 aix[4-9]*) 9995 if test ia64 = "$host_cpu"; then 9996 # On IA64, the linker does run time linking by default, so we don't 9997 # have to do anything special. 9998 aix_use_runtimelinking=no 9999 exp_sym_flag='-Bexport' 10000 no_entry_flag= 10001 else 10002 # If we're using GNU nm, then we don't want the "-C" option. 10003 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10004 # Without the "-l" option, or with the "-B" option, AIX nm treats 10005 # weak defined symbols like other global defined symbols, whereas 10006 # GNU nm marks them as "W". 10007 # While the 'weak' keyword is ignored in the Export File, we need 10008 # it in the Import File for the 'aix-soname' feature, so we have 10009 # to replace the "-B" option with "-P" for AIX nm. 10010 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10011 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' 10012 else 10013 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' 10014 fi 10015 aix_use_runtimelinking=no 10016 10017 # Test if we are trying to use run time linking or normal 10018 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10019 # have runtime linking enabled, and use it for executables. 10020 # For shared libraries, we enable/disable runtime linking 10021 # depending on the kind of the shared library created - 10022 # when "with_aix_soname,aix_use_runtimelinking" is: 10023 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10024 # "aix,yes" lib.so shared, rtl:yes, for executables 10025 # lib.a static archive 10026 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10027 # lib.a(lib.so.V) shared, rtl:no, for executables 10028 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10029 # lib.a(lib.so.V) shared, rtl:no 10030 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10031 # lib.a static archive 10032 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10033 for ld_flag in $LDFLAGS; do 10034 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10035 aix_use_runtimelinking=yes 10036 break 10037 fi 10038 done 10039 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10040 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10041 # so we don't have lib.a shared libs to link our executables. 10042 # We have to force runtime linking in this case. 10043 aix_use_runtimelinking=yes 10044 LDFLAGS="$LDFLAGS -Wl,-brtl" 10045 fi 10046 ;; 10047 esac 10048 10049 exp_sym_flag='-bexport' 10050 no_entry_flag='-bnoentry' 10051 fi 10052 10053 # When large executables or shared objects are built, AIX ld can 10054 # have problems creating the table of contents. If linking a library 10055 # or program results in "error TOC overflow" add -mminimal-toc to 10056 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10057 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10058 10059 archive_cmds='' 10060 hardcode_direct=yes 10061 hardcode_direct_absolute=yes 10062 hardcode_libdir_separator=':' 10063 link_all_deplibs=yes 10064 file_list_spec='$wl-f,' 10065 case $with_aix_soname,$aix_use_runtimelinking in 10066 aix,*) ;; # traditional, no import file 10067 svr4,* | *,yes) # use import file 10068 # The Import File defines what to hardcode. 10069 hardcode_direct=no 10070 hardcode_direct_absolute=no 10071 ;; 10072 esac 10073 10074 if test yes = "$GCC"; then 10075 case $host_os in aix4.[012]|aix4.[012].*) 10076 # We only want to do this on AIX 4.2 and lower, the check 10077 # below for broken collect2 doesn't work under 4.3+ 10078 collect2name=`$CC -print-prog-name=collect2` 10079 if test -f "$collect2name" && 10080 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10081 then 10082 # We have reworked collect2 10083 : 10084 else 10085 # We have old collect2 10086 hardcode_direct=unsupported 10087 # It fails to find uninstalled libraries when the uninstalled 10088 # path is not listed in the libpath. Setting hardcode_minus_L 10089 # to unsupported forces relinking 10090 hardcode_minus_L=yes 10091 hardcode_libdir_flag_spec='-L$libdir' 10092 hardcode_libdir_separator= 10093 fi 10094 ;; 10095 esac 10096 shared_flag='-shared' 10097 if test yes = "$aix_use_runtimelinking"; then 10098 shared_flag="$shared_flag "'$wl-G' 10099 fi 10100 # Need to ensure runtime linking is disabled for the traditional 10101 # shared library, or the linker may eventually find shared libraries 10102 # /with/ Import File - we do not want to mix them. 10103 shared_flag_aix='-shared' 10104 shared_flag_svr4='-shared $wl-G' 10105 else 10106 # not using gcc 10107 if test ia64 = "$host_cpu"; then 10108 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10109 # chokes on -Wl,-G. The following line is correct: 10110 shared_flag='-G' 10111 else 10112 if test yes = "$aix_use_runtimelinking"; then 10113 shared_flag='$wl-G' 10114 else 10115 shared_flag='$wl-bM:SRE' 10116 fi 10117 shared_flag_aix='$wl-bM:SRE' 10118 shared_flag_svr4='$wl-G' 10119 fi 10120 fi 10121 10122 export_dynamic_flag_spec='$wl-bexpall' 10123 # It seems that -bexpall does not export symbols beginning with 10124 # underscore (_), so it is better to generate a list of symbols to export. 10125 always_export_symbols=yes 10126 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10127 # Warning - without using the other runtime loading flags (-brtl), 10128 # -berok will link without error, but may produce a broken library. 10129 allow_undefined_flag='-berok' 10130 # Determine the default libpath from the value encoded in an 10131 # empty executable. 10132 if test set = "${lt_cv_aix_libpath+set}"; then 10133 aix_libpath=$lt_cv_aix_libpath 10134else 10135 if ${lt_cv_aix_libpath_+:} false; then : 10136 $as_echo_n "(cached) " >&6 10137else 10138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10139/* end confdefs.h. */ 10140 10141int 10142main () 10143{ 10144 10145 ; 10146 return 0; 10147} 10148_ACEOF 10149if ac_fn_c_try_link "$LINENO"; then : 10150 10151 lt_aix_libpath_sed=' 10152 /Import File Strings/,/^$/ { 10153 /^0/ { 10154 s/^0 *\([^ ]*\) *$/\1/ 10155 p 10156 } 10157 }' 10158 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10159 # Check for a 64-bit object if we didn't find anything. 10160 if test -z "$lt_cv_aix_libpath_"; then 10161 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10162 fi 10163fi 10164rm -f core conftest.err conftest.$ac_objext \ 10165 conftest$ac_exeext conftest.$ac_ext 10166 if test -z "$lt_cv_aix_libpath_"; then 10167 lt_cv_aix_libpath_=/usr/lib:/lib 10168 fi 10169 10170fi 10171 10172 aix_libpath=$lt_cv_aix_libpath_ 10173fi 10174 10175 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10176 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 10177 else 10178 if test ia64 = "$host_cpu"; then 10179 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10180 allow_undefined_flag="-z nodefs" 10181 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" 10182 else 10183 # Determine the default libpath from the value encoded in an 10184 # empty executable. 10185 if test set = "${lt_cv_aix_libpath+set}"; then 10186 aix_libpath=$lt_cv_aix_libpath 10187else 10188 if ${lt_cv_aix_libpath_+:} false; then : 10189 $as_echo_n "(cached) " >&6 10190else 10191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10192/* end confdefs.h. */ 10193 10194int 10195main () 10196{ 10197 10198 ; 10199 return 0; 10200} 10201_ACEOF 10202if ac_fn_c_try_link "$LINENO"; then : 10203 10204 lt_aix_libpath_sed=' 10205 /Import File Strings/,/^$/ { 10206 /^0/ { 10207 s/^0 *\([^ ]*\) *$/\1/ 10208 p 10209 } 10210 }' 10211 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10212 # Check for a 64-bit object if we didn't find anything. 10213 if test -z "$lt_cv_aix_libpath_"; then 10214 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10215 fi 10216fi 10217rm -f core conftest.err conftest.$ac_objext \ 10218 conftest$ac_exeext conftest.$ac_ext 10219 if test -z "$lt_cv_aix_libpath_"; then 10220 lt_cv_aix_libpath_=/usr/lib:/lib 10221 fi 10222 10223fi 10224 10225 aix_libpath=$lt_cv_aix_libpath_ 10226fi 10227 10228 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10229 # Warning - without using the other run time loading flags, 10230 # -berok will link without error, but may produce a broken library. 10231 no_undefined_flag=' $wl-bernotok' 10232 allow_undefined_flag=' $wl-berok' 10233 if test yes = "$with_gnu_ld"; then 10234 # We only use this code for GNU lds that support --whole-archive. 10235 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10236 else 10237 # Exported symbols can be pulled into shared objects from archives 10238 whole_archive_flag_spec='$convenience' 10239 fi 10240 archive_cmds_need_lc=yes 10241 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10242 # -brtl affects multiple linker settings, -berok does not and is overridden later 10243 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10244 if test svr4 != "$with_aix_soname"; then 10245 # This is similar to how AIX traditionally builds its shared libraries. 10246 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' 10247 fi 10248 if test aix != "$with_aix_soname"; then 10249 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' 10250 else 10251 # used by -dlpreopen to get the symbols 10252 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10253 fi 10254 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10255 fi 10256 fi 10257 ;; 10258 10259 amigaos*) 10260 case $host_cpu in 10261 powerpc) 10262 # see comment about AmigaOS4 .so support 10263 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10264 archive_expsym_cmds='' 10265 ;; 10266 m68k) 10267 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)' 10268 hardcode_libdir_flag_spec='-L$libdir' 10269 hardcode_minus_L=yes 10270 ;; 10271 esac 10272 ;; 10273 10274 bsdi[45]*) 10275 export_dynamic_flag_spec=-rdynamic 10276 ;; 10277 10278 cygwin* | mingw* | pw32* | cegcc*) 10279 # When not using gcc, we currently assume that we are using 10280 # Microsoft Visual C++. 10281 # hardcode_libdir_flag_spec is actually meaningless, as there is 10282 # no search path for DLLs. 10283 case $cc_basename in 10284 cl*) 10285 # Native MSVC 10286 hardcode_libdir_flag_spec=' ' 10287 allow_undefined_flag=unsupported 10288 always_export_symbols=yes 10289 file_list_spec='@' 10290 # Tell ltmain to make .lib files, not .a files. 10291 libext=lib 10292 # Tell ltmain to make .dll files, not .so files. 10293 shrext_cmds=.dll 10294 # FIXME: Setting linknames here is a bad hack. 10295 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10296 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10297 cp "$export_symbols" "$output_objdir/$soname.def"; 10298 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10299 else 10300 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10301 fi~ 10302 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10303 linknames=' 10304 # The linker will not automatically build a static lib if we build a DLL. 10305 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10306 enable_shared_with_static_runtimes=yes 10307 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10308 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10309 # Don't use ranlib 10310 old_postinstall_cmds='chmod 644 $oldlib' 10311 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10312 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10313 case $lt_outputfile in 10314 *.exe|*.EXE) ;; 10315 *) 10316 lt_outputfile=$lt_outputfile.exe 10317 lt_tool_outputfile=$lt_tool_outputfile.exe 10318 ;; 10319 esac~ 10320 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10321 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10322 $RM "$lt_outputfile.manifest"; 10323 fi' 10324 ;; 10325 *) 10326 # Assume MSVC wrapper 10327 hardcode_libdir_flag_spec=' ' 10328 allow_undefined_flag=unsupported 10329 # Tell ltmain to make .lib files, not .a files. 10330 libext=lib 10331 # Tell ltmain to make .dll files, not .so files. 10332 shrext_cmds=.dll 10333 # FIXME: Setting linknames here is a bad hack. 10334 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10335 # The linker will automatically build a .lib file if we build a DLL. 10336 old_archive_from_new_cmds='true' 10337 # FIXME: Should let the user specify the lib program. 10338 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10339 enable_shared_with_static_runtimes=yes 10340 ;; 10341 esac 10342 ;; 10343 10344 darwin* | rhapsody*) 10345 10346 10347 archive_cmds_need_lc=no 10348 hardcode_direct=no 10349 hardcode_automatic=yes 10350 hardcode_shlibpath_var=unsupported 10351 if test yes = "$lt_cv_ld_force_load"; then 10352 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\"`' 10353 10354 else 10355 whole_archive_flag_spec='' 10356 fi 10357 link_all_deplibs=yes 10358 allow_undefined_flag=$_lt_dar_allow_undefined 10359 case $cc_basename in 10360 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10361 *) _lt_dar_can_shared=$GCC ;; 10362 esac 10363 if test yes = "$_lt_dar_can_shared"; then 10364 output_verbose_link_cmd=func_echo_all 10365 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10366 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10367 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" 10368 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" 10369 10370 else 10371 ld_shlibs=no 10372 fi 10373 10374 ;; 10375 10376 dgux*) 10377 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10378 hardcode_libdir_flag_spec='-L$libdir' 10379 hardcode_shlibpath_var=no 10380 ;; 10381 10382 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10383 # support. Future versions do this automatically, but an explicit c++rt0.o 10384 # does not break anything, and helps significantly (at the cost of a little 10385 # extra space). 10386 freebsd2.2*) 10387 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10388 hardcode_libdir_flag_spec='-R$libdir' 10389 hardcode_direct=yes 10390 hardcode_shlibpath_var=no 10391 ;; 10392 10393 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10394 freebsd2.*) 10395 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10396 hardcode_direct=yes 10397 hardcode_minus_L=yes 10398 hardcode_shlibpath_var=no 10399 ;; 10400 10401 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10402 freebsd* | dragonfly*) 10403 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10404 hardcode_libdir_flag_spec='-R$libdir' 10405 hardcode_direct=yes 10406 hardcode_shlibpath_var=no 10407 ;; 10408 10409 hpux9*) 10410 if test yes = "$GCC"; then 10411 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' 10412 else 10413 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' 10414 fi 10415 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10416 hardcode_libdir_separator=: 10417 hardcode_direct=yes 10418 10419 # hardcode_minus_L: Not really in the search PATH, 10420 # but as the default location of the library. 10421 hardcode_minus_L=yes 10422 export_dynamic_flag_spec='$wl-E' 10423 ;; 10424 10425 hpux10*) 10426 if test yes,no = "$GCC,$with_gnu_ld"; then 10427 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10428 else 10429 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10430 fi 10431 if test no = "$with_gnu_ld"; then 10432 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10433 hardcode_libdir_separator=: 10434 hardcode_direct=yes 10435 hardcode_direct_absolute=yes 10436 export_dynamic_flag_spec='$wl-E' 10437 # hardcode_minus_L: Not really in the search PATH, 10438 # but as the default location of the library. 10439 hardcode_minus_L=yes 10440 fi 10441 ;; 10442 10443 hpux11*) 10444 if test yes,no = "$GCC,$with_gnu_ld"; then 10445 case $host_cpu in 10446 hppa*64*) 10447 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10448 ;; 10449 ia64*) 10450 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10451 ;; 10452 *) 10453 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10454 ;; 10455 esac 10456 else 10457 case $host_cpu in 10458 hppa*64*) 10459 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10460 ;; 10461 ia64*) 10462 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10463 ;; 10464 *) 10465 10466 # Older versions of the 11.00 compiler do not understand -b yet 10467 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10469$as_echo_n "checking if $CC understands -b... " >&6; } 10470if ${lt_cv_prog_compiler__b+:} false; then : 10471 $as_echo_n "(cached) " >&6 10472else 10473 lt_cv_prog_compiler__b=no 10474 save_LDFLAGS=$LDFLAGS 10475 LDFLAGS="$LDFLAGS -b" 10476 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10477 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10478 # The linker can only warn and ignore the option if not recognized 10479 # So say no if there are warnings 10480 if test -s conftest.err; then 10481 # Append any errors to the config.log. 10482 cat conftest.err 1>&5 10483 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10484 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10485 if diff conftest.exp conftest.er2 >/dev/null; then 10486 lt_cv_prog_compiler__b=yes 10487 fi 10488 else 10489 lt_cv_prog_compiler__b=yes 10490 fi 10491 fi 10492 $RM -r conftest* 10493 LDFLAGS=$save_LDFLAGS 10494 10495fi 10496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10497$as_echo "$lt_cv_prog_compiler__b" >&6; } 10498 10499if test yes = "$lt_cv_prog_compiler__b"; then 10500 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10501else 10502 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10503fi 10504 10505 ;; 10506 esac 10507 fi 10508 if test no = "$with_gnu_ld"; then 10509 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10510 hardcode_libdir_separator=: 10511 10512 case $host_cpu in 10513 hppa*64*|ia64*) 10514 hardcode_direct=no 10515 hardcode_shlibpath_var=no 10516 ;; 10517 *) 10518 hardcode_direct=yes 10519 hardcode_direct_absolute=yes 10520 export_dynamic_flag_spec='$wl-E' 10521 10522 # hardcode_minus_L: Not really in the search PATH, 10523 # but as the default location of the library. 10524 hardcode_minus_L=yes 10525 ;; 10526 esac 10527 fi 10528 ;; 10529 10530 irix5* | irix6* | nonstopux*) 10531 if test yes = "$GCC"; then 10532 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' 10533 # Try to use the -exported_symbol ld option, if it does not 10534 # work, assume that -exports_file does not work either and 10535 # implicitly export all symbols. 10536 # This should be the same for all languages, so no per-tag cache variable. 10537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10538$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10539if ${lt_cv_irix_exported_symbol+:} false; then : 10540 $as_echo_n "(cached) " >&6 10541else 10542 save_LDFLAGS=$LDFLAGS 10543 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10545/* end confdefs.h. */ 10546int foo (void) { return 0; } 10547_ACEOF 10548if ac_fn_c_try_link "$LINENO"; then : 10549 lt_cv_irix_exported_symbol=yes 10550else 10551 lt_cv_irix_exported_symbol=no 10552fi 10553rm -f core conftest.err conftest.$ac_objext \ 10554 conftest$ac_exeext conftest.$ac_ext 10555 LDFLAGS=$save_LDFLAGS 10556fi 10557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10558$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10559 if test yes = "$lt_cv_irix_exported_symbol"; then 10560 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' 10561 fi 10562 link_all_deplibs=no 10563 else 10564 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' 10565 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' 10566 fi 10567 archive_cmds_need_lc='no' 10568 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10569 hardcode_libdir_separator=: 10570 inherit_rpath=yes 10571 link_all_deplibs=yes 10572 ;; 10573 10574 linux*) 10575 case $cc_basename in 10576 tcc*) 10577 # Fabrice Bellard et al's Tiny C Compiler 10578 ld_shlibs=yes 10579 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10580 ;; 10581 esac 10582 ;; 10583 10584 netbsd* | netbsdelf*-gnu) 10585 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10586 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10587 else 10588 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10589 fi 10590 hardcode_libdir_flag_spec='-R$libdir' 10591 hardcode_direct=yes 10592 hardcode_shlibpath_var=no 10593 ;; 10594 10595 newsos6) 10596 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10597 hardcode_direct=yes 10598 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10599 hardcode_libdir_separator=: 10600 hardcode_shlibpath_var=no 10601 ;; 10602 10603 *nto* | *qnx*) 10604 ;; 10605 10606 openbsd* | bitrig*) 10607 if test -f /usr/libexec/ld.so; then 10608 hardcode_direct=yes 10609 hardcode_shlibpath_var=no 10610 hardcode_direct_absolute=yes 10611 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10612 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10613 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10614 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10615 export_dynamic_flag_spec='$wl-E' 10616 else 10617 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10618 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10619 fi 10620 else 10621 ld_shlibs=no 10622 fi 10623 ;; 10624 10625 os2*) 10626 hardcode_libdir_flag_spec='-L$libdir' 10627 hardcode_minus_L=yes 10628 allow_undefined_flag=unsupported 10629 shrext_cmds=.dll 10630 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10631 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10632 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10633 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10634 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10635 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10636 emximp -o $lib $output_objdir/$libname.def' 10637 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10638 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10639 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10640 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10641 prefix_cmds="$SED"~ 10642 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10643 prefix_cmds="$prefix_cmds -e 1d"; 10644 fi~ 10645 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10646 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10647 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10648 emximp -o $lib $output_objdir/$libname.def' 10649 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10650 enable_shared_with_static_runtimes=yes 10651 ;; 10652 10653 osf3*) 10654 if test yes = "$GCC"; then 10655 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10656 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' 10657 else 10658 allow_undefined_flag=' -expect_unresolved \*' 10659 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' 10660 fi 10661 archive_cmds_need_lc='no' 10662 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10663 hardcode_libdir_separator=: 10664 ;; 10665 10666 osf4* | osf5*) # as osf3* with the addition of -msym flag 10667 if test yes = "$GCC"; then 10668 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10669 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' 10670 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10671 else 10672 allow_undefined_flag=' -expect_unresolved \*' 10673 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' 10674 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~ 10675 $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' 10676 10677 # Both c and cxx compiler support -rpath directly 10678 hardcode_libdir_flag_spec='-rpath $libdir' 10679 fi 10680 archive_cmds_need_lc='no' 10681 hardcode_libdir_separator=: 10682 ;; 10683 10684 solaris*) 10685 no_undefined_flag=' -z defs' 10686 if test yes = "$GCC"; then 10687 wlarc='$wl' 10688 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10689 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10690 $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' 10691 else 10692 case `$CC -V 2>&1` in 10693 *"Compilers 5.0"*) 10694 wlarc='' 10695 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10696 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10697 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10698 ;; 10699 *) 10700 wlarc='$wl' 10701 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10702 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10703 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10704 ;; 10705 esac 10706 fi 10707 hardcode_libdir_flag_spec='-R$libdir' 10708 hardcode_shlibpath_var=no 10709 case $host_os in 10710 solaris2.[0-5] | solaris2.[0-5].*) ;; 10711 *) 10712 # The compiler driver will combine and reorder linker options, 10713 # but understands '-z linker_flag'. GCC discards it without '$wl', 10714 # but is careful enough not to reorder. 10715 # Supported since Solaris 2.6 (maybe 2.5.1?) 10716 if test yes = "$GCC"; then 10717 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10718 else 10719 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10720 fi 10721 ;; 10722 esac 10723 link_all_deplibs=yes 10724 ;; 10725 10726 sunos4*) 10727 if test sequent = "$host_vendor"; then 10728 # Use $CC to link under sequent, because it throws in some extra .o 10729 # files that make .init and .fini sections work. 10730 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10731 else 10732 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10733 fi 10734 hardcode_libdir_flag_spec='-L$libdir' 10735 hardcode_direct=yes 10736 hardcode_minus_L=yes 10737 hardcode_shlibpath_var=no 10738 ;; 10739 10740 sysv4) 10741 case $host_vendor in 10742 sni) 10743 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10744 hardcode_direct=yes # is this really true??? 10745 ;; 10746 siemens) 10747 ## LD is ld it makes a PLAMLIB 10748 ## CC just makes a GrossModule. 10749 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10750 reload_cmds='$CC -r -o $output$reload_objs' 10751 hardcode_direct=no 10752 ;; 10753 motorola) 10754 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10755 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10756 ;; 10757 esac 10758 runpath_var='LD_RUN_PATH' 10759 hardcode_shlibpath_var=no 10760 ;; 10761 10762 sysv4.3*) 10763 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10764 hardcode_shlibpath_var=no 10765 export_dynamic_flag_spec='-Bexport' 10766 ;; 10767 10768 sysv4*MP*) 10769 if test -d /usr/nec; then 10770 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10771 hardcode_shlibpath_var=no 10772 runpath_var=LD_RUN_PATH 10773 hardcode_runpath_var=yes 10774 ld_shlibs=yes 10775 fi 10776 ;; 10777 10778 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10779 no_undefined_flag='$wl-z,text' 10780 archive_cmds_need_lc=no 10781 hardcode_shlibpath_var=no 10782 runpath_var='LD_RUN_PATH' 10783 10784 if test yes = "$GCC"; then 10785 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10786 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10787 else 10788 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10789 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10790 fi 10791 ;; 10792 10793 sysv5* | sco3.2v5* | sco5v6*) 10794 # Note: We CANNOT use -z defs as we might desire, because we do not 10795 # link with -lc, and that would cause any symbols used from libc to 10796 # always be unresolved, which means just about no library would 10797 # ever link correctly. If we're not using GNU ld we use -z text 10798 # though, which does catch some bad symbols but isn't as heavy-handed 10799 # as -z defs. 10800 no_undefined_flag='$wl-z,text' 10801 allow_undefined_flag='$wl-z,nodefs' 10802 archive_cmds_need_lc=no 10803 hardcode_shlibpath_var=no 10804 hardcode_libdir_flag_spec='$wl-R,$libdir' 10805 hardcode_libdir_separator=':' 10806 link_all_deplibs=yes 10807 export_dynamic_flag_spec='$wl-Bexport' 10808 runpath_var='LD_RUN_PATH' 10809 10810 if test yes = "$GCC"; then 10811 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10812 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10813 else 10814 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10815 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10816 fi 10817 ;; 10818 10819 uts4*) 10820 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10821 hardcode_libdir_flag_spec='-L$libdir' 10822 hardcode_shlibpath_var=no 10823 ;; 10824 10825 *) 10826 ld_shlibs=no 10827 ;; 10828 esac 10829 10830 if test sni = "$host_vendor"; then 10831 case $host in 10832 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10833 export_dynamic_flag_spec='$wl-Blargedynsym' 10834 ;; 10835 esac 10836 fi 10837 fi 10838 10839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10840$as_echo "$ld_shlibs" >&6; } 10841test no = "$ld_shlibs" && can_build_shared=no 10842 10843with_gnu_ld=$with_gnu_ld 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859# 10860# Do we need to explicitly link libc? 10861# 10862case "x$archive_cmds_need_lc" in 10863x|xyes) 10864 # Assume -lc should be added 10865 archive_cmds_need_lc=yes 10866 10867 if test yes,yes = "$GCC,$enable_shared"; then 10868 case $archive_cmds in 10869 *'~'*) 10870 # FIXME: we may have to deal with multi-command sequences. 10871 ;; 10872 '$CC '*) 10873 # Test whether the compiler implicitly links with -lc since on some 10874 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10875 # to ld, don't add -lc before -lgcc. 10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10877$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10878if ${lt_cv_archive_cmds_need_lc+:} false; then : 10879 $as_echo_n "(cached) " >&6 10880else 10881 $RM conftest* 10882 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10883 10884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10885 (eval $ac_compile) 2>&5 10886 ac_status=$? 10887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10888 test $ac_status = 0; } 2>conftest.err; then 10889 soname=conftest 10890 lib=conftest 10891 libobjs=conftest.$ac_objext 10892 deplibs= 10893 wl=$lt_prog_compiler_wl 10894 pic_flag=$lt_prog_compiler_pic 10895 compiler_flags=-v 10896 linker_flags=-v 10897 verstring= 10898 output_objdir=. 10899 libname=conftest 10900 lt_save_allow_undefined_flag=$allow_undefined_flag 10901 allow_undefined_flag= 10902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10903 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10904 ac_status=$? 10905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10906 test $ac_status = 0; } 10907 then 10908 lt_cv_archive_cmds_need_lc=no 10909 else 10910 lt_cv_archive_cmds_need_lc=yes 10911 fi 10912 allow_undefined_flag=$lt_save_allow_undefined_flag 10913 else 10914 cat conftest.err 1>&5 10915 fi 10916 $RM conftest* 10917 10918fi 10919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10920$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10921 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10922 ;; 10923 esac 10924 fi 10925 ;; 10926esac 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11080$as_echo_n "checking dynamic linker characteristics... " >&6; } 11081 11082if test yes = "$GCC"; then 11083 case $host_os in 11084 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11085 *) lt_awk_arg='/^libraries:/' ;; 11086 esac 11087 case $host_os in 11088 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11089 *) lt_sed_strip_eq='s|=/|/|g' ;; 11090 esac 11091 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11092 case $lt_search_path_spec in 11093 *\;*) 11094 # if the path contains ";" then we assume it to be the separator 11095 # otherwise default to the standard path separator (i.e. ":") - it is 11096 # assumed that no part of a normal pathname contains ";" but that should 11097 # okay in the real world where ";" in dirpaths is itself problematic. 11098 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11099 ;; 11100 *) 11101 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11102 ;; 11103 esac 11104 # Ok, now we have the path, separated by spaces, we can step through it 11105 # and add multilib dir if necessary... 11106 lt_tmp_lt_search_path_spec= 11107 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11108 # ...but if some path component already ends with the multilib dir we assume 11109 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11110 case "$lt_multi_os_dir; $lt_search_path_spec " in 11111 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11112 lt_multi_os_dir= 11113 ;; 11114 esac 11115 for lt_sys_path in $lt_search_path_spec; do 11116 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11117 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11118 elif test -n "$lt_multi_os_dir"; then 11119 test -d "$lt_sys_path" && \ 11120 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11121 fi 11122 done 11123 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11124BEGIN {RS = " "; FS = "/|\n";} { 11125 lt_foo = ""; 11126 lt_count = 0; 11127 for (lt_i = NF; lt_i > 0; lt_i--) { 11128 if ($lt_i != "" && $lt_i != ".") { 11129 if ($lt_i == "..") { 11130 lt_count++; 11131 } else { 11132 if (lt_count == 0) { 11133 lt_foo = "/" $lt_i lt_foo; 11134 } else { 11135 lt_count--; 11136 } 11137 } 11138 } 11139 } 11140 if (lt_foo != "") { lt_freq[lt_foo]++; } 11141 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11142}'` 11143 # AWK program above erroneously prepends '/' to C:/dos/paths 11144 # for these hosts. 11145 case $host_os in 11146 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11147 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11148 esac 11149 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11150else 11151 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11152fi 11153library_names_spec= 11154libname_spec='lib$name' 11155soname_spec= 11156shrext_cmds=.so 11157postinstall_cmds= 11158postuninstall_cmds= 11159finish_cmds= 11160finish_eval= 11161shlibpath_var= 11162shlibpath_overrides_runpath=unknown 11163version_type=none 11164dynamic_linker="$host_os ld.so" 11165sys_lib_dlsearch_path_spec="/lib /usr/lib" 11166need_lib_prefix=unknown 11167hardcode_into_libs=no 11168 11169# when you set need_version to no, make sure it does not cause -set_version 11170# flags to be left without arguments 11171need_version=unknown 11172 11173 11174 11175case $host_os in 11176aix3*) 11177 version_type=linux # correct to gnu/linux during the next big refactor 11178 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11179 shlibpath_var=LIBPATH 11180 11181 # AIX 3 has no versioning support, so we append a major version to the name. 11182 soname_spec='$libname$release$shared_ext$major' 11183 ;; 11184 11185aix[4-9]*) 11186 version_type=linux # correct to gnu/linux during the next big refactor 11187 need_lib_prefix=no 11188 need_version=no 11189 hardcode_into_libs=yes 11190 if test ia64 = "$host_cpu"; then 11191 # AIX 5 supports IA64 11192 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11193 shlibpath_var=LD_LIBRARY_PATH 11194 else 11195 # With GCC up to 2.95.x, collect2 would create an import file 11196 # for dependence libraries. The import file would start with 11197 # the line '#! .'. This would cause the generated library to 11198 # depend on '.', always an invalid library. This was fixed in 11199 # development snapshots of GCC prior to 3.0. 11200 case $host_os in 11201 aix4 | aix4.[01] | aix4.[01].*) 11202 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11203 echo ' yes ' 11204 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11205 : 11206 else 11207 can_build_shared=no 11208 fi 11209 ;; 11210 esac 11211 # Using Import Files as archive members, it is possible to support 11212 # filename-based versioning of shared library archives on AIX. While 11213 # this would work for both with and without runtime linking, it will 11214 # prevent static linking of such archives. So we do filename-based 11215 # shared library versioning with .so extension only, which is used 11216 # when both runtime linking and shared linking is enabled. 11217 # Unfortunately, runtime linking may impact performance, so we do 11218 # not want this to be the default eventually. Also, we use the 11219 # versioned .so libs for executables only if there is the -brtl 11220 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11221 # To allow for filename-based versioning support, we need to create 11222 # libNAME.so.V as an archive file, containing: 11223 # *) an Import File, referring to the versioned filename of the 11224 # archive as well as the shared archive member, telling the 11225 # bitwidth (32 or 64) of that shared object, and providing the 11226 # list of exported symbols of that shared object, eventually 11227 # decorated with the 'weak' keyword 11228 # *) the shared object with the F_LOADONLY flag set, to really avoid 11229 # it being seen by the linker. 11230 # At run time we better use the real file rather than another symlink, 11231 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11232 11233 case $with_aix_soname,$aix_use_runtimelinking in 11234 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11235 # soname into executable. Probably we can add versioning support to 11236 # collect2, so additional links can be useful in future. 11237 aix,yes) # traditional libtool 11238 dynamic_linker='AIX unversionable lib.so' 11239 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11240 # instead of lib<name>.a to let people know that these are not 11241 # typical AIX shared libraries. 11242 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11243 ;; 11244 aix,no) # traditional AIX only 11245 dynamic_linker='AIX lib.a(lib.so.V)' 11246 # We preserve .a as extension for shared libraries through AIX4.2 11247 # and later when we are not doing run time linking. 11248 library_names_spec='$libname$release.a $libname.a' 11249 soname_spec='$libname$release$shared_ext$major' 11250 ;; 11251 svr4,*) # full svr4 only 11252 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11253 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11254 # We do not specify a path in Import Files, so LIBPATH fires. 11255 shlibpath_overrides_runpath=yes 11256 ;; 11257 *,yes) # both, prefer svr4 11258 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11259 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11260 # unpreferred sharedlib libNAME.a needs extra handling 11261 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"' 11262 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"' 11263 # We do not specify a path in Import Files, so LIBPATH fires. 11264 shlibpath_overrides_runpath=yes 11265 ;; 11266 *,no) # both, prefer aix 11267 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11268 library_names_spec='$libname$release.a $libname.a' 11269 soname_spec='$libname$release$shared_ext$major' 11270 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11271 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)' 11272 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"' 11273 ;; 11274 esac 11275 shlibpath_var=LIBPATH 11276 fi 11277 ;; 11278 11279amigaos*) 11280 case $host_cpu in 11281 powerpc) 11282 # Since July 2007 AmigaOS4 officially supports .so libraries. 11283 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11284 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11285 ;; 11286 m68k) 11287 library_names_spec='$libname.ixlibrary $libname.a' 11288 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11289 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' 11290 ;; 11291 esac 11292 ;; 11293 11294beos*) 11295 library_names_spec='$libname$shared_ext' 11296 dynamic_linker="$host_os ld.so" 11297 shlibpath_var=LIBRARY_PATH 11298 ;; 11299 11300bsdi[45]*) 11301 version_type=linux # correct to gnu/linux during the next big refactor 11302 need_version=no 11303 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11304 soname_spec='$libname$release$shared_ext$major' 11305 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11306 shlibpath_var=LD_LIBRARY_PATH 11307 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11308 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11309 # the default ld.so.conf also contains /usr/contrib/lib and 11310 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11311 # libtool to hard-code these into programs 11312 ;; 11313 11314cygwin* | mingw* | pw32* | cegcc*) 11315 version_type=windows 11316 shrext_cmds=.dll 11317 need_version=no 11318 need_lib_prefix=no 11319 11320 case $GCC,$cc_basename in 11321 yes,*) 11322 # gcc 11323 library_names_spec='$libname.dll.a' 11324 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11325 postinstall_cmds='base_file=`basename \$file`~ 11326 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11327 dldir=$destdir/`dirname \$dlpath`~ 11328 test -d \$dldir || mkdir -p \$dldir~ 11329 $install_prog $dir/$dlname \$dldir/$dlname~ 11330 chmod a+x \$dldir/$dlname~ 11331 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11332 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11333 fi' 11334 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11335 dlpath=$dir/\$dldll~ 11336 $RM \$dlpath' 11337 shlibpath_overrides_runpath=yes 11338 11339 case $host_os in 11340 cygwin*) 11341 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11342 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11343 11344 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11345 ;; 11346 mingw* | cegcc*) 11347 # MinGW DLLs use traditional 'lib' prefix 11348 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11349 ;; 11350 pw32*) 11351 # pw32 DLLs use 'pw' prefix rather than 'lib' 11352 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11353 ;; 11354 esac 11355 dynamic_linker='Win32 ld.exe' 11356 ;; 11357 11358 *,cl*) 11359 # Native MSVC 11360 libname_spec='$name' 11361 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11362 library_names_spec='$libname.dll.lib' 11363 11364 case $build_os in 11365 mingw*) 11366 sys_lib_search_path_spec= 11367 lt_save_ifs=$IFS 11368 IFS=';' 11369 for lt_path in $LIB 11370 do 11371 IFS=$lt_save_ifs 11372 # Let DOS variable expansion print the short 8.3 style file name. 11373 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11374 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11375 done 11376 IFS=$lt_save_ifs 11377 # Convert to MSYS style. 11378 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11379 ;; 11380 cygwin*) 11381 # Convert to unix form, then to dos form, then back to unix form 11382 # but this time dos style (no spaces!) so that the unix form looks 11383 # like /cygdrive/c/PROGRA~1:/cygdr... 11384 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11385 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11386 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11387 ;; 11388 *) 11389 sys_lib_search_path_spec=$LIB 11390 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11391 # It is most probably a Windows format PATH. 11392 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11393 else 11394 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11395 fi 11396 # FIXME: find the short name or the path components, as spaces are 11397 # common. (e.g. "Program Files" -> "PROGRA~1") 11398 ;; 11399 esac 11400 11401 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11402 postinstall_cmds='base_file=`basename \$file`~ 11403 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11404 dldir=$destdir/`dirname \$dlpath`~ 11405 test -d \$dldir || mkdir -p \$dldir~ 11406 $install_prog $dir/$dlname \$dldir/$dlname' 11407 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11408 dlpath=$dir/\$dldll~ 11409 $RM \$dlpath' 11410 shlibpath_overrides_runpath=yes 11411 dynamic_linker='Win32 link.exe' 11412 ;; 11413 11414 *) 11415 # Assume MSVC wrapper 11416 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11417 dynamic_linker='Win32 ld.exe' 11418 ;; 11419 esac 11420 # FIXME: first we should search . and the directory the executable is in 11421 shlibpath_var=PATH 11422 ;; 11423 11424darwin* | rhapsody*) 11425 dynamic_linker="$host_os dyld" 11426 version_type=darwin 11427 need_lib_prefix=no 11428 need_version=no 11429 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11430 soname_spec='$libname$release$major$shared_ext' 11431 shlibpath_overrides_runpath=yes 11432 shlibpath_var=DYLD_LIBRARY_PATH 11433 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11434 11435 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11436 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11437 ;; 11438 11439dgux*) 11440 version_type=linux # correct to gnu/linux during the next big refactor 11441 need_lib_prefix=no 11442 need_version=no 11443 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11444 soname_spec='$libname$release$shared_ext$major' 11445 shlibpath_var=LD_LIBRARY_PATH 11446 ;; 11447 11448freebsd* | dragonfly*) 11449 # DragonFly does not have aout. When/if they implement a new 11450 # versioning mechanism, adjust this. 11451 if test -x /usr/bin/objformat; then 11452 objformat=`/usr/bin/objformat` 11453 else 11454 case $host_os in 11455 freebsd[23].*) objformat=aout ;; 11456 *) objformat=elf ;; 11457 esac 11458 fi 11459 version_type=freebsd-$objformat 11460 case $version_type in 11461 freebsd-elf*) 11462 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11463 soname_spec='$libname$release$shared_ext$major' 11464 need_version=no 11465 need_lib_prefix=no 11466 ;; 11467 freebsd-*) 11468 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11469 need_version=yes 11470 ;; 11471 esac 11472 shlibpath_var=LD_LIBRARY_PATH 11473 case $host_os in 11474 freebsd2.*) 11475 shlibpath_overrides_runpath=yes 11476 ;; 11477 freebsd3.[01]* | freebsdelf3.[01]*) 11478 shlibpath_overrides_runpath=yes 11479 hardcode_into_libs=yes 11480 ;; 11481 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11482 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11483 shlibpath_overrides_runpath=no 11484 hardcode_into_libs=yes 11485 ;; 11486 *) # from 4.6 on, and DragonFly 11487 shlibpath_overrides_runpath=yes 11488 hardcode_into_libs=yes 11489 ;; 11490 esac 11491 ;; 11492 11493haiku*) 11494 version_type=linux # correct to gnu/linux during the next big refactor 11495 need_lib_prefix=no 11496 need_version=no 11497 dynamic_linker="$host_os runtime_loader" 11498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11499 soname_spec='$libname$release$shared_ext$major' 11500 shlibpath_var=LIBRARY_PATH 11501 shlibpath_overrides_runpath=no 11502 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11503 hardcode_into_libs=yes 11504 ;; 11505 11506hpux9* | hpux10* | hpux11*) 11507 # Give a soname corresponding to the major version so that dld.sl refuses to 11508 # link against other versions. 11509 version_type=sunos 11510 need_lib_prefix=no 11511 need_version=no 11512 case $host_cpu in 11513 ia64*) 11514 shrext_cmds='.so' 11515 hardcode_into_libs=yes 11516 dynamic_linker="$host_os dld.so" 11517 shlibpath_var=LD_LIBRARY_PATH 11518 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11519 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11520 soname_spec='$libname$release$shared_ext$major' 11521 if test 32 = "$HPUX_IA64_MODE"; then 11522 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11523 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11524 else 11525 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11526 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11527 fi 11528 ;; 11529 hppa*64*) 11530 shrext_cmds='.sl' 11531 hardcode_into_libs=yes 11532 dynamic_linker="$host_os dld.sl" 11533 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11534 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11535 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11536 soname_spec='$libname$release$shared_ext$major' 11537 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11538 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11539 ;; 11540 *) 11541 shrext_cmds='.sl' 11542 dynamic_linker="$host_os dld.sl" 11543 shlibpath_var=SHLIB_PATH 11544 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11545 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11546 soname_spec='$libname$release$shared_ext$major' 11547 ;; 11548 esac 11549 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11550 postinstall_cmds='chmod 555 $lib' 11551 # or fails outright, so override atomically: 11552 install_override_mode=555 11553 ;; 11554 11555interix[3-9]*) 11556 version_type=linux # correct to gnu/linux during the next big refactor 11557 need_lib_prefix=no 11558 need_version=no 11559 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11560 soname_spec='$libname$release$shared_ext$major' 11561 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11562 shlibpath_var=LD_LIBRARY_PATH 11563 shlibpath_overrides_runpath=no 11564 hardcode_into_libs=yes 11565 ;; 11566 11567irix5* | irix6* | nonstopux*) 11568 case $host_os in 11569 nonstopux*) version_type=nonstopux ;; 11570 *) 11571 if test yes = "$lt_cv_prog_gnu_ld"; then 11572 version_type=linux # correct to gnu/linux during the next big refactor 11573 else 11574 version_type=irix 11575 fi ;; 11576 esac 11577 need_lib_prefix=no 11578 need_version=no 11579 soname_spec='$libname$release$shared_ext$major' 11580 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11581 case $host_os in 11582 irix5* | nonstopux*) 11583 libsuff= shlibsuff= 11584 ;; 11585 *) 11586 case $LD in # libtool.m4 will add one of these switches to LD 11587 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11588 libsuff= shlibsuff= libmagic=32-bit;; 11589 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11590 libsuff=32 shlibsuff=N32 libmagic=N32;; 11591 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11592 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11593 *) libsuff= shlibsuff= libmagic=never-match;; 11594 esac 11595 ;; 11596 esac 11597 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11598 shlibpath_overrides_runpath=no 11599 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11600 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11601 hardcode_into_libs=yes 11602 ;; 11603 11604# No shared lib support for Linux oldld, aout, or coff. 11605linux*oldld* | linux*aout* | linux*coff*) 11606 dynamic_linker=no 11607 ;; 11608 11609linux*android*) 11610 version_type=none # Android doesn't support versioned libraries. 11611 need_lib_prefix=no 11612 need_version=no 11613 library_names_spec='$libname$release$shared_ext' 11614 soname_spec='$libname$release$shared_ext' 11615 finish_cmds= 11616 shlibpath_var=LD_LIBRARY_PATH 11617 shlibpath_overrides_runpath=yes 11618 11619 # This implies no fast_install, which is unacceptable. 11620 # Some rework will be needed to allow for fast_install 11621 # before this can be enabled. 11622 hardcode_into_libs=yes 11623 11624 dynamic_linker='Android linker' 11625 # Don't embed -rpath directories since the linker doesn't support them. 11626 hardcode_libdir_flag_spec='-L$libdir' 11627 ;; 11628 11629# This must be glibc/ELF. 11630linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11631 version_type=linux # correct to gnu/linux during the next big refactor 11632 need_lib_prefix=no 11633 need_version=no 11634 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11635 soname_spec='$libname$release$shared_ext$major' 11636 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11637 shlibpath_var=LD_LIBRARY_PATH 11638 shlibpath_overrides_runpath=no 11639 11640 # Some binutils ld are patched to set DT_RUNPATH 11641 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11642 $as_echo_n "(cached) " >&6 11643else 11644 lt_cv_shlibpath_overrides_runpath=no 11645 save_LDFLAGS=$LDFLAGS 11646 save_libdir=$libdir 11647 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11648 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11650/* end confdefs.h. */ 11651 11652int 11653main () 11654{ 11655 11656 ; 11657 return 0; 11658} 11659_ACEOF 11660if ac_fn_c_try_link "$LINENO"; then : 11661 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11662 lt_cv_shlibpath_overrides_runpath=yes 11663fi 11664fi 11665rm -f core conftest.err conftest.$ac_objext \ 11666 conftest$ac_exeext conftest.$ac_ext 11667 LDFLAGS=$save_LDFLAGS 11668 libdir=$save_libdir 11669 11670fi 11671 11672 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11673 11674 # This implies no fast_install, which is unacceptable. 11675 # Some rework will be needed to allow for fast_install 11676 # before this can be enabled. 11677 hardcode_into_libs=yes 11678 11679 # Ideally, we could use ldconfig to report *all* directores which are 11680 # searched for libraries, however this is still not possible. Aside from not 11681 # being certain /sbin/ldconfig is available, command 11682 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11683 # even though it is searched at run-time. Try to do the best guess by 11684 # appending ld.so.conf contents (and includes) to the search path. 11685 if test -f /etc/ld.so.conf; then 11686 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' ' '` 11687 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11688 fi 11689 11690 # We used to test for /lib/ld.so.1 and disable shared libraries on 11691 # powerpc, because MkLinux only supported shared libraries with the 11692 # GNU dynamic linker. Since this was broken with cross compilers, 11693 # most powerpc-linux boxes support dynamic linking these days and 11694 # people can always --disable-shared, the test was removed, and we 11695 # assume the GNU/Linux dynamic linker is in use. 11696 dynamic_linker='GNU/Linux ld.so' 11697 ;; 11698 11699netbsdelf*-gnu) 11700 version_type=linux 11701 need_lib_prefix=no 11702 need_version=no 11703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11704 soname_spec='${libname}${release}${shared_ext}$major' 11705 shlibpath_var=LD_LIBRARY_PATH 11706 shlibpath_overrides_runpath=no 11707 hardcode_into_libs=yes 11708 dynamic_linker='NetBSD ld.elf_so' 11709 ;; 11710 11711netbsd*) 11712 version_type=sunos 11713 need_lib_prefix=no 11714 need_version=no 11715 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11716 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11717 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11718 dynamic_linker='NetBSD (a.out) ld.so' 11719 else 11720 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11721 soname_spec='$libname$release$shared_ext$major' 11722 dynamic_linker='NetBSD ld.elf_so' 11723 fi 11724 shlibpath_var=LD_LIBRARY_PATH 11725 shlibpath_overrides_runpath=yes 11726 hardcode_into_libs=yes 11727 ;; 11728 11729newsos6) 11730 version_type=linux # correct to gnu/linux during the next big refactor 11731 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11732 shlibpath_var=LD_LIBRARY_PATH 11733 shlibpath_overrides_runpath=yes 11734 ;; 11735 11736*nto* | *qnx*) 11737 version_type=qnx 11738 need_lib_prefix=no 11739 need_version=no 11740 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11741 soname_spec='$libname$release$shared_ext$major' 11742 shlibpath_var=LD_LIBRARY_PATH 11743 shlibpath_overrides_runpath=no 11744 hardcode_into_libs=yes 11745 dynamic_linker='ldqnx.so' 11746 ;; 11747 11748openbsd* | bitrig*) 11749 version_type=sunos 11750 sys_lib_dlsearch_path_spec=/usr/lib 11751 need_lib_prefix=no 11752 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11753 need_version=no 11754 else 11755 need_version=yes 11756 fi 11757 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11758 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11759 shlibpath_var=LD_LIBRARY_PATH 11760 shlibpath_overrides_runpath=yes 11761 ;; 11762 11763os2*) 11764 libname_spec='$name' 11765 version_type=windows 11766 shrext_cmds=.dll 11767 need_version=no 11768 need_lib_prefix=no 11769 # OS/2 can only load a DLL with a base name of 8 characters or less. 11770 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11771 v=$($ECHO $release$versuffix | tr -d .-); 11772 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11773 $ECHO $n$v`$shared_ext' 11774 library_names_spec='${libname}_dll.$libext' 11775 dynamic_linker='OS/2 ld.exe' 11776 shlibpath_var=BEGINLIBPATH 11777 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11778 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11779 postinstall_cmds='base_file=`basename \$file`~ 11780 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11781 dldir=$destdir/`dirname \$dlpath`~ 11782 test -d \$dldir || mkdir -p \$dldir~ 11783 $install_prog $dir/$dlname \$dldir/$dlname~ 11784 chmod a+x \$dldir/$dlname~ 11785 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11786 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11787 fi' 11788 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11789 dlpath=$dir/\$dldll~ 11790 $RM \$dlpath' 11791 ;; 11792 11793osf3* | osf4* | osf5*) 11794 version_type=osf 11795 need_lib_prefix=no 11796 need_version=no 11797 soname_spec='$libname$release$shared_ext$major' 11798 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11799 shlibpath_var=LD_LIBRARY_PATH 11800 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11801 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11802 ;; 11803 11804rdos*) 11805 dynamic_linker=no 11806 ;; 11807 11808solaris*) 11809 version_type=linux # correct to gnu/linux during the next big refactor 11810 need_lib_prefix=no 11811 need_version=no 11812 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11813 soname_spec='$libname$release$shared_ext$major' 11814 shlibpath_var=LD_LIBRARY_PATH 11815 shlibpath_overrides_runpath=yes 11816 hardcode_into_libs=yes 11817 # ldd complains unless libraries are executable 11818 postinstall_cmds='chmod +x $lib' 11819 ;; 11820 11821sunos4*) 11822 version_type=sunos 11823 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11824 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11825 shlibpath_var=LD_LIBRARY_PATH 11826 shlibpath_overrides_runpath=yes 11827 if test yes = "$with_gnu_ld"; then 11828 need_lib_prefix=no 11829 fi 11830 need_version=yes 11831 ;; 11832 11833sysv4 | sysv4.3*) 11834 version_type=linux # correct to gnu/linux during the next big refactor 11835 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11836 soname_spec='$libname$release$shared_ext$major' 11837 shlibpath_var=LD_LIBRARY_PATH 11838 case $host_vendor in 11839 sni) 11840 shlibpath_overrides_runpath=no 11841 need_lib_prefix=no 11842 runpath_var=LD_RUN_PATH 11843 ;; 11844 siemens) 11845 need_lib_prefix=no 11846 ;; 11847 motorola) 11848 need_lib_prefix=no 11849 need_version=no 11850 shlibpath_overrides_runpath=no 11851 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11852 ;; 11853 esac 11854 ;; 11855 11856sysv4*MP*) 11857 if test -d /usr/nec; then 11858 version_type=linux # correct to gnu/linux during the next big refactor 11859 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11860 soname_spec='$libname$shared_ext.$major' 11861 shlibpath_var=LD_LIBRARY_PATH 11862 fi 11863 ;; 11864 11865sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11866 version_type=sco 11867 need_lib_prefix=no 11868 need_version=no 11869 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11870 soname_spec='$libname$release$shared_ext$major' 11871 shlibpath_var=LD_LIBRARY_PATH 11872 shlibpath_overrides_runpath=yes 11873 hardcode_into_libs=yes 11874 if test yes = "$with_gnu_ld"; then 11875 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11876 else 11877 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11878 case $host_os in 11879 sco3.2v5*) 11880 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11881 ;; 11882 esac 11883 fi 11884 sys_lib_dlsearch_path_spec='/usr/lib' 11885 ;; 11886 11887tpf*) 11888 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11889 version_type=linux # correct to gnu/linux during the next big refactor 11890 need_lib_prefix=no 11891 need_version=no 11892 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11893 shlibpath_var=LD_LIBRARY_PATH 11894 shlibpath_overrides_runpath=no 11895 hardcode_into_libs=yes 11896 ;; 11897 11898uts4*) 11899 version_type=linux # correct to gnu/linux during the next big refactor 11900 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11901 soname_spec='$libname$release$shared_ext$major' 11902 shlibpath_var=LD_LIBRARY_PATH 11903 ;; 11904 11905*) 11906 dynamic_linker=no 11907 ;; 11908esac 11909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11910$as_echo "$dynamic_linker" >&6; } 11911test no = "$dynamic_linker" && can_build_shared=no 11912 11913variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11914if test yes = "$GCC"; then 11915 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11916fi 11917 11918if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11919 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11920fi 11921 11922if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11923 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11924fi 11925 11926# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11927configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11928 11929# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11930func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11931 11932# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11933configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12032$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12033hardcode_action= 12034if test -n "$hardcode_libdir_flag_spec" || 12035 test -n "$runpath_var" || 12036 test yes = "$hardcode_automatic"; then 12037 12038 # We can hardcode non-existent directories. 12039 if test no != "$hardcode_direct" && 12040 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12041 # have to relink, otherwise we might link with an installed library 12042 # when we should be linking with a yet-to-be-installed one 12043 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12044 test no != "$hardcode_minus_L"; then 12045 # Linking always hardcodes the temporary library directory. 12046 hardcode_action=relink 12047 else 12048 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12049 hardcode_action=immediate 12050 fi 12051else 12052 # We cannot hardcode anything, or else we can only hardcode existing 12053 # directories. 12054 hardcode_action=unsupported 12055fi 12056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12057$as_echo "$hardcode_action" >&6; } 12058 12059if test relink = "$hardcode_action" || 12060 test yes = "$inherit_rpath"; then 12061 # Fast installation is not supported 12062 enable_fast_install=no 12063elif test yes = "$shlibpath_overrides_runpath" || 12064 test no = "$enable_shared"; then 12065 # Fast installation is not necessary 12066 enable_fast_install=needless 12067fi 12068 12069 12070 12071 12072 12073 12074 if test yes != "$enable_dlopen"; then 12075 enable_dlopen=unknown 12076 enable_dlopen_self=unknown 12077 enable_dlopen_self_static=unknown 12078else 12079 lt_cv_dlopen=no 12080 lt_cv_dlopen_libs= 12081 12082 case $host_os in 12083 beos*) 12084 lt_cv_dlopen=load_add_on 12085 lt_cv_dlopen_libs= 12086 lt_cv_dlopen_self=yes 12087 ;; 12088 12089 mingw* | pw32* | cegcc*) 12090 lt_cv_dlopen=LoadLibrary 12091 lt_cv_dlopen_libs= 12092 ;; 12093 12094 cygwin*) 12095 lt_cv_dlopen=dlopen 12096 lt_cv_dlopen_libs= 12097 ;; 12098 12099 darwin*) 12100 # if libdl is installed we need to link against it 12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12102$as_echo_n "checking for dlopen in -ldl... " >&6; } 12103if ${ac_cv_lib_dl_dlopen+:} false; then : 12104 $as_echo_n "(cached) " >&6 12105else 12106 ac_check_lib_save_LIBS=$LIBS 12107LIBS="-ldl $LIBS" 12108cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12109/* end confdefs.h. */ 12110 12111/* Override any GCC internal prototype to avoid an error. 12112 Use char because int might match the return type of a GCC 12113 builtin and then its argument prototype would still apply. */ 12114#ifdef __cplusplus 12115extern "C" 12116#endif 12117char dlopen (); 12118int 12119main () 12120{ 12121return dlopen (); 12122 ; 12123 return 0; 12124} 12125_ACEOF 12126if ac_fn_c_try_link "$LINENO"; then : 12127 ac_cv_lib_dl_dlopen=yes 12128else 12129 ac_cv_lib_dl_dlopen=no 12130fi 12131rm -f core conftest.err conftest.$ac_objext \ 12132 conftest$ac_exeext conftest.$ac_ext 12133LIBS=$ac_check_lib_save_LIBS 12134fi 12135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12136$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12137if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12138 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12139else 12140 12141 lt_cv_dlopen=dyld 12142 lt_cv_dlopen_libs= 12143 lt_cv_dlopen_self=yes 12144 12145fi 12146 12147 ;; 12148 12149 tpf*) 12150 # Don't try to run any link tests for TPF. We know it's impossible 12151 # because TPF is a cross-compiler, and we know how we open DSOs. 12152 lt_cv_dlopen=dlopen 12153 lt_cv_dlopen_libs= 12154 lt_cv_dlopen_self=no 12155 ;; 12156 12157 *) 12158 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12159if test "x$ac_cv_func_shl_load" = xyes; then : 12160 lt_cv_dlopen=shl_load 12161else 12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12163$as_echo_n "checking for shl_load in -ldld... " >&6; } 12164if ${ac_cv_lib_dld_shl_load+:} false; then : 12165 $as_echo_n "(cached) " >&6 12166else 12167 ac_check_lib_save_LIBS=$LIBS 12168LIBS="-ldld $LIBS" 12169cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12170/* end confdefs.h. */ 12171 12172/* Override any GCC internal prototype to avoid an error. 12173 Use char because int might match the return type of a GCC 12174 builtin and then its argument prototype would still apply. */ 12175#ifdef __cplusplus 12176extern "C" 12177#endif 12178char shl_load (); 12179int 12180main () 12181{ 12182return shl_load (); 12183 ; 12184 return 0; 12185} 12186_ACEOF 12187if ac_fn_c_try_link "$LINENO"; then : 12188 ac_cv_lib_dld_shl_load=yes 12189else 12190 ac_cv_lib_dld_shl_load=no 12191fi 12192rm -f core conftest.err conftest.$ac_objext \ 12193 conftest$ac_exeext conftest.$ac_ext 12194LIBS=$ac_check_lib_save_LIBS 12195fi 12196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12197$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12198if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12199 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12200else 12201 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12202if test "x$ac_cv_func_dlopen" = xyes; then : 12203 lt_cv_dlopen=dlopen 12204else 12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12206$as_echo_n "checking for dlopen in -ldl... " >&6; } 12207if ${ac_cv_lib_dl_dlopen+:} false; then : 12208 $as_echo_n "(cached) " >&6 12209else 12210 ac_check_lib_save_LIBS=$LIBS 12211LIBS="-ldl $LIBS" 12212cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12213/* end confdefs.h. */ 12214 12215/* Override any GCC internal prototype to avoid an error. 12216 Use char because int might match the return type of a GCC 12217 builtin and then its argument prototype would still apply. */ 12218#ifdef __cplusplus 12219extern "C" 12220#endif 12221char dlopen (); 12222int 12223main () 12224{ 12225return dlopen (); 12226 ; 12227 return 0; 12228} 12229_ACEOF 12230if ac_fn_c_try_link "$LINENO"; then : 12231 ac_cv_lib_dl_dlopen=yes 12232else 12233 ac_cv_lib_dl_dlopen=no 12234fi 12235rm -f core conftest.err conftest.$ac_objext \ 12236 conftest$ac_exeext conftest.$ac_ext 12237LIBS=$ac_check_lib_save_LIBS 12238fi 12239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12240$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12241if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12242 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12243else 12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12245$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12246if ${ac_cv_lib_svld_dlopen+:} false; then : 12247 $as_echo_n "(cached) " >&6 12248else 12249 ac_check_lib_save_LIBS=$LIBS 12250LIBS="-lsvld $LIBS" 12251cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12252/* end confdefs.h. */ 12253 12254/* Override any GCC internal prototype to avoid an error. 12255 Use char because int might match the return type of a GCC 12256 builtin and then its argument prototype would still apply. */ 12257#ifdef __cplusplus 12258extern "C" 12259#endif 12260char dlopen (); 12261int 12262main () 12263{ 12264return dlopen (); 12265 ; 12266 return 0; 12267} 12268_ACEOF 12269if ac_fn_c_try_link "$LINENO"; then : 12270 ac_cv_lib_svld_dlopen=yes 12271else 12272 ac_cv_lib_svld_dlopen=no 12273fi 12274rm -f core conftest.err conftest.$ac_objext \ 12275 conftest$ac_exeext conftest.$ac_ext 12276LIBS=$ac_check_lib_save_LIBS 12277fi 12278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12279$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12280if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12281 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12282else 12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12284$as_echo_n "checking for dld_link in -ldld... " >&6; } 12285if ${ac_cv_lib_dld_dld_link+:} false; then : 12286 $as_echo_n "(cached) " >&6 12287else 12288 ac_check_lib_save_LIBS=$LIBS 12289LIBS="-ldld $LIBS" 12290cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12291/* end confdefs.h. */ 12292 12293/* Override any GCC internal prototype to avoid an error. 12294 Use char because int might match the return type of a GCC 12295 builtin and then its argument prototype would still apply. */ 12296#ifdef __cplusplus 12297extern "C" 12298#endif 12299char dld_link (); 12300int 12301main () 12302{ 12303return dld_link (); 12304 ; 12305 return 0; 12306} 12307_ACEOF 12308if ac_fn_c_try_link "$LINENO"; then : 12309 ac_cv_lib_dld_dld_link=yes 12310else 12311 ac_cv_lib_dld_dld_link=no 12312fi 12313rm -f core conftest.err conftest.$ac_objext \ 12314 conftest$ac_exeext conftest.$ac_ext 12315LIBS=$ac_check_lib_save_LIBS 12316fi 12317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12318$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12319if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12320 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12321fi 12322 12323 12324fi 12325 12326 12327fi 12328 12329 12330fi 12331 12332 12333fi 12334 12335 12336fi 12337 12338 ;; 12339 esac 12340 12341 if test no = "$lt_cv_dlopen"; then 12342 enable_dlopen=no 12343 else 12344 enable_dlopen=yes 12345 fi 12346 12347 case $lt_cv_dlopen in 12348 dlopen) 12349 save_CPPFLAGS=$CPPFLAGS 12350 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12351 12352 save_LDFLAGS=$LDFLAGS 12353 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12354 12355 save_LIBS=$LIBS 12356 LIBS="$lt_cv_dlopen_libs $LIBS" 12357 12358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12359$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12360if ${lt_cv_dlopen_self+:} false; then : 12361 $as_echo_n "(cached) " >&6 12362else 12363 if test yes = "$cross_compiling"; then : 12364 lt_cv_dlopen_self=cross 12365else 12366 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12367 lt_status=$lt_dlunknown 12368 cat > conftest.$ac_ext <<_LT_EOF 12369#line $LINENO "configure" 12370#include "confdefs.h" 12371 12372#if HAVE_DLFCN_H 12373#include <dlfcn.h> 12374#endif 12375 12376#include <stdio.h> 12377 12378#ifdef RTLD_GLOBAL 12379# define LT_DLGLOBAL RTLD_GLOBAL 12380#else 12381# ifdef DL_GLOBAL 12382# define LT_DLGLOBAL DL_GLOBAL 12383# else 12384# define LT_DLGLOBAL 0 12385# endif 12386#endif 12387 12388/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12389 find out it does not work in some platform. */ 12390#ifndef LT_DLLAZY_OR_NOW 12391# ifdef RTLD_LAZY 12392# define LT_DLLAZY_OR_NOW RTLD_LAZY 12393# else 12394# ifdef DL_LAZY 12395# define LT_DLLAZY_OR_NOW DL_LAZY 12396# else 12397# ifdef RTLD_NOW 12398# define LT_DLLAZY_OR_NOW RTLD_NOW 12399# else 12400# ifdef DL_NOW 12401# define LT_DLLAZY_OR_NOW DL_NOW 12402# else 12403# define LT_DLLAZY_OR_NOW 0 12404# endif 12405# endif 12406# endif 12407# endif 12408#endif 12409 12410/* When -fvisibility=hidden is used, assume the code has been annotated 12411 correspondingly for the symbols needed. */ 12412#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12413int fnord () __attribute__((visibility("default"))); 12414#endif 12415 12416int fnord () { return 42; } 12417int main () 12418{ 12419 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12420 int status = $lt_dlunknown; 12421 12422 if (self) 12423 { 12424 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12425 else 12426 { 12427 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12428 else puts (dlerror ()); 12429 } 12430 /* dlclose (self); */ 12431 } 12432 else 12433 puts (dlerror ()); 12434 12435 return status; 12436} 12437_LT_EOF 12438 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12439 (eval $ac_link) 2>&5 12440 ac_status=$? 12441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12442 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12443 (./conftest; exit; ) >&5 2>/dev/null 12444 lt_status=$? 12445 case x$lt_status in 12446 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12447 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12448 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12449 esac 12450 else : 12451 # compilation failed 12452 lt_cv_dlopen_self=no 12453 fi 12454fi 12455rm -fr conftest* 12456 12457 12458fi 12459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12460$as_echo "$lt_cv_dlopen_self" >&6; } 12461 12462 if test yes = "$lt_cv_dlopen_self"; then 12463 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12465$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12466if ${lt_cv_dlopen_self_static+:} false; then : 12467 $as_echo_n "(cached) " >&6 12468else 12469 if test yes = "$cross_compiling"; then : 12470 lt_cv_dlopen_self_static=cross 12471else 12472 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12473 lt_status=$lt_dlunknown 12474 cat > conftest.$ac_ext <<_LT_EOF 12475#line $LINENO "configure" 12476#include "confdefs.h" 12477 12478#if HAVE_DLFCN_H 12479#include <dlfcn.h> 12480#endif 12481 12482#include <stdio.h> 12483 12484#ifdef RTLD_GLOBAL 12485# define LT_DLGLOBAL RTLD_GLOBAL 12486#else 12487# ifdef DL_GLOBAL 12488# define LT_DLGLOBAL DL_GLOBAL 12489# else 12490# define LT_DLGLOBAL 0 12491# endif 12492#endif 12493 12494/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12495 find out it does not work in some platform. */ 12496#ifndef LT_DLLAZY_OR_NOW 12497# ifdef RTLD_LAZY 12498# define LT_DLLAZY_OR_NOW RTLD_LAZY 12499# else 12500# ifdef DL_LAZY 12501# define LT_DLLAZY_OR_NOW DL_LAZY 12502# else 12503# ifdef RTLD_NOW 12504# define LT_DLLAZY_OR_NOW RTLD_NOW 12505# else 12506# ifdef DL_NOW 12507# define LT_DLLAZY_OR_NOW DL_NOW 12508# else 12509# define LT_DLLAZY_OR_NOW 0 12510# endif 12511# endif 12512# endif 12513# endif 12514#endif 12515 12516/* When -fvisibility=hidden is used, assume the code has been annotated 12517 correspondingly for the symbols needed. */ 12518#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12519int fnord () __attribute__((visibility("default"))); 12520#endif 12521 12522int fnord () { return 42; } 12523int main () 12524{ 12525 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12526 int status = $lt_dlunknown; 12527 12528 if (self) 12529 { 12530 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12531 else 12532 { 12533 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12534 else puts (dlerror ()); 12535 } 12536 /* dlclose (self); */ 12537 } 12538 else 12539 puts (dlerror ()); 12540 12541 return status; 12542} 12543_LT_EOF 12544 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12545 (eval $ac_link) 2>&5 12546 ac_status=$? 12547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12548 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12549 (./conftest; exit; ) >&5 2>/dev/null 12550 lt_status=$? 12551 case x$lt_status in 12552 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12553 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12554 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12555 esac 12556 else : 12557 # compilation failed 12558 lt_cv_dlopen_self_static=no 12559 fi 12560fi 12561rm -fr conftest* 12562 12563 12564fi 12565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12566$as_echo "$lt_cv_dlopen_self_static" >&6; } 12567 fi 12568 12569 CPPFLAGS=$save_CPPFLAGS 12570 LDFLAGS=$save_LDFLAGS 12571 LIBS=$save_LIBS 12572 ;; 12573 esac 12574 12575 case $lt_cv_dlopen_self in 12576 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12577 *) enable_dlopen_self=unknown ;; 12578 esac 12579 12580 case $lt_cv_dlopen_self_static in 12581 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12582 *) enable_dlopen_self_static=unknown ;; 12583 esac 12584fi 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602striplib= 12603old_striplib= 12604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12605$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12606if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12607 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12608 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12610$as_echo "yes" >&6; } 12611else 12612# FIXME - insert some real tests, host_os isn't really good enough 12613 case $host_os in 12614 darwin*) 12615 if test -n "$STRIP"; then 12616 striplib="$STRIP -x" 12617 old_striplib="$STRIP -S" 12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12619$as_echo "yes" >&6; } 12620 else 12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12622$as_echo "no" >&6; } 12623 fi 12624 ;; 12625 *) 12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12627$as_echo "no" >&6; } 12628 ;; 12629 esac 12630fi 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 # Report what library types will actually be built 12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12645$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12647$as_echo "$can_build_shared" >&6; } 12648 12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12650$as_echo_n "checking whether to build shared libraries... " >&6; } 12651 test no = "$can_build_shared" && enable_shared=no 12652 12653 # On AIX, shared libraries and static libraries use the same namespace, and 12654 # are all built from PIC. 12655 case $host_os in 12656 aix3*) 12657 test yes = "$enable_shared" && enable_static=no 12658 if test -n "$RANLIB"; then 12659 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12660 postinstall_cmds='$RANLIB $lib' 12661 fi 12662 ;; 12663 12664 aix[4-9]*) 12665 if test ia64 != "$host_cpu"; then 12666 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12667 yes,aix,yes) ;; # shared object as lib.so file only 12668 yes,svr4,*) ;; # shared object as lib.so archive member only 12669 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12670 esac 12671 fi 12672 ;; 12673 esac 12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12675$as_echo "$enable_shared" >&6; } 12676 12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12678$as_echo_n "checking whether to build static libraries... " >&6; } 12679 # Make sure either enable_shared or enable_static is yes. 12680 test yes = "$enable_shared" || enable_static=yes 12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12682$as_echo "$enable_static" >&6; } 12683 12684 12685 12686 12687fi 12688ac_ext=c 12689ac_cpp='$CPP $CPPFLAGS' 12690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12692ac_compiler_gnu=$ac_cv_c_compiler_gnu 12693 12694CC=$lt_save_CC 12695 12696 if test -n "$CXX" && ( test no != "$CXX" && 12697 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 12698 (test g++ != "$CXX"))); then 12699 ac_ext=cpp 12700ac_cpp='$CXXCPP $CPPFLAGS' 12701ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12702ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12703ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12705$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12706if test -z "$CXXCPP"; then 12707 if ${ac_cv_prog_CXXCPP+:} false; then : 12708 $as_echo_n "(cached) " >&6 12709else 12710 # Double quotes because CXXCPP needs to be expanded 12711 for CXXCPP in "$CXX -E" "/lib/cpp" 12712 do 12713 ac_preproc_ok=false 12714for ac_cxx_preproc_warn_flag in '' yes 12715do 12716 # Use a header file that comes with gcc, so configuring glibc 12717 # with a fresh cross-compiler works. 12718 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12719 # <limits.h> exists even on freestanding compilers. 12720 # On the NeXT, cc -E runs the code through the compiler's parser, 12721 # not just through cpp. "Syntax error" is here to catch this case. 12722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12723/* end confdefs.h. */ 12724#ifdef __STDC__ 12725# include <limits.h> 12726#else 12727# include <assert.h> 12728#endif 12729 Syntax error 12730_ACEOF 12731if ac_fn_cxx_try_cpp "$LINENO"; then : 12732 12733else 12734 # Broken: fails on valid input. 12735continue 12736fi 12737rm -f conftest.err conftest.i conftest.$ac_ext 12738 12739 # OK, works on sane cases. Now check whether nonexistent headers 12740 # can be detected and how. 12741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12742/* end confdefs.h. */ 12743#include <ac_nonexistent.h> 12744_ACEOF 12745if ac_fn_cxx_try_cpp "$LINENO"; then : 12746 # Broken: success on invalid input. 12747continue 12748else 12749 # Passes both tests. 12750ac_preproc_ok=: 12751break 12752fi 12753rm -f conftest.err conftest.i conftest.$ac_ext 12754 12755done 12756# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12757rm -f conftest.i conftest.err conftest.$ac_ext 12758if $ac_preproc_ok; then : 12759 break 12760fi 12761 12762 done 12763 ac_cv_prog_CXXCPP=$CXXCPP 12764 12765fi 12766 CXXCPP=$ac_cv_prog_CXXCPP 12767else 12768 ac_cv_prog_CXXCPP=$CXXCPP 12769fi 12770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12771$as_echo "$CXXCPP" >&6; } 12772ac_preproc_ok=false 12773for ac_cxx_preproc_warn_flag in '' yes 12774do 12775 # Use a header file that comes with gcc, so configuring glibc 12776 # with a fresh cross-compiler works. 12777 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12778 # <limits.h> exists even on freestanding compilers. 12779 # On the NeXT, cc -E runs the code through the compiler's parser, 12780 # not just through cpp. "Syntax error" is here to catch this case. 12781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12782/* end confdefs.h. */ 12783#ifdef __STDC__ 12784# include <limits.h> 12785#else 12786# include <assert.h> 12787#endif 12788 Syntax error 12789_ACEOF 12790if ac_fn_cxx_try_cpp "$LINENO"; then : 12791 12792else 12793 # Broken: fails on valid input. 12794continue 12795fi 12796rm -f conftest.err conftest.i conftest.$ac_ext 12797 12798 # OK, works on sane cases. Now check whether nonexistent headers 12799 # can be detected and how. 12800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12801/* end confdefs.h. */ 12802#include <ac_nonexistent.h> 12803_ACEOF 12804if ac_fn_cxx_try_cpp "$LINENO"; then : 12805 # Broken: success on invalid input. 12806continue 12807else 12808 # Passes both tests. 12809ac_preproc_ok=: 12810break 12811fi 12812rm -f conftest.err conftest.i conftest.$ac_ext 12813 12814done 12815# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12816rm -f conftest.i conftest.err conftest.$ac_ext 12817if $ac_preproc_ok; then : 12818 12819else 12820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12821$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12822as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 12823See \`config.log' for more details" "$LINENO" 5; } 12824fi 12825 12826ac_ext=c 12827ac_cpp='$CPP $CPPFLAGS' 12828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12830ac_compiler_gnu=$ac_cv_c_compiler_gnu 12831 12832else 12833 _lt_caught_CXX_error=yes 12834fi 12835 12836ac_ext=cpp 12837ac_cpp='$CXXCPP $CPPFLAGS' 12838ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12839ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12840ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12841 12842archive_cmds_need_lc_CXX=no 12843allow_undefined_flag_CXX= 12844always_export_symbols_CXX=no 12845archive_expsym_cmds_CXX= 12846compiler_needs_object_CXX=no 12847export_dynamic_flag_spec_CXX= 12848hardcode_direct_CXX=no 12849hardcode_direct_absolute_CXX=no 12850hardcode_libdir_flag_spec_CXX= 12851hardcode_libdir_separator_CXX= 12852hardcode_minus_L_CXX=no 12853hardcode_shlibpath_var_CXX=unsupported 12854hardcode_automatic_CXX=no 12855inherit_rpath_CXX=no 12856module_cmds_CXX= 12857module_expsym_cmds_CXX= 12858link_all_deplibs_CXX=unknown 12859old_archive_cmds_CXX=$old_archive_cmds 12860reload_flag_CXX=$reload_flag 12861reload_cmds_CXX=$reload_cmds 12862no_undefined_flag_CXX= 12863whole_archive_flag_spec_CXX= 12864enable_shared_with_static_runtimes_CXX=no 12865 12866# Source file extension for C++ test sources. 12867ac_ext=cpp 12868 12869# Object file extension for compiled C++ test sources. 12870objext=o 12871objext_CXX=$objext 12872 12873# No sense in running all these tests if we already determined that 12874# the CXX compiler isn't working. Some variables (like enable_shared) 12875# are currently assumed to apply to all compilers on this platform, 12876# and will be corrupted by setting them based on a non-working compiler. 12877if test yes != "$_lt_caught_CXX_error"; then 12878 # Code to be used in simple compile tests 12879 lt_simple_compile_test_code="int some_variable = 0;" 12880 12881 # Code to be used in simple link tests 12882 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12883 12884 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12885 12886 12887 12888 12889 12890 12891# If no C compiler was specified, use CC. 12892LTCC=${LTCC-"$CC"} 12893 12894# If no C compiler flags were specified, use CFLAGS. 12895LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12896 12897# Allow CC to be a program name with arguments. 12898compiler=$CC 12899 12900 12901 # save warnings/boilerplate of simple test code 12902 ac_outfile=conftest.$ac_objext 12903echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12904eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12905_lt_compiler_boilerplate=`cat conftest.err` 12906$RM conftest* 12907 12908 ac_outfile=conftest.$ac_objext 12909echo "$lt_simple_link_test_code" >conftest.$ac_ext 12910eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12911_lt_linker_boilerplate=`cat conftest.err` 12912$RM -r conftest* 12913 12914 12915 # Allow CC to be a program name with arguments. 12916 lt_save_CC=$CC 12917 lt_save_CFLAGS=$CFLAGS 12918 lt_save_LD=$LD 12919 lt_save_GCC=$GCC 12920 GCC=$GXX 12921 lt_save_with_gnu_ld=$with_gnu_ld 12922 lt_save_path_LD=$lt_cv_path_LD 12923 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12924 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12925 else 12926 $as_unset lt_cv_prog_gnu_ld 12927 fi 12928 if test -n "${lt_cv_path_LDCXX+set}"; then 12929 lt_cv_path_LD=$lt_cv_path_LDCXX 12930 else 12931 $as_unset lt_cv_path_LD 12932 fi 12933 test -z "${LDCXX+set}" || LD=$LDCXX 12934 CC=${CXX-"c++"} 12935 CFLAGS=$CXXFLAGS 12936 compiler=$CC 12937 compiler_CXX=$CC 12938 func_cc_basename $compiler 12939cc_basename=$func_cc_basename_result 12940 12941 12942 if test -n "$compiler"; then 12943 # We don't want -fno-exception when compiling C++ code, so set the 12944 # no_builtin_flag separately 12945 if test yes = "$GXX"; then 12946 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12947 else 12948 lt_prog_compiler_no_builtin_flag_CXX= 12949 fi 12950 12951 if test yes = "$GXX"; then 12952 # Set up default GNU C++ configuration 12953 12954 12955 12956# Check whether --with-gnu-ld was given. 12957if test "${with_gnu_ld+set}" = set; then : 12958 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 12959else 12960 with_gnu_ld=no 12961fi 12962 12963ac_prog=ld 12964if test yes = "$GCC"; then 12965 # Check if gcc -print-prog-name=ld gives a path. 12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12967$as_echo_n "checking for ld used by $CC... " >&6; } 12968 case $host in 12969 *-*-mingw*) 12970 # gcc leaves a trailing carriage return, which upsets mingw 12971 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12972 *) 12973 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12974 esac 12975 case $ac_prog in 12976 # Accept absolute paths. 12977 [\\/]* | ?:[\\/]*) 12978 re_direlt='/[^/][^/]*/\.\./' 12979 # Canonicalize the pathname of ld 12980 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12981 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12982 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12983 done 12984 test -z "$LD" && LD=$ac_prog 12985 ;; 12986 "") 12987 # If it fails, then pretend we aren't using GCC. 12988 ac_prog=ld 12989 ;; 12990 *) 12991 # If it is relative, then search for the first ld in PATH. 12992 with_gnu_ld=unknown 12993 ;; 12994 esac 12995elif test yes = "$with_gnu_ld"; then 12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12997$as_echo_n "checking for GNU ld... " >&6; } 12998else 12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13000$as_echo_n "checking for non-GNU ld... " >&6; } 13001fi 13002if ${lt_cv_path_LD+:} false; then : 13003 $as_echo_n "(cached) " >&6 13004else 13005 if test -z "$LD"; then 13006 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13007 for ac_dir in $PATH; do 13008 IFS=$lt_save_ifs 13009 test -z "$ac_dir" && ac_dir=. 13010 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13011 lt_cv_path_LD=$ac_dir/$ac_prog 13012 # Check to see if the program is GNU ld. I'd rather use --version, 13013 # but apparently some variants of GNU ld only accept -v. 13014 # Break only if it was the GNU/non-GNU ld that we prefer. 13015 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13016 *GNU* | *'with BFD'*) 13017 test no != "$with_gnu_ld" && break 13018 ;; 13019 *) 13020 test yes != "$with_gnu_ld" && break 13021 ;; 13022 esac 13023 fi 13024 done 13025 IFS=$lt_save_ifs 13026else 13027 lt_cv_path_LD=$LD # Let the user override the test with a path. 13028fi 13029fi 13030 13031LD=$lt_cv_path_LD 13032if test -n "$LD"; then 13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13034$as_echo "$LD" >&6; } 13035else 13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13037$as_echo "no" >&6; } 13038fi 13039test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13041$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13042if ${lt_cv_prog_gnu_ld+:} false; then : 13043 $as_echo_n "(cached) " >&6 13044else 13045 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13046case `$LD -v 2>&1 </dev/null` in 13047*GNU* | *'with BFD'*) 13048 lt_cv_prog_gnu_ld=yes 13049 ;; 13050*) 13051 lt_cv_prog_gnu_ld=no 13052 ;; 13053esac 13054fi 13055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13056$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13057with_gnu_ld=$lt_cv_prog_gnu_ld 13058 13059 13060 13061 13062 13063 13064 13065 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13066 # archiving commands below assume that GNU ld is being used. 13067 if test yes = "$with_gnu_ld"; then 13068 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13069 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' 13070 13071 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13072 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13073 13074 # If archive_cmds runs LD, not CC, wlarc should be empty 13075 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13076 # investigate it a little bit more. (MM) 13077 wlarc='$wl' 13078 13079 # ancient GNU ld didn't support --whole-archive et. al. 13080 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13081 $GREP 'no-whole-archive' > /dev/null; then 13082 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13083 else 13084 whole_archive_flag_spec_CXX= 13085 fi 13086 else 13087 with_gnu_ld=no 13088 wlarc= 13089 13090 # A generic and very simple default shared library creation 13091 # command for GNU C++ for the case where it uses the native 13092 # linker, instead of GNU ld. If possible, this setting should 13093 # overridden to take advantage of the native linker features on 13094 # the platform it is being used on. 13095 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13096 fi 13097 13098 # Commands to make compiler produce verbose output that lists 13099 # what "hidden" libraries, object files and flags are used when 13100 # linking a shared library. 13101 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13102 13103 else 13104 GXX=no 13105 with_gnu_ld=no 13106 wlarc= 13107 fi 13108 13109 # PORTME: fill in a description of your system's C++ link characteristics 13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13111$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13112 ld_shlibs_CXX=yes 13113 case $host_os in 13114 aix3*) 13115 # FIXME: insert proper C++ library support 13116 ld_shlibs_CXX=no 13117 ;; 13118 aix[4-9]*) 13119 if test ia64 = "$host_cpu"; then 13120 # On IA64, the linker does run time linking by default, so we don't 13121 # have to do anything special. 13122 aix_use_runtimelinking=no 13123 exp_sym_flag='-Bexport' 13124 no_entry_flag= 13125 else 13126 aix_use_runtimelinking=no 13127 13128 # Test if we are trying to use run time linking or normal 13129 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13130 # have runtime linking enabled, and use it for executables. 13131 # For shared libraries, we enable/disable runtime linking 13132 # depending on the kind of the shared library created - 13133 # when "with_aix_soname,aix_use_runtimelinking" is: 13134 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 13135 # "aix,yes" lib.so shared, rtl:yes, for executables 13136 # lib.a static archive 13137 # "both,no" lib.so.V(shr.o) shared, rtl:yes 13138 # lib.a(lib.so.V) shared, rtl:no, for executables 13139 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 13140 # lib.a(lib.so.V) shared, rtl:no 13141 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 13142 # lib.a static archive 13143 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13144 for ld_flag in $LDFLAGS; do 13145 case $ld_flag in 13146 *-brtl*) 13147 aix_use_runtimelinking=yes 13148 break 13149 ;; 13150 esac 13151 done 13152 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 13153 # With aix-soname=svr4, we create the lib.so.V shared archives only, 13154 # so we don't have lib.a shared libs to link our executables. 13155 # We have to force runtime linking in this case. 13156 aix_use_runtimelinking=yes 13157 LDFLAGS="$LDFLAGS -Wl,-brtl" 13158 fi 13159 ;; 13160 esac 13161 13162 exp_sym_flag='-bexport' 13163 no_entry_flag='-bnoentry' 13164 fi 13165 13166 # When large executables or shared objects are built, AIX ld can 13167 # have problems creating the table of contents. If linking a library 13168 # or program results in "error TOC overflow" add -mminimal-toc to 13169 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13170 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13171 13172 archive_cmds_CXX='' 13173 hardcode_direct_CXX=yes 13174 hardcode_direct_absolute_CXX=yes 13175 hardcode_libdir_separator_CXX=':' 13176 link_all_deplibs_CXX=yes 13177 file_list_spec_CXX='$wl-f,' 13178 case $with_aix_soname,$aix_use_runtimelinking in 13179 aix,*) ;; # no import file 13180 svr4,* | *,yes) # use import file 13181 # The Import File defines what to hardcode. 13182 hardcode_direct_CXX=no 13183 hardcode_direct_absolute_CXX=no 13184 ;; 13185 esac 13186 13187 if test yes = "$GXX"; then 13188 case $host_os in aix4.[012]|aix4.[012].*) 13189 # We only want to do this on AIX 4.2 and lower, the check 13190 # below for broken collect2 doesn't work under 4.3+ 13191 collect2name=`$CC -print-prog-name=collect2` 13192 if test -f "$collect2name" && 13193 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13194 then 13195 # We have reworked collect2 13196 : 13197 else 13198 # We have old collect2 13199 hardcode_direct_CXX=unsupported 13200 # It fails to find uninstalled libraries when the uninstalled 13201 # path is not listed in the libpath. Setting hardcode_minus_L 13202 # to unsupported forces relinking 13203 hardcode_minus_L_CXX=yes 13204 hardcode_libdir_flag_spec_CXX='-L$libdir' 13205 hardcode_libdir_separator_CXX= 13206 fi 13207 esac 13208 shared_flag='-shared' 13209 if test yes = "$aix_use_runtimelinking"; then 13210 shared_flag=$shared_flag' $wl-G' 13211 fi 13212 # Need to ensure runtime linking is disabled for the traditional 13213 # shared library, or the linker may eventually find shared libraries 13214 # /with/ Import File - we do not want to mix them. 13215 shared_flag_aix='-shared' 13216 shared_flag_svr4='-shared $wl-G' 13217 else 13218 # not using gcc 13219 if test ia64 = "$host_cpu"; then 13220 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13221 # chokes on -Wl,-G. The following line is correct: 13222 shared_flag='-G' 13223 else 13224 if test yes = "$aix_use_runtimelinking"; then 13225 shared_flag='$wl-G' 13226 else 13227 shared_flag='$wl-bM:SRE' 13228 fi 13229 shared_flag_aix='$wl-bM:SRE' 13230 shared_flag_svr4='$wl-G' 13231 fi 13232 fi 13233 13234 export_dynamic_flag_spec_CXX='$wl-bexpall' 13235 # It seems that -bexpall does not export symbols beginning with 13236 # underscore (_), so it is better to generate a list of symbols to 13237 # export. 13238 always_export_symbols_CXX=yes 13239 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 13240 # Warning - without using the other runtime loading flags (-brtl), 13241 # -berok will link without error, but may produce a broken library. 13242 # The "-G" linker flag allows undefined symbols. 13243 no_undefined_flag_CXX='-bernotok' 13244 # Determine the default libpath from the value encoded in an empty 13245 # executable. 13246 if test set = "${lt_cv_aix_libpath+set}"; then 13247 aix_libpath=$lt_cv_aix_libpath 13248else 13249 if ${lt_cv_aix_libpath__CXX+:} false; then : 13250 $as_echo_n "(cached) " >&6 13251else 13252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13253/* end confdefs.h. */ 13254 13255int 13256main () 13257{ 13258 13259 ; 13260 return 0; 13261} 13262_ACEOF 13263if ac_fn_cxx_try_link "$LINENO"; then : 13264 13265 lt_aix_libpath_sed=' 13266 /Import File Strings/,/^$/ { 13267 /^0/ { 13268 s/^0 *\([^ ]*\) *$/\1/ 13269 p 13270 } 13271 }' 13272 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13273 # Check for a 64-bit object if we didn't find anything. 13274 if test -z "$lt_cv_aix_libpath__CXX"; then 13275 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13276 fi 13277fi 13278rm -f core conftest.err conftest.$ac_objext \ 13279 conftest$ac_exeext conftest.$ac_ext 13280 if test -z "$lt_cv_aix_libpath__CXX"; then 13281 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13282 fi 13283 13284fi 13285 13286 aix_libpath=$lt_cv_aix_libpath__CXX 13287fi 13288 13289 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13290 13291 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 13292 else 13293 if test ia64 = "$host_cpu"; then 13294 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 13295 allow_undefined_flag_CXX="-z nodefs" 13296 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" 13297 else 13298 # Determine the default libpath from the value encoded in an 13299 # empty executable. 13300 if test set = "${lt_cv_aix_libpath+set}"; then 13301 aix_libpath=$lt_cv_aix_libpath 13302else 13303 if ${lt_cv_aix_libpath__CXX+:} false; then : 13304 $as_echo_n "(cached) " >&6 13305else 13306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13307/* end confdefs.h. */ 13308 13309int 13310main () 13311{ 13312 13313 ; 13314 return 0; 13315} 13316_ACEOF 13317if ac_fn_cxx_try_link "$LINENO"; then : 13318 13319 lt_aix_libpath_sed=' 13320 /Import File Strings/,/^$/ { 13321 /^0/ { 13322 s/^0 *\([^ ]*\) *$/\1/ 13323 p 13324 } 13325 }' 13326 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13327 # Check for a 64-bit object if we didn't find anything. 13328 if test -z "$lt_cv_aix_libpath__CXX"; then 13329 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13330 fi 13331fi 13332rm -f core conftest.err conftest.$ac_objext \ 13333 conftest$ac_exeext conftest.$ac_ext 13334 if test -z "$lt_cv_aix_libpath__CXX"; then 13335 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13336 fi 13337 13338fi 13339 13340 aix_libpath=$lt_cv_aix_libpath__CXX 13341fi 13342 13343 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13344 # Warning - without using the other run time loading flags, 13345 # -berok will link without error, but may produce a broken library. 13346 no_undefined_flag_CXX=' $wl-bernotok' 13347 allow_undefined_flag_CXX=' $wl-berok' 13348 if test yes = "$with_gnu_ld"; then 13349 # We only use this code for GNU lds that support --whole-archive. 13350 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 13351 else 13352 # Exported symbols can be pulled into shared objects from archives 13353 whole_archive_flag_spec_CXX='$convenience' 13354 fi 13355 archive_cmds_need_lc_CXX=yes 13356 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 13357 # -brtl affects multiple linker settings, -berok does not and is overridden later 13358 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 13359 if test svr4 != "$with_aix_soname"; then 13360 # This is similar to how AIX traditionally builds its shared 13361 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 13362 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' 13363 fi 13364 if test aix != "$with_aix_soname"; then 13365 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' 13366 else 13367 # used by -dlpreopen to get the symbols 13368 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 13369 fi 13370 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 13371 fi 13372 fi 13373 ;; 13374 13375 beos*) 13376 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13377 allow_undefined_flag_CXX=unsupported 13378 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13379 # support --undefined. This deserves some investigation. FIXME 13380 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13381 else 13382 ld_shlibs_CXX=no 13383 fi 13384 ;; 13385 13386 chorus*) 13387 case $cc_basename in 13388 *) 13389 # FIXME: insert proper C++ library support 13390 ld_shlibs_CXX=no 13391 ;; 13392 esac 13393 ;; 13394 13395 cygwin* | mingw* | pw32* | cegcc*) 13396 case $GXX,$cc_basename in 13397 ,cl* | no,cl*) 13398 # Native MSVC 13399 # hardcode_libdir_flag_spec is actually meaningless, as there is 13400 # no search path for DLLs. 13401 hardcode_libdir_flag_spec_CXX=' ' 13402 allow_undefined_flag_CXX=unsupported 13403 always_export_symbols_CXX=yes 13404 file_list_spec_CXX='@' 13405 # Tell ltmain to make .lib files, not .a files. 13406 libext=lib 13407 # Tell ltmain to make .dll files, not .so files. 13408 shrext_cmds=.dll 13409 # FIXME: Setting linknames here is a bad hack. 13410 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 13411 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13412 cp "$export_symbols" "$output_objdir/$soname.def"; 13413 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 13414 else 13415 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 13416 fi~ 13417 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13418 linknames=' 13419 # The linker will not automatically build a static lib if we build a DLL. 13420 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 13421 enable_shared_with_static_runtimes_CXX=yes 13422 # Don't use ranlib 13423 old_postinstall_cmds_CXX='chmod 644 $oldlib' 13424 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 13425 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13426 case $lt_outputfile in 13427 *.exe|*.EXE) ;; 13428 *) 13429 lt_outputfile=$lt_outputfile.exe 13430 lt_tool_outputfile=$lt_tool_outputfile.exe 13431 ;; 13432 esac~ 13433 func_to_tool_file "$lt_outputfile"~ 13434 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 13435 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13436 $RM "$lt_outputfile.manifest"; 13437 fi' 13438 ;; 13439 *) 13440 # g++ 13441 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13442 # as there is no search path for DLLs. 13443 hardcode_libdir_flag_spec_CXX='-L$libdir' 13444 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 13445 allow_undefined_flag_CXX=unsupported 13446 always_export_symbols_CXX=no 13447 enable_shared_with_static_runtimes_CXX=yes 13448 13449 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13450 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' 13451 # If the export-symbols file already is a .def file, use it as 13452 # is; otherwise, prepend EXPORTS... 13453 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13454 cp $export_symbols $output_objdir/$soname.def; 13455 else 13456 echo EXPORTS > $output_objdir/$soname.def; 13457 cat $export_symbols >> $output_objdir/$soname.def; 13458 fi~ 13459 $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' 13460 else 13461 ld_shlibs_CXX=no 13462 fi 13463 ;; 13464 esac 13465 ;; 13466 darwin* | rhapsody*) 13467 13468 13469 archive_cmds_need_lc_CXX=no 13470 hardcode_direct_CXX=no 13471 hardcode_automatic_CXX=yes 13472 hardcode_shlibpath_var_CXX=unsupported 13473 if test yes = "$lt_cv_ld_force_load"; then 13474 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\"`' 13475 13476 else 13477 whole_archive_flag_spec_CXX='' 13478 fi 13479 link_all_deplibs_CXX=yes 13480 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 13481 case $cc_basename in 13482 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 13483 *) _lt_dar_can_shared=$GCC ;; 13484 esac 13485 if test yes = "$_lt_dar_can_shared"; then 13486 output_verbose_link_cmd=func_echo_all 13487 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" 13488 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 13489 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" 13490 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" 13491 if test yes != "$lt_cv_apple_cc_single_mod"; then 13492 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" 13493 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" 13494 fi 13495 13496 else 13497 ld_shlibs_CXX=no 13498 fi 13499 13500 ;; 13501 13502 os2*) 13503 hardcode_libdir_flag_spec_CXX='-L$libdir' 13504 hardcode_minus_L_CXX=yes 13505 allow_undefined_flag_CXX=unsupported 13506 shrext_cmds=.dll 13507 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13508 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13509 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13510 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13511 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13512 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13513 emximp -o $lib $output_objdir/$libname.def' 13514 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13515 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13516 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13517 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13518 prefix_cmds="$SED"~ 13519 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13520 prefix_cmds="$prefix_cmds -e 1d"; 13521 fi~ 13522 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13523 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13524 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13525 emximp -o $lib $output_objdir/$libname.def' 13526 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13527 enable_shared_with_static_runtimes_CXX=yes 13528 ;; 13529 13530 dgux*) 13531 case $cc_basename in 13532 ec++*) 13533 # FIXME: insert proper C++ library support 13534 ld_shlibs_CXX=no 13535 ;; 13536 ghcx*) 13537 # Green Hills C++ Compiler 13538 # FIXME: insert proper C++ library support 13539 ld_shlibs_CXX=no 13540 ;; 13541 *) 13542 # FIXME: insert proper C++ library support 13543 ld_shlibs_CXX=no 13544 ;; 13545 esac 13546 ;; 13547 13548 freebsd2.*) 13549 # C++ shared libraries reported to be fairly broken before 13550 # switch to ELF 13551 ld_shlibs_CXX=no 13552 ;; 13553 13554 freebsd-elf*) 13555 archive_cmds_need_lc_CXX=no 13556 ;; 13557 13558 freebsd* | dragonfly*) 13559 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13560 # conventions 13561 ld_shlibs_CXX=yes 13562 ;; 13563 13564 haiku*) 13565 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13566 link_all_deplibs_CXX=yes 13567 ;; 13568 13569 hpux9*) 13570 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13571 hardcode_libdir_separator_CXX=: 13572 export_dynamic_flag_spec_CXX='$wl-E' 13573 hardcode_direct_CXX=yes 13574 hardcode_minus_L_CXX=yes # Not in the search PATH, 13575 # but as the default 13576 # location of the library. 13577 13578 case $cc_basename in 13579 CC*) 13580 # FIXME: insert proper C++ library support 13581 ld_shlibs_CXX=no 13582 ;; 13583 aCC*) 13584 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' 13585 # Commands to make compiler produce verbose output that lists 13586 # what "hidden" libraries, object files and flags are used when 13587 # linking a shared library. 13588 # 13589 # There doesn't appear to be a way to prevent this compiler from 13590 # explicitly linking system object files so we need to strip them 13591 # from the output so that they don't get included in the library 13592 # dependencies. 13593 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"' 13594 ;; 13595 *) 13596 if test yes = "$GXX"; then 13597 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' 13598 else 13599 # FIXME: insert proper C++ library support 13600 ld_shlibs_CXX=no 13601 fi 13602 ;; 13603 esac 13604 ;; 13605 13606 hpux10*|hpux11*) 13607 if test no = "$with_gnu_ld"; then 13608 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13609 hardcode_libdir_separator_CXX=: 13610 13611 case $host_cpu in 13612 hppa*64*|ia64*) 13613 ;; 13614 *) 13615 export_dynamic_flag_spec_CXX='$wl-E' 13616 ;; 13617 esac 13618 fi 13619 case $host_cpu in 13620 hppa*64*|ia64*) 13621 hardcode_direct_CXX=no 13622 hardcode_shlibpath_var_CXX=no 13623 ;; 13624 *) 13625 hardcode_direct_CXX=yes 13626 hardcode_direct_absolute_CXX=yes 13627 hardcode_minus_L_CXX=yes # Not in the search PATH, 13628 # but as the default 13629 # location of the library. 13630 ;; 13631 esac 13632 13633 case $cc_basename in 13634 CC*) 13635 # FIXME: insert proper C++ library support 13636 ld_shlibs_CXX=no 13637 ;; 13638 aCC*) 13639 case $host_cpu in 13640 hppa*64*) 13641 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13642 ;; 13643 ia64*) 13644 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13645 ;; 13646 *) 13647 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13648 ;; 13649 esac 13650 # Commands to make compiler produce verbose output that lists 13651 # what "hidden" libraries, object files and flags are used when 13652 # linking a shared library. 13653 # 13654 # There doesn't appear to be a way to prevent this compiler from 13655 # explicitly linking system object files so we need to strip them 13656 # from the output so that they don't get included in the library 13657 # dependencies. 13658 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"' 13659 ;; 13660 *) 13661 if test yes = "$GXX"; then 13662 if test no = "$with_gnu_ld"; then 13663 case $host_cpu in 13664 hppa*64*) 13665 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13666 ;; 13667 ia64*) 13668 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13669 ;; 13670 *) 13671 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' 13672 ;; 13673 esac 13674 fi 13675 else 13676 # FIXME: insert proper C++ library support 13677 ld_shlibs_CXX=no 13678 fi 13679 ;; 13680 esac 13681 ;; 13682 13683 interix[3-9]*) 13684 hardcode_direct_CXX=no 13685 hardcode_shlibpath_var_CXX=no 13686 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13687 export_dynamic_flag_spec_CXX='$wl-E' 13688 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13689 # Instead, shared libraries are loaded at an image base (0x10000000 by 13690 # default) and relocated if they conflict, which is a slow very memory 13691 # consuming and fragmenting process. To avoid this, we pick a random, 13692 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13693 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13694 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' 13695 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' 13696 ;; 13697 irix5* | irix6*) 13698 case $cc_basename in 13699 CC*) 13700 # SGI C++ 13701 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' 13702 13703 # Archives containing C++ object files must be created using 13704 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13705 # necessary to make sure instantiated templates are included 13706 # in the archive. 13707 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13708 ;; 13709 *) 13710 if test yes = "$GXX"; then 13711 if test no = "$with_gnu_ld"; then 13712 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' 13713 else 13714 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' 13715 fi 13716 fi 13717 link_all_deplibs_CXX=yes 13718 ;; 13719 esac 13720 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13721 hardcode_libdir_separator_CXX=: 13722 inherit_rpath_CXX=yes 13723 ;; 13724 13725 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13726 case $cc_basename in 13727 KCC*) 13728 # Kuck and Associates, Inc. (KAI) C++ Compiler 13729 13730 # KCC will only create a shared library if the output file 13731 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13732 # to its proper name (with version) after linking. 13733 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' 13734 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' 13735 # Commands to make compiler produce verbose output that lists 13736 # what "hidden" libraries, object files and flags are used when 13737 # linking a shared library. 13738 # 13739 # There doesn't appear to be a way to prevent this compiler from 13740 # explicitly linking system object files so we need to strip them 13741 # from the output so that they don't get included in the library 13742 # dependencies. 13743 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"' 13744 13745 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13746 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13747 13748 # Archives containing C++ object files must be created using 13749 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13750 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13751 ;; 13752 icpc* | ecpc* ) 13753 # Intel C++ 13754 with_gnu_ld=yes 13755 # version 8.0 and above of icpc choke on multiply defined symbols 13756 # if we add $predep_objects and $postdep_objects, however 7.1 and 13757 # earlier do not add the objects themselves. 13758 case `$CC -V 2>&1` in 13759 *"Version 7."*) 13760 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13761 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' 13762 ;; 13763 *) # Version 8.0 or newer 13764 tmp_idyn= 13765 case $host_cpu in 13766 ia64*) tmp_idyn=' -i_dynamic';; 13767 esac 13768 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13769 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' 13770 ;; 13771 esac 13772 archive_cmds_need_lc_CXX=no 13773 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13774 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13775 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 13776 ;; 13777 pgCC* | pgcpp*) 13778 # Portland Group C++ compiler 13779 case `$CC -V` in 13780 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 13781 prelink_cmds_CXX='tpldir=Template.dir~ 13782 rm -rf $tpldir~ 13783 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13784 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 13785 old_archive_cmds_CXX='tpldir=Template.dir~ 13786 rm -rf $tpldir~ 13787 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13788 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 13789 $RANLIB $oldlib' 13790 archive_cmds_CXX='tpldir=Template.dir~ 13791 rm -rf $tpldir~ 13792 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13793 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13794 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13795 rm -rf $tpldir~ 13796 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13797 $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' 13798 ;; 13799 *) # Version 6 and above use weak symbols 13800 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13801 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' 13802 ;; 13803 esac 13804 13805 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 13806 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13807 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' 13808 ;; 13809 cxx*) 13810 # Compaq C++ 13811 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13812 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' 13813 13814 runpath_var=LD_RUN_PATH 13815 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13816 hardcode_libdir_separator_CXX=: 13817 13818 # Commands to make compiler produce verbose output that lists 13819 # what "hidden" libraries, object files and flags are used when 13820 # linking a shared library. 13821 # 13822 # There doesn't appear to be a way to prevent this compiler from 13823 # explicitly linking system object files so we need to strip them 13824 # from the output so that they don't get included in the library 13825 # dependencies. 13826 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' 13827 ;; 13828 xl* | mpixl* | bgxl*) 13829 # IBM XL 8.0 on PPC, with GNU ld 13830 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13831 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13832 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13833 if test yes = "$supports_anon_versioning"; then 13834 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13835 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13836 echo "local: *; };" >> $output_objdir/$libname.ver~ 13837 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 13838 fi 13839 ;; 13840 *) 13841 case `$CC -V 2>&1 | sed 5q` in 13842 *Sun\ C*) 13843 # Sun C++ 5.9 13844 no_undefined_flag_CXX=' -zdefs' 13845 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13846 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' 13847 hardcode_libdir_flag_spec_CXX='-R$libdir' 13848 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' 13849 compiler_needs_object_CXX=yes 13850 13851 # Not sure whether something based on 13852 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13853 # would be better. 13854 output_verbose_link_cmd='func_echo_all' 13855 13856 # Archives containing C++ object files must be created using 13857 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13858 # necessary to make sure instantiated templates are included 13859 # in the archive. 13860 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13861 ;; 13862 esac 13863 ;; 13864 esac 13865 ;; 13866 13867 lynxos*) 13868 # FIXME: insert proper C++ library support 13869 ld_shlibs_CXX=no 13870 ;; 13871 13872 m88k*) 13873 # FIXME: insert proper C++ library support 13874 ld_shlibs_CXX=no 13875 ;; 13876 13877 mvs*) 13878 case $cc_basename in 13879 cxx*) 13880 # FIXME: insert proper C++ library support 13881 ld_shlibs_CXX=no 13882 ;; 13883 *) 13884 # FIXME: insert proper C++ library support 13885 ld_shlibs_CXX=no 13886 ;; 13887 esac 13888 ;; 13889 13890 netbsd*) 13891 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13892 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13893 wlarc= 13894 hardcode_libdir_flag_spec_CXX='-R$libdir' 13895 hardcode_direct_CXX=yes 13896 hardcode_shlibpath_var_CXX=no 13897 fi 13898 # Workaround some broken pre-1.5 toolchains 13899 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13900 ;; 13901 13902 *nto* | *qnx*) 13903 ld_shlibs_CXX=yes 13904 ;; 13905 13906 openbsd* | bitrig*) 13907 if test -f /usr/libexec/ld.so; then 13908 hardcode_direct_CXX=yes 13909 hardcode_shlibpath_var_CXX=no 13910 hardcode_direct_absolute_CXX=yes 13911 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13912 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13913 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 13914 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 13915 export_dynamic_flag_spec_CXX='$wl-E' 13916 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13917 fi 13918 output_verbose_link_cmd=func_echo_all 13919 else 13920 ld_shlibs_CXX=no 13921 fi 13922 ;; 13923 13924 osf3* | osf4* | osf5*) 13925 case $cc_basename in 13926 KCC*) 13927 # Kuck and Associates, Inc. (KAI) C++ Compiler 13928 13929 # KCC will only create a shared library if the output file 13930 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13931 # to its proper name (with version) after linking. 13932 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' 13933 13934 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13935 hardcode_libdir_separator_CXX=: 13936 13937 # Archives containing C++ object files must be created using 13938 # the KAI C++ compiler. 13939 case $host in 13940 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13941 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13942 esac 13943 ;; 13944 RCC*) 13945 # Rational C++ 2.4.1 13946 # FIXME: insert proper C++ library support 13947 ld_shlibs_CXX=no 13948 ;; 13949 cxx*) 13950 case $host in 13951 osf3*) 13952 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 13953 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' 13954 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13955 ;; 13956 *) 13957 allow_undefined_flag_CXX=' -expect_unresolved \*' 13958 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' 13959 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13960 echo "-hidden">> $lib.exp~ 13961 $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~ 13962 $RM $lib.exp' 13963 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13964 ;; 13965 esac 13966 13967 hardcode_libdir_separator_CXX=: 13968 13969 # Commands to make compiler produce verbose output that lists 13970 # what "hidden" libraries, object files and flags are used when 13971 # linking a shared library. 13972 # 13973 # There doesn't appear to be a way to prevent this compiler from 13974 # explicitly linking system object files so we need to strip them 13975 # from the output so that they don't get included in the library 13976 # dependencies. 13977 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"' 13978 ;; 13979 *) 13980 if test yes,no = "$GXX,$with_gnu_ld"; then 13981 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 13982 case $host in 13983 osf3*) 13984 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' 13985 ;; 13986 *) 13987 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' 13988 ;; 13989 esac 13990 13991 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13992 hardcode_libdir_separator_CXX=: 13993 13994 # Commands to make compiler produce verbose output that lists 13995 # what "hidden" libraries, object files and flags are used when 13996 # linking a shared library. 13997 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13998 13999 else 14000 # FIXME: insert proper C++ library support 14001 ld_shlibs_CXX=no 14002 fi 14003 ;; 14004 esac 14005 ;; 14006 14007 psos*) 14008 # FIXME: insert proper C++ library support 14009 ld_shlibs_CXX=no 14010 ;; 14011 14012 sunos4*) 14013 case $cc_basename in 14014 CC*) 14015 # Sun C++ 4.x 14016 # FIXME: insert proper C++ library support 14017 ld_shlibs_CXX=no 14018 ;; 14019 lcc*) 14020 # Lucid 14021 # FIXME: insert proper C++ library support 14022 ld_shlibs_CXX=no 14023 ;; 14024 *) 14025 # FIXME: insert proper C++ library support 14026 ld_shlibs_CXX=no 14027 ;; 14028 esac 14029 ;; 14030 14031 solaris*) 14032 case $cc_basename in 14033 CC* | sunCC*) 14034 # Sun C++ 4.2, 5.x and Centerline C++ 14035 archive_cmds_need_lc_CXX=yes 14036 no_undefined_flag_CXX=' -zdefs' 14037 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14038 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14039 $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' 14040 14041 hardcode_libdir_flag_spec_CXX='-R$libdir' 14042 hardcode_shlibpath_var_CXX=no 14043 case $host_os in 14044 solaris2.[0-5] | solaris2.[0-5].*) ;; 14045 *) 14046 # The compiler driver will combine and reorder linker options, 14047 # but understands '-z linker_flag'. 14048 # Supported since Solaris 2.6 (maybe 2.5.1?) 14049 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 14050 ;; 14051 esac 14052 link_all_deplibs_CXX=yes 14053 14054 output_verbose_link_cmd='func_echo_all' 14055 14056 # Archives containing C++ object files must be created using 14057 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14058 # necessary to make sure instantiated templates are included 14059 # in the archive. 14060 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14061 ;; 14062 gcx*) 14063 # Green Hills C++ Compiler 14064 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14065 14066 # The C++ compiler must be used to create the archive. 14067 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14068 ;; 14069 *) 14070 # GNU C++ compiler with Solaris linker 14071 if test yes,no = "$GXX,$with_gnu_ld"; then 14072 no_undefined_flag_CXX=' $wl-z ${wl}defs' 14073 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14074 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14075 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14076 $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' 14077 14078 # Commands to make compiler produce verbose output that lists 14079 # what "hidden" libraries, object files and flags are used when 14080 # linking a shared library. 14081 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14082 else 14083 # g++ 2.7 appears to require '-G' NOT '-shared' on this 14084 # platform. 14085 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14086 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14087 $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' 14088 14089 # Commands to make compiler produce verbose output that lists 14090 # what "hidden" libraries, object files and flags are used when 14091 # linking a shared library. 14092 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14093 fi 14094 14095 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 14096 case $host_os in 14097 solaris2.[0-5] | solaris2.[0-5].*) ;; 14098 *) 14099 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 14100 ;; 14101 esac 14102 fi 14103 ;; 14104 esac 14105 ;; 14106 14107 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14108 no_undefined_flag_CXX='$wl-z,text' 14109 archive_cmds_need_lc_CXX=no 14110 hardcode_shlibpath_var_CXX=no 14111 runpath_var='LD_RUN_PATH' 14112 14113 case $cc_basename in 14114 CC*) 14115 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14116 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14117 ;; 14118 *) 14119 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14120 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14121 ;; 14122 esac 14123 ;; 14124 14125 sysv5* | sco3.2v5* | sco5v6*) 14126 # Note: We CANNOT use -z defs as we might desire, because we do not 14127 # link with -lc, and that would cause any symbols used from libc to 14128 # always be unresolved, which means just about no library would 14129 # ever link correctly. If we're not using GNU ld we use -z text 14130 # though, which does catch some bad symbols but isn't as heavy-handed 14131 # as -z defs. 14132 no_undefined_flag_CXX='$wl-z,text' 14133 allow_undefined_flag_CXX='$wl-z,nodefs' 14134 archive_cmds_need_lc_CXX=no 14135 hardcode_shlibpath_var_CXX=no 14136 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 14137 hardcode_libdir_separator_CXX=':' 14138 link_all_deplibs_CXX=yes 14139 export_dynamic_flag_spec_CXX='$wl-Bexport' 14140 runpath_var='LD_RUN_PATH' 14141 14142 case $cc_basename in 14143 CC*) 14144 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14145 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14146 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14147 '"$old_archive_cmds_CXX" 14148 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14149 '"$reload_cmds_CXX" 14150 ;; 14151 *) 14152 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14153 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14154 ;; 14155 esac 14156 ;; 14157 14158 tandem*) 14159 case $cc_basename in 14160 NCC*) 14161 # NonStop-UX NCC 3.20 14162 # FIXME: insert proper C++ library support 14163 ld_shlibs_CXX=no 14164 ;; 14165 *) 14166 # FIXME: insert proper C++ library support 14167 ld_shlibs_CXX=no 14168 ;; 14169 esac 14170 ;; 14171 14172 vxworks*) 14173 # FIXME: insert proper C++ library support 14174 ld_shlibs_CXX=no 14175 ;; 14176 14177 *) 14178 # FIXME: insert proper C++ library support 14179 ld_shlibs_CXX=no 14180 ;; 14181 esac 14182 14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14184$as_echo "$ld_shlibs_CXX" >&6; } 14185 test no = "$ld_shlibs_CXX" && can_build_shared=no 14186 14187 GCC_CXX=$GXX 14188 LD_CXX=$LD 14189 14190 ## CAVEAT EMPTOR: 14191 ## There is no encapsulation within the following macros, do not change 14192 ## the running order or otherwise move them around unless you know exactly 14193 ## what you are doing... 14194 # Dependencies to place before and after the object being linked: 14195predep_objects_CXX= 14196postdep_objects_CXX= 14197predeps_CXX= 14198postdeps_CXX= 14199compiler_lib_search_path_CXX= 14200 14201cat > conftest.$ac_ext <<_LT_EOF 14202class Foo 14203{ 14204public: 14205 Foo (void) { a = 0; } 14206private: 14207 int a; 14208}; 14209_LT_EOF 14210 14211 14212_lt_libdeps_save_CFLAGS=$CFLAGS 14213case "$CC $CFLAGS " in #( 14214*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14215*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14216*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 14217esac 14218 14219if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14220 (eval $ac_compile) 2>&5 14221 ac_status=$? 14222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14223 test $ac_status = 0; }; then 14224 # Parse the compiler output and extract the necessary 14225 # objects, libraries and library flags. 14226 14227 # Sentinel used to keep track of whether or not we are before 14228 # the conftest object file. 14229 pre_test_object_deps_done=no 14230 14231 for p in `eval "$output_verbose_link_cmd"`; do 14232 case $prev$p in 14233 14234 -L* | -R* | -l*) 14235 # Some compilers place space between "-{L,R}" and the path. 14236 # Remove the space. 14237 if test x-L = "$p" || 14238 test x-R = "$p"; then 14239 prev=$p 14240 continue 14241 fi 14242 14243 # Expand the sysroot to ease extracting the directories later. 14244 if test -z "$prev"; then 14245 case $p in 14246 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14247 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14248 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14249 esac 14250 fi 14251 case $p in 14252 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14253 esac 14254 if test no = "$pre_test_object_deps_done"; then 14255 case $prev in 14256 -L | -R) 14257 # Internal compiler library paths should come after those 14258 # provided the user. The postdeps already come after the 14259 # user supplied libs so there is no need to process them. 14260 if test -z "$compiler_lib_search_path_CXX"; then 14261 compiler_lib_search_path_CXX=$prev$p 14262 else 14263 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 14264 fi 14265 ;; 14266 # The "-l" case would never come before the object being 14267 # linked, so don't bother handling this case. 14268 esac 14269 else 14270 if test -z "$postdeps_CXX"; then 14271 postdeps_CXX=$prev$p 14272 else 14273 postdeps_CXX="${postdeps_CXX} $prev$p" 14274 fi 14275 fi 14276 prev= 14277 ;; 14278 14279 *.lto.$objext) ;; # Ignore GCC LTO objects 14280 *.$objext) 14281 # This assumes that the test object file only shows up 14282 # once in the compiler output. 14283 if test "$p" = "conftest.$objext"; then 14284 pre_test_object_deps_done=yes 14285 continue 14286 fi 14287 14288 if test no = "$pre_test_object_deps_done"; then 14289 if test -z "$predep_objects_CXX"; then 14290 predep_objects_CXX=$p 14291 else 14292 predep_objects_CXX="$predep_objects_CXX $p" 14293 fi 14294 else 14295 if test -z "$postdep_objects_CXX"; then 14296 postdep_objects_CXX=$p 14297 else 14298 postdep_objects_CXX="$postdep_objects_CXX $p" 14299 fi 14300 fi 14301 ;; 14302 14303 *) ;; # Ignore the rest. 14304 14305 esac 14306 done 14307 14308 # Clean up. 14309 rm -f a.out a.exe 14310else 14311 echo "libtool.m4: error: problem compiling CXX test program" 14312fi 14313 14314$RM -f confest.$objext 14315CFLAGS=$_lt_libdeps_save_CFLAGS 14316 14317# PORTME: override above test on systems where it is broken 14318case $host_os in 14319interix[3-9]*) 14320 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14321 # hack all around it, let's just trust "g++" to DTRT. 14322 predep_objects_CXX= 14323 postdep_objects_CXX= 14324 postdeps_CXX= 14325 ;; 14326esac 14327 14328 14329case " $postdeps_CXX " in 14330*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14331esac 14332 compiler_lib_search_dirs_CXX= 14333if test -n "${compiler_lib_search_path_CXX}"; then 14334 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 14335fi 14336 14337 14338 14339 14340 14341 14342 14343 14344 14345 14346 14347 14348 14349 14350 14351 14352 14353 14354 14355 14356 14357 14358 14359 14360 14361 14362 14363 14364 14365 14366 14367 lt_prog_compiler_wl_CXX= 14368lt_prog_compiler_pic_CXX= 14369lt_prog_compiler_static_CXX= 14370 14371 14372 # C++ specific cases for pic, static, wl, etc. 14373 if test yes = "$GXX"; then 14374 lt_prog_compiler_wl_CXX='-Wl,' 14375 lt_prog_compiler_static_CXX='-static' 14376 14377 case $host_os in 14378 aix*) 14379 # All AIX code is PIC. 14380 if test ia64 = "$host_cpu"; then 14381 # AIX 5 now supports IA64 processor 14382 lt_prog_compiler_static_CXX='-Bstatic' 14383 fi 14384 lt_prog_compiler_pic_CXX='-fPIC' 14385 ;; 14386 14387 amigaos*) 14388 case $host_cpu in 14389 powerpc) 14390 # see comment about AmigaOS4 .so support 14391 lt_prog_compiler_pic_CXX='-fPIC' 14392 ;; 14393 m68k) 14394 # FIXME: we need at least 68020 code to build shared libraries, but 14395 # adding the '-m68020' flag to GCC prevents building anything better, 14396 # like '-m68040'. 14397 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14398 ;; 14399 esac 14400 ;; 14401 14402 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14403 # PIC is the default for these OSes. 14404 ;; 14405 mingw* | cygwin* | os2* | pw32* | cegcc*) 14406 # This hack is so that the source file can tell whether it is being 14407 # built for inclusion in a dll (and should export symbols for example). 14408 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14409 # (--disable-auto-import) libraries 14410 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14411 case $host_os in 14412 os2*) 14413 lt_prog_compiler_static_CXX='$wl-static' 14414 ;; 14415 esac 14416 ;; 14417 darwin* | rhapsody*) 14418 # PIC is the default on this platform 14419 # Common symbols not allowed in MH_DYLIB files 14420 lt_prog_compiler_pic_CXX='-fno-common' 14421 ;; 14422 *djgpp*) 14423 # DJGPP does not support shared libraries at all 14424 lt_prog_compiler_pic_CXX= 14425 ;; 14426 haiku*) 14427 # PIC is the default for Haiku. 14428 # The "-static" flag exists, but is broken. 14429 lt_prog_compiler_static_CXX= 14430 ;; 14431 interix[3-9]*) 14432 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14433 # Instead, we relocate shared libraries at runtime. 14434 ;; 14435 sysv4*MP*) 14436 if test -d /usr/nec; then 14437 lt_prog_compiler_pic_CXX=-Kconform_pic 14438 fi 14439 ;; 14440 hpux*) 14441 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14442 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14443 # sets the default TLS model and affects inlining. 14444 case $host_cpu in 14445 hppa*64*) 14446 ;; 14447 *) 14448 lt_prog_compiler_pic_CXX='-fPIC' 14449 ;; 14450 esac 14451 ;; 14452 *qnx* | *nto*) 14453 # QNX uses GNU C++, but need to define -shared option too, otherwise 14454 # it will coredump. 14455 lt_prog_compiler_pic_CXX='-fPIC -shared' 14456 ;; 14457 *) 14458 lt_prog_compiler_pic_CXX='-fPIC' 14459 ;; 14460 esac 14461 else 14462 case $host_os in 14463 aix[4-9]*) 14464 # All AIX code is PIC. 14465 if test ia64 = "$host_cpu"; then 14466 # AIX 5 now supports IA64 processor 14467 lt_prog_compiler_static_CXX='-Bstatic' 14468 else 14469 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14470 fi 14471 ;; 14472 chorus*) 14473 case $cc_basename in 14474 cxch68*) 14475 # Green Hills C++ Compiler 14476 # _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" 14477 ;; 14478 esac 14479 ;; 14480 mingw* | cygwin* | os2* | pw32* | cegcc*) 14481 # This hack is so that the source file can tell whether it is being 14482 # built for inclusion in a dll (and should export symbols for example). 14483 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14484 ;; 14485 dgux*) 14486 case $cc_basename in 14487 ec++*) 14488 lt_prog_compiler_pic_CXX='-KPIC' 14489 ;; 14490 ghcx*) 14491 # Green Hills C++ Compiler 14492 lt_prog_compiler_pic_CXX='-pic' 14493 ;; 14494 *) 14495 ;; 14496 esac 14497 ;; 14498 freebsd* | dragonfly*) 14499 # FreeBSD uses GNU C++ 14500 ;; 14501 hpux9* | hpux10* | hpux11*) 14502 case $cc_basename in 14503 CC*) 14504 lt_prog_compiler_wl_CXX='-Wl,' 14505 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14506 if test ia64 != "$host_cpu"; then 14507 lt_prog_compiler_pic_CXX='+Z' 14508 fi 14509 ;; 14510 aCC*) 14511 lt_prog_compiler_wl_CXX='-Wl,' 14512 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14513 case $host_cpu in 14514 hppa*64*|ia64*) 14515 # +Z the default 14516 ;; 14517 *) 14518 lt_prog_compiler_pic_CXX='+Z' 14519 ;; 14520 esac 14521 ;; 14522 *) 14523 ;; 14524 esac 14525 ;; 14526 interix*) 14527 # This is c89, which is MS Visual C++ (no shared libs) 14528 # Anyone wants to do a port? 14529 ;; 14530 irix5* | irix6* | nonstopux*) 14531 case $cc_basename in 14532 CC*) 14533 lt_prog_compiler_wl_CXX='-Wl,' 14534 lt_prog_compiler_static_CXX='-non_shared' 14535 # CC pic flag -KPIC is the default. 14536 ;; 14537 *) 14538 ;; 14539 esac 14540 ;; 14541 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14542 case $cc_basename in 14543 KCC*) 14544 # KAI C++ Compiler 14545 lt_prog_compiler_wl_CXX='--backend -Wl,' 14546 lt_prog_compiler_pic_CXX='-fPIC' 14547 ;; 14548 ecpc* ) 14549 # old Intel C++ for x86_64, which still supported -KPIC. 14550 lt_prog_compiler_wl_CXX='-Wl,' 14551 lt_prog_compiler_pic_CXX='-KPIC' 14552 lt_prog_compiler_static_CXX='-static' 14553 ;; 14554 icpc* ) 14555 # Intel C++, used to be incompatible with GCC. 14556 # ICC 10 doesn't accept -KPIC any more. 14557 lt_prog_compiler_wl_CXX='-Wl,' 14558 lt_prog_compiler_pic_CXX='-fPIC' 14559 lt_prog_compiler_static_CXX='-static' 14560 ;; 14561 pgCC* | pgcpp*) 14562 # Portland Group C++ compiler 14563 lt_prog_compiler_wl_CXX='-Wl,' 14564 lt_prog_compiler_pic_CXX='-fpic' 14565 lt_prog_compiler_static_CXX='-Bstatic' 14566 ;; 14567 cxx*) 14568 # Compaq C++ 14569 # Make sure the PIC flag is empty. It appears that all Alpha 14570 # Linux and Compaq Tru64 Unix objects are PIC. 14571 lt_prog_compiler_pic_CXX= 14572 lt_prog_compiler_static_CXX='-non_shared' 14573 ;; 14574 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14575 # IBM XL 8.0, 9.0 on PPC and BlueGene 14576 lt_prog_compiler_wl_CXX='-Wl,' 14577 lt_prog_compiler_pic_CXX='-qpic' 14578 lt_prog_compiler_static_CXX='-qstaticlink' 14579 ;; 14580 *) 14581 case `$CC -V 2>&1 | sed 5q` in 14582 *Sun\ C*) 14583 # Sun C++ 5.9 14584 lt_prog_compiler_pic_CXX='-KPIC' 14585 lt_prog_compiler_static_CXX='-Bstatic' 14586 lt_prog_compiler_wl_CXX='-Qoption ld ' 14587 ;; 14588 esac 14589 ;; 14590 esac 14591 ;; 14592 lynxos*) 14593 ;; 14594 m88k*) 14595 ;; 14596 mvs*) 14597 case $cc_basename in 14598 cxx*) 14599 lt_prog_compiler_pic_CXX='-W c,exportall' 14600 ;; 14601 *) 14602 ;; 14603 esac 14604 ;; 14605 netbsd* | netbsdelf*-gnu) 14606 ;; 14607 *qnx* | *nto*) 14608 # QNX uses GNU C++, but need to define -shared option too, otherwise 14609 # it will coredump. 14610 lt_prog_compiler_pic_CXX='-fPIC -shared' 14611 ;; 14612 osf3* | osf4* | osf5*) 14613 case $cc_basename in 14614 KCC*) 14615 lt_prog_compiler_wl_CXX='--backend -Wl,' 14616 ;; 14617 RCC*) 14618 # Rational C++ 2.4.1 14619 lt_prog_compiler_pic_CXX='-pic' 14620 ;; 14621 cxx*) 14622 # Digital/Compaq C++ 14623 lt_prog_compiler_wl_CXX='-Wl,' 14624 # Make sure the PIC flag is empty. It appears that all Alpha 14625 # Linux and Compaq Tru64 Unix objects are PIC. 14626 lt_prog_compiler_pic_CXX= 14627 lt_prog_compiler_static_CXX='-non_shared' 14628 ;; 14629 *) 14630 ;; 14631 esac 14632 ;; 14633 psos*) 14634 ;; 14635 solaris*) 14636 case $cc_basename in 14637 CC* | sunCC*) 14638 # Sun C++ 4.2, 5.x and Centerline C++ 14639 lt_prog_compiler_pic_CXX='-KPIC' 14640 lt_prog_compiler_static_CXX='-Bstatic' 14641 lt_prog_compiler_wl_CXX='-Qoption ld ' 14642 ;; 14643 gcx*) 14644 # Green Hills C++ Compiler 14645 lt_prog_compiler_pic_CXX='-PIC' 14646 ;; 14647 *) 14648 ;; 14649 esac 14650 ;; 14651 sunos4*) 14652 case $cc_basename in 14653 CC*) 14654 # Sun C++ 4.x 14655 lt_prog_compiler_pic_CXX='-pic' 14656 lt_prog_compiler_static_CXX='-Bstatic' 14657 ;; 14658 lcc*) 14659 # Lucid 14660 lt_prog_compiler_pic_CXX='-pic' 14661 ;; 14662 *) 14663 ;; 14664 esac 14665 ;; 14666 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14667 case $cc_basename in 14668 CC*) 14669 lt_prog_compiler_wl_CXX='-Wl,' 14670 lt_prog_compiler_pic_CXX='-KPIC' 14671 lt_prog_compiler_static_CXX='-Bstatic' 14672 ;; 14673 esac 14674 ;; 14675 tandem*) 14676 case $cc_basename in 14677 NCC*) 14678 # NonStop-UX NCC 3.20 14679 lt_prog_compiler_pic_CXX='-KPIC' 14680 ;; 14681 *) 14682 ;; 14683 esac 14684 ;; 14685 vxworks*) 14686 ;; 14687 *) 14688 lt_prog_compiler_can_build_shared_CXX=no 14689 ;; 14690 esac 14691 fi 14692 14693case $host_os in 14694 # For platforms that do not support PIC, -DPIC is meaningless: 14695 *djgpp*) 14696 lt_prog_compiler_pic_CXX= 14697 ;; 14698 *) 14699 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14700 ;; 14701esac 14702 14703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14704$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14705if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 14706 $as_echo_n "(cached) " >&6 14707else 14708 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 14709fi 14710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 14711$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 14712lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 14713 14714# 14715# Check to make sure the PIC flag actually works. 14716# 14717if test -n "$lt_prog_compiler_pic_CXX"; then 14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14719$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14720if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 14721 $as_echo_n "(cached) " >&6 14722else 14723 lt_cv_prog_compiler_pic_works_CXX=no 14724 ac_outfile=conftest.$ac_objext 14725 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14726 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 14727 # Insert the option either (1) after the last *FLAGS variable, or 14728 # (2) before a word containing "conftest.", or (3) at the end. 14729 # Note that $ac_compile itself does not contain backslashes and begins 14730 # with a dollar sign (not a hyphen), so the echo should work correctly. 14731 # The option is referenced via a variable to avoid confusing sed. 14732 lt_compile=`echo "$ac_compile" | $SED \ 14733 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14735 -e 's:$: $lt_compiler_flag:'` 14736 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14737 (eval "$lt_compile" 2>conftest.err) 14738 ac_status=$? 14739 cat conftest.err >&5 14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14741 if (exit $ac_status) && test -s "$ac_outfile"; then 14742 # The compiler can only warn and ignore the option if not recognized 14743 # So say no if there are warnings other than the usual output. 14744 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14745 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14746 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14747 lt_cv_prog_compiler_pic_works_CXX=yes 14748 fi 14749 fi 14750 $RM conftest* 14751 14752fi 14753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14754$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14755 14756if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 14757 case $lt_prog_compiler_pic_CXX in 14758 "" | " "*) ;; 14759 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14760 esac 14761else 14762 lt_prog_compiler_pic_CXX= 14763 lt_prog_compiler_can_build_shared_CXX=no 14764fi 14765 14766fi 14767 14768 14769 14770 14771 14772# 14773# Check to make sure the static flag actually works. 14774# 14775wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14777$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14778if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 14779 $as_echo_n "(cached) " >&6 14780else 14781 lt_cv_prog_compiler_static_works_CXX=no 14782 save_LDFLAGS=$LDFLAGS 14783 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14784 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14785 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14786 # The linker can only warn and ignore the option if not recognized 14787 # So say no if there are warnings 14788 if test -s conftest.err; then 14789 # Append any errors to the config.log. 14790 cat conftest.err 1>&5 14791 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14792 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14793 if diff conftest.exp conftest.er2 >/dev/null; then 14794 lt_cv_prog_compiler_static_works_CXX=yes 14795 fi 14796 else 14797 lt_cv_prog_compiler_static_works_CXX=yes 14798 fi 14799 fi 14800 $RM -r conftest* 14801 LDFLAGS=$save_LDFLAGS 14802 14803fi 14804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14805$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14806 14807if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 14808 : 14809else 14810 lt_prog_compiler_static_CXX= 14811fi 14812 14813 14814 14815 14816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14817$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14818if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14819 $as_echo_n "(cached) " >&6 14820else 14821 lt_cv_prog_compiler_c_o_CXX=no 14822 $RM -r conftest 2>/dev/null 14823 mkdir conftest 14824 cd conftest 14825 mkdir out 14826 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14827 14828 lt_compiler_flag="-o out/conftest2.$ac_objext" 14829 # Insert the option either (1) after the last *FLAGS variable, or 14830 # (2) before a word containing "conftest.", or (3) at the end. 14831 # Note that $ac_compile itself does not contain backslashes and begins 14832 # with a dollar sign (not a hyphen), so the echo should work correctly. 14833 lt_compile=`echo "$ac_compile" | $SED \ 14834 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14836 -e 's:$: $lt_compiler_flag:'` 14837 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14838 (eval "$lt_compile" 2>out/conftest.err) 14839 ac_status=$? 14840 cat out/conftest.err >&5 14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14842 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14843 then 14844 # The compiler can only warn and ignore the option if not recognized 14845 # So say no if there are warnings 14846 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14847 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14848 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14849 lt_cv_prog_compiler_c_o_CXX=yes 14850 fi 14851 fi 14852 chmod u+w . 2>&5 14853 $RM conftest* 14854 # SGI C++ compiler will create directory out/ii_files/ for 14855 # template instantiation 14856 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14857 $RM out/* && rmdir out 14858 cd .. 14859 $RM -r conftest 14860 $RM conftest* 14861 14862fi 14863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14864$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14865 14866 14867 14868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14869$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14870if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14871 $as_echo_n "(cached) " >&6 14872else 14873 lt_cv_prog_compiler_c_o_CXX=no 14874 $RM -r conftest 2>/dev/null 14875 mkdir conftest 14876 cd conftest 14877 mkdir out 14878 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14879 14880 lt_compiler_flag="-o out/conftest2.$ac_objext" 14881 # Insert the option either (1) after the last *FLAGS variable, or 14882 # (2) before a word containing "conftest.", or (3) at the end. 14883 # Note that $ac_compile itself does not contain backslashes and begins 14884 # with a dollar sign (not a hyphen), so the echo should work correctly. 14885 lt_compile=`echo "$ac_compile" | $SED \ 14886 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14887 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14888 -e 's:$: $lt_compiler_flag:'` 14889 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14890 (eval "$lt_compile" 2>out/conftest.err) 14891 ac_status=$? 14892 cat out/conftest.err >&5 14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14894 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14895 then 14896 # The compiler can only warn and ignore the option if not recognized 14897 # So say no if there are warnings 14898 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14899 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14900 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14901 lt_cv_prog_compiler_c_o_CXX=yes 14902 fi 14903 fi 14904 chmod u+w . 2>&5 14905 $RM conftest* 14906 # SGI C++ compiler will create directory out/ii_files/ for 14907 # template instantiation 14908 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14909 $RM out/* && rmdir out 14910 cd .. 14911 $RM -r conftest 14912 $RM conftest* 14913 14914fi 14915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14916$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14917 14918 14919 14920 14921hard_links=nottested 14922if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 14923 # do not overwrite the value of need_locks provided by the user 14924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14925$as_echo_n "checking if we can lock with hard links... " >&6; } 14926 hard_links=yes 14927 $RM conftest* 14928 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14929 touch conftest.a 14930 ln conftest.a conftest.b 2>&5 || hard_links=no 14931 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14933$as_echo "$hard_links" >&6; } 14934 if test no = "$hard_links"; then 14935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 14936$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 14937 need_locks=warn 14938 fi 14939else 14940 need_locks=no 14941fi 14942 14943 14944 14945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14946$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14947 14948 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14949 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14950 case $host_os in 14951 aix[4-9]*) 14952 # If we're using GNU nm, then we don't want the "-C" option. 14953 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 14954 # Without the "-l" option, or with the "-B" option, AIX nm treats 14955 # weak defined symbols like other global defined symbols, whereas 14956 # GNU nm marks them as "W". 14957 # While the 'weak' keyword is ignored in the Export File, we need 14958 # it in the Import File for the 'aix-soname' feature, so we have 14959 # to replace the "-B" option with "-P" for AIX nm. 14960 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14961 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' 14962 else 14963 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' 14964 fi 14965 ;; 14966 pw32*) 14967 export_symbols_cmds_CXX=$ltdll_cmds 14968 ;; 14969 cygwin* | mingw* | cegcc*) 14970 case $cc_basename in 14971 cl*) 14972 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 14973 ;; 14974 *) 14975 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' 14976 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14977 ;; 14978 esac 14979 ;; 14980 linux* | k*bsd*-gnu | gnu*) 14981 link_all_deplibs_CXX=no 14982 ;; 14983 *) 14984 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14985 ;; 14986 esac 14987 14988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14989$as_echo "$ld_shlibs_CXX" >&6; } 14990test no = "$ld_shlibs_CXX" && can_build_shared=no 14991 14992with_gnu_ld_CXX=$with_gnu_ld 14993 14994 14995 14996 14997 14998 14999# 15000# Do we need to explicitly link libc? 15001# 15002case "x$archive_cmds_need_lc_CXX" in 15003x|xyes) 15004 # Assume -lc should be added 15005 archive_cmds_need_lc_CXX=yes 15006 15007 if test yes,yes = "$GCC,$enable_shared"; then 15008 case $archive_cmds_CXX in 15009 *'~'*) 15010 # FIXME: we may have to deal with multi-command sequences. 15011 ;; 15012 '$CC '*) 15013 # Test whether the compiler implicitly links with -lc since on some 15014 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15015 # to ld, don't add -lc before -lgcc. 15016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15017$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15018if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 15019 $as_echo_n "(cached) " >&6 15020else 15021 $RM conftest* 15022 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15023 15024 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15025 (eval $ac_compile) 2>&5 15026 ac_status=$? 15027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15028 test $ac_status = 0; } 2>conftest.err; then 15029 soname=conftest 15030 lib=conftest 15031 libobjs=conftest.$ac_objext 15032 deplibs= 15033 wl=$lt_prog_compiler_wl_CXX 15034 pic_flag=$lt_prog_compiler_pic_CXX 15035 compiler_flags=-v 15036 linker_flags=-v 15037 verstring= 15038 output_objdir=. 15039 libname=conftest 15040 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15041 allow_undefined_flag_CXX= 15042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15043 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15044 ac_status=$? 15045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15046 test $ac_status = 0; } 15047 then 15048 lt_cv_archive_cmds_need_lc_CXX=no 15049 else 15050 lt_cv_archive_cmds_need_lc_CXX=yes 15051 fi 15052 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15053 else 15054 cat conftest.err 1>&5 15055 fi 15056 $RM conftest* 15057 15058fi 15059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 15060$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 15061 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 15062 ;; 15063 esac 15064 fi 15065 ;; 15066esac 15067 15068 15069 15070 15071 15072 15073 15074 15075 15076 15077 15078 15079 15080 15081 15082 15083 15084 15085 15086 15087 15088 15089 15090 15091 15092 15093 15094 15095 15096 15097 15098 15099 15100 15101 15102 15103 15104 15105 15106 15107 15108 15109 15110 15111 15112 15113 15114 15115 15116 15117 15118 15119 15120 15121 15122 15123 15124 15125 15126 15127 15128 15129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15130$as_echo_n "checking dynamic linker characteristics... " >&6; } 15131 15132library_names_spec= 15133libname_spec='lib$name' 15134soname_spec= 15135shrext_cmds=.so 15136postinstall_cmds= 15137postuninstall_cmds= 15138finish_cmds= 15139finish_eval= 15140shlibpath_var= 15141shlibpath_overrides_runpath=unknown 15142version_type=none 15143dynamic_linker="$host_os ld.so" 15144sys_lib_dlsearch_path_spec="/lib /usr/lib" 15145need_lib_prefix=unknown 15146hardcode_into_libs=no 15147 15148# when you set need_version to no, make sure it does not cause -set_version 15149# flags to be left without arguments 15150need_version=unknown 15151 15152 15153 15154case $host_os in 15155aix3*) 15156 version_type=linux # correct to gnu/linux during the next big refactor 15157 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 15158 shlibpath_var=LIBPATH 15159 15160 # AIX 3 has no versioning support, so we append a major version to the name. 15161 soname_spec='$libname$release$shared_ext$major' 15162 ;; 15163 15164aix[4-9]*) 15165 version_type=linux # correct to gnu/linux during the next big refactor 15166 need_lib_prefix=no 15167 need_version=no 15168 hardcode_into_libs=yes 15169 if test ia64 = "$host_cpu"; then 15170 # AIX 5 supports IA64 15171 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 15172 shlibpath_var=LD_LIBRARY_PATH 15173 else 15174 # With GCC up to 2.95.x, collect2 would create an import file 15175 # for dependence libraries. The import file would start with 15176 # the line '#! .'. This would cause the generated library to 15177 # depend on '.', always an invalid library. This was fixed in 15178 # development snapshots of GCC prior to 3.0. 15179 case $host_os in 15180 aix4 | aix4.[01] | aix4.[01].*) 15181 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15182 echo ' yes ' 15183 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 15184 : 15185 else 15186 can_build_shared=no 15187 fi 15188 ;; 15189 esac 15190 # Using Import Files as archive members, it is possible to support 15191 # filename-based versioning of shared library archives on AIX. While 15192 # this would work for both with and without runtime linking, it will 15193 # prevent static linking of such archives. So we do filename-based 15194 # shared library versioning with .so extension only, which is used 15195 # when both runtime linking and shared linking is enabled. 15196 # Unfortunately, runtime linking may impact performance, so we do 15197 # not want this to be the default eventually. Also, we use the 15198 # versioned .so libs for executables only if there is the -brtl 15199 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 15200 # To allow for filename-based versioning support, we need to create 15201 # libNAME.so.V as an archive file, containing: 15202 # *) an Import File, referring to the versioned filename of the 15203 # archive as well as the shared archive member, telling the 15204 # bitwidth (32 or 64) of that shared object, and providing the 15205 # list of exported symbols of that shared object, eventually 15206 # decorated with the 'weak' keyword 15207 # *) the shared object with the F_LOADONLY flag set, to really avoid 15208 # it being seen by the linker. 15209 # At run time we better use the real file rather than another symlink, 15210 # but for link time we create the symlink libNAME.so -> libNAME.so.V 15211 15212 case $with_aix_soname,$aix_use_runtimelinking in 15213 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 15214 # soname into executable. Probably we can add versioning support to 15215 # collect2, so additional links can be useful in future. 15216 aix,yes) # traditional libtool 15217 dynamic_linker='AIX unversionable lib.so' 15218 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15219 # instead of lib<name>.a to let people know that these are not 15220 # typical AIX shared libraries. 15221 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15222 ;; 15223 aix,no) # traditional AIX only 15224 dynamic_linker='AIX lib.a(lib.so.V)' 15225 # We preserve .a as extension for shared libraries through AIX4.2 15226 # and later when we are not doing run time linking. 15227 library_names_spec='$libname$release.a $libname.a' 15228 soname_spec='$libname$release$shared_ext$major' 15229 ;; 15230 svr4,*) # full svr4 only 15231 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 15232 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15233 # We do not specify a path in Import Files, so LIBPATH fires. 15234 shlibpath_overrides_runpath=yes 15235 ;; 15236 *,yes) # both, prefer svr4 15237 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 15238 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15239 # unpreferred sharedlib libNAME.a needs extra handling 15240 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"' 15241 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"' 15242 # We do not specify a path in Import Files, so LIBPATH fires. 15243 shlibpath_overrides_runpath=yes 15244 ;; 15245 *,no) # both, prefer aix 15246 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 15247 library_names_spec='$libname$release.a $libname.a' 15248 soname_spec='$libname$release$shared_ext$major' 15249 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 15250 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)' 15251 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"' 15252 ;; 15253 esac 15254 shlibpath_var=LIBPATH 15255 fi 15256 ;; 15257 15258amigaos*) 15259 case $host_cpu in 15260 powerpc) 15261 # Since July 2007 AmigaOS4 officially supports .so libraries. 15262 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15263 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15264 ;; 15265 m68k) 15266 library_names_spec='$libname.ixlibrary $libname.a' 15267 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15268 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' 15269 ;; 15270 esac 15271 ;; 15272 15273beos*) 15274 library_names_spec='$libname$shared_ext' 15275 dynamic_linker="$host_os ld.so" 15276 shlibpath_var=LIBRARY_PATH 15277 ;; 15278 15279bsdi[45]*) 15280 version_type=linux # correct to gnu/linux during the next big refactor 15281 need_version=no 15282 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15283 soname_spec='$libname$release$shared_ext$major' 15284 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15285 shlibpath_var=LD_LIBRARY_PATH 15286 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15287 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15288 # the default ld.so.conf also contains /usr/contrib/lib and 15289 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15290 # libtool to hard-code these into programs 15291 ;; 15292 15293cygwin* | mingw* | pw32* | cegcc*) 15294 version_type=windows 15295 shrext_cmds=.dll 15296 need_version=no 15297 need_lib_prefix=no 15298 15299 case $GCC,$cc_basename in 15300 yes,*) 15301 # gcc 15302 library_names_spec='$libname.dll.a' 15303 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15304 postinstall_cmds='base_file=`basename \$file`~ 15305 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15306 dldir=$destdir/`dirname \$dlpath`~ 15307 test -d \$dldir || mkdir -p \$dldir~ 15308 $install_prog $dir/$dlname \$dldir/$dlname~ 15309 chmod a+x \$dldir/$dlname~ 15310 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15311 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15312 fi' 15313 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15314 dlpath=$dir/\$dldll~ 15315 $RM \$dlpath' 15316 shlibpath_overrides_runpath=yes 15317 15318 case $host_os in 15319 cygwin*) 15320 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15321 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15322 15323 ;; 15324 mingw* | cegcc*) 15325 # MinGW DLLs use traditional 'lib' prefix 15326 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15327 ;; 15328 pw32*) 15329 # pw32 DLLs use 'pw' prefix rather than 'lib' 15330 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15331 ;; 15332 esac 15333 dynamic_linker='Win32 ld.exe' 15334 ;; 15335 15336 *,cl*) 15337 # Native MSVC 15338 libname_spec='$name' 15339 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15340 library_names_spec='$libname.dll.lib' 15341 15342 case $build_os in 15343 mingw*) 15344 sys_lib_search_path_spec= 15345 lt_save_ifs=$IFS 15346 IFS=';' 15347 for lt_path in $LIB 15348 do 15349 IFS=$lt_save_ifs 15350 # Let DOS variable expansion print the short 8.3 style file name. 15351 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15352 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15353 done 15354 IFS=$lt_save_ifs 15355 # Convert to MSYS style. 15356 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15357 ;; 15358 cygwin*) 15359 # Convert to unix form, then to dos form, then back to unix form 15360 # but this time dos style (no spaces!) so that the unix form looks 15361 # like /cygdrive/c/PROGRA~1:/cygdr... 15362 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15363 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15364 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15365 ;; 15366 *) 15367 sys_lib_search_path_spec=$LIB 15368 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15369 # It is most probably a Windows format PATH. 15370 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15371 else 15372 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15373 fi 15374 # FIXME: find the short name or the path components, as spaces are 15375 # common. (e.g. "Program Files" -> "PROGRA~1") 15376 ;; 15377 esac 15378 15379 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15380 postinstall_cmds='base_file=`basename \$file`~ 15381 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15382 dldir=$destdir/`dirname \$dlpath`~ 15383 test -d \$dldir || mkdir -p \$dldir~ 15384 $install_prog $dir/$dlname \$dldir/$dlname' 15385 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15386 dlpath=$dir/\$dldll~ 15387 $RM \$dlpath' 15388 shlibpath_overrides_runpath=yes 15389 dynamic_linker='Win32 link.exe' 15390 ;; 15391 15392 *) 15393 # Assume MSVC wrapper 15394 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 15395 dynamic_linker='Win32 ld.exe' 15396 ;; 15397 esac 15398 # FIXME: first we should search . and the directory the executable is in 15399 shlibpath_var=PATH 15400 ;; 15401 15402darwin* | rhapsody*) 15403 dynamic_linker="$host_os dyld" 15404 version_type=darwin 15405 need_lib_prefix=no 15406 need_version=no 15407 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 15408 soname_spec='$libname$release$major$shared_ext' 15409 shlibpath_overrides_runpath=yes 15410 shlibpath_var=DYLD_LIBRARY_PATH 15411 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15412 15413 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15414 ;; 15415 15416dgux*) 15417 version_type=linux # correct to gnu/linux during the next big refactor 15418 need_lib_prefix=no 15419 need_version=no 15420 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15421 soname_spec='$libname$release$shared_ext$major' 15422 shlibpath_var=LD_LIBRARY_PATH 15423 ;; 15424 15425freebsd* | dragonfly*) 15426 # DragonFly does not have aout. When/if they implement a new 15427 # versioning mechanism, adjust this. 15428 if test -x /usr/bin/objformat; then 15429 objformat=`/usr/bin/objformat` 15430 else 15431 case $host_os in 15432 freebsd[23].*) objformat=aout ;; 15433 *) objformat=elf ;; 15434 esac 15435 fi 15436 version_type=freebsd-$objformat 15437 case $version_type in 15438 freebsd-elf*) 15439 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15440 soname_spec='$libname$release$shared_ext$major' 15441 need_version=no 15442 need_lib_prefix=no 15443 ;; 15444 freebsd-*) 15445 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15446 need_version=yes 15447 ;; 15448 esac 15449 shlibpath_var=LD_LIBRARY_PATH 15450 case $host_os in 15451 freebsd2.*) 15452 shlibpath_overrides_runpath=yes 15453 ;; 15454 freebsd3.[01]* | freebsdelf3.[01]*) 15455 shlibpath_overrides_runpath=yes 15456 hardcode_into_libs=yes 15457 ;; 15458 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15459 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15460 shlibpath_overrides_runpath=no 15461 hardcode_into_libs=yes 15462 ;; 15463 *) # from 4.6 on, and DragonFly 15464 shlibpath_overrides_runpath=yes 15465 hardcode_into_libs=yes 15466 ;; 15467 esac 15468 ;; 15469 15470haiku*) 15471 version_type=linux # correct to gnu/linux during the next big refactor 15472 need_lib_prefix=no 15473 need_version=no 15474 dynamic_linker="$host_os runtime_loader" 15475 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15476 soname_spec='$libname$release$shared_ext$major' 15477 shlibpath_var=LIBRARY_PATH 15478 shlibpath_overrides_runpath=no 15479 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15480 hardcode_into_libs=yes 15481 ;; 15482 15483hpux9* | hpux10* | hpux11*) 15484 # Give a soname corresponding to the major version so that dld.sl refuses to 15485 # link against other versions. 15486 version_type=sunos 15487 need_lib_prefix=no 15488 need_version=no 15489 case $host_cpu in 15490 ia64*) 15491 shrext_cmds='.so' 15492 hardcode_into_libs=yes 15493 dynamic_linker="$host_os dld.so" 15494 shlibpath_var=LD_LIBRARY_PATH 15495 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15496 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15497 soname_spec='$libname$release$shared_ext$major' 15498 if test 32 = "$HPUX_IA64_MODE"; then 15499 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15500 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 15501 else 15502 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15503 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 15504 fi 15505 ;; 15506 hppa*64*) 15507 shrext_cmds='.sl' 15508 hardcode_into_libs=yes 15509 dynamic_linker="$host_os dld.sl" 15510 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15511 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15512 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15513 soname_spec='$libname$release$shared_ext$major' 15514 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15515 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15516 ;; 15517 *) 15518 shrext_cmds='.sl' 15519 dynamic_linker="$host_os dld.sl" 15520 shlibpath_var=SHLIB_PATH 15521 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15522 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15523 soname_spec='$libname$release$shared_ext$major' 15524 ;; 15525 esac 15526 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15527 postinstall_cmds='chmod 555 $lib' 15528 # or fails outright, so override atomically: 15529 install_override_mode=555 15530 ;; 15531 15532interix[3-9]*) 15533 version_type=linux # correct to gnu/linux during the next big refactor 15534 need_lib_prefix=no 15535 need_version=no 15536 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15537 soname_spec='$libname$release$shared_ext$major' 15538 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15539 shlibpath_var=LD_LIBRARY_PATH 15540 shlibpath_overrides_runpath=no 15541 hardcode_into_libs=yes 15542 ;; 15543 15544irix5* | irix6* | nonstopux*) 15545 case $host_os in 15546 nonstopux*) version_type=nonstopux ;; 15547 *) 15548 if test yes = "$lt_cv_prog_gnu_ld"; then 15549 version_type=linux # correct to gnu/linux during the next big refactor 15550 else 15551 version_type=irix 15552 fi ;; 15553 esac 15554 need_lib_prefix=no 15555 need_version=no 15556 soname_spec='$libname$release$shared_ext$major' 15557 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 15558 case $host_os in 15559 irix5* | nonstopux*) 15560 libsuff= shlibsuff= 15561 ;; 15562 *) 15563 case $LD in # libtool.m4 will add one of these switches to LD 15564 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15565 libsuff= shlibsuff= libmagic=32-bit;; 15566 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15567 libsuff=32 shlibsuff=N32 libmagic=N32;; 15568 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15569 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15570 *) libsuff= shlibsuff= libmagic=never-match;; 15571 esac 15572 ;; 15573 esac 15574 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15575 shlibpath_overrides_runpath=no 15576 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 15577 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 15578 hardcode_into_libs=yes 15579 ;; 15580 15581# No shared lib support for Linux oldld, aout, or coff. 15582linux*oldld* | linux*aout* | linux*coff*) 15583 dynamic_linker=no 15584 ;; 15585 15586linux*android*) 15587 version_type=none # Android doesn't support versioned libraries. 15588 need_lib_prefix=no 15589 need_version=no 15590 library_names_spec='$libname$release$shared_ext' 15591 soname_spec='$libname$release$shared_ext' 15592 finish_cmds= 15593 shlibpath_var=LD_LIBRARY_PATH 15594 shlibpath_overrides_runpath=yes 15595 15596 # This implies no fast_install, which is unacceptable. 15597 # Some rework will be needed to allow for fast_install 15598 # before this can be enabled. 15599 hardcode_into_libs=yes 15600 15601 dynamic_linker='Android linker' 15602 # Don't embed -rpath directories since the linker doesn't support them. 15603 hardcode_libdir_flag_spec_CXX='-L$libdir' 15604 ;; 15605 15606# This must be glibc/ELF. 15607linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15608 version_type=linux # correct to gnu/linux during the next big refactor 15609 need_lib_prefix=no 15610 need_version=no 15611 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15612 soname_spec='$libname$release$shared_ext$major' 15613 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15614 shlibpath_var=LD_LIBRARY_PATH 15615 shlibpath_overrides_runpath=no 15616 15617 # Some binutils ld are patched to set DT_RUNPATH 15618 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15619 $as_echo_n "(cached) " >&6 15620else 15621 lt_cv_shlibpath_overrides_runpath=no 15622 save_LDFLAGS=$LDFLAGS 15623 save_libdir=$libdir 15624 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15625 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15627/* end confdefs.h. */ 15628 15629int 15630main () 15631{ 15632 15633 ; 15634 return 0; 15635} 15636_ACEOF 15637if ac_fn_cxx_try_link "$LINENO"; then : 15638 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15639 lt_cv_shlibpath_overrides_runpath=yes 15640fi 15641fi 15642rm -f core conftest.err conftest.$ac_objext \ 15643 conftest$ac_exeext conftest.$ac_ext 15644 LDFLAGS=$save_LDFLAGS 15645 libdir=$save_libdir 15646 15647fi 15648 15649 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15650 15651 # This implies no fast_install, which is unacceptable. 15652 # Some rework will be needed to allow for fast_install 15653 # before this can be enabled. 15654 hardcode_into_libs=yes 15655 15656 # Ideally, we could use ldconfig to report *all* directores which are 15657 # searched for libraries, however this is still not possible. Aside from not 15658 # being certain /sbin/ldconfig is available, command 15659 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 15660 # even though it is searched at run-time. Try to do the best guess by 15661 # appending ld.so.conf contents (and includes) to the search path. 15662 if test -f /etc/ld.so.conf; then 15663 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' ' '` 15664 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15665 fi 15666 15667 # We used to test for /lib/ld.so.1 and disable shared libraries on 15668 # powerpc, because MkLinux only supported shared libraries with the 15669 # GNU dynamic linker. Since this was broken with cross compilers, 15670 # most powerpc-linux boxes support dynamic linking these days and 15671 # people can always --disable-shared, the test was removed, and we 15672 # assume the GNU/Linux dynamic linker is in use. 15673 dynamic_linker='GNU/Linux ld.so' 15674 ;; 15675 15676netbsdelf*-gnu) 15677 version_type=linux 15678 need_lib_prefix=no 15679 need_version=no 15680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15681 soname_spec='${libname}${release}${shared_ext}$major' 15682 shlibpath_var=LD_LIBRARY_PATH 15683 shlibpath_overrides_runpath=no 15684 hardcode_into_libs=yes 15685 dynamic_linker='NetBSD ld.elf_so' 15686 ;; 15687 15688netbsd*) 15689 version_type=sunos 15690 need_lib_prefix=no 15691 need_version=no 15692 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15693 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15694 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15695 dynamic_linker='NetBSD (a.out) ld.so' 15696 else 15697 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15698 soname_spec='$libname$release$shared_ext$major' 15699 dynamic_linker='NetBSD ld.elf_so' 15700 fi 15701 shlibpath_var=LD_LIBRARY_PATH 15702 shlibpath_overrides_runpath=yes 15703 hardcode_into_libs=yes 15704 ;; 15705 15706newsos6) 15707 version_type=linux # correct to gnu/linux during the next big refactor 15708 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15709 shlibpath_var=LD_LIBRARY_PATH 15710 shlibpath_overrides_runpath=yes 15711 ;; 15712 15713*nto* | *qnx*) 15714 version_type=qnx 15715 need_lib_prefix=no 15716 need_version=no 15717 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15718 soname_spec='$libname$release$shared_ext$major' 15719 shlibpath_var=LD_LIBRARY_PATH 15720 shlibpath_overrides_runpath=no 15721 hardcode_into_libs=yes 15722 dynamic_linker='ldqnx.so' 15723 ;; 15724 15725openbsd* | bitrig*) 15726 version_type=sunos 15727 sys_lib_dlsearch_path_spec=/usr/lib 15728 need_lib_prefix=no 15729 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 15730 need_version=no 15731 else 15732 need_version=yes 15733 fi 15734 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15735 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15736 shlibpath_var=LD_LIBRARY_PATH 15737 shlibpath_overrides_runpath=yes 15738 ;; 15739 15740os2*) 15741 libname_spec='$name' 15742 version_type=windows 15743 shrext_cmds=.dll 15744 need_version=no 15745 need_lib_prefix=no 15746 # OS/2 can only load a DLL with a base name of 8 characters or less. 15747 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 15748 v=$($ECHO $release$versuffix | tr -d .-); 15749 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 15750 $ECHO $n$v`$shared_ext' 15751 library_names_spec='${libname}_dll.$libext' 15752 dynamic_linker='OS/2 ld.exe' 15753 shlibpath_var=BEGINLIBPATH 15754 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15755 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15756 postinstall_cmds='base_file=`basename \$file`~ 15757 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 15758 dldir=$destdir/`dirname \$dlpath`~ 15759 test -d \$dldir || mkdir -p \$dldir~ 15760 $install_prog $dir/$dlname \$dldir/$dlname~ 15761 chmod a+x \$dldir/$dlname~ 15762 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15763 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15764 fi' 15765 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 15766 dlpath=$dir/\$dldll~ 15767 $RM \$dlpath' 15768 ;; 15769 15770osf3* | osf4* | osf5*) 15771 version_type=osf 15772 need_lib_prefix=no 15773 need_version=no 15774 soname_spec='$libname$release$shared_ext$major' 15775 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15776 shlibpath_var=LD_LIBRARY_PATH 15777 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15778 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15779 ;; 15780 15781rdos*) 15782 dynamic_linker=no 15783 ;; 15784 15785solaris*) 15786 version_type=linux # correct to gnu/linux during the next big refactor 15787 need_lib_prefix=no 15788 need_version=no 15789 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15790 soname_spec='$libname$release$shared_ext$major' 15791 shlibpath_var=LD_LIBRARY_PATH 15792 shlibpath_overrides_runpath=yes 15793 hardcode_into_libs=yes 15794 # ldd complains unless libraries are executable 15795 postinstall_cmds='chmod +x $lib' 15796 ;; 15797 15798sunos4*) 15799 version_type=sunos 15800 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15801 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15802 shlibpath_var=LD_LIBRARY_PATH 15803 shlibpath_overrides_runpath=yes 15804 if test yes = "$with_gnu_ld"; then 15805 need_lib_prefix=no 15806 fi 15807 need_version=yes 15808 ;; 15809 15810sysv4 | sysv4.3*) 15811 version_type=linux # correct to gnu/linux during the next big refactor 15812 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15813 soname_spec='$libname$release$shared_ext$major' 15814 shlibpath_var=LD_LIBRARY_PATH 15815 case $host_vendor in 15816 sni) 15817 shlibpath_overrides_runpath=no 15818 need_lib_prefix=no 15819 runpath_var=LD_RUN_PATH 15820 ;; 15821 siemens) 15822 need_lib_prefix=no 15823 ;; 15824 motorola) 15825 need_lib_prefix=no 15826 need_version=no 15827 shlibpath_overrides_runpath=no 15828 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15829 ;; 15830 esac 15831 ;; 15832 15833sysv4*MP*) 15834 if test -d /usr/nec; then 15835 version_type=linux # correct to gnu/linux during the next big refactor 15836 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 15837 soname_spec='$libname$shared_ext.$major' 15838 shlibpath_var=LD_LIBRARY_PATH 15839 fi 15840 ;; 15841 15842sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15843 version_type=sco 15844 need_lib_prefix=no 15845 need_version=no 15846 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 15847 soname_spec='$libname$release$shared_ext$major' 15848 shlibpath_var=LD_LIBRARY_PATH 15849 shlibpath_overrides_runpath=yes 15850 hardcode_into_libs=yes 15851 if test yes = "$with_gnu_ld"; then 15852 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15853 else 15854 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15855 case $host_os in 15856 sco3.2v5*) 15857 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15858 ;; 15859 esac 15860 fi 15861 sys_lib_dlsearch_path_spec='/usr/lib' 15862 ;; 15863 15864tpf*) 15865 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15866 version_type=linux # correct to gnu/linux during the next big refactor 15867 need_lib_prefix=no 15868 need_version=no 15869 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15870 shlibpath_var=LD_LIBRARY_PATH 15871 shlibpath_overrides_runpath=no 15872 hardcode_into_libs=yes 15873 ;; 15874 15875uts4*) 15876 version_type=linux # correct to gnu/linux during the next big refactor 15877 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15878 soname_spec='$libname$release$shared_ext$major' 15879 shlibpath_var=LD_LIBRARY_PATH 15880 ;; 15881 15882*) 15883 dynamic_linker=no 15884 ;; 15885esac 15886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15887$as_echo "$dynamic_linker" >&6; } 15888test no = "$dynamic_linker" && can_build_shared=no 15889 15890variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15891if test yes = "$GCC"; then 15892 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15893fi 15894 15895if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 15896 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 15897fi 15898 15899if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 15900 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 15901fi 15902 15903# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 15904configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 15905 15906# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 15907func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 15908 15909# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 15910configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 15911 15912 15913 15914 15915 15916 15917 15918 15919 15920 15921 15922 15923 15924 15925 15926 15927 15928 15929 15930 15931 15932 15933 15934 15935 15936 15937 15938 15939 15940 15941 15942 15943 15944 15945 15946 15947 15948 15949 15950 15951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15952$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15953hardcode_action_CXX= 15954if test -n "$hardcode_libdir_flag_spec_CXX" || 15955 test -n "$runpath_var_CXX" || 15956 test yes = "$hardcode_automatic_CXX"; then 15957 15958 # We can hardcode non-existent directories. 15959 if test no != "$hardcode_direct_CXX" && 15960 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15961 # have to relink, otherwise we might link with an installed library 15962 # when we should be linking with a yet-to-be-installed one 15963 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 15964 test no != "$hardcode_minus_L_CXX"; then 15965 # Linking always hardcodes the temporary library directory. 15966 hardcode_action_CXX=relink 15967 else 15968 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15969 hardcode_action_CXX=immediate 15970 fi 15971else 15972 # We cannot hardcode anything, or else we can only hardcode existing 15973 # directories. 15974 hardcode_action_CXX=unsupported 15975fi 15976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 15977$as_echo "$hardcode_action_CXX" >&6; } 15978 15979if test relink = "$hardcode_action_CXX" || 15980 test yes = "$inherit_rpath_CXX"; then 15981 # Fast installation is not supported 15982 enable_fast_install=no 15983elif test yes = "$shlibpath_overrides_runpath" || 15984 test no = "$enable_shared"; then 15985 # Fast installation is not necessary 15986 enable_fast_install=needless 15987fi 15988 15989 15990 15991 15992 15993 15994 15995 fi # test -n "$compiler" 15996 15997 CC=$lt_save_CC 15998 CFLAGS=$lt_save_CFLAGS 15999 LDCXX=$LD 16000 LD=$lt_save_LD 16001 GCC=$lt_save_GCC 16002 with_gnu_ld=$lt_save_with_gnu_ld 16003 lt_cv_path_LDCXX=$lt_cv_path_LD 16004 lt_cv_path_LD=$lt_save_path_LD 16005 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16006 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16007fi # test yes != "$_lt_caught_CXX_error" 16008 16009ac_ext=c 16010ac_cpp='$CPP $CPPFLAGS' 16011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16013ac_compiler_gnu=$ac_cv_c_compiler_gnu 16014 16015 16016 16017 16018 16019 16020 16021 16022 16023 16024 16025 16026 16027 16028 16029 ac_config_commands="$ac_config_commands libtool" 16030 16031 16032 16033 16034# Only expand once: 16035 16036 16037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 16038$as_echo_n "checking for a sed that does not truncate output... " >&6; } 16039if ${ac_cv_path_SED+:} false; then : 16040 $as_echo_n "(cached) " >&6 16041else 16042 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 16043 for ac_i in 1 2 3 4 5 6 7; do 16044 ac_script="$ac_script$as_nl$ac_script" 16045 done 16046 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 16047 { ac_script=; unset ac_script;} 16048 if test -z "$SED"; then 16049 ac_path_SED_found=false 16050 # Loop through the user's path and test for each of PROGNAME-LIST 16051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16052for as_dir in $PATH 16053do 16054 IFS=$as_save_IFS 16055 test -z "$as_dir" && as_dir=. 16056 for ac_prog in sed gsed; do 16057 for ac_exec_ext in '' $ac_executable_extensions; do 16058 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 16059 as_fn_executable_p "$ac_path_SED" || continue 16060# Check for GNU ac_path_SED and select it if it is found. 16061 # Check for GNU $ac_path_SED 16062case `"$ac_path_SED" --version 2>&1` in 16063*GNU*) 16064 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 16065*) 16066 ac_count=0 16067 $as_echo_n 0123456789 >"conftest.in" 16068 while : 16069 do 16070 cat "conftest.in" "conftest.in" >"conftest.tmp" 16071 mv "conftest.tmp" "conftest.in" 16072 cp "conftest.in" "conftest.nl" 16073 $as_echo '' >> "conftest.nl" 16074 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 16075 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 16076 as_fn_arith $ac_count + 1 && ac_count=$as_val 16077 if test $ac_count -gt ${ac_path_SED_max-0}; then 16078 # Best one so far, save it but keep looking for a better one 16079 ac_cv_path_SED="$ac_path_SED" 16080 ac_path_SED_max=$ac_count 16081 fi 16082 # 10*(2^10) chars as input seems more than enough 16083 test $ac_count -gt 10 && break 16084 done 16085 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 16086esac 16087 16088 $ac_path_SED_found && break 3 16089 done 16090 done 16091 done 16092IFS=$as_save_IFS 16093 if test -z "$ac_cv_path_SED"; then 16094 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 16095 fi 16096else 16097 ac_cv_path_SED=$SED 16098fi 16099 16100fi 16101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 16102$as_echo "$ac_cv_path_SED" >&6; } 16103 SED="$ac_cv_path_SED" 16104 rm -f conftest.sed 16105 16106 16107 16108 16109 16110 16111 16112 16113 16114 16115 16116 16117case "system" in 16118system) 16119 16120# Check whether --with-clang_prefix was given. 16121if test "${with_clang_prefix+set}" = set; then : 16122 withval=$with_clang_prefix; 16123fi 16124 16125 16126# Check whether --with-clang_exec_prefix was given. 16127if test "${with_clang_exec_prefix+set}" = set; then : 16128 withval=$with_clang_exec_prefix; 16129fi 16130 16131esac 16132 16133if test "x$with_clang_prefix" != "x" -a "x$with_clang_exec_prefix" = "x"; then 16134 with_clang_exec_prefix=$with_clang_prefix 16135fi 16136if test "x$with_clang_prefix" != "x" -o "x$with_clang_exec_prefix" != "x"; then 16137 if test "x$with_clang" != "x" -a "x$with_clang" != "xsystem"; then 16138 as_fn_error $? "Setting $with_clang_prefix implies use of system clang" "$LINENO" 5 16139 fi 16140 with_clang="system" 16141fi 16142if test "x$with_clang_builddir" != "x"; then 16143 if test "x$with_clang" != "x" -a "x$with_clang" != "xbuild"; then 16144 as_fn_error $? "Setting $with_clang_builddir implies use of build clang" "$LINENO" 5 16145 fi 16146 with_clang="build" 16147 clang_srcdir=`echo @abs_srcdir@ | $with_clang_builddir/config.status --file=-` 16148 { $as_echo "$as_me:${as_lineno-$LINENO}: clang sources in $clang_srcdir" >&5 16149$as_echo "$as_me: clang sources in $clang_srcdir" >&6;} 16150fi 16151if test "x$with_clang_exec_prefix" != "x"; then 16152 export PKG_CONFIG_PATH="$with_clang_exec_prefix/lib/pkgconfig${PKG_CONFIG_PATH+:$PKG_CONFIG_PATH}" 16153fi 16154case "$with_clang" in 16155system) 16156 ;; 16157*) 16158 case "system" in 16159 bundled) 16160 if test -d $srcdir/.git -a \ 16161 -d $srcdir/clang -a \ 16162 "`cd $srcdir; git submodule status clang | cut -c1`" = '-'; then 16163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git repo detected, but submodule clang not initialized" >&5 16164$as_echo "$as_me: WARNING: git repo detected, but submodule clang not initialized" >&2;} 16165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You may want to run" >&5 16166$as_echo "$as_me: WARNING: You may want to run" >&2;} 16167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git submodule init" >&5 16168$as_echo "$as_me: WARNING: git submodule init" >&2;} 16169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git submodule update" >&5 16170$as_echo "$as_me: WARNING: git submodule update" >&2;} 16171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sh autogen.sh" >&5 16172$as_echo "$as_me: WARNING: sh autogen.sh" >&2;} 16173 fi 16174 if test -f $srcdir/clang/configure; then 16175 with_clang="bundled" 16176 else 16177 case "system" in 16178 system) 16179 with_clang="system" 16180 ;; 16181 *) 16182 with_clang="no" 16183 ;; 16184 esac 16185 fi 16186 ;; 16187 *) 16188 with_clang="system" 16189 ;; 16190 esac 16191 ;; 16192esac 16193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which clang to use" >&5 16194$as_echo_n "checking which clang to use... " >&6; } 16195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_clang" >&5 16196$as_echo "$with_clang" >&6; } 16197 16198 16199 16200if test "x$with_clang_prefix" != "x"; then 16201 LLVM_CONFIG="$with_clang_prefix/bin/llvm-config" 16202fi 16203# Extract the first word of ""llvm-config"", so it can be a program name with args. 16204set dummy "llvm-config"; ac_word=$2 16205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16206$as_echo_n "checking for $ac_word... " >&6; } 16207if ${ac_cv_path_LLVM_CONFIG+:} false; then : 16208 $as_echo_n "(cached) " >&6 16209else 16210 case $LLVM_CONFIG in 16211 [\\/]* | ?:[\\/]*) 16212 ac_cv_path_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test with a path. 16213 ;; 16214 *) 16215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16216for as_dir in $PATH 16217do 16218 IFS=$as_save_IFS 16219 test -z "$as_dir" && as_dir=. 16220 for ac_exec_ext in '' $ac_executable_extensions; do 16221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16222 ac_cv_path_LLVM_CONFIG="$as_dir/$ac_word$ac_exec_ext" 16223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16224 break 2 16225 fi 16226done 16227 done 16228IFS=$as_save_IFS 16229 16230 ;; 16231esac 16232fi 16233LLVM_CONFIG=$ac_cv_path_LLVM_CONFIG 16234if test -n "$LLVM_CONFIG"; then 16235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 16236$as_echo "$LLVM_CONFIG" >&6; } 16237else 16238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16239$as_echo "no" >&6; } 16240fi 16241 16242 16243if test -z "$LLVM_CONFIG" || test ! -x "$LLVM_CONFIG"; then 16244 as_fn_error $? "llvm-config not found" "$LINENO" 5 16245fi 16246CLANG_CXXFLAGS=`$LLVM_CONFIG --cxxflags | \ 16247 $SED -e 's/-Wcovered-switch-default//' \ 16248 -e 's/-gsplit-dwarf//' \ 16249 -e 's/-Wl,--no-keep-files-mapped//'` 16250CLANG_LDFLAGS=`$LLVM_CONFIG --ldflags` 16251CLANG_VERSION=`$LLVM_CONFIG --version` 16252CLANG_LIB="LLVM-$CLANG_VERSION" 16253 16254SAVE_LDFLAGS="$LDFLAGS" 16255LDFLAGS="$CLANG_LDFLAGS $LDFLAGS" 16256as_ac_Lib=`$as_echo "ac_cv_lib_$CLANG_LIB''_main" | $as_tr_sh` 16257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$CLANG_LIB" >&5 16258$as_echo_n "checking for main in -l$CLANG_LIB... " >&6; } 16259if eval \${$as_ac_Lib+:} false; then : 16260 $as_echo_n "(cached) " >&6 16261else 16262 ac_check_lib_save_LIBS=$LIBS 16263LIBS="-l$CLANG_LIB $LIBS" 16264cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16265/* end confdefs.h. */ 16266 16267 16268int 16269main () 16270{ 16271return main (); 16272 ; 16273 return 0; 16274} 16275_ACEOF 16276if ac_fn_c_try_link "$LINENO"; then : 16277 eval "$as_ac_Lib=yes" 16278else 16279 eval "$as_ac_Lib=no" 16280fi 16281rm -f core conftest.err conftest.$ac_objext \ 16282 conftest$ac_exeext conftest.$ac_ext 16283LIBS=$ac_check_lib_save_LIBS 16284fi 16285eval ac_res=\$$as_ac_Lib 16286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16287$as_echo "$ac_res" >&6; } 16288if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 16289 have_lib_llvm=yes 16290else 16291 have_lib_llvm=no 16292fi 16293 16294LDFLAGS="$SAVE_LDFLAGS" 16295 16296# Use single libLLVM shared library when available. 16297# Otherwise, try and figure out all the required libraries 16298if test "$have_lib_llvm" = yes; then 16299 # Construct a -R argument for libtool. 16300 # This is apparently required to ensure that libpet.so 16301 # keeps track of the location where libLLVM can be found. 16302 CLANG_RFLAG=`echo "$CLANG_LDFLAGS" | $SED -e 's/-L/-R/g'` 16303 CLANG_LIBS="-l$CLANG_LIB" 16304else 16305 targets=`$LLVM_CONFIG --targets-built` 16306 components="$targets asmparser bitreader support mc" 16307 for c in option frontendopenmp; do 16308 $LLVM_CONFIG --components | $GREP $c > /dev/null 2> /dev/null 16309 if test $? -eq 0; then 16310 components="$components $c" 16311 fi 16312 done 16313 CLANG_LIBS=`$LLVM_CONFIG --libs $components` 16314fi 16315systemlibs=`$LLVM_CONFIG --system-libs 2> /dev/null | tail -1` 16316if test $? -eq 0; then 16317 CLANG_LIBS="$CLANG_LIBS $systemlibs" 16318fi 16319CLANG_PREFIX=`$LLVM_CONFIG --prefix` 16320 16321cat >>confdefs.h <<_ACEOF 16322#define CLANG_PREFIX "$CLANG_PREFIX" 16323_ACEOF 16324 16325 16326SAVE_CPPFLAGS="$CPPFLAGS" 16327CPPFLAGS="$CLANG_CXXFLAGS -I$srcdir $CPPFLAGS" 16328ac_ext=cpp 16329ac_cpp='$CXXCPP $CPPFLAGS' 16330ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16331ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16332ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16333 16334ac_fn_cxx_check_header_mongrel "$LINENO" "clang/Basic/SourceLocation.h" "ac_cv_header_clang_Basic_SourceLocation_h" "$ac_includes_default" 16335if test "x$ac_cv_header_clang_Basic_SourceLocation_h" = xyes; then : 16336 16337else 16338 as_fn_error $? "clang header file not found" "$LINENO" 5 16339fi 16340 16341 16342cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16343/* end confdefs.h. */ 16344#include <llvm/Support/Host.h> 16345 16346_ACEOF 16347if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16348 $EGREP "getDefaultTargetTriple" >/dev/null 2>&1; then : 16349 16350else 16351 16352$as_echo "#define getDefaultTargetTriple getHostTriple" >>confdefs.h 16353 16354fi 16355rm -f conftest* 16356 16357cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16358/* end confdefs.h. */ 16359#include <clang/Basic/SourceLocation.h> 16360 16361_ACEOF 16362if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16363 $EGREP "getExpansionLineNumber" >/dev/null 2>&1; then : 16364 16365else 16366 16367$as_echo "#define getExpansionLineNumber getInstantiationLineNumber" >>confdefs.h 16368 16369fi 16370rm -f conftest* 16371 16372cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16373/* end confdefs.h. */ 16374#include <clang/Basic/SourceLocation.h> 16375 16376_ACEOF 16377if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16378 $EGREP "getExpansionColumnNumber" >/dev/null 2>&1; then : 16379 16380else 16381 16382$as_echo "#define getExpansionColumnNumber getInstantiationColumnNumber" >>confdefs.h 16383 16384fi 16385rm -f conftest* 16386 16387cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16388/* end confdefs.h. */ 16389#include <clang/Basic/SourceManager.h> 16390 16391_ACEOF 16392if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16393 $EGREP "getExpansionLoc" >/dev/null 2>&1; then : 16394 16395else 16396 16397$as_echo "#define getExpansionLoc getInstantiationLoc" >>confdefs.h 16398 16399fi 16400rm -f conftest* 16401 16402cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16403/* end confdefs.h. */ 16404#include <clang/Basic/Diagnostic.h> 16405 16406_ACEOF 16407if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16408 $EGREP "DiagnosticConsumer" >/dev/null 2>&1; then : 16409 16410else 16411 16412$as_echo "#define DiagnosticConsumer DiagnosticClient" >>confdefs.h 16413 16414fi 16415rm -f conftest* 16416 16417cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16418/* end confdefs.h. */ 16419#include <clang/Basic/Diagnostic.h> 16420 16421_ACEOF 16422if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16423 $EGREP "DiagnosticsEngine" >/dev/null 2>&1; then : 16424 16425$as_echo "#define DiagnosticInfo Diagnostic" >>confdefs.h 16426 16427else 16428 16429$as_echo "#define DiagnosticsEngine Diagnostic" >>confdefs.h 16430 16431fi 16432rm -f conftest* 16433 16434cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16435/* end confdefs.h. */ 16436#include <clang/Driver/Driver.h> 16437 16438_ACEOF 16439if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16440 $EGREP "ArrayRef" >/dev/null 2>&1; then : 16441 16442$as_echo "#define USE_ARRAYREF /**/" >>confdefs.h 16443 16444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16445/* end confdefs.h. */ 16446#include <clang/Frontend/CompilerInvocation.h> 16447 16448_ACEOF 16449if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16450 $EGREP "ArrayRef.*CommandLineArgs" >/dev/null 2>&1; then : 16451 16452$as_echo "#define CREATE_FROM_ARGS_TAKES_ARRAYREF /**/" >>confdefs.h 16453 16454 16455fi 16456rm -f conftest* 16457 16458 16459fi 16460rm -f conftest* 16461 16462cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16463/* end confdefs.h. */ 16464#include <clang/AST/Decl.h> 16465 16466_ACEOF 16467if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16468 $EGREP "getReturnType" >/dev/null 2>&1; then : 16469 16470else 16471 16472$as_echo "#define getReturnType getResultType" >>confdefs.h 16473 16474fi 16475rm -f conftest* 16476 16477cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16478/* end confdefs.h. */ 16479#include <clang/Driver/Driver.h> 16480 16481_ACEOF 16482if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16483 $EGREP "CXXIsProduction" >/dev/null 2>&1; then : 16484 16485$as_echo "#define HAVE_CXXISPRODUCTION /**/" >>confdefs.h 16486 16487fi 16488rm -f conftest* 16489 16490cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16491/* end confdefs.h. */ 16492#include <clang/Driver/Driver.h> 16493 16494_ACEOF 16495if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16496 $EGREP " IsProduction" >/dev/null 2>&1; then : 16497 16498$as_echo "#define HAVE_ISPRODUCTION /**/" >>confdefs.h 16499 16500fi 16501rm -f conftest* 16502 16503cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16504/* end confdefs.h. */ 16505#include <clang/Driver/Driver.h> 16506int 16507main () 16508{ 16509 16510 using namespace clang; 16511 DiagnosticsEngine *Diags; 16512 new driver::Driver("", "", "", *Diags); 16513 16514 ; 16515 return 0; 16516} 16517_ACEOF 16518if ac_fn_cxx_try_compile "$LINENO"; then : 16519 16520$as_echo "#define DRIVER_CTOR_TAKES_DEFAULTIMAGENAME /**/" >>confdefs.h 16521 16522fi 16523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16524cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16525/* end confdefs.h. */ 16526#include <clang/AST/ASTConsumer.h> 16527 16528_ACEOF 16529if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16530 $EGREP "void HandleTopLevelDecl\(" >/dev/null 2>&1; then : 16531 16532$as_echo "#define HandleTopLevelDeclReturn void" >>confdefs.h 16533 16534 16535$as_echo "#define HandleTopLevelDeclContinue /**/" >>confdefs.h 16536 16537else 16538 16539$as_echo "#define HandleTopLevelDeclReturn bool" >>confdefs.h 16540 16541 16542$as_echo "#define HandleTopLevelDeclContinue true" >>confdefs.h 16543 16544fi 16545rm -f conftest* 16546 16547ac_fn_cxx_check_header_mongrel "$LINENO" "clang/Basic/DiagnosticOptions.h" "ac_cv_header_clang_Basic_DiagnosticOptions_h" "$ac_includes_default" 16548if test "x$ac_cv_header_clang_Basic_DiagnosticOptions_h" = xyes; then : 16549 16550$as_echo "#define HAVE_BASIC_DIAGNOSTICOPTIONS_H /**/" >>confdefs.h 16551 16552fi 16553 16554 16555ac_fn_cxx_check_header_compile "$LINENO" "clang/Lex/HeaderSearchOptions.h" "ac_cv_header_clang_Lex_HeaderSearchOptions_h" "#include <clang/Basic/LLVM.h> 16556" 16557if test "x$ac_cv_header_clang_Lex_HeaderSearchOptions_h" = xyes; then : 16558 16559$as_echo "#define HAVE_LEX_HEADERSEARCHOPTIONS_H /**/" >>confdefs.h 16560 16561fi 16562 16563 16564ac_fn_cxx_check_header_compile "$LINENO" "clang/Lex/PreprocessorOptions.h" "ac_cv_header_clang_Lex_PreprocessorOptions_h" "#include <clang/Basic/LLVM.h> 16565" 16566if test "x$ac_cv_header_clang_Lex_PreprocessorOptions_h" = xyes; then : 16567 16568$as_echo "#define HAVE_LEX_PREPROCESSOROPTIONS_H /**/" >>confdefs.h 16569 16570fi 16571 16572 16573cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16574/* end confdefs.h. */ 16575#include <clang/Basic/TargetInfo.h> 16576int 16577main () 16578{ 16579 16580 using namespace clang; 16581 std::shared_ptr<TargetOptions> TO; 16582 DiagnosticsEngine *Diags; 16583 TargetInfo::CreateTargetInfo(*Diags, TO); 16584 16585 ; 16586 return 0; 16587} 16588_ACEOF 16589if ac_fn_cxx_try_compile "$LINENO"; then : 16590 16591$as_echo "#define CREATETARGETINFO_TAKES_SHARED_PTR /**/" >>confdefs.h 16592 16593fi 16594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16595cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16596/* end confdefs.h. */ 16597#include <clang/Basic/TargetInfo.h> 16598int 16599main () 16600{ 16601 16602 using namespace clang; 16603 TargetOptions *TO; 16604 DiagnosticsEngine *Diags; 16605 TargetInfo::CreateTargetInfo(*Diags, TO); 16606 16607 ; 16608 return 0; 16609} 16610_ACEOF 16611if ac_fn_cxx_try_compile "$LINENO"; then : 16612 16613$as_echo "#define CREATETARGETINFO_TAKES_POINTER /**/" >>confdefs.h 16614 16615fi 16616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16617cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16618/* end confdefs.h. */ 16619#include <clang/Lex/Preprocessor.h> 16620 16621_ACEOF 16622if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16623 $EGREP "getLangOpts" >/dev/null 2>&1; then : 16624 16625else 16626 16627$as_echo "#define getLangOpts getLangOptions" >>confdefs.h 16628 16629fi 16630rm -f conftest* 16631 16632cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16633/* end confdefs.h. */ 16634#include <clang/Lex/Lexer.h> 16635 16636_ACEOF 16637if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16638 $EGREP "findLocationAfterToken" >/dev/null 2>&1; then : 16639 16640$as_echo "#define HAVE_FINDLOCATIONAFTERTOKEN /**/" >>confdefs.h 16641 16642fi 16643rm -f conftest* 16644 16645cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16646/* end confdefs.h. */ 16647#include <clang/Basic/SourceManager.h> 16648 16649_ACEOF 16650if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16651 $EGREP "translateLineCol" >/dev/null 2>&1; then : 16652 16653$as_echo "#define HAVE_TRANSLATELINECOL /**/" >>confdefs.h 16654 16655fi 16656rm -f conftest* 16657 16658cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16659/* end confdefs.h. */ 16660#include <clang/Frontend/CompilerInstance.h> 16661int 16662main () 16663{ 16664 16665 using namespace clang; 16666 DiagnosticConsumer *client; 16667 CompilerInstance *Clang; 16668 Clang->createDiagnostics(client); 16669 16670 ; 16671 return 0; 16672} 16673_ACEOF 16674if ac_fn_cxx_try_compile "$LINENO"; then : 16675 16676else 16677 16678$as_echo "#define CREATEDIAGNOSTICS_TAKES_ARG /**/" >>confdefs.h 16679 16680fi 16681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16682cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16683/* end confdefs.h. */ 16684#include <clang/Lex/HeaderSearchOptions.h> 16685int 16686main () 16687{ 16688 16689 using namespace clang; 16690 HeaderSearchOptions HSO; 16691 HSO.AddPath("", frontend::Angled, false, false); 16692 16693 ; 16694 return 0; 16695} 16696_ACEOF 16697if ac_fn_cxx_try_compile "$LINENO"; then : 16698 16699$as_echo "#define ADDPATH_TAKES_4_ARGUMENTS /**/" >>confdefs.h 16700 16701fi 16702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16703cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16704/* end confdefs.h. */ 16705#include <clang/Basic/SourceLocation.h> 16706 16707_ACEOF 16708if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16709 $EGREP "getLocWithOffset" >/dev/null 2>&1; then : 16710 16711else 16712 16713$as_echo "#define getLocWithOffset getFileLocWithOffset" >>confdefs.h 16714 16715fi 16716rm -f conftest* 16717 16718cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16719/* end confdefs.h. */ 16720#include <clang/Frontend/CompilerInstance.h> 16721int 16722main () 16723{ 16724 16725 using namespace clang; 16726 CompilerInstance *Clang; 16727 Clang->createPreprocessor(TU_Complete); 16728 16729 ; 16730 return 0; 16731} 16732_ACEOF 16733if ac_fn_cxx_try_compile "$LINENO"; then : 16734 16735$as_echo "#define CREATEPREPROCESSOR_TAKES_TUKIND /**/" >>confdefs.h 16736 16737fi 16738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16739cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16740/* end confdefs.h. */ 16741#include <clang/AST/Type.h> 16742 16743_ACEOF 16744if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16745 $EGREP "DecayedType" >/dev/null 2>&1; then : 16746 16747$as_echo "#define HAVE_DECAYEDTYPE /**/" >>confdefs.h 16748 16749fi 16750rm -f conftest* 16751 16752cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16753/* end confdefs.h. */ 16754#include <clang/Basic/SourceManager.h> 16755 16756_ACEOF 16757if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16758 $EGREP "setMainFileID" >/dev/null 2>&1; then : 16759 16760$as_echo "#define HAVE_SETMAINFILEID /**/" >>confdefs.h 16761 16762fi 16763rm -f conftest* 16764 16765ac_fn_cxx_check_header_mongrel "$LINENO" "llvm/ADT/OwningPtr.h" "ac_cv_header_llvm_ADT_OwningPtr_h" "$ac_includes_default" 16766if test "x$ac_cv_header_llvm_ADT_OwningPtr_h" = xyes; then : 16767 16768$as_echo "#define HAVE_ADT_OWNINGPTR_H /**/" >>confdefs.h 16769 16770fi 16771 16772 16773cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16774/* end confdefs.h. */ 16775#include <clang/AST/ASTContext.h> 16776 16777_ACEOF 16778if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16779 $EGREP "TypeInfo getTypeInfo" >/dev/null 2>&1; then : 16780 16781$as_echo "#define GETTYPEINFORETURNSTYPEINFO /**/" >>confdefs.h 16782 16783fi 16784rm -f conftest* 16785 16786cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16787/* end confdefs.h. */ 16788#include <clang/AST/Type.h> 16789 16790_ACEOF 16791if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16792 $EGREP "TypedefNameDecl" >/dev/null 2>&1; then : 16793 16794else 16795 16796$as_echo "#define TypedefNameDecl TypedefDecl" >>confdefs.h 16797 16798 16799$as_echo "#define getTypedefNameForAnonDecl getTypedefForAnonDecl" >>confdefs.h 16800 16801fi 16802rm -f conftest* 16803 16804cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16805/* end confdefs.h. */ 16806#include <clang/AST/StmtIterator.h> 16807 16808_ACEOF 16809if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16810 $EGREP "StmtRange" >/dev/null 2>&1; then : 16811 16812$as_echo "#define HAVE_STMTRANGE /**/" >>confdefs.h 16813 16814fi 16815rm -f conftest* 16816 16817cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16818/* end confdefs.h. */ 16819#include <clang/Basic/Builtins.h> 16820 16821_ACEOF 16822if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16823 $EGREP "initializeBuiltins" >/dev/null 2>&1; then : 16824 16825else 16826 16827$as_echo "#define initializeBuiltins InitializeBuiltins" >>confdefs.h 16828 16829fi 16830rm -f conftest* 16831 16832cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16833/* end confdefs.h. */ 16834#include <clang/Frontend/FrontendOptions.h> 16835 16836_ACEOF 16837if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16838 $EGREP "IK_C" >/dev/null 2>&1; then : 16839 16840else 16841 ac_fn_cxx_check_header_mongrel "$LINENO" "clang/Basic/LangStandard.h" "ac_cv_header_clang_Basic_LangStandard_h" "$ac_includes_default" 16842if test "x$ac_cv_header_clang_Basic_LangStandard_h" = xyes; then : 16843 IK_C=Language::C 16844else 16845 IK_C=InputKind::C 16846fi 16847 16848 16849 16850cat >>confdefs.h <<_ACEOF 16851#define IK_C $IK_C 16852_ACEOF 16853 16854 16855fi 16856rm -f conftest* 16857 16858cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16859/* end confdefs.h. */ 16860 16861 #include <clang/Basic/TargetOptions.h> 16862 #include <clang/Lex/PreprocessorOptions.h> 16863 #include <clang/Frontend/CompilerInstance.h> 16864 16865 #include "set_lang_defaults_arg4.h" 16866 16867int 16868main () 16869{ 16870 16871 using namespace clang; 16872 CompilerInstance *Clang; 16873 TargetOptions TO; 16874 llvm::Triple T(TO.Triple); 16875 PreprocessorOptions PO; 16876 CompilerInvocation::setLangDefaults(Clang->getLangOpts(), IK_C, 16877 T, setLangDefaultsArg4(PO), 16878 LangStandard::lang_unspecified); 16879 16880 ; 16881 return 0; 16882} 16883_ACEOF 16884if ac_fn_cxx_try_compile "$LINENO"; then : 16885 16886$as_echo "#define SETLANGDEFAULTS_TAKES_5_ARGUMENTS /**/" >>confdefs.h 16887 16888fi 16889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16890cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16891/* end confdefs.h. */ 16892 16893 #include <clang/Frontend/CompilerInstance.h> 16894 #include <clang/Frontend/CompilerInvocation.h> 16895 16896int 16897main () 16898{ 16899 16900 using namespace clang; 16901 CompilerInvocation *invocation; 16902 CompilerInstance *Clang; 16903 Clang->setInvocation(std::make_shared<CompilerInvocation>(*invocation)); 16904 16905 ; 16906 return 0; 16907} 16908_ACEOF 16909if ac_fn_cxx_try_compile "$LINENO"; then : 16910 16911$as_echo "#define SETINVOCATION_TAKES_SHARED_PTR /**/" >>confdefs.h 16912 16913fi 16914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16915cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16916/* end confdefs.h. */ 16917 16918 #include <clang/AST/Decl.h> 16919 16920int 16921main () 16922{ 16923 16924 clang::FunctionDecl *fd; 16925 fd->getBeginLoc(); 16926 fd->getEndLoc(); 16927 16928 ; 16929 return 0; 16930} 16931_ACEOF 16932if ac_fn_cxx_try_compile "$LINENO"; then : 16933 16934$as_echo "#define HAVE_BEGIN_END_LOC /**/" >>confdefs.h 16935 16936fi 16937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16938ac_fn_cxx_check_header_mongrel "$LINENO" "llvm/Option/Arg.h" "ac_cv_header_llvm_Option_Arg_h" "$ac_includes_default" 16939if test "x$ac_cv_header_llvm_Option_Arg_h" = xyes; then : 16940 16941$as_echo "#define HAVE_LLVM_OPTION_ARG_H /**/" >>confdefs.h 16942 16943fi 16944 16945 16946cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16947/* end confdefs.h. */ 16948#include <clang/Lex/Pragma.h> 16949 16950_ACEOF 16951if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16952 $EGREP "PragmaIntroducer " >/dev/null 2>&1; then : 16953 16954else 16955 16956$as_echo "#define PragmaIntroducer PragmaIntroducerKind" >>confdefs.h 16957 16958fi 16959rm -f conftest* 16960 16961ac_fn_cxx_check_header_mongrel "$LINENO" "clang/Basic/LangStandard.h" "ac_cv_header_clang_Basic_LangStandard_h" "$ac_includes_default" 16962if test "x$ac_cv_header_clang_Basic_LangStandard_h" = xyes; then : 16963 16964$as_echo "#define HAVE_CLANG_BASIC_LANGSTANDARD_H /**/" >>confdefs.h 16965 16966fi 16967 16968 16969ac_ext=c 16970ac_cpp='$CPP $CPPFLAGS' 16971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16973ac_compiler_gnu=$ac_cv_c_compiler_gnu 16974 16975CPPFLAGS="$SAVE_CPPFLAGS" 16976 16977SAVE_LDFLAGS="$LDFLAGS" 16978LDFLAGS="$CLANG_LDFLAGS $LDFLAGS" 16979 16980# Use single libclang-cpp shared library when available. 16981# Otherwise, use a selection of clang libraries that appears to work. 16982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lclang-cpp" >&5 16983$as_echo_n "checking for main in -lclang-cpp... " >&6; } 16984if ${ac_cv_lib_clang_cpp_main+:} false; then : 16985 $as_echo_n "(cached) " >&6 16986else 16987 ac_check_lib_save_LIBS=$LIBS 16988LIBS="-lclang-cpp $LIBS" 16989cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16990/* end confdefs.h. */ 16991 16992 16993int 16994main () 16995{ 16996return main (); 16997 ; 16998 return 0; 16999} 17000_ACEOF 17001if ac_fn_c_try_link "$LINENO"; then : 17002 ac_cv_lib_clang_cpp_main=yes 17003else 17004 ac_cv_lib_clang_cpp_main=no 17005fi 17006rm -f core conftest.err conftest.$ac_objext \ 17007 conftest$ac_exeext conftest.$ac_ext 17008LIBS=$ac_check_lib_save_LIBS 17009fi 17010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clang_cpp_main" >&5 17011$as_echo "$ac_cv_lib_clang_cpp_main" >&6; } 17012if test "x$ac_cv_lib_clang_cpp_main" = xyes; then : 17013 have_lib_clang=yes 17014else 17015 have_lib_clang=no 17016fi 17017 17018if test "$have_lib_clang" = yes; then 17019 CLANG_LIBS="-lclang-cpp $CLANG_LIBS" 17020else 17021 CLANG_LIBS="-lclangBasic -lclangDriver $CLANG_LIBS" 17022 CLANG_LIBS="-lclangAnalysis -lclangAST -lclangLex $CLANG_LIBS" 17023 LDFLAGS="$CLANG_LDFLAGS $CLANG_LIBS $SAVE_LDFLAGS" 17024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lclangEdit" >&5 17025$as_echo_n "checking for main in -lclangEdit... " >&6; } 17026if ${ac_cv_lib_clangEdit_main+:} false; then : 17027 $as_echo_n "(cached) " >&6 17028else 17029 ac_check_lib_save_LIBS=$LIBS 17030LIBS="-lclangEdit $LIBS" 17031cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17032/* end confdefs.h. */ 17033 17034 17035int 17036main () 17037{ 17038return main (); 17039 ; 17040 return 0; 17041} 17042_ACEOF 17043if ac_fn_c_try_link "$LINENO"; then : 17044 ac_cv_lib_clangEdit_main=yes 17045else 17046 ac_cv_lib_clangEdit_main=no 17047fi 17048rm -f core conftest.err conftest.$ac_objext \ 17049 conftest$ac_exeext conftest.$ac_ext 17050LIBS=$ac_check_lib_save_LIBS 17051fi 17052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clangEdit_main" >&5 17053$as_echo "$ac_cv_lib_clangEdit_main" >&6; } 17054if test "x$ac_cv_lib_clangEdit_main" = xyes; then : 17055 LIB_CLANG_EDIT=-lclangEdit 17056fi 17057 17058 CLANG_LIBS="$LIB_CLANG_EDIT $CLANG_LIBS" 17059 CLANG_LIBS="-lclangParse -lclangSema $CLANG_LIBS" 17060 CLANG_LIBS="-lclangFrontend -lclangSerialization $CLANG_LIBS" 17061fi 17062 17063LDFLAGS="$SAVE_LDFLAGS" 17064 17065 17066 17067 17068 17069 17070# Check whether --with-isl was given. 17071if test "${with_isl+set}" = set; then : 17072 withval=$with_isl; 17073fi 17074 17075case "system" in 17076build|bundled|system) 17077 17078# Check whether --with-isl_prefix was given. 17079if test "${with_isl_prefix+set}" = set; then : 17080 withval=$with_isl_prefix; 17081fi 17082 17083 17084# Check whether --with-isl_exec_prefix was given. 17085if test "${with_isl_exec_prefix+set}" = set; then : 17086 withval=$with_isl_exec_prefix; 17087fi 17088 17089esac 17090 17091# Check whether --with-isl_builddir was given. 17092if test "${with_isl_builddir+set}" = set; then : 17093 withval=$with_isl_builddir; 17094fi 17095 17096if test "x$with_isl_prefix" != "x" -a "x$with_isl_exec_prefix" = "x"; then 17097 with_isl_exec_prefix=$with_isl_prefix 17098fi 17099if test "x$with_isl_prefix" != "x" -o "x$with_isl_exec_prefix" != "x"; then 17100 if test "x$with_isl" != "x" -a "x$with_isl" != "xsystem"; then 17101 as_fn_error $? "Setting $with_isl_prefix implies use of system isl" "$LINENO" 5 17102 fi 17103 with_isl="system" 17104fi 17105if test "x$with_isl_builddir" != "x"; then 17106 if test "x$with_isl" != "x" -a "x$with_isl" != "xbuild"; then 17107 as_fn_error $? "Setting $with_isl_builddir implies use of build isl" "$LINENO" 5 17108 fi 17109 with_isl="build" 17110 isl_srcdir=`echo @abs_srcdir@ | $with_isl_builddir/config.status --file=-` 17111 { $as_echo "$as_me:${as_lineno-$LINENO}: isl sources in $isl_srcdir" >&5 17112$as_echo "$as_me: isl sources in $isl_srcdir" >&6;} 17113fi 17114if test "x$with_isl_exec_prefix" != "x"; then 17115 export PKG_CONFIG_PATH="$with_isl_exec_prefix/lib/pkgconfig${PKG_CONFIG_PATH+:$PKG_CONFIG_PATH}" 17116fi 17117case "$with_isl" in 17118build|bundled|system) 17119 ;; 17120*) 17121 case "bundled" in 17122 bundled) 17123 if test -d $srcdir/.git -a \ 17124 -d $srcdir/isl -a \ 17125 "`cd $srcdir; git submodule status isl | cut -c1`" = '-'; then 17126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git repo detected, but submodule isl not initialized" >&5 17127$as_echo "$as_me: WARNING: git repo detected, but submodule isl not initialized" >&2;} 17128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You may want to run" >&5 17129$as_echo "$as_me: WARNING: You may want to run" >&2;} 17130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git submodule init" >&5 17131$as_echo "$as_me: WARNING: git submodule init" >&2;} 17132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git submodule update" >&5 17133$as_echo "$as_me: WARNING: git submodule update" >&2;} 17134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sh autogen.sh" >&5 17135$as_echo "$as_me: WARNING: sh autogen.sh" >&2;} 17136 fi 17137 if test -f $srcdir/isl/configure; then 17138 with_isl="bundled" 17139 else 17140 case "system" in 17141 build|bundled|system) 17142 with_isl="system" 17143 ;; 17144 *) 17145 with_isl="no" 17146 ;; 17147 esac 17148 fi 17149 ;; 17150 *) 17151 with_isl="bundled" 17152 ;; 17153 esac 17154 ;; 17155esac 17156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which isl to use" >&5 17157$as_echo_n "checking which isl to use... " >&6; } 17158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_isl" >&5 17159$as_echo "$with_isl" >&6; } 17160 17161 17162 17163 if test $with_isl = bundled; then 17164 BUNDLED_ISL_TRUE= 17165 BUNDLED_ISL_FALSE='#' 17166else 17167 BUNDLED_ISL_TRUE='#' 17168 BUNDLED_ISL_FALSE= 17169fi 17170 17171 17172 17173 17174 17175 17176case "$with_isl" in 17177bundled) 17178 ISL_CFLAGS="-I\$(top_srcdir)/isl/include -I\$(top_builddir)/isl/include" 17179 ISL_CFLAGS="$ISL_CFLAGS" 17180 ISL_SRCDIR="$srcdir/isl" 17181 ISL_BUILDDIR=isl 17182 ;; 17183build) 17184 ISL_SRCDIR="$isl_srcdir" 17185 ISL_BUILDDIR=`echo @abs_builddir@ | $with_isl_builddir/config.status --file=-` 17186 ISL_CFLAGS="-I$isl_srcdir/include -I$ISL_BUILDDIR/include" 17187 ISL_CFLAGS="$ISL_CFLAGS" 17188 ISL_LIBS="$with_isl_builddir/libisl.la" 17189 ;; 17190system) 17191 17192 17193 17194 17195 17196 17197 17198if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 17199 if test -n "$ac_tool_prefix"; then 17200 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 17201set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 17202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17203$as_echo_n "checking for $ac_word... " >&6; } 17204if ${ac_cv_path_PKG_CONFIG+:} false; then : 17205 $as_echo_n "(cached) " >&6 17206else 17207 case $PKG_CONFIG in 17208 [\\/]* | ?:[\\/]*) 17209 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 17210 ;; 17211 *) 17212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17213for as_dir in $PATH 17214do 17215 IFS=$as_save_IFS 17216 test -z "$as_dir" && as_dir=. 17217 for ac_exec_ext in '' $ac_executable_extensions; do 17218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17219 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 17220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17221 break 2 17222 fi 17223done 17224 done 17225IFS=$as_save_IFS 17226 17227 ;; 17228esac 17229fi 17230PKG_CONFIG=$ac_cv_path_PKG_CONFIG 17231if test -n "$PKG_CONFIG"; then 17232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 17233$as_echo "$PKG_CONFIG" >&6; } 17234else 17235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17236$as_echo "no" >&6; } 17237fi 17238 17239 17240fi 17241if test -z "$ac_cv_path_PKG_CONFIG"; then 17242 ac_pt_PKG_CONFIG=$PKG_CONFIG 17243 # Extract the first word of "pkg-config", so it can be a program name with args. 17244set dummy pkg-config; ac_word=$2 17245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17246$as_echo_n "checking for $ac_word... " >&6; } 17247if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 17248 $as_echo_n "(cached) " >&6 17249else 17250 case $ac_pt_PKG_CONFIG in 17251 [\\/]* | ?:[\\/]*) 17252 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 17253 ;; 17254 *) 17255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17256for as_dir in $PATH 17257do 17258 IFS=$as_save_IFS 17259 test -z "$as_dir" && as_dir=. 17260 for ac_exec_ext in '' $ac_executable_extensions; do 17261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17262 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 17263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17264 break 2 17265 fi 17266done 17267 done 17268IFS=$as_save_IFS 17269 17270 ;; 17271esac 17272fi 17273ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 17274if test -n "$ac_pt_PKG_CONFIG"; then 17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 17276$as_echo "$ac_pt_PKG_CONFIG" >&6; } 17277else 17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17279$as_echo "no" >&6; } 17280fi 17281 17282 if test "x$ac_pt_PKG_CONFIG" = x; then 17283 PKG_CONFIG="" 17284 else 17285 case $cross_compiling:$ac_tool_warned in 17286yes:) 17287{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17288$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17289ac_tool_warned=yes ;; 17290esac 17291 PKG_CONFIG=$ac_pt_PKG_CONFIG 17292 fi 17293else 17294 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 17295fi 17296 17297fi 17298if test -n "$PKG_CONFIG"; then 17299 _pkg_min_version=0.9.0 17300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 17301$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 17302 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17304$as_echo "yes" >&6; } 17305 else 17306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17307$as_echo "no" >&6; } 17308 PKG_CONFIG="" 17309 fi 17310fi 17311 17312pkg_failed=no 17313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISL" >&5 17314$as_echo_n "checking for ISL... " >&6; } 17315 17316if test -n "$ISL_CFLAGS"; then 17317 pkg_cv_ISL_CFLAGS="$ISL_CFLAGS" 17318 elif test -n "$PKG_CONFIG"; then 17319 if test -n "$PKG_CONFIG" && \ 17320 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"isl\""; } >&5 17321 ($PKG_CONFIG --exists --print-errors "isl") 2>&5 17322 ac_status=$? 17323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17324 test $ac_status = 0; }; then 17325 pkg_cv_ISL_CFLAGS=`$PKG_CONFIG --cflags "isl" 2>/dev/null` 17326 test "x$?" != "x0" && pkg_failed=yes 17327else 17328 pkg_failed=yes 17329fi 17330 else 17331 pkg_failed=untried 17332fi 17333if test -n "$ISL_LIBS"; then 17334 pkg_cv_ISL_LIBS="$ISL_LIBS" 17335 elif test -n "$PKG_CONFIG"; then 17336 if test -n "$PKG_CONFIG" && \ 17337 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"isl\""; } >&5 17338 ($PKG_CONFIG --exists --print-errors "isl") 2>&5 17339 ac_status=$? 17340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17341 test $ac_status = 0; }; then 17342 pkg_cv_ISL_LIBS=`$PKG_CONFIG --libs "isl" 2>/dev/null` 17343 test "x$?" != "x0" && pkg_failed=yes 17344else 17345 pkg_failed=yes 17346fi 17347 else 17348 pkg_failed=untried 17349fi 17350 17351 17352 17353if test $pkg_failed = yes; then 17354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17355$as_echo "no" >&6; } 17356 17357if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17358 _pkg_short_errors_supported=yes 17359else 17360 _pkg_short_errors_supported=no 17361fi 17362 if test $_pkg_short_errors_supported = yes; then 17363 ISL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "isl" 2>&1` 17364 else 17365 ISL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "isl" 2>&1` 17366 fi 17367 # Put the nasty error message in config.log where it belongs 17368 echo "$ISL_PKG_ERRORS" >&5 17369 17370 as_fn_error $? "Package requirements (isl) were not met: 17371 17372$ISL_PKG_ERRORS 17373 17374Consider adjusting the PKG_CONFIG_PATH environment variable if you 17375installed software in a non-standard prefix. 17376 17377Alternatively, you may set the environment variables ISL_CFLAGS 17378and ISL_LIBS to avoid the need to call pkg-config. 17379See the pkg-config man page for more details." "$LINENO" 5 17380elif test $pkg_failed = untried; then 17381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17382$as_echo "no" >&6; } 17383 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17384$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17385as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17386is in your PATH or set the PKG_CONFIG environment variable to the full 17387path to pkg-config. 17388 17389Alternatively, you may set the environment variables ISL_CFLAGS 17390and ISL_LIBS to avoid the need to call pkg-config. 17391See the pkg-config man page for more details. 17392 17393To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17394See \`config.log' for more details" "$LINENO" 5; } 17395else 17396 ISL_CFLAGS=$pkg_cv_ISL_CFLAGS 17397 ISL_LIBS=$pkg_cv_ISL_LIBS 17398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17399$as_echo "yes" >&6; } 17400 17401fi 17402 PACKAGE_CFLAGS_ISL="$ISL_CFLAGS" 17403esac 17404 if test "x$ISL_BUILDDIR" != "x"; then 17405 HAVE_ISL_BUILDDIR_TRUE= 17406 HAVE_ISL_BUILDDIR_FALSE='#' 17407else 17408 HAVE_ISL_BUILDDIR_TRUE='#' 17409 HAVE_ISL_BUILDDIR_FALSE= 17410fi 17411 17412 17413 17414 17415 17416 17417# Check whether --with-libyaml was given. 17418if test "${with_libyaml+set}" = set; then : 17419 withval=$with_libyaml; 17420fi 17421 17422case "system" in 17423system|no) 17424 17425# Check whether --with-libyaml_prefix was given. 17426if test "${with_libyaml_prefix+set}" = set; then : 17427 withval=$with_libyaml_prefix; 17428fi 17429 17430 17431# Check whether --with-libyaml_exec_prefix was given. 17432if test "${with_libyaml_exec_prefix+set}" = set; then : 17433 withval=$with_libyaml_exec_prefix; 17434fi 17435 17436esac 17437 17438if test "x$with_libyaml_prefix" != "x" -a "x$with_libyaml_exec_prefix" = "x"; then 17439 with_libyaml_exec_prefix=$with_libyaml_prefix 17440fi 17441if test "x$with_libyaml_prefix" != "x" -o "x$with_libyaml_exec_prefix" != "x"; then 17442 if test "x$with_libyaml" != "x" -a "x$with_libyaml" != "xsystem"; then 17443 as_fn_error $? "Setting $with_libyaml_prefix implies use of system libyaml" "$LINENO" 5 17444 fi 17445 with_libyaml="system" 17446fi 17447if test "x$with_libyaml_builddir" != "x"; then 17448 if test "x$with_libyaml" != "x" -a "x$with_libyaml" != "xbuild"; then 17449 as_fn_error $? "Setting $with_libyaml_builddir implies use of build libyaml" "$LINENO" 5 17450 fi 17451 with_libyaml="build" 17452 libyaml_srcdir=`echo @abs_srcdir@ | $with_libyaml_builddir/config.status --file=-` 17453 { $as_echo "$as_me:${as_lineno-$LINENO}: libyaml sources in $libyaml_srcdir" >&5 17454$as_echo "$as_me: libyaml sources in $libyaml_srcdir" >&6;} 17455fi 17456if test "x$with_libyaml_exec_prefix" != "x"; then 17457 export PKG_CONFIG_PATH="$with_libyaml_exec_prefix/lib/pkgconfig${PKG_CONFIG_PATH+:$PKG_CONFIG_PATH}" 17458fi 17459case "$with_libyaml" in 17460system|no) 17461 ;; 17462*) 17463 case "system" in 17464 bundled) 17465 if test -d $srcdir/.git -a \ 17466 -d $srcdir/libyaml -a \ 17467 "`cd $srcdir; git submodule status libyaml | cut -c1`" = '-'; then 17468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git repo detected, but submodule libyaml not initialized" >&5 17469$as_echo "$as_me: WARNING: git repo detected, but submodule libyaml not initialized" >&2;} 17470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You may want to run" >&5 17471$as_echo "$as_me: WARNING: You may want to run" >&2;} 17472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git submodule init" >&5 17473$as_echo "$as_me: WARNING: git submodule init" >&2;} 17474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git submodule update" >&5 17475$as_echo "$as_me: WARNING: git submodule update" >&2;} 17476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sh autogen.sh" >&5 17477$as_echo "$as_me: WARNING: sh autogen.sh" >&2;} 17478 fi 17479 if test -f $srcdir/libyaml/configure; then 17480 with_libyaml="bundled" 17481 else 17482 case "system" in 17483 system|no) 17484 with_libyaml="system" 17485 ;; 17486 *) 17487 with_libyaml="no" 17488 ;; 17489 esac 17490 fi 17491 ;; 17492 *) 17493 with_libyaml="system" 17494 ;; 17495 esac 17496 ;; 17497esac 17498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which libyaml to use" >&5 17499$as_echo_n "checking which libyaml to use... " >&6; } 17500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libyaml" >&5 17501$as_echo "$with_libyaml" >&6; } 17502 17503 17504 17505 17506 17507if test "x$with_libyaml_prefix" != "x"; then 17508 LIBYAML_CPPFLAGS="-I$with_libyaml_prefix/include" 17509fi 17510if test "x$with_libyaml_exec_prefix" != "x"; then 17511 LIBYAML_LDFLAGS="-L$with_libyaml_exec_prefix/lib" 17512fi 17513 17514if test "$with_libyaml" = "system"; then 17515 SAVE_CPPFLAGS=$CPPFLAGS 17516 CPPFLAGS="$CPPFLAGS $LIBYAML_CPPFLAGS" 17517 ac_fn_c_check_header_mongrel "$LINENO" "yaml.h" "ac_cv_header_yaml_h" "$ac_includes_default" 17518if test "x$ac_cv_header_yaml_h" = xyes; then : 17519 17520else 17521 with_libyaml="no" 17522fi 17523 17524 17525 CPPFLAGS="$SAVE_CPPFLAGS" 17526fi 17527 17528 17529 17530 17531 17532if test "$with_libyaml" != "no"; then 17533 extra_bin_programs="pet" 17534 extra_noinst_programs="pet_scop_cmp" 17535 extra_tests="pet_test.sh" 17536fi 17537if test "$with_isl" != "system"; then 17538 extra_tests="$extra_tests codegen_test.sh" 17539fi 17540 17541PACKAGE_CFLAGS="$PACKAGE_CFLAGS_ISL" 17542PACKAGE_LIBS="-lpet -lisl" 17543 17544# we need the expanded forms... 17545test "x$prefix" = xNONE && prefix=$ac_default_prefix 17546test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17547 17548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig libname" >&5 17549$as_echo_n "checking our pkgconfig libname... " >&6; } 17550test ".$ax_create_pkgconfig_libname" != "." || \ 17551ax_create_pkgconfig_libname="${PACKAGE_NAME}" 17552test ".$ax_create_pkgconfig_libname" != "." || \ 17553ax_create_pkgconfig_libname="$PACKAGE" 17554ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"` 17555ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"` 17556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libname" >&5 17557$as_echo "$ax_create_pkgconfig_libname" >&6; } 17558 17559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig version" >&5 17560$as_echo_n "checking our pkgconfig version... " >&6; } 17561test ".$ax_create_pkgconfig_version" != "." || \ 17562ax_create_pkgconfig_version="${PACKAGE_VERSION}" 17563test ".$ax_create_pkgconfig_version" != "." || \ 17564ax_create_pkgconfig_version="$VERSION" 17565ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"` 17566ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"` 17567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_version" >&5 17568$as_echo "$ax_create_pkgconfig_version" >&6; } 17569 17570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libdir" >&5 17571$as_echo_n "checking our pkgconfig_libdir... " >&6; } 17572test ".$pkgconfig_libdir" = "." && \ 17573pkgconfig_libdir='${libdir}/pkgconfig' 17574ax_create_pkgconfig_libdir=`eval echo "$pkgconfig_libdir"` 17575ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"` 17576ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"` 17577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libdir" >&5 17578$as_echo "$pkgconfig_libdir" >&6; } 17579test "$pkgconfig_libdir" != "$ax_create_pkgconfig_libdir" && ( 17580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&5 17581$as_echo "expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&6; }) 17582 17583 17584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libfile" >&5 17585$as_echo_n "checking our pkgconfig_libfile... " >&6; } 17586test ".$pkgconfig_libfile" != "." || \ 17587pkgconfig_libfile="$ax_create_pkgconfig_libname.pc" 17588ax_create_pkgconfig_libfile=`eval echo "$pkgconfig_libfile"` 17589ax_create_pkgconfig_libfile=`eval echo "$ax_create_pkgconfig_libfile"` 17590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libfile" >&5 17591$as_echo "$pkgconfig_libfile" >&6; } 17592test "$pkgconfig_libfile" != "$ax_create_pkgconfig_libfile" && ( 17593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&5 17594$as_echo "expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&6; }) 17595 17596 17597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our package / suffix" >&5 17598$as_echo_n "checking our package / suffix... " >&6; } 17599ax_create_pkgconfig_suffix="$program_suffix" 17600test ".$ax_create_pkgconfig_suffix" != .NONE || ax_create_pkgconfig_suffix="" 17601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&5 17602$as_echo "${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&6; } 17603 17604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig description" >&5 17605$as_echo_n "checking our pkgconfig description... " >&6; } 17606ax_create_pkgconfig_description="$PACKAGE_SUMMARY" 17607test ".$ax_create_pkgconfig_description" != "." || \ 17608ax_create_pkgconfig_description="$ax_create_pkgconfig_libname Library" 17609ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"` 17610ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"` 17611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_description" >&5 17612$as_echo "$ax_create_pkgconfig_description" >&6; } 17613 17614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig requires" >&5 17615$as_echo_n "checking our pkgconfig requires... " >&6; } 17616ax_create_pkgconfig_requires="$PACKAGE_REQUIRES" 17617ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"` 17618ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"` 17619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_requires" >&5 17620$as_echo "$ax_create_pkgconfig_requires" >&6; } 17621 17622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ext libs" >&5 17623$as_echo_n "checking our pkgconfig ext libs... " >&6; } 17624ax_create_pkgconfig_pkglibs="$PACKAGE_LIBS" 17625test ".$ax_create_pkgconfig_pkglibs" != "." || ax_create_pkgconfig_pkglibs="-l$ax_create_pkgconfig_libname" 17626ax_create_pkgconfig_libs="$ax_create_pkgconfig_pkglibs $LIBS" 17627ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"` 17628ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"` 17629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libs" >&5 17630$as_echo "$ax_create_pkgconfig_libs" >&6; } 17631 17632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig cppflags" >&5 17633$as_echo_n "checking our pkgconfig cppflags... " >&6; } 17634ax_create_pkgconfig_cppflags="$CPPFLAGS $PACKAGE_CFLAGS" 17635ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"` 17636ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"` 17637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_cppflags" >&5 17638$as_echo "$ax_create_pkgconfig_cppflags" >&6; } 17639 17640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ldflags" >&5 17641$as_echo_n "checking our pkgconfig ldflags... " >&6; } 17642ax_create_pkgconfig_ldflags="$LDFLAGS $PACKAGE_LDFLAGS" 17643ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"` 17644ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"` 17645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_ldflags" >&5 17646$as_echo "$ax_create_pkgconfig_ldflags" >&6; } 17647 17648test ".$ax_create_pkgconfig_generate" != "." || \ 17649ax_create_pkgconfig_generate="$ax_create_pkgconfig_libname.pc" 17650ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"` 17651ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"` 17652test "$pkgconfig_libfile" != "$ax_create_pkgconfig_generate" && ( 17653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: generate the pkgconfig later... $ax_create_pkgconfig_generate" >&5 17654$as_echo "generate the pkgconfig later... $ax_create_pkgconfig_generate" >&6; }) 17655 17656if test ".$ax_create_pkgconfig_src_libdir" = "." ; then 17657ax_create_pkgconfig_src_libdir=`pwd` 17658ax_create_pkgconfig_src_libdir=`$as_dirname -- "$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" || 17659$as_expr X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17660 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)[^/]' \| \ 17661 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)$' \| \ 17662 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(/\)' \| . 2>/dev/null || 17663$as_echo X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" | 17664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17665 s//\1/ 17666 q 17667 } 17668 /^X\(\/\/\)[^/].*/{ 17669 s//\1/ 17670 q 17671 } 17672 /^X\(\/\/\)$/{ 17673 s//\1/ 17674 q 17675 } 17676 /^X\(\/\).*/{ 17677 s//\1/ 17678 q 17679 } 17680 s/.*/./; q'` 17681test ! -d $ax_create_pkgconfig_src_libdir/src || \ 17682ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/src" 17683case ".$objdir" in 17684*libs) ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/$objdir" ;; esac 17685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&5 17686$as_echo "noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&6; } 17687fi 17688 17689if test ".$ax_create_pkgconfig_src_headers" = "." ; then 17690ax_create_pkgconfig_src_headers=`pwd` 17691v="$ac_top_srcdir" ; 17692test ".$v" != "." || v="$ax_spec_dir" 17693test ".$v" != "." || v="$srcdir" 17694case "$v" in /*) ax_create_pkgconfig_src_headers="" ;; esac 17695ax_create_pkgconfig_src_headers=`$as_dirname -- "$ax_create_pkgconfig_src_headers/$v/x" || 17696$as_expr X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17697 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)[^/]' \| \ 17698 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)$' \| \ 17699 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(/\)' \| . 2>/dev/null || 17700$as_echo X"$ax_create_pkgconfig_src_headers/$v/x" | 17701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17702 s//\1/ 17703 q 17704 } 17705 /^X\(\/\/\)[^/].*/{ 17706 s//\1/ 17707 q 17708 } 17709 /^X\(\/\/\)$/{ 17710 s//\1/ 17711 q 17712 } 17713 /^X\(\/\).*/{ 17714 s//\1/ 17715 q 17716 } 17717 s/.*/./; q'` 17718test ! -d $ax_create_pkgconfig_src_headers/include || \ 17719ax_create_pkgconfig_src_headers="$ax_create_pkgconfig_src_headers/include" 17720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&5 17721$as_echo "noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&6; } 17722fi 17723 17724 17725ac_config_commands="$ac_config_commands $ax_create_pkgconfig_generate" 17726 17727 17728 17729 17730 17731 17732 if test -f $srcdir/.git; then 17733 gitdir=`GIT_DIR=$srcdir/.git git rev-parse --git-dir` 17734 GIT_HEAD="$gitdir/index" 17735 GIT_REPO="$gitdir" 17736 GIT_HEAD_ID=`GIT_DIR=$GIT_REPO git describe --always` 17737 elif test -f $srcdir/.git/HEAD; then 17738 GIT_HEAD="$srcdir/.git/index" 17739 GIT_REPO="$srcdir/.git" 17740 GIT_HEAD_ID=`GIT_DIR=$GIT_REPO git describe --always` 17741 elif test -f $srcdir/GIT_HEAD_ID; then 17742 GIT_HEAD_ID=`cat $srcdir/GIT_HEAD_ID` 17743 else 17744 mysrcdir=`(cd $srcdir; pwd)` 17745 head=`basename $mysrcdir | sed -e 's/.*-//'` 17746 head2=`echo $head | sed -e 's/^0-9a-f//'` 17747 head3=`echo $head2 | sed -e 's/........................................//'` 17748 if test "x$head3" = "x" -a "x$head" = "x$head2"; then 17749 GIT_HEAD_ID="$head" 17750 else 17751 GIT_HEAD_ID="UNKNOWN" 17752 fi 17753 fi 17754 if test -z "$GIT_REPO" ; then 17755 GIT_HEAD_VERSION="$GIT_HEAD_ID" 17756 else 17757 GIT_HEAD_VERSION="\`GIT_DIR=$GIT_REPO git describe --always\`" 17758 fi 17759 17760 17761CONFIG_STATUS_DEPENDENCIES=$LLVM_CONFIG 17762 17763ac_config_headers="$ac_config_headers config.h" 17764 17765ac_config_files="$ac_config_files Makefile" 17766 17767ac_config_files="$ac_config_files pet_test.sh" 17768 17769ac_config_files="$ac_config_files codegen_test.sh" 17770 17771ac_config_files="$ac_config_files all.c" 17772 17773if test $with_isl = bundled; then 17774 17775 17776subdirs="$subdirs isl" 17777 17778fi 17779 17780cat >confcache <<\_ACEOF 17781# This file is a shell script that caches the results of configure 17782# tests run on this system so they can be shared between configure 17783# scripts and configure runs, see configure's option --config-cache. 17784# It is not useful on other systems. If it contains results you don't 17785# want to keep, you may remove or edit it. 17786# 17787# config.status only pays attention to the cache file if you give it 17788# the --recheck option to rerun configure. 17789# 17790# `ac_cv_env_foo' variables (set or unset) will be overridden when 17791# loading this file, other *unset* `ac_cv_foo' will be assigned the 17792# following values. 17793 17794_ACEOF 17795 17796# The following way of writing the cache mishandles newlines in values, 17797# but we know of no workaround that is simple, portable, and efficient. 17798# So, we kill variables containing newlines. 17799# Ultrix sh set writes to stderr and can't be redirected directly, 17800# and sets the high bit in the cache file unless we assign to the vars. 17801( 17802 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17803 eval ac_val=\$$ac_var 17804 case $ac_val in #( 17805 *${as_nl}*) 17806 case $ac_var in #( 17807 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17808$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17809 esac 17810 case $ac_var in #( 17811 _ | IFS | as_nl) ;; #( 17812 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17813 *) { eval $ac_var=; unset $ac_var;} ;; 17814 esac ;; 17815 esac 17816 done 17817 17818 (set) 2>&1 | 17819 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17820 *${as_nl}ac_space=\ *) 17821 # `set' does not quote correctly, so add quotes: double-quote 17822 # substitution turns \\\\ into \\, and sed turns \\ into \. 17823 sed -n \ 17824 "s/'/'\\\\''/g; 17825 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17826 ;; #( 17827 *) 17828 # `set' quotes correctly as required by POSIX, so do not add quotes. 17829 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17830 ;; 17831 esac | 17832 sort 17833) | 17834 sed ' 17835 /^ac_cv_env_/b end 17836 t clear 17837 :clear 17838 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17839 t end 17840 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17841 :end' >>confcache 17842if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17843 if test -w "$cache_file"; then 17844 if test "x$cache_file" != "x/dev/null"; then 17845 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17846$as_echo "$as_me: updating cache $cache_file" >&6;} 17847 if test ! -f "$cache_file" || test -h "$cache_file"; then 17848 cat confcache >"$cache_file" 17849 else 17850 case $cache_file in #( 17851 */* | ?:*) 17852 mv -f confcache "$cache_file"$$ && 17853 mv -f "$cache_file"$$ "$cache_file" ;; #( 17854 *) 17855 mv -f confcache "$cache_file" ;; 17856 esac 17857 fi 17858 fi 17859 else 17860 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17861$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17862 fi 17863fi 17864rm -f confcache 17865 17866test "x$prefix" = xNONE && prefix=$ac_default_prefix 17867# Let make expand exec_prefix. 17868test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17869 17870DEFS=-DHAVE_CONFIG_H 17871 17872ac_libobjs= 17873ac_ltlibobjs= 17874U= 17875for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17876 # 1. Remove the extension, and $U if already installed. 17877 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17878 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17879 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17880 # will be set to the directory where LIBOBJS objects are built. 17881 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17882 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17883done 17884LIBOBJS=$ac_libobjs 17885 17886LTLIBOBJS=$ac_ltlibobjs 17887 17888 17889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 17890$as_echo_n "checking that generated files are newer than configure... " >&6; } 17891 if test -n "$am_sleep_pid"; then 17892 # Hide warnings about reused PIDs. 17893 wait $am_sleep_pid 2>/dev/null 17894 fi 17895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 17896$as_echo "done" >&6; } 17897 if test -n "$EXEEXT"; then 17898 am__EXEEXT_TRUE= 17899 am__EXEEXT_FALSE='#' 17900else 17901 am__EXEEXT_TRUE='#' 17902 am__EXEEXT_FALSE= 17903fi 17904 17905if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17906 as_fn_error $? "conditional \"AMDEP\" was never defined. 17907Usually this means the macro was only invoked conditionally." "$LINENO" 5 17908fi 17909if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17910 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17911Usually this means the macro was only invoked conditionally." "$LINENO" 5 17912fi 17913if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 17914 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 17915Usually this means the macro was only invoked conditionally." "$LINENO" 5 17916fi 17917if test -z "${BUNDLED_ISL_TRUE}" && test -z "${BUNDLED_ISL_FALSE}"; then 17918 as_fn_error $? "conditional \"BUNDLED_ISL\" was never defined. 17919Usually this means the macro was only invoked conditionally." "$LINENO" 5 17920fi 17921if test -z "${HAVE_ISL_BUILDDIR_TRUE}" && test -z "${HAVE_ISL_BUILDDIR_FALSE}"; then 17922 as_fn_error $? "conditional \"HAVE_ISL_BUILDDIR\" was never defined. 17923Usually this means the macro was only invoked conditionally." "$LINENO" 5 17924fi 17925 17926: "${CONFIG_STATUS=./config.status}" 17927ac_write_fail=0 17928ac_clean_files_save=$ac_clean_files 17929ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17930{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17931$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17932as_write_fail=0 17933cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17934#! $SHELL 17935# Generated by $as_me. 17936# Run this file to recreate the current configuration. 17937# Compiler output produced by configure, useful for debugging 17938# configure, is in config.log if it exists. 17939 17940debug=false 17941ac_cs_recheck=false 17942ac_cs_silent=false 17943 17944SHELL=\${CONFIG_SHELL-$SHELL} 17945export SHELL 17946_ASEOF 17947cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17948## -------------------- ## 17949## M4sh Initialization. ## 17950## -------------------- ## 17951 17952# Be more Bourne compatible 17953DUALCASE=1; export DUALCASE # for MKS sh 17954if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17955 emulate sh 17956 NULLCMD=: 17957 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17958 # is contrary to our usage. Disable this feature. 17959 alias -g '${1+"$@"}'='"$@"' 17960 setopt NO_GLOB_SUBST 17961else 17962 case `(set -o) 2>/dev/null` in #( 17963 *posix*) : 17964 set -o posix ;; #( 17965 *) : 17966 ;; 17967esac 17968fi 17969 17970 17971as_nl=' 17972' 17973export as_nl 17974# Printing a long string crashes Solaris 7 /usr/bin/printf. 17975as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17976as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17977as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17978# Prefer a ksh shell builtin over an external printf program on Solaris, 17979# but without wasting forks for bash or zsh. 17980if test -z "$BASH_VERSION$ZSH_VERSION" \ 17981 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17982 as_echo='print -r --' 17983 as_echo_n='print -rn --' 17984elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17985 as_echo='printf %s\n' 17986 as_echo_n='printf %s' 17987else 17988 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17989 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17990 as_echo_n='/usr/ucb/echo -n' 17991 else 17992 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17993 as_echo_n_body='eval 17994 arg=$1; 17995 case $arg in #( 17996 *"$as_nl"*) 17997 expr "X$arg" : "X\\(.*\\)$as_nl"; 17998 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17999 esac; 18000 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18001 ' 18002 export as_echo_n_body 18003 as_echo_n='sh -c $as_echo_n_body as_echo' 18004 fi 18005 export as_echo_body 18006 as_echo='sh -c $as_echo_body as_echo' 18007fi 18008 18009# The user is always right. 18010if test "${PATH_SEPARATOR+set}" != set; then 18011 PATH_SEPARATOR=: 18012 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18013 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18014 PATH_SEPARATOR=';' 18015 } 18016fi 18017 18018 18019# IFS 18020# We need space, tab and new line, in precisely that order. Quoting is 18021# there to prevent editors from complaining about space-tab. 18022# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18023# splitting by setting IFS to empty value.) 18024IFS=" "" $as_nl" 18025 18026# Find who we are. Look in the path if we contain no directory separator. 18027as_myself= 18028case $0 in #(( 18029 *[\\/]* ) as_myself=$0 ;; 18030 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18031for as_dir in $PATH 18032do 18033 IFS=$as_save_IFS 18034 test -z "$as_dir" && as_dir=. 18035 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18036 done 18037IFS=$as_save_IFS 18038 18039 ;; 18040esac 18041# We did not find ourselves, most probably we were run as `sh COMMAND' 18042# in which case we are not to be found in the path. 18043if test "x$as_myself" = x; then 18044 as_myself=$0 18045fi 18046if test ! -f "$as_myself"; then 18047 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18048 exit 1 18049fi 18050 18051# Unset variables that we do not need and which cause bugs (e.g. in 18052# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18053# suppresses any "Segmentation fault" message there. '((' could 18054# trigger a bug in pdksh 5.2.14. 18055for as_var in BASH_ENV ENV MAIL MAILPATH 18056do eval test x\${$as_var+set} = xset \ 18057 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18058done 18059PS1='$ ' 18060PS2='> ' 18061PS4='+ ' 18062 18063# NLS nuisances. 18064LC_ALL=C 18065export LC_ALL 18066LANGUAGE=C 18067export LANGUAGE 18068 18069# CDPATH. 18070(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18071 18072 18073# as_fn_error STATUS ERROR [LINENO LOG_FD] 18074# ---------------------------------------- 18075# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18076# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18077# script with STATUS, using 1 if that was 0. 18078as_fn_error () 18079{ 18080 as_status=$1; test $as_status -eq 0 && as_status=1 18081 if test "$4"; then 18082 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18083 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18084 fi 18085 $as_echo "$as_me: error: $2" >&2 18086 as_fn_exit $as_status 18087} # as_fn_error 18088 18089 18090# as_fn_set_status STATUS 18091# ----------------------- 18092# Set $? to STATUS, without forking. 18093as_fn_set_status () 18094{ 18095 return $1 18096} # as_fn_set_status 18097 18098# as_fn_exit STATUS 18099# ----------------- 18100# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18101as_fn_exit () 18102{ 18103 set +e 18104 as_fn_set_status $1 18105 exit $1 18106} # as_fn_exit 18107 18108# as_fn_unset VAR 18109# --------------- 18110# Portably unset VAR. 18111as_fn_unset () 18112{ 18113 { eval $1=; unset $1;} 18114} 18115as_unset=as_fn_unset 18116# as_fn_append VAR VALUE 18117# ---------------------- 18118# Append the text in VALUE to the end of the definition contained in VAR. Take 18119# advantage of any shell optimizations that allow amortized linear growth over 18120# repeated appends, instead of the typical quadratic growth present in naive 18121# implementations. 18122if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18123 eval 'as_fn_append () 18124 { 18125 eval $1+=\$2 18126 }' 18127else 18128 as_fn_append () 18129 { 18130 eval $1=\$$1\$2 18131 } 18132fi # as_fn_append 18133 18134# as_fn_arith ARG... 18135# ------------------ 18136# Perform arithmetic evaluation on the ARGs, and store the result in the 18137# global $as_val. Take advantage of shells that can avoid forks. The arguments 18138# must be portable across $(()) and expr. 18139if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18140 eval 'as_fn_arith () 18141 { 18142 as_val=$(( $* )) 18143 }' 18144else 18145 as_fn_arith () 18146 { 18147 as_val=`expr "$@" || test $? -eq 1` 18148 } 18149fi # as_fn_arith 18150 18151 18152if expr a : '\(a\)' >/dev/null 2>&1 && 18153 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18154 as_expr=expr 18155else 18156 as_expr=false 18157fi 18158 18159if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18160 as_basename=basename 18161else 18162 as_basename=false 18163fi 18164 18165if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18166 as_dirname=dirname 18167else 18168 as_dirname=false 18169fi 18170 18171as_me=`$as_basename -- "$0" || 18172$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18173 X"$0" : 'X\(//\)$' \| \ 18174 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18175$as_echo X/"$0" | 18176 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18177 s//\1/ 18178 q 18179 } 18180 /^X\/\(\/\/\)$/{ 18181 s//\1/ 18182 q 18183 } 18184 /^X\/\(\/\).*/{ 18185 s//\1/ 18186 q 18187 } 18188 s/.*/./; q'` 18189 18190# Avoid depending upon Character Ranges. 18191as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18192as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18193as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18194as_cr_digits='0123456789' 18195as_cr_alnum=$as_cr_Letters$as_cr_digits 18196 18197ECHO_C= ECHO_N= ECHO_T= 18198case `echo -n x` in #((((( 18199-n*) 18200 case `echo 'xy\c'` in 18201 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18202 xy) ECHO_C='\c';; 18203 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18204 ECHO_T=' ';; 18205 esac;; 18206*) 18207 ECHO_N='-n';; 18208esac 18209 18210rm -f conf$$ conf$$.exe conf$$.file 18211if test -d conf$$.dir; then 18212 rm -f conf$$.dir/conf$$.file 18213else 18214 rm -f conf$$.dir 18215 mkdir conf$$.dir 2>/dev/null 18216fi 18217if (echo >conf$$.file) 2>/dev/null; then 18218 if ln -s conf$$.file conf$$ 2>/dev/null; then 18219 as_ln_s='ln -s' 18220 # ... but there are two gotchas: 18221 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18222 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18223 # In both cases, we have to default to `cp -pR'. 18224 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18225 as_ln_s='cp -pR' 18226 elif ln conf$$.file conf$$ 2>/dev/null; then 18227 as_ln_s=ln 18228 else 18229 as_ln_s='cp -pR' 18230 fi 18231else 18232 as_ln_s='cp -pR' 18233fi 18234rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18235rmdir conf$$.dir 2>/dev/null 18236 18237 18238# as_fn_mkdir_p 18239# ------------- 18240# Create "$as_dir" as a directory, including parents if necessary. 18241as_fn_mkdir_p () 18242{ 18243 18244 case $as_dir in #( 18245 -*) as_dir=./$as_dir;; 18246 esac 18247 test -d "$as_dir" || eval $as_mkdir_p || { 18248 as_dirs= 18249 while :; do 18250 case $as_dir in #( 18251 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18252 *) as_qdir=$as_dir;; 18253 esac 18254 as_dirs="'$as_qdir' $as_dirs" 18255 as_dir=`$as_dirname -- "$as_dir" || 18256$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18257 X"$as_dir" : 'X\(//\)[^/]' \| \ 18258 X"$as_dir" : 'X\(//\)$' \| \ 18259 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18260$as_echo X"$as_dir" | 18261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18262 s//\1/ 18263 q 18264 } 18265 /^X\(\/\/\)[^/].*/{ 18266 s//\1/ 18267 q 18268 } 18269 /^X\(\/\/\)$/{ 18270 s//\1/ 18271 q 18272 } 18273 /^X\(\/\).*/{ 18274 s//\1/ 18275 q 18276 } 18277 s/.*/./; q'` 18278 test -d "$as_dir" && break 18279 done 18280 test -z "$as_dirs" || eval "mkdir $as_dirs" 18281 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18282 18283 18284} # as_fn_mkdir_p 18285if mkdir -p . 2>/dev/null; then 18286 as_mkdir_p='mkdir -p "$as_dir"' 18287else 18288 test -d ./-p && rmdir ./-p 18289 as_mkdir_p=false 18290fi 18291 18292 18293# as_fn_executable_p FILE 18294# ----------------------- 18295# Test if FILE is an executable regular file. 18296as_fn_executable_p () 18297{ 18298 test -f "$1" && test -x "$1" 18299} # as_fn_executable_p 18300as_test_x='test -x' 18301as_executable_p=as_fn_executable_p 18302 18303# Sed expression to map a string onto a valid CPP name. 18304as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18305 18306# Sed expression to map a string onto a valid variable name. 18307as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18308 18309 18310exec 6>&1 18311## ----------------------------------- ## 18312## Main body of $CONFIG_STATUS script. ## 18313## ----------------------------------- ## 18314_ASEOF 18315test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18316 18317cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18318# Save the log message, to keep $0 and so on meaningful, and to 18319# report actual input values of CONFIG_FILES etc. instead of their 18320# values after options handling. 18321ac_log=" 18322This file was extended by pet $as_me 0.11.5, which was 18323generated by GNU Autoconf 2.69. Invocation command line was 18324 18325 CONFIG_FILES = $CONFIG_FILES 18326 CONFIG_HEADERS = $CONFIG_HEADERS 18327 CONFIG_LINKS = $CONFIG_LINKS 18328 CONFIG_COMMANDS = $CONFIG_COMMANDS 18329 $ $0 $@ 18330 18331on `(hostname || uname -n) 2>/dev/null | sed 1q` 18332" 18333 18334_ACEOF 18335 18336case $ac_config_files in *" 18337"*) set x $ac_config_files; shift; ac_config_files=$*;; 18338esac 18339 18340case $ac_config_headers in *" 18341"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18342esac 18343 18344 18345cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18346# Files that config.status was made for. 18347config_files="$ac_config_files" 18348config_headers="$ac_config_headers" 18349config_commands="$ac_config_commands" 18350 18351_ACEOF 18352 18353cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18354ac_cs_usage="\ 18355\`$as_me' instantiates files and other configuration actions 18356from templates according to the current configuration. Unless the files 18357and actions are specified as TAGs, all are instantiated by default. 18358 18359Usage: $0 [OPTION]... [TAG]... 18360 18361 -h, --help print this help, then exit 18362 -V, --version print version number and configuration settings, then exit 18363 --config print configuration, then exit 18364 -q, --quiet, --silent 18365 do not print progress messages 18366 -d, --debug don't remove temporary files 18367 --recheck update $as_me by reconfiguring in the same conditions 18368 --file=FILE[:TEMPLATE] 18369 instantiate the configuration file FILE 18370 --header=FILE[:TEMPLATE] 18371 instantiate the configuration header FILE 18372 18373Configuration files: 18374$config_files 18375 18376Configuration headers: 18377$config_headers 18378 18379Configuration commands: 18380$config_commands 18381 18382Report bugs to <isl-development@googlegroups.com>." 18383 18384_ACEOF 18385cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18386ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18387ac_cs_version="\\ 18388pet config.status 0.11.5 18389configured by $0, generated by GNU Autoconf 2.69, 18390 with options \\"\$ac_cs_config\\" 18391 18392Copyright (C) 2012 Free Software Foundation, Inc. 18393This config.status script is free software; the Free Software Foundation 18394gives unlimited permission to copy, distribute and modify it." 18395 18396ac_pwd='$ac_pwd' 18397srcdir='$srcdir' 18398INSTALL='$INSTALL' 18399MKDIR_P='$MKDIR_P' 18400AWK='$AWK' 18401test -n "\$AWK" || AWK=awk 18402_ACEOF 18403 18404cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18405# The default lists apply if the user does not specify any file. 18406ac_need_defaults=: 18407while test $# != 0 18408do 18409 case $1 in 18410 --*=?*) 18411 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18412 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18413 ac_shift=: 18414 ;; 18415 --*=) 18416 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18417 ac_optarg= 18418 ac_shift=: 18419 ;; 18420 *) 18421 ac_option=$1 18422 ac_optarg=$2 18423 ac_shift=shift 18424 ;; 18425 esac 18426 18427 case $ac_option in 18428 # Handling of the options. 18429 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18430 ac_cs_recheck=: ;; 18431 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18432 $as_echo "$ac_cs_version"; exit ;; 18433 --config | --confi | --conf | --con | --co | --c ) 18434 $as_echo "$ac_cs_config"; exit ;; 18435 --debug | --debu | --deb | --de | --d | -d ) 18436 debug=: ;; 18437 --file | --fil | --fi | --f ) 18438 $ac_shift 18439 case $ac_optarg in 18440 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18441 '') as_fn_error $? "missing file argument" ;; 18442 esac 18443 as_fn_append CONFIG_FILES " '$ac_optarg'" 18444 ac_need_defaults=false;; 18445 --header | --heade | --head | --hea ) 18446 $ac_shift 18447 case $ac_optarg in 18448 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18449 esac 18450 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18451 ac_need_defaults=false;; 18452 --he | --h) 18453 # Conflict between --help and --header 18454 as_fn_error $? "ambiguous option: \`$1' 18455Try \`$0 --help' for more information.";; 18456 --help | --hel | -h ) 18457 $as_echo "$ac_cs_usage"; exit ;; 18458 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18459 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18460 ac_cs_silent=: ;; 18461 18462 # This is an error. 18463 -*) as_fn_error $? "unrecognized option: \`$1' 18464Try \`$0 --help' for more information." ;; 18465 18466 *) as_fn_append ac_config_targets " $1" 18467 ac_need_defaults=false ;; 18468 18469 esac 18470 shift 18471done 18472 18473ac_configure_extra_args= 18474 18475if $ac_cs_silent; then 18476 exec 6>/dev/null 18477 ac_configure_extra_args="$ac_configure_extra_args --silent" 18478fi 18479 18480_ACEOF 18481cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18482if \$ac_cs_recheck; then 18483 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18484 shift 18485 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18486 CONFIG_SHELL='$SHELL' 18487 export CONFIG_SHELL 18488 exec "\$@" 18489fi 18490 18491_ACEOF 18492cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18493exec 5>>config.log 18494{ 18495 echo 18496 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18497## Running $as_me. ## 18498_ASBOX 18499 $as_echo "$ac_log" 18500} >&5 18501 18502_ACEOF 18503cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18504# 18505# INIT-COMMANDS 18506# 18507AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 18508 18509 18510# The HP-UX ksh and POSIX shell print the target directory to stdout 18511# if CDPATH is set. 18512(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18513 18514sed_quote_subst='$sed_quote_subst' 18515double_quote_subst='$double_quote_subst' 18516delay_variable_subst='$delay_variable_subst' 18517macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18518macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18519enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18520enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18521pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18522enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18523shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 18524SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18525ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18526PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 18527host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18528host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18529host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18530build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18531build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18532build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18533SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18534Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18535GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18536EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18537FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18538LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18539NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18540LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18541max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18542ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18543exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18544lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18545lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18546lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18547lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18548lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18549reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18550reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18551OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18552deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18553file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18554file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18555want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18556DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18557sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18558AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18559AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18560archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18561STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18562RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18563old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18564old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18565old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18566lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18567CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18568CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18569compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18570GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18571lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18572lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18573lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 18574lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18575lt_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"`' 18576lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 18577nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18578lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18579lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 18580objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18581MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18582lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18583lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18584lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18585lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18586lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18587need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18588MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18589DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18590NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18591LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18592OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18593OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18594libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18595shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18596extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18597archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18598enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18599export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18600whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18601compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18602old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18603old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18604archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18605archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18606module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18607module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18608with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18609allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18610no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18611hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18612hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18613hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18614hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18615hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18616hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18617hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18618inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18619link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18620always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18621export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18622exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18623include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18624prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18625postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18626file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18627variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18628need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18629need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18630version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18631runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18632shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18633shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18634libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18635library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18636soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18637install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18638postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18639postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18640finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18641finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18642hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18643sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18644configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 18645configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 18646hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18647enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18648enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18649enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18650old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18651striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18652compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 18653predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 18654postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 18655predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 18656postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 18657compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 18658LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 18659reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 18660reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18661old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18662compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 18663GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 18664lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 18665lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 18666lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 18667lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 18668lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 18669archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 18670enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 18671export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18672whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18673compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 18674old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18675old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18676archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18677archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18678module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18679module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18680with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 18681allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 18682no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 18683hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18684hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 18685hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 18686hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 18687hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 18688hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 18689hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 18690inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 18691link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 18692always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 18693export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18694exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 18695include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 18696prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18697postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18698file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 18699hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 18700compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 18701predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 18702postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 18703predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 18704postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 18705compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 18706 18707LTCC='$LTCC' 18708LTCFLAGS='$LTCFLAGS' 18709compiler='$compiler_DEFAULT' 18710 18711# A function that is used when there is no print builtin or printf. 18712func_fallback_echo () 18713{ 18714 eval 'cat <<_LTECHO_EOF 18715\$1 18716_LTECHO_EOF' 18717} 18718 18719# Quote evaled strings. 18720for var in SHELL \ 18721ECHO \ 18722PATH_SEPARATOR \ 18723SED \ 18724GREP \ 18725EGREP \ 18726FGREP \ 18727LD \ 18728NM \ 18729LN_S \ 18730lt_SP2NL \ 18731lt_NL2SP \ 18732reload_flag \ 18733OBJDUMP \ 18734deplibs_check_method \ 18735file_magic_cmd \ 18736file_magic_glob \ 18737want_nocaseglob \ 18738DLLTOOL \ 18739sharedlib_from_linklib_cmd \ 18740AR \ 18741AR_FLAGS \ 18742archiver_list_spec \ 18743STRIP \ 18744RANLIB \ 18745CC \ 18746CFLAGS \ 18747compiler \ 18748lt_cv_sys_global_symbol_pipe \ 18749lt_cv_sys_global_symbol_to_cdecl \ 18750lt_cv_sys_global_symbol_to_import \ 18751lt_cv_sys_global_symbol_to_c_name_address \ 18752lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18753lt_cv_nm_interface \ 18754nm_file_list_spec \ 18755lt_cv_truncate_bin \ 18756lt_prog_compiler_no_builtin_flag \ 18757lt_prog_compiler_pic \ 18758lt_prog_compiler_wl \ 18759lt_prog_compiler_static \ 18760lt_cv_prog_compiler_c_o \ 18761need_locks \ 18762MANIFEST_TOOL \ 18763DSYMUTIL \ 18764NMEDIT \ 18765LIPO \ 18766OTOOL \ 18767OTOOL64 \ 18768shrext_cmds \ 18769export_dynamic_flag_spec \ 18770whole_archive_flag_spec \ 18771compiler_needs_object \ 18772with_gnu_ld \ 18773allow_undefined_flag \ 18774no_undefined_flag \ 18775hardcode_libdir_flag_spec \ 18776hardcode_libdir_separator \ 18777exclude_expsyms \ 18778include_expsyms \ 18779file_list_spec \ 18780variables_saved_for_relink \ 18781libname_spec \ 18782library_names_spec \ 18783soname_spec \ 18784install_override_mode \ 18785finish_eval \ 18786old_striplib \ 18787striplib \ 18788compiler_lib_search_dirs \ 18789predep_objects \ 18790postdep_objects \ 18791predeps \ 18792postdeps \ 18793compiler_lib_search_path \ 18794LD_CXX \ 18795reload_flag_CXX \ 18796compiler_CXX \ 18797lt_prog_compiler_no_builtin_flag_CXX \ 18798lt_prog_compiler_pic_CXX \ 18799lt_prog_compiler_wl_CXX \ 18800lt_prog_compiler_static_CXX \ 18801lt_cv_prog_compiler_c_o_CXX \ 18802export_dynamic_flag_spec_CXX \ 18803whole_archive_flag_spec_CXX \ 18804compiler_needs_object_CXX \ 18805with_gnu_ld_CXX \ 18806allow_undefined_flag_CXX \ 18807no_undefined_flag_CXX \ 18808hardcode_libdir_flag_spec_CXX \ 18809hardcode_libdir_separator_CXX \ 18810exclude_expsyms_CXX \ 18811include_expsyms_CXX \ 18812file_list_spec_CXX \ 18813compiler_lib_search_dirs_CXX \ 18814predep_objects_CXX \ 18815postdep_objects_CXX \ 18816predeps_CXX \ 18817postdeps_CXX \ 18818compiler_lib_search_path_CXX; do 18819 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18820 *[\\\\\\\`\\"\\\$]*) 18821 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 18822 ;; 18823 *) 18824 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18825 ;; 18826 esac 18827done 18828 18829# Double-quote double-evaled strings. 18830for var in reload_cmds \ 18831old_postinstall_cmds \ 18832old_postuninstall_cmds \ 18833old_archive_cmds \ 18834extract_expsyms_cmds \ 18835old_archive_from_new_cmds \ 18836old_archive_from_expsyms_cmds \ 18837archive_cmds \ 18838archive_expsym_cmds \ 18839module_cmds \ 18840module_expsym_cmds \ 18841export_symbols_cmds \ 18842prelink_cmds \ 18843postlink_cmds \ 18844postinstall_cmds \ 18845postuninstall_cmds \ 18846finish_cmds \ 18847sys_lib_search_path_spec \ 18848configure_time_dlsearch_path \ 18849configure_time_lt_sys_library_path \ 18850reload_cmds_CXX \ 18851old_archive_cmds_CXX \ 18852old_archive_from_new_cmds_CXX \ 18853old_archive_from_expsyms_cmds_CXX \ 18854archive_cmds_CXX \ 18855archive_expsym_cmds_CXX \ 18856module_cmds_CXX \ 18857module_expsym_cmds_CXX \ 18858export_symbols_cmds_CXX \ 18859prelink_cmds_CXX \ 18860postlink_cmds_CXX; do 18861 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18862 *[\\\\\\\`\\"\\\$]*) 18863 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 18864 ;; 18865 *) 18866 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18867 ;; 18868 esac 18869done 18870 18871ac_aux_dir='$ac_aux_dir' 18872 18873# See if we are running on zsh, and set the options that allow our 18874# commands through without removal of \ escapes INIT. 18875if test -n "\${ZSH_VERSION+set}"; then 18876 setopt NO_GLOB_SUBST 18877fi 18878 18879 18880 PACKAGE='$PACKAGE' 18881 VERSION='$VERSION' 18882 RM='$RM' 18883 ofile='$ofile' 18884 18885 18886 18887 18888 18889 18890ax_create_pkgconfig_generate="$ax_create_pkgconfig_generate" 18891pkgconfig_prefix='$prefix' 18892pkgconfig_execprefix='$exec_prefix' 18893pkgconfig_bindir='$bindir' 18894pkgconfig_libdir='$libdir' 18895pkgconfig_includedir='$includedir' 18896pkgconfig_datarootdir='$datarootdir' 18897pkgconfig_datadir='$datadir' 18898pkgconfig_sysconfdir='$sysconfdir' 18899pkgconfig_suffix='$ax_create_pkgconfig_suffix' 18900pkgconfig_package='$PACKAGE_NAME' 18901pkgconfig_libname='$ax_create_pkgconfig_libname' 18902pkgconfig_description='$ax_create_pkgconfig_description' 18903pkgconfig_version='$ax_create_pkgconfig_version' 18904pkgconfig_requires='$ax_create_pkgconfig_requires' 18905pkgconfig_libs='$ax_create_pkgconfig_libs' 18906pkgconfig_ldflags='$ax_create_pkgconfig_ldflags' 18907pkgconfig_cppflags='$ax_create_pkgconfig_cppflags' 18908pkgconfig_src_libdir='$ax_create_pkgconfig_src_libdir' 18909pkgconfig_src_headers='$ax_create_pkgconfig_src_headers' 18910 18911 18912_ACEOF 18913 18914cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18915 18916# Handling of arguments. 18917for ac_config_target in $ac_config_targets 18918do 18919 case $ac_config_target in 18920 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18921 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18922 "$ax_create_pkgconfig_generate") CONFIG_COMMANDS="$CONFIG_COMMANDS $ax_create_pkgconfig_generate" ;; 18923 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 18924 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18925 "pet_test.sh") CONFIG_FILES="$CONFIG_FILES pet_test.sh" ;; 18926 "codegen_test.sh") CONFIG_FILES="$CONFIG_FILES codegen_test.sh" ;; 18927 "all.c") CONFIG_FILES="$CONFIG_FILES all.c" ;; 18928 18929 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18930 esac 18931done 18932 18933 18934# If the user did not use the arguments to specify the items to instantiate, 18935# then the envvar interface is used. Set only those that are not. 18936# We use the long form for the default assignment because of an extremely 18937# bizarre bug on SunOS 4.1.3. 18938if $ac_need_defaults; then 18939 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18940 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18941 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18942fi 18943 18944# Have a temporary directory for convenience. Make it in the build tree 18945# simply because there is no reason against having it here, and in addition, 18946# creating and moving files from /tmp can sometimes cause problems. 18947# Hook for its removal unless debugging. 18948# Note that there is a small window in which the directory will not be cleaned: 18949# after its creation but before its name has been assigned to `$tmp'. 18950$debug || 18951{ 18952 tmp= ac_tmp= 18953 trap 'exit_status=$? 18954 : "${ac_tmp:=$tmp}" 18955 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18956' 0 18957 trap 'as_fn_exit 1' 1 2 13 15 18958} 18959# Create a (secure) tmp directory for tmp files. 18960 18961{ 18962 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18963 test -d "$tmp" 18964} || 18965{ 18966 tmp=./conf$$-$RANDOM 18967 (umask 077 && mkdir "$tmp") 18968} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18969ac_tmp=$tmp 18970 18971# Set up the scripts for CONFIG_FILES section. 18972# No need to generate them if there are no CONFIG_FILES. 18973# This happens for instance with `./config.status config.h'. 18974if test -n "$CONFIG_FILES"; then 18975 18976 18977ac_cr=`echo X | tr X '\015'` 18978# On cygwin, bash can eat \r inside `` if the user requested igncr. 18979# But we know of no other shell where ac_cr would be empty at this 18980# point, so we can use a bashism as a fallback. 18981if test "x$ac_cr" = x; then 18982 eval ac_cr=\$\'\\r\' 18983fi 18984ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18985if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18986 ac_cs_awk_cr='\\r' 18987else 18988 ac_cs_awk_cr=$ac_cr 18989fi 18990 18991echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18992_ACEOF 18993 18994 18995{ 18996 echo "cat >conf$$subs.awk <<_ACEOF" && 18997 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18998 echo "_ACEOF" 18999} >conf$$subs.sh || 19000 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19001ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19002ac_delim='%!_!# ' 19003for ac_last_try in false false false false false :; do 19004 . ./conf$$subs.sh || 19005 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19006 19007 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19008 if test $ac_delim_n = $ac_delim_num; then 19009 break 19010 elif $ac_last_try; then 19011 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19012 else 19013 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19014 fi 19015done 19016rm -f conf$$subs.sh 19017 19018cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19019cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19020_ACEOF 19021sed -n ' 19022h 19023s/^/S["/; s/!.*/"]=/ 19024p 19025g 19026s/^[^!]*!// 19027:repl 19028t repl 19029s/'"$ac_delim"'$// 19030t delim 19031:nl 19032h 19033s/\(.\{148\}\)..*/\1/ 19034t more1 19035s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19036p 19037n 19038b repl 19039:more1 19040s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19041p 19042g 19043s/.\{148\}// 19044t nl 19045:delim 19046h 19047s/\(.\{148\}\)..*/\1/ 19048t more2 19049s/["\\]/\\&/g; s/^/"/; s/$/"/ 19050p 19051b 19052:more2 19053s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19054p 19055g 19056s/.\{148\}// 19057t delim 19058' <conf$$subs.awk | sed ' 19059/^[^""]/{ 19060 N 19061 s/\n// 19062} 19063' >>$CONFIG_STATUS || ac_write_fail=1 19064rm -f conf$$subs.awk 19065cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19066_ACAWK 19067cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19068 for (key in S) S_is_set[key] = 1 19069 FS = "" 19070 19071} 19072{ 19073 line = $ 0 19074 nfields = split(line, field, "@") 19075 substed = 0 19076 len = length(field[1]) 19077 for (i = 2; i < nfields; i++) { 19078 key = field[i] 19079 keylen = length(key) 19080 if (S_is_set[key]) { 19081 value = S[key] 19082 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19083 len += length(value) + length(field[++i]) 19084 substed = 1 19085 } else 19086 len += 1 + keylen 19087 } 19088 19089 print line 19090} 19091 19092_ACAWK 19093_ACEOF 19094cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19095if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19096 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19097else 19098 cat 19099fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19100 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19101_ACEOF 19102 19103# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19104# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19105# trailing colons and then remove the whole line if VPATH becomes empty 19106# (actually we leave an empty line to preserve line numbers). 19107if test "x$srcdir" = x.; then 19108 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19109h 19110s/// 19111s/^/:/ 19112s/[ ]*$/:/ 19113s/:\$(srcdir):/:/g 19114s/:\${srcdir}:/:/g 19115s/:@srcdir@:/:/g 19116s/^:*// 19117s/:*$// 19118x 19119s/\(=[ ]*\).*/\1/ 19120G 19121s/\n// 19122s/^[^=]*=[ ]*$// 19123}' 19124fi 19125 19126cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19127fi # test -n "$CONFIG_FILES" 19128 19129# Set up the scripts for CONFIG_HEADERS section. 19130# No need to generate them if there are no CONFIG_HEADERS. 19131# This happens for instance with `./config.status Makefile'. 19132if test -n "$CONFIG_HEADERS"; then 19133cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19134BEGIN { 19135_ACEOF 19136 19137# Transform confdefs.h into an awk script `defines.awk', embedded as 19138# here-document in config.status, that substitutes the proper values into 19139# config.h.in to produce config.h. 19140 19141# Create a delimiter string that does not exist in confdefs.h, to ease 19142# handling of long lines. 19143ac_delim='%!_!# ' 19144for ac_last_try in false false :; do 19145 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19146 if test -z "$ac_tt"; then 19147 break 19148 elif $ac_last_try; then 19149 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19150 else 19151 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19152 fi 19153done 19154 19155# For the awk script, D is an array of macro values keyed by name, 19156# likewise P contains macro parameters if any. Preserve backslash 19157# newline sequences. 19158 19159ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19160sed -n ' 19161s/.\{148\}/&'"$ac_delim"'/g 19162t rset 19163:rset 19164s/^[ ]*#[ ]*define[ ][ ]*/ / 19165t def 19166d 19167:def 19168s/\\$// 19169t bsnl 19170s/["\\]/\\&/g 19171s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19172D["\1"]=" \3"/p 19173s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19174d 19175:bsnl 19176s/["\\]/\\&/g 19177s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19178D["\1"]=" \3\\\\\\n"\\/p 19179t cont 19180s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19181t cont 19182d 19183:cont 19184n 19185s/.\{148\}/&'"$ac_delim"'/g 19186t clear 19187:clear 19188s/\\$// 19189t bsnlc 19190s/["\\]/\\&/g; s/^/"/; s/$/"/p 19191d 19192:bsnlc 19193s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19194b cont 19195' <confdefs.h | sed ' 19196s/'"$ac_delim"'/"\\\ 19197"/g' >>$CONFIG_STATUS || ac_write_fail=1 19198 19199cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19200 for (key in D) D_is_set[key] = 1 19201 FS = "" 19202} 19203/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19204 line = \$ 0 19205 split(line, arg, " ") 19206 if (arg[1] == "#") { 19207 defundef = arg[2] 19208 mac1 = arg[3] 19209 } else { 19210 defundef = substr(arg[1], 2) 19211 mac1 = arg[2] 19212 } 19213 split(mac1, mac2, "(") #) 19214 macro = mac2[1] 19215 prefix = substr(line, 1, index(line, defundef) - 1) 19216 if (D_is_set[macro]) { 19217 # Preserve the white space surrounding the "#". 19218 print prefix "define", macro P[macro] D[macro] 19219 next 19220 } else { 19221 # Replace #undef with comments. This is necessary, for example, 19222 # in the case of _POSIX_SOURCE, which is predefined and required 19223 # on some systems where configure will not decide to define it. 19224 if (defundef == "undef") { 19225 print "/*", prefix defundef, macro, "*/" 19226 next 19227 } 19228 } 19229} 19230{ print } 19231_ACAWK 19232_ACEOF 19233cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19234 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19235fi # test -n "$CONFIG_HEADERS" 19236 19237 19238eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19239shift 19240for ac_tag 19241do 19242 case $ac_tag in 19243 :[FHLC]) ac_mode=$ac_tag; continue;; 19244 esac 19245 case $ac_mode$ac_tag in 19246 :[FHL]*:*);; 19247 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19248 :[FH]-) ac_tag=-:-;; 19249 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19250 esac 19251 ac_save_IFS=$IFS 19252 IFS=: 19253 set x $ac_tag 19254 IFS=$ac_save_IFS 19255 shift 19256 ac_file=$1 19257 shift 19258 19259 case $ac_mode in 19260 :L) ac_source=$1;; 19261 :[FH]) 19262 ac_file_inputs= 19263 for ac_f 19264 do 19265 case $ac_f in 19266 -) ac_f="$ac_tmp/stdin";; 19267 *) # Look for the file first in the build tree, then in the source tree 19268 # (if the path is not absolute). The absolute path cannot be DOS-style, 19269 # because $ac_f cannot contain `:'. 19270 test -f "$ac_f" || 19271 case $ac_f in 19272 [\\/$]*) false;; 19273 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19274 esac || 19275 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19276 esac 19277 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19278 as_fn_append ac_file_inputs " '$ac_f'" 19279 done 19280 19281 # Let's still pretend it is `configure' which instantiates (i.e., don't 19282 # use $as_me), people would be surprised to read: 19283 # /* config.h. Generated by config.status. */ 19284 configure_input='Generated from '` 19285 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19286 `' by configure.' 19287 if test x"$ac_file" != x-; then 19288 configure_input="$ac_file. $configure_input" 19289 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19290$as_echo "$as_me: creating $ac_file" >&6;} 19291 fi 19292 # Neutralize special characters interpreted by sed in replacement strings. 19293 case $configure_input in #( 19294 *\&* | *\|* | *\\* ) 19295 ac_sed_conf_input=`$as_echo "$configure_input" | 19296 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19297 *) ac_sed_conf_input=$configure_input;; 19298 esac 19299 19300 case $ac_tag in 19301 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19302 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19303 esac 19304 ;; 19305 esac 19306 19307 ac_dir=`$as_dirname -- "$ac_file" || 19308$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19309 X"$ac_file" : 'X\(//\)[^/]' \| \ 19310 X"$ac_file" : 'X\(//\)$' \| \ 19311 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19312$as_echo X"$ac_file" | 19313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19314 s//\1/ 19315 q 19316 } 19317 /^X\(\/\/\)[^/].*/{ 19318 s//\1/ 19319 q 19320 } 19321 /^X\(\/\/\)$/{ 19322 s//\1/ 19323 q 19324 } 19325 /^X\(\/\).*/{ 19326 s//\1/ 19327 q 19328 } 19329 s/.*/./; q'` 19330 as_dir="$ac_dir"; as_fn_mkdir_p 19331 ac_builddir=. 19332 19333case "$ac_dir" in 19334.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19335*) 19336 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19337 # A ".." for each directory in $ac_dir_suffix. 19338 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19339 case $ac_top_builddir_sub in 19340 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19341 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19342 esac ;; 19343esac 19344ac_abs_top_builddir=$ac_pwd 19345ac_abs_builddir=$ac_pwd$ac_dir_suffix 19346# for backward compatibility: 19347ac_top_builddir=$ac_top_build_prefix 19348 19349case $srcdir in 19350 .) # We are building in place. 19351 ac_srcdir=. 19352 ac_top_srcdir=$ac_top_builddir_sub 19353 ac_abs_top_srcdir=$ac_pwd ;; 19354 [\\/]* | ?:[\\/]* ) # Absolute name. 19355 ac_srcdir=$srcdir$ac_dir_suffix; 19356 ac_top_srcdir=$srcdir 19357 ac_abs_top_srcdir=$srcdir ;; 19358 *) # Relative name. 19359 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19360 ac_top_srcdir=$ac_top_build_prefix$srcdir 19361 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19362esac 19363ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19364 19365 19366 case $ac_mode in 19367 :F) 19368 # 19369 # CONFIG_FILE 19370 # 19371 19372 case $INSTALL in 19373 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19374 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19375 esac 19376 ac_MKDIR_P=$MKDIR_P 19377 case $MKDIR_P in 19378 [\\/$]* | ?:[\\/]* ) ;; 19379 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19380 esac 19381_ACEOF 19382 19383cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19384# If the template does not know about datarootdir, expand it. 19385# FIXME: This hack should be removed a few years after 2.60. 19386ac_datarootdir_hack=; ac_datarootdir_seen= 19387ac_sed_dataroot=' 19388/datarootdir/ { 19389 p 19390 q 19391} 19392/@datadir@/p 19393/@docdir@/p 19394/@infodir@/p 19395/@localedir@/p 19396/@mandir@/p' 19397case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19398*datarootdir*) ac_datarootdir_seen=yes;; 19399*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19401$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19402_ACEOF 19403cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19404 ac_datarootdir_hack=' 19405 s&@datadir@&$datadir&g 19406 s&@docdir@&$docdir&g 19407 s&@infodir@&$infodir&g 19408 s&@localedir@&$localedir&g 19409 s&@mandir@&$mandir&g 19410 s&\\\${datarootdir}&$datarootdir&g' ;; 19411esac 19412_ACEOF 19413 19414# Neutralize VPATH when `$srcdir' = `.'. 19415# Shell code in configure.ac might set extrasub. 19416# FIXME: do we really want to maintain this feature? 19417cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19418ac_sed_extra="$ac_vpsub 19419$extrasub 19420_ACEOF 19421cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19422:t 19423/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19424s|@configure_input@|$ac_sed_conf_input|;t t 19425s&@top_builddir@&$ac_top_builddir_sub&;t t 19426s&@top_build_prefix@&$ac_top_build_prefix&;t t 19427s&@srcdir@&$ac_srcdir&;t t 19428s&@abs_srcdir@&$ac_abs_srcdir&;t t 19429s&@top_srcdir@&$ac_top_srcdir&;t t 19430s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19431s&@builddir@&$ac_builddir&;t t 19432s&@abs_builddir@&$ac_abs_builddir&;t t 19433s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19434s&@INSTALL@&$ac_INSTALL&;t t 19435s&@MKDIR_P@&$ac_MKDIR_P&;t t 19436$ac_datarootdir_hack 19437" 19438eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19439 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19440 19441test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19442 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19443 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19444 "$ac_tmp/out"`; test -z "$ac_out"; } && 19445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19446which seems to be undefined. Please make sure it is defined" >&5 19447$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19448which seems to be undefined. Please make sure it is defined" >&2;} 19449 19450 rm -f "$ac_tmp/stdin" 19451 case $ac_file in 19452 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19453 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19454 esac \ 19455 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19456 ;; 19457 :H) 19458 # 19459 # CONFIG_HEADER 19460 # 19461 if test x"$ac_file" != x-; then 19462 { 19463 $as_echo "/* $configure_input */" \ 19464 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19465 } >"$ac_tmp/config.h" \ 19466 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19467 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19468 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19469$as_echo "$as_me: $ac_file is unchanged" >&6;} 19470 else 19471 rm -f "$ac_file" 19472 mv "$ac_tmp/config.h" "$ac_file" \ 19473 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19474 fi 19475 else 19476 $as_echo "/* $configure_input */" \ 19477 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19478 || as_fn_error $? "could not create -" "$LINENO" 5 19479 fi 19480# Compute "$ac_file"'s index in $config_headers. 19481_am_arg="$ac_file" 19482_am_stamp_count=1 19483for _am_header in $config_headers :; do 19484 case $_am_header in 19485 $_am_arg | $_am_arg:* ) 19486 break ;; 19487 * ) 19488 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19489 esac 19490done 19491echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19492$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19493 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19494 X"$_am_arg" : 'X\(//\)$' \| \ 19495 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19496$as_echo X"$_am_arg" | 19497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19498 s//\1/ 19499 q 19500 } 19501 /^X\(\/\/\)[^/].*/{ 19502 s//\1/ 19503 q 19504 } 19505 /^X\(\/\/\)$/{ 19506 s//\1/ 19507 q 19508 } 19509 /^X\(\/\).*/{ 19510 s//\1/ 19511 q 19512 } 19513 s/.*/./; q'`/stamp-h$_am_stamp_count 19514 ;; 19515 19516 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19517$as_echo "$as_me: executing $ac_file commands" >&6;} 19518 ;; 19519 esac 19520 19521 19522 case $ac_file$ac_mode in 19523 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19524 # Older Autoconf quotes --file arguments for eval, but not when files 19525 # are listed without --file. Let's play safe and only enable the eval 19526 # if we detect the quoting. 19527 # TODO: see whether this extra hack can be removed once we start 19528 # requiring Autoconf 2.70 or later. 19529 case $CONFIG_FILES in #( 19530 *\'*) : 19531 eval set x "$CONFIG_FILES" ;; #( 19532 *) : 19533 set x $CONFIG_FILES ;; #( 19534 *) : 19535 ;; 19536esac 19537 shift 19538 # Used to flag and report bootstrapping failures. 19539 am_rc=0 19540 for am_mf 19541 do 19542 # Strip MF so we end up with the name of the file. 19543 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 19544 # Check whether this is an Automake generated Makefile which includes 19545 # dependency-tracking related rules and includes. 19546 # Grep'ing the whole file directly is not great: AIX grep has a line 19547 # limit of 2048, but all sed's we know have understand at least 4000. 19548 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 19549 || continue 19550 am_dirpart=`$as_dirname -- "$am_mf" || 19551$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19552 X"$am_mf" : 'X\(//\)[^/]' \| \ 19553 X"$am_mf" : 'X\(//\)$' \| \ 19554 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 19555$as_echo X"$am_mf" | 19556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19557 s//\1/ 19558 q 19559 } 19560 /^X\(\/\/\)[^/].*/{ 19561 s//\1/ 19562 q 19563 } 19564 /^X\(\/\/\)$/{ 19565 s//\1/ 19566 q 19567 } 19568 /^X\(\/\).*/{ 19569 s//\1/ 19570 q 19571 } 19572 s/.*/./; q'` 19573 am_filepart=`$as_basename -- "$am_mf" || 19574$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 19575 X"$am_mf" : 'X\(//\)$' \| \ 19576 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 19577$as_echo X/"$am_mf" | 19578 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19579 s//\1/ 19580 q 19581 } 19582 /^X\/\(\/\/\)$/{ 19583 s//\1/ 19584 q 19585 } 19586 /^X\/\(\/\).*/{ 19587 s//\1/ 19588 q 19589 } 19590 s/.*/./; q'` 19591 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 19592 && sed -e '/# am--include-marker/d' "$am_filepart" \ 19593 | $MAKE -f - am--depfiles" >&5 19594 (cd "$am_dirpart" \ 19595 && sed -e '/# am--include-marker/d' "$am_filepart" \ 19596 | $MAKE -f - am--depfiles) >&5 2>&5 19597 ac_status=$? 19598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19599 (exit $ac_status); } || am_rc=$? 19600 done 19601 if test $am_rc -ne 0; then 19602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19603$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19604as_fn_error $? "Something went wrong bootstrapping makefile fragments 19605 for automatic dependency tracking. Try re-running configure with the 19606 '--disable-dependency-tracking' option to at least be able to build 19607 the package (albeit without support for automatic dependency tracking). 19608See \`config.log' for more details" "$LINENO" 5; } 19609 fi 19610 { am_dirpart=; unset am_dirpart;} 19611 { am_filepart=; unset am_filepart;} 19612 { am_mf=; unset am_mf;} 19613 { am_rc=; unset am_rc;} 19614 rm -f conftest-deps.mk 19615} 19616 ;; 19617 "libtool":C) 19618 19619 # See if we are running on zsh, and set the options that allow our 19620 # commands through without removal of \ escapes. 19621 if test -n "${ZSH_VERSION+set}"; then 19622 setopt NO_GLOB_SUBST 19623 fi 19624 19625 cfgfile=${ofile}T 19626 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19627 $RM "$cfgfile" 19628 19629 cat <<_LT_EOF >> "$cfgfile" 19630#! $SHELL 19631# Generated automatically by $as_me ($PACKAGE) $VERSION 19632# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19633 19634# Provide generalized library-building support services. 19635# Written by Gordon Matzigkeit, 1996 19636 19637# Copyright (C) 2014 Free Software Foundation, Inc. 19638# This is free software; see the source for copying conditions. There is NO 19639# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 19640 19641# GNU Libtool is free software; you can redistribute it and/or modify 19642# it under the terms of the GNU General Public License as published by 19643# the Free Software Foundation; either version 2 of of the License, or 19644# (at your option) any later version. 19645# 19646# As a special exception to the GNU General Public License, if you 19647# distribute this file as part of a program or library that is built 19648# using GNU Libtool, you may include this file under the same 19649# distribution terms that you use for the rest of that program. 19650# 19651# GNU Libtool is distributed in the hope that it will be useful, but 19652# WITHOUT ANY WARRANTY; without even the implied warranty of 19653# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19654# GNU General Public License for more details. 19655# 19656# You should have received a copy of the GNU General Public License 19657# along with this program. If not, see <http://www.gnu.org/licenses/>. 19658 19659 19660# The names of the tagged configurations supported by this script. 19661available_tags='CXX ' 19662 19663# Configured defaults for sys_lib_dlsearch_path munging. 19664: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 19665 19666# ### BEGIN LIBTOOL CONFIG 19667 19668# Which release of libtool.m4 was used? 19669macro_version=$macro_version 19670macro_revision=$macro_revision 19671 19672# Whether or not to build shared libraries. 19673build_libtool_libs=$enable_shared 19674 19675# Whether or not to build static libraries. 19676build_old_libs=$enable_static 19677 19678# What type of objects to build. 19679pic_mode=$pic_mode 19680 19681# Whether or not to optimize for fast installation. 19682fast_install=$enable_fast_install 19683 19684# Shared archive member basename,for filename based shared library versioning on AIX. 19685shared_archive_member_spec=$shared_archive_member_spec 19686 19687# Shell to use when invoking shell scripts. 19688SHELL=$lt_SHELL 19689 19690# An echo program that protects backslashes. 19691ECHO=$lt_ECHO 19692 19693# The PATH separator for the build system. 19694PATH_SEPARATOR=$lt_PATH_SEPARATOR 19695 19696# The host system. 19697host_alias=$host_alias 19698host=$host 19699host_os=$host_os 19700 19701# The build system. 19702build_alias=$build_alias 19703build=$build 19704build_os=$build_os 19705 19706# A sed program that does not truncate output. 19707SED=$lt_SED 19708 19709# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19710Xsed="\$SED -e 1s/^X//" 19711 19712# A grep program that handles long lines. 19713GREP=$lt_GREP 19714 19715# An ERE matcher. 19716EGREP=$lt_EGREP 19717 19718# A literal string matcher. 19719FGREP=$lt_FGREP 19720 19721# A BSD- or MS-compatible name lister. 19722NM=$lt_NM 19723 19724# Whether we need soft or hard links. 19725LN_S=$lt_LN_S 19726 19727# What is the maximum length of a command? 19728max_cmd_len=$max_cmd_len 19729 19730# Object file suffix (normally "o"). 19731objext=$ac_objext 19732 19733# Executable file suffix (normally ""). 19734exeext=$exeext 19735 19736# whether the shell understands "unset". 19737lt_unset=$lt_unset 19738 19739# turn spaces into newlines. 19740SP2NL=$lt_lt_SP2NL 19741 19742# turn newlines into spaces. 19743NL2SP=$lt_lt_NL2SP 19744 19745# convert \$build file names to \$host format. 19746to_host_file_cmd=$lt_cv_to_host_file_cmd 19747 19748# convert \$build files to toolchain format. 19749to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19750 19751# An object symbol dumper. 19752OBJDUMP=$lt_OBJDUMP 19753 19754# Method to check whether dependent libraries are shared objects. 19755deplibs_check_method=$lt_deplibs_check_method 19756 19757# Command to use when deplibs_check_method = "file_magic". 19758file_magic_cmd=$lt_file_magic_cmd 19759 19760# How to find potential files when deplibs_check_method = "file_magic". 19761file_magic_glob=$lt_file_magic_glob 19762 19763# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19764want_nocaseglob=$lt_want_nocaseglob 19765 19766# DLL creation program. 19767DLLTOOL=$lt_DLLTOOL 19768 19769# Command to associate shared and link libraries. 19770sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19771 19772# The archiver. 19773AR=$lt_AR 19774 19775# Flags to create an archive. 19776AR_FLAGS=$lt_AR_FLAGS 19777 19778# How to feed a file listing to the archiver. 19779archiver_list_spec=$lt_archiver_list_spec 19780 19781# A symbol stripping program. 19782STRIP=$lt_STRIP 19783 19784# Commands used to install an old-style archive. 19785RANLIB=$lt_RANLIB 19786old_postinstall_cmds=$lt_old_postinstall_cmds 19787old_postuninstall_cmds=$lt_old_postuninstall_cmds 19788 19789# Whether to use a lock for old archive extraction. 19790lock_old_archive_extraction=$lock_old_archive_extraction 19791 19792# A C compiler. 19793LTCC=$lt_CC 19794 19795# LTCC compiler flags. 19796LTCFLAGS=$lt_CFLAGS 19797 19798# Take the output of nm and produce a listing of raw symbols and C names. 19799global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19800 19801# Transform the output of nm in a proper C declaration. 19802global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19803 19804# Transform the output of nm into a list of symbols to manually relocate. 19805global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 19806 19807# Transform the output of nm in a C name address pair. 19808global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19809 19810# Transform the output of nm in a C name address pair when lib prefix is needed. 19811global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19812 19813# The name lister interface. 19814nm_interface=$lt_lt_cv_nm_interface 19815 19816# Specify filename containing input files for \$NM. 19817nm_file_list_spec=$lt_nm_file_list_spec 19818 19819# The root where to search for dependent libraries,and where our libraries should be installed. 19820lt_sysroot=$lt_sysroot 19821 19822# Command to truncate a binary pipe. 19823lt_truncate_bin=$lt_lt_cv_truncate_bin 19824 19825# The name of the directory that contains temporary libtool files. 19826objdir=$objdir 19827 19828# Used to examine libraries when file_magic_cmd begins with "file". 19829MAGIC_CMD=$MAGIC_CMD 19830 19831# Must we lock files when doing compilation? 19832need_locks=$lt_need_locks 19833 19834# Manifest tool. 19835MANIFEST_TOOL=$lt_MANIFEST_TOOL 19836 19837# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19838DSYMUTIL=$lt_DSYMUTIL 19839 19840# Tool to change global to local symbols on Mac OS X. 19841NMEDIT=$lt_NMEDIT 19842 19843# Tool to manipulate fat objects and archives on Mac OS X. 19844LIPO=$lt_LIPO 19845 19846# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19847OTOOL=$lt_OTOOL 19848 19849# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19850OTOOL64=$lt_OTOOL64 19851 19852# Old archive suffix (normally "a"). 19853libext=$libext 19854 19855# Shared library suffix (normally ".so"). 19856shrext_cmds=$lt_shrext_cmds 19857 19858# The commands to extract the exported symbol list from a shared archive. 19859extract_expsyms_cmds=$lt_extract_expsyms_cmds 19860 19861# Variables whose values should be saved in libtool wrapper scripts and 19862# restored at link time. 19863variables_saved_for_relink=$lt_variables_saved_for_relink 19864 19865# Do we need the "lib" prefix for modules? 19866need_lib_prefix=$need_lib_prefix 19867 19868# Do we need a version for libraries? 19869need_version=$need_version 19870 19871# Library versioning type. 19872version_type=$version_type 19873 19874# Shared library runtime path variable. 19875runpath_var=$runpath_var 19876 19877# Shared library path variable. 19878shlibpath_var=$shlibpath_var 19879 19880# Is shlibpath searched before the hard-coded library search path? 19881shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19882 19883# Format of library name prefix. 19884libname_spec=$lt_libname_spec 19885 19886# List of archive names. First name is the real one, the rest are links. 19887# The last name is the one that the linker finds with -lNAME 19888library_names_spec=$lt_library_names_spec 19889 19890# The coded name of the library, if different from the real name. 19891soname_spec=$lt_soname_spec 19892 19893# Permission mode override for installation of shared libraries. 19894install_override_mode=$lt_install_override_mode 19895 19896# Command to use after installation of a shared archive. 19897postinstall_cmds=$lt_postinstall_cmds 19898 19899# Command to use after uninstallation of a shared archive. 19900postuninstall_cmds=$lt_postuninstall_cmds 19901 19902# Commands used to finish a libtool library installation in a directory. 19903finish_cmds=$lt_finish_cmds 19904 19905# As "finish_cmds", except a single script fragment to be evaled but 19906# not shown. 19907finish_eval=$lt_finish_eval 19908 19909# Whether we should hardcode library paths into libraries. 19910hardcode_into_libs=$hardcode_into_libs 19911 19912# Compile-time system search path for libraries. 19913sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19914 19915# Detected run-time system search path for libraries. 19916sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 19917 19918# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 19919configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 19920 19921# Whether dlopen is supported. 19922dlopen_support=$enable_dlopen 19923 19924# Whether dlopen of programs is supported. 19925dlopen_self=$enable_dlopen_self 19926 19927# Whether dlopen of statically linked programs is supported. 19928dlopen_self_static=$enable_dlopen_self_static 19929 19930# Commands to strip libraries. 19931old_striplib=$lt_old_striplib 19932striplib=$lt_striplib 19933 19934 19935# The linker used to build libraries. 19936LD=$lt_LD 19937 19938# How to create reloadable object files. 19939reload_flag=$lt_reload_flag 19940reload_cmds=$lt_reload_cmds 19941 19942# Commands used to build an old-style archive. 19943old_archive_cmds=$lt_old_archive_cmds 19944 19945# A language specific compiler. 19946CC=$lt_compiler 19947 19948# Is the compiler the GNU compiler? 19949with_gcc=$GCC 19950 19951# Compiler flag to turn off builtin functions. 19952no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19953 19954# Additional compiler flags for building library objects. 19955pic_flag=$lt_lt_prog_compiler_pic 19956 19957# How to pass a linker flag through the compiler. 19958wl=$lt_lt_prog_compiler_wl 19959 19960# Compiler flag to prevent dynamic linking. 19961link_static_flag=$lt_lt_prog_compiler_static 19962 19963# Does compiler simultaneously support -c and -o options? 19964compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19965 19966# Whether or not to add -lc for building shared libraries. 19967build_libtool_need_lc=$archive_cmds_need_lc 19968 19969# Whether or not to disallow shared libs when runtime libs are static. 19970allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19971 19972# Compiler flag to allow reflexive dlopens. 19973export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19974 19975# Compiler flag to generate shared objects directly from archives. 19976whole_archive_flag_spec=$lt_whole_archive_flag_spec 19977 19978# Whether the compiler copes with passing no objects directly. 19979compiler_needs_object=$lt_compiler_needs_object 19980 19981# Create an old-style archive from a shared archive. 19982old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19983 19984# Create a temporary old-style archive to link instead of a shared archive. 19985old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19986 19987# Commands used to build a shared archive. 19988archive_cmds=$lt_archive_cmds 19989archive_expsym_cmds=$lt_archive_expsym_cmds 19990 19991# Commands used to build a loadable module if different from building 19992# a shared archive. 19993module_cmds=$lt_module_cmds 19994module_expsym_cmds=$lt_module_expsym_cmds 19995 19996# Whether we are building with GNU ld or not. 19997with_gnu_ld=$lt_with_gnu_ld 19998 19999# Flag that allows shared libraries with undefined symbols to be built. 20000allow_undefined_flag=$lt_allow_undefined_flag 20001 20002# Flag that enforces no undefined symbols. 20003no_undefined_flag=$lt_no_undefined_flag 20004 20005# Flag to hardcode \$libdir into a binary during linking. 20006# This must work even if \$libdir does not exist 20007hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20008 20009# Whether we need a single "-rpath" flag with a separated argument. 20010hardcode_libdir_separator=$lt_hardcode_libdir_separator 20011 20012# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20013# DIR into the resulting binary. 20014hardcode_direct=$hardcode_direct 20015 20016# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20017# DIR into the resulting binary and the resulting library dependency is 20018# "absolute",i.e impossible to change by setting \$shlibpath_var if the 20019# library is relocated. 20020hardcode_direct_absolute=$hardcode_direct_absolute 20021 20022# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20023# into the resulting binary. 20024hardcode_minus_L=$hardcode_minus_L 20025 20026# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20027# into the resulting binary. 20028hardcode_shlibpath_var=$hardcode_shlibpath_var 20029 20030# Set to "yes" if building a shared library automatically hardcodes DIR 20031# into the library and all subsequent libraries and executables linked 20032# against it. 20033hardcode_automatic=$hardcode_automatic 20034 20035# Set to yes if linker adds runtime paths of dependent libraries 20036# to runtime path list. 20037inherit_rpath=$inherit_rpath 20038 20039# Whether libtool must link a program against all its dependency libraries. 20040link_all_deplibs=$link_all_deplibs 20041 20042# Set to "yes" if exported symbols are required. 20043always_export_symbols=$always_export_symbols 20044 20045# The commands to list exported symbols. 20046export_symbols_cmds=$lt_export_symbols_cmds 20047 20048# Symbols that should not be listed in the preloaded symbols. 20049exclude_expsyms=$lt_exclude_expsyms 20050 20051# Symbols that must always be exported. 20052include_expsyms=$lt_include_expsyms 20053 20054# Commands necessary for linking programs (against libraries) with templates. 20055prelink_cmds=$lt_prelink_cmds 20056 20057# Commands necessary for finishing linking programs. 20058postlink_cmds=$lt_postlink_cmds 20059 20060# Specify filename containing input files. 20061file_list_spec=$lt_file_list_spec 20062 20063# How to hardcode a shared library path into an executable. 20064hardcode_action=$hardcode_action 20065 20066# The directories searched by this compiler when creating a shared library. 20067compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 20068 20069# Dependencies to place before and after the objects being linked to 20070# create a shared library. 20071predep_objects=$lt_predep_objects 20072postdep_objects=$lt_postdep_objects 20073predeps=$lt_predeps 20074postdeps=$lt_postdeps 20075 20076# The library search path used internally by the compiler when linking 20077# a shared library. 20078compiler_lib_search_path=$lt_compiler_lib_search_path 20079 20080# ### END LIBTOOL CONFIG 20081 20082_LT_EOF 20083 20084 cat <<'_LT_EOF' >> "$cfgfile" 20085 20086# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 20087 20088# func_munge_path_list VARIABLE PATH 20089# ----------------------------------- 20090# VARIABLE is name of variable containing _space_ separated list of 20091# directories to be munged by the contents of PATH, which is string 20092# having a format: 20093# "DIR[:DIR]:" 20094# string "DIR[ DIR]" will be prepended to VARIABLE 20095# ":DIR[:DIR]" 20096# string "DIR[ DIR]" will be appended to VARIABLE 20097# "DIRP[:DIRP]::[DIRA:]DIRA" 20098# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 20099# "DIRA[ DIRA]" will be appended to VARIABLE 20100# "DIR[:DIR]" 20101# VARIABLE will be replaced by "DIR[ DIR]" 20102func_munge_path_list () 20103{ 20104 case x$2 in 20105 x) 20106 ;; 20107 *:) 20108 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 20109 ;; 20110 x:*) 20111 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 20112 ;; 20113 *::*) 20114 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 20115 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 20116 ;; 20117 *) 20118 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 20119 ;; 20120 esac 20121} 20122 20123 20124# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 20125func_cc_basename () 20126{ 20127 for cc_temp in $*""; do 20128 case $cc_temp in 20129 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 20130 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 20131 \-*) ;; 20132 *) break;; 20133 esac 20134 done 20135 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 20136} 20137 20138 20139# ### END FUNCTIONS SHARED WITH CONFIGURE 20140 20141_LT_EOF 20142 20143 case $host_os in 20144 aix3*) 20145 cat <<\_LT_EOF >> "$cfgfile" 20146# AIX sometimes has problems with the GCC collect2 program. For some 20147# reason, if we set the COLLECT_NAMES environment variable, the problems 20148# vanish in a puff of smoke. 20149if test set != "${COLLECT_NAMES+set}"; then 20150 COLLECT_NAMES= 20151 export COLLECT_NAMES 20152fi 20153_LT_EOF 20154 ;; 20155 esac 20156 20157 20158ltmain=$ac_aux_dir/ltmain.sh 20159 20160 20161 # We use sed instead of cat because bash on DJGPP gets confused if 20162 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20163 # text mode, it properly converts lines to CR/LF. This bash problem 20164 # is reportedly fixed, but why not run on old versions too? 20165 sed '$q' "$ltmain" >> "$cfgfile" \ 20166 || (rm -f "$cfgfile"; exit 1) 20167 20168 mv -f "$cfgfile" "$ofile" || 20169 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20170 chmod +x "$ofile" 20171 20172 20173 cat <<_LT_EOF >> "$ofile" 20174 20175# ### BEGIN LIBTOOL TAG CONFIG: CXX 20176 20177# The linker used to build libraries. 20178LD=$lt_LD_CXX 20179 20180# How to create reloadable object files. 20181reload_flag=$lt_reload_flag_CXX 20182reload_cmds=$lt_reload_cmds_CXX 20183 20184# Commands used to build an old-style archive. 20185old_archive_cmds=$lt_old_archive_cmds_CXX 20186 20187# A language specific compiler. 20188CC=$lt_compiler_CXX 20189 20190# Is the compiler the GNU compiler? 20191with_gcc=$GCC_CXX 20192 20193# Compiler flag to turn off builtin functions. 20194no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 20195 20196# Additional compiler flags for building library objects. 20197pic_flag=$lt_lt_prog_compiler_pic_CXX 20198 20199# How to pass a linker flag through the compiler. 20200wl=$lt_lt_prog_compiler_wl_CXX 20201 20202# Compiler flag to prevent dynamic linking. 20203link_static_flag=$lt_lt_prog_compiler_static_CXX 20204 20205# Does compiler simultaneously support -c and -o options? 20206compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 20207 20208# Whether or not to add -lc for building shared libraries. 20209build_libtool_need_lc=$archive_cmds_need_lc_CXX 20210 20211# Whether or not to disallow shared libs when runtime libs are static. 20212allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 20213 20214# Compiler flag to allow reflexive dlopens. 20215export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 20216 20217# Compiler flag to generate shared objects directly from archives. 20218whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 20219 20220# Whether the compiler copes with passing no objects directly. 20221compiler_needs_object=$lt_compiler_needs_object_CXX 20222 20223# Create an old-style archive from a shared archive. 20224old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 20225 20226# Create a temporary old-style archive to link instead of a shared archive. 20227old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 20228 20229# Commands used to build a shared archive. 20230archive_cmds=$lt_archive_cmds_CXX 20231archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 20232 20233# Commands used to build a loadable module if different from building 20234# a shared archive. 20235module_cmds=$lt_module_cmds_CXX 20236module_expsym_cmds=$lt_module_expsym_cmds_CXX 20237 20238# Whether we are building with GNU ld or not. 20239with_gnu_ld=$lt_with_gnu_ld_CXX 20240 20241# Flag that allows shared libraries with undefined symbols to be built. 20242allow_undefined_flag=$lt_allow_undefined_flag_CXX 20243 20244# Flag that enforces no undefined symbols. 20245no_undefined_flag=$lt_no_undefined_flag_CXX 20246 20247# Flag to hardcode \$libdir into a binary during linking. 20248# This must work even if \$libdir does not exist 20249hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 20250 20251# Whether we need a single "-rpath" flag with a separated argument. 20252hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 20253 20254# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20255# DIR into the resulting binary. 20256hardcode_direct=$hardcode_direct_CXX 20257 20258# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20259# DIR into the resulting binary and the resulting library dependency is 20260# "absolute",i.e impossible to change by setting \$shlibpath_var if the 20261# library is relocated. 20262hardcode_direct_absolute=$hardcode_direct_absolute_CXX 20263 20264# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20265# into the resulting binary. 20266hardcode_minus_L=$hardcode_minus_L_CXX 20267 20268# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20269# into the resulting binary. 20270hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 20271 20272# Set to "yes" if building a shared library automatically hardcodes DIR 20273# into the library and all subsequent libraries and executables linked 20274# against it. 20275hardcode_automatic=$hardcode_automatic_CXX 20276 20277# Set to yes if linker adds runtime paths of dependent libraries 20278# to runtime path list. 20279inherit_rpath=$inherit_rpath_CXX 20280 20281# Whether libtool must link a program against all its dependency libraries. 20282link_all_deplibs=$link_all_deplibs_CXX 20283 20284# Set to "yes" if exported symbols are required. 20285always_export_symbols=$always_export_symbols_CXX 20286 20287# The commands to list exported symbols. 20288export_symbols_cmds=$lt_export_symbols_cmds_CXX 20289 20290# Symbols that should not be listed in the preloaded symbols. 20291exclude_expsyms=$lt_exclude_expsyms_CXX 20292 20293# Symbols that must always be exported. 20294include_expsyms=$lt_include_expsyms_CXX 20295 20296# Commands necessary for linking programs (against libraries) with templates. 20297prelink_cmds=$lt_prelink_cmds_CXX 20298 20299# Commands necessary for finishing linking programs. 20300postlink_cmds=$lt_postlink_cmds_CXX 20301 20302# Specify filename containing input files. 20303file_list_spec=$lt_file_list_spec_CXX 20304 20305# How to hardcode a shared library path into an executable. 20306hardcode_action=$hardcode_action_CXX 20307 20308# The directories searched by this compiler when creating a shared library. 20309compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 20310 20311# Dependencies to place before and after the objects being linked to 20312# create a shared library. 20313predep_objects=$lt_predep_objects_CXX 20314postdep_objects=$lt_postdep_objects_CXX 20315predeps=$lt_predeps_CXX 20316postdeps=$lt_postdeps_CXX 20317 20318# The library search path used internally by the compiler when linking 20319# a shared library. 20320compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 20321 20322# ### END LIBTOOL TAG CONFIG: CXX 20323_LT_EOF 20324 20325 ;; 20326 "$ax_create_pkgconfig_generate":C) 20327pkgconfig_generate="$ax_create_pkgconfig_generate" 20328if test ! -f "$pkgconfig_generate.in" 20329then generate="true" 20330elif grep ' generated by configure ' $pkgconfig_generate.in >/dev/null 20331then generate="true" 20332else generate="false"; 20333fi 20334if $generate ; then 20335{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate.in" >&5 20336$as_echo "$as_me: creating $pkgconfig_generate.in" >&6;} 20337cat > $pkgconfig_generate.in <<AXEOF 20338# generated by configure / remove this line to disable regeneration 20339prefix=@prefix@ 20340exec_prefix=@exec_prefix@ 20341bindir=@bindir@ 20342libdir=@libdir@ 20343datarootdir=@datarootdir@ 20344datadir=@datadir@ 20345sysconfdir=@sysconfdir@ 20346includedir=@includedir@ 20347package=@PACKAGE@ 20348suffix=@suffix@ 20349 20350Name: @PACKAGE_NAME@ 20351Description: @PACKAGE_DESCRIPTION@ 20352Version: @PACKAGE_VERSION@ 20353Requires: @PACKAGE_REQUIRES@ 20354Libs: -L\${libdir} @LDFLAGS@ @LIBS@ 20355Cflags: -I\${includedir} @CPPFLAGS@ 20356AXEOF 20357fi # DONE generate $pkgconfig_generate.in 20358{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate" >&5 20359$as_echo "$as_me: creating $pkgconfig_generate" >&6;} 20360cat >conftest.sed <<AXEOF 20361s|@prefix@|${pkgconfig_prefix}| 20362s|@exec_prefix@|${pkgconfig_execprefix}| 20363s|@bindir@|${pkgconfig_bindir}| 20364s|@libdir@|${pkgconfig_libdir}| 20365s|@datarootdir@|${pkgconfig_datarootdir}| 20366s|@datadir@|${pkgconfig_datadir}| 20367s|@sysconfdir@|${pkgconfig_sysconfdir}| 20368s|@includedir@|${pkgconfig_includedir}| 20369s|@suffix@|${pkgconfig_suffix}| 20370s|@PACKAGE@|${pkgconfig_package}| 20371s|@PACKAGE_NAME@|${pkgconfig_libname}| 20372s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}| 20373s|@PACKAGE_VERSION@|${pkgconfig_version}| 20374s|@PACKAGE_REQUIRES@|${pkgconfig_requires}| 20375s|@LIBS@|${pkgconfig_libs}| 20376s|@LDFLAGS@|${pkgconfig_ldflags}| 20377s|@CPPFLAGS@|${pkgconfig_cppflags}| 20378AXEOF 20379sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_generate 20380if test ! -s $pkgconfig_generate ; then 20381 as_fn_error $? "$pkgconfig_generate is empty" "$LINENO" 5 20382fi ; rm conftest.sed # DONE generate $pkgconfig_generate 20383pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.pc/'` 20384{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5 20385$as_echo "$as_me: creating $pkgconfig_uninstalled" >&6;} 20386cat >conftest.sed <<AXEOF 20387s|@prefix@|${pkgconfig_prefix}| 20388s|@exec_prefix@|${pkgconfig_execprefix}| 20389s|@bindir@|${pkgconfig_bindir}| 20390s|@libdir@|${pkgconfig_src_libdir}| 20391s|@datarootdir@|${pkgconfig_datarootdir}| 20392s|@datadir@|${pkgconfig_datadir}| 20393s|@sysconfdir@|${pkgconfig_sysconfdir}| 20394s|@includedir@|${pkgconfig_src_headers}| 20395s|@suffix@|${pkgconfig_suffix}| 20396s|@PACKAGE@|${pkgconfig_package}| 20397s|@PACKAGE_NAME@|${pkgconfig_libname}| 20398s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}| 20399s|@PACKAGE_VERSION@|${pkgconfig_version}| 20400s|@PACKAGE_REQUIRES@|${pkgconfig_requires}| 20401s|@LIBS@|${pkgconfig_libs}| 20402s|@LDFLAGS@|${pkgconfig_ldflags}| 20403s|@CPPFLAGS@|${pkgconfig_cppflags}| 20404AXEOF 20405sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_uninstalled 20406if test ! -s $pkgconfig_uninstalled ; then 20407 as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5 20408fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled 20409 pkgconfig_requires_add=`echo ${pkgconfig_requires}` 20410if test ".$pkgconfig_requires_add" != "." ; then 20411 pkgconfig_requires_add="pkg-config $pkgconfig_requires_add" 20412 else pkgconfig_requires_add=":" ; fi 20413pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.sh/'` 20414{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5 20415$as_echo "$as_me: creating $pkgconfig_uninstalled" >&6;} 20416cat >conftest.sed <<AXEOF 20417s|@prefix@|\"${pkgconfig_prefix}\"| 20418s|@exec_prefix@|\"${pkgconfig_execprefix}\"| 20419s|@bindir@|\"${pkgconfig_bindir}\"| 20420s|@libdir@|\"${pkgconfig_src_libdir}\"| 20421s|@datarootdir@|\"${pkgconfig_datarootdir}\"| 20422s|@datadir@|\"${pkgconfig_datadir}\"| 20423s|@sysconfdir@|\"${pkgconfig_sysconfdir}\"| 20424s|@includedir@|\"${pkgconfig_src_headers}\"| 20425s|@suffix@|\"${pkgconfig_suffix}\"| 20426s|@PACKAGE@|\"${pkgconfig_package}\"| 20427s|@PACKAGE_NAME@|\"${pkgconfig_libname}\"| 20428s|@PACKAGE_DESCRIPTION@|\"${pkgconfig_description}\"| 20429s|@PACKAGE_VERSION@|\"${pkgconfig_version}\"| 20430s|@PACKAGE_REQUIRES@|\"${pkgconfig_requires}\"| 20431s|@LIBS@|\"${pkgconfig_libs}\"| 20432s|@LDFLAGS@|\"${pkgconfig_ldflags}\"| 20433s|@CPPFLAGS@|\"${pkgconfig_cppflags}\"| 20434s>Name:>for option\\; do case \"\$option\" in --list-all|--name) echo > 20435s>Description: *>\\;\\; --help) pkg-config --help \\; echo Buildscript Of > 20436s>Version: *>\\;\\; --modversion|--version) echo > 20437s>Requires:>\\;\\; --requires) echo $pkgconfig_requires_add> 20438s>Libs: *>\\;\\; --libs) echo > 20439s>Cflags: *>\\;\\; --cflags) echo > 20440/--libs)/a\\ 20441 $pkgconfig_requires_add 20442/--cflags)/a\\ 20443 $pkgconfig_requires_add\\ 20444;; --variable=*) eval echo '\$'\`echo \$option | sed -e 's/.*=//'\`\\ 20445;; --uninstalled) exit 0 \\ 20446;; *) ;; esac done 20447AXEOF 20448sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_uninstalled 20449if test ! -s $pkgconfig_uninstalled ; then 20450 as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5 20451fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled 20452 ;; 20453 "pet_test.sh":F) chmod +x pet_test.sh ;; 20454 "codegen_test.sh":F) chmod +x codegen_test.sh ;; 20455 20456 esac 20457done # for ac_tag 20458 20459 20460as_fn_exit 0 20461_ACEOF 20462ac_clean_files=$ac_clean_files_save 20463 20464test $ac_write_fail = 0 || 20465 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20466 20467 20468 ac_configure_args="$ac_configure_args --with-clang=system" 20469 20470 20471# configure is writing to config.log, and then calls config.status. 20472# config.status does its own redirection, appending to config.log. 20473# Unfortunately, on DOS this fails, as config.log is still kept open 20474# by configure, so config.status won't be able to write to it; its 20475# output is simply discarded. So we exec the FD to /dev/null, 20476# effectively closing config.log, so it can be properly (re)opened and 20477# appended to by config.status. When coming back to configure, we 20478# need to make the FD available again. 20479if test "$no_create" != yes; then 20480 ac_cs_success=: 20481 ac_config_status_args= 20482 test "$silent" = yes && 20483 ac_config_status_args="$ac_config_status_args --quiet" 20484 exec 5>/dev/null 20485 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20486 exec 5>>config.log 20487 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20488 # would make configure fail if this is the last instruction. 20489 $ac_cs_success || as_fn_exit 1 20490fi 20491 20492# 20493# CONFIG_SUBDIRS section. 20494# 20495if test "$no_recursion" != yes; then 20496 20497 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 20498 # so they do not pile up. 20499 ac_sub_configure_args= 20500 ac_prev= 20501 eval "set x $ac_configure_args" 20502 shift 20503 for ac_arg 20504 do 20505 if test -n "$ac_prev"; then 20506 ac_prev= 20507 continue 20508 fi 20509 case $ac_arg in 20510 -cache-file | --cache-file | --cache-fil | --cache-fi \ 20511 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 20512 ac_prev=cache_file ;; 20513 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 20514 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 20515 | --c=*) 20516 ;; 20517 --config-cache | -C) 20518 ;; 20519 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 20520 ac_prev=srcdir ;; 20521 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 20522 ;; 20523 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 20524 ac_prev=prefix ;; 20525 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 20526 ;; 20527 --disable-option-checking) 20528 ;; 20529 *) 20530 case $ac_arg in 20531 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 20532 esac 20533 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 20534 esac 20535 done 20536 20537 # Always prepend --prefix to ensure using the same prefix 20538 # in subdir configurations. 20539 ac_arg="--prefix=$prefix" 20540 case $ac_arg in 20541 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 20542 esac 20543 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 20544 20545 # Pass --silent 20546 if test "$silent" = yes; then 20547 ac_sub_configure_args="--silent $ac_sub_configure_args" 20548 fi 20549 20550 # Always prepend --disable-option-checking to silence warnings, since 20551 # different subdirs can have different --enable and --with options. 20552 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 20553 20554 ac_popdir=`pwd` 20555 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 20556 20557 # Do not complain, so a configure script can configure whichever 20558 # parts of a large source tree are present. 20559 test -d "$srcdir/$ac_dir" || continue 20560 20561 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 20562 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 20563 $as_echo "$ac_msg" >&6 20564 as_dir="$ac_dir"; as_fn_mkdir_p 20565 ac_builddir=. 20566 20567case "$ac_dir" in 20568.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20569*) 20570 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20571 # A ".." for each directory in $ac_dir_suffix. 20572 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20573 case $ac_top_builddir_sub in 20574 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20575 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20576 esac ;; 20577esac 20578ac_abs_top_builddir=$ac_pwd 20579ac_abs_builddir=$ac_pwd$ac_dir_suffix 20580# for backward compatibility: 20581ac_top_builddir=$ac_top_build_prefix 20582 20583case $srcdir in 20584 .) # We are building in place. 20585 ac_srcdir=. 20586 ac_top_srcdir=$ac_top_builddir_sub 20587 ac_abs_top_srcdir=$ac_pwd ;; 20588 [\\/]* | ?:[\\/]* ) # Absolute name. 20589 ac_srcdir=$srcdir$ac_dir_suffix; 20590 ac_top_srcdir=$srcdir 20591 ac_abs_top_srcdir=$srcdir ;; 20592 *) # Relative name. 20593 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20594 ac_top_srcdir=$ac_top_build_prefix$srcdir 20595 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20596esac 20597ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20598 20599 20600 cd "$ac_dir" 20601 20602 # Check for guested configure; otherwise get Cygnus style configure. 20603 if test -f "$ac_srcdir/configure.gnu"; then 20604 ac_sub_configure=$ac_srcdir/configure.gnu 20605 elif test -f "$ac_srcdir/configure"; then 20606 ac_sub_configure=$ac_srcdir/configure 20607 elif test -f "$ac_srcdir/configure.in"; then 20608 # This should be Cygnus configure. 20609 ac_sub_configure=$ac_aux_dir/configure 20610 else 20611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 20612$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 20613 ac_sub_configure= 20614 fi 20615 20616 # The recursion is here. 20617 if test -n "$ac_sub_configure"; then 20618 # Make the cache file name correct relative to the subdirectory. 20619 case $cache_file in 20620 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 20621 *) # Relative name. 20622 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 20623 esac 20624 20625 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 20626$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 20627 # The eval makes quoting arguments work. 20628 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 20629 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 20630 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 20631 fi 20632 20633 cd "$ac_popdir" 20634 done 20635fi 20636if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20638$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20639fi 20640 20641