1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for rw 0.9. 4# 5# Report bugs to <philipp@informatik.uni-frankfurt.de>. 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 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || 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: philipp@informatik.uni-frankfurt.de 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='rw' 592PACKAGE_TARNAME='rw' 593PACKAGE_VERSION='0.9' 594PACKAGE_STRING='rw 0.9' 595PACKAGE_BUGREPORT='philipp@informatik.uni-frankfurt.de' 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 634ac_subst_vars='am__EXEEXT_FALSE 635am__EXEEXT_TRUE 636LTLIBOBJS 637LIBOBJS 638IGRAPH_LIBS 639IGRAPH_CFLAGS 640PKG_CONFIG_LIBDIR 641PKG_CONFIG_PATH 642PKG_CONFIG 643EXECUTABLE_FALSE 644EXECUTABLE_TRUE 645AM_CFLAGS 646CPP 647LT_SYS_LIBRARY_PATH 648OTOOL64 649OTOOL 650LIPO 651NMEDIT 652DSYMUTIL 653MANIFEST_TOOL 654RANLIB 655DLLTOOL 656OBJDUMP 657LN_S 658NM 659ac_ct_DUMPBIN 660DUMPBIN 661LD 662FGREP 663EGREP 664GREP 665SED 666host_os 667host_vendor 668host_cpu 669host 670build_os 671build_vendor 672build_cpu 673build 674LIBTOOL 675am__fastdepCC_FALSE 676am__fastdepCC_TRUE 677CCDEPMODE 678am__nodep 679AMDEPBACKSLASH 680AMDEP_FALSE 681AMDEP_TRUE 682am__include 683DEPDIR 684OBJEXT 685EXEEXT 686ac_ct_CC 687CPPFLAGS 688LDFLAGS 689CFLAGS 690CC 691ac_ct_AR 692AR 693AM_BACKSLASH 694AM_DEFAULT_VERBOSITY 695AM_DEFAULT_V 696AM_V 697am__untar 698am__tar 699AMTAR 700am__leading_dot 701SET_MAKE 702AWK 703mkdir_p 704MKDIR_P 705INSTALL_STRIP_PROGRAM 706STRIP 707install_sh 708MAKEINFO 709AUTOHEADER 710AUTOMAKE 711AUTOCONF 712ACLOCAL 713VERSION 714PACKAGE 715CYGPATH_W 716am__isrc 717INSTALL_DATA 718INSTALL_SCRIPT 719INSTALL_PROGRAM 720target_alias 721host_alias 722build_alias 723LIBS 724ECHO_T 725ECHO_N 726ECHO_C 727DEFS 728mandir 729localedir 730libdir 731psdir 732pdfdir 733dvidir 734htmldir 735infodir 736docdir 737oldincludedir 738includedir 739runstatedir 740localstatedir 741sharedstatedir 742sysconfdir 743datadir 744datarootdir 745libexecdir 746sbindir 747bindir 748program_transform_name 749prefix 750exec_prefix 751PACKAGE_URL 752PACKAGE_BUGREPORT 753PACKAGE_STRING 754PACKAGE_VERSION 755PACKAGE_TARNAME 756PACKAGE_NAME 757PATH_SEPARATOR 758SHELL 759am__quote' 760ac_subst_files='' 761ac_user_opts=' 762enable_option_checking 763enable_silent_rules 764enable_dependency_tracking 765enable_shared 766enable_static 767with_pic 768enable_fast_install 769with_aix_soname 770with_gnu_ld 771with_sysroot 772enable_libtool_lock 773enable_executable 774' 775 ac_precious_vars='build_alias 776host_alias 777target_alias 778CC 779CFLAGS 780LDFLAGS 781LIBS 782CPPFLAGS 783LT_SYS_LIBRARY_PATH 784CPP 785PKG_CONFIG 786PKG_CONFIG_PATH 787PKG_CONFIG_LIBDIR 788IGRAPH_CFLAGS 789IGRAPH_LIBS' 790 791 792# Initialize some variables set by options. 793ac_init_help= 794ac_init_version=false 795ac_unrecognized_opts= 796ac_unrecognized_sep= 797# The variables have the same names as the options, with 798# dashes changed to underlines. 799cache_file=/dev/null 800exec_prefix=NONE 801no_create= 802no_recursion= 803prefix=NONE 804program_prefix=NONE 805program_suffix=NONE 806program_transform_name=s,x,x, 807silent= 808site= 809srcdir= 810verbose= 811x_includes=NONE 812x_libraries=NONE 813 814# Installation directory options. 815# These are left unexpanded so users can "make install exec_prefix=/foo" 816# and all the variables that are supposed to be based on exec_prefix 817# by default will actually change. 818# Use braces instead of parens because sh, perl, etc. also accept them. 819# (The list follows the same order as the GNU Coding Standards.) 820bindir='${exec_prefix}/bin' 821sbindir='${exec_prefix}/sbin' 822libexecdir='${exec_prefix}/libexec' 823datarootdir='${prefix}/share' 824datadir='${datarootdir}' 825sysconfdir='${prefix}/etc' 826sharedstatedir='${prefix}/com' 827localstatedir='${prefix}/var' 828runstatedir='${localstatedir}/run' 829includedir='${prefix}/include' 830oldincludedir='/usr/include' 831docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 832infodir='${datarootdir}/info' 833htmldir='${docdir}' 834dvidir='${docdir}' 835pdfdir='${docdir}' 836psdir='${docdir}' 837libdir='${exec_prefix}/lib' 838localedir='${datarootdir}/locale' 839mandir='${datarootdir}/man' 840 841ac_prev= 842ac_dashdash= 843for ac_option 844do 845 # If the previous option needs an argument, assign it. 846 if test -n "$ac_prev"; then 847 eval $ac_prev=\$ac_option 848 ac_prev= 849 continue 850 fi 851 852 case $ac_option in 853 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 854 *=) ac_optarg= ;; 855 *) ac_optarg=yes ;; 856 esac 857 858 # Accept the important Cygnus configure options, so we can diagnose typos. 859 860 case $ac_dashdash$ac_option in 861 --) 862 ac_dashdash=yes ;; 863 864 -bindir | --bindir | --bindi | --bind | --bin | --bi) 865 ac_prev=bindir ;; 866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 867 bindir=$ac_optarg ;; 868 869 -build | --build | --buil | --bui | --bu) 870 ac_prev=build_alias ;; 871 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 872 build_alias=$ac_optarg ;; 873 874 -cache-file | --cache-file | --cache-fil | --cache-fi \ 875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 876 ac_prev=cache_file ;; 877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 879 cache_file=$ac_optarg ;; 880 881 --config-cache | -C) 882 cache_file=config.cache ;; 883 884 -datadir | --datadir | --datadi | --datad) 885 ac_prev=datadir ;; 886 -datadir=* | --datadir=* | --datadi=* | --datad=*) 887 datadir=$ac_optarg ;; 888 889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 890 | --dataroo | --dataro | --datar) 891 ac_prev=datarootdir ;; 892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 894 datarootdir=$ac_optarg ;; 895 896 -disable-* | --disable-*) 897 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 898 # Reject names that are not valid shell variable names. 899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 900 as_fn_error $? "invalid feature name: $ac_useropt" 901 ac_useropt_orig=$ac_useropt 902 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 903 case $ac_user_opts in 904 *" 905"enable_$ac_useropt" 906"*) ;; 907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 908 ac_unrecognized_sep=', ';; 909 esac 910 eval enable_$ac_useropt=no ;; 911 912 -docdir | --docdir | --docdi | --doc | --do) 913 ac_prev=docdir ;; 914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 915 docdir=$ac_optarg ;; 916 917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 918 ac_prev=dvidir ;; 919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 920 dvidir=$ac_optarg ;; 921 922 -enable-* | --enable-*) 923 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 924 # Reject names that are not valid shell variable names. 925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 926 as_fn_error $? "invalid feature name: $ac_useropt" 927 ac_useropt_orig=$ac_useropt 928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 929 case $ac_user_opts in 930 *" 931"enable_$ac_useropt" 932"*) ;; 933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 934 ac_unrecognized_sep=', ';; 935 esac 936 eval enable_$ac_useropt=\$ac_optarg ;; 937 938 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 939 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 940 | --exec | --exe | --ex) 941 ac_prev=exec_prefix ;; 942 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 943 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 944 | --exec=* | --exe=* | --ex=*) 945 exec_prefix=$ac_optarg ;; 946 947 -gas | --gas | --ga | --g) 948 # Obsolete; use --with-gas. 949 with_gas=yes ;; 950 951 -help | --help | --hel | --he | -h) 952 ac_init_help=long ;; 953 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 954 ac_init_help=recursive ;; 955 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 956 ac_init_help=short ;; 957 958 -host | --host | --hos | --ho) 959 ac_prev=host_alias ;; 960 -host=* | --host=* | --hos=* | --ho=*) 961 host_alias=$ac_optarg ;; 962 963 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 964 ac_prev=htmldir ;; 965 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 966 | --ht=*) 967 htmldir=$ac_optarg ;; 968 969 -includedir | --includedir | --includedi | --included | --include \ 970 | --includ | --inclu | --incl | --inc) 971 ac_prev=includedir ;; 972 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 973 | --includ=* | --inclu=* | --incl=* | --inc=*) 974 includedir=$ac_optarg ;; 975 976 -infodir | --infodir | --infodi | --infod | --info | --inf) 977 ac_prev=infodir ;; 978 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 979 infodir=$ac_optarg ;; 980 981 -libdir | --libdir | --libdi | --libd) 982 ac_prev=libdir ;; 983 -libdir=* | --libdir=* | --libdi=* | --libd=*) 984 libdir=$ac_optarg ;; 985 986 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 987 | --libexe | --libex | --libe) 988 ac_prev=libexecdir ;; 989 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 990 | --libexe=* | --libex=* | --libe=*) 991 libexecdir=$ac_optarg ;; 992 993 -localedir | --localedir | --localedi | --localed | --locale) 994 ac_prev=localedir ;; 995 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 996 localedir=$ac_optarg ;; 997 998 -localstatedir | --localstatedir | --localstatedi | --localstated \ 999 | --localstate | --localstat | --localsta | --localst | --locals) 1000 ac_prev=localstatedir ;; 1001 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1002 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1003 localstatedir=$ac_optarg ;; 1004 1005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1006 ac_prev=mandir ;; 1007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1008 mandir=$ac_optarg ;; 1009 1010 -nfp | --nfp | --nf) 1011 # Obsolete; use --without-fp. 1012 with_fp=no ;; 1013 1014 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1015 | --no-cr | --no-c | -n) 1016 no_create=yes ;; 1017 1018 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1019 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1020 no_recursion=yes ;; 1021 1022 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1023 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1024 | --oldin | --oldi | --old | --ol | --o) 1025 ac_prev=oldincludedir ;; 1026 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1027 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1028 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1029 oldincludedir=$ac_optarg ;; 1030 1031 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1032 ac_prev=prefix ;; 1033 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1034 prefix=$ac_optarg ;; 1035 1036 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1037 | --program-pre | --program-pr | --program-p) 1038 ac_prev=program_prefix ;; 1039 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1040 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1041 program_prefix=$ac_optarg ;; 1042 1043 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1044 | --program-suf | --program-su | --program-s) 1045 ac_prev=program_suffix ;; 1046 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1047 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1048 program_suffix=$ac_optarg ;; 1049 1050 -program-transform-name | --program-transform-name \ 1051 | --program-transform-nam | --program-transform-na \ 1052 | --program-transform-n | --program-transform- \ 1053 | --program-transform | --program-transfor \ 1054 | --program-transfo | --program-transf \ 1055 | --program-trans | --program-tran \ 1056 | --progr-tra | --program-tr | --program-t) 1057 ac_prev=program_transform_name ;; 1058 -program-transform-name=* | --program-transform-name=* \ 1059 | --program-transform-nam=* | --program-transform-na=* \ 1060 | --program-transform-n=* | --program-transform-=* \ 1061 | --program-transform=* | --program-transfor=* \ 1062 | --program-transfo=* | --program-transf=* \ 1063 | --program-trans=* | --program-tran=* \ 1064 | --progr-tra=* | --program-tr=* | --program-t=*) 1065 program_transform_name=$ac_optarg ;; 1066 1067 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1068 ac_prev=pdfdir ;; 1069 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1070 pdfdir=$ac_optarg ;; 1071 1072 -psdir | --psdir | --psdi | --psd | --ps) 1073 ac_prev=psdir ;; 1074 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1075 psdir=$ac_optarg ;; 1076 1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1078 | -silent | --silent | --silen | --sile | --sil) 1079 silent=yes ;; 1080 1081 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1082 | --runstate | --runstat | --runsta | --runst | --runs \ 1083 | --run | --ru | --r) 1084 ac_prev=runstatedir ;; 1085 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1086 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1087 | --run=* | --ru=* | --r=*) 1088 runstatedir=$ac_optarg ;; 1089 1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1091 ac_prev=sbindir ;; 1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1093 | --sbi=* | --sb=*) 1094 sbindir=$ac_optarg ;; 1095 1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1098 | --sharedst | --shareds | --shared | --share | --shar \ 1099 | --sha | --sh) 1100 ac_prev=sharedstatedir ;; 1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1104 | --sha=* | --sh=*) 1105 sharedstatedir=$ac_optarg ;; 1106 1107 -site | --site | --sit) 1108 ac_prev=site ;; 1109 -site=* | --site=* | --sit=*) 1110 site=$ac_optarg ;; 1111 1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1113 ac_prev=srcdir ;; 1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1115 srcdir=$ac_optarg ;; 1116 1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1118 | --syscon | --sysco | --sysc | --sys | --sy) 1119 ac_prev=sysconfdir ;; 1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1122 sysconfdir=$ac_optarg ;; 1123 1124 -target | --target | --targe | --targ | --tar | --ta | --t) 1125 ac_prev=target_alias ;; 1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1127 target_alias=$ac_optarg ;; 1128 1129 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1130 verbose=yes ;; 1131 1132 -version | --version | --versio | --versi | --vers | -V) 1133 ac_init_version=: ;; 1134 1135 -with-* | --with-*) 1136 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1137 # Reject names that are not valid shell variable names. 1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1139 as_fn_error $? "invalid package name: $ac_useropt" 1140 ac_useropt_orig=$ac_useropt 1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1142 case $ac_user_opts in 1143 *" 1144"with_$ac_useropt" 1145"*) ;; 1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1147 ac_unrecognized_sep=', ';; 1148 esac 1149 eval with_$ac_useropt=\$ac_optarg ;; 1150 1151 -without-* | --without-*) 1152 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1153 # Reject names that are not valid shell variable names. 1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1155 as_fn_error $? "invalid package name: $ac_useropt" 1156 ac_useropt_orig=$ac_useropt 1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1158 case $ac_user_opts in 1159 *" 1160"with_$ac_useropt" 1161"*) ;; 1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1163 ac_unrecognized_sep=', ';; 1164 esac 1165 eval with_$ac_useropt=no ;; 1166 1167 --x) 1168 # Obsolete; use --with-x. 1169 with_x=yes ;; 1170 1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1172 | --x-incl | --x-inc | --x-in | --x-i) 1173 ac_prev=x_includes ;; 1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1176 x_includes=$ac_optarg ;; 1177 1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1180 ac_prev=x_libraries ;; 1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1183 x_libraries=$ac_optarg ;; 1184 1185 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1186Try \`$0 --help' for more information" 1187 ;; 1188 1189 *=*) 1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1191 # Reject names that are not valid shell variable names. 1192 case $ac_envvar in #( 1193 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1194 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1195 esac 1196 eval $ac_envvar=\$ac_optarg 1197 export $ac_envvar ;; 1198 1199 *) 1200 # FIXME: should be removed in autoconf 3.0. 1201 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1203 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1204 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1205 ;; 1206 1207 esac 1208done 1209 1210if test -n "$ac_prev"; then 1211 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1212 as_fn_error $? "missing argument to $ac_option" 1213fi 1214 1215if test -n "$ac_unrecognized_opts"; then 1216 case $enable_option_checking in 1217 no) ;; 1218 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1219 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1220 esac 1221fi 1222 1223# Check all directory arguments for consistency. 1224for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1225 datadir sysconfdir sharedstatedir localstatedir includedir \ 1226 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1227 libdir localedir mandir runstatedir 1228do 1229 eval ac_val=\$$ac_var 1230 # Remove trailing slashes. 1231 case $ac_val in 1232 */ ) 1233 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1234 eval $ac_var=\$ac_val;; 1235 esac 1236 # Be sure to have absolute directory names. 1237 case $ac_val in 1238 [\\/$]* | ?:[\\/]* ) continue;; 1239 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1240 esac 1241 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1242done 1243 1244# There might be people who depend on the old broken behavior: `$host' 1245# used to hold the argument of --host etc. 1246# FIXME: To remove some day. 1247build=$build_alias 1248host=$host_alias 1249target=$target_alias 1250 1251# FIXME: To remove some day. 1252if test "x$host_alias" != x; then 1253 if test "x$build_alias" = x; then 1254 cross_compiling=maybe 1255 elif test "x$build_alias" != "x$host_alias"; then 1256 cross_compiling=yes 1257 fi 1258fi 1259 1260ac_tool_prefix= 1261test -n "$host_alias" && ac_tool_prefix=$host_alias- 1262 1263test "$silent" = yes && exec 6>/dev/null 1264 1265 1266ac_pwd=`pwd` && test -n "$ac_pwd" && 1267ac_ls_di=`ls -di .` && 1268ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1269 as_fn_error $? "working directory cannot be determined" 1270test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1271 as_fn_error $? "pwd does not report name of working directory" 1272 1273 1274# Find the source files, if location was not specified. 1275if test -z "$srcdir"; then 1276 ac_srcdir_defaulted=yes 1277 # Try the directory containing this script, then the parent directory. 1278 ac_confdir=`$as_dirname -- "$as_myself" || 1279$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1280 X"$as_myself" : 'X\(//\)[^/]' \| \ 1281 X"$as_myself" : 'X\(//\)$' \| \ 1282 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1283$as_echo X"$as_myself" | 1284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1285 s//\1/ 1286 q 1287 } 1288 /^X\(\/\/\)[^/].*/{ 1289 s//\1/ 1290 q 1291 } 1292 /^X\(\/\/\)$/{ 1293 s//\1/ 1294 q 1295 } 1296 /^X\(\/\).*/{ 1297 s//\1/ 1298 q 1299 } 1300 s/.*/./; q'` 1301 srcdir=$ac_confdir 1302 if test ! -r "$srcdir/$ac_unique_file"; then 1303 srcdir=.. 1304 fi 1305else 1306 ac_srcdir_defaulted=no 1307fi 1308if test ! -r "$srcdir/$ac_unique_file"; then 1309 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1310 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1311fi 1312ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1313ac_abs_confdir=`( 1314 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1315 pwd)` 1316# When building in place, set srcdir=. 1317if test "$ac_abs_confdir" = "$ac_pwd"; then 1318 srcdir=. 1319fi 1320# Remove unnecessary trailing slashes from srcdir. 1321# Double slashes in file names in object file debugging info 1322# mess up M-x gdb in Emacs. 1323case $srcdir in 1324*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1325esac 1326for ac_var in $ac_precious_vars; do 1327 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1328 eval ac_env_${ac_var}_value=\$${ac_var} 1329 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1330 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1331done 1332 1333# 1334# Report the --help message. 1335# 1336if test "$ac_init_help" = "long"; then 1337 # Omit some internal or obsolete options to make the list less imposing. 1338 # This message is too long to be a string in the A/UX 3.1 sh. 1339 cat <<_ACEOF 1340\`configure' configures rw 0.9 to adapt to many kinds of systems. 1341 1342Usage: $0 [OPTION]... [VAR=VALUE]... 1343 1344To assign environment variables (e.g., CC, CFLAGS...), specify them as 1345VAR=VALUE. See below for descriptions of some of the useful variables. 1346 1347Defaults for the options are specified in brackets. 1348 1349Configuration: 1350 -h, --help display this help and exit 1351 --help=short display options specific to this package 1352 --help=recursive display the short help of all the included packages 1353 -V, --version display version information and exit 1354 -q, --quiet, --silent do not print \`checking ...' messages 1355 --cache-file=FILE cache test results in FILE [disabled] 1356 -C, --config-cache alias for \`--cache-file=config.cache' 1357 -n, --no-create do not create output files 1358 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1359 1360Installation directories: 1361 --prefix=PREFIX install architecture-independent files in PREFIX 1362 [$ac_default_prefix] 1363 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1364 [PREFIX] 1365 1366By default, \`make install' will install all the files in 1367\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1368an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1369for instance \`--prefix=\$HOME'. 1370 1371For better control, use the options below. 1372 1373Fine tuning of the installation directories: 1374 --bindir=DIR user executables [EPREFIX/bin] 1375 --sbindir=DIR system admin executables [EPREFIX/sbin] 1376 --libexecdir=DIR program executables [EPREFIX/libexec] 1377 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1378 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1379 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1380 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1381 --libdir=DIR object code libraries [EPREFIX/lib] 1382 --includedir=DIR C header files [PREFIX/include] 1383 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1384 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1385 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1386 --infodir=DIR info documentation [DATAROOTDIR/info] 1387 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1388 --mandir=DIR man documentation [DATAROOTDIR/man] 1389 --docdir=DIR documentation root [DATAROOTDIR/doc/rw] 1390 --htmldir=DIR html documentation [DOCDIR] 1391 --dvidir=DIR dvi documentation [DOCDIR] 1392 --pdfdir=DIR pdf documentation [DOCDIR] 1393 --psdir=DIR ps documentation [DOCDIR] 1394_ACEOF 1395 1396 cat <<\_ACEOF 1397 1398Program names: 1399 --program-prefix=PREFIX prepend PREFIX to installed program names 1400 --program-suffix=SUFFIX append SUFFIX to installed program names 1401 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1402 1403System types: 1404 --build=BUILD configure for building on BUILD [guessed] 1405 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1406_ACEOF 1407fi 1408 1409if test -n "$ac_init_help"; then 1410 case $ac_init_help in 1411 short | recursive ) echo "Configuration of rw 0.9:";; 1412 esac 1413 cat <<\_ACEOF 1414 1415Optional Features: 1416 --disable-option-checking ignore unrecognized --enable/--with options 1417 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1418 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1419 --enable-silent-rules less verbose build output (undo: "make V=1") 1420 --disable-silent-rules verbose build output (undo: "make V=0") 1421 --enable-dependency-tracking 1422 do not reject slow dependency extractors 1423 --disable-dependency-tracking 1424 speeds up one-time build 1425 --enable-shared[=PKGS] build shared libraries [default=yes] 1426 --enable-static[=PKGS] build static libraries [default=yes] 1427 --enable-fast-install[=PKGS] 1428 optimize for fast installation [default=yes] 1429 --disable-libtool-lock avoid locking (might break parallel builds) 1430 --enable-executable build the executable program default=yes 1431 1432Optional Packages: 1433 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1434 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1435 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1436 both] 1437 --with-aix-soname=aix|svr4|both 1438 shared library versioning (aka "SONAME") variant to 1439 provide on AIX, [default=aix]. 1440 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1441 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1442 compiler's sysroot if not specified). 1443 1444Some influential environment variables: 1445 CC C compiler command 1446 CFLAGS C compiler flags 1447 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1448 nonstandard directory <lib dir> 1449 LIBS libraries to pass to the linker, e.g. -l<library> 1450 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1451 you have headers in a nonstandard directory <include dir> 1452 LT_SYS_LIBRARY_PATH 1453 User-defined run-time library search path. 1454 CPP C preprocessor 1455 PKG_CONFIG path to pkg-config utility 1456 PKG_CONFIG_PATH 1457 directories to add to pkg-config's search path 1458 PKG_CONFIG_LIBDIR 1459 path overriding pkg-config's built-in search path 1460 IGRAPH_CFLAGS 1461 C compiler flags for IGRAPH, overriding pkg-config 1462 IGRAPH_LIBS linker flags for IGRAPH, overriding pkg-config 1463 1464Use these variables to override the choices made by `configure' or to help 1465it to find libraries and programs with nonstandard names/locations. 1466 1467Report bugs to <philipp@informatik.uni-frankfurt.de>. 1468_ACEOF 1469ac_status=$? 1470fi 1471 1472if test "$ac_init_help" = "recursive"; then 1473 # If there are subdirs, report their specific --help. 1474 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1475 test -d "$ac_dir" || 1476 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1477 continue 1478 ac_builddir=. 1479 1480case "$ac_dir" in 1481.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1482*) 1483 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1484 # A ".." for each directory in $ac_dir_suffix. 1485 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1486 case $ac_top_builddir_sub in 1487 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1488 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1489 esac ;; 1490esac 1491ac_abs_top_builddir=$ac_pwd 1492ac_abs_builddir=$ac_pwd$ac_dir_suffix 1493# for backward compatibility: 1494ac_top_builddir=$ac_top_build_prefix 1495 1496case $srcdir in 1497 .) # We are building in place. 1498 ac_srcdir=. 1499 ac_top_srcdir=$ac_top_builddir_sub 1500 ac_abs_top_srcdir=$ac_pwd ;; 1501 [\\/]* | ?:[\\/]* ) # Absolute name. 1502 ac_srcdir=$srcdir$ac_dir_suffix; 1503 ac_top_srcdir=$srcdir 1504 ac_abs_top_srcdir=$srcdir ;; 1505 *) # Relative name. 1506 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1507 ac_top_srcdir=$ac_top_build_prefix$srcdir 1508 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1509esac 1510ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1511 1512 cd "$ac_dir" || { ac_status=$?; continue; } 1513 # Check for guested configure. 1514 if test -f "$ac_srcdir/configure.gnu"; then 1515 echo && 1516 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1517 elif test -f "$ac_srcdir/configure"; then 1518 echo && 1519 $SHELL "$ac_srcdir/configure" --help=recursive 1520 else 1521 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1522 fi || ac_status=$? 1523 cd "$ac_pwd" || { ac_status=$?; break; } 1524 done 1525fi 1526 1527test -n "$ac_init_help" && exit $ac_status 1528if $ac_init_version; then 1529 cat <<\_ACEOF 1530rw configure 0.9 1531generated by GNU Autoconf 2.69 1532 1533Copyright (C) 2012 Free Software Foundation, Inc. 1534This configure script is free software; the Free Software Foundation 1535gives unlimited permission to copy, distribute and modify it. 1536_ACEOF 1537 exit 1538fi 1539 1540## ------------------------ ## 1541## Autoconf initialization. ## 1542## ------------------------ ## 1543 1544# ac_fn_c_try_compile LINENO 1545# -------------------------- 1546# Try to compile conftest.$ac_ext, and return whether this succeeded. 1547ac_fn_c_try_compile () 1548{ 1549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1550 rm -f conftest.$ac_objext 1551 if { { ac_try="$ac_compile" 1552case "(($ac_try" in 1553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1554 *) ac_try_echo=$ac_try;; 1555esac 1556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1557$as_echo "$ac_try_echo"; } >&5 1558 (eval "$ac_compile") 2>conftest.err 1559 ac_status=$? 1560 if test -s conftest.err; then 1561 grep -v '^ *+' conftest.err >conftest.er1 1562 cat conftest.er1 >&5 1563 mv -f conftest.er1 conftest.err 1564 fi 1565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1566 test $ac_status = 0; } && { 1567 test -z "$ac_c_werror_flag" || 1568 test ! -s conftest.err 1569 } && test -s conftest.$ac_objext; then : 1570 ac_retval=0 1571else 1572 $as_echo "$as_me: failed program was:" >&5 1573sed 's/^/| /' conftest.$ac_ext >&5 1574 1575 ac_retval=1 1576fi 1577 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1578 as_fn_set_status $ac_retval 1579 1580} # ac_fn_c_try_compile 1581 1582# ac_fn_c_try_link LINENO 1583# ----------------------- 1584# Try to link conftest.$ac_ext, and return whether this succeeded. 1585ac_fn_c_try_link () 1586{ 1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1588 rm -f conftest.$ac_objext conftest$ac_exeext 1589 if { { ac_try="$ac_link" 1590case "(($ac_try" in 1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1592 *) ac_try_echo=$ac_try;; 1593esac 1594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1595$as_echo "$ac_try_echo"; } >&5 1596 (eval "$ac_link") 2>conftest.err 1597 ac_status=$? 1598 if test -s conftest.err; then 1599 grep -v '^ *+' conftest.err >conftest.er1 1600 cat conftest.er1 >&5 1601 mv -f conftest.er1 conftest.err 1602 fi 1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1604 test $ac_status = 0; } && { 1605 test -z "$ac_c_werror_flag" || 1606 test ! -s conftest.err 1607 } && test -s conftest$ac_exeext && { 1608 test "$cross_compiling" = yes || 1609 test -x conftest$ac_exeext 1610 }; then : 1611 ac_retval=0 1612else 1613 $as_echo "$as_me: failed program was:" >&5 1614sed 's/^/| /' conftest.$ac_ext >&5 1615 1616 ac_retval=1 1617fi 1618 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1619 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1620 # interfere with the next link command; also delete a directory that is 1621 # left behind by Apple's compiler. We do this before executing the actions. 1622 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1624 as_fn_set_status $ac_retval 1625 1626} # ac_fn_c_try_link 1627 1628# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1629# ------------------------------------------------------- 1630# Tests whether HEADER exists and can be compiled using the include files in 1631# INCLUDES, setting the cache variable VAR accordingly. 1632ac_fn_c_check_header_compile () 1633{ 1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1636$as_echo_n "checking for $2... " >&6; } 1637if eval \${$3+:} false; then : 1638 $as_echo_n "(cached) " >&6 1639else 1640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1641/* end confdefs.h. */ 1642$4 1643#include <$2> 1644_ACEOF 1645if ac_fn_c_try_compile "$LINENO"; then : 1646 eval "$3=yes" 1647else 1648 eval "$3=no" 1649fi 1650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1651fi 1652eval ac_res=\$$3 1653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1654$as_echo "$ac_res" >&6; } 1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1656 1657} # ac_fn_c_check_header_compile 1658 1659# ac_fn_c_try_cpp LINENO 1660# ---------------------- 1661# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1662ac_fn_c_try_cpp () 1663{ 1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1665 if { { ac_try="$ac_cpp conftest.$ac_ext" 1666case "(($ac_try" in 1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1668 *) ac_try_echo=$ac_try;; 1669esac 1670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1671$as_echo "$ac_try_echo"; } >&5 1672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1673 ac_status=$? 1674 if test -s conftest.err; then 1675 grep -v '^ *+' conftest.err >conftest.er1 1676 cat conftest.er1 >&5 1677 mv -f conftest.er1 conftest.err 1678 fi 1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1680 test $ac_status = 0; } > conftest.i && { 1681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1682 test ! -s conftest.err 1683 }; then : 1684 ac_retval=0 1685else 1686 $as_echo "$as_me: failed program was:" >&5 1687sed 's/^/| /' conftest.$ac_ext >&5 1688 1689 ac_retval=1 1690fi 1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1692 as_fn_set_status $ac_retval 1693 1694} # ac_fn_c_try_cpp 1695 1696# ac_fn_c_try_run LINENO 1697# ---------------------- 1698# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1699# that executables *can* be run. 1700ac_fn_c_try_run () 1701{ 1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1703 if { { ac_try="$ac_link" 1704case "(($ac_try" in 1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1706 *) ac_try_echo=$ac_try;; 1707esac 1708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1709$as_echo "$ac_try_echo"; } >&5 1710 (eval "$ac_link") 2>&5 1711 ac_status=$? 1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1713 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1714 { { case "(($ac_try" in 1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1716 *) ac_try_echo=$ac_try;; 1717esac 1718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1719$as_echo "$ac_try_echo"; } >&5 1720 (eval "$ac_try") 2>&5 1721 ac_status=$? 1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1723 test $ac_status = 0; }; }; then : 1724 ac_retval=0 1725else 1726 $as_echo "$as_me: program exited with status $ac_status" >&5 1727 $as_echo "$as_me: failed program was:" >&5 1728sed 's/^/| /' conftest.$ac_ext >&5 1729 1730 ac_retval=$ac_status 1731fi 1732 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1734 as_fn_set_status $ac_retval 1735 1736} # ac_fn_c_try_run 1737 1738# ac_fn_c_check_func LINENO FUNC VAR 1739# ---------------------------------- 1740# Tests whether FUNC exists, setting the cache variable VAR accordingly 1741ac_fn_c_check_func () 1742{ 1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1745$as_echo_n "checking for $2... " >&6; } 1746if eval \${$3+:} false; then : 1747 $as_echo_n "(cached) " >&6 1748else 1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1750/* end confdefs.h. */ 1751/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1752 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1753#define $2 innocuous_$2 1754 1755/* System header to define __stub macros and hopefully few prototypes, 1756 which can conflict with char $2 (); below. 1757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1758 <limits.h> exists even on freestanding compilers. */ 1759 1760#ifdef __STDC__ 1761# include <limits.h> 1762#else 1763# include <assert.h> 1764#endif 1765 1766#undef $2 1767 1768/* Override any GCC internal prototype to avoid an error. 1769 Use char because int might match the return type of a GCC 1770 builtin and then its argument prototype would still apply. */ 1771#ifdef __cplusplus 1772extern "C" 1773#endif 1774char $2 (); 1775/* The GNU C library defines this for functions which it implements 1776 to always fail with ENOSYS. Some functions are actually named 1777 something starting with __ and the normal name is an alias. */ 1778#if defined __stub_$2 || defined __stub___$2 1779choke me 1780#endif 1781 1782int 1783main () 1784{ 1785return $2 (); 1786 ; 1787 return 0; 1788} 1789_ACEOF 1790if ac_fn_c_try_link "$LINENO"; then : 1791 eval "$3=yes" 1792else 1793 eval "$3=no" 1794fi 1795rm -f core conftest.err conftest.$ac_objext \ 1796 conftest$ac_exeext conftest.$ac_ext 1797fi 1798eval ac_res=\$$3 1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1800$as_echo "$ac_res" >&6; } 1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1802 1803} # ac_fn_c_check_func 1804cat >config.log <<_ACEOF 1805This file contains any messages produced by compilers while 1806running configure, to aid debugging if configure makes a mistake. 1807 1808It was created by rw $as_me 0.9, which was 1809generated by GNU Autoconf 2.69. Invocation command line was 1810 1811 $ $0 $@ 1812 1813_ACEOF 1814exec 5>>config.log 1815{ 1816cat <<_ASUNAME 1817## --------- ## 1818## Platform. ## 1819## --------- ## 1820 1821hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1822uname -m = `(uname -m) 2>/dev/null || echo unknown` 1823uname -r = `(uname -r) 2>/dev/null || echo unknown` 1824uname -s = `(uname -s) 2>/dev/null || echo unknown` 1825uname -v = `(uname -v) 2>/dev/null || echo unknown` 1826 1827/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1828/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1829 1830/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1831/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1832/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1833/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1834/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1835/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1836/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1837 1838_ASUNAME 1839 1840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1841for as_dir in $PATH 1842do 1843 IFS=$as_save_IFS 1844 test -z "$as_dir" && as_dir=. 1845 $as_echo "PATH: $as_dir" 1846 done 1847IFS=$as_save_IFS 1848 1849} >&5 1850 1851cat >&5 <<_ACEOF 1852 1853 1854## ----------- ## 1855## Core tests. ## 1856## ----------- ## 1857 1858_ACEOF 1859 1860 1861# Keep a trace of the command line. 1862# Strip out --no-create and --no-recursion so they do not pile up. 1863# Strip out --silent because we don't want to record it for future runs. 1864# Also quote any args containing shell meta-characters. 1865# Make two passes to allow for proper duplicate-argument suppression. 1866ac_configure_args= 1867ac_configure_args0= 1868ac_configure_args1= 1869ac_must_keep_next=false 1870for ac_pass in 1 2 1871do 1872 for ac_arg 1873 do 1874 case $ac_arg in 1875 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1876 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1877 | -silent | --silent | --silen | --sile | --sil) 1878 continue ;; 1879 *\'*) 1880 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1881 esac 1882 case $ac_pass in 1883 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1884 2) 1885 as_fn_append ac_configure_args1 " '$ac_arg'" 1886 if test $ac_must_keep_next = true; then 1887 ac_must_keep_next=false # Got value, back to normal. 1888 else 1889 case $ac_arg in 1890 *=* | --config-cache | -C | -disable-* | --disable-* \ 1891 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1892 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1893 | -with-* | --with-* | -without-* | --without-* | --x) 1894 case "$ac_configure_args0 " in 1895 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1896 esac 1897 ;; 1898 -* ) ac_must_keep_next=true ;; 1899 esac 1900 fi 1901 as_fn_append ac_configure_args " '$ac_arg'" 1902 ;; 1903 esac 1904 done 1905done 1906{ ac_configure_args0=; unset ac_configure_args0;} 1907{ ac_configure_args1=; unset ac_configure_args1;} 1908 1909# When interrupted or exit'd, cleanup temporary files, and complete 1910# config.log. We remove comments because anyway the quotes in there 1911# would cause problems or look ugly. 1912# WARNING: Use '\'' to represent an apostrophe within the trap. 1913# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1914trap 'exit_status=$? 1915 # Save into config.log some information that might help in debugging. 1916 { 1917 echo 1918 1919 $as_echo "## ---------------- ## 1920## Cache variables. ## 1921## ---------------- ##" 1922 echo 1923 # The following way of writing the cache mishandles newlines in values, 1924( 1925 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1926 eval ac_val=\$$ac_var 1927 case $ac_val in #( 1928 *${as_nl}*) 1929 case $ac_var in #( 1930 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1931$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1932 esac 1933 case $ac_var in #( 1934 _ | IFS | as_nl) ;; #( 1935 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1936 *) { eval $ac_var=; unset $ac_var;} ;; 1937 esac ;; 1938 esac 1939 done 1940 (set) 2>&1 | 1941 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1942 *${as_nl}ac_space=\ *) 1943 sed -n \ 1944 "s/'\''/'\''\\\\'\'''\''/g; 1945 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1946 ;; #( 1947 *) 1948 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1949 ;; 1950 esac | 1951 sort 1952) 1953 echo 1954 1955 $as_echo "## ----------------- ## 1956## Output variables. ## 1957## ----------------- ##" 1958 echo 1959 for ac_var in $ac_subst_vars 1960 do 1961 eval ac_val=\$$ac_var 1962 case $ac_val in 1963 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1964 esac 1965 $as_echo "$ac_var='\''$ac_val'\''" 1966 done | sort 1967 echo 1968 1969 if test -n "$ac_subst_files"; then 1970 $as_echo "## ------------------- ## 1971## File substitutions. ## 1972## ------------------- ##" 1973 echo 1974 for ac_var in $ac_subst_files 1975 do 1976 eval ac_val=\$$ac_var 1977 case $ac_val in 1978 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1979 esac 1980 $as_echo "$ac_var='\''$ac_val'\''" 1981 done | sort 1982 echo 1983 fi 1984 1985 if test -s confdefs.h; then 1986 $as_echo "## ----------- ## 1987## confdefs.h. ## 1988## ----------- ##" 1989 echo 1990 cat confdefs.h 1991 echo 1992 fi 1993 test "$ac_signal" != 0 && 1994 $as_echo "$as_me: caught signal $ac_signal" 1995 $as_echo "$as_me: exit $exit_status" 1996 } >&5 1997 rm -f core *.core core.conftest.* && 1998 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1999 exit $exit_status 2000' 0 2001for ac_signal in 1 2 13 15; do 2002 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2003done 2004ac_signal=0 2005 2006# confdefs.h avoids OS command line length limits that DEFS can exceed. 2007rm -f -r conftest* confdefs.h 2008 2009$as_echo "/* confdefs.h */" > confdefs.h 2010 2011# Predefined preprocessor variables. 2012 2013cat >>confdefs.h <<_ACEOF 2014#define PACKAGE_NAME "$PACKAGE_NAME" 2015_ACEOF 2016 2017cat >>confdefs.h <<_ACEOF 2018#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2019_ACEOF 2020 2021cat >>confdefs.h <<_ACEOF 2022#define PACKAGE_VERSION "$PACKAGE_VERSION" 2023_ACEOF 2024 2025cat >>confdefs.h <<_ACEOF 2026#define PACKAGE_STRING "$PACKAGE_STRING" 2027_ACEOF 2028 2029cat >>confdefs.h <<_ACEOF 2030#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2031_ACEOF 2032 2033cat >>confdefs.h <<_ACEOF 2034#define PACKAGE_URL "$PACKAGE_URL" 2035_ACEOF 2036 2037 2038# Let the site file select an alternate cache file if it wants to. 2039# Prefer an explicitly selected file to automatically selected ones. 2040ac_site_file1=NONE 2041ac_site_file2=NONE 2042if test -n "$CONFIG_SITE"; then 2043 # We do not want a PATH search for config.site. 2044 case $CONFIG_SITE in #(( 2045 -*) ac_site_file1=./$CONFIG_SITE;; 2046 */*) ac_site_file1=$CONFIG_SITE;; 2047 *) ac_site_file1=./$CONFIG_SITE;; 2048 esac 2049elif test "x$prefix" != xNONE; then 2050 ac_site_file1=$prefix/share/config.site 2051 ac_site_file2=$prefix/etc/config.site 2052else 2053 ac_site_file1=$ac_default_prefix/share/config.site 2054 ac_site_file2=$ac_default_prefix/etc/config.site 2055fi 2056for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2057do 2058 test "x$ac_site_file" = xNONE && continue 2059 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2060 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2061$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2062 sed 's/^/| /' "$ac_site_file" >&5 2063 . "$ac_site_file" \ 2064 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2065$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2066as_fn_error $? "failed to load site script $ac_site_file 2067See \`config.log' for more details" "$LINENO" 5; } 2068 fi 2069done 2070 2071if test -r "$cache_file"; then 2072 # Some versions of bash will fail to source /dev/null (special files 2073 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2074 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2075 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2076$as_echo "$as_me: loading cache $cache_file" >&6;} 2077 case $cache_file in 2078 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2079 *) . "./$cache_file";; 2080 esac 2081 fi 2082else 2083 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2084$as_echo "$as_me: creating cache $cache_file" >&6;} 2085 >$cache_file 2086fi 2087 2088# Check that the precious variables saved in the cache have kept the same 2089# value. 2090ac_cache_corrupted=false 2091for ac_var in $ac_precious_vars; do 2092 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2093 eval ac_new_set=\$ac_env_${ac_var}_set 2094 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2095 eval ac_new_val=\$ac_env_${ac_var}_value 2096 case $ac_old_set,$ac_new_set in 2097 set,) 2098 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2099$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2100 ac_cache_corrupted=: ;; 2101 ,set) 2102 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2103$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2104 ac_cache_corrupted=: ;; 2105 ,);; 2106 *) 2107 if test "x$ac_old_val" != "x$ac_new_val"; then 2108 # differences in whitespace do not lead to failure. 2109 ac_old_val_w=`echo x $ac_old_val` 2110 ac_new_val_w=`echo x $ac_new_val` 2111 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2112 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2113$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2114 ac_cache_corrupted=: 2115 else 2116 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2117$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2118 eval $ac_var=\$ac_old_val 2119 fi 2120 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2121$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2122 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2123$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2124 fi;; 2125 esac 2126 # Pass precious variables to config.status. 2127 if test "$ac_new_set" = set; then 2128 case $ac_new_val in 2129 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2130 *) ac_arg=$ac_var=$ac_new_val ;; 2131 esac 2132 case " $ac_configure_args " in 2133 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2134 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2135 esac 2136 fi 2137done 2138if $ac_cache_corrupted; then 2139 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2140$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2141 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2142$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2143 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2144fi 2145## -------------------- ## 2146## Main body of script. ## 2147## -------------------- ## 2148 2149ac_ext=c 2150ac_cpp='$CPP $CPPFLAGS' 2151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2153ac_compiler_gnu=$ac_cv_c_compiler_gnu 2154 2155 2156am__api_version='1.16' 2157 2158ac_aux_dir= 2159for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2160 if test -f "$ac_dir/install-sh"; then 2161 ac_aux_dir=$ac_dir 2162 ac_install_sh="$ac_aux_dir/install-sh -c" 2163 break 2164 elif test -f "$ac_dir/install.sh"; then 2165 ac_aux_dir=$ac_dir 2166 ac_install_sh="$ac_aux_dir/install.sh -c" 2167 break 2168 elif test -f "$ac_dir/shtool"; then 2169 ac_aux_dir=$ac_dir 2170 ac_install_sh="$ac_aux_dir/shtool install -c" 2171 break 2172 fi 2173done 2174if test -z "$ac_aux_dir"; then 2175 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2176fi 2177 2178# These three variables are undocumented and unsupported, 2179# and are intended to be withdrawn in a future Autoconf release. 2180# They can cause serious problems if a builder's source tree is in a directory 2181# whose full name contains unusual characters. 2182ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2183ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2184ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2185 2186 2187# Find a good install program. We prefer a C program (faster), 2188# so one script is as good as another. But avoid the broken or 2189# incompatible versions: 2190# SysV /etc/install, /usr/sbin/install 2191# SunOS /usr/etc/install 2192# IRIX /sbin/install 2193# AIX /bin/install 2194# AmigaOS /C/install, which installs bootblocks on floppy discs 2195# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2196# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2197# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2198# OS/2's system install, which has a completely different semantic 2199# ./install, which can be erroneously created by make from ./install.sh. 2200# Reject install programs that cannot install multiple files. 2201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2202$as_echo_n "checking for a BSD-compatible install... " >&6; } 2203if test -z "$INSTALL"; then 2204if ${ac_cv_path_install+:} false; then : 2205 $as_echo_n "(cached) " >&6 2206else 2207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2208for as_dir in $PATH 2209do 2210 IFS=$as_save_IFS 2211 test -z "$as_dir" && as_dir=. 2212 # Account for people who put trailing slashes in PATH elements. 2213case $as_dir/ in #(( 2214 ./ | .// | /[cC]/* | \ 2215 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2216 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2217 /usr/ucb/* ) ;; 2218 *) 2219 # OSF1 and SCO ODT 3.0 have their own names for install. 2220 # Don't use installbsd from OSF since it installs stuff as root 2221 # by default. 2222 for ac_prog in ginstall scoinst install; do 2223 for ac_exec_ext in '' $ac_executable_extensions; do 2224 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2225 if test $ac_prog = install && 2226 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2227 # AIX install. It has an incompatible calling convention. 2228 : 2229 elif test $ac_prog = install && 2230 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2231 # program-specific install script used by HP pwplus--don't use. 2232 : 2233 else 2234 rm -rf conftest.one conftest.two conftest.dir 2235 echo one > conftest.one 2236 echo two > conftest.two 2237 mkdir conftest.dir 2238 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2239 test -s conftest.one && test -s conftest.two && 2240 test -s conftest.dir/conftest.one && 2241 test -s conftest.dir/conftest.two 2242 then 2243 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2244 break 3 2245 fi 2246 fi 2247 fi 2248 done 2249 done 2250 ;; 2251esac 2252 2253 done 2254IFS=$as_save_IFS 2255 2256rm -rf conftest.one conftest.two conftest.dir 2257 2258fi 2259 if test "${ac_cv_path_install+set}" = set; then 2260 INSTALL=$ac_cv_path_install 2261 else 2262 # As a last resort, use the slow shell script. Don't cache a 2263 # value for INSTALL within a source directory, because that will 2264 # break other packages using the cache if that directory is 2265 # removed, or if the value is a relative name. 2266 INSTALL=$ac_install_sh 2267 fi 2268fi 2269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2270$as_echo "$INSTALL" >&6; } 2271 2272# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2273# It thinks the first close brace ends the variable substitution. 2274test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2275 2276test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2277 2278test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2279 2280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2281$as_echo_n "checking whether build environment is sane... " >&6; } 2282# Reject unsafe characters in $srcdir or the absolute working directory 2283# name. Accept space and tab only in the latter. 2284am_lf=' 2285' 2286case `pwd` in 2287 *[\\\"\#\$\&\'\`$am_lf]*) 2288 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2289esac 2290case $srcdir in 2291 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2292 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2293esac 2294 2295# Do 'set' in a subshell so we don't clobber the current shell's 2296# arguments. Must try -L first in case configure is actually a 2297# symlink; some systems play weird games with the mod time of symlinks 2298# (eg FreeBSD returns the mod time of the symlink's containing 2299# directory). 2300if ( 2301 am_has_slept=no 2302 for am_try in 1 2; do 2303 echo "timestamp, slept: $am_has_slept" > conftest.file 2304 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2305 if test "$*" = "X"; then 2306 # -L didn't work. 2307 set X `ls -t "$srcdir/configure" conftest.file` 2308 fi 2309 if test "$*" != "X $srcdir/configure conftest.file" \ 2310 && test "$*" != "X conftest.file $srcdir/configure"; then 2311 2312 # If neither matched, then we have a broken ls. This can happen 2313 # if, for instance, CONFIG_SHELL is bash and it inherits a 2314 # broken ls alias from the environment. This has actually 2315 # happened. Such a system could not be considered "sane". 2316 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2317 alias in your environment" "$LINENO" 5 2318 fi 2319 if test "$2" = conftest.file || test $am_try -eq 2; then 2320 break 2321 fi 2322 # Just in case. 2323 sleep 1 2324 am_has_slept=yes 2325 done 2326 test "$2" = conftest.file 2327 ) 2328then 2329 # Ok. 2330 : 2331else 2332 as_fn_error $? "newly created file is older than distributed files! 2333Check your system clock" "$LINENO" 5 2334fi 2335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2336$as_echo "yes" >&6; } 2337# If we didn't sleep, we still need to ensure time stamps of config.status and 2338# generated files are strictly newer. 2339am_sleep_pid= 2340if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2341 ( sleep 1 ) & 2342 am_sleep_pid=$! 2343fi 2344 2345rm -f conftest.file 2346 2347test "$program_prefix" != NONE && 2348 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2349# Use a double $ so make ignores it. 2350test "$program_suffix" != NONE && 2351 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2352# Double any \ or $. 2353# By default was `s,x,x', remove it if useless. 2354ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2355program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2356 2357# Expand $ac_aux_dir to an absolute path. 2358am_aux_dir=`cd "$ac_aux_dir" && pwd` 2359 2360if test x"${MISSING+set}" != xset; then 2361 case $am_aux_dir in 2362 *\ * | *\ *) 2363 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2364 *) 2365 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2366 esac 2367fi 2368# Use eval to expand $SHELL 2369if eval "$MISSING --is-lightweight"; then 2370 am_missing_run="$MISSING " 2371else 2372 am_missing_run= 2373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2374$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2375fi 2376 2377if test x"${install_sh+set}" != xset; then 2378 case $am_aux_dir in 2379 *\ * | *\ *) 2380 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2381 *) 2382 install_sh="\${SHELL} $am_aux_dir/install-sh" 2383 esac 2384fi 2385 2386# Installed binaries are usually stripped using 'strip' when the user 2387# run "make install-strip". However 'strip' might not be the right 2388# tool to use in cross-compilation environments, therefore Automake 2389# will honor the 'STRIP' environment variable to overrule this program. 2390if test "$cross_compiling" != no; then 2391 if test -n "$ac_tool_prefix"; then 2392 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2393set dummy ${ac_tool_prefix}strip; ac_word=$2 2394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2395$as_echo_n "checking for $ac_word... " >&6; } 2396if ${ac_cv_prog_STRIP+:} false; then : 2397 $as_echo_n "(cached) " >&6 2398else 2399 if test -n "$STRIP"; then 2400 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2401else 2402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2403for as_dir in $PATH 2404do 2405 IFS=$as_save_IFS 2406 test -z "$as_dir" && as_dir=. 2407 for ac_exec_ext in '' $ac_executable_extensions; do 2408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2409 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2411 break 2 2412 fi 2413done 2414 done 2415IFS=$as_save_IFS 2416 2417fi 2418fi 2419STRIP=$ac_cv_prog_STRIP 2420if test -n "$STRIP"; then 2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2422$as_echo "$STRIP" >&6; } 2423else 2424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2425$as_echo "no" >&6; } 2426fi 2427 2428 2429fi 2430if test -z "$ac_cv_prog_STRIP"; then 2431 ac_ct_STRIP=$STRIP 2432 # Extract the first word of "strip", so it can be a program name with args. 2433set dummy strip; ac_word=$2 2434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2435$as_echo_n "checking for $ac_word... " >&6; } 2436if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2437 $as_echo_n "(cached) " >&6 2438else 2439 if test -n "$ac_ct_STRIP"; then 2440 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2441else 2442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2443for as_dir in $PATH 2444do 2445 IFS=$as_save_IFS 2446 test -z "$as_dir" && as_dir=. 2447 for ac_exec_ext in '' $ac_executable_extensions; do 2448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2449 ac_cv_prog_ac_ct_STRIP="strip" 2450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2451 break 2 2452 fi 2453done 2454 done 2455IFS=$as_save_IFS 2456 2457fi 2458fi 2459ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2460if test -n "$ac_ct_STRIP"; then 2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2462$as_echo "$ac_ct_STRIP" >&6; } 2463else 2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2465$as_echo "no" >&6; } 2466fi 2467 2468 if test "x$ac_ct_STRIP" = x; then 2469 STRIP=":" 2470 else 2471 case $cross_compiling:$ac_tool_warned in 2472yes:) 2473{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2474$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2475ac_tool_warned=yes ;; 2476esac 2477 STRIP=$ac_ct_STRIP 2478 fi 2479else 2480 STRIP="$ac_cv_prog_STRIP" 2481fi 2482 2483fi 2484INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2485 2486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2487$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2488if test -z "$MKDIR_P"; then 2489 if ${ac_cv_path_mkdir+:} false; then : 2490 $as_echo_n "(cached) " >&6 2491else 2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2493for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2494do 2495 IFS=$as_save_IFS 2496 test -z "$as_dir" && as_dir=. 2497 for ac_prog in mkdir gmkdir; do 2498 for ac_exec_ext in '' $ac_executable_extensions; do 2499 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2500 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2501 'mkdir (GNU coreutils) '* | \ 2502 'mkdir (coreutils) '* | \ 2503 'mkdir (fileutils) '4.1*) 2504 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2505 break 3;; 2506 esac 2507 done 2508 done 2509 done 2510IFS=$as_save_IFS 2511 2512fi 2513 2514 test -d ./--version && rmdir ./--version 2515 if test "${ac_cv_path_mkdir+set}" = set; then 2516 MKDIR_P="$ac_cv_path_mkdir -p" 2517 else 2518 # As a last resort, use the slow shell script. Don't cache a 2519 # value for MKDIR_P within a source directory, because that will 2520 # break other packages using the cache if that directory is 2521 # removed, or if the value is a relative name. 2522 MKDIR_P="$ac_install_sh -d" 2523 fi 2524fi 2525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2526$as_echo "$MKDIR_P" >&6; } 2527 2528for ac_prog in gawk mawk nawk awk 2529do 2530 # Extract the first word of "$ac_prog", so it can be a program name with args. 2531set dummy $ac_prog; ac_word=$2 2532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2533$as_echo_n "checking for $ac_word... " >&6; } 2534if ${ac_cv_prog_AWK+:} false; then : 2535 $as_echo_n "(cached) " >&6 2536else 2537 if test -n "$AWK"; then 2538 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2539else 2540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2541for as_dir in $PATH 2542do 2543 IFS=$as_save_IFS 2544 test -z "$as_dir" && as_dir=. 2545 for ac_exec_ext in '' $ac_executable_extensions; do 2546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2547 ac_cv_prog_AWK="$ac_prog" 2548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2549 break 2 2550 fi 2551done 2552 done 2553IFS=$as_save_IFS 2554 2555fi 2556fi 2557AWK=$ac_cv_prog_AWK 2558if test -n "$AWK"; then 2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2560$as_echo "$AWK" >&6; } 2561else 2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2563$as_echo "no" >&6; } 2564fi 2565 2566 2567 test -n "$AWK" && break 2568done 2569 2570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2571$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2572set x ${MAKE-make} 2573ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2574if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2575 $as_echo_n "(cached) " >&6 2576else 2577 cat >conftest.make <<\_ACEOF 2578SHELL = /bin/sh 2579all: 2580 @echo '@@@%%%=$(MAKE)=@@@%%%' 2581_ACEOF 2582# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2583case `${MAKE-make} -f conftest.make 2>/dev/null` in 2584 *@@@%%%=?*=@@@%%%*) 2585 eval ac_cv_prog_make_${ac_make}_set=yes;; 2586 *) 2587 eval ac_cv_prog_make_${ac_make}_set=no;; 2588esac 2589rm -f conftest.make 2590fi 2591if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2593$as_echo "yes" >&6; } 2594 SET_MAKE= 2595else 2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2597$as_echo "no" >&6; } 2598 SET_MAKE="MAKE=${MAKE-make}" 2599fi 2600 2601rm -rf .tst 2>/dev/null 2602mkdir .tst 2>/dev/null 2603if test -d .tst; then 2604 am__leading_dot=. 2605else 2606 am__leading_dot=_ 2607fi 2608rmdir .tst 2>/dev/null 2609 2610# Check whether --enable-silent-rules was given. 2611if test "${enable_silent_rules+set}" = set; then : 2612 enableval=$enable_silent_rules; 2613fi 2614 2615case $enable_silent_rules in # ((( 2616 yes) AM_DEFAULT_VERBOSITY=0;; 2617 no) AM_DEFAULT_VERBOSITY=1;; 2618 *) AM_DEFAULT_VERBOSITY=1;; 2619esac 2620am_make=${MAKE-make} 2621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2622$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2623if ${am_cv_make_support_nested_variables+:} false; then : 2624 $as_echo_n "(cached) " >&6 2625else 2626 if $as_echo 'TRUE=$(BAR$(V)) 2627BAR0=false 2628BAR1=true 2629V=1 2630am__doit: 2631 @$(TRUE) 2632.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2633 am_cv_make_support_nested_variables=yes 2634else 2635 am_cv_make_support_nested_variables=no 2636fi 2637fi 2638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2639$as_echo "$am_cv_make_support_nested_variables" >&6; } 2640if test $am_cv_make_support_nested_variables = yes; then 2641 AM_V='$(V)' 2642 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2643else 2644 AM_V=$AM_DEFAULT_VERBOSITY 2645 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2646fi 2647AM_BACKSLASH='\' 2648 2649if test "`cd $srcdir && pwd`" != "`pwd`"; then 2650 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2651 # is not polluted with repeated "-I." 2652 am__isrc=' -I$(srcdir)' 2653 # test to see if srcdir already configured 2654 if test -f $srcdir/config.status; then 2655 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2656 fi 2657fi 2658 2659# test whether we have cygpath 2660if test -z "$CYGPATH_W"; then 2661 if (cygpath --version) >/dev/null 2>/dev/null; then 2662 CYGPATH_W='cygpath -w' 2663 else 2664 CYGPATH_W=echo 2665 fi 2666fi 2667 2668 2669# Define the identity of the package. 2670 PACKAGE='rw' 2671 VERSION='0.9' 2672 2673 2674cat >>confdefs.h <<_ACEOF 2675#define PACKAGE "$PACKAGE" 2676_ACEOF 2677 2678 2679cat >>confdefs.h <<_ACEOF 2680#define VERSION "$VERSION" 2681_ACEOF 2682 2683# Some tools Automake needs. 2684 2685ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2686 2687 2688AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2689 2690 2691AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2692 2693 2694AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2695 2696 2697MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2698 2699# For better backward compatibility. To be removed once Automake 1.9.x 2700# dies out for good. For more background, see: 2701# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2702# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2703mkdir_p='$(MKDIR_P)' 2704 2705# We need awk for the "check" target (and possibly the TAP driver). The 2706# system "awk" is bad on some platforms. 2707# Always define AMTAR for backward compatibility. Yes, it's still used 2708# in the wild :-( We should find a proper way to deprecate it ... 2709AMTAR='$${TAR-tar}' 2710 2711 2712# We'll loop over all known methods to create a tar archive until one works. 2713_am_tools='gnutar pax cpio none' 2714 2715am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2716 2717 2718 2719 2720 2721 2722# POSIX will say in a future version that running "rm -f" with no argument 2723# is OK; and we want to be able to make that assumption in our Makefile 2724# recipes. So use an aggressive probe to check that the usage we want is 2725# actually supported "in the wild" to an acceptable degree. 2726# See automake bug#10828. 2727# To make any issue more visible, cause the running configure to be aborted 2728# by default if the 'rm' program in use doesn't match our expectations; the 2729# user can still override this though. 2730if rm -f && rm -fr && rm -rf; then : OK; else 2731 cat >&2 <<'END' 2732Oops! 2733 2734Your 'rm' program seems unable to run without file operands specified 2735on the command line, even when the '-f' option is present. This is contrary 2736to the behaviour of most rm programs out there, and not conforming with 2737the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2738 2739Please tell bug-automake@gnu.org about your system, including the value 2740of your $PATH and any error possibly output before this message. This 2741can help us improve future automake versions. 2742 2743END 2744 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2745 echo 'Configuration will proceed anyway, since you have set the' >&2 2746 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2747 echo >&2 2748 else 2749 cat >&2 <<'END' 2750Aborting the configuration process, to ensure you take notice of the issue. 2751 2752You can download and install GNU coreutils to get an 'rm' implementation 2753that behaves properly: <https://www.gnu.org/software/coreutils/>. 2754 2755If you want to complete the configuration process using your problematic 2756'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2757to "yes", and re-run configure. 2758 2759END 2760 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2761 fi 2762fi 2763 2764DEPDIR="${am__leading_dot}deps" 2765 2766ac_config_commands="$ac_config_commands depfiles" 2767 2768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 2769$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 2770cat > confinc.mk << 'END' 2771am__doit: 2772 @echo this is the am__doit target >confinc.out 2773.PHONY: am__doit 2774END 2775am__include="#" 2776am__quote= 2777# BSD make does it like this. 2778echo '.include "confinc.mk" # ignored' > confmf.BSD 2779# Other make implementations (GNU, Solaris 10, AIX) do it like this. 2780echo 'include confinc.mk # ignored' > confmf.GNU 2781_am_result=no 2782for s in GNU BSD; do 2783 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 2784 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 2785 ac_status=$? 2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2787 (exit $ac_status); } 2788 case $?:`cat confinc.out 2>/dev/null` in #( 2789 '0:this is the am__doit target') : 2790 case $s in #( 2791 BSD) : 2792 am__include='.include' am__quote='"' ;; #( 2793 *) : 2794 am__include='include' am__quote='' ;; 2795esac ;; #( 2796 *) : 2797 ;; 2798esac 2799 if test "$am__include" != "#"; then 2800 _am_result="yes ($s style)" 2801 break 2802 fi 2803done 2804rm -f confinc.* confmf.* 2805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 2806$as_echo "${_am_result}" >&6; } 2807 2808# Check whether --enable-dependency-tracking was given. 2809if test "${enable_dependency_tracking+set}" = set; then : 2810 enableval=$enable_dependency_tracking; 2811fi 2812 2813if test "x$enable_dependency_tracking" != xno; then 2814 am_depcomp="$ac_aux_dir/depcomp" 2815 AMDEPBACKSLASH='\' 2816 am__nodep='_no' 2817fi 2818 if test "x$enable_dependency_tracking" != xno; then 2819 AMDEP_TRUE= 2820 AMDEP_FALSE='#' 2821else 2822 AMDEP_TRUE='#' 2823 AMDEP_FALSE= 2824fi 2825 2826 2827ac_ext=c 2828ac_cpp='$CPP $CPPFLAGS' 2829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2831ac_compiler_gnu=$ac_cv_c_compiler_gnu 2832if test -n "$ac_tool_prefix"; then 2833 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2834set dummy ${ac_tool_prefix}gcc; ac_word=$2 2835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2836$as_echo_n "checking for $ac_word... " >&6; } 2837if ${ac_cv_prog_CC+:} false; then : 2838 $as_echo_n "(cached) " >&6 2839else 2840 if test -n "$CC"; then 2841 ac_cv_prog_CC="$CC" # Let the user override the test. 2842else 2843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2844for as_dir in $PATH 2845do 2846 IFS=$as_save_IFS 2847 test -z "$as_dir" && as_dir=. 2848 for ac_exec_ext in '' $ac_executable_extensions; do 2849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2850 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2852 break 2 2853 fi 2854done 2855 done 2856IFS=$as_save_IFS 2857 2858fi 2859fi 2860CC=$ac_cv_prog_CC 2861if test -n "$CC"; then 2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2863$as_echo "$CC" >&6; } 2864else 2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2866$as_echo "no" >&6; } 2867fi 2868 2869 2870fi 2871if test -z "$ac_cv_prog_CC"; then 2872 ac_ct_CC=$CC 2873 # Extract the first word of "gcc", so it can be a program name with args. 2874set dummy gcc; ac_word=$2 2875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2876$as_echo_n "checking for $ac_word... " >&6; } 2877if ${ac_cv_prog_ac_ct_CC+:} false; then : 2878 $as_echo_n "(cached) " >&6 2879else 2880 if test -n "$ac_ct_CC"; then 2881 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2882else 2883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2884for as_dir in $PATH 2885do 2886 IFS=$as_save_IFS 2887 test -z "$as_dir" && as_dir=. 2888 for ac_exec_ext in '' $ac_executable_extensions; do 2889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2890 ac_cv_prog_ac_ct_CC="gcc" 2891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2892 break 2 2893 fi 2894done 2895 done 2896IFS=$as_save_IFS 2897 2898fi 2899fi 2900ac_ct_CC=$ac_cv_prog_ac_ct_CC 2901if test -n "$ac_ct_CC"; then 2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2903$as_echo "$ac_ct_CC" >&6; } 2904else 2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2906$as_echo "no" >&6; } 2907fi 2908 2909 if test "x$ac_ct_CC" = x; then 2910 CC="" 2911 else 2912 case $cross_compiling:$ac_tool_warned in 2913yes:) 2914{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2915$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2916ac_tool_warned=yes ;; 2917esac 2918 CC=$ac_ct_CC 2919 fi 2920else 2921 CC="$ac_cv_prog_CC" 2922fi 2923 2924if test -z "$CC"; then 2925 if test -n "$ac_tool_prefix"; then 2926 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2927set dummy ${ac_tool_prefix}cc; ac_word=$2 2928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2929$as_echo_n "checking for $ac_word... " >&6; } 2930if ${ac_cv_prog_CC+:} false; then : 2931 $as_echo_n "(cached) " >&6 2932else 2933 if test -n "$CC"; then 2934 ac_cv_prog_CC="$CC" # Let the user override the test. 2935else 2936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2937for as_dir in $PATH 2938do 2939 IFS=$as_save_IFS 2940 test -z "$as_dir" && as_dir=. 2941 for ac_exec_ext in '' $ac_executable_extensions; do 2942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2943 ac_cv_prog_CC="${ac_tool_prefix}cc" 2944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2945 break 2 2946 fi 2947done 2948 done 2949IFS=$as_save_IFS 2950 2951fi 2952fi 2953CC=$ac_cv_prog_CC 2954if test -n "$CC"; then 2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2956$as_echo "$CC" >&6; } 2957else 2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2959$as_echo "no" >&6; } 2960fi 2961 2962 2963 fi 2964fi 2965if test -z "$CC"; then 2966 # Extract the first word of "cc", so it can be a program name with args. 2967set dummy cc; ac_word=$2 2968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2969$as_echo_n "checking for $ac_word... " >&6; } 2970if ${ac_cv_prog_CC+:} false; then : 2971 $as_echo_n "(cached) " >&6 2972else 2973 if test -n "$CC"; then 2974 ac_cv_prog_CC="$CC" # Let the user override the test. 2975else 2976 ac_prog_rejected=no 2977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2978for as_dir in $PATH 2979do 2980 IFS=$as_save_IFS 2981 test -z "$as_dir" && as_dir=. 2982 for ac_exec_ext in '' $ac_executable_extensions; do 2983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2984 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2985 ac_prog_rejected=yes 2986 continue 2987 fi 2988 ac_cv_prog_CC="cc" 2989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2990 break 2 2991 fi 2992done 2993 done 2994IFS=$as_save_IFS 2995 2996if test $ac_prog_rejected = yes; then 2997 # We found a bogon in the path, so make sure we never use it. 2998 set dummy $ac_cv_prog_CC 2999 shift 3000 if test $# != 0; then 3001 # We chose a different compiler from the bogus one. 3002 # However, it has the same basename, so the bogon will be chosen 3003 # first if we set CC to just the basename; use the full file name. 3004 shift 3005 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3006 fi 3007fi 3008fi 3009fi 3010CC=$ac_cv_prog_CC 3011if test -n "$CC"; then 3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3013$as_echo "$CC" >&6; } 3014else 3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3016$as_echo "no" >&6; } 3017fi 3018 3019 3020fi 3021if test -z "$CC"; then 3022 if test -n "$ac_tool_prefix"; then 3023 for ac_prog in cl.exe 3024 do 3025 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3026set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3028$as_echo_n "checking for $ac_word... " >&6; } 3029if ${ac_cv_prog_CC+:} false; then : 3030 $as_echo_n "(cached) " >&6 3031else 3032 if test -n "$CC"; then 3033 ac_cv_prog_CC="$CC" # Let the user override the test. 3034else 3035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3036for as_dir in $PATH 3037do 3038 IFS=$as_save_IFS 3039 test -z "$as_dir" && as_dir=. 3040 for ac_exec_ext in '' $ac_executable_extensions; do 3041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3042 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3044 break 2 3045 fi 3046done 3047 done 3048IFS=$as_save_IFS 3049 3050fi 3051fi 3052CC=$ac_cv_prog_CC 3053if test -n "$CC"; then 3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3055$as_echo "$CC" >&6; } 3056else 3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3058$as_echo "no" >&6; } 3059fi 3060 3061 3062 test -n "$CC" && break 3063 done 3064fi 3065if test -z "$CC"; then 3066 ac_ct_CC=$CC 3067 for ac_prog in cl.exe 3068do 3069 # Extract the first word of "$ac_prog", so it can be a program name with args. 3070set dummy $ac_prog; ac_word=$2 3071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3072$as_echo_n "checking for $ac_word... " >&6; } 3073if ${ac_cv_prog_ac_ct_CC+:} false; then : 3074 $as_echo_n "(cached) " >&6 3075else 3076 if test -n "$ac_ct_CC"; then 3077 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3078else 3079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3080for as_dir in $PATH 3081do 3082 IFS=$as_save_IFS 3083 test -z "$as_dir" && as_dir=. 3084 for ac_exec_ext in '' $ac_executable_extensions; do 3085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3086 ac_cv_prog_ac_ct_CC="$ac_prog" 3087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3088 break 2 3089 fi 3090done 3091 done 3092IFS=$as_save_IFS 3093 3094fi 3095fi 3096ac_ct_CC=$ac_cv_prog_ac_ct_CC 3097if test -n "$ac_ct_CC"; then 3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3099$as_echo "$ac_ct_CC" >&6; } 3100else 3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3102$as_echo "no" >&6; } 3103fi 3104 3105 3106 test -n "$ac_ct_CC" && break 3107done 3108 3109 if test "x$ac_ct_CC" = x; then 3110 CC="" 3111 else 3112 case $cross_compiling:$ac_tool_warned in 3113yes:) 3114{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3115$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3116ac_tool_warned=yes ;; 3117esac 3118 CC=$ac_ct_CC 3119 fi 3120fi 3121 3122fi 3123 3124 3125test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3127as_fn_error $? "no acceptable C compiler found in \$PATH 3128See \`config.log' for more details" "$LINENO" 5; } 3129 3130# Provide some information about the compiler. 3131$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3132set X $ac_compile 3133ac_compiler=$2 3134for ac_option in --version -v -V -qversion; do 3135 { { ac_try="$ac_compiler $ac_option >&5" 3136case "(($ac_try" in 3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3138 *) ac_try_echo=$ac_try;; 3139esac 3140eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3141$as_echo "$ac_try_echo"; } >&5 3142 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3143 ac_status=$? 3144 if test -s conftest.err; then 3145 sed '10a\ 3146... rest of stderr output deleted ... 3147 10q' conftest.err >conftest.er1 3148 cat conftest.er1 >&5 3149 fi 3150 rm -f conftest.er1 conftest.err 3151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3152 test $ac_status = 0; } 3153done 3154 3155cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3156/* end confdefs.h. */ 3157 3158int 3159main () 3160{ 3161 3162 ; 3163 return 0; 3164} 3165_ACEOF 3166ac_clean_files_save=$ac_clean_files 3167ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3168# Try to create an executable without -o first, disregard a.out. 3169# It will help us diagnose broken compilers, and finding out an intuition 3170# of exeext. 3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3172$as_echo_n "checking whether the C compiler works... " >&6; } 3173ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3174 3175# The possible output files: 3176ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3177 3178ac_rmfiles= 3179for ac_file in $ac_files 3180do 3181 case $ac_file in 3182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3183 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3184 esac 3185done 3186rm -f $ac_rmfiles 3187 3188if { { ac_try="$ac_link_default" 3189case "(($ac_try" in 3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3191 *) ac_try_echo=$ac_try;; 3192esac 3193eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3194$as_echo "$ac_try_echo"; } >&5 3195 (eval "$ac_link_default") 2>&5 3196 ac_status=$? 3197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3198 test $ac_status = 0; }; then : 3199 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3200# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3201# in a Makefile. We should not override ac_cv_exeext if it was cached, 3202# so that the user can short-circuit this test for compilers unknown to 3203# Autoconf. 3204for ac_file in $ac_files '' 3205do 3206 test -f "$ac_file" || continue 3207 case $ac_file in 3208 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3209 ;; 3210 [ab].out ) 3211 # We found the default executable, but exeext='' is most 3212 # certainly right. 3213 break;; 3214 *.* ) 3215 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3216 then :; else 3217 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3218 fi 3219 # We set ac_cv_exeext here because the later test for it is not 3220 # safe: cross compilers may not add the suffix if given an `-o' 3221 # argument, so we may need to know it at that point already. 3222 # Even if this section looks crufty: it has the advantage of 3223 # actually working. 3224 break;; 3225 * ) 3226 break;; 3227 esac 3228done 3229test "$ac_cv_exeext" = no && ac_cv_exeext= 3230 3231else 3232 ac_file='' 3233fi 3234if test -z "$ac_file"; then : 3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3236$as_echo "no" >&6; } 3237$as_echo "$as_me: failed program was:" >&5 3238sed 's/^/| /' conftest.$ac_ext >&5 3239 3240{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3241$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3242as_fn_error 77 "C compiler cannot create executables 3243See \`config.log' for more details" "$LINENO" 5; } 3244else 3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3246$as_echo "yes" >&6; } 3247fi 3248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3249$as_echo_n "checking for C compiler default output file name... " >&6; } 3250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3251$as_echo "$ac_file" >&6; } 3252ac_exeext=$ac_cv_exeext 3253 3254rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3255ac_clean_files=$ac_clean_files_save 3256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3257$as_echo_n "checking for suffix of executables... " >&6; } 3258if { { ac_try="$ac_link" 3259case "(($ac_try" in 3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3261 *) ac_try_echo=$ac_try;; 3262esac 3263eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3264$as_echo "$ac_try_echo"; } >&5 3265 (eval "$ac_link") 2>&5 3266 ac_status=$? 3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3268 test $ac_status = 0; }; then : 3269 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3270# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3271# work properly (i.e., refer to `conftest.exe'), while it won't with 3272# `rm'. 3273for ac_file in conftest.exe conftest conftest.*; do 3274 test -f "$ac_file" || continue 3275 case $ac_file in 3276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3277 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3278 break;; 3279 * ) break;; 3280 esac 3281done 3282else 3283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3284$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3285as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3286See \`config.log' for more details" "$LINENO" 5; } 3287fi 3288rm -f conftest conftest$ac_cv_exeext 3289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3290$as_echo "$ac_cv_exeext" >&6; } 3291 3292rm -f conftest.$ac_ext 3293EXEEXT=$ac_cv_exeext 3294ac_exeext=$EXEEXT 3295cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3296/* end confdefs.h. */ 3297#include <stdio.h> 3298int 3299main () 3300{ 3301FILE *f = fopen ("conftest.out", "w"); 3302 return ferror (f) || fclose (f) != 0; 3303 3304 ; 3305 return 0; 3306} 3307_ACEOF 3308ac_clean_files="$ac_clean_files conftest.out" 3309# Check that the compiler produces executables we can run. If not, either 3310# the compiler is broken, or we cross compile. 3311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3312$as_echo_n "checking whether we are cross compiling... " >&6; } 3313if test "$cross_compiling" != yes; then 3314 { { ac_try="$ac_link" 3315case "(($ac_try" in 3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3317 *) ac_try_echo=$ac_try;; 3318esac 3319eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3320$as_echo "$ac_try_echo"; } >&5 3321 (eval "$ac_link") 2>&5 3322 ac_status=$? 3323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3324 test $ac_status = 0; } 3325 if { ac_try='./conftest$ac_cv_exeext' 3326 { { case "(($ac_try" in 3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3328 *) ac_try_echo=$ac_try;; 3329esac 3330eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3331$as_echo "$ac_try_echo"; } >&5 3332 (eval "$ac_try") 2>&5 3333 ac_status=$? 3334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3335 test $ac_status = 0; }; }; then 3336 cross_compiling=no 3337 else 3338 if test "$cross_compiling" = maybe; then 3339 cross_compiling=yes 3340 else 3341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3343as_fn_error $? "cannot run C compiled programs. 3344If you meant to cross compile, use \`--host'. 3345See \`config.log' for more details" "$LINENO" 5; } 3346 fi 3347 fi 3348fi 3349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3350$as_echo "$cross_compiling" >&6; } 3351 3352rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3353ac_clean_files=$ac_clean_files_save 3354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3355$as_echo_n "checking for suffix of object files... " >&6; } 3356if ${ac_cv_objext+:} false; then : 3357 $as_echo_n "(cached) " >&6 3358else 3359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3360/* end confdefs.h. */ 3361 3362int 3363main () 3364{ 3365 3366 ; 3367 return 0; 3368} 3369_ACEOF 3370rm -f conftest.o conftest.obj 3371if { { ac_try="$ac_compile" 3372case "(($ac_try" in 3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3374 *) ac_try_echo=$ac_try;; 3375esac 3376eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3377$as_echo "$ac_try_echo"; } >&5 3378 (eval "$ac_compile") 2>&5 3379 ac_status=$? 3380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3381 test $ac_status = 0; }; then : 3382 for ac_file in conftest.o conftest.obj conftest.*; do 3383 test -f "$ac_file" || continue; 3384 case $ac_file in 3385 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3386 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3387 break;; 3388 esac 3389done 3390else 3391 $as_echo "$as_me: failed program was:" >&5 3392sed 's/^/| /' conftest.$ac_ext >&5 3393 3394{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3395$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3396as_fn_error $? "cannot compute suffix of object files: cannot compile 3397See \`config.log' for more details" "$LINENO" 5; } 3398fi 3399rm -f conftest.$ac_cv_objext conftest.$ac_ext 3400fi 3401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3402$as_echo "$ac_cv_objext" >&6; } 3403OBJEXT=$ac_cv_objext 3404ac_objext=$OBJEXT 3405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3406$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3407if ${ac_cv_c_compiler_gnu+:} false; then : 3408 $as_echo_n "(cached) " >&6 3409else 3410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3411/* end confdefs.h. */ 3412 3413int 3414main () 3415{ 3416#ifndef __GNUC__ 3417 choke me 3418#endif 3419 3420 ; 3421 return 0; 3422} 3423_ACEOF 3424if ac_fn_c_try_compile "$LINENO"; then : 3425 ac_compiler_gnu=yes 3426else 3427 ac_compiler_gnu=no 3428fi 3429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3430ac_cv_c_compiler_gnu=$ac_compiler_gnu 3431 3432fi 3433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3434$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3435if test $ac_compiler_gnu = yes; then 3436 GCC=yes 3437else 3438 GCC= 3439fi 3440ac_test_CFLAGS=${CFLAGS+set} 3441ac_save_CFLAGS=$CFLAGS 3442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3443$as_echo_n "checking whether $CC accepts -g... " >&6; } 3444if ${ac_cv_prog_cc_g+:} false; then : 3445 $as_echo_n "(cached) " >&6 3446else 3447 ac_save_c_werror_flag=$ac_c_werror_flag 3448 ac_c_werror_flag=yes 3449 ac_cv_prog_cc_g=no 3450 CFLAGS="-g" 3451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3452/* end confdefs.h. */ 3453 3454int 3455main () 3456{ 3457 3458 ; 3459 return 0; 3460} 3461_ACEOF 3462if ac_fn_c_try_compile "$LINENO"; then : 3463 ac_cv_prog_cc_g=yes 3464else 3465 CFLAGS="" 3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3467/* end confdefs.h. */ 3468 3469int 3470main () 3471{ 3472 3473 ; 3474 return 0; 3475} 3476_ACEOF 3477if ac_fn_c_try_compile "$LINENO"; then : 3478 3479else 3480 ac_c_werror_flag=$ac_save_c_werror_flag 3481 CFLAGS="-g" 3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3483/* end confdefs.h. */ 3484 3485int 3486main () 3487{ 3488 3489 ; 3490 return 0; 3491} 3492_ACEOF 3493if ac_fn_c_try_compile "$LINENO"; then : 3494 ac_cv_prog_cc_g=yes 3495fi 3496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3497fi 3498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3499fi 3500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3501 ac_c_werror_flag=$ac_save_c_werror_flag 3502fi 3503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3504$as_echo "$ac_cv_prog_cc_g" >&6; } 3505if test "$ac_test_CFLAGS" = set; then 3506 CFLAGS=$ac_save_CFLAGS 3507elif test $ac_cv_prog_cc_g = yes; then 3508 if test "$GCC" = yes; then 3509 CFLAGS="-g -O2" 3510 else 3511 CFLAGS="-g" 3512 fi 3513else 3514 if test "$GCC" = yes; then 3515 CFLAGS="-O2" 3516 else 3517 CFLAGS= 3518 fi 3519fi 3520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3521$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3522if ${ac_cv_prog_cc_c89+:} false; then : 3523 $as_echo_n "(cached) " >&6 3524else 3525 ac_cv_prog_cc_c89=no 3526ac_save_CC=$CC 3527cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3528/* end confdefs.h. */ 3529#include <stdarg.h> 3530#include <stdio.h> 3531struct stat; 3532/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3533struct buf { int x; }; 3534FILE * (*rcsopen) (struct buf *, struct stat *, int); 3535static char *e (p, i) 3536 char **p; 3537 int i; 3538{ 3539 return p[i]; 3540} 3541static char *f (char * (*g) (char **, int), char **p, ...) 3542{ 3543 char *s; 3544 va_list v; 3545 va_start (v,p); 3546 s = g (p, va_arg (v,int)); 3547 va_end (v); 3548 return s; 3549} 3550 3551/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3552 function prototypes and stuff, but not '\xHH' hex character constants. 3553 These don't provoke an error unfortunately, instead are silently treated 3554 as 'x'. The following induces an error, until -std is added to get 3555 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3556 array size at least. It's necessary to write '\x00'==0 to get something 3557 that's true only with -std. */ 3558int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3559 3560/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3561 inside strings and character constants. */ 3562#define FOO(x) 'x' 3563int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3564 3565int test (int i, double x); 3566struct s1 {int (*f) (int a);}; 3567struct s2 {int (*f) (double a);}; 3568int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3569int argc; 3570char **argv; 3571int 3572main () 3573{ 3574return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3575 ; 3576 return 0; 3577} 3578_ACEOF 3579for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3580 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3581do 3582 CC="$ac_save_CC $ac_arg" 3583 if ac_fn_c_try_compile "$LINENO"; then : 3584 ac_cv_prog_cc_c89=$ac_arg 3585fi 3586rm -f core conftest.err conftest.$ac_objext 3587 test "x$ac_cv_prog_cc_c89" != "xno" && break 3588done 3589rm -f conftest.$ac_ext 3590CC=$ac_save_CC 3591 3592fi 3593# AC_CACHE_VAL 3594case "x$ac_cv_prog_cc_c89" in 3595 x) 3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3597$as_echo "none needed" >&6; } ;; 3598 xno) 3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3600$as_echo "unsupported" >&6; } ;; 3601 *) 3602 CC="$CC $ac_cv_prog_cc_c89" 3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3604$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3605esac 3606if test "x$ac_cv_prog_cc_c89" != xno; then : 3607 3608fi 3609 3610ac_ext=c 3611ac_cpp='$CPP $CPPFLAGS' 3612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3614ac_compiler_gnu=$ac_cv_c_compiler_gnu 3615 3616ac_ext=c 3617ac_cpp='$CPP $CPPFLAGS' 3618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3620ac_compiler_gnu=$ac_cv_c_compiler_gnu 3621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3622$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3623if ${am_cv_prog_cc_c_o+:} false; then : 3624 $as_echo_n "(cached) " >&6 3625else 3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3627/* end confdefs.h. */ 3628 3629int 3630main () 3631{ 3632 3633 ; 3634 return 0; 3635} 3636_ACEOF 3637 # Make sure it works both with $CC and with simple cc. 3638 # Following AC_PROG_CC_C_O, we do the test twice because some 3639 # compilers refuse to overwrite an existing .o file with -o, 3640 # though they will create one. 3641 am_cv_prog_cc_c_o=yes 3642 for am_i in 1 2; do 3643 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3644 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3645 ac_status=$? 3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3647 (exit $ac_status); } \ 3648 && test -f conftest2.$ac_objext; then 3649 : OK 3650 else 3651 am_cv_prog_cc_c_o=no 3652 break 3653 fi 3654 done 3655 rm -f core conftest* 3656 unset am_i 3657fi 3658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3659$as_echo "$am_cv_prog_cc_c_o" >&6; } 3660if test "$am_cv_prog_cc_c_o" != yes; then 3661 # Losing compiler, so override with the script. 3662 # FIXME: It is wrong to rewrite CC. 3663 # But if we don't then we get into trouble of one sort or another. 3664 # A longer-term fix would be to have automake use am__CC in this case, 3665 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3666 CC="$am_aux_dir/compile $CC" 3667fi 3668ac_ext=c 3669ac_cpp='$CPP $CPPFLAGS' 3670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3672ac_compiler_gnu=$ac_cv_c_compiler_gnu 3673 3674 3675depcc="$CC" am_compiler_list= 3676 3677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3678$as_echo_n "checking dependency style of $depcc... " >&6; } 3679if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3680 $as_echo_n "(cached) " >&6 3681else 3682 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3683 # We make a subdir and do the tests there. Otherwise we can end up 3684 # making bogus files that we don't know about and never remove. For 3685 # instance it was reported that on HP-UX the gcc test will end up 3686 # making a dummy file named 'D' -- because '-MD' means "put the output 3687 # in D". 3688 rm -rf conftest.dir 3689 mkdir conftest.dir 3690 # Copy depcomp to subdir because otherwise we won't find it if we're 3691 # using a relative directory. 3692 cp "$am_depcomp" conftest.dir 3693 cd conftest.dir 3694 # We will build objects and dependencies in a subdirectory because 3695 # it helps to detect inapplicable dependency modes. For instance 3696 # both Tru64's cc and ICC support -MD to output dependencies as a 3697 # side effect of compilation, but ICC will put the dependencies in 3698 # the current directory while Tru64 will put them in the object 3699 # directory. 3700 mkdir sub 3701 3702 am_cv_CC_dependencies_compiler_type=none 3703 if test "$am_compiler_list" = ""; then 3704 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3705 fi 3706 am__universal=false 3707 case " $depcc " in #( 3708 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3709 esac 3710 3711 for depmode in $am_compiler_list; do 3712 # Setup a source with many dependencies, because some compilers 3713 # like to wrap large dependency lists on column 80 (with \), and 3714 # we should not choose a depcomp mode which is confused by this. 3715 # 3716 # We need to recreate these files for each test, as the compiler may 3717 # overwrite some of them when testing with obscure command lines. 3718 # This happens at least with the AIX C compiler. 3719 : > sub/conftest.c 3720 for i in 1 2 3 4 5 6; do 3721 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3722 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3723 # Solaris 10 /bin/sh. 3724 echo '/* dummy */' > sub/conftst$i.h 3725 done 3726 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3727 3728 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3729 # mode. It turns out that the SunPro C++ compiler does not properly 3730 # handle '-M -o', and we need to detect this. Also, some Intel 3731 # versions had trouble with output in subdirs. 3732 am__obj=sub/conftest.${OBJEXT-o} 3733 am__minus_obj="-o $am__obj" 3734 case $depmode in 3735 gcc) 3736 # This depmode causes a compiler race in universal mode. 3737 test "$am__universal" = false || continue 3738 ;; 3739 nosideeffect) 3740 # After this tag, mechanisms are not by side-effect, so they'll 3741 # only be used when explicitly requested. 3742 if test "x$enable_dependency_tracking" = xyes; then 3743 continue 3744 else 3745 break 3746 fi 3747 ;; 3748 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3749 # This compiler won't grok '-c -o', but also, the minuso test has 3750 # not run yet. These depmodes are late enough in the game, and 3751 # so weak that their functioning should not be impacted. 3752 am__obj=conftest.${OBJEXT-o} 3753 am__minus_obj= 3754 ;; 3755 none) break ;; 3756 esac 3757 if depmode=$depmode \ 3758 source=sub/conftest.c object=$am__obj \ 3759 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3760 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3761 >/dev/null 2>conftest.err && 3762 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3763 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3764 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3765 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3766 # icc doesn't choke on unknown options, it will just issue warnings 3767 # or remarks (even with -Werror). So we grep stderr for any message 3768 # that says an option was ignored or not supported. 3769 # When given -MP, icc 7.0 and 7.1 complain thusly: 3770 # icc: Command line warning: ignoring option '-M'; no argument required 3771 # The diagnosis changed in icc 8.0: 3772 # icc: Command line remark: option '-MP' not supported 3773 if (grep 'ignoring option' conftest.err || 3774 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3775 am_cv_CC_dependencies_compiler_type=$depmode 3776 break 3777 fi 3778 fi 3779 done 3780 3781 cd .. 3782 rm -rf conftest.dir 3783else 3784 am_cv_CC_dependencies_compiler_type=none 3785fi 3786 3787fi 3788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3789$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3790CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3791 3792 if 3793 test "x$enable_dependency_tracking" != xno \ 3794 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3795 am__fastdepCC_TRUE= 3796 am__fastdepCC_FALSE='#' 3797else 3798 am__fastdepCC_TRUE='#' 3799 am__fastdepCC_FALSE= 3800fi 3801 3802 3803 3804if test -n "$ac_tool_prefix"; then 3805 for ac_prog in ar lib "link -lib" 3806 do 3807 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3808set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3810$as_echo_n "checking for $ac_word... " >&6; } 3811if ${ac_cv_prog_AR+:} false; then : 3812 $as_echo_n "(cached) " >&6 3813else 3814 if test -n "$AR"; then 3815 ac_cv_prog_AR="$AR" # Let the user override the test. 3816else 3817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3818for as_dir in $PATH 3819do 3820 IFS=$as_save_IFS 3821 test -z "$as_dir" && as_dir=. 3822 for ac_exec_ext in '' $ac_executable_extensions; do 3823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3824 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 3825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3826 break 2 3827 fi 3828done 3829 done 3830IFS=$as_save_IFS 3831 3832fi 3833fi 3834AR=$ac_cv_prog_AR 3835if test -n "$AR"; then 3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 3837$as_echo "$AR" >&6; } 3838else 3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3840$as_echo "no" >&6; } 3841fi 3842 3843 3844 test -n "$AR" && break 3845 done 3846fi 3847if test -z "$AR"; then 3848 ac_ct_AR=$AR 3849 for ac_prog in ar lib "link -lib" 3850do 3851 # Extract the first word of "$ac_prog", so it can be a program name with args. 3852set dummy $ac_prog; ac_word=$2 3853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3854$as_echo_n "checking for $ac_word... " >&6; } 3855if ${ac_cv_prog_ac_ct_AR+:} false; then : 3856 $as_echo_n "(cached) " >&6 3857else 3858 if test -n "$ac_ct_AR"; then 3859 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 3860else 3861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3862for as_dir in $PATH 3863do 3864 IFS=$as_save_IFS 3865 test -z "$as_dir" && as_dir=. 3866 for ac_exec_ext in '' $ac_executable_extensions; do 3867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3868 ac_cv_prog_ac_ct_AR="$ac_prog" 3869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3870 break 2 3871 fi 3872done 3873 done 3874IFS=$as_save_IFS 3875 3876fi 3877fi 3878ac_ct_AR=$ac_cv_prog_ac_ct_AR 3879if test -n "$ac_ct_AR"; then 3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 3881$as_echo "$ac_ct_AR" >&6; } 3882else 3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3884$as_echo "no" >&6; } 3885fi 3886 3887 3888 test -n "$ac_ct_AR" && break 3889done 3890 3891 if test "x$ac_ct_AR" = x; then 3892 AR="false" 3893 else 3894 case $cross_compiling:$ac_tool_warned in 3895yes:) 3896{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3897$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3898ac_tool_warned=yes ;; 3899esac 3900 AR=$ac_ct_AR 3901 fi 3902fi 3903 3904: ${AR=ar} 3905 3906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 3907$as_echo_n "checking the archiver ($AR) interface... " >&6; } 3908if ${am_cv_ar_interface+:} false; then : 3909 $as_echo_n "(cached) " >&6 3910else 3911 ac_ext=c 3912ac_cpp='$CPP $CPPFLAGS' 3913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3915ac_compiler_gnu=$ac_cv_c_compiler_gnu 3916 3917 am_cv_ar_interface=ar 3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3919/* end confdefs.h. */ 3920int some_variable = 0; 3921_ACEOF 3922if ac_fn_c_try_compile "$LINENO"; then : 3923 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 3924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 3925 (eval $am_ar_try) 2>&5 3926 ac_status=$? 3927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3928 test $ac_status = 0; } 3929 if test "$ac_status" -eq 0; then 3930 am_cv_ar_interface=ar 3931 else 3932 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 3933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 3934 (eval $am_ar_try) 2>&5 3935 ac_status=$? 3936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3937 test $ac_status = 0; } 3938 if test "$ac_status" -eq 0; then 3939 am_cv_ar_interface=lib 3940 else 3941 am_cv_ar_interface=unknown 3942 fi 3943 fi 3944 rm -f conftest.lib libconftest.a 3945 3946fi 3947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3948 ac_ext=c 3949ac_cpp='$CPP $CPPFLAGS' 3950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3952ac_compiler_gnu=$ac_cv_c_compiler_gnu 3953 3954fi 3955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 3956$as_echo "$am_cv_ar_interface" >&6; } 3957 3958case $am_cv_ar_interface in 3959ar) 3960 ;; 3961lib) 3962 # Microsoft lib, so override with the ar-lib wrapper script. 3963 # FIXME: It is wrong to rewrite AR. 3964 # But if we don't then we get into trouble of one sort or another. 3965 # A longer-term fix would be to have automake use am__AR in this case, 3966 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 3967 # similar. 3968 AR="$am_aux_dir/ar-lib $AR" 3969 ;; 3970unknown) 3971 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 3972 ;; 3973esac 3974 3975 3976case `pwd` in 3977 *\ * | *\ *) 3978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3979$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3980esac 3981 3982 3983 3984macro_version='2.4.6' 3985macro_revision='2.4.6' 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999ltmain=$ac_aux_dir/ltmain.sh 4000 4001# Make sure we can run config.sub. 4002$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4003 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4004 4005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4006$as_echo_n "checking build system type... " >&6; } 4007if ${ac_cv_build+:} false; then : 4008 $as_echo_n "(cached) " >&6 4009else 4010 ac_build_alias=$build_alias 4011test "x$ac_build_alias" = x && 4012 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4013test "x$ac_build_alias" = x && 4014 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4015ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4016 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4017 4018fi 4019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4020$as_echo "$ac_cv_build" >&6; } 4021case $ac_cv_build in 4022*-*-*) ;; 4023*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4024esac 4025build=$ac_cv_build 4026ac_save_IFS=$IFS; IFS='-' 4027set x $ac_cv_build 4028shift 4029build_cpu=$1 4030build_vendor=$2 4031shift; shift 4032# Remember, the first character of IFS is used to create $*, 4033# except with old shells: 4034build_os=$* 4035IFS=$ac_save_IFS 4036case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4037 4038 4039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4040$as_echo_n "checking host system type... " >&6; } 4041if ${ac_cv_host+:} false; then : 4042 $as_echo_n "(cached) " >&6 4043else 4044 if test "x$host_alias" = x; then 4045 ac_cv_host=$ac_cv_build 4046else 4047 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4048 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4049fi 4050 4051fi 4052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4053$as_echo "$ac_cv_host" >&6; } 4054case $ac_cv_host in 4055*-*-*) ;; 4056*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4057esac 4058host=$ac_cv_host 4059ac_save_IFS=$IFS; IFS='-' 4060set x $ac_cv_host 4061shift 4062host_cpu=$1 4063host_vendor=$2 4064shift; shift 4065# Remember, the first character of IFS is used to create $*, 4066# except with old shells: 4067host_os=$* 4068IFS=$ac_save_IFS 4069case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4070 4071 4072# Backslashify metacharacters that are still active within 4073# double-quoted strings. 4074sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4075 4076# Same as above, but do not quote variable references. 4077double_quote_subst='s/\(["`\\]\)/\\\1/g' 4078 4079# Sed substitution to delay expansion of an escaped shell variable in a 4080# double_quote_subst'ed string. 4081delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4082 4083# Sed substitution to delay expansion of an escaped single quote. 4084delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4085 4086# Sed substitution to avoid accidental globbing in evaled expressions 4087no_glob_subst='s/\*/\\\*/g' 4088 4089ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4090ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4091ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4092 4093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4094$as_echo_n "checking how to print strings... " >&6; } 4095# Test print first, because it will be a builtin if present. 4096if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4097 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4098 ECHO='print -r --' 4099elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4100 ECHO='printf %s\n' 4101else 4102 # Use this function as a fallback that always works. 4103 func_fallback_echo () 4104 { 4105 eval 'cat <<_LTECHO_EOF 4106$1 4107_LTECHO_EOF' 4108 } 4109 ECHO='func_fallback_echo' 4110fi 4111 4112# func_echo_all arg... 4113# Invoke $ECHO with all args, space-separated. 4114func_echo_all () 4115{ 4116 $ECHO "" 4117} 4118 4119case $ECHO in 4120 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4121$as_echo "printf" >&6; } ;; 4122 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4123$as_echo "print -r" >&6; } ;; 4124 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4125$as_echo "cat" >&6; } ;; 4126esac 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4142$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4143if ${ac_cv_path_SED+:} false; then : 4144 $as_echo_n "(cached) " >&6 4145else 4146 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4147 for ac_i in 1 2 3 4 5 6 7; do 4148 ac_script="$ac_script$as_nl$ac_script" 4149 done 4150 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4151 { ac_script=; unset ac_script;} 4152 if test -z "$SED"; then 4153 ac_path_SED_found=false 4154 # Loop through the user's path and test for each of PROGNAME-LIST 4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4156for as_dir in $PATH 4157do 4158 IFS=$as_save_IFS 4159 test -z "$as_dir" && as_dir=. 4160 for ac_prog in sed gsed; do 4161 for ac_exec_ext in '' $ac_executable_extensions; do 4162 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4163 as_fn_executable_p "$ac_path_SED" || continue 4164# Check for GNU ac_path_SED and select it if it is found. 4165 # Check for GNU $ac_path_SED 4166case `"$ac_path_SED" --version 2>&1` in 4167*GNU*) 4168 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4169*) 4170 ac_count=0 4171 $as_echo_n 0123456789 >"conftest.in" 4172 while : 4173 do 4174 cat "conftest.in" "conftest.in" >"conftest.tmp" 4175 mv "conftest.tmp" "conftest.in" 4176 cp "conftest.in" "conftest.nl" 4177 $as_echo '' >> "conftest.nl" 4178 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4179 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4180 as_fn_arith $ac_count + 1 && ac_count=$as_val 4181 if test $ac_count -gt ${ac_path_SED_max-0}; then 4182 # Best one so far, save it but keep looking for a better one 4183 ac_cv_path_SED="$ac_path_SED" 4184 ac_path_SED_max=$ac_count 4185 fi 4186 # 10*(2^10) chars as input seems more than enough 4187 test $ac_count -gt 10 && break 4188 done 4189 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4190esac 4191 4192 $ac_path_SED_found && break 3 4193 done 4194 done 4195 done 4196IFS=$as_save_IFS 4197 if test -z "$ac_cv_path_SED"; then 4198 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4199 fi 4200else 4201 ac_cv_path_SED=$SED 4202fi 4203 4204fi 4205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4206$as_echo "$ac_cv_path_SED" >&6; } 4207 SED="$ac_cv_path_SED" 4208 rm -f conftest.sed 4209 4210test -z "$SED" && SED=sed 4211Xsed="$SED -e 1s/^X//" 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4224$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4225if ${ac_cv_path_GREP+:} false; then : 4226 $as_echo_n "(cached) " >&6 4227else 4228 if test -z "$GREP"; then 4229 ac_path_GREP_found=false 4230 # Loop through the user's path and test for each of PROGNAME-LIST 4231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4232for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4233do 4234 IFS=$as_save_IFS 4235 test -z "$as_dir" && as_dir=. 4236 for ac_prog in grep ggrep; do 4237 for ac_exec_ext in '' $ac_executable_extensions; do 4238 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4239 as_fn_executable_p "$ac_path_GREP" || continue 4240# Check for GNU ac_path_GREP and select it if it is found. 4241 # Check for GNU $ac_path_GREP 4242case `"$ac_path_GREP" --version 2>&1` in 4243*GNU*) 4244 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4245*) 4246 ac_count=0 4247 $as_echo_n 0123456789 >"conftest.in" 4248 while : 4249 do 4250 cat "conftest.in" "conftest.in" >"conftest.tmp" 4251 mv "conftest.tmp" "conftest.in" 4252 cp "conftest.in" "conftest.nl" 4253 $as_echo 'GREP' >> "conftest.nl" 4254 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4255 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4256 as_fn_arith $ac_count + 1 && ac_count=$as_val 4257 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4258 # Best one so far, save it but keep looking for a better one 4259 ac_cv_path_GREP="$ac_path_GREP" 4260 ac_path_GREP_max=$ac_count 4261 fi 4262 # 10*(2^10) chars as input seems more than enough 4263 test $ac_count -gt 10 && break 4264 done 4265 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4266esac 4267 4268 $ac_path_GREP_found && break 3 4269 done 4270 done 4271 done 4272IFS=$as_save_IFS 4273 if test -z "$ac_cv_path_GREP"; then 4274 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4275 fi 4276else 4277 ac_cv_path_GREP=$GREP 4278fi 4279 4280fi 4281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4282$as_echo "$ac_cv_path_GREP" >&6; } 4283 GREP="$ac_cv_path_GREP" 4284 4285 4286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4287$as_echo_n "checking for egrep... " >&6; } 4288if ${ac_cv_path_EGREP+:} false; then : 4289 $as_echo_n "(cached) " >&6 4290else 4291 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4292 then ac_cv_path_EGREP="$GREP -E" 4293 else 4294 if test -z "$EGREP"; then 4295 ac_path_EGREP_found=false 4296 # Loop through the user's path and test for each of PROGNAME-LIST 4297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4298for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4299do 4300 IFS=$as_save_IFS 4301 test -z "$as_dir" && as_dir=. 4302 for ac_prog in egrep; do 4303 for ac_exec_ext in '' $ac_executable_extensions; do 4304 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4305 as_fn_executable_p "$ac_path_EGREP" || continue 4306# Check for GNU ac_path_EGREP and select it if it is found. 4307 # Check for GNU $ac_path_EGREP 4308case `"$ac_path_EGREP" --version 2>&1` in 4309*GNU*) 4310 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4311*) 4312 ac_count=0 4313 $as_echo_n 0123456789 >"conftest.in" 4314 while : 4315 do 4316 cat "conftest.in" "conftest.in" >"conftest.tmp" 4317 mv "conftest.tmp" "conftest.in" 4318 cp "conftest.in" "conftest.nl" 4319 $as_echo 'EGREP' >> "conftest.nl" 4320 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4321 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4322 as_fn_arith $ac_count + 1 && ac_count=$as_val 4323 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4324 # Best one so far, save it but keep looking for a better one 4325 ac_cv_path_EGREP="$ac_path_EGREP" 4326 ac_path_EGREP_max=$ac_count 4327 fi 4328 # 10*(2^10) chars as input seems more than enough 4329 test $ac_count -gt 10 && break 4330 done 4331 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4332esac 4333 4334 $ac_path_EGREP_found && break 3 4335 done 4336 done 4337 done 4338IFS=$as_save_IFS 4339 if test -z "$ac_cv_path_EGREP"; then 4340 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4341 fi 4342else 4343 ac_cv_path_EGREP=$EGREP 4344fi 4345 4346 fi 4347fi 4348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4349$as_echo "$ac_cv_path_EGREP" >&6; } 4350 EGREP="$ac_cv_path_EGREP" 4351 4352 4353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4354$as_echo_n "checking for fgrep... " >&6; } 4355if ${ac_cv_path_FGREP+:} false; then : 4356 $as_echo_n "(cached) " >&6 4357else 4358 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4359 then ac_cv_path_FGREP="$GREP -F" 4360 else 4361 if test -z "$FGREP"; then 4362 ac_path_FGREP_found=false 4363 # Loop through the user's path and test for each of PROGNAME-LIST 4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4365for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4366do 4367 IFS=$as_save_IFS 4368 test -z "$as_dir" && as_dir=. 4369 for ac_prog in fgrep; do 4370 for ac_exec_ext in '' $ac_executable_extensions; do 4371 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4372 as_fn_executable_p "$ac_path_FGREP" || continue 4373# Check for GNU ac_path_FGREP and select it if it is found. 4374 # Check for GNU $ac_path_FGREP 4375case `"$ac_path_FGREP" --version 2>&1` in 4376*GNU*) 4377 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4378*) 4379 ac_count=0 4380 $as_echo_n 0123456789 >"conftest.in" 4381 while : 4382 do 4383 cat "conftest.in" "conftest.in" >"conftest.tmp" 4384 mv "conftest.tmp" "conftest.in" 4385 cp "conftest.in" "conftest.nl" 4386 $as_echo 'FGREP' >> "conftest.nl" 4387 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4388 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4389 as_fn_arith $ac_count + 1 && ac_count=$as_val 4390 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4391 # Best one so far, save it but keep looking for a better one 4392 ac_cv_path_FGREP="$ac_path_FGREP" 4393 ac_path_FGREP_max=$ac_count 4394 fi 4395 # 10*(2^10) chars as input seems more than enough 4396 test $ac_count -gt 10 && break 4397 done 4398 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4399esac 4400 4401 $ac_path_FGREP_found && break 3 4402 done 4403 done 4404 done 4405IFS=$as_save_IFS 4406 if test -z "$ac_cv_path_FGREP"; then 4407 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4408 fi 4409else 4410 ac_cv_path_FGREP=$FGREP 4411fi 4412 4413 fi 4414fi 4415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4416$as_echo "$ac_cv_path_FGREP" >&6; } 4417 FGREP="$ac_cv_path_FGREP" 4418 4419 4420test -z "$GREP" && GREP=grep 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440# Check whether --with-gnu-ld was given. 4441if test "${with_gnu_ld+set}" = set; then : 4442 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4443else 4444 with_gnu_ld=no 4445fi 4446 4447ac_prog=ld 4448if test yes = "$GCC"; then 4449 # Check if gcc -print-prog-name=ld gives a path. 4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4451$as_echo_n "checking for ld used by $CC... " >&6; } 4452 case $host in 4453 *-*-mingw*) 4454 # gcc leaves a trailing carriage return, which upsets mingw 4455 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4456 *) 4457 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4458 esac 4459 case $ac_prog in 4460 # Accept absolute paths. 4461 [\\/]* | ?:[\\/]*) 4462 re_direlt='/[^/][^/]*/\.\./' 4463 # Canonicalize the pathname of ld 4464 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4465 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4466 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4467 done 4468 test -z "$LD" && LD=$ac_prog 4469 ;; 4470 "") 4471 # If it fails, then pretend we aren't using GCC. 4472 ac_prog=ld 4473 ;; 4474 *) 4475 # If it is relative, then search for the first ld in PATH. 4476 with_gnu_ld=unknown 4477 ;; 4478 esac 4479elif test yes = "$with_gnu_ld"; then 4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4481$as_echo_n "checking for GNU ld... " >&6; } 4482else 4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4484$as_echo_n "checking for non-GNU ld... " >&6; } 4485fi 4486if ${lt_cv_path_LD+:} false; then : 4487 $as_echo_n "(cached) " >&6 4488else 4489 if test -z "$LD"; then 4490 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4491 for ac_dir in $PATH; do 4492 IFS=$lt_save_ifs 4493 test -z "$ac_dir" && ac_dir=. 4494 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4495 lt_cv_path_LD=$ac_dir/$ac_prog 4496 # Check to see if the program is GNU ld. I'd rather use --version, 4497 # but apparently some variants of GNU ld only accept -v. 4498 # Break only if it was the GNU/non-GNU ld that we prefer. 4499 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4500 *GNU* | *'with BFD'*) 4501 test no != "$with_gnu_ld" && break 4502 ;; 4503 *) 4504 test yes != "$with_gnu_ld" && break 4505 ;; 4506 esac 4507 fi 4508 done 4509 IFS=$lt_save_ifs 4510else 4511 lt_cv_path_LD=$LD # Let the user override the test with a path. 4512fi 4513fi 4514 4515LD=$lt_cv_path_LD 4516if test -n "$LD"; then 4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4518$as_echo "$LD" >&6; } 4519else 4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4521$as_echo "no" >&6; } 4522fi 4523test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4525$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4526if ${lt_cv_prog_gnu_ld+:} false; then : 4527 $as_echo_n "(cached) " >&6 4528else 4529 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4530case `$LD -v 2>&1 </dev/null` in 4531*GNU* | *'with BFD'*) 4532 lt_cv_prog_gnu_ld=yes 4533 ;; 4534*) 4535 lt_cv_prog_gnu_ld=no 4536 ;; 4537esac 4538fi 4539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4540$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4541with_gnu_ld=$lt_cv_prog_gnu_ld 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4552$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4553if ${lt_cv_path_NM+:} false; then : 4554 $as_echo_n "(cached) " >&6 4555else 4556 if test -n "$NM"; then 4557 # Let the user override the test. 4558 lt_cv_path_NM=$NM 4559else 4560 lt_nm_to_check=${ac_tool_prefix}nm 4561 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4562 lt_nm_to_check="$lt_nm_to_check nm" 4563 fi 4564 for lt_tmp_nm in $lt_nm_to_check; do 4565 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4566 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4567 IFS=$lt_save_ifs 4568 test -z "$ac_dir" && ac_dir=. 4569 tmp_nm=$ac_dir/$lt_tmp_nm 4570 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4571 # Check to see if the nm accepts a BSD-compat flag. 4572 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4573 # nm: unknown option "B" ignored 4574 # Tru64's nm complains that /dev/null is an invalid object file 4575 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4576 case $build_os in 4577 mingw*) lt_bad_file=conftest.nm/nofile ;; 4578 *) lt_bad_file=/dev/null ;; 4579 esac 4580 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4581 *$lt_bad_file* | *'Invalid file or object type'*) 4582 lt_cv_path_NM="$tmp_nm -B" 4583 break 2 4584 ;; 4585 *) 4586 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4587 */dev/null*) 4588 lt_cv_path_NM="$tmp_nm -p" 4589 break 2 4590 ;; 4591 *) 4592 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4593 continue # so that we can try to find one that supports BSD flags 4594 ;; 4595 esac 4596 ;; 4597 esac 4598 fi 4599 done 4600 IFS=$lt_save_ifs 4601 done 4602 : ${lt_cv_path_NM=no} 4603fi 4604fi 4605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4606$as_echo "$lt_cv_path_NM" >&6; } 4607if test no != "$lt_cv_path_NM"; then 4608 NM=$lt_cv_path_NM 4609else 4610 # Didn't find any BSD compatible name lister, look for dumpbin. 4611 if test -n "$DUMPBIN"; then : 4612 # Let the user override the test. 4613 else 4614 if test -n "$ac_tool_prefix"; then 4615 for ac_prog in dumpbin "link -dump" 4616 do 4617 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4618set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4620$as_echo_n "checking for $ac_word... " >&6; } 4621if ${ac_cv_prog_DUMPBIN+:} false; then : 4622 $as_echo_n "(cached) " >&6 4623else 4624 if test -n "$DUMPBIN"; then 4625 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4626else 4627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4628for as_dir in $PATH 4629do 4630 IFS=$as_save_IFS 4631 test -z "$as_dir" && as_dir=. 4632 for ac_exec_ext in '' $ac_executable_extensions; do 4633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4634 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4636 break 2 4637 fi 4638done 4639 done 4640IFS=$as_save_IFS 4641 4642fi 4643fi 4644DUMPBIN=$ac_cv_prog_DUMPBIN 4645if test -n "$DUMPBIN"; then 4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4647$as_echo "$DUMPBIN" >&6; } 4648else 4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4650$as_echo "no" >&6; } 4651fi 4652 4653 4654 test -n "$DUMPBIN" && break 4655 done 4656fi 4657if test -z "$DUMPBIN"; then 4658 ac_ct_DUMPBIN=$DUMPBIN 4659 for ac_prog in dumpbin "link -dump" 4660do 4661 # Extract the first word of "$ac_prog", so it can be a program name with args. 4662set dummy $ac_prog; ac_word=$2 4663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4664$as_echo_n "checking for $ac_word... " >&6; } 4665if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4666 $as_echo_n "(cached) " >&6 4667else 4668 if test -n "$ac_ct_DUMPBIN"; then 4669 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4670else 4671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4672for as_dir in $PATH 4673do 4674 IFS=$as_save_IFS 4675 test -z "$as_dir" && as_dir=. 4676 for ac_exec_ext in '' $ac_executable_extensions; do 4677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4678 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4680 break 2 4681 fi 4682done 4683 done 4684IFS=$as_save_IFS 4685 4686fi 4687fi 4688ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4689if test -n "$ac_ct_DUMPBIN"; then 4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4691$as_echo "$ac_ct_DUMPBIN" >&6; } 4692else 4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4694$as_echo "no" >&6; } 4695fi 4696 4697 4698 test -n "$ac_ct_DUMPBIN" && break 4699done 4700 4701 if test "x$ac_ct_DUMPBIN" = x; then 4702 DUMPBIN=":" 4703 else 4704 case $cross_compiling:$ac_tool_warned in 4705yes:) 4706{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4707$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4708ac_tool_warned=yes ;; 4709esac 4710 DUMPBIN=$ac_ct_DUMPBIN 4711 fi 4712fi 4713 4714 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4715 *COFF*) 4716 DUMPBIN="$DUMPBIN -symbols -headers" 4717 ;; 4718 *) 4719 DUMPBIN=: 4720 ;; 4721 esac 4722 fi 4723 4724 if test : != "$DUMPBIN"; then 4725 NM=$DUMPBIN 4726 fi 4727fi 4728test -z "$NM" && NM=nm 4729 4730 4731 4732 4733 4734 4735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4736$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4737if ${lt_cv_nm_interface+:} false; then : 4738 $as_echo_n "(cached) " >&6 4739else 4740 lt_cv_nm_interface="BSD nm" 4741 echo "int some_variable = 0;" > conftest.$ac_ext 4742 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4743 (eval "$ac_compile" 2>conftest.err) 4744 cat conftest.err >&5 4745 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4746 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4747 cat conftest.err >&5 4748 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4749 cat conftest.out >&5 4750 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4751 lt_cv_nm_interface="MS dumpbin" 4752 fi 4753 rm -f conftest* 4754fi 4755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4756$as_echo "$lt_cv_nm_interface" >&6; } 4757 4758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4759$as_echo_n "checking whether ln -s works... " >&6; } 4760LN_S=$as_ln_s 4761if test "$LN_S" = "ln -s"; then 4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4763$as_echo "yes" >&6; } 4764else 4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4766$as_echo "no, using $LN_S" >&6; } 4767fi 4768 4769# find the maximum length of command line arguments 4770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4771$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4772if ${lt_cv_sys_max_cmd_len+:} false; then : 4773 $as_echo_n "(cached) " >&6 4774else 4775 i=0 4776 teststring=ABCD 4777 4778 case $build_os in 4779 msdosdjgpp*) 4780 # On DJGPP, this test can blow up pretty badly due to problems in libc 4781 # (any single argument exceeding 2000 bytes causes a buffer overrun 4782 # during glob expansion). Even if it were fixed, the result of this 4783 # check would be larger than it should be. 4784 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4785 ;; 4786 4787 gnu*) 4788 # Under GNU Hurd, this test is not required because there is 4789 # no limit to the length of command line arguments. 4790 # Libtool will interpret -1 as no limit whatsoever 4791 lt_cv_sys_max_cmd_len=-1; 4792 ;; 4793 4794 cygwin* | mingw* | cegcc*) 4795 # On Win9x/ME, this test blows up -- it succeeds, but takes 4796 # about 5 minutes as the teststring grows exponentially. 4797 # Worse, since 9x/ME are not pre-emptively multitasking, 4798 # you end up with a "frozen" computer, even though with patience 4799 # the test eventually succeeds (with a max line length of 256k). 4800 # Instead, let's just punt: use the minimum linelength reported by 4801 # all of the supported platforms: 8192 (on NT/2K/XP). 4802 lt_cv_sys_max_cmd_len=8192; 4803 ;; 4804 4805 mint*) 4806 # On MiNT this can take a long time and run out of memory. 4807 lt_cv_sys_max_cmd_len=8192; 4808 ;; 4809 4810 amigaos*) 4811 # On AmigaOS with pdksh, this test takes hours, literally. 4812 # So we just punt and use a minimum line length of 8192. 4813 lt_cv_sys_max_cmd_len=8192; 4814 ;; 4815 4816 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4817 # This has been around since 386BSD, at least. Likely further. 4818 if test -x /sbin/sysctl; then 4819 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4820 elif test -x /usr/sbin/sysctl; then 4821 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4822 else 4823 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4824 fi 4825 # And add a safety zone 4826 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4827 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4828 ;; 4829 4830 interix*) 4831 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4832 lt_cv_sys_max_cmd_len=196608 4833 ;; 4834 4835 os2*) 4836 # The test takes a long time on OS/2. 4837 lt_cv_sys_max_cmd_len=8192 4838 ;; 4839 4840 osf*) 4841 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4842 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4843 # nice to cause kernel panics so lets avoid the loop below. 4844 # First set a reasonable default. 4845 lt_cv_sys_max_cmd_len=16384 4846 # 4847 if test -x /sbin/sysconfig; then 4848 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4849 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4850 esac 4851 fi 4852 ;; 4853 sco3.2v5*) 4854 lt_cv_sys_max_cmd_len=102400 4855 ;; 4856 sysv5* | sco5v6* | sysv4.2uw2*) 4857 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4858 if test -n "$kargmax"; then 4859 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4860 else 4861 lt_cv_sys_max_cmd_len=32768 4862 fi 4863 ;; 4864 *) 4865 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4866 if test -n "$lt_cv_sys_max_cmd_len" && \ 4867 test undefined != "$lt_cv_sys_max_cmd_len"; then 4868 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4869 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4870 else 4871 # Make teststring a little bigger before we do anything with it. 4872 # a 1K string should be a reasonable start. 4873 for i in 1 2 3 4 5 6 7 8; do 4874 teststring=$teststring$teststring 4875 done 4876 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4877 # If test is not a shell built-in, we'll probably end up computing a 4878 # maximum length that is only half of the actual maximum length, but 4879 # we can't tell. 4880 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 4881 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4882 test 17 != "$i" # 1/2 MB should be enough 4883 do 4884 i=`expr $i + 1` 4885 teststring=$teststring$teststring 4886 done 4887 # Only check the string length outside the loop. 4888 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4889 teststring= 4890 # Add a significant safety factor because C++ compilers can tack on 4891 # massive amounts of additional arguments before passing them to the 4892 # linker. It appears as though 1/2 is a usable value. 4893 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4894 fi 4895 ;; 4896 esac 4897 4898fi 4899 4900if test -n "$lt_cv_sys_max_cmd_len"; then 4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4902$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4903else 4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4905$as_echo "none" >&6; } 4906fi 4907max_cmd_len=$lt_cv_sys_max_cmd_len 4908 4909 4910 4911 4912 4913 4914: ${CP="cp -f"} 4915: ${MV="mv -f"} 4916: ${RM="rm -f"} 4917 4918if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4919 lt_unset=unset 4920else 4921 lt_unset=false 4922fi 4923 4924 4925 4926 4927 4928# test EBCDIC or ASCII 4929case `echo X|tr X '\101'` in 4930 A) # ASCII based system 4931 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4932 lt_SP2NL='tr \040 \012' 4933 lt_NL2SP='tr \015\012 \040\040' 4934 ;; 4935 *) # EBCDIC based system 4936 lt_SP2NL='tr \100 \n' 4937 lt_NL2SP='tr \r\n \100\100' 4938 ;; 4939esac 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4950$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4951if ${lt_cv_to_host_file_cmd+:} false; then : 4952 $as_echo_n "(cached) " >&6 4953else 4954 case $host in 4955 *-*-mingw* ) 4956 case $build in 4957 *-*-mingw* ) # actually msys 4958 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4959 ;; 4960 *-*-cygwin* ) 4961 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4962 ;; 4963 * ) # otherwise, assume *nix 4964 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4965 ;; 4966 esac 4967 ;; 4968 *-*-cygwin* ) 4969 case $build in 4970 *-*-mingw* ) # actually msys 4971 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4972 ;; 4973 *-*-cygwin* ) 4974 lt_cv_to_host_file_cmd=func_convert_file_noop 4975 ;; 4976 * ) # otherwise, assume *nix 4977 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4978 ;; 4979 esac 4980 ;; 4981 * ) # unhandled hosts (and "normal" native builds) 4982 lt_cv_to_host_file_cmd=func_convert_file_noop 4983 ;; 4984esac 4985 4986fi 4987 4988to_host_file_cmd=$lt_cv_to_host_file_cmd 4989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4990$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4991 4992 4993 4994 4995 4996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4997$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4998if ${lt_cv_to_tool_file_cmd+:} false; then : 4999 $as_echo_n "(cached) " >&6 5000else 5001 #assume ordinary cross tools, or native build. 5002lt_cv_to_tool_file_cmd=func_convert_file_noop 5003case $host in 5004 *-*-mingw* ) 5005 case $build in 5006 *-*-mingw* ) # actually msys 5007 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5008 ;; 5009 esac 5010 ;; 5011esac 5012 5013fi 5014 5015to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5017$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5018 5019 5020 5021 5022 5023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5024$as_echo_n "checking for $LD option to reload object files... " >&6; } 5025if ${lt_cv_ld_reload_flag+:} false; then : 5026 $as_echo_n "(cached) " >&6 5027else 5028 lt_cv_ld_reload_flag='-r' 5029fi 5030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5031$as_echo "$lt_cv_ld_reload_flag" >&6; } 5032reload_flag=$lt_cv_ld_reload_flag 5033case $reload_flag in 5034"" | " "*) ;; 5035*) reload_flag=" $reload_flag" ;; 5036esac 5037reload_cmds='$LD$reload_flag -o $output$reload_objs' 5038case $host_os in 5039 cygwin* | mingw* | pw32* | cegcc*) 5040 if test yes != "$GCC"; then 5041 reload_cmds=false 5042 fi 5043 ;; 5044 darwin*) 5045 if test yes = "$GCC"; then 5046 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5047 else 5048 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5049 fi 5050 ;; 5051esac 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061if test -n "$ac_tool_prefix"; then 5062 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5063set dummy ${ac_tool_prefix}objdump; ac_word=$2 5064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5065$as_echo_n "checking for $ac_word... " >&6; } 5066if ${ac_cv_prog_OBJDUMP+:} false; then : 5067 $as_echo_n "(cached) " >&6 5068else 5069 if test -n "$OBJDUMP"; then 5070 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5071else 5072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5073for as_dir in $PATH 5074do 5075 IFS=$as_save_IFS 5076 test -z "$as_dir" && as_dir=. 5077 for ac_exec_ext in '' $ac_executable_extensions; do 5078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5079 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5081 break 2 5082 fi 5083done 5084 done 5085IFS=$as_save_IFS 5086 5087fi 5088fi 5089OBJDUMP=$ac_cv_prog_OBJDUMP 5090if test -n "$OBJDUMP"; then 5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5092$as_echo "$OBJDUMP" >&6; } 5093else 5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5095$as_echo "no" >&6; } 5096fi 5097 5098 5099fi 5100if test -z "$ac_cv_prog_OBJDUMP"; then 5101 ac_ct_OBJDUMP=$OBJDUMP 5102 # Extract the first word of "objdump", so it can be a program name with args. 5103set dummy objdump; ac_word=$2 5104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5105$as_echo_n "checking for $ac_word... " >&6; } 5106if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5107 $as_echo_n "(cached) " >&6 5108else 5109 if test -n "$ac_ct_OBJDUMP"; then 5110 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5111else 5112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5113for as_dir in $PATH 5114do 5115 IFS=$as_save_IFS 5116 test -z "$as_dir" && as_dir=. 5117 for ac_exec_ext in '' $ac_executable_extensions; do 5118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5119 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5121 break 2 5122 fi 5123done 5124 done 5125IFS=$as_save_IFS 5126 5127fi 5128fi 5129ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5130if test -n "$ac_ct_OBJDUMP"; then 5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5132$as_echo "$ac_ct_OBJDUMP" >&6; } 5133else 5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5135$as_echo "no" >&6; } 5136fi 5137 5138 if test "x$ac_ct_OBJDUMP" = x; then 5139 OBJDUMP="false" 5140 else 5141 case $cross_compiling:$ac_tool_warned in 5142yes:) 5143{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5144$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5145ac_tool_warned=yes ;; 5146esac 5147 OBJDUMP=$ac_ct_OBJDUMP 5148 fi 5149else 5150 OBJDUMP="$ac_cv_prog_OBJDUMP" 5151fi 5152 5153test -z "$OBJDUMP" && OBJDUMP=objdump 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5164$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5165if ${lt_cv_deplibs_check_method+:} false; then : 5166 $as_echo_n "(cached) " >&6 5167else 5168 lt_cv_file_magic_cmd='$MAGIC_CMD' 5169lt_cv_file_magic_test_file= 5170lt_cv_deplibs_check_method='unknown' 5171# Need to set the preceding variable on all platforms that support 5172# interlibrary dependencies. 5173# 'none' -- dependencies not supported. 5174# 'unknown' -- same as none, but documents that we really don't know. 5175# 'pass_all' -- all dependencies passed with no checks. 5176# 'test_compile' -- check by making test program. 5177# 'file_magic [[regex]]' -- check by looking for files in library path 5178# that responds to the $file_magic_cmd with a given extended regex. 5179# If you have 'file' or equivalent on your system and you're not sure 5180# whether 'pass_all' will *always* work, you probably want this one. 5181 5182case $host_os in 5183aix[4-9]*) 5184 lt_cv_deplibs_check_method=pass_all 5185 ;; 5186 5187beos*) 5188 lt_cv_deplibs_check_method=pass_all 5189 ;; 5190 5191bsdi[45]*) 5192 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5193 lt_cv_file_magic_cmd='/usr/bin/file -L' 5194 lt_cv_file_magic_test_file=/shlib/libc.so 5195 ;; 5196 5197cygwin*) 5198 # func_win32_libid is a shell function defined in ltmain.sh 5199 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5200 lt_cv_file_magic_cmd='func_win32_libid' 5201 ;; 5202 5203mingw* | pw32*) 5204 # Base MSYS/MinGW do not provide the 'file' command needed by 5205 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5206 # unless we find 'file', for example because we are cross-compiling. 5207 if ( file / ) >/dev/null 2>&1; then 5208 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5209 lt_cv_file_magic_cmd='func_win32_libid' 5210 else 5211 # Keep this pattern in sync with the one in func_win32_libid. 5212 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5213 lt_cv_file_magic_cmd='$OBJDUMP -f' 5214 fi 5215 ;; 5216 5217cegcc*) 5218 # use the weaker test based on 'objdump'. See mingw*. 5219 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5220 lt_cv_file_magic_cmd='$OBJDUMP -f' 5221 ;; 5222 5223darwin* | rhapsody*) 5224 lt_cv_deplibs_check_method=pass_all 5225 ;; 5226 5227freebsd* | dragonfly*) 5228 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5229 case $host_cpu in 5230 i*86 ) 5231 # Not sure whether the presence of OpenBSD here was a mistake. 5232 # Let's accept both of them until this is cleared up. 5233 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5234 lt_cv_file_magic_cmd=/usr/bin/file 5235 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5236 ;; 5237 esac 5238 else 5239 lt_cv_deplibs_check_method=pass_all 5240 fi 5241 ;; 5242 5243haiku*) 5244 lt_cv_deplibs_check_method=pass_all 5245 ;; 5246 5247hpux10.20* | hpux11*) 5248 lt_cv_file_magic_cmd=/usr/bin/file 5249 case $host_cpu in 5250 ia64*) 5251 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5252 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5253 ;; 5254 hppa*64*) 5255 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]' 5256 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5257 ;; 5258 *) 5259 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5260 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5261 ;; 5262 esac 5263 ;; 5264 5265interix[3-9]*) 5266 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5267 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5268 ;; 5269 5270irix5* | irix6* | nonstopux*) 5271 case $LD in 5272 *-32|*"-32 ") libmagic=32-bit;; 5273 *-n32|*"-n32 ") libmagic=N32;; 5274 *-64|*"-64 ") libmagic=64-bit;; 5275 *) libmagic=never-match;; 5276 esac 5277 lt_cv_deplibs_check_method=pass_all 5278 ;; 5279 5280# This must be glibc/ELF. 5281linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5282 lt_cv_deplibs_check_method=pass_all 5283 ;; 5284 5285netbsd* | netbsdelf*-gnu) 5286 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5287 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5288 else 5289 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5290 fi 5291 ;; 5292 5293newos6*) 5294 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5295 lt_cv_file_magic_cmd=/usr/bin/file 5296 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5297 ;; 5298 5299*nto* | *qnx*) 5300 lt_cv_deplibs_check_method=pass_all 5301 ;; 5302 5303openbsd* | bitrig*) 5304 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5305 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5306 else 5307 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5308 fi 5309 ;; 5310 5311osf3* | osf4* | osf5*) 5312 lt_cv_deplibs_check_method=pass_all 5313 ;; 5314 5315rdos*) 5316 lt_cv_deplibs_check_method=pass_all 5317 ;; 5318 5319solaris*) 5320 lt_cv_deplibs_check_method=pass_all 5321 ;; 5322 5323sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5324 lt_cv_deplibs_check_method=pass_all 5325 ;; 5326 5327sysv4 | sysv4.3*) 5328 case $host_vendor in 5329 motorola) 5330 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]' 5331 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5332 ;; 5333 ncr) 5334 lt_cv_deplibs_check_method=pass_all 5335 ;; 5336 sequent) 5337 lt_cv_file_magic_cmd='/bin/file' 5338 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5339 ;; 5340 sni) 5341 lt_cv_file_magic_cmd='/bin/file' 5342 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5343 lt_cv_file_magic_test_file=/lib/libc.so 5344 ;; 5345 siemens) 5346 lt_cv_deplibs_check_method=pass_all 5347 ;; 5348 pc) 5349 lt_cv_deplibs_check_method=pass_all 5350 ;; 5351 esac 5352 ;; 5353 5354tpf*) 5355 lt_cv_deplibs_check_method=pass_all 5356 ;; 5357os2*) 5358 lt_cv_deplibs_check_method=pass_all 5359 ;; 5360esac 5361 5362fi 5363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5364$as_echo "$lt_cv_deplibs_check_method" >&6; } 5365 5366file_magic_glob= 5367want_nocaseglob=no 5368if test "$build" = "$host"; then 5369 case $host_os in 5370 mingw* | pw32*) 5371 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5372 want_nocaseglob=yes 5373 else 5374 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5375 fi 5376 ;; 5377 esac 5378fi 5379 5380file_magic_cmd=$lt_cv_file_magic_cmd 5381deplibs_check_method=$lt_cv_deplibs_check_method 5382test -z "$deplibs_check_method" && deplibs_check_method=unknown 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405if test -n "$ac_tool_prefix"; then 5406 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5407set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5409$as_echo_n "checking for $ac_word... " >&6; } 5410if ${ac_cv_prog_DLLTOOL+:} false; then : 5411 $as_echo_n "(cached) " >&6 5412else 5413 if test -n "$DLLTOOL"; then 5414 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5415else 5416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5417for as_dir in $PATH 5418do 5419 IFS=$as_save_IFS 5420 test -z "$as_dir" && as_dir=. 5421 for ac_exec_ext in '' $ac_executable_extensions; do 5422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5423 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5425 break 2 5426 fi 5427done 5428 done 5429IFS=$as_save_IFS 5430 5431fi 5432fi 5433DLLTOOL=$ac_cv_prog_DLLTOOL 5434if test -n "$DLLTOOL"; then 5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5436$as_echo "$DLLTOOL" >&6; } 5437else 5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5439$as_echo "no" >&6; } 5440fi 5441 5442 5443fi 5444if test -z "$ac_cv_prog_DLLTOOL"; then 5445 ac_ct_DLLTOOL=$DLLTOOL 5446 # Extract the first word of "dlltool", so it can be a program name with args. 5447set dummy dlltool; ac_word=$2 5448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5449$as_echo_n "checking for $ac_word... " >&6; } 5450if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5451 $as_echo_n "(cached) " >&6 5452else 5453 if test -n "$ac_ct_DLLTOOL"; then 5454 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5455else 5456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5457for as_dir in $PATH 5458do 5459 IFS=$as_save_IFS 5460 test -z "$as_dir" && as_dir=. 5461 for ac_exec_ext in '' $ac_executable_extensions; do 5462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5463 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5465 break 2 5466 fi 5467done 5468 done 5469IFS=$as_save_IFS 5470 5471fi 5472fi 5473ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5474if test -n "$ac_ct_DLLTOOL"; then 5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5476$as_echo "$ac_ct_DLLTOOL" >&6; } 5477else 5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5479$as_echo "no" >&6; } 5480fi 5481 5482 if test "x$ac_ct_DLLTOOL" = x; then 5483 DLLTOOL="false" 5484 else 5485 case $cross_compiling:$ac_tool_warned in 5486yes:) 5487{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5488$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5489ac_tool_warned=yes ;; 5490esac 5491 DLLTOOL=$ac_ct_DLLTOOL 5492 fi 5493else 5494 DLLTOOL="$ac_cv_prog_DLLTOOL" 5495fi 5496 5497test -z "$DLLTOOL" && DLLTOOL=dlltool 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5509$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5510if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5511 $as_echo_n "(cached) " >&6 5512else 5513 lt_cv_sharedlib_from_linklib_cmd='unknown' 5514 5515case $host_os in 5516cygwin* | mingw* | pw32* | cegcc*) 5517 # two different shell functions defined in ltmain.sh; 5518 # decide which one to use based on capabilities of $DLLTOOL 5519 case `$DLLTOOL --help 2>&1` in 5520 *--identify-strict*) 5521 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5522 ;; 5523 *) 5524 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5525 ;; 5526 esac 5527 ;; 5528*) 5529 # fallback: assume linklib IS sharedlib 5530 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5531 ;; 5532esac 5533 5534fi 5535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5536$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5537sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5538test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5539 5540 5541 5542 5543 5544 5545 5546if test -n "$ac_tool_prefix"; then 5547 for ac_prog in ar 5548 do 5549 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5550set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5552$as_echo_n "checking for $ac_word... " >&6; } 5553if ${ac_cv_prog_AR+:} false; then : 5554 $as_echo_n "(cached) " >&6 5555else 5556 if test -n "$AR"; then 5557 ac_cv_prog_AR="$AR" # Let the user override the test. 5558else 5559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5560for as_dir in $PATH 5561do 5562 IFS=$as_save_IFS 5563 test -z "$as_dir" && as_dir=. 5564 for ac_exec_ext in '' $ac_executable_extensions; do 5565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5566 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5568 break 2 5569 fi 5570done 5571 done 5572IFS=$as_save_IFS 5573 5574fi 5575fi 5576AR=$ac_cv_prog_AR 5577if test -n "$AR"; then 5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5579$as_echo "$AR" >&6; } 5580else 5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5582$as_echo "no" >&6; } 5583fi 5584 5585 5586 test -n "$AR" && break 5587 done 5588fi 5589if test -z "$AR"; then 5590 ac_ct_AR=$AR 5591 for ac_prog in ar 5592do 5593 # Extract the first word of "$ac_prog", so it can be a program name with args. 5594set dummy $ac_prog; ac_word=$2 5595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5596$as_echo_n "checking for $ac_word... " >&6; } 5597if ${ac_cv_prog_ac_ct_AR+:} false; then : 5598 $as_echo_n "(cached) " >&6 5599else 5600 if test -n "$ac_ct_AR"; then 5601 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5602else 5603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5604for as_dir in $PATH 5605do 5606 IFS=$as_save_IFS 5607 test -z "$as_dir" && as_dir=. 5608 for ac_exec_ext in '' $ac_executable_extensions; do 5609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5610 ac_cv_prog_ac_ct_AR="$ac_prog" 5611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5612 break 2 5613 fi 5614done 5615 done 5616IFS=$as_save_IFS 5617 5618fi 5619fi 5620ac_ct_AR=$ac_cv_prog_ac_ct_AR 5621if test -n "$ac_ct_AR"; then 5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5623$as_echo "$ac_ct_AR" >&6; } 5624else 5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5626$as_echo "no" >&6; } 5627fi 5628 5629 5630 test -n "$ac_ct_AR" && break 5631done 5632 5633 if test "x$ac_ct_AR" = x; then 5634 AR="false" 5635 else 5636 case $cross_compiling:$ac_tool_warned in 5637yes:) 5638{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5640ac_tool_warned=yes ;; 5641esac 5642 AR=$ac_ct_AR 5643 fi 5644fi 5645 5646: ${AR=ar} 5647: ${AR_FLAGS=cr} 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5660$as_echo_n "checking for archiver @FILE support... " >&6; } 5661if ${lt_cv_ar_at_file+:} false; then : 5662 $as_echo_n "(cached) " >&6 5663else 5664 lt_cv_ar_at_file=no 5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5666/* end confdefs.h. */ 5667 5668int 5669main () 5670{ 5671 5672 ; 5673 return 0; 5674} 5675_ACEOF 5676if ac_fn_c_try_compile "$LINENO"; then : 5677 echo conftest.$ac_objext > conftest.lst 5678 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5680 (eval $lt_ar_try) 2>&5 5681 ac_status=$? 5682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5683 test $ac_status = 0; } 5684 if test 0 -eq "$ac_status"; then 5685 # Ensure the archiver fails upon bogus file names. 5686 rm -f conftest.$ac_objext libconftest.a 5687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5688 (eval $lt_ar_try) 2>&5 5689 ac_status=$? 5690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5691 test $ac_status = 0; } 5692 if test 0 -ne "$ac_status"; then 5693 lt_cv_ar_at_file=@ 5694 fi 5695 fi 5696 rm -f conftest.* libconftest.a 5697 5698fi 5699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5700 5701fi 5702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5703$as_echo "$lt_cv_ar_at_file" >&6; } 5704 5705if test no = "$lt_cv_ar_at_file"; then 5706 archiver_list_spec= 5707else 5708 archiver_list_spec=$lt_cv_ar_at_file 5709fi 5710 5711 5712 5713 5714 5715 5716 5717if test -n "$ac_tool_prefix"; then 5718 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5719set dummy ${ac_tool_prefix}strip; ac_word=$2 5720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5721$as_echo_n "checking for $ac_word... " >&6; } 5722if ${ac_cv_prog_STRIP+:} false; then : 5723 $as_echo_n "(cached) " >&6 5724else 5725 if test -n "$STRIP"; then 5726 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5727else 5728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5729for as_dir in $PATH 5730do 5731 IFS=$as_save_IFS 5732 test -z "$as_dir" && as_dir=. 5733 for ac_exec_ext in '' $ac_executable_extensions; do 5734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5735 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5737 break 2 5738 fi 5739done 5740 done 5741IFS=$as_save_IFS 5742 5743fi 5744fi 5745STRIP=$ac_cv_prog_STRIP 5746if test -n "$STRIP"; then 5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5748$as_echo "$STRIP" >&6; } 5749else 5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5751$as_echo "no" >&6; } 5752fi 5753 5754 5755fi 5756if test -z "$ac_cv_prog_STRIP"; then 5757 ac_ct_STRIP=$STRIP 5758 # Extract the first word of "strip", so it can be a program name with args. 5759set dummy strip; ac_word=$2 5760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5761$as_echo_n "checking for $ac_word... " >&6; } 5762if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5763 $as_echo_n "(cached) " >&6 5764else 5765 if test -n "$ac_ct_STRIP"; then 5766 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5767else 5768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5769for as_dir in $PATH 5770do 5771 IFS=$as_save_IFS 5772 test -z "$as_dir" && as_dir=. 5773 for ac_exec_ext in '' $ac_executable_extensions; do 5774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5775 ac_cv_prog_ac_ct_STRIP="strip" 5776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5777 break 2 5778 fi 5779done 5780 done 5781IFS=$as_save_IFS 5782 5783fi 5784fi 5785ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5786if test -n "$ac_ct_STRIP"; then 5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5788$as_echo "$ac_ct_STRIP" >&6; } 5789else 5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5791$as_echo "no" >&6; } 5792fi 5793 5794 if test "x$ac_ct_STRIP" = x; then 5795 STRIP=":" 5796 else 5797 case $cross_compiling:$ac_tool_warned in 5798yes:) 5799{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5800$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5801ac_tool_warned=yes ;; 5802esac 5803 STRIP=$ac_ct_STRIP 5804 fi 5805else 5806 STRIP="$ac_cv_prog_STRIP" 5807fi 5808 5809test -z "$STRIP" && STRIP=: 5810 5811 5812 5813 5814 5815 5816if test -n "$ac_tool_prefix"; then 5817 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5818set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5820$as_echo_n "checking for $ac_word... " >&6; } 5821if ${ac_cv_prog_RANLIB+:} false; then : 5822 $as_echo_n "(cached) " >&6 5823else 5824 if test -n "$RANLIB"; then 5825 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5826else 5827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5828for as_dir in $PATH 5829do 5830 IFS=$as_save_IFS 5831 test -z "$as_dir" && as_dir=. 5832 for ac_exec_ext in '' $ac_executable_extensions; do 5833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5834 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5836 break 2 5837 fi 5838done 5839 done 5840IFS=$as_save_IFS 5841 5842fi 5843fi 5844RANLIB=$ac_cv_prog_RANLIB 5845if test -n "$RANLIB"; then 5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5847$as_echo "$RANLIB" >&6; } 5848else 5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5850$as_echo "no" >&6; } 5851fi 5852 5853 5854fi 5855if test -z "$ac_cv_prog_RANLIB"; then 5856 ac_ct_RANLIB=$RANLIB 5857 # Extract the first word of "ranlib", so it can be a program name with args. 5858set dummy ranlib; ac_word=$2 5859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5860$as_echo_n "checking for $ac_word... " >&6; } 5861if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5862 $as_echo_n "(cached) " >&6 5863else 5864 if test -n "$ac_ct_RANLIB"; then 5865 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5866else 5867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5868for as_dir in $PATH 5869do 5870 IFS=$as_save_IFS 5871 test -z "$as_dir" && as_dir=. 5872 for ac_exec_ext in '' $ac_executable_extensions; do 5873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5874 ac_cv_prog_ac_ct_RANLIB="ranlib" 5875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5876 break 2 5877 fi 5878done 5879 done 5880IFS=$as_save_IFS 5881 5882fi 5883fi 5884ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5885if test -n "$ac_ct_RANLIB"; then 5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5887$as_echo "$ac_ct_RANLIB" >&6; } 5888else 5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5890$as_echo "no" >&6; } 5891fi 5892 5893 if test "x$ac_ct_RANLIB" = x; then 5894 RANLIB=":" 5895 else 5896 case $cross_compiling:$ac_tool_warned in 5897yes:) 5898{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5899$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5900ac_tool_warned=yes ;; 5901esac 5902 RANLIB=$ac_ct_RANLIB 5903 fi 5904else 5905 RANLIB="$ac_cv_prog_RANLIB" 5906fi 5907 5908test -z "$RANLIB" && RANLIB=: 5909 5910 5911 5912 5913 5914 5915# Determine commands to create old-style static archives. 5916old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5917old_postinstall_cmds='chmod 644 $oldlib' 5918old_postuninstall_cmds= 5919 5920if test -n "$RANLIB"; then 5921 case $host_os in 5922 bitrig* | openbsd*) 5923 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5924 ;; 5925 *) 5926 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5927 ;; 5928 esac 5929 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5930fi 5931 5932case $host_os in 5933 darwin*) 5934 lock_old_archive_extraction=yes ;; 5935 *) 5936 lock_old_archive_extraction=no ;; 5937esac 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977# If no C compiler was specified, use CC. 5978LTCC=${LTCC-"$CC"} 5979 5980# If no C compiler flags were specified, use CFLAGS. 5981LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5982 5983# Allow CC to be a program name with arguments. 5984compiler=$CC 5985 5986 5987# Check for command to grab the raw symbol name followed by C symbol from nm. 5988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5989$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5990if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5991 $as_echo_n "(cached) " >&6 5992else 5993 5994# These are sane defaults that work on at least a few old systems. 5995# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5996 5997# Character class describing NM global symbol codes. 5998symcode='[BCDEGRST]' 5999 6000# Regexp to match symbols that can be accessed directly from C. 6001sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6002 6003# Define system-specific variables. 6004case $host_os in 6005aix*) 6006 symcode='[BCDT]' 6007 ;; 6008cygwin* | mingw* | pw32* | cegcc*) 6009 symcode='[ABCDGISTW]' 6010 ;; 6011hpux*) 6012 if test ia64 = "$host_cpu"; then 6013 symcode='[ABCDEGRST]' 6014 fi 6015 ;; 6016irix* | nonstopux*) 6017 symcode='[BCDEGRST]' 6018 ;; 6019osf*) 6020 symcode='[BCDEGQRST]' 6021 ;; 6022solaris*) 6023 symcode='[BDRT]' 6024 ;; 6025sco3.2v5*) 6026 symcode='[DT]' 6027 ;; 6028sysv4.2uw2*) 6029 symcode='[DT]' 6030 ;; 6031sysv5* | sco5v6* | unixware* | OpenUNIX*) 6032 symcode='[ABDT]' 6033 ;; 6034sysv4) 6035 symcode='[DFNSTU]' 6036 ;; 6037esac 6038 6039# If we're using GNU nm, then use its standard symbol codes. 6040case `$NM -V 2>&1` in 6041*GNU* | *'with BFD'*) 6042 symcode='[ABCDGIRSTW]' ;; 6043esac 6044 6045if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6046 # Gets list of data symbols to import. 6047 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6048 # Adjust the below global symbol transforms to fixup imported variables. 6049 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6050 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6051 lt_c_name_lib_hook="\ 6052 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6053 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6054else 6055 # Disable hooks by default. 6056 lt_cv_sys_global_symbol_to_import= 6057 lt_cdecl_hook= 6058 lt_c_name_hook= 6059 lt_c_name_lib_hook= 6060fi 6061 6062# Transform an extracted symbol line into a proper C declaration. 6063# Some systems (esp. on ia64) link data and code symbols differently, 6064# so use this general approach. 6065lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6066$lt_cdecl_hook\ 6067" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6068" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6069 6070# Transform an extracted symbol line into symbol name and symbol address 6071lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6072$lt_c_name_hook\ 6073" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6074" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6075 6076# Transform an extracted symbol line into symbol name with lib prefix and 6077# symbol address. 6078lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6079$lt_c_name_lib_hook\ 6080" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6081" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6082" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6083 6084# Handle CRLF in mingw tool chain 6085opt_cr= 6086case $build_os in 6087mingw*) 6088 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6089 ;; 6090esac 6091 6092# Try without a prefix underscore, then with it. 6093for ac_symprfx in "" "_"; do 6094 6095 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6096 symxfrm="\\1 $ac_symprfx\\2 \\2" 6097 6098 # Write the raw and C identifiers. 6099 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6100 # Fake it for dumpbin and say T for any non-static function, 6101 # D for any global variable and I for any imported variable. 6102 # Also find C++ and __fastcall symbols from MSVC++, 6103 # which start with @ or ?. 6104 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6105" {last_section=section; section=\$ 3};"\ 6106" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6107" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6108" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6109" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6110" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6111" \$ 0!~/External *\|/{next};"\ 6112" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6113" {if(hide[section]) next};"\ 6114" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6115" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6116" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6117" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6118" ' prfx=^$ac_symprfx" 6119 else 6120 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6121 fi 6122 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6123 6124 # Check to see that the pipe works correctly. 6125 pipe_works=no 6126 6127 rm -f conftest* 6128 cat > conftest.$ac_ext <<_LT_EOF 6129#ifdef __cplusplus 6130extern "C" { 6131#endif 6132char nm_test_var; 6133void nm_test_func(void); 6134void nm_test_func(void){} 6135#ifdef __cplusplus 6136} 6137#endif 6138int main(){nm_test_var='a';nm_test_func();return(0);} 6139_LT_EOF 6140 6141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6142 (eval $ac_compile) 2>&5 6143 ac_status=$? 6144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6145 test $ac_status = 0; }; then 6146 # Now try to grab the symbols. 6147 nlist=conftest.nm 6148 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 6149 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 6150 # Try sorting and uniquifying the output. 6151 if sort "$nlist" | uniq > "$nlist"T; then 6152 mv -f "$nlist"T "$nlist" 6153 else 6154 rm -f "$nlist"T 6155 fi 6156 6157 # Make sure that we snagged all the symbols we need. 6158 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6159 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6160 cat <<_LT_EOF > conftest.$ac_ext 6161/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6162#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6163/* DATA imports from DLLs on WIN32 can't be const, because runtime 6164 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6165# define LT_DLSYM_CONST 6166#elif defined __osf__ 6167/* This system does not cope well with relocations in const data. */ 6168# define LT_DLSYM_CONST 6169#else 6170# define LT_DLSYM_CONST const 6171#endif 6172 6173#ifdef __cplusplus 6174extern "C" { 6175#endif 6176 6177_LT_EOF 6178 # Now generate the symbol file. 6179 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6180 6181 cat <<_LT_EOF >> conftest.$ac_ext 6182 6183/* The mapping between symbol names and symbols. */ 6184LT_DLSYM_CONST struct { 6185 const char *name; 6186 void *address; 6187} 6188lt__PROGRAM__LTX_preloaded_symbols[] = 6189{ 6190 { "@PROGRAM@", (void *) 0 }, 6191_LT_EOF 6192 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6193 cat <<\_LT_EOF >> conftest.$ac_ext 6194 {0, (void *) 0} 6195}; 6196 6197/* This works around a problem in FreeBSD linker */ 6198#ifdef FREEBSD_WORKAROUND 6199static const void *lt_preloaded_setup() { 6200 return lt__PROGRAM__LTX_preloaded_symbols; 6201} 6202#endif 6203 6204#ifdef __cplusplus 6205} 6206#endif 6207_LT_EOF 6208 # Now try linking the two files. 6209 mv conftest.$ac_objext conftstm.$ac_objext 6210 lt_globsym_save_LIBS=$LIBS 6211 lt_globsym_save_CFLAGS=$CFLAGS 6212 LIBS=conftstm.$ac_objext 6213 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6214 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6215 (eval $ac_link) 2>&5 6216 ac_status=$? 6217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6218 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6219 pipe_works=yes 6220 fi 6221 LIBS=$lt_globsym_save_LIBS 6222 CFLAGS=$lt_globsym_save_CFLAGS 6223 else 6224 echo "cannot find nm_test_func in $nlist" >&5 6225 fi 6226 else 6227 echo "cannot find nm_test_var in $nlist" >&5 6228 fi 6229 else 6230 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6231 fi 6232 else 6233 echo "$progname: failed program was:" >&5 6234 cat conftest.$ac_ext >&5 6235 fi 6236 rm -rf conftest* conftst* 6237 6238 # Do not use the global_symbol_pipe unless it works. 6239 if test yes = "$pipe_works"; then 6240 break 6241 else 6242 lt_cv_sys_global_symbol_pipe= 6243 fi 6244done 6245 6246fi 6247 6248if test -z "$lt_cv_sys_global_symbol_pipe"; then 6249 lt_cv_sys_global_symbol_to_cdecl= 6250fi 6251if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6253$as_echo "failed" >&6; } 6254else 6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6256$as_echo "ok" >&6; } 6257fi 6258 6259# Response file support. 6260if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6261 nm_file_list_spec='@' 6262elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6263 nm_file_list_spec='@' 6264fi 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6303$as_echo_n "checking for sysroot... " >&6; } 6304 6305# Check whether --with-sysroot was given. 6306if test "${with_sysroot+set}" = set; then : 6307 withval=$with_sysroot; 6308else 6309 with_sysroot=no 6310fi 6311 6312 6313lt_sysroot= 6314case $with_sysroot in #( 6315 yes) 6316 if test yes = "$GCC"; then 6317 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6318 fi 6319 ;; #( 6320 /*) 6321 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6322 ;; #( 6323 no|'') 6324 ;; #( 6325 *) 6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6327$as_echo "$with_sysroot" >&6; } 6328 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6329 ;; 6330esac 6331 6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6333$as_echo "${lt_sysroot:-no}" >&6; } 6334 6335 6336 6337 6338 6339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6340$as_echo_n "checking for a working dd... " >&6; } 6341if ${ac_cv_path_lt_DD+:} false; then : 6342 $as_echo_n "(cached) " >&6 6343else 6344 printf 0123456789abcdef0123456789abcdef >conftest.i 6345cat conftest.i conftest.i >conftest2.i 6346: ${lt_DD:=$DD} 6347if test -z "$lt_DD"; then 6348 ac_path_lt_DD_found=false 6349 # Loop through the user's path and test for each of PROGNAME-LIST 6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6351for as_dir in $PATH 6352do 6353 IFS=$as_save_IFS 6354 test -z "$as_dir" && as_dir=. 6355 for ac_prog in dd; do 6356 for ac_exec_ext in '' $ac_executable_extensions; do 6357 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6358 as_fn_executable_p "$ac_path_lt_DD" || continue 6359if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6360 cmp -s conftest.i conftest.out \ 6361 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6362fi 6363 $ac_path_lt_DD_found && break 3 6364 done 6365 done 6366 done 6367IFS=$as_save_IFS 6368 if test -z "$ac_cv_path_lt_DD"; then 6369 : 6370 fi 6371else 6372 ac_cv_path_lt_DD=$lt_DD 6373fi 6374 6375rm -f conftest.i conftest2.i conftest.out 6376fi 6377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6378$as_echo "$ac_cv_path_lt_DD" >&6; } 6379 6380 6381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6382$as_echo_n "checking how to truncate binary pipes... " >&6; } 6383if ${lt_cv_truncate_bin+:} false; then : 6384 $as_echo_n "(cached) " >&6 6385else 6386 printf 0123456789abcdef0123456789abcdef >conftest.i 6387cat conftest.i conftest.i >conftest2.i 6388lt_cv_truncate_bin= 6389if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6390 cmp -s conftest.i conftest.out \ 6391 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6392fi 6393rm -f conftest.i conftest2.i conftest.out 6394test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6395fi 6396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6397$as_echo "$lt_cv_truncate_bin" >&6; } 6398 6399 6400 6401 6402 6403 6404 6405# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6406func_cc_basename () 6407{ 6408 for cc_temp in $*""; do 6409 case $cc_temp in 6410 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6411 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6412 \-*) ;; 6413 *) break;; 6414 esac 6415 done 6416 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6417} 6418 6419# Check whether --enable-libtool-lock was given. 6420if test "${enable_libtool_lock+set}" = set; then : 6421 enableval=$enable_libtool_lock; 6422fi 6423 6424test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6425 6426# Some flags need to be propagated to the compiler or linker for good 6427# libtool support. 6428case $host in 6429ia64-*-hpux*) 6430 # Find out what ABI is being produced by ac_compile, and set mode 6431 # options accordingly. 6432 echo 'int i;' > conftest.$ac_ext 6433 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6434 (eval $ac_compile) 2>&5 6435 ac_status=$? 6436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6437 test $ac_status = 0; }; then 6438 case `/usr/bin/file conftest.$ac_objext` in 6439 *ELF-32*) 6440 HPUX_IA64_MODE=32 6441 ;; 6442 *ELF-64*) 6443 HPUX_IA64_MODE=64 6444 ;; 6445 esac 6446 fi 6447 rm -rf conftest* 6448 ;; 6449*-*-irix6*) 6450 # Find out what ABI is being produced by ac_compile, and set linker 6451 # options accordingly. 6452 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6454 (eval $ac_compile) 2>&5 6455 ac_status=$? 6456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6457 test $ac_status = 0; }; then 6458 if test yes = "$lt_cv_prog_gnu_ld"; then 6459 case `/usr/bin/file conftest.$ac_objext` in 6460 *32-bit*) 6461 LD="${LD-ld} -melf32bsmip" 6462 ;; 6463 *N32*) 6464 LD="${LD-ld} -melf32bmipn32" 6465 ;; 6466 *64-bit*) 6467 LD="${LD-ld} -melf64bmip" 6468 ;; 6469 esac 6470 else 6471 case `/usr/bin/file conftest.$ac_objext` in 6472 *32-bit*) 6473 LD="${LD-ld} -32" 6474 ;; 6475 *N32*) 6476 LD="${LD-ld} -n32" 6477 ;; 6478 *64-bit*) 6479 LD="${LD-ld} -64" 6480 ;; 6481 esac 6482 fi 6483 fi 6484 rm -rf conftest* 6485 ;; 6486 6487mips64*-*linux*) 6488 # Find out what ABI is being produced by ac_compile, and set linker 6489 # options accordingly. 6490 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6491 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6492 (eval $ac_compile) 2>&5 6493 ac_status=$? 6494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6495 test $ac_status = 0; }; then 6496 emul=elf 6497 case `/usr/bin/file conftest.$ac_objext` in 6498 *32-bit*) 6499 emul="${emul}32" 6500 ;; 6501 *64-bit*) 6502 emul="${emul}64" 6503 ;; 6504 esac 6505 case `/usr/bin/file conftest.$ac_objext` in 6506 *MSB*) 6507 emul="${emul}btsmip" 6508 ;; 6509 *LSB*) 6510 emul="${emul}ltsmip" 6511 ;; 6512 esac 6513 case `/usr/bin/file conftest.$ac_objext` in 6514 *N32*) 6515 emul="${emul}n32" 6516 ;; 6517 esac 6518 LD="${LD-ld} -m $emul" 6519 fi 6520 rm -rf conftest* 6521 ;; 6522 6523x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6524s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6525 # Find out what ABI is being produced by ac_compile, and set linker 6526 # options accordingly. Note that the listed cases only cover the 6527 # situations where additional linker options are needed (such as when 6528 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6529 # vice versa); the common cases where no linker options are needed do 6530 # not appear in the list. 6531 echo 'int i;' > conftest.$ac_ext 6532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6533 (eval $ac_compile) 2>&5 6534 ac_status=$? 6535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6536 test $ac_status = 0; }; then 6537 case `/usr/bin/file conftest.o` in 6538 *32-bit*) 6539 case $host in 6540 x86_64-*kfreebsd*-gnu) 6541 LD="${LD-ld} -m elf_i386_fbsd" 6542 ;; 6543 x86_64-*linux*) 6544 case `/usr/bin/file conftest.o` in 6545 *x86-64*) 6546 LD="${LD-ld} -m elf32_x86_64" 6547 ;; 6548 *) 6549 LD="${LD-ld} -m elf_i386" 6550 ;; 6551 esac 6552 ;; 6553 powerpc64le-*linux*) 6554 LD="${LD-ld} -m elf32lppclinux" 6555 ;; 6556 powerpc64-*linux*) 6557 LD="${LD-ld} -m elf32ppclinux" 6558 ;; 6559 s390x-*linux*) 6560 LD="${LD-ld} -m elf_s390" 6561 ;; 6562 sparc64-*linux*) 6563 LD="${LD-ld} -m elf32_sparc" 6564 ;; 6565 esac 6566 ;; 6567 *64-bit*) 6568 case $host in 6569 x86_64-*kfreebsd*-gnu) 6570 LD="${LD-ld} -m elf_x86_64_fbsd" 6571 ;; 6572 x86_64-*linux*) 6573 LD="${LD-ld} -m elf_x86_64" 6574 ;; 6575 powerpcle-*linux*) 6576 LD="${LD-ld} -m elf64lppc" 6577 ;; 6578 powerpc-*linux*) 6579 LD="${LD-ld} -m elf64ppc" 6580 ;; 6581 s390*-*linux*|s390*-*tpf*) 6582 LD="${LD-ld} -m elf64_s390" 6583 ;; 6584 sparc*-*linux*) 6585 LD="${LD-ld} -m elf64_sparc" 6586 ;; 6587 esac 6588 ;; 6589 esac 6590 fi 6591 rm -rf conftest* 6592 ;; 6593 6594*-*-sco3.2v5*) 6595 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6596 SAVE_CFLAGS=$CFLAGS 6597 CFLAGS="$CFLAGS -belf" 6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6599$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6600if ${lt_cv_cc_needs_belf+:} false; then : 6601 $as_echo_n "(cached) " >&6 6602else 6603 ac_ext=c 6604ac_cpp='$CPP $CPPFLAGS' 6605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6607ac_compiler_gnu=$ac_cv_c_compiler_gnu 6608 6609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6610/* end confdefs.h. */ 6611 6612int 6613main () 6614{ 6615 6616 ; 6617 return 0; 6618} 6619_ACEOF 6620if ac_fn_c_try_link "$LINENO"; then : 6621 lt_cv_cc_needs_belf=yes 6622else 6623 lt_cv_cc_needs_belf=no 6624fi 6625rm -f core conftest.err conftest.$ac_objext \ 6626 conftest$ac_exeext conftest.$ac_ext 6627 ac_ext=c 6628ac_cpp='$CPP $CPPFLAGS' 6629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6631ac_compiler_gnu=$ac_cv_c_compiler_gnu 6632 6633fi 6634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6635$as_echo "$lt_cv_cc_needs_belf" >&6; } 6636 if test yes != "$lt_cv_cc_needs_belf"; then 6637 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6638 CFLAGS=$SAVE_CFLAGS 6639 fi 6640 ;; 6641*-*solaris*) 6642 # Find out what ABI is being produced by ac_compile, and set linker 6643 # options accordingly. 6644 echo 'int i;' > conftest.$ac_ext 6645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6646 (eval $ac_compile) 2>&5 6647 ac_status=$? 6648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6649 test $ac_status = 0; }; then 6650 case `/usr/bin/file conftest.o` in 6651 *64-bit*) 6652 case $lt_cv_prog_gnu_ld in 6653 yes*) 6654 case $host in 6655 i?86-*-solaris*|x86_64-*-solaris*) 6656 LD="${LD-ld} -m elf_x86_64" 6657 ;; 6658 sparc*-*-solaris*) 6659 LD="${LD-ld} -m elf64_sparc" 6660 ;; 6661 esac 6662 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6663 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6664 LD=${LD-ld}_sol2 6665 fi 6666 ;; 6667 *) 6668 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6669 LD="${LD-ld} -64" 6670 fi 6671 ;; 6672 esac 6673 ;; 6674 esac 6675 fi 6676 rm -rf conftest* 6677 ;; 6678esac 6679 6680need_locks=$enable_libtool_lock 6681 6682if test -n "$ac_tool_prefix"; then 6683 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6684set dummy ${ac_tool_prefix}mt; ac_word=$2 6685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6686$as_echo_n "checking for $ac_word... " >&6; } 6687if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6688 $as_echo_n "(cached) " >&6 6689else 6690 if test -n "$MANIFEST_TOOL"; then 6691 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6692else 6693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6694for as_dir in $PATH 6695do 6696 IFS=$as_save_IFS 6697 test -z "$as_dir" && as_dir=. 6698 for ac_exec_ext in '' $ac_executable_extensions; do 6699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6700 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6702 break 2 6703 fi 6704done 6705 done 6706IFS=$as_save_IFS 6707 6708fi 6709fi 6710MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6711if test -n "$MANIFEST_TOOL"; then 6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6713$as_echo "$MANIFEST_TOOL" >&6; } 6714else 6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6716$as_echo "no" >&6; } 6717fi 6718 6719 6720fi 6721if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6722 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6723 # Extract the first word of "mt", so it can be a program name with args. 6724set dummy mt; ac_word=$2 6725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6726$as_echo_n "checking for $ac_word... " >&6; } 6727if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6728 $as_echo_n "(cached) " >&6 6729else 6730 if test -n "$ac_ct_MANIFEST_TOOL"; then 6731 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6732else 6733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6734for as_dir in $PATH 6735do 6736 IFS=$as_save_IFS 6737 test -z "$as_dir" && as_dir=. 6738 for ac_exec_ext in '' $ac_executable_extensions; do 6739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6740 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6742 break 2 6743 fi 6744done 6745 done 6746IFS=$as_save_IFS 6747 6748fi 6749fi 6750ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6751if test -n "$ac_ct_MANIFEST_TOOL"; then 6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6753$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6754else 6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6756$as_echo "no" >&6; } 6757fi 6758 6759 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6760 MANIFEST_TOOL=":" 6761 else 6762 case $cross_compiling:$ac_tool_warned in 6763yes:) 6764{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6765$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6766ac_tool_warned=yes ;; 6767esac 6768 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6769 fi 6770else 6771 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6772fi 6773 6774test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6776$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6777if ${lt_cv_path_mainfest_tool+:} false; then : 6778 $as_echo_n "(cached) " >&6 6779else 6780 lt_cv_path_mainfest_tool=no 6781 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6782 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6783 cat conftest.err >&5 6784 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6785 lt_cv_path_mainfest_tool=yes 6786 fi 6787 rm -f conftest* 6788fi 6789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6790$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6791if test yes != "$lt_cv_path_mainfest_tool"; then 6792 MANIFEST_TOOL=: 6793fi 6794 6795 6796 6797 6798 6799 6800 case $host_os in 6801 rhapsody* | darwin*) 6802 if test -n "$ac_tool_prefix"; then 6803 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6804set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6806$as_echo_n "checking for $ac_word... " >&6; } 6807if ${ac_cv_prog_DSYMUTIL+:} false; then : 6808 $as_echo_n "(cached) " >&6 6809else 6810 if test -n "$DSYMUTIL"; then 6811 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6812else 6813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6814for as_dir in $PATH 6815do 6816 IFS=$as_save_IFS 6817 test -z "$as_dir" && as_dir=. 6818 for ac_exec_ext in '' $ac_executable_extensions; do 6819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6820 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6822 break 2 6823 fi 6824done 6825 done 6826IFS=$as_save_IFS 6827 6828fi 6829fi 6830DSYMUTIL=$ac_cv_prog_DSYMUTIL 6831if test -n "$DSYMUTIL"; then 6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6833$as_echo "$DSYMUTIL" >&6; } 6834else 6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6836$as_echo "no" >&6; } 6837fi 6838 6839 6840fi 6841if test -z "$ac_cv_prog_DSYMUTIL"; then 6842 ac_ct_DSYMUTIL=$DSYMUTIL 6843 # Extract the first word of "dsymutil", so it can be a program name with args. 6844set dummy dsymutil; ac_word=$2 6845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6846$as_echo_n "checking for $ac_word... " >&6; } 6847if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6848 $as_echo_n "(cached) " >&6 6849else 6850 if test -n "$ac_ct_DSYMUTIL"; then 6851 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6852else 6853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6854for as_dir in $PATH 6855do 6856 IFS=$as_save_IFS 6857 test -z "$as_dir" && as_dir=. 6858 for ac_exec_ext in '' $ac_executable_extensions; do 6859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6860 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6862 break 2 6863 fi 6864done 6865 done 6866IFS=$as_save_IFS 6867 6868fi 6869fi 6870ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6871if test -n "$ac_ct_DSYMUTIL"; then 6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6873$as_echo "$ac_ct_DSYMUTIL" >&6; } 6874else 6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6876$as_echo "no" >&6; } 6877fi 6878 6879 if test "x$ac_ct_DSYMUTIL" = x; then 6880 DSYMUTIL=":" 6881 else 6882 case $cross_compiling:$ac_tool_warned in 6883yes:) 6884{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6885$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6886ac_tool_warned=yes ;; 6887esac 6888 DSYMUTIL=$ac_ct_DSYMUTIL 6889 fi 6890else 6891 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6892fi 6893 6894 if test -n "$ac_tool_prefix"; then 6895 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6896set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6898$as_echo_n "checking for $ac_word... " >&6; } 6899if ${ac_cv_prog_NMEDIT+:} false; then : 6900 $as_echo_n "(cached) " >&6 6901else 6902 if test -n "$NMEDIT"; then 6903 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6904else 6905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6906for as_dir in $PATH 6907do 6908 IFS=$as_save_IFS 6909 test -z "$as_dir" && as_dir=. 6910 for ac_exec_ext in '' $ac_executable_extensions; do 6911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6912 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6914 break 2 6915 fi 6916done 6917 done 6918IFS=$as_save_IFS 6919 6920fi 6921fi 6922NMEDIT=$ac_cv_prog_NMEDIT 6923if test -n "$NMEDIT"; then 6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6925$as_echo "$NMEDIT" >&6; } 6926else 6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6928$as_echo "no" >&6; } 6929fi 6930 6931 6932fi 6933if test -z "$ac_cv_prog_NMEDIT"; then 6934 ac_ct_NMEDIT=$NMEDIT 6935 # Extract the first word of "nmedit", so it can be a program name with args. 6936set dummy nmedit; ac_word=$2 6937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6938$as_echo_n "checking for $ac_word... " >&6; } 6939if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6940 $as_echo_n "(cached) " >&6 6941else 6942 if test -n "$ac_ct_NMEDIT"; then 6943 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6944else 6945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6946for as_dir in $PATH 6947do 6948 IFS=$as_save_IFS 6949 test -z "$as_dir" && as_dir=. 6950 for ac_exec_ext in '' $ac_executable_extensions; do 6951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6952 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6954 break 2 6955 fi 6956done 6957 done 6958IFS=$as_save_IFS 6959 6960fi 6961fi 6962ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6963if test -n "$ac_ct_NMEDIT"; then 6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6965$as_echo "$ac_ct_NMEDIT" >&6; } 6966else 6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6968$as_echo "no" >&6; } 6969fi 6970 6971 if test "x$ac_ct_NMEDIT" = x; then 6972 NMEDIT=":" 6973 else 6974 case $cross_compiling:$ac_tool_warned in 6975yes:) 6976{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6977$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6978ac_tool_warned=yes ;; 6979esac 6980 NMEDIT=$ac_ct_NMEDIT 6981 fi 6982else 6983 NMEDIT="$ac_cv_prog_NMEDIT" 6984fi 6985 6986 if test -n "$ac_tool_prefix"; then 6987 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6988set dummy ${ac_tool_prefix}lipo; ac_word=$2 6989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6990$as_echo_n "checking for $ac_word... " >&6; } 6991if ${ac_cv_prog_LIPO+:} false; then : 6992 $as_echo_n "(cached) " >&6 6993else 6994 if test -n "$LIPO"; then 6995 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6996else 6997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6998for as_dir in $PATH 6999do 7000 IFS=$as_save_IFS 7001 test -z "$as_dir" && as_dir=. 7002 for ac_exec_ext in '' $ac_executable_extensions; do 7003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7004 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7006 break 2 7007 fi 7008done 7009 done 7010IFS=$as_save_IFS 7011 7012fi 7013fi 7014LIPO=$ac_cv_prog_LIPO 7015if test -n "$LIPO"; then 7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7017$as_echo "$LIPO" >&6; } 7018else 7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7020$as_echo "no" >&6; } 7021fi 7022 7023 7024fi 7025if test -z "$ac_cv_prog_LIPO"; then 7026 ac_ct_LIPO=$LIPO 7027 # Extract the first word of "lipo", so it can be a program name with args. 7028set dummy lipo; ac_word=$2 7029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7030$as_echo_n "checking for $ac_word... " >&6; } 7031if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7032 $as_echo_n "(cached) " >&6 7033else 7034 if test -n "$ac_ct_LIPO"; then 7035 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7036else 7037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7038for as_dir in $PATH 7039do 7040 IFS=$as_save_IFS 7041 test -z "$as_dir" && as_dir=. 7042 for ac_exec_ext in '' $ac_executable_extensions; do 7043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7044 ac_cv_prog_ac_ct_LIPO="lipo" 7045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7046 break 2 7047 fi 7048done 7049 done 7050IFS=$as_save_IFS 7051 7052fi 7053fi 7054ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7055if test -n "$ac_ct_LIPO"; then 7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7057$as_echo "$ac_ct_LIPO" >&6; } 7058else 7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7060$as_echo "no" >&6; } 7061fi 7062 7063 if test "x$ac_ct_LIPO" = x; then 7064 LIPO=":" 7065 else 7066 case $cross_compiling:$ac_tool_warned in 7067yes:) 7068{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7069$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7070ac_tool_warned=yes ;; 7071esac 7072 LIPO=$ac_ct_LIPO 7073 fi 7074else 7075 LIPO="$ac_cv_prog_LIPO" 7076fi 7077 7078 if test -n "$ac_tool_prefix"; then 7079 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7080set dummy ${ac_tool_prefix}otool; ac_word=$2 7081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7082$as_echo_n "checking for $ac_word... " >&6; } 7083if ${ac_cv_prog_OTOOL+:} false; then : 7084 $as_echo_n "(cached) " >&6 7085else 7086 if test -n "$OTOOL"; then 7087 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7088else 7089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7090for as_dir in $PATH 7091do 7092 IFS=$as_save_IFS 7093 test -z "$as_dir" && as_dir=. 7094 for ac_exec_ext in '' $ac_executable_extensions; do 7095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7096 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7098 break 2 7099 fi 7100done 7101 done 7102IFS=$as_save_IFS 7103 7104fi 7105fi 7106OTOOL=$ac_cv_prog_OTOOL 7107if test -n "$OTOOL"; then 7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7109$as_echo "$OTOOL" >&6; } 7110else 7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7112$as_echo "no" >&6; } 7113fi 7114 7115 7116fi 7117if test -z "$ac_cv_prog_OTOOL"; then 7118 ac_ct_OTOOL=$OTOOL 7119 # Extract the first word of "otool", so it can be a program name with args. 7120set dummy otool; ac_word=$2 7121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7122$as_echo_n "checking for $ac_word... " >&6; } 7123if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7124 $as_echo_n "(cached) " >&6 7125else 7126 if test -n "$ac_ct_OTOOL"; then 7127 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7128else 7129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7130for as_dir in $PATH 7131do 7132 IFS=$as_save_IFS 7133 test -z "$as_dir" && as_dir=. 7134 for ac_exec_ext in '' $ac_executable_extensions; do 7135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7136 ac_cv_prog_ac_ct_OTOOL="otool" 7137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7138 break 2 7139 fi 7140done 7141 done 7142IFS=$as_save_IFS 7143 7144fi 7145fi 7146ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7147if test -n "$ac_ct_OTOOL"; then 7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7149$as_echo "$ac_ct_OTOOL" >&6; } 7150else 7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7152$as_echo "no" >&6; } 7153fi 7154 7155 if test "x$ac_ct_OTOOL" = x; then 7156 OTOOL=":" 7157 else 7158 case $cross_compiling:$ac_tool_warned in 7159yes:) 7160{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7161$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7162ac_tool_warned=yes ;; 7163esac 7164 OTOOL=$ac_ct_OTOOL 7165 fi 7166else 7167 OTOOL="$ac_cv_prog_OTOOL" 7168fi 7169 7170 if test -n "$ac_tool_prefix"; then 7171 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7172set dummy ${ac_tool_prefix}otool64; ac_word=$2 7173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7174$as_echo_n "checking for $ac_word... " >&6; } 7175if ${ac_cv_prog_OTOOL64+:} false; then : 7176 $as_echo_n "(cached) " >&6 7177else 7178 if test -n "$OTOOL64"; then 7179 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7180else 7181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7182for as_dir in $PATH 7183do 7184 IFS=$as_save_IFS 7185 test -z "$as_dir" && as_dir=. 7186 for ac_exec_ext in '' $ac_executable_extensions; do 7187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7188 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7190 break 2 7191 fi 7192done 7193 done 7194IFS=$as_save_IFS 7195 7196fi 7197fi 7198OTOOL64=$ac_cv_prog_OTOOL64 7199if test -n "$OTOOL64"; then 7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7201$as_echo "$OTOOL64" >&6; } 7202else 7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7204$as_echo "no" >&6; } 7205fi 7206 7207 7208fi 7209if test -z "$ac_cv_prog_OTOOL64"; then 7210 ac_ct_OTOOL64=$OTOOL64 7211 # Extract the first word of "otool64", so it can be a program name with args. 7212set dummy otool64; ac_word=$2 7213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7214$as_echo_n "checking for $ac_word... " >&6; } 7215if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7216 $as_echo_n "(cached) " >&6 7217else 7218 if test -n "$ac_ct_OTOOL64"; then 7219 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7220else 7221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7222for as_dir in $PATH 7223do 7224 IFS=$as_save_IFS 7225 test -z "$as_dir" && as_dir=. 7226 for ac_exec_ext in '' $ac_executable_extensions; do 7227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7228 ac_cv_prog_ac_ct_OTOOL64="otool64" 7229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7230 break 2 7231 fi 7232done 7233 done 7234IFS=$as_save_IFS 7235 7236fi 7237fi 7238ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7239if test -n "$ac_ct_OTOOL64"; then 7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7241$as_echo "$ac_ct_OTOOL64" >&6; } 7242else 7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7244$as_echo "no" >&6; } 7245fi 7246 7247 if test "x$ac_ct_OTOOL64" = x; then 7248 OTOOL64=":" 7249 else 7250 case $cross_compiling:$ac_tool_warned in 7251yes:) 7252{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7253$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7254ac_tool_warned=yes ;; 7255esac 7256 OTOOL64=$ac_ct_OTOOL64 7257 fi 7258else 7259 OTOOL64="$ac_cv_prog_OTOOL64" 7260fi 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7289$as_echo_n "checking for -single_module linker flag... " >&6; } 7290if ${lt_cv_apple_cc_single_mod+:} false; then : 7291 $as_echo_n "(cached) " >&6 7292else 7293 lt_cv_apple_cc_single_mod=no 7294 if test -z "$LT_MULTI_MODULE"; then 7295 # By default we will add the -single_module flag. You can override 7296 # by either setting the environment variable LT_MULTI_MODULE 7297 # non-empty at configure time, or by adding -multi_module to the 7298 # link flags. 7299 rm -rf libconftest.dylib* 7300 echo "int foo(void){return 1;}" > conftest.c 7301 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7302-dynamiclib -Wl,-single_module conftest.c" >&5 7303 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7304 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7305 _lt_result=$? 7306 # If there is a non-empty error log, and "single_module" 7307 # appears in it, assume the flag caused a linker warning 7308 if test -s conftest.err && $GREP single_module conftest.err; then 7309 cat conftest.err >&5 7310 # Otherwise, if the output was created with a 0 exit code from 7311 # the compiler, it worked. 7312 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7313 lt_cv_apple_cc_single_mod=yes 7314 else 7315 cat conftest.err >&5 7316 fi 7317 rm -rf libconftest.dylib* 7318 rm -f conftest.* 7319 fi 7320fi 7321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7322$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7323 7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7325$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7326if ${lt_cv_ld_exported_symbols_list+:} false; then : 7327 $as_echo_n "(cached) " >&6 7328else 7329 lt_cv_ld_exported_symbols_list=no 7330 save_LDFLAGS=$LDFLAGS 7331 echo "_main" > conftest.sym 7332 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7334/* end confdefs.h. */ 7335 7336int 7337main () 7338{ 7339 7340 ; 7341 return 0; 7342} 7343_ACEOF 7344if ac_fn_c_try_link "$LINENO"; then : 7345 lt_cv_ld_exported_symbols_list=yes 7346else 7347 lt_cv_ld_exported_symbols_list=no 7348fi 7349rm -f core conftest.err conftest.$ac_objext \ 7350 conftest$ac_exeext conftest.$ac_ext 7351 LDFLAGS=$save_LDFLAGS 7352 7353fi 7354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7355$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7356 7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7358$as_echo_n "checking for -force_load linker flag... " >&6; } 7359if ${lt_cv_ld_force_load+:} false; then : 7360 $as_echo_n "(cached) " >&6 7361else 7362 lt_cv_ld_force_load=no 7363 cat > conftest.c << _LT_EOF 7364int forced_loaded() { return 2;} 7365_LT_EOF 7366 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7367 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7368 echo "$AR cr libconftest.a conftest.o" >&5 7369 $AR cr libconftest.a conftest.o 2>&5 7370 echo "$RANLIB libconftest.a" >&5 7371 $RANLIB libconftest.a 2>&5 7372 cat > conftest.c << _LT_EOF 7373int main() { return 0;} 7374_LT_EOF 7375 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7376 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7377 _lt_result=$? 7378 if test -s conftest.err && $GREP force_load conftest.err; then 7379 cat conftest.err >&5 7380 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7381 lt_cv_ld_force_load=yes 7382 else 7383 cat conftest.err >&5 7384 fi 7385 rm -f conftest.err libconftest.a conftest conftest.c 7386 rm -rf conftest.dSYM 7387 7388fi 7389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7390$as_echo "$lt_cv_ld_force_load" >&6; } 7391 case $host_os in 7392 rhapsody* | darwin1.[012]) 7393 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7394 darwin1.*) 7395 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7396 darwin*) # darwin 5.x on 7397 # if running on 10.5 or later, the deployment target defaults 7398 # to the OS version, if on x86, and 10.4, the deployment 7399 # target defaults to 10.4. Don't you love it? 7400 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7401 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7402 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7403 10.[012][,.]*) 7404 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7405 10.*) 7406 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7407 esac 7408 ;; 7409 esac 7410 if test yes = "$lt_cv_apple_cc_single_mod"; then 7411 _lt_dar_single_mod='$single_module' 7412 fi 7413 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7414 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7415 else 7416 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7417 fi 7418 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7419 _lt_dsymutil='~$DSYMUTIL $lib || :' 7420 else 7421 _lt_dsymutil= 7422 fi 7423 ;; 7424 esac 7425 7426# func_munge_path_list VARIABLE PATH 7427# ----------------------------------- 7428# VARIABLE is name of variable containing _space_ separated list of 7429# directories to be munged by the contents of PATH, which is string 7430# having a format: 7431# "DIR[:DIR]:" 7432# string "DIR[ DIR]" will be prepended to VARIABLE 7433# ":DIR[:DIR]" 7434# string "DIR[ DIR]" will be appended to VARIABLE 7435# "DIRP[:DIRP]::[DIRA:]DIRA" 7436# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7437# "DIRA[ DIRA]" will be appended to VARIABLE 7438# "DIR[:DIR]" 7439# VARIABLE will be replaced by "DIR[ DIR]" 7440func_munge_path_list () 7441{ 7442 case x$2 in 7443 x) 7444 ;; 7445 *:) 7446 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7447 ;; 7448 x:*) 7449 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7450 ;; 7451 *::*) 7452 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7453 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7454 ;; 7455 *) 7456 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7457 ;; 7458 esac 7459} 7460 7461ac_ext=c 7462ac_cpp='$CPP $CPPFLAGS' 7463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7465ac_compiler_gnu=$ac_cv_c_compiler_gnu 7466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7467$as_echo_n "checking how to run the C preprocessor... " >&6; } 7468# On Suns, sometimes $CPP names a directory. 7469if test -n "$CPP" && test -d "$CPP"; then 7470 CPP= 7471fi 7472if test -z "$CPP"; then 7473 if ${ac_cv_prog_CPP+:} false; then : 7474 $as_echo_n "(cached) " >&6 7475else 7476 # Double quotes because CPP needs to be expanded 7477 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7478 do 7479 ac_preproc_ok=false 7480for ac_c_preproc_warn_flag in '' yes 7481do 7482 # Use a header file that comes with gcc, so configuring glibc 7483 # with a fresh cross-compiler works. 7484 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7485 # <limits.h> exists even on freestanding compilers. 7486 # On the NeXT, cc -E runs the code through the compiler's parser, 7487 # not just through cpp. "Syntax error" is here to catch this case. 7488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7489/* end confdefs.h. */ 7490#ifdef __STDC__ 7491# include <limits.h> 7492#else 7493# include <assert.h> 7494#endif 7495 Syntax error 7496_ACEOF 7497if ac_fn_c_try_cpp "$LINENO"; then : 7498 7499else 7500 # Broken: fails on valid input. 7501continue 7502fi 7503rm -f conftest.err conftest.i conftest.$ac_ext 7504 7505 # OK, works on sane cases. Now check whether nonexistent headers 7506 # can be detected and how. 7507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7508/* end confdefs.h. */ 7509#include <ac_nonexistent.h> 7510_ACEOF 7511if ac_fn_c_try_cpp "$LINENO"; then : 7512 # Broken: success on invalid input. 7513continue 7514else 7515 # Passes both tests. 7516ac_preproc_ok=: 7517break 7518fi 7519rm -f conftest.err conftest.i conftest.$ac_ext 7520 7521done 7522# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7523rm -f conftest.i conftest.err conftest.$ac_ext 7524if $ac_preproc_ok; then : 7525 break 7526fi 7527 7528 done 7529 ac_cv_prog_CPP=$CPP 7530 7531fi 7532 CPP=$ac_cv_prog_CPP 7533else 7534 ac_cv_prog_CPP=$CPP 7535fi 7536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7537$as_echo "$CPP" >&6; } 7538ac_preproc_ok=false 7539for ac_c_preproc_warn_flag in '' yes 7540do 7541 # Use a header file that comes with gcc, so configuring glibc 7542 # with a fresh cross-compiler works. 7543 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7544 # <limits.h> exists even on freestanding compilers. 7545 # On the NeXT, cc -E runs the code through the compiler's parser, 7546 # not just through cpp. "Syntax error" is here to catch this case. 7547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7548/* end confdefs.h. */ 7549#ifdef __STDC__ 7550# include <limits.h> 7551#else 7552# include <assert.h> 7553#endif 7554 Syntax error 7555_ACEOF 7556if ac_fn_c_try_cpp "$LINENO"; then : 7557 7558else 7559 # Broken: fails on valid input. 7560continue 7561fi 7562rm -f conftest.err conftest.i conftest.$ac_ext 7563 7564 # OK, works on sane cases. Now check whether nonexistent headers 7565 # can be detected and how. 7566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7567/* end confdefs.h. */ 7568#include <ac_nonexistent.h> 7569_ACEOF 7570if ac_fn_c_try_cpp "$LINENO"; then : 7571 # Broken: success on invalid input. 7572continue 7573else 7574 # Passes both tests. 7575ac_preproc_ok=: 7576break 7577fi 7578rm -f conftest.err conftest.i conftest.$ac_ext 7579 7580done 7581# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7582rm -f conftest.i conftest.err conftest.$ac_ext 7583if $ac_preproc_ok; then : 7584 7585else 7586 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7587$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7588as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7589See \`config.log' for more details" "$LINENO" 5; } 7590fi 7591 7592ac_ext=c 7593ac_cpp='$CPP $CPPFLAGS' 7594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7596ac_compiler_gnu=$ac_cv_c_compiler_gnu 7597 7598 7599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7600$as_echo_n "checking for ANSI C header files... " >&6; } 7601if ${ac_cv_header_stdc+:} false; then : 7602 $as_echo_n "(cached) " >&6 7603else 7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7605/* end confdefs.h. */ 7606#include <stdlib.h> 7607#include <stdarg.h> 7608#include <string.h> 7609#include <float.h> 7610 7611int 7612main () 7613{ 7614 7615 ; 7616 return 0; 7617} 7618_ACEOF 7619if ac_fn_c_try_compile "$LINENO"; then : 7620 ac_cv_header_stdc=yes 7621else 7622 ac_cv_header_stdc=no 7623fi 7624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7625 7626if test $ac_cv_header_stdc = yes; then 7627 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7629/* end confdefs.h. */ 7630#include <string.h> 7631 7632_ACEOF 7633if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7634 $EGREP "memchr" >/dev/null 2>&1; then : 7635 7636else 7637 ac_cv_header_stdc=no 7638fi 7639rm -f conftest* 7640 7641fi 7642 7643if test $ac_cv_header_stdc = yes; then 7644 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7646/* end confdefs.h. */ 7647#include <stdlib.h> 7648 7649_ACEOF 7650if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7651 $EGREP "free" >/dev/null 2>&1; then : 7652 7653else 7654 ac_cv_header_stdc=no 7655fi 7656rm -f conftest* 7657 7658fi 7659 7660if test $ac_cv_header_stdc = yes; then 7661 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7662 if test "$cross_compiling" = yes; then : 7663 : 7664else 7665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7666/* end confdefs.h. */ 7667#include <ctype.h> 7668#include <stdlib.h> 7669#if ((' ' & 0x0FF) == 0x020) 7670# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7671# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7672#else 7673# define ISLOWER(c) \ 7674 (('a' <= (c) && (c) <= 'i') \ 7675 || ('j' <= (c) && (c) <= 'r') \ 7676 || ('s' <= (c) && (c) <= 'z')) 7677# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7678#endif 7679 7680#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7681int 7682main () 7683{ 7684 int i; 7685 for (i = 0; i < 256; i++) 7686 if (XOR (islower (i), ISLOWER (i)) 7687 || toupper (i) != TOUPPER (i)) 7688 return 2; 7689 return 0; 7690} 7691_ACEOF 7692if ac_fn_c_try_run "$LINENO"; then : 7693 7694else 7695 ac_cv_header_stdc=no 7696fi 7697rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7698 conftest.$ac_objext conftest.beam conftest.$ac_ext 7699fi 7700 7701fi 7702fi 7703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7704$as_echo "$ac_cv_header_stdc" >&6; } 7705if test $ac_cv_header_stdc = yes; then 7706 7707$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7708 7709fi 7710 7711# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7712for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7713 inttypes.h stdint.h unistd.h 7714do : 7715 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7716ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7717" 7718if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7719 cat >>confdefs.h <<_ACEOF 7720#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7721_ACEOF 7722 7723fi 7724 7725done 7726 7727 7728for ac_header in dlfcn.h 7729do : 7730 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7731" 7732if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7733 cat >>confdefs.h <<_ACEOF 7734#define HAVE_DLFCN_H 1 7735_ACEOF 7736 7737fi 7738 7739done 7740 7741 7742 7743 7744 7745# Set options 7746 7747 7748 7749 enable_dlopen=no 7750 7751 7752 enable_win32_dll=no 7753 7754 7755 # Check whether --enable-shared was given. 7756if test "${enable_shared+set}" = set; then : 7757 enableval=$enable_shared; p=${PACKAGE-default} 7758 case $enableval in 7759 yes) enable_shared=yes ;; 7760 no) enable_shared=no ;; 7761 *) 7762 enable_shared=no 7763 # Look at the argument we got. We use all the common list separators. 7764 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7765 for pkg in $enableval; do 7766 IFS=$lt_save_ifs 7767 if test "X$pkg" = "X$p"; then 7768 enable_shared=yes 7769 fi 7770 done 7771 IFS=$lt_save_ifs 7772 ;; 7773 esac 7774else 7775 enable_shared=yes 7776fi 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 # Check whether --enable-static was given. 7787if test "${enable_static+set}" = set; then : 7788 enableval=$enable_static; p=${PACKAGE-default} 7789 case $enableval in 7790 yes) enable_static=yes ;; 7791 no) enable_static=no ;; 7792 *) 7793 enable_static=no 7794 # Look at the argument we got. We use all the common list separators. 7795 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7796 for pkg in $enableval; do 7797 IFS=$lt_save_ifs 7798 if test "X$pkg" = "X$p"; then 7799 enable_static=yes 7800 fi 7801 done 7802 IFS=$lt_save_ifs 7803 ;; 7804 esac 7805else 7806 enable_static=yes 7807fi 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818# Check whether --with-pic was given. 7819if test "${with_pic+set}" = set; then : 7820 withval=$with_pic; lt_p=${PACKAGE-default} 7821 case $withval in 7822 yes|no) pic_mode=$withval ;; 7823 *) 7824 pic_mode=default 7825 # Look at the argument we got. We use all the common list separators. 7826 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7827 for lt_pkg in $withval; do 7828 IFS=$lt_save_ifs 7829 if test "X$lt_pkg" = "X$lt_p"; then 7830 pic_mode=yes 7831 fi 7832 done 7833 IFS=$lt_save_ifs 7834 ;; 7835 esac 7836else 7837 pic_mode=default 7838fi 7839 7840 7841 7842 7843 7844 7845 7846 7847 # Check whether --enable-fast-install was given. 7848if test "${enable_fast_install+set}" = set; then : 7849 enableval=$enable_fast_install; p=${PACKAGE-default} 7850 case $enableval in 7851 yes) enable_fast_install=yes ;; 7852 no) enable_fast_install=no ;; 7853 *) 7854 enable_fast_install=no 7855 # Look at the argument we got. We use all the common list separators. 7856 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7857 for pkg in $enableval; do 7858 IFS=$lt_save_ifs 7859 if test "X$pkg" = "X$p"; then 7860 enable_fast_install=yes 7861 fi 7862 done 7863 IFS=$lt_save_ifs 7864 ;; 7865 esac 7866else 7867 enable_fast_install=yes 7868fi 7869 7870 7871 7872 7873 7874 7875 7876 7877 shared_archive_member_spec= 7878case $host,$enable_shared in 7879power*-*-aix[5-9]*,yes) 7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 7881$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 7882 7883# Check whether --with-aix-soname was given. 7884if test "${with_aix_soname+set}" = set; then : 7885 withval=$with_aix_soname; case $withval in 7886 aix|svr4|both) 7887 ;; 7888 *) 7889 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 7890 ;; 7891 esac 7892 lt_cv_with_aix_soname=$with_aix_soname 7893else 7894 if ${lt_cv_with_aix_soname+:} false; then : 7895 $as_echo_n "(cached) " >&6 7896else 7897 lt_cv_with_aix_soname=aix 7898fi 7899 7900 with_aix_soname=$lt_cv_with_aix_soname 7901fi 7902 7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 7904$as_echo "$with_aix_soname" >&6; } 7905 if test aix != "$with_aix_soname"; then 7906 # For the AIX way of multilib, we name the shared archive member 7907 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 7908 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 7909 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 7910 # the AIX toolchain works better with OBJECT_MODE set (default 32). 7911 if test 64 = "${OBJECT_MODE-32}"; then 7912 shared_archive_member_spec=shr_64 7913 else 7914 shared_archive_member_spec=shr 7915 fi 7916 fi 7917 ;; 7918*) 7919 with_aix_soname=aix 7920 ;; 7921esac 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932# This can be used to rebuild libtool when needed 7933LIBTOOL_DEPS=$ltmain 7934 7935# Always use our own libtool. 7936LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967test -z "$LN_S" && LN_S="ln -s" 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982if test -n "${ZSH_VERSION+set}"; then 7983 setopt NO_GLOB_SUBST 7984fi 7985 7986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7987$as_echo_n "checking for objdir... " >&6; } 7988if ${lt_cv_objdir+:} false; then : 7989 $as_echo_n "(cached) " >&6 7990else 7991 rm -f .libs 2>/dev/null 7992mkdir .libs 2>/dev/null 7993if test -d .libs; then 7994 lt_cv_objdir=.libs 7995else 7996 # MS-DOS does not allow filenames that begin with a dot. 7997 lt_cv_objdir=_libs 7998fi 7999rmdir .libs 2>/dev/null 8000fi 8001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8002$as_echo "$lt_cv_objdir" >&6; } 8003objdir=$lt_cv_objdir 8004 8005 8006 8007 8008 8009cat >>confdefs.h <<_ACEOF 8010#define LT_OBJDIR "$lt_cv_objdir/" 8011_ACEOF 8012 8013 8014 8015 8016case $host_os in 8017aix3*) 8018 # AIX sometimes has problems with the GCC collect2 program. For some 8019 # reason, if we set the COLLECT_NAMES environment variable, the problems 8020 # vanish in a puff of smoke. 8021 if test set != "${COLLECT_NAMES+set}"; then 8022 COLLECT_NAMES= 8023 export COLLECT_NAMES 8024 fi 8025 ;; 8026esac 8027 8028# Global variables: 8029ofile=libtool 8030can_build_shared=yes 8031 8032# All known linkers require a '.a' archive for static linking (except MSVC, 8033# which needs '.lib'). 8034libext=a 8035 8036with_gnu_ld=$lt_cv_prog_gnu_ld 8037 8038old_CC=$CC 8039old_CFLAGS=$CFLAGS 8040 8041# Set sane defaults for various variables 8042test -z "$CC" && CC=cc 8043test -z "$LTCC" && LTCC=$CC 8044test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8045test -z "$LD" && LD=ld 8046test -z "$ac_objext" && ac_objext=o 8047 8048func_cc_basename $compiler 8049cc_basename=$func_cc_basename_result 8050 8051 8052# Only perform the check for file, if the check method requires it 8053test -z "$MAGIC_CMD" && MAGIC_CMD=file 8054case $deplibs_check_method in 8055file_magic*) 8056 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8058$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8059if ${lt_cv_path_MAGIC_CMD+:} false; then : 8060 $as_echo_n "(cached) " >&6 8061else 8062 case $MAGIC_CMD in 8063[\\/*] | ?:[\\/]*) 8064 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8065 ;; 8066*) 8067 lt_save_MAGIC_CMD=$MAGIC_CMD 8068 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8069 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8070 for ac_dir in $ac_dummy; do 8071 IFS=$lt_save_ifs 8072 test -z "$ac_dir" && ac_dir=. 8073 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8074 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8075 if test -n "$file_magic_test_file"; then 8076 case $deplibs_check_method in 8077 "file_magic "*) 8078 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8079 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8080 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8081 $EGREP "$file_magic_regex" > /dev/null; then 8082 : 8083 else 8084 cat <<_LT_EOF 1>&2 8085 8086*** Warning: the command libtool uses to detect shared libraries, 8087*** $file_magic_cmd, produces output that libtool cannot recognize. 8088*** The result is that libtool may fail to recognize shared libraries 8089*** as such. This will affect the creation of libtool libraries that 8090*** depend on shared libraries, but programs linked with such libtool 8091*** libraries will work regardless of this problem. Nevertheless, you 8092*** may want to report the problem to your system manager and/or to 8093*** bug-libtool@gnu.org 8094 8095_LT_EOF 8096 fi ;; 8097 esac 8098 fi 8099 break 8100 fi 8101 done 8102 IFS=$lt_save_ifs 8103 MAGIC_CMD=$lt_save_MAGIC_CMD 8104 ;; 8105esac 8106fi 8107 8108MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8109if test -n "$MAGIC_CMD"; then 8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8111$as_echo "$MAGIC_CMD" >&6; } 8112else 8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8114$as_echo "no" >&6; } 8115fi 8116 8117 8118 8119 8120 8121if test -z "$lt_cv_path_MAGIC_CMD"; then 8122 if test -n "$ac_tool_prefix"; then 8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8124$as_echo_n "checking for file... " >&6; } 8125if ${lt_cv_path_MAGIC_CMD+:} false; then : 8126 $as_echo_n "(cached) " >&6 8127else 8128 case $MAGIC_CMD in 8129[\\/*] | ?:[\\/]*) 8130 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8131 ;; 8132*) 8133 lt_save_MAGIC_CMD=$MAGIC_CMD 8134 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8135 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8136 for ac_dir in $ac_dummy; do 8137 IFS=$lt_save_ifs 8138 test -z "$ac_dir" && ac_dir=. 8139 if test -f "$ac_dir/file"; then 8140 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8141 if test -n "$file_magic_test_file"; then 8142 case $deplibs_check_method in 8143 "file_magic "*) 8144 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8145 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8146 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8147 $EGREP "$file_magic_regex" > /dev/null; then 8148 : 8149 else 8150 cat <<_LT_EOF 1>&2 8151 8152*** Warning: the command libtool uses to detect shared libraries, 8153*** $file_magic_cmd, produces output that libtool cannot recognize. 8154*** The result is that libtool may fail to recognize shared libraries 8155*** as such. This will affect the creation of libtool libraries that 8156*** depend on shared libraries, but programs linked with such libtool 8157*** libraries will work regardless of this problem. Nevertheless, you 8158*** may want to report the problem to your system manager and/or to 8159*** bug-libtool@gnu.org 8160 8161_LT_EOF 8162 fi ;; 8163 esac 8164 fi 8165 break 8166 fi 8167 done 8168 IFS=$lt_save_ifs 8169 MAGIC_CMD=$lt_save_MAGIC_CMD 8170 ;; 8171esac 8172fi 8173 8174MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8175if test -n "$MAGIC_CMD"; then 8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8177$as_echo "$MAGIC_CMD" >&6; } 8178else 8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8180$as_echo "no" >&6; } 8181fi 8182 8183 8184 else 8185 MAGIC_CMD=: 8186 fi 8187fi 8188 8189 fi 8190 ;; 8191esac 8192 8193# Use C for the default configuration in the libtool script 8194 8195lt_save_CC=$CC 8196ac_ext=c 8197ac_cpp='$CPP $CPPFLAGS' 8198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8200ac_compiler_gnu=$ac_cv_c_compiler_gnu 8201 8202 8203# Source file extension for C test sources. 8204ac_ext=c 8205 8206# Object file extension for compiled C test sources. 8207objext=o 8208objext=$objext 8209 8210# Code to be used in simple compile tests 8211lt_simple_compile_test_code="int some_variable = 0;" 8212 8213# Code to be used in simple link tests 8214lt_simple_link_test_code='int main(){return(0);}' 8215 8216 8217 8218 8219 8220 8221 8222# If no C compiler was specified, use CC. 8223LTCC=${LTCC-"$CC"} 8224 8225# If no C compiler flags were specified, use CFLAGS. 8226LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8227 8228# Allow CC to be a program name with arguments. 8229compiler=$CC 8230 8231# Save the default compiler, since it gets overwritten when the other 8232# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8233compiler_DEFAULT=$CC 8234 8235# save warnings/boilerplate of simple test code 8236ac_outfile=conftest.$ac_objext 8237echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8238eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8239_lt_compiler_boilerplate=`cat conftest.err` 8240$RM conftest* 8241 8242ac_outfile=conftest.$ac_objext 8243echo "$lt_simple_link_test_code" >conftest.$ac_ext 8244eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8245_lt_linker_boilerplate=`cat conftest.err` 8246$RM -r conftest* 8247 8248 8249if test -n "$compiler"; then 8250 8251lt_prog_compiler_no_builtin_flag= 8252 8253if test yes = "$GCC"; then 8254 case $cc_basename in 8255 nvcc*) 8256 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8257 *) 8258 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8259 esac 8260 8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8262$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8263if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8264 $as_echo_n "(cached) " >&6 8265else 8266 lt_cv_prog_compiler_rtti_exceptions=no 8267 ac_outfile=conftest.$ac_objext 8268 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8269 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8270 # Insert the option either (1) after the last *FLAGS variable, or 8271 # (2) before a word containing "conftest.", or (3) at the end. 8272 # Note that $ac_compile itself does not contain backslashes and begins 8273 # with a dollar sign (not a hyphen), so the echo should work correctly. 8274 # The option is referenced via a variable to avoid confusing sed. 8275 lt_compile=`echo "$ac_compile" | $SED \ 8276 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8277 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8278 -e 's:$: $lt_compiler_flag:'` 8279 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8280 (eval "$lt_compile" 2>conftest.err) 8281 ac_status=$? 8282 cat conftest.err >&5 8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8284 if (exit $ac_status) && test -s "$ac_outfile"; then 8285 # The compiler can only warn and ignore the option if not recognized 8286 # So say no if there are warnings other than the usual output. 8287 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8288 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8289 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8290 lt_cv_prog_compiler_rtti_exceptions=yes 8291 fi 8292 fi 8293 $RM conftest* 8294 8295fi 8296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8297$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8298 8299if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8300 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8301else 8302 : 8303fi 8304 8305fi 8306 8307 8308 8309 8310 8311 8312 lt_prog_compiler_wl= 8313lt_prog_compiler_pic= 8314lt_prog_compiler_static= 8315 8316 8317 if test yes = "$GCC"; then 8318 lt_prog_compiler_wl='-Wl,' 8319 lt_prog_compiler_static='-static' 8320 8321 case $host_os in 8322 aix*) 8323 # All AIX code is PIC. 8324 if test ia64 = "$host_cpu"; then 8325 # AIX 5 now supports IA64 processor 8326 lt_prog_compiler_static='-Bstatic' 8327 fi 8328 lt_prog_compiler_pic='-fPIC' 8329 ;; 8330 8331 amigaos*) 8332 case $host_cpu in 8333 powerpc) 8334 # see comment about AmigaOS4 .so support 8335 lt_prog_compiler_pic='-fPIC' 8336 ;; 8337 m68k) 8338 # FIXME: we need at least 68020 code to build shared libraries, but 8339 # adding the '-m68020' flag to GCC prevents building anything better, 8340 # like '-m68040'. 8341 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8342 ;; 8343 esac 8344 ;; 8345 8346 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8347 # PIC is the default for these OSes. 8348 ;; 8349 8350 mingw* | cygwin* | pw32* | os2* | cegcc*) 8351 # This hack is so that the source file can tell whether it is being 8352 # built for inclusion in a dll (and should export symbols for example). 8353 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8354 # (--disable-auto-import) libraries 8355 lt_prog_compiler_pic='-DDLL_EXPORT' 8356 case $host_os in 8357 os2*) 8358 lt_prog_compiler_static='$wl-static' 8359 ;; 8360 esac 8361 ;; 8362 8363 darwin* | rhapsody*) 8364 # PIC is the default on this platform 8365 # Common symbols not allowed in MH_DYLIB files 8366 lt_prog_compiler_pic='-fno-common' 8367 ;; 8368 8369 haiku*) 8370 # PIC is the default for Haiku. 8371 # The "-static" flag exists, but is broken. 8372 lt_prog_compiler_static= 8373 ;; 8374 8375 hpux*) 8376 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8377 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8378 # sets the default TLS model and affects inlining. 8379 case $host_cpu in 8380 hppa*64*) 8381 # +Z the default 8382 ;; 8383 *) 8384 lt_prog_compiler_pic='-fPIC' 8385 ;; 8386 esac 8387 ;; 8388 8389 interix[3-9]*) 8390 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8391 # Instead, we relocate shared libraries at runtime. 8392 ;; 8393 8394 msdosdjgpp*) 8395 # Just because we use GCC doesn't mean we suddenly get shared libraries 8396 # on systems that don't support them. 8397 lt_prog_compiler_can_build_shared=no 8398 enable_shared=no 8399 ;; 8400 8401 *nto* | *qnx*) 8402 # QNX uses GNU C++, but need to define -shared option too, otherwise 8403 # it will coredump. 8404 lt_prog_compiler_pic='-fPIC -shared' 8405 ;; 8406 8407 sysv4*MP*) 8408 if test -d /usr/nec; then 8409 lt_prog_compiler_pic=-Kconform_pic 8410 fi 8411 ;; 8412 8413 *) 8414 lt_prog_compiler_pic='-fPIC' 8415 ;; 8416 esac 8417 8418 case $cc_basename in 8419 nvcc*) # Cuda Compiler Driver 2.2 8420 lt_prog_compiler_wl='-Xlinker ' 8421 if test -n "$lt_prog_compiler_pic"; then 8422 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8423 fi 8424 ;; 8425 esac 8426 else 8427 # PORTME Check for flag to pass linker flags through the system compiler. 8428 case $host_os in 8429 aix*) 8430 lt_prog_compiler_wl='-Wl,' 8431 if test ia64 = "$host_cpu"; then 8432 # AIX 5 now supports IA64 processor 8433 lt_prog_compiler_static='-Bstatic' 8434 else 8435 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8436 fi 8437 ;; 8438 8439 darwin* | rhapsody*) 8440 # PIC is the default on this platform 8441 # Common symbols not allowed in MH_DYLIB files 8442 lt_prog_compiler_pic='-fno-common' 8443 case $cc_basename in 8444 nagfor*) 8445 # NAG Fortran compiler 8446 lt_prog_compiler_wl='-Wl,-Wl,,' 8447 lt_prog_compiler_pic='-PIC' 8448 lt_prog_compiler_static='-Bstatic' 8449 ;; 8450 esac 8451 ;; 8452 8453 mingw* | cygwin* | pw32* | os2* | cegcc*) 8454 # This hack is so that the source file can tell whether it is being 8455 # built for inclusion in a dll (and should export symbols for example). 8456 lt_prog_compiler_pic='-DDLL_EXPORT' 8457 case $host_os in 8458 os2*) 8459 lt_prog_compiler_static='$wl-static' 8460 ;; 8461 esac 8462 ;; 8463 8464 hpux9* | hpux10* | hpux11*) 8465 lt_prog_compiler_wl='-Wl,' 8466 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8467 # not for PA HP-UX. 8468 case $host_cpu in 8469 hppa*64*|ia64*) 8470 # +Z the default 8471 ;; 8472 *) 8473 lt_prog_compiler_pic='+Z' 8474 ;; 8475 esac 8476 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8477 lt_prog_compiler_static='$wl-a ${wl}archive' 8478 ;; 8479 8480 irix5* | irix6* | nonstopux*) 8481 lt_prog_compiler_wl='-Wl,' 8482 # PIC (with -KPIC) is the default. 8483 lt_prog_compiler_static='-non_shared' 8484 ;; 8485 8486 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8487 case $cc_basename in 8488 # old Intel for x86_64, which still supported -KPIC. 8489 ecc*) 8490 lt_prog_compiler_wl='-Wl,' 8491 lt_prog_compiler_pic='-KPIC' 8492 lt_prog_compiler_static='-static' 8493 ;; 8494 # flang / f18. f95 an alias for gfortran or flang on Debian 8495 flang* | f18* | f95*) 8496 lt_prog_compiler_wl='-Wl,' 8497 lt_prog_compiler_pic='-fPIC' 8498 lt_prog_compiler_static='-static' 8499 ;; 8500 # icc used to be incompatible with GCC. 8501 # ICC 10 doesn't accept -KPIC any more. 8502 icc* | ifort*) 8503 lt_prog_compiler_wl='-Wl,' 8504 lt_prog_compiler_pic='-fPIC' 8505 lt_prog_compiler_static='-static' 8506 ;; 8507 # Lahey Fortran 8.1. 8508 lf95*) 8509 lt_prog_compiler_wl='-Wl,' 8510 lt_prog_compiler_pic='--shared' 8511 lt_prog_compiler_static='--static' 8512 ;; 8513 nagfor*) 8514 # NAG Fortran compiler 8515 lt_prog_compiler_wl='-Wl,-Wl,,' 8516 lt_prog_compiler_pic='-PIC' 8517 lt_prog_compiler_static='-Bstatic' 8518 ;; 8519 tcc*) 8520 # Fabrice Bellard et al's Tiny C Compiler 8521 lt_prog_compiler_wl='-Wl,' 8522 lt_prog_compiler_pic='-fPIC' 8523 lt_prog_compiler_static='-static' 8524 ;; 8525 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8526 # Portland Group compilers (*not* the Pentium gcc compiler, 8527 # which looks to be a dead project) 8528 lt_prog_compiler_wl='-Wl,' 8529 lt_prog_compiler_pic='-fpic' 8530 lt_prog_compiler_static='-Bstatic' 8531 ;; 8532 ccc*) 8533 lt_prog_compiler_wl='-Wl,' 8534 # All Alpha code is PIC. 8535 lt_prog_compiler_static='-non_shared' 8536 ;; 8537 xl* | bgxl* | bgf* | mpixl*) 8538 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8539 lt_prog_compiler_wl='-Wl,' 8540 lt_prog_compiler_pic='-qpic' 8541 lt_prog_compiler_static='-qstaticlink' 8542 ;; 8543 *) 8544 case `$CC -V 2>&1 | sed 5q` in 8545 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8546 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8547 lt_prog_compiler_pic='-KPIC' 8548 lt_prog_compiler_static='-Bstatic' 8549 lt_prog_compiler_wl='' 8550 ;; 8551 *Sun\ F* | *Sun*Fortran*) 8552 lt_prog_compiler_pic='-KPIC' 8553 lt_prog_compiler_static='-Bstatic' 8554 lt_prog_compiler_wl='-Qoption ld ' 8555 ;; 8556 *Sun\ C*) 8557 # Sun C 5.9 8558 lt_prog_compiler_pic='-KPIC' 8559 lt_prog_compiler_static='-Bstatic' 8560 lt_prog_compiler_wl='-Wl,' 8561 ;; 8562 *Intel*\ [CF]*Compiler*) 8563 lt_prog_compiler_wl='-Wl,' 8564 lt_prog_compiler_pic='-fPIC' 8565 lt_prog_compiler_static='-static' 8566 ;; 8567 *Portland\ Group*) 8568 lt_prog_compiler_wl='-Wl,' 8569 lt_prog_compiler_pic='-fpic' 8570 lt_prog_compiler_static='-Bstatic' 8571 ;; 8572 esac 8573 ;; 8574 esac 8575 ;; 8576 8577 newsos6) 8578 lt_prog_compiler_pic='-KPIC' 8579 lt_prog_compiler_static='-Bstatic' 8580 ;; 8581 8582 *nto* | *qnx*) 8583 # QNX uses GNU C++, but need to define -shared option too, otherwise 8584 # it will coredump. 8585 lt_prog_compiler_pic='-fPIC -shared' 8586 ;; 8587 8588 osf3* | osf4* | osf5*) 8589 lt_prog_compiler_wl='-Wl,' 8590 # All OSF/1 code is PIC. 8591 lt_prog_compiler_static='-non_shared' 8592 ;; 8593 8594 rdos*) 8595 lt_prog_compiler_static='-non_shared' 8596 ;; 8597 8598 solaris*) 8599 lt_prog_compiler_pic='-KPIC' 8600 lt_prog_compiler_static='-Bstatic' 8601 case $cc_basename in 8602 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8603 lt_prog_compiler_wl='-Qoption ld ';; 8604 *) 8605 lt_prog_compiler_wl='-Wl,';; 8606 esac 8607 ;; 8608 8609 sunos4*) 8610 lt_prog_compiler_wl='-Qoption ld ' 8611 lt_prog_compiler_pic='-PIC' 8612 lt_prog_compiler_static='-Bstatic' 8613 ;; 8614 8615 sysv4 | sysv4.2uw2* | sysv4.3*) 8616 lt_prog_compiler_wl='-Wl,' 8617 lt_prog_compiler_pic='-KPIC' 8618 lt_prog_compiler_static='-Bstatic' 8619 ;; 8620 8621 sysv4*MP*) 8622 if test -d /usr/nec; then 8623 lt_prog_compiler_pic='-Kconform_pic' 8624 lt_prog_compiler_static='-Bstatic' 8625 fi 8626 ;; 8627 8628 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8629 lt_prog_compiler_wl='-Wl,' 8630 lt_prog_compiler_pic='-KPIC' 8631 lt_prog_compiler_static='-Bstatic' 8632 ;; 8633 8634 unicos*) 8635 lt_prog_compiler_wl='-Wl,' 8636 lt_prog_compiler_can_build_shared=no 8637 ;; 8638 8639 uts4*) 8640 lt_prog_compiler_pic='-pic' 8641 lt_prog_compiler_static='-Bstatic' 8642 ;; 8643 8644 *) 8645 lt_prog_compiler_can_build_shared=no 8646 ;; 8647 esac 8648 fi 8649 8650case $host_os in 8651 # For platforms that do not support PIC, -DPIC is meaningless: 8652 *djgpp*) 8653 lt_prog_compiler_pic= 8654 ;; 8655 *) 8656 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8657 ;; 8658esac 8659 8660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8661$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8662if ${lt_cv_prog_compiler_pic+:} false; then : 8663 $as_echo_n "(cached) " >&6 8664else 8665 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8666fi 8667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8668$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8669lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8670 8671# 8672# Check to make sure the PIC flag actually works. 8673# 8674if test -n "$lt_prog_compiler_pic"; then 8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8676$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8677if ${lt_cv_prog_compiler_pic_works+:} false; then : 8678 $as_echo_n "(cached) " >&6 8679else 8680 lt_cv_prog_compiler_pic_works=no 8681 ac_outfile=conftest.$ac_objext 8682 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8683 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8684 # Insert the option either (1) after the last *FLAGS variable, or 8685 # (2) before a word containing "conftest.", or (3) at the end. 8686 # Note that $ac_compile itself does not contain backslashes and begins 8687 # with a dollar sign (not a hyphen), so the echo should work correctly. 8688 # The option is referenced via a variable to avoid confusing sed. 8689 lt_compile=`echo "$ac_compile" | $SED \ 8690 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8691 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8692 -e 's:$: $lt_compiler_flag:'` 8693 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8694 (eval "$lt_compile" 2>conftest.err) 8695 ac_status=$? 8696 cat conftest.err >&5 8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8698 if (exit $ac_status) && test -s "$ac_outfile"; then 8699 # The compiler can only warn and ignore the option if not recognized 8700 # So say no if there are warnings other than the usual output. 8701 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8702 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8703 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8704 lt_cv_prog_compiler_pic_works=yes 8705 fi 8706 fi 8707 $RM conftest* 8708 8709fi 8710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8711$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8712 8713if test yes = "$lt_cv_prog_compiler_pic_works"; then 8714 case $lt_prog_compiler_pic in 8715 "" | " "*) ;; 8716 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8717 esac 8718else 8719 lt_prog_compiler_pic= 8720 lt_prog_compiler_can_build_shared=no 8721fi 8722 8723fi 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735# 8736# Check to make sure the static flag actually works. 8737# 8738wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8740$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8741if ${lt_cv_prog_compiler_static_works+:} false; then : 8742 $as_echo_n "(cached) " >&6 8743else 8744 lt_cv_prog_compiler_static_works=no 8745 save_LDFLAGS=$LDFLAGS 8746 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8747 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8748 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8749 # The linker can only warn and ignore the option if not recognized 8750 # So say no if there are warnings 8751 if test -s conftest.err; then 8752 # Append any errors to the config.log. 8753 cat conftest.err 1>&5 8754 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8755 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8756 if diff conftest.exp conftest.er2 >/dev/null; then 8757 lt_cv_prog_compiler_static_works=yes 8758 fi 8759 else 8760 lt_cv_prog_compiler_static_works=yes 8761 fi 8762 fi 8763 $RM -r conftest* 8764 LDFLAGS=$save_LDFLAGS 8765 8766fi 8767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8768$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8769 8770if test yes = "$lt_cv_prog_compiler_static_works"; then 8771 : 8772else 8773 lt_prog_compiler_static= 8774fi 8775 8776 8777 8778 8779 8780 8781 8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8783$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8784if ${lt_cv_prog_compiler_c_o+:} false; then : 8785 $as_echo_n "(cached) " >&6 8786else 8787 lt_cv_prog_compiler_c_o=no 8788 $RM -r conftest 2>/dev/null 8789 mkdir conftest 8790 cd conftest 8791 mkdir out 8792 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8793 8794 lt_compiler_flag="-o out/conftest2.$ac_objext" 8795 # Insert the option either (1) after the last *FLAGS variable, or 8796 # (2) before a word containing "conftest.", or (3) at the end. 8797 # Note that $ac_compile itself does not contain backslashes and begins 8798 # with a dollar sign (not a hyphen), so the echo should work correctly. 8799 lt_compile=`echo "$ac_compile" | $SED \ 8800 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8801 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8802 -e 's:$: $lt_compiler_flag:'` 8803 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8804 (eval "$lt_compile" 2>out/conftest.err) 8805 ac_status=$? 8806 cat out/conftest.err >&5 8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8808 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8809 then 8810 # The compiler can only warn and ignore the option if not recognized 8811 # So say no if there are warnings 8812 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8813 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8814 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8815 lt_cv_prog_compiler_c_o=yes 8816 fi 8817 fi 8818 chmod u+w . 2>&5 8819 $RM conftest* 8820 # SGI C++ compiler will create directory out/ii_files/ for 8821 # template instantiation 8822 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8823 $RM out/* && rmdir out 8824 cd .. 8825 $RM -r conftest 8826 $RM conftest* 8827 8828fi 8829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8830$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8831 8832 8833 8834 8835 8836 8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8838$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8839if ${lt_cv_prog_compiler_c_o+:} false; then : 8840 $as_echo_n "(cached) " >&6 8841else 8842 lt_cv_prog_compiler_c_o=no 8843 $RM -r conftest 2>/dev/null 8844 mkdir conftest 8845 cd conftest 8846 mkdir out 8847 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8848 8849 lt_compiler_flag="-o out/conftest2.$ac_objext" 8850 # Insert the option either (1) after the last *FLAGS variable, or 8851 # (2) before a word containing "conftest.", or (3) at the end. 8852 # Note that $ac_compile itself does not contain backslashes and begins 8853 # with a dollar sign (not a hyphen), so the echo should work correctly. 8854 lt_compile=`echo "$ac_compile" | $SED \ 8855 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8856 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8857 -e 's:$: $lt_compiler_flag:'` 8858 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8859 (eval "$lt_compile" 2>out/conftest.err) 8860 ac_status=$? 8861 cat out/conftest.err >&5 8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8863 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8864 then 8865 # The compiler can only warn and ignore the option if not recognized 8866 # So say no if there are warnings 8867 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8868 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8869 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8870 lt_cv_prog_compiler_c_o=yes 8871 fi 8872 fi 8873 chmod u+w . 2>&5 8874 $RM conftest* 8875 # SGI C++ compiler will create directory out/ii_files/ for 8876 # template instantiation 8877 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8878 $RM out/* && rmdir out 8879 cd .. 8880 $RM -r conftest 8881 $RM conftest* 8882 8883fi 8884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8885$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8886 8887 8888 8889 8890hard_links=nottested 8891if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 8892 # do not overwrite the value of need_locks provided by the user 8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8894$as_echo_n "checking if we can lock with hard links... " >&6; } 8895 hard_links=yes 8896 $RM conftest* 8897 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8898 touch conftest.a 8899 ln conftest.a conftest.b 2>&5 || hard_links=no 8900 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8902$as_echo "$hard_links" >&6; } 8903 if test no = "$hard_links"; then 8904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 8905$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 8906 need_locks=warn 8907 fi 8908else 8909 need_locks=no 8910fi 8911 8912 8913 8914 8915 8916 8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8918$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8919 8920 runpath_var= 8921 allow_undefined_flag= 8922 always_export_symbols=no 8923 archive_cmds= 8924 archive_expsym_cmds= 8925 compiler_needs_object=no 8926 enable_shared_with_static_runtimes=no 8927 export_dynamic_flag_spec= 8928 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8929 hardcode_automatic=no 8930 hardcode_direct=no 8931 hardcode_direct_absolute=no 8932 hardcode_libdir_flag_spec= 8933 hardcode_libdir_separator= 8934 hardcode_minus_L=no 8935 hardcode_shlibpath_var=unsupported 8936 inherit_rpath=no 8937 link_all_deplibs=unknown 8938 module_cmds= 8939 module_expsym_cmds= 8940 old_archive_from_new_cmds= 8941 old_archive_from_expsyms_cmds= 8942 thread_safe_flag_spec= 8943 whole_archive_flag_spec= 8944 # include_expsyms should be a list of space-separated symbols to be *always* 8945 # included in the symbol list 8946 include_expsyms= 8947 # exclude_expsyms can be an extended regexp of symbols to exclude 8948 # it will be wrapped by ' (' and ')$', so one must not match beginning or 8949 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 8950 # as well as any symbol that contains 'd'. 8951 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8952 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8953 # platforms (ab)use it in PIC code, but their linkers get confused if 8954 # the symbol is explicitly referenced. Since portable code cannot 8955 # rely on this symbol name, it's probably fine to never include it in 8956 # preloaded symbol tables. 8957 # Exclude shared library initialization/finalization symbols. 8958 extract_expsyms_cmds= 8959 8960 case $host_os in 8961 cygwin* | mingw* | pw32* | cegcc*) 8962 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8963 # When not using gcc, we currently assume that we are using 8964 # Microsoft Visual C++. 8965 if test yes != "$GCC"; then 8966 with_gnu_ld=no 8967 fi 8968 ;; 8969 interix*) 8970 # we just hope/assume this is gcc and not c89 (= MSVC++) 8971 with_gnu_ld=yes 8972 ;; 8973 openbsd* | bitrig*) 8974 with_gnu_ld=no 8975 ;; 8976 linux* | k*bsd*-gnu | gnu*) 8977 link_all_deplibs=no 8978 ;; 8979 esac 8980 8981 ld_shlibs=yes 8982 8983 # On some targets, GNU ld is compatible enough with the native linker 8984 # that we're better off using the native interface for both. 8985 lt_use_gnu_ld_interface=no 8986 if test yes = "$with_gnu_ld"; then 8987 case $host_os in 8988 aix*) 8989 # The AIX port of GNU ld has always aspired to compatibility 8990 # with the native linker. However, as the warning in the GNU ld 8991 # block says, versions before 2.19.5* couldn't really create working 8992 # shared libraries, regardless of the interface used. 8993 case `$LD -v 2>&1` in 8994 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8995 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8996 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8997 *) 8998 lt_use_gnu_ld_interface=yes 8999 ;; 9000 esac 9001 ;; 9002 *) 9003 lt_use_gnu_ld_interface=yes 9004 ;; 9005 esac 9006 fi 9007 9008 if test yes = "$lt_use_gnu_ld_interface"; then 9009 # If archive_cmds runs LD, not CC, wlarc should be empty 9010 wlarc='$wl' 9011 9012 # Set some defaults for GNU ld with shared library support. These 9013 # are reset later if shared libraries are not supported. Putting them 9014 # here allows them to be overridden if necessary. 9015 runpath_var=LD_RUN_PATH 9016 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9017 export_dynamic_flag_spec='$wl--export-dynamic' 9018 # ancient GNU ld didn't support --whole-archive et. al. 9019 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9020 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9021 else 9022 whole_archive_flag_spec= 9023 fi 9024 supports_anon_versioning=no 9025 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9026 *GNU\ gold*) supports_anon_versioning=yes ;; 9027 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9028 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9029 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9030 *\ 2.11.*) ;; # other 2.11 versions 9031 *) supports_anon_versioning=yes ;; 9032 esac 9033 9034 # See if GNU ld supports shared libraries. 9035 case $host_os in 9036 aix[3-9]*) 9037 # On AIX/PPC, the GNU linker is very broken 9038 if test ia64 != "$host_cpu"; then 9039 ld_shlibs=no 9040 cat <<_LT_EOF 1>&2 9041 9042*** Warning: the GNU linker, at least up to release 2.19, is reported 9043*** to be unable to reliably create shared libraries on AIX. 9044*** Therefore, libtool is disabling shared libraries support. If you 9045*** really care for shared libraries, you may want to install binutils 9046*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9047*** You will then need to restart the configuration process. 9048 9049_LT_EOF 9050 fi 9051 ;; 9052 9053 amigaos*) 9054 case $host_cpu in 9055 powerpc) 9056 # see comment about AmigaOS4 .so support 9057 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9058 archive_expsym_cmds='' 9059 ;; 9060 m68k) 9061 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)' 9062 hardcode_libdir_flag_spec='-L$libdir' 9063 hardcode_minus_L=yes 9064 ;; 9065 esac 9066 ;; 9067 9068 beos*) 9069 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9070 allow_undefined_flag=unsupported 9071 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9072 # support --undefined. This deserves some investigation. FIXME 9073 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9074 else 9075 ld_shlibs=no 9076 fi 9077 ;; 9078 9079 cygwin* | mingw* | pw32* | cegcc*) 9080 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9081 # as there is no search path for DLLs. 9082 hardcode_libdir_flag_spec='-L$libdir' 9083 export_dynamic_flag_spec='$wl--export-all-symbols' 9084 allow_undefined_flag=unsupported 9085 always_export_symbols=no 9086 enable_shared_with_static_runtimes=yes 9087 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' 9088 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9089 9090 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9091 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9092 # If the export-symbols file already is a .def file, use it as 9093 # is; otherwise, prepend EXPORTS... 9094 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9095 cp $export_symbols $output_objdir/$soname.def; 9096 else 9097 echo EXPORTS > $output_objdir/$soname.def; 9098 cat $export_symbols >> $output_objdir/$soname.def; 9099 fi~ 9100 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9101 else 9102 ld_shlibs=no 9103 fi 9104 ;; 9105 9106 haiku*) 9107 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9108 link_all_deplibs=yes 9109 ;; 9110 9111 os2*) 9112 hardcode_libdir_flag_spec='-L$libdir' 9113 hardcode_minus_L=yes 9114 allow_undefined_flag=unsupported 9115 shrext_cmds=.dll 9116 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9117 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9118 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9119 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9120 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9121 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9122 emximp -o $lib $output_objdir/$libname.def' 9123 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9124 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9125 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9126 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9127 prefix_cmds="$SED"~ 9128 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9129 prefix_cmds="$prefix_cmds -e 1d"; 9130 fi~ 9131 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9132 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9133 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9134 emximp -o $lib $output_objdir/$libname.def' 9135 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9136 enable_shared_with_static_runtimes=yes 9137 ;; 9138 9139 interix[3-9]*) 9140 hardcode_direct=no 9141 hardcode_shlibpath_var=no 9142 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9143 export_dynamic_flag_spec='$wl-E' 9144 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9145 # Instead, shared libraries are loaded at an image base (0x10000000 by 9146 # default) and relocated if they conflict, which is a slow very memory 9147 # consuming and fragmenting process. To avoid this, we pick a random, 9148 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9149 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9150 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9151 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' 9152 ;; 9153 9154 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9155 tmp_diet=no 9156 if test linux-dietlibc = "$host_os"; then 9157 case $cc_basename in 9158 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9159 esac 9160 fi 9161 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9162 && test no = "$tmp_diet" 9163 then 9164 tmp_addflag=' $pic_flag' 9165 tmp_sharedflag='-shared' 9166 case $cc_basename,$host_cpu in 9167 pgcc*) # Portland Group C compiler 9168 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' 9169 tmp_addflag=' $pic_flag' 9170 ;; 9171 pgf77* | pgf90* | pgf95* | pgfortran*) 9172 # Portland Group f77 and f90 compilers 9173 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' 9174 tmp_addflag=' $pic_flag -Mnomain' ;; 9175 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9176 tmp_addflag=' -i_dynamic' ;; 9177 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9178 tmp_addflag=' -i_dynamic -nofor_main' ;; 9179 ifc* | ifort*) # Intel Fortran compiler 9180 tmp_addflag=' -nofor_main' ;; 9181 lf95*) # Lahey Fortran 8.1 9182 whole_archive_flag_spec= 9183 tmp_sharedflag='--shared' ;; 9184 nagfor*) # NAGFOR 5.3 9185 tmp_sharedflag='-Wl,-shared' ;; 9186 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9187 tmp_sharedflag='-qmkshrobj' 9188 tmp_addflag= ;; 9189 nvcc*) # Cuda Compiler Driver 2.2 9190 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' 9191 compiler_needs_object=yes 9192 ;; 9193 esac 9194 case `$CC -V 2>&1 | sed 5q` in 9195 *Sun\ C*) # Sun C 5.9 9196 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' 9197 compiler_needs_object=yes 9198 tmp_sharedflag='-G' ;; 9199 *Sun\ F*) # Sun Fortran 8.3 9200 tmp_sharedflag='-G' ;; 9201 esac 9202 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9203 9204 if test yes = "$supports_anon_versioning"; then 9205 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9206 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9207 echo "local: *; };" >> $output_objdir/$libname.ver~ 9208 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9209 fi 9210 9211 case $cc_basename in 9212 tcc*) 9213 export_dynamic_flag_spec='-rdynamic' 9214 ;; 9215 xlf* | bgf* | bgxlf* | mpixlf*) 9216 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9217 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9218 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9219 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9220 if test yes = "$supports_anon_versioning"; then 9221 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9222 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9223 echo "local: *; };" >> $output_objdir/$libname.ver~ 9224 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9225 fi 9226 ;; 9227 esac 9228 else 9229 ld_shlibs=no 9230 fi 9231 ;; 9232 9233 netbsd* | netbsdelf*-gnu) 9234 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9235 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9236 wlarc= 9237 else 9238 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9239 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9240 fi 9241 ;; 9242 9243 solaris*) 9244 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9245 ld_shlibs=no 9246 cat <<_LT_EOF 1>&2 9247 9248*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9249*** create shared libraries on Solaris systems. Therefore, libtool 9250*** is disabling shared libraries support. We urge you to upgrade GNU 9251*** binutils to release 2.9.1 or newer. Another option is to modify 9252*** your PATH or compiler configuration so that the native linker is 9253*** used, and then restart. 9254 9255_LT_EOF 9256 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9257 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9258 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9259 else 9260 ld_shlibs=no 9261 fi 9262 ;; 9263 9264 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9265 case `$LD -v 2>&1` in 9266 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9267 ld_shlibs=no 9268 cat <<_LT_EOF 1>&2 9269 9270*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9271*** reliably create shared libraries on SCO systems. Therefore, libtool 9272*** is disabling shared libraries support. We urge you to upgrade GNU 9273*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9274*** your PATH or compiler configuration so that the native linker is 9275*** used, and then restart. 9276 9277_LT_EOF 9278 ;; 9279 *) 9280 # For security reasons, it is highly recommended that you always 9281 # use absolute paths for naming shared libraries, and exclude the 9282 # DT_RUNPATH tag from executables and libraries. But doing so 9283 # requires that you compile everything twice, which is a pain. 9284 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9285 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9286 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9287 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9288 else 9289 ld_shlibs=no 9290 fi 9291 ;; 9292 esac 9293 ;; 9294 9295 sunos4*) 9296 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9297 wlarc= 9298 hardcode_direct=yes 9299 hardcode_shlibpath_var=no 9300 ;; 9301 9302 *) 9303 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9304 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9305 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9306 else 9307 ld_shlibs=no 9308 fi 9309 ;; 9310 esac 9311 9312 if test no = "$ld_shlibs"; then 9313 runpath_var= 9314 hardcode_libdir_flag_spec= 9315 export_dynamic_flag_spec= 9316 whole_archive_flag_spec= 9317 fi 9318 else 9319 # PORTME fill in a description of your system's linker (not GNU ld) 9320 case $host_os in 9321 aix3*) 9322 allow_undefined_flag=unsupported 9323 always_export_symbols=yes 9324 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' 9325 # Note: this linker hardcodes the directories in LIBPATH if there 9326 # are no directories specified by -L. 9327 hardcode_minus_L=yes 9328 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9329 # Neither direct hardcoding nor static linking is supported with a 9330 # broken collect2. 9331 hardcode_direct=unsupported 9332 fi 9333 ;; 9334 9335 aix[4-9]*) 9336 if test ia64 = "$host_cpu"; then 9337 # On IA64, the linker does run time linking by default, so we don't 9338 # have to do anything special. 9339 aix_use_runtimelinking=no 9340 exp_sym_flag='-Bexport' 9341 no_entry_flag= 9342 else 9343 # If we're using GNU nm, then we don't want the "-C" option. 9344 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9345 # Without the "-l" option, or with the "-B" option, AIX nm treats 9346 # weak defined symbols like other global defined symbols, whereas 9347 # GNU nm marks them as "W". 9348 # While the 'weak' keyword is ignored in the Export File, we need 9349 # it in the Import File for the 'aix-soname' feature, so we have 9350 # to replace the "-B" option with "-P" for AIX nm. 9351 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9352 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' 9353 else 9354 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' 9355 fi 9356 aix_use_runtimelinking=no 9357 9358 # Test if we are trying to use run time linking or normal 9359 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9360 # have runtime linking enabled, and use it for executables. 9361 # For shared libraries, we enable/disable runtime linking 9362 # depending on the kind of the shared library created - 9363 # when "with_aix_soname,aix_use_runtimelinking" is: 9364 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9365 # "aix,yes" lib.so shared, rtl:yes, for executables 9366 # lib.a static archive 9367 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9368 # lib.a(lib.so.V) shared, rtl:no, for executables 9369 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9370 # lib.a(lib.so.V) shared, rtl:no 9371 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9372 # lib.a static archive 9373 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9374 for ld_flag in $LDFLAGS; do 9375 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9376 aix_use_runtimelinking=yes 9377 break 9378 fi 9379 done 9380 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9381 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9382 # so we don't have lib.a shared libs to link our executables. 9383 # We have to force runtime linking in this case. 9384 aix_use_runtimelinking=yes 9385 LDFLAGS="$LDFLAGS -Wl,-brtl" 9386 fi 9387 ;; 9388 esac 9389 9390 exp_sym_flag='-bexport' 9391 no_entry_flag='-bnoentry' 9392 fi 9393 9394 # When large executables or shared objects are built, AIX ld can 9395 # have problems creating the table of contents. If linking a library 9396 # or program results in "error TOC overflow" add -mminimal-toc to 9397 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9398 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9399 9400 archive_cmds='' 9401 hardcode_direct=yes 9402 hardcode_direct_absolute=yes 9403 hardcode_libdir_separator=':' 9404 link_all_deplibs=yes 9405 file_list_spec='$wl-f,' 9406 case $with_aix_soname,$aix_use_runtimelinking in 9407 aix,*) ;; # traditional, no import file 9408 svr4,* | *,yes) # use import file 9409 # The Import File defines what to hardcode. 9410 hardcode_direct=no 9411 hardcode_direct_absolute=no 9412 ;; 9413 esac 9414 9415 if test yes = "$GCC"; then 9416 case $host_os in aix4.[012]|aix4.[012].*) 9417 # We only want to do this on AIX 4.2 and lower, the check 9418 # below for broken collect2 doesn't work under 4.3+ 9419 collect2name=`$CC -print-prog-name=collect2` 9420 if test -f "$collect2name" && 9421 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9422 then 9423 # We have reworked collect2 9424 : 9425 else 9426 # We have old collect2 9427 hardcode_direct=unsupported 9428 # It fails to find uninstalled libraries when the uninstalled 9429 # path is not listed in the libpath. Setting hardcode_minus_L 9430 # to unsupported forces relinking 9431 hardcode_minus_L=yes 9432 hardcode_libdir_flag_spec='-L$libdir' 9433 hardcode_libdir_separator= 9434 fi 9435 ;; 9436 esac 9437 shared_flag='-shared' 9438 if test yes = "$aix_use_runtimelinking"; then 9439 shared_flag="$shared_flag "'$wl-G' 9440 fi 9441 # Need to ensure runtime linking is disabled for the traditional 9442 # shared library, or the linker may eventually find shared libraries 9443 # /with/ Import File - we do not want to mix them. 9444 shared_flag_aix='-shared' 9445 shared_flag_svr4='-shared $wl-G' 9446 else 9447 # not using gcc 9448 if test ia64 = "$host_cpu"; then 9449 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9450 # chokes on -Wl,-G. The following line is correct: 9451 shared_flag='-G' 9452 else 9453 if test yes = "$aix_use_runtimelinking"; then 9454 shared_flag='$wl-G' 9455 else 9456 shared_flag='$wl-bM:SRE' 9457 fi 9458 shared_flag_aix='$wl-bM:SRE' 9459 shared_flag_svr4='$wl-G' 9460 fi 9461 fi 9462 9463 export_dynamic_flag_spec='$wl-bexpall' 9464 # It seems that -bexpall does not export symbols beginning with 9465 # underscore (_), so it is better to generate a list of symbols to export. 9466 always_export_symbols=yes 9467 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9468 # Warning - without using the other runtime loading flags (-brtl), 9469 # -berok will link without error, but may produce a broken library. 9470 allow_undefined_flag='-berok' 9471 # Determine the default libpath from the value encoded in an 9472 # empty executable. 9473 if test set = "${lt_cv_aix_libpath+set}"; then 9474 aix_libpath=$lt_cv_aix_libpath 9475else 9476 if ${lt_cv_aix_libpath_+:} false; then : 9477 $as_echo_n "(cached) " >&6 9478else 9479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9480/* end confdefs.h. */ 9481 9482int 9483main () 9484{ 9485 9486 ; 9487 return 0; 9488} 9489_ACEOF 9490if ac_fn_c_try_link "$LINENO"; then : 9491 9492 lt_aix_libpath_sed=' 9493 /Import File Strings/,/^$/ { 9494 /^0/ { 9495 s/^0 *\([^ ]*\) *$/\1/ 9496 p 9497 } 9498 }' 9499 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9500 # Check for a 64-bit object if we didn't find anything. 9501 if test -z "$lt_cv_aix_libpath_"; then 9502 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9503 fi 9504fi 9505rm -f core conftest.err conftest.$ac_objext \ 9506 conftest$ac_exeext conftest.$ac_ext 9507 if test -z "$lt_cv_aix_libpath_"; then 9508 lt_cv_aix_libpath_=/usr/lib:/lib 9509 fi 9510 9511fi 9512 9513 aix_libpath=$lt_cv_aix_libpath_ 9514fi 9515 9516 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9517 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 9518 else 9519 if test ia64 = "$host_cpu"; then 9520 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9521 allow_undefined_flag="-z nodefs" 9522 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" 9523 else 9524 # Determine the default libpath from the value encoded in an 9525 # empty executable. 9526 if test set = "${lt_cv_aix_libpath+set}"; then 9527 aix_libpath=$lt_cv_aix_libpath 9528else 9529 if ${lt_cv_aix_libpath_+:} false; then : 9530 $as_echo_n "(cached) " >&6 9531else 9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9533/* end confdefs.h. */ 9534 9535int 9536main () 9537{ 9538 9539 ; 9540 return 0; 9541} 9542_ACEOF 9543if ac_fn_c_try_link "$LINENO"; then : 9544 9545 lt_aix_libpath_sed=' 9546 /Import File Strings/,/^$/ { 9547 /^0/ { 9548 s/^0 *\([^ ]*\) *$/\1/ 9549 p 9550 } 9551 }' 9552 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9553 # Check for a 64-bit object if we didn't find anything. 9554 if test -z "$lt_cv_aix_libpath_"; then 9555 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9556 fi 9557fi 9558rm -f core conftest.err conftest.$ac_objext \ 9559 conftest$ac_exeext conftest.$ac_ext 9560 if test -z "$lt_cv_aix_libpath_"; then 9561 lt_cv_aix_libpath_=/usr/lib:/lib 9562 fi 9563 9564fi 9565 9566 aix_libpath=$lt_cv_aix_libpath_ 9567fi 9568 9569 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9570 # Warning - without using the other run time loading flags, 9571 # -berok will link without error, but may produce a broken library. 9572 no_undefined_flag=' $wl-bernotok' 9573 allow_undefined_flag=' $wl-berok' 9574 if test yes = "$with_gnu_ld"; then 9575 # We only use this code for GNU lds that support --whole-archive. 9576 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9577 else 9578 # Exported symbols can be pulled into shared objects from archives 9579 whole_archive_flag_spec='$convenience' 9580 fi 9581 archive_cmds_need_lc=yes 9582 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9583 # -brtl affects multiple linker settings, -berok does not and is overridden later 9584 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9585 if test svr4 != "$with_aix_soname"; then 9586 # This is similar to how AIX traditionally builds its shared libraries. 9587 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' 9588 fi 9589 if test aix != "$with_aix_soname"; then 9590 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' 9591 else 9592 # used by -dlpreopen to get the symbols 9593 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9594 fi 9595 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9596 fi 9597 fi 9598 ;; 9599 9600 amigaos*) 9601 case $host_cpu in 9602 powerpc) 9603 # see comment about AmigaOS4 .so support 9604 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9605 archive_expsym_cmds='' 9606 ;; 9607 m68k) 9608 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)' 9609 hardcode_libdir_flag_spec='-L$libdir' 9610 hardcode_minus_L=yes 9611 ;; 9612 esac 9613 ;; 9614 9615 bsdi[45]*) 9616 export_dynamic_flag_spec=-rdynamic 9617 ;; 9618 9619 cygwin* | mingw* | pw32* | cegcc*) 9620 # When not using gcc, we currently assume that we are using 9621 # Microsoft Visual C++. 9622 # hardcode_libdir_flag_spec is actually meaningless, as there is 9623 # no search path for DLLs. 9624 case $cc_basename in 9625 cl*) 9626 # Native MSVC 9627 hardcode_libdir_flag_spec=' ' 9628 allow_undefined_flag=unsupported 9629 always_export_symbols=yes 9630 file_list_spec='@' 9631 # Tell ltmain to make .lib files, not .a files. 9632 libext=lib 9633 # Tell ltmain to make .dll files, not .so files. 9634 shrext_cmds=.dll 9635 # FIXME: Setting linknames here is a bad hack. 9636 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9637 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9638 cp "$export_symbols" "$output_objdir/$soname.def"; 9639 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9640 else 9641 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9642 fi~ 9643 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9644 linknames=' 9645 # The linker will not automatically build a static lib if we build a DLL. 9646 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9647 enable_shared_with_static_runtimes=yes 9648 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9649 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9650 # Don't use ranlib 9651 old_postinstall_cmds='chmod 644 $oldlib' 9652 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9653 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9654 case $lt_outputfile in 9655 *.exe|*.EXE) ;; 9656 *) 9657 lt_outputfile=$lt_outputfile.exe 9658 lt_tool_outputfile=$lt_tool_outputfile.exe 9659 ;; 9660 esac~ 9661 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9662 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9663 $RM "$lt_outputfile.manifest"; 9664 fi' 9665 ;; 9666 *) 9667 # Assume MSVC wrapper 9668 hardcode_libdir_flag_spec=' ' 9669 allow_undefined_flag=unsupported 9670 # Tell ltmain to make .lib files, not .a files. 9671 libext=lib 9672 # Tell ltmain to make .dll files, not .so files. 9673 shrext_cmds=.dll 9674 # FIXME: Setting linknames here is a bad hack. 9675 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9676 # The linker will automatically build a .lib file if we build a DLL. 9677 old_archive_from_new_cmds='true' 9678 # FIXME: Should let the user specify the lib program. 9679 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9680 enable_shared_with_static_runtimes=yes 9681 ;; 9682 esac 9683 ;; 9684 9685 darwin* | rhapsody*) 9686 9687 9688 archive_cmds_need_lc=no 9689 hardcode_direct=no 9690 hardcode_automatic=yes 9691 hardcode_shlibpath_var=unsupported 9692 if test yes = "$lt_cv_ld_force_load"; then 9693 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\"`' 9694 9695 else 9696 whole_archive_flag_spec='' 9697 fi 9698 link_all_deplibs=yes 9699 allow_undefined_flag=$_lt_dar_allow_undefined 9700 case $cc_basename in 9701 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9702 *) _lt_dar_can_shared=$GCC ;; 9703 esac 9704 if test yes = "$_lt_dar_can_shared"; then 9705 output_verbose_link_cmd=func_echo_all 9706 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9707 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9708 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" 9709 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" 9710 9711 else 9712 ld_shlibs=no 9713 fi 9714 9715 ;; 9716 9717 dgux*) 9718 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9719 hardcode_libdir_flag_spec='-L$libdir' 9720 hardcode_shlibpath_var=no 9721 ;; 9722 9723 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9724 # support. Future versions do this automatically, but an explicit c++rt0.o 9725 # does not break anything, and helps significantly (at the cost of a little 9726 # extra space). 9727 freebsd2.2*) 9728 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9729 hardcode_libdir_flag_spec='-R$libdir' 9730 hardcode_direct=yes 9731 hardcode_shlibpath_var=no 9732 ;; 9733 9734 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9735 freebsd2.*) 9736 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9737 hardcode_direct=yes 9738 hardcode_minus_L=yes 9739 hardcode_shlibpath_var=no 9740 ;; 9741 9742 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9743 freebsd* | dragonfly*) 9744 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9745 hardcode_libdir_flag_spec='-R$libdir' 9746 hardcode_direct=yes 9747 hardcode_shlibpath_var=no 9748 ;; 9749 9750 hpux9*) 9751 if test yes = "$GCC"; then 9752 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' 9753 else 9754 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' 9755 fi 9756 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9757 hardcode_libdir_separator=: 9758 hardcode_direct=yes 9759 9760 # hardcode_minus_L: Not really in the search PATH, 9761 # but as the default location of the library. 9762 hardcode_minus_L=yes 9763 export_dynamic_flag_spec='$wl-E' 9764 ;; 9765 9766 hpux10*) 9767 if test yes,no = "$GCC,$with_gnu_ld"; then 9768 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9769 else 9770 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9771 fi 9772 if test no = "$with_gnu_ld"; then 9773 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9774 hardcode_libdir_separator=: 9775 hardcode_direct=yes 9776 hardcode_direct_absolute=yes 9777 export_dynamic_flag_spec='$wl-E' 9778 # hardcode_minus_L: Not really in the search PATH, 9779 # but as the default location of the library. 9780 hardcode_minus_L=yes 9781 fi 9782 ;; 9783 9784 hpux11*) 9785 if test yes,no = "$GCC,$with_gnu_ld"; then 9786 case $host_cpu in 9787 hppa*64*) 9788 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9789 ;; 9790 ia64*) 9791 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9792 ;; 9793 *) 9794 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9795 ;; 9796 esac 9797 else 9798 case $host_cpu in 9799 hppa*64*) 9800 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9801 ;; 9802 ia64*) 9803 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9804 ;; 9805 *) 9806 9807 # Older versions of the 11.00 compiler do not understand -b yet 9808 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9810$as_echo_n "checking if $CC understands -b... " >&6; } 9811if ${lt_cv_prog_compiler__b+:} false; then : 9812 $as_echo_n "(cached) " >&6 9813else 9814 lt_cv_prog_compiler__b=no 9815 save_LDFLAGS=$LDFLAGS 9816 LDFLAGS="$LDFLAGS -b" 9817 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9818 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9819 # The linker can only warn and ignore the option if not recognized 9820 # So say no if there are warnings 9821 if test -s conftest.err; then 9822 # Append any errors to the config.log. 9823 cat conftest.err 1>&5 9824 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9825 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9826 if diff conftest.exp conftest.er2 >/dev/null; then 9827 lt_cv_prog_compiler__b=yes 9828 fi 9829 else 9830 lt_cv_prog_compiler__b=yes 9831 fi 9832 fi 9833 $RM -r conftest* 9834 LDFLAGS=$save_LDFLAGS 9835 9836fi 9837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9838$as_echo "$lt_cv_prog_compiler__b" >&6; } 9839 9840if test yes = "$lt_cv_prog_compiler__b"; then 9841 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9842else 9843 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9844fi 9845 9846 ;; 9847 esac 9848 fi 9849 if test no = "$with_gnu_ld"; then 9850 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9851 hardcode_libdir_separator=: 9852 9853 case $host_cpu in 9854 hppa*64*|ia64*) 9855 hardcode_direct=no 9856 hardcode_shlibpath_var=no 9857 ;; 9858 *) 9859 hardcode_direct=yes 9860 hardcode_direct_absolute=yes 9861 export_dynamic_flag_spec='$wl-E' 9862 9863 # hardcode_minus_L: Not really in the search PATH, 9864 # but as the default location of the library. 9865 hardcode_minus_L=yes 9866 ;; 9867 esac 9868 fi 9869 ;; 9870 9871 irix5* | irix6* | nonstopux*) 9872 if test yes = "$GCC"; then 9873 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' 9874 # Try to use the -exported_symbol ld option, if it does not 9875 # work, assume that -exports_file does not work either and 9876 # implicitly export all symbols. 9877 # This should be the same for all languages, so no per-tag cache variable. 9878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9879$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9880if ${lt_cv_irix_exported_symbol+:} false; then : 9881 $as_echo_n "(cached) " >&6 9882else 9883 save_LDFLAGS=$LDFLAGS 9884 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 9885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9886/* end confdefs.h. */ 9887int foo (void) { return 0; } 9888_ACEOF 9889if ac_fn_c_try_link "$LINENO"; then : 9890 lt_cv_irix_exported_symbol=yes 9891else 9892 lt_cv_irix_exported_symbol=no 9893fi 9894rm -f core conftest.err conftest.$ac_objext \ 9895 conftest$ac_exeext conftest.$ac_ext 9896 LDFLAGS=$save_LDFLAGS 9897fi 9898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9899$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9900 if test yes = "$lt_cv_irix_exported_symbol"; then 9901 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' 9902 fi 9903 link_all_deplibs=no 9904 else 9905 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' 9906 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' 9907 fi 9908 archive_cmds_need_lc='no' 9909 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9910 hardcode_libdir_separator=: 9911 inherit_rpath=yes 9912 link_all_deplibs=yes 9913 ;; 9914 9915 linux*) 9916 case $cc_basename in 9917 tcc*) 9918 # Fabrice Bellard et al's Tiny C Compiler 9919 ld_shlibs=yes 9920 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9921 ;; 9922 esac 9923 ;; 9924 9925 netbsd* | netbsdelf*-gnu) 9926 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9927 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9928 else 9929 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9930 fi 9931 hardcode_libdir_flag_spec='-R$libdir' 9932 hardcode_direct=yes 9933 hardcode_shlibpath_var=no 9934 ;; 9935 9936 newsos6) 9937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9938 hardcode_direct=yes 9939 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9940 hardcode_libdir_separator=: 9941 hardcode_shlibpath_var=no 9942 ;; 9943 9944 *nto* | *qnx*) 9945 ;; 9946 9947 openbsd* | bitrig*) 9948 if test -f /usr/libexec/ld.so; then 9949 hardcode_direct=yes 9950 hardcode_shlibpath_var=no 9951 hardcode_direct_absolute=yes 9952 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 9953 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9954 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 9955 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9956 export_dynamic_flag_spec='$wl-E' 9957 else 9958 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9959 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9960 fi 9961 else 9962 ld_shlibs=no 9963 fi 9964 ;; 9965 9966 os2*) 9967 hardcode_libdir_flag_spec='-L$libdir' 9968 hardcode_minus_L=yes 9969 allow_undefined_flag=unsupported 9970 shrext_cmds=.dll 9971 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9972 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9973 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9974 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9975 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9976 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9977 emximp -o $lib $output_objdir/$libname.def' 9978 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9979 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9980 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9981 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9982 prefix_cmds="$SED"~ 9983 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9984 prefix_cmds="$prefix_cmds -e 1d"; 9985 fi~ 9986 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9987 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9988 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9989 emximp -o $lib $output_objdir/$libname.def' 9990 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9991 enable_shared_with_static_runtimes=yes 9992 ;; 9993 9994 osf3*) 9995 if test yes = "$GCC"; then 9996 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 9997 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' 9998 else 9999 allow_undefined_flag=' -expect_unresolved \*' 10000 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' 10001 fi 10002 archive_cmds_need_lc='no' 10003 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10004 hardcode_libdir_separator=: 10005 ;; 10006 10007 osf4* | osf5*) # as osf3* with the addition of -msym flag 10008 if test yes = "$GCC"; then 10009 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10010 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' 10011 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10012 else 10013 allow_undefined_flag=' -expect_unresolved \*' 10014 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' 10015 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~ 10016 $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' 10017 10018 # Both c and cxx compiler support -rpath directly 10019 hardcode_libdir_flag_spec='-rpath $libdir' 10020 fi 10021 archive_cmds_need_lc='no' 10022 hardcode_libdir_separator=: 10023 ;; 10024 10025 solaris*) 10026 no_undefined_flag=' -z defs' 10027 if test yes = "$GCC"; then 10028 wlarc='$wl' 10029 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10030 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10031 $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' 10032 else 10033 case `$CC -V 2>&1` in 10034 *"Compilers 5.0"*) 10035 wlarc='' 10036 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10037 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10038 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10039 ;; 10040 *) 10041 wlarc='$wl' 10042 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10043 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10044 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10045 ;; 10046 esac 10047 fi 10048 hardcode_libdir_flag_spec='-R$libdir' 10049 hardcode_shlibpath_var=no 10050 case $host_os in 10051 solaris2.[0-5] | solaris2.[0-5].*) ;; 10052 *) 10053 # The compiler driver will combine and reorder linker options, 10054 # but understands '-z linker_flag'. GCC discards it without '$wl', 10055 # but is careful enough not to reorder. 10056 # Supported since Solaris 2.6 (maybe 2.5.1?) 10057 if test yes = "$GCC"; then 10058 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10059 else 10060 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10061 fi 10062 ;; 10063 esac 10064 link_all_deplibs=yes 10065 ;; 10066 10067 sunos4*) 10068 if test sequent = "$host_vendor"; then 10069 # Use $CC to link under sequent, because it throws in some extra .o 10070 # files that make .init and .fini sections work. 10071 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10072 else 10073 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10074 fi 10075 hardcode_libdir_flag_spec='-L$libdir' 10076 hardcode_direct=yes 10077 hardcode_minus_L=yes 10078 hardcode_shlibpath_var=no 10079 ;; 10080 10081 sysv4) 10082 case $host_vendor in 10083 sni) 10084 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10085 hardcode_direct=yes # is this really true??? 10086 ;; 10087 siemens) 10088 ## LD is ld it makes a PLAMLIB 10089 ## CC just makes a GrossModule. 10090 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10091 reload_cmds='$CC -r -o $output$reload_objs' 10092 hardcode_direct=no 10093 ;; 10094 motorola) 10095 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10096 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10097 ;; 10098 esac 10099 runpath_var='LD_RUN_PATH' 10100 hardcode_shlibpath_var=no 10101 ;; 10102 10103 sysv4.3*) 10104 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10105 hardcode_shlibpath_var=no 10106 export_dynamic_flag_spec='-Bexport' 10107 ;; 10108 10109 sysv4*MP*) 10110 if test -d /usr/nec; then 10111 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10112 hardcode_shlibpath_var=no 10113 runpath_var=LD_RUN_PATH 10114 hardcode_runpath_var=yes 10115 ld_shlibs=yes 10116 fi 10117 ;; 10118 10119 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10120 no_undefined_flag='$wl-z,text' 10121 archive_cmds_need_lc=no 10122 hardcode_shlibpath_var=no 10123 runpath_var='LD_RUN_PATH' 10124 10125 if test yes = "$GCC"; then 10126 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10127 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10128 else 10129 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10130 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10131 fi 10132 ;; 10133 10134 sysv5* | sco3.2v5* | sco5v6*) 10135 # Note: We CANNOT use -z defs as we might desire, because we do not 10136 # link with -lc, and that would cause any symbols used from libc to 10137 # always be unresolved, which means just about no library would 10138 # ever link correctly. If we're not using GNU ld we use -z text 10139 # though, which does catch some bad symbols but isn't as heavy-handed 10140 # as -z defs. 10141 no_undefined_flag='$wl-z,text' 10142 allow_undefined_flag='$wl-z,nodefs' 10143 archive_cmds_need_lc=no 10144 hardcode_shlibpath_var=no 10145 hardcode_libdir_flag_spec='$wl-R,$libdir' 10146 hardcode_libdir_separator=':' 10147 link_all_deplibs=yes 10148 export_dynamic_flag_spec='$wl-Bexport' 10149 runpath_var='LD_RUN_PATH' 10150 10151 if test yes = "$GCC"; then 10152 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10153 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10154 else 10155 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10156 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10157 fi 10158 ;; 10159 10160 uts4*) 10161 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10162 hardcode_libdir_flag_spec='-L$libdir' 10163 hardcode_shlibpath_var=no 10164 ;; 10165 10166 *) 10167 ld_shlibs=no 10168 ;; 10169 esac 10170 10171 if test sni = "$host_vendor"; then 10172 case $host in 10173 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10174 export_dynamic_flag_spec='$wl-Blargedynsym' 10175 ;; 10176 esac 10177 fi 10178 fi 10179 10180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10181$as_echo "$ld_shlibs" >&6; } 10182test no = "$ld_shlibs" && can_build_shared=no 10183 10184with_gnu_ld=$with_gnu_ld 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200# 10201# Do we need to explicitly link libc? 10202# 10203case "x$archive_cmds_need_lc" in 10204x|xyes) 10205 # Assume -lc should be added 10206 archive_cmds_need_lc=yes 10207 10208 if test yes,yes = "$GCC,$enable_shared"; then 10209 case $archive_cmds in 10210 *'~'*) 10211 # FIXME: we may have to deal with multi-command sequences. 10212 ;; 10213 '$CC '*) 10214 # Test whether the compiler implicitly links with -lc since on some 10215 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10216 # to ld, don't add -lc before -lgcc. 10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10218$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10219if ${lt_cv_archive_cmds_need_lc+:} false; then : 10220 $as_echo_n "(cached) " >&6 10221else 10222 $RM conftest* 10223 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10224 10225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10226 (eval $ac_compile) 2>&5 10227 ac_status=$? 10228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10229 test $ac_status = 0; } 2>conftest.err; then 10230 soname=conftest 10231 lib=conftest 10232 libobjs=conftest.$ac_objext 10233 deplibs= 10234 wl=$lt_prog_compiler_wl 10235 pic_flag=$lt_prog_compiler_pic 10236 compiler_flags=-v 10237 linker_flags=-v 10238 verstring= 10239 output_objdir=. 10240 libname=conftest 10241 lt_save_allow_undefined_flag=$allow_undefined_flag 10242 allow_undefined_flag= 10243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10244 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10245 ac_status=$? 10246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10247 test $ac_status = 0; } 10248 then 10249 lt_cv_archive_cmds_need_lc=no 10250 else 10251 lt_cv_archive_cmds_need_lc=yes 10252 fi 10253 allow_undefined_flag=$lt_save_allow_undefined_flag 10254 else 10255 cat conftest.err 1>&5 10256 fi 10257 $RM conftest* 10258 10259fi 10260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10261$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10262 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10263 ;; 10264 esac 10265 fi 10266 ;; 10267esac 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10421$as_echo_n "checking dynamic linker characteristics... " >&6; } 10422 10423if test yes = "$GCC"; then 10424 case $host_os in 10425 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10426 *) lt_awk_arg='/^libraries:/' ;; 10427 esac 10428 case $host_os in 10429 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10430 *) lt_sed_strip_eq='s|=/|/|g' ;; 10431 esac 10432 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10433 case $lt_search_path_spec in 10434 *\;*) 10435 # if the path contains ";" then we assume it to be the separator 10436 # otherwise default to the standard path separator (i.e. ":") - it is 10437 # assumed that no part of a normal pathname contains ";" but that should 10438 # okay in the real world where ";" in dirpaths is itself problematic. 10439 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10440 ;; 10441 *) 10442 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10443 ;; 10444 esac 10445 # Ok, now we have the path, separated by spaces, we can step through it 10446 # and add multilib dir if necessary... 10447 lt_tmp_lt_search_path_spec= 10448 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10449 # ...but if some path component already ends with the multilib dir we assume 10450 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10451 case "$lt_multi_os_dir; $lt_search_path_spec " in 10452 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10453 lt_multi_os_dir= 10454 ;; 10455 esac 10456 for lt_sys_path in $lt_search_path_spec; do 10457 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10458 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10459 elif test -n "$lt_multi_os_dir"; then 10460 test -d "$lt_sys_path" && \ 10461 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10462 fi 10463 done 10464 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10465BEGIN {RS = " "; FS = "/|\n";} { 10466 lt_foo = ""; 10467 lt_count = 0; 10468 for (lt_i = NF; lt_i > 0; lt_i--) { 10469 if ($lt_i != "" && $lt_i != ".") { 10470 if ($lt_i == "..") { 10471 lt_count++; 10472 } else { 10473 if (lt_count == 0) { 10474 lt_foo = "/" $lt_i lt_foo; 10475 } else { 10476 lt_count--; 10477 } 10478 } 10479 } 10480 } 10481 if (lt_foo != "") { lt_freq[lt_foo]++; } 10482 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10483}'` 10484 # AWK program above erroneously prepends '/' to C:/dos/paths 10485 # for these hosts. 10486 case $host_os in 10487 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10488 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10489 esac 10490 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10491else 10492 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10493fi 10494library_names_spec= 10495libname_spec='lib$name' 10496soname_spec= 10497shrext_cmds=.so 10498postinstall_cmds= 10499postuninstall_cmds= 10500finish_cmds= 10501finish_eval= 10502shlibpath_var= 10503shlibpath_overrides_runpath=unknown 10504version_type=none 10505dynamic_linker="$host_os ld.so" 10506sys_lib_dlsearch_path_spec="/lib /usr/lib" 10507need_lib_prefix=unknown 10508hardcode_into_libs=no 10509 10510# when you set need_version to no, make sure it does not cause -set_version 10511# flags to be left without arguments 10512need_version=unknown 10513 10514 10515 10516case $host_os in 10517aix3*) 10518 version_type=linux # correct to gnu/linux during the next big refactor 10519 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10520 shlibpath_var=LIBPATH 10521 10522 # AIX 3 has no versioning support, so we append a major version to the name. 10523 soname_spec='$libname$release$shared_ext$major' 10524 ;; 10525 10526aix[4-9]*) 10527 version_type=linux # correct to gnu/linux during the next big refactor 10528 need_lib_prefix=no 10529 need_version=no 10530 hardcode_into_libs=yes 10531 if test ia64 = "$host_cpu"; then 10532 # AIX 5 supports IA64 10533 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10534 shlibpath_var=LD_LIBRARY_PATH 10535 else 10536 # With GCC up to 2.95.x, collect2 would create an import file 10537 # for dependence libraries. The import file would start with 10538 # the line '#! .'. This would cause the generated library to 10539 # depend on '.', always an invalid library. This was fixed in 10540 # development snapshots of GCC prior to 3.0. 10541 case $host_os in 10542 aix4 | aix4.[01] | aix4.[01].*) 10543 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10544 echo ' yes ' 10545 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10546 : 10547 else 10548 can_build_shared=no 10549 fi 10550 ;; 10551 esac 10552 # Using Import Files as archive members, it is possible to support 10553 # filename-based versioning of shared library archives on AIX. While 10554 # this would work for both with and without runtime linking, it will 10555 # prevent static linking of such archives. So we do filename-based 10556 # shared library versioning with .so extension only, which is used 10557 # when both runtime linking and shared linking is enabled. 10558 # Unfortunately, runtime linking may impact performance, so we do 10559 # not want this to be the default eventually. Also, we use the 10560 # versioned .so libs for executables only if there is the -brtl 10561 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10562 # To allow for filename-based versioning support, we need to create 10563 # libNAME.so.V as an archive file, containing: 10564 # *) an Import File, referring to the versioned filename of the 10565 # archive as well as the shared archive member, telling the 10566 # bitwidth (32 or 64) of that shared object, and providing the 10567 # list of exported symbols of that shared object, eventually 10568 # decorated with the 'weak' keyword 10569 # *) the shared object with the F_LOADONLY flag set, to really avoid 10570 # it being seen by the linker. 10571 # At run time we better use the real file rather than another symlink, 10572 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10573 10574 case $with_aix_soname,$aix_use_runtimelinking in 10575 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10576 # soname into executable. Probably we can add versioning support to 10577 # collect2, so additional links can be useful in future. 10578 aix,yes) # traditional libtool 10579 dynamic_linker='AIX unversionable lib.so' 10580 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10581 # instead of lib<name>.a to let people know that these are not 10582 # typical AIX shared libraries. 10583 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10584 ;; 10585 aix,no) # traditional AIX only 10586 dynamic_linker='AIX lib.a(lib.so.V)' 10587 # We preserve .a as extension for shared libraries through AIX4.2 10588 # and later when we are not doing run time linking. 10589 library_names_spec='$libname$release.a $libname.a' 10590 soname_spec='$libname$release$shared_ext$major' 10591 ;; 10592 svr4,*) # full svr4 only 10593 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10594 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10595 # We do not specify a path in Import Files, so LIBPATH fires. 10596 shlibpath_overrides_runpath=yes 10597 ;; 10598 *,yes) # both, prefer svr4 10599 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10600 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10601 # unpreferred sharedlib libNAME.a needs extra handling 10602 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"' 10603 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"' 10604 # We do not specify a path in Import Files, so LIBPATH fires. 10605 shlibpath_overrides_runpath=yes 10606 ;; 10607 *,no) # both, prefer aix 10608 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10609 library_names_spec='$libname$release.a $libname.a' 10610 soname_spec='$libname$release$shared_ext$major' 10611 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10612 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)' 10613 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"' 10614 ;; 10615 esac 10616 shlibpath_var=LIBPATH 10617 fi 10618 ;; 10619 10620amigaos*) 10621 case $host_cpu in 10622 powerpc) 10623 # Since July 2007 AmigaOS4 officially supports .so libraries. 10624 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10625 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10626 ;; 10627 m68k) 10628 library_names_spec='$libname.ixlibrary $libname.a' 10629 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10630 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' 10631 ;; 10632 esac 10633 ;; 10634 10635beos*) 10636 library_names_spec='$libname$shared_ext' 10637 dynamic_linker="$host_os ld.so" 10638 shlibpath_var=LIBRARY_PATH 10639 ;; 10640 10641bsdi[45]*) 10642 version_type=linux # correct to gnu/linux during the next big refactor 10643 need_version=no 10644 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10645 soname_spec='$libname$release$shared_ext$major' 10646 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10647 shlibpath_var=LD_LIBRARY_PATH 10648 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10649 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10650 # the default ld.so.conf also contains /usr/contrib/lib and 10651 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10652 # libtool to hard-code these into programs 10653 ;; 10654 10655cygwin* | mingw* | pw32* | cegcc*) 10656 version_type=windows 10657 shrext_cmds=.dll 10658 need_version=no 10659 need_lib_prefix=no 10660 10661 case $GCC,$cc_basename in 10662 yes,*) 10663 # gcc 10664 library_names_spec='$libname.dll.a' 10665 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10666 postinstall_cmds='base_file=`basename \$file`~ 10667 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10668 dldir=$destdir/`dirname \$dlpath`~ 10669 test -d \$dldir || mkdir -p \$dldir~ 10670 $install_prog $dir/$dlname \$dldir/$dlname~ 10671 chmod a+x \$dldir/$dlname~ 10672 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10673 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10674 fi' 10675 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10676 dlpath=$dir/\$dldll~ 10677 $RM \$dlpath' 10678 shlibpath_overrides_runpath=yes 10679 10680 case $host_os in 10681 cygwin*) 10682 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10683 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10684 10685 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10686 ;; 10687 mingw* | cegcc*) 10688 # MinGW DLLs use traditional 'lib' prefix 10689 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10690 ;; 10691 pw32*) 10692 # pw32 DLLs use 'pw' prefix rather than 'lib' 10693 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10694 ;; 10695 esac 10696 dynamic_linker='Win32 ld.exe' 10697 ;; 10698 10699 *,cl*) 10700 # Native MSVC 10701 libname_spec='$name' 10702 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10703 library_names_spec='$libname.dll.lib' 10704 10705 case $build_os in 10706 mingw*) 10707 sys_lib_search_path_spec= 10708 lt_save_ifs=$IFS 10709 IFS=';' 10710 for lt_path in $LIB 10711 do 10712 IFS=$lt_save_ifs 10713 # Let DOS variable expansion print the short 8.3 style file name. 10714 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10715 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10716 done 10717 IFS=$lt_save_ifs 10718 # Convert to MSYS style. 10719 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10720 ;; 10721 cygwin*) 10722 # Convert to unix form, then to dos form, then back to unix form 10723 # but this time dos style (no spaces!) so that the unix form looks 10724 # like /cygdrive/c/PROGRA~1:/cygdr... 10725 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10726 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10727 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10728 ;; 10729 *) 10730 sys_lib_search_path_spec=$LIB 10731 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10732 # It is most probably a Windows format PATH. 10733 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10734 else 10735 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10736 fi 10737 # FIXME: find the short name or the path components, as spaces are 10738 # common. (e.g. "Program Files" -> "PROGRA~1") 10739 ;; 10740 esac 10741 10742 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10743 postinstall_cmds='base_file=`basename \$file`~ 10744 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10745 dldir=$destdir/`dirname \$dlpath`~ 10746 test -d \$dldir || mkdir -p \$dldir~ 10747 $install_prog $dir/$dlname \$dldir/$dlname' 10748 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10749 dlpath=$dir/\$dldll~ 10750 $RM \$dlpath' 10751 shlibpath_overrides_runpath=yes 10752 dynamic_linker='Win32 link.exe' 10753 ;; 10754 10755 *) 10756 # Assume MSVC wrapper 10757 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10758 dynamic_linker='Win32 ld.exe' 10759 ;; 10760 esac 10761 # FIXME: first we should search . and the directory the executable is in 10762 shlibpath_var=PATH 10763 ;; 10764 10765darwin* | rhapsody*) 10766 dynamic_linker="$host_os dyld" 10767 version_type=darwin 10768 need_lib_prefix=no 10769 need_version=no 10770 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10771 soname_spec='$libname$release$major$shared_ext' 10772 shlibpath_overrides_runpath=yes 10773 shlibpath_var=DYLD_LIBRARY_PATH 10774 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10775 10776 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10777 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10778 ;; 10779 10780dgux*) 10781 version_type=linux # correct to gnu/linux during the next big refactor 10782 need_lib_prefix=no 10783 need_version=no 10784 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10785 soname_spec='$libname$release$shared_ext$major' 10786 shlibpath_var=LD_LIBRARY_PATH 10787 ;; 10788 10789freebsd* | dragonfly*) 10790 # DragonFly does not have aout. When/if they implement a new 10791 # versioning mechanism, adjust this. 10792 if test -x /usr/bin/objformat; then 10793 objformat=`/usr/bin/objformat` 10794 else 10795 case $host_os in 10796 freebsd[23].*) objformat=aout ;; 10797 *) objformat=elf ;; 10798 esac 10799 fi 10800 version_type=freebsd-$objformat 10801 case $version_type in 10802 freebsd-elf*) 10803 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10804 soname_spec='$libname$release$shared_ext$major' 10805 need_version=no 10806 need_lib_prefix=no 10807 ;; 10808 freebsd-*) 10809 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10810 need_version=yes 10811 ;; 10812 esac 10813 shlibpath_var=LD_LIBRARY_PATH 10814 case $host_os in 10815 freebsd2.*) 10816 shlibpath_overrides_runpath=yes 10817 ;; 10818 freebsd3.[01]* | freebsdelf3.[01]*) 10819 shlibpath_overrides_runpath=yes 10820 hardcode_into_libs=yes 10821 ;; 10822 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10823 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10824 shlibpath_overrides_runpath=no 10825 hardcode_into_libs=yes 10826 ;; 10827 *) # from 4.6 on, and DragonFly 10828 shlibpath_overrides_runpath=yes 10829 hardcode_into_libs=yes 10830 ;; 10831 esac 10832 ;; 10833 10834haiku*) 10835 version_type=linux # correct to gnu/linux during the next big refactor 10836 need_lib_prefix=no 10837 need_version=no 10838 dynamic_linker="$host_os runtime_loader" 10839 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10840 soname_spec='$libname$release$shared_ext$major' 10841 shlibpath_var=LIBRARY_PATH 10842 shlibpath_overrides_runpath=no 10843 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10844 hardcode_into_libs=yes 10845 ;; 10846 10847hpux9* | hpux10* | hpux11*) 10848 # Give a soname corresponding to the major version so that dld.sl refuses to 10849 # link against other versions. 10850 version_type=sunos 10851 need_lib_prefix=no 10852 need_version=no 10853 case $host_cpu in 10854 ia64*) 10855 shrext_cmds='.so' 10856 hardcode_into_libs=yes 10857 dynamic_linker="$host_os dld.so" 10858 shlibpath_var=LD_LIBRARY_PATH 10859 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10860 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10861 soname_spec='$libname$release$shared_ext$major' 10862 if test 32 = "$HPUX_IA64_MODE"; then 10863 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10864 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 10865 else 10866 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10867 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 10868 fi 10869 ;; 10870 hppa*64*) 10871 shrext_cmds='.sl' 10872 hardcode_into_libs=yes 10873 dynamic_linker="$host_os dld.sl" 10874 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10875 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10876 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10877 soname_spec='$libname$release$shared_ext$major' 10878 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10879 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10880 ;; 10881 *) 10882 shrext_cmds='.sl' 10883 dynamic_linker="$host_os dld.sl" 10884 shlibpath_var=SHLIB_PATH 10885 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10886 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10887 soname_spec='$libname$release$shared_ext$major' 10888 ;; 10889 esac 10890 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10891 postinstall_cmds='chmod 555 $lib' 10892 # or fails outright, so override atomically: 10893 install_override_mode=555 10894 ;; 10895 10896interix[3-9]*) 10897 version_type=linux # correct to gnu/linux during the next big refactor 10898 need_lib_prefix=no 10899 need_version=no 10900 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10901 soname_spec='$libname$release$shared_ext$major' 10902 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10903 shlibpath_var=LD_LIBRARY_PATH 10904 shlibpath_overrides_runpath=no 10905 hardcode_into_libs=yes 10906 ;; 10907 10908irix5* | irix6* | nonstopux*) 10909 case $host_os in 10910 nonstopux*) version_type=nonstopux ;; 10911 *) 10912 if test yes = "$lt_cv_prog_gnu_ld"; then 10913 version_type=linux # correct to gnu/linux during the next big refactor 10914 else 10915 version_type=irix 10916 fi ;; 10917 esac 10918 need_lib_prefix=no 10919 need_version=no 10920 soname_spec='$libname$release$shared_ext$major' 10921 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 10922 case $host_os in 10923 irix5* | nonstopux*) 10924 libsuff= shlibsuff= 10925 ;; 10926 *) 10927 case $LD in # libtool.m4 will add one of these switches to LD 10928 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10929 libsuff= shlibsuff= libmagic=32-bit;; 10930 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10931 libsuff=32 shlibsuff=N32 libmagic=N32;; 10932 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10933 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10934 *) libsuff= shlibsuff= libmagic=never-match;; 10935 esac 10936 ;; 10937 esac 10938 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10939 shlibpath_overrides_runpath=no 10940 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 10941 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 10942 hardcode_into_libs=yes 10943 ;; 10944 10945# No shared lib support for Linux oldld, aout, or coff. 10946linux*oldld* | linux*aout* | linux*coff*) 10947 dynamic_linker=no 10948 ;; 10949 10950linux*android*) 10951 version_type=none # Android doesn't support versioned libraries. 10952 need_lib_prefix=no 10953 need_version=no 10954 library_names_spec='$libname$release$shared_ext' 10955 soname_spec='$libname$release$shared_ext' 10956 finish_cmds= 10957 shlibpath_var=LD_LIBRARY_PATH 10958 shlibpath_overrides_runpath=yes 10959 10960 # This implies no fast_install, which is unacceptable. 10961 # Some rework will be needed to allow for fast_install 10962 # before this can be enabled. 10963 hardcode_into_libs=yes 10964 10965 dynamic_linker='Android linker' 10966 # Don't embed -rpath directories since the linker doesn't support them. 10967 hardcode_libdir_flag_spec='-L$libdir' 10968 ;; 10969 10970# This must be glibc/ELF. 10971linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10972 version_type=linux # correct to gnu/linux during the next big refactor 10973 need_lib_prefix=no 10974 need_version=no 10975 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10976 soname_spec='$libname$release$shared_ext$major' 10977 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10978 shlibpath_var=LD_LIBRARY_PATH 10979 shlibpath_overrides_runpath=no 10980 10981 # Some binutils ld are patched to set DT_RUNPATH 10982 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10983 $as_echo_n "(cached) " >&6 10984else 10985 lt_cv_shlibpath_overrides_runpath=no 10986 save_LDFLAGS=$LDFLAGS 10987 save_libdir=$libdir 10988 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10989 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10991/* end confdefs.h. */ 10992 10993int 10994main () 10995{ 10996 10997 ; 10998 return 0; 10999} 11000_ACEOF 11001if ac_fn_c_try_link "$LINENO"; then : 11002 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11003 lt_cv_shlibpath_overrides_runpath=yes 11004fi 11005fi 11006rm -f core conftest.err conftest.$ac_objext \ 11007 conftest$ac_exeext conftest.$ac_ext 11008 LDFLAGS=$save_LDFLAGS 11009 libdir=$save_libdir 11010 11011fi 11012 11013 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11014 11015 # This implies no fast_install, which is unacceptable. 11016 # Some rework will be needed to allow for fast_install 11017 # before this can be enabled. 11018 hardcode_into_libs=yes 11019 11020 # Ideally, we could use ldconfig to report *all* directores which are 11021 # searched for libraries, however this is still not possible. Aside from not 11022 # being certain /sbin/ldconfig is available, command 11023 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11024 # even though it is searched at run-time. Try to do the best guess by 11025 # appending ld.so.conf contents (and includes) to the search path. 11026 if test -f /etc/ld.so.conf; then 11027 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' ' '` 11028 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11029 fi 11030 11031 # We used to test for /lib/ld.so.1 and disable shared libraries on 11032 # powerpc, because MkLinux only supported shared libraries with the 11033 # GNU dynamic linker. Since this was broken with cross compilers, 11034 # most powerpc-linux boxes support dynamic linking these days and 11035 # people can always --disable-shared, the test was removed, and we 11036 # assume the GNU/Linux dynamic linker is in use. 11037 dynamic_linker='GNU/Linux ld.so' 11038 ;; 11039 11040netbsdelf*-gnu) 11041 version_type=linux 11042 need_lib_prefix=no 11043 need_version=no 11044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11045 soname_spec='${libname}${release}${shared_ext}$major' 11046 shlibpath_var=LD_LIBRARY_PATH 11047 shlibpath_overrides_runpath=no 11048 hardcode_into_libs=yes 11049 dynamic_linker='NetBSD ld.elf_so' 11050 ;; 11051 11052netbsd*) 11053 version_type=sunos 11054 need_lib_prefix=no 11055 need_version=no 11056 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11057 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11059 dynamic_linker='NetBSD (a.out) ld.so' 11060 else 11061 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11062 soname_spec='$libname$release$shared_ext$major' 11063 dynamic_linker='NetBSD ld.elf_so' 11064 fi 11065 shlibpath_var=LD_LIBRARY_PATH 11066 shlibpath_overrides_runpath=yes 11067 hardcode_into_libs=yes 11068 ;; 11069 11070newsos6) 11071 version_type=linux # correct to gnu/linux during the next big refactor 11072 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11073 shlibpath_var=LD_LIBRARY_PATH 11074 shlibpath_overrides_runpath=yes 11075 ;; 11076 11077*nto* | *qnx*) 11078 version_type=qnx 11079 need_lib_prefix=no 11080 need_version=no 11081 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11082 soname_spec='$libname$release$shared_ext$major' 11083 shlibpath_var=LD_LIBRARY_PATH 11084 shlibpath_overrides_runpath=no 11085 hardcode_into_libs=yes 11086 dynamic_linker='ldqnx.so' 11087 ;; 11088 11089openbsd* | bitrig*) 11090 version_type=sunos 11091 sys_lib_dlsearch_path_spec=/usr/lib 11092 need_lib_prefix=no 11093 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11094 need_version=no 11095 else 11096 need_version=yes 11097 fi 11098 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11099 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11100 shlibpath_var=LD_LIBRARY_PATH 11101 shlibpath_overrides_runpath=yes 11102 ;; 11103 11104os2*) 11105 libname_spec='$name' 11106 version_type=windows 11107 shrext_cmds=.dll 11108 need_version=no 11109 need_lib_prefix=no 11110 # OS/2 can only load a DLL with a base name of 8 characters or less. 11111 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11112 v=$($ECHO $release$versuffix | tr -d .-); 11113 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11114 $ECHO $n$v`$shared_ext' 11115 library_names_spec='${libname}_dll.$libext' 11116 dynamic_linker='OS/2 ld.exe' 11117 shlibpath_var=BEGINLIBPATH 11118 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11119 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11120 postinstall_cmds='base_file=`basename \$file`~ 11121 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11122 dldir=$destdir/`dirname \$dlpath`~ 11123 test -d \$dldir || mkdir -p \$dldir~ 11124 $install_prog $dir/$dlname \$dldir/$dlname~ 11125 chmod a+x \$dldir/$dlname~ 11126 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11127 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11128 fi' 11129 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11130 dlpath=$dir/\$dldll~ 11131 $RM \$dlpath' 11132 ;; 11133 11134osf3* | osf4* | osf5*) 11135 version_type=osf 11136 need_lib_prefix=no 11137 need_version=no 11138 soname_spec='$libname$release$shared_ext$major' 11139 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11140 shlibpath_var=LD_LIBRARY_PATH 11141 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11142 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11143 ;; 11144 11145rdos*) 11146 dynamic_linker=no 11147 ;; 11148 11149solaris*) 11150 version_type=linux # correct to gnu/linux during the next big refactor 11151 need_lib_prefix=no 11152 need_version=no 11153 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11154 soname_spec='$libname$release$shared_ext$major' 11155 shlibpath_var=LD_LIBRARY_PATH 11156 shlibpath_overrides_runpath=yes 11157 hardcode_into_libs=yes 11158 # ldd complains unless libraries are executable 11159 postinstall_cmds='chmod +x $lib' 11160 ;; 11161 11162sunos4*) 11163 version_type=sunos 11164 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11165 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11166 shlibpath_var=LD_LIBRARY_PATH 11167 shlibpath_overrides_runpath=yes 11168 if test yes = "$with_gnu_ld"; then 11169 need_lib_prefix=no 11170 fi 11171 need_version=yes 11172 ;; 11173 11174sysv4 | sysv4.3*) 11175 version_type=linux # correct to gnu/linux during the next big refactor 11176 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11177 soname_spec='$libname$release$shared_ext$major' 11178 shlibpath_var=LD_LIBRARY_PATH 11179 case $host_vendor in 11180 sni) 11181 shlibpath_overrides_runpath=no 11182 need_lib_prefix=no 11183 runpath_var=LD_RUN_PATH 11184 ;; 11185 siemens) 11186 need_lib_prefix=no 11187 ;; 11188 motorola) 11189 need_lib_prefix=no 11190 need_version=no 11191 shlibpath_overrides_runpath=no 11192 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11193 ;; 11194 esac 11195 ;; 11196 11197sysv4*MP*) 11198 if test -d /usr/nec; then 11199 version_type=linux # correct to gnu/linux during the next big refactor 11200 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11201 soname_spec='$libname$shared_ext.$major' 11202 shlibpath_var=LD_LIBRARY_PATH 11203 fi 11204 ;; 11205 11206sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11207 version_type=sco 11208 need_lib_prefix=no 11209 need_version=no 11210 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11211 soname_spec='$libname$release$shared_ext$major' 11212 shlibpath_var=LD_LIBRARY_PATH 11213 shlibpath_overrides_runpath=yes 11214 hardcode_into_libs=yes 11215 if test yes = "$with_gnu_ld"; then 11216 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11217 else 11218 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11219 case $host_os in 11220 sco3.2v5*) 11221 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11222 ;; 11223 esac 11224 fi 11225 sys_lib_dlsearch_path_spec='/usr/lib' 11226 ;; 11227 11228tpf*) 11229 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11230 version_type=linux # correct to gnu/linux during the next big refactor 11231 need_lib_prefix=no 11232 need_version=no 11233 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11234 shlibpath_var=LD_LIBRARY_PATH 11235 shlibpath_overrides_runpath=no 11236 hardcode_into_libs=yes 11237 ;; 11238 11239uts4*) 11240 version_type=linux # correct to gnu/linux during the next big refactor 11241 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11242 soname_spec='$libname$release$shared_ext$major' 11243 shlibpath_var=LD_LIBRARY_PATH 11244 ;; 11245 11246*) 11247 dynamic_linker=no 11248 ;; 11249esac 11250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11251$as_echo "$dynamic_linker" >&6; } 11252test no = "$dynamic_linker" && can_build_shared=no 11253 11254variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11255if test yes = "$GCC"; then 11256 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11257fi 11258 11259if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11260 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11261fi 11262 11263if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11264 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11265fi 11266 11267# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11268configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11269 11270# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11271func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11272 11273# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11274configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11373$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11374hardcode_action= 11375if test -n "$hardcode_libdir_flag_spec" || 11376 test -n "$runpath_var" || 11377 test yes = "$hardcode_automatic"; then 11378 11379 # We can hardcode non-existent directories. 11380 if test no != "$hardcode_direct" && 11381 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11382 # have to relink, otherwise we might link with an installed library 11383 # when we should be linking with a yet-to-be-installed one 11384 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11385 test no != "$hardcode_minus_L"; then 11386 # Linking always hardcodes the temporary library directory. 11387 hardcode_action=relink 11388 else 11389 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11390 hardcode_action=immediate 11391 fi 11392else 11393 # We cannot hardcode anything, or else we can only hardcode existing 11394 # directories. 11395 hardcode_action=unsupported 11396fi 11397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11398$as_echo "$hardcode_action" >&6; } 11399 11400if test relink = "$hardcode_action" || 11401 test yes = "$inherit_rpath"; then 11402 # Fast installation is not supported 11403 enable_fast_install=no 11404elif test yes = "$shlibpath_overrides_runpath" || 11405 test no = "$enable_shared"; then 11406 # Fast installation is not necessary 11407 enable_fast_install=needless 11408fi 11409 11410 11411 11412 11413 11414 11415 if test yes != "$enable_dlopen"; then 11416 enable_dlopen=unknown 11417 enable_dlopen_self=unknown 11418 enable_dlopen_self_static=unknown 11419else 11420 lt_cv_dlopen=no 11421 lt_cv_dlopen_libs= 11422 11423 case $host_os in 11424 beos*) 11425 lt_cv_dlopen=load_add_on 11426 lt_cv_dlopen_libs= 11427 lt_cv_dlopen_self=yes 11428 ;; 11429 11430 mingw* | pw32* | cegcc*) 11431 lt_cv_dlopen=LoadLibrary 11432 lt_cv_dlopen_libs= 11433 ;; 11434 11435 cygwin*) 11436 lt_cv_dlopen=dlopen 11437 lt_cv_dlopen_libs= 11438 ;; 11439 11440 darwin*) 11441 # if libdl is installed we need to link against it 11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11443$as_echo_n "checking for dlopen in -ldl... " >&6; } 11444if ${ac_cv_lib_dl_dlopen+:} false; then : 11445 $as_echo_n "(cached) " >&6 11446else 11447 ac_check_lib_save_LIBS=$LIBS 11448LIBS="-ldl $LIBS" 11449cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11450/* end confdefs.h. */ 11451 11452/* Override any GCC internal prototype to avoid an error. 11453 Use char because int might match the return type of a GCC 11454 builtin and then its argument prototype would still apply. */ 11455#ifdef __cplusplus 11456extern "C" 11457#endif 11458char dlopen (); 11459int 11460main () 11461{ 11462return dlopen (); 11463 ; 11464 return 0; 11465} 11466_ACEOF 11467if ac_fn_c_try_link "$LINENO"; then : 11468 ac_cv_lib_dl_dlopen=yes 11469else 11470 ac_cv_lib_dl_dlopen=no 11471fi 11472rm -f core conftest.err conftest.$ac_objext \ 11473 conftest$ac_exeext conftest.$ac_ext 11474LIBS=$ac_check_lib_save_LIBS 11475fi 11476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11477$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11478if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11479 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11480else 11481 11482 lt_cv_dlopen=dyld 11483 lt_cv_dlopen_libs= 11484 lt_cv_dlopen_self=yes 11485 11486fi 11487 11488 ;; 11489 11490 tpf*) 11491 # Don't try to run any link tests for TPF. We know it's impossible 11492 # because TPF is a cross-compiler, and we know how we open DSOs. 11493 lt_cv_dlopen=dlopen 11494 lt_cv_dlopen_libs= 11495 lt_cv_dlopen_self=no 11496 ;; 11497 11498 *) 11499 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11500if test "x$ac_cv_func_shl_load" = xyes; then : 11501 lt_cv_dlopen=shl_load 11502else 11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11504$as_echo_n "checking for shl_load in -ldld... " >&6; } 11505if ${ac_cv_lib_dld_shl_load+:} false; then : 11506 $as_echo_n "(cached) " >&6 11507else 11508 ac_check_lib_save_LIBS=$LIBS 11509LIBS="-ldld $LIBS" 11510cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11511/* end confdefs.h. */ 11512 11513/* Override any GCC internal prototype to avoid an error. 11514 Use char because int might match the return type of a GCC 11515 builtin and then its argument prototype would still apply. */ 11516#ifdef __cplusplus 11517extern "C" 11518#endif 11519char shl_load (); 11520int 11521main () 11522{ 11523return shl_load (); 11524 ; 11525 return 0; 11526} 11527_ACEOF 11528if ac_fn_c_try_link "$LINENO"; then : 11529 ac_cv_lib_dld_shl_load=yes 11530else 11531 ac_cv_lib_dld_shl_load=no 11532fi 11533rm -f core conftest.err conftest.$ac_objext \ 11534 conftest$ac_exeext conftest.$ac_ext 11535LIBS=$ac_check_lib_save_LIBS 11536fi 11537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11538$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11539if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11540 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11541else 11542 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11543if test "x$ac_cv_func_dlopen" = xyes; then : 11544 lt_cv_dlopen=dlopen 11545else 11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11547$as_echo_n "checking for dlopen in -ldl... " >&6; } 11548if ${ac_cv_lib_dl_dlopen+:} false; then : 11549 $as_echo_n "(cached) " >&6 11550else 11551 ac_check_lib_save_LIBS=$LIBS 11552LIBS="-ldl $LIBS" 11553cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11554/* end confdefs.h. */ 11555 11556/* Override any GCC internal prototype to avoid an error. 11557 Use char because int might match the return type of a GCC 11558 builtin and then its argument prototype would still apply. */ 11559#ifdef __cplusplus 11560extern "C" 11561#endif 11562char dlopen (); 11563int 11564main () 11565{ 11566return dlopen (); 11567 ; 11568 return 0; 11569} 11570_ACEOF 11571if ac_fn_c_try_link "$LINENO"; then : 11572 ac_cv_lib_dl_dlopen=yes 11573else 11574 ac_cv_lib_dl_dlopen=no 11575fi 11576rm -f core conftest.err conftest.$ac_objext \ 11577 conftest$ac_exeext conftest.$ac_ext 11578LIBS=$ac_check_lib_save_LIBS 11579fi 11580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11581$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11582if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11583 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11584else 11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11586$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11587if ${ac_cv_lib_svld_dlopen+:} false; then : 11588 $as_echo_n "(cached) " >&6 11589else 11590 ac_check_lib_save_LIBS=$LIBS 11591LIBS="-lsvld $LIBS" 11592cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11593/* end confdefs.h. */ 11594 11595/* Override any GCC internal prototype to avoid an error. 11596 Use char because int might match the return type of a GCC 11597 builtin and then its argument prototype would still apply. */ 11598#ifdef __cplusplus 11599extern "C" 11600#endif 11601char dlopen (); 11602int 11603main () 11604{ 11605return dlopen (); 11606 ; 11607 return 0; 11608} 11609_ACEOF 11610if ac_fn_c_try_link "$LINENO"; then : 11611 ac_cv_lib_svld_dlopen=yes 11612else 11613 ac_cv_lib_svld_dlopen=no 11614fi 11615rm -f core conftest.err conftest.$ac_objext \ 11616 conftest$ac_exeext conftest.$ac_ext 11617LIBS=$ac_check_lib_save_LIBS 11618fi 11619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11620$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11621if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11622 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11623else 11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11625$as_echo_n "checking for dld_link in -ldld... " >&6; } 11626if ${ac_cv_lib_dld_dld_link+:} false; then : 11627 $as_echo_n "(cached) " >&6 11628else 11629 ac_check_lib_save_LIBS=$LIBS 11630LIBS="-ldld $LIBS" 11631cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11632/* end confdefs.h. */ 11633 11634/* Override any GCC internal prototype to avoid an error. 11635 Use char because int might match the return type of a GCC 11636 builtin and then its argument prototype would still apply. */ 11637#ifdef __cplusplus 11638extern "C" 11639#endif 11640char dld_link (); 11641int 11642main () 11643{ 11644return dld_link (); 11645 ; 11646 return 0; 11647} 11648_ACEOF 11649if ac_fn_c_try_link "$LINENO"; then : 11650 ac_cv_lib_dld_dld_link=yes 11651else 11652 ac_cv_lib_dld_dld_link=no 11653fi 11654rm -f core conftest.err conftest.$ac_objext \ 11655 conftest$ac_exeext conftest.$ac_ext 11656LIBS=$ac_check_lib_save_LIBS 11657fi 11658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11659$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11660if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11661 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11662fi 11663 11664 11665fi 11666 11667 11668fi 11669 11670 11671fi 11672 11673 11674fi 11675 11676 11677fi 11678 11679 ;; 11680 esac 11681 11682 if test no = "$lt_cv_dlopen"; then 11683 enable_dlopen=no 11684 else 11685 enable_dlopen=yes 11686 fi 11687 11688 case $lt_cv_dlopen in 11689 dlopen) 11690 save_CPPFLAGS=$CPPFLAGS 11691 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11692 11693 save_LDFLAGS=$LDFLAGS 11694 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11695 11696 save_LIBS=$LIBS 11697 LIBS="$lt_cv_dlopen_libs $LIBS" 11698 11699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11700$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11701if ${lt_cv_dlopen_self+:} false; then : 11702 $as_echo_n "(cached) " >&6 11703else 11704 if test yes = "$cross_compiling"; then : 11705 lt_cv_dlopen_self=cross 11706else 11707 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11708 lt_status=$lt_dlunknown 11709 cat > conftest.$ac_ext <<_LT_EOF 11710#line $LINENO "configure" 11711#include "confdefs.h" 11712 11713#if HAVE_DLFCN_H 11714#include <dlfcn.h> 11715#endif 11716 11717#include <stdio.h> 11718 11719#ifdef RTLD_GLOBAL 11720# define LT_DLGLOBAL RTLD_GLOBAL 11721#else 11722# ifdef DL_GLOBAL 11723# define LT_DLGLOBAL DL_GLOBAL 11724# else 11725# define LT_DLGLOBAL 0 11726# endif 11727#endif 11728 11729/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11730 find out it does not work in some platform. */ 11731#ifndef LT_DLLAZY_OR_NOW 11732# ifdef RTLD_LAZY 11733# define LT_DLLAZY_OR_NOW RTLD_LAZY 11734# else 11735# ifdef DL_LAZY 11736# define LT_DLLAZY_OR_NOW DL_LAZY 11737# else 11738# ifdef RTLD_NOW 11739# define LT_DLLAZY_OR_NOW RTLD_NOW 11740# else 11741# ifdef DL_NOW 11742# define LT_DLLAZY_OR_NOW DL_NOW 11743# else 11744# define LT_DLLAZY_OR_NOW 0 11745# endif 11746# endif 11747# endif 11748# endif 11749#endif 11750 11751/* When -fvisibility=hidden is used, assume the code has been annotated 11752 correspondingly for the symbols needed. */ 11753#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11754int fnord () __attribute__((visibility("default"))); 11755#endif 11756 11757int fnord () { return 42; } 11758int main () 11759{ 11760 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11761 int status = $lt_dlunknown; 11762 11763 if (self) 11764 { 11765 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11766 else 11767 { 11768 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11769 else puts (dlerror ()); 11770 } 11771 /* dlclose (self); */ 11772 } 11773 else 11774 puts (dlerror ()); 11775 11776 return status; 11777} 11778_LT_EOF 11779 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11780 (eval $ac_link) 2>&5 11781 ac_status=$? 11782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11783 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11784 (./conftest; exit; ) >&5 2>/dev/null 11785 lt_status=$? 11786 case x$lt_status in 11787 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11788 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11789 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11790 esac 11791 else : 11792 # compilation failed 11793 lt_cv_dlopen_self=no 11794 fi 11795fi 11796rm -fr conftest* 11797 11798 11799fi 11800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11801$as_echo "$lt_cv_dlopen_self" >&6; } 11802 11803 if test yes = "$lt_cv_dlopen_self"; then 11804 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11806$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11807if ${lt_cv_dlopen_self_static+:} false; then : 11808 $as_echo_n "(cached) " >&6 11809else 11810 if test yes = "$cross_compiling"; then : 11811 lt_cv_dlopen_self_static=cross 11812else 11813 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11814 lt_status=$lt_dlunknown 11815 cat > conftest.$ac_ext <<_LT_EOF 11816#line $LINENO "configure" 11817#include "confdefs.h" 11818 11819#if HAVE_DLFCN_H 11820#include <dlfcn.h> 11821#endif 11822 11823#include <stdio.h> 11824 11825#ifdef RTLD_GLOBAL 11826# define LT_DLGLOBAL RTLD_GLOBAL 11827#else 11828# ifdef DL_GLOBAL 11829# define LT_DLGLOBAL DL_GLOBAL 11830# else 11831# define LT_DLGLOBAL 0 11832# endif 11833#endif 11834 11835/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11836 find out it does not work in some platform. */ 11837#ifndef LT_DLLAZY_OR_NOW 11838# ifdef RTLD_LAZY 11839# define LT_DLLAZY_OR_NOW RTLD_LAZY 11840# else 11841# ifdef DL_LAZY 11842# define LT_DLLAZY_OR_NOW DL_LAZY 11843# else 11844# ifdef RTLD_NOW 11845# define LT_DLLAZY_OR_NOW RTLD_NOW 11846# else 11847# ifdef DL_NOW 11848# define LT_DLLAZY_OR_NOW DL_NOW 11849# else 11850# define LT_DLLAZY_OR_NOW 0 11851# endif 11852# endif 11853# endif 11854# endif 11855#endif 11856 11857/* When -fvisibility=hidden is used, assume the code has been annotated 11858 correspondingly for the symbols needed. */ 11859#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11860int fnord () __attribute__((visibility("default"))); 11861#endif 11862 11863int fnord () { return 42; } 11864int main () 11865{ 11866 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11867 int status = $lt_dlunknown; 11868 11869 if (self) 11870 { 11871 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11872 else 11873 { 11874 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11875 else puts (dlerror ()); 11876 } 11877 /* dlclose (self); */ 11878 } 11879 else 11880 puts (dlerror ()); 11881 11882 return status; 11883} 11884_LT_EOF 11885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11886 (eval $ac_link) 2>&5 11887 ac_status=$? 11888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11889 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11890 (./conftest; exit; ) >&5 2>/dev/null 11891 lt_status=$? 11892 case x$lt_status in 11893 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11894 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11895 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11896 esac 11897 else : 11898 # compilation failed 11899 lt_cv_dlopen_self_static=no 11900 fi 11901fi 11902rm -fr conftest* 11903 11904 11905fi 11906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11907$as_echo "$lt_cv_dlopen_self_static" >&6; } 11908 fi 11909 11910 CPPFLAGS=$save_CPPFLAGS 11911 LDFLAGS=$save_LDFLAGS 11912 LIBS=$save_LIBS 11913 ;; 11914 esac 11915 11916 case $lt_cv_dlopen_self in 11917 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11918 *) enable_dlopen_self=unknown ;; 11919 esac 11920 11921 case $lt_cv_dlopen_self_static in 11922 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11923 *) enable_dlopen_self_static=unknown ;; 11924 esac 11925fi 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943striplib= 11944old_striplib= 11945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11946$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11947if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11948 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11949 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11951$as_echo "yes" >&6; } 11952else 11953# FIXME - insert some real tests, host_os isn't really good enough 11954 case $host_os in 11955 darwin*) 11956 if test -n "$STRIP"; then 11957 striplib="$STRIP -x" 11958 old_striplib="$STRIP -S" 11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11960$as_echo "yes" >&6; } 11961 else 11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11963$as_echo "no" >&6; } 11964 fi 11965 ;; 11966 *) 11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11968$as_echo "no" >&6; } 11969 ;; 11970 esac 11971fi 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 # Report what library types will actually be built 11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11986$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11988$as_echo "$can_build_shared" >&6; } 11989 11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11991$as_echo_n "checking whether to build shared libraries... " >&6; } 11992 test no = "$can_build_shared" && enable_shared=no 11993 11994 # On AIX, shared libraries and static libraries use the same namespace, and 11995 # are all built from PIC. 11996 case $host_os in 11997 aix3*) 11998 test yes = "$enable_shared" && enable_static=no 11999 if test -n "$RANLIB"; then 12000 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12001 postinstall_cmds='$RANLIB $lib' 12002 fi 12003 ;; 12004 12005 aix[4-9]*) 12006 if test ia64 != "$host_cpu"; then 12007 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12008 yes,aix,yes) ;; # shared object as lib.so file only 12009 yes,svr4,*) ;; # shared object as lib.so archive member only 12010 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12011 esac 12012 fi 12013 ;; 12014 esac 12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12016$as_echo "$enable_shared" >&6; } 12017 12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12019$as_echo_n "checking whether to build static libraries... " >&6; } 12020 # Make sure either enable_shared or enable_static is yes. 12021 test yes = "$enable_shared" || enable_static=yes 12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12023$as_echo "$enable_static" >&6; } 12024 12025 12026 12027 12028fi 12029ac_ext=c 12030ac_cpp='$CPP $CPPFLAGS' 12031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12033ac_compiler_gnu=$ac_cv_c_compiler_gnu 12034 12035CC=$lt_save_CC 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 ac_config_commands="$ac_config_commands libtool" 12052 12053 12054 12055 12056# Only expand once: 12057 12058 12059AM_CFLAGS="--std=c99 -pedantic" 12060 12061ac_ext=c 12062ac_cpp='$CPP $CPPFLAGS' 12063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12065ac_compiler_gnu=$ac_cv_c_compiler_gnu 12066if test -n "$ac_tool_prefix"; then 12067 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 12068set dummy ${ac_tool_prefix}gcc; ac_word=$2 12069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12070$as_echo_n "checking for $ac_word... " >&6; } 12071if ${ac_cv_prog_CC+:} false; then : 12072 $as_echo_n "(cached) " >&6 12073else 12074 if test -n "$CC"; then 12075 ac_cv_prog_CC="$CC" # Let the user override the test. 12076else 12077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12078for as_dir in $PATH 12079do 12080 IFS=$as_save_IFS 12081 test -z "$as_dir" && as_dir=. 12082 for ac_exec_ext in '' $ac_executable_extensions; do 12083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12084 ac_cv_prog_CC="${ac_tool_prefix}gcc" 12085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12086 break 2 12087 fi 12088done 12089 done 12090IFS=$as_save_IFS 12091 12092fi 12093fi 12094CC=$ac_cv_prog_CC 12095if test -n "$CC"; then 12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12097$as_echo "$CC" >&6; } 12098else 12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12100$as_echo "no" >&6; } 12101fi 12102 12103 12104fi 12105if test -z "$ac_cv_prog_CC"; then 12106 ac_ct_CC=$CC 12107 # Extract the first word of "gcc", so it can be a program name with args. 12108set dummy gcc; ac_word=$2 12109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12110$as_echo_n "checking for $ac_word... " >&6; } 12111if ${ac_cv_prog_ac_ct_CC+:} false; then : 12112 $as_echo_n "(cached) " >&6 12113else 12114 if test -n "$ac_ct_CC"; then 12115 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12116else 12117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12118for as_dir in $PATH 12119do 12120 IFS=$as_save_IFS 12121 test -z "$as_dir" && as_dir=. 12122 for ac_exec_ext in '' $ac_executable_extensions; do 12123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12124 ac_cv_prog_ac_ct_CC="gcc" 12125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12126 break 2 12127 fi 12128done 12129 done 12130IFS=$as_save_IFS 12131 12132fi 12133fi 12134ac_ct_CC=$ac_cv_prog_ac_ct_CC 12135if test -n "$ac_ct_CC"; then 12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12137$as_echo "$ac_ct_CC" >&6; } 12138else 12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12140$as_echo "no" >&6; } 12141fi 12142 12143 if test "x$ac_ct_CC" = x; then 12144 CC="" 12145 else 12146 case $cross_compiling:$ac_tool_warned in 12147yes:) 12148{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12149$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12150ac_tool_warned=yes ;; 12151esac 12152 CC=$ac_ct_CC 12153 fi 12154else 12155 CC="$ac_cv_prog_CC" 12156fi 12157 12158if test -z "$CC"; then 12159 if test -n "$ac_tool_prefix"; then 12160 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 12161set dummy ${ac_tool_prefix}cc; ac_word=$2 12162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12163$as_echo_n "checking for $ac_word... " >&6; } 12164if ${ac_cv_prog_CC+:} false; then : 12165 $as_echo_n "(cached) " >&6 12166else 12167 if test -n "$CC"; then 12168 ac_cv_prog_CC="$CC" # Let the user override the test. 12169else 12170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12171for as_dir in $PATH 12172do 12173 IFS=$as_save_IFS 12174 test -z "$as_dir" && as_dir=. 12175 for ac_exec_ext in '' $ac_executable_extensions; do 12176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12177 ac_cv_prog_CC="${ac_tool_prefix}cc" 12178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12179 break 2 12180 fi 12181done 12182 done 12183IFS=$as_save_IFS 12184 12185fi 12186fi 12187CC=$ac_cv_prog_CC 12188if test -n "$CC"; then 12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12190$as_echo "$CC" >&6; } 12191else 12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12193$as_echo "no" >&6; } 12194fi 12195 12196 12197 fi 12198fi 12199if test -z "$CC"; then 12200 # Extract the first word of "cc", so it can be a program name with args. 12201set dummy cc; ac_word=$2 12202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12203$as_echo_n "checking for $ac_word... " >&6; } 12204if ${ac_cv_prog_CC+:} false; then : 12205 $as_echo_n "(cached) " >&6 12206else 12207 if test -n "$CC"; then 12208 ac_cv_prog_CC="$CC" # Let the user override the test. 12209else 12210 ac_prog_rejected=no 12211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12212for as_dir in $PATH 12213do 12214 IFS=$as_save_IFS 12215 test -z "$as_dir" && as_dir=. 12216 for ac_exec_ext in '' $ac_executable_extensions; do 12217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12218 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 12219 ac_prog_rejected=yes 12220 continue 12221 fi 12222 ac_cv_prog_CC="cc" 12223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12224 break 2 12225 fi 12226done 12227 done 12228IFS=$as_save_IFS 12229 12230if test $ac_prog_rejected = yes; then 12231 # We found a bogon in the path, so make sure we never use it. 12232 set dummy $ac_cv_prog_CC 12233 shift 12234 if test $# != 0; then 12235 # We chose a different compiler from the bogus one. 12236 # However, it has the same basename, so the bogon will be chosen 12237 # first if we set CC to just the basename; use the full file name. 12238 shift 12239 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 12240 fi 12241fi 12242fi 12243fi 12244CC=$ac_cv_prog_CC 12245if test -n "$CC"; then 12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12247$as_echo "$CC" >&6; } 12248else 12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12250$as_echo "no" >&6; } 12251fi 12252 12253 12254fi 12255if test -z "$CC"; then 12256 if test -n "$ac_tool_prefix"; then 12257 for ac_prog in cl.exe 12258 do 12259 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12260set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12262$as_echo_n "checking for $ac_word... " >&6; } 12263if ${ac_cv_prog_CC+:} false; then : 12264 $as_echo_n "(cached) " >&6 12265else 12266 if test -n "$CC"; then 12267 ac_cv_prog_CC="$CC" # Let the user override the test. 12268else 12269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12270for as_dir in $PATH 12271do 12272 IFS=$as_save_IFS 12273 test -z "$as_dir" && as_dir=. 12274 for ac_exec_ext in '' $ac_executable_extensions; do 12275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12276 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 12277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12278 break 2 12279 fi 12280done 12281 done 12282IFS=$as_save_IFS 12283 12284fi 12285fi 12286CC=$ac_cv_prog_CC 12287if test -n "$CC"; then 12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12289$as_echo "$CC" >&6; } 12290else 12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12292$as_echo "no" >&6; } 12293fi 12294 12295 12296 test -n "$CC" && break 12297 done 12298fi 12299if test -z "$CC"; then 12300 ac_ct_CC=$CC 12301 for ac_prog in cl.exe 12302do 12303 # Extract the first word of "$ac_prog", so it can be a program name with args. 12304set dummy $ac_prog; ac_word=$2 12305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12306$as_echo_n "checking for $ac_word... " >&6; } 12307if ${ac_cv_prog_ac_ct_CC+:} false; then : 12308 $as_echo_n "(cached) " >&6 12309else 12310 if test -n "$ac_ct_CC"; then 12311 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12312else 12313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12314for as_dir in $PATH 12315do 12316 IFS=$as_save_IFS 12317 test -z "$as_dir" && as_dir=. 12318 for ac_exec_ext in '' $ac_executable_extensions; do 12319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12320 ac_cv_prog_ac_ct_CC="$ac_prog" 12321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12322 break 2 12323 fi 12324done 12325 done 12326IFS=$as_save_IFS 12327 12328fi 12329fi 12330ac_ct_CC=$ac_cv_prog_ac_ct_CC 12331if test -n "$ac_ct_CC"; then 12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12333$as_echo "$ac_ct_CC" >&6; } 12334else 12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12336$as_echo "no" >&6; } 12337fi 12338 12339 12340 test -n "$ac_ct_CC" && break 12341done 12342 12343 if test "x$ac_ct_CC" = x; then 12344 CC="" 12345 else 12346 case $cross_compiling:$ac_tool_warned in 12347yes:) 12348{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12349$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12350ac_tool_warned=yes ;; 12351esac 12352 CC=$ac_ct_CC 12353 fi 12354fi 12355 12356fi 12357 12358 12359test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12360$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12361as_fn_error $? "no acceptable C compiler found in \$PATH 12362See \`config.log' for more details" "$LINENO" 5; } 12363 12364# Provide some information about the compiler. 12365$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 12366set X $ac_compile 12367ac_compiler=$2 12368for ac_option in --version -v -V -qversion; do 12369 { { ac_try="$ac_compiler $ac_option >&5" 12370case "(($ac_try" in 12371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12372 *) ac_try_echo=$ac_try;; 12373esac 12374eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12375$as_echo "$ac_try_echo"; } >&5 12376 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12377 ac_status=$? 12378 if test -s conftest.err; then 12379 sed '10a\ 12380... rest of stderr output deleted ... 12381 10q' conftest.err >conftest.er1 12382 cat conftest.er1 >&5 12383 fi 12384 rm -f conftest.er1 conftest.err 12385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12386 test $ac_status = 0; } 12387done 12388 12389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 12390$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 12391if ${ac_cv_c_compiler_gnu+:} false; then : 12392 $as_echo_n "(cached) " >&6 12393else 12394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12395/* end confdefs.h. */ 12396 12397int 12398main () 12399{ 12400#ifndef __GNUC__ 12401 choke me 12402#endif 12403 12404 ; 12405 return 0; 12406} 12407_ACEOF 12408if ac_fn_c_try_compile "$LINENO"; then : 12409 ac_compiler_gnu=yes 12410else 12411 ac_compiler_gnu=no 12412fi 12413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12414ac_cv_c_compiler_gnu=$ac_compiler_gnu 12415 12416fi 12417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 12418$as_echo "$ac_cv_c_compiler_gnu" >&6; } 12419if test $ac_compiler_gnu = yes; then 12420 GCC=yes 12421else 12422 GCC= 12423fi 12424ac_test_CFLAGS=${CFLAGS+set} 12425ac_save_CFLAGS=$CFLAGS 12426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 12427$as_echo_n "checking whether $CC accepts -g... " >&6; } 12428if ${ac_cv_prog_cc_g+:} false; then : 12429 $as_echo_n "(cached) " >&6 12430else 12431 ac_save_c_werror_flag=$ac_c_werror_flag 12432 ac_c_werror_flag=yes 12433 ac_cv_prog_cc_g=no 12434 CFLAGS="-g" 12435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12436/* end confdefs.h. */ 12437 12438int 12439main () 12440{ 12441 12442 ; 12443 return 0; 12444} 12445_ACEOF 12446if ac_fn_c_try_compile "$LINENO"; then : 12447 ac_cv_prog_cc_g=yes 12448else 12449 CFLAGS="" 12450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12451/* end confdefs.h. */ 12452 12453int 12454main () 12455{ 12456 12457 ; 12458 return 0; 12459} 12460_ACEOF 12461if ac_fn_c_try_compile "$LINENO"; then : 12462 12463else 12464 ac_c_werror_flag=$ac_save_c_werror_flag 12465 CFLAGS="-g" 12466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12467/* end confdefs.h. */ 12468 12469int 12470main () 12471{ 12472 12473 ; 12474 return 0; 12475} 12476_ACEOF 12477if ac_fn_c_try_compile "$LINENO"; then : 12478 ac_cv_prog_cc_g=yes 12479fi 12480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12481fi 12482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12483fi 12484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12485 ac_c_werror_flag=$ac_save_c_werror_flag 12486fi 12487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 12488$as_echo "$ac_cv_prog_cc_g" >&6; } 12489if test "$ac_test_CFLAGS" = set; then 12490 CFLAGS=$ac_save_CFLAGS 12491elif test $ac_cv_prog_cc_g = yes; then 12492 if test "$GCC" = yes; then 12493 CFLAGS="-g -O2" 12494 else 12495 CFLAGS="-g" 12496 fi 12497else 12498 if test "$GCC" = yes; then 12499 CFLAGS="-O2" 12500 else 12501 CFLAGS= 12502 fi 12503fi 12504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 12505$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 12506if ${ac_cv_prog_cc_c89+:} false; then : 12507 $as_echo_n "(cached) " >&6 12508else 12509 ac_cv_prog_cc_c89=no 12510ac_save_CC=$CC 12511cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12512/* end confdefs.h. */ 12513#include <stdarg.h> 12514#include <stdio.h> 12515struct stat; 12516/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 12517struct buf { int x; }; 12518FILE * (*rcsopen) (struct buf *, struct stat *, int); 12519static char *e (p, i) 12520 char **p; 12521 int i; 12522{ 12523 return p[i]; 12524} 12525static char *f (char * (*g) (char **, int), char **p, ...) 12526{ 12527 char *s; 12528 va_list v; 12529 va_start (v,p); 12530 s = g (p, va_arg (v,int)); 12531 va_end (v); 12532 return s; 12533} 12534 12535/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 12536 function prototypes and stuff, but not '\xHH' hex character constants. 12537 These don't provoke an error unfortunately, instead are silently treated 12538 as 'x'. The following induces an error, until -std is added to get 12539 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 12540 array size at least. It's necessary to write '\x00'==0 to get something 12541 that's true only with -std. */ 12542int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 12543 12544/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 12545 inside strings and character constants. */ 12546#define FOO(x) 'x' 12547int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 12548 12549int test (int i, double x); 12550struct s1 {int (*f) (int a);}; 12551struct s2 {int (*f) (double a);}; 12552int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 12553int argc; 12554char **argv; 12555int 12556main () 12557{ 12558return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 12559 ; 12560 return 0; 12561} 12562_ACEOF 12563for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 12564 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 12565do 12566 CC="$ac_save_CC $ac_arg" 12567 if ac_fn_c_try_compile "$LINENO"; then : 12568 ac_cv_prog_cc_c89=$ac_arg 12569fi 12570rm -f core conftest.err conftest.$ac_objext 12571 test "x$ac_cv_prog_cc_c89" != "xno" && break 12572done 12573rm -f conftest.$ac_ext 12574CC=$ac_save_CC 12575 12576fi 12577# AC_CACHE_VAL 12578case "x$ac_cv_prog_cc_c89" in 12579 x) 12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12581$as_echo "none needed" >&6; } ;; 12582 xno) 12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12584$as_echo "unsupported" >&6; } ;; 12585 *) 12586 CC="$CC $ac_cv_prog_cc_c89" 12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 12588$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 12589esac 12590if test "x$ac_cv_prog_cc_c89" != xno; then : 12591 12592fi 12593 12594ac_ext=c 12595ac_cpp='$CPP $CPPFLAGS' 12596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12598ac_compiler_gnu=$ac_cv_c_compiler_gnu 12599 12600ac_ext=c 12601ac_cpp='$CPP $CPPFLAGS' 12602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12604ac_compiler_gnu=$ac_cv_c_compiler_gnu 12605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 12606$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 12607if ${am_cv_prog_cc_c_o+:} false; then : 12608 $as_echo_n "(cached) " >&6 12609else 12610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12611/* end confdefs.h. */ 12612 12613int 12614main () 12615{ 12616 12617 ; 12618 return 0; 12619} 12620_ACEOF 12621 # Make sure it works both with $CC and with simple cc. 12622 # Following AC_PROG_CC_C_O, we do the test twice because some 12623 # compilers refuse to overwrite an existing .o file with -o, 12624 # though they will create one. 12625 am_cv_prog_cc_c_o=yes 12626 for am_i in 1 2; do 12627 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 12628 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 12629 ac_status=$? 12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12631 (exit $ac_status); } \ 12632 && test -f conftest2.$ac_objext; then 12633 : OK 12634 else 12635 am_cv_prog_cc_c_o=no 12636 break 12637 fi 12638 done 12639 rm -f core conftest* 12640 unset am_i 12641fi 12642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 12643$as_echo "$am_cv_prog_cc_c_o" >&6; } 12644if test "$am_cv_prog_cc_c_o" != yes; then 12645 # Losing compiler, so override with the script. 12646 # FIXME: It is wrong to rewrite CC. 12647 # But if we don't then we get into trouble of one sort or another. 12648 # A longer-term fix would be to have automake use am__CC in this case, 12649 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 12650 CC="$am_aux_dir/compile $CC" 12651fi 12652ac_ext=c 12653ac_cpp='$CPP $CPPFLAGS' 12654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12656ac_compiler_gnu=$ac_cv_c_compiler_gnu 12657 12658 12659depcc="$CC" am_compiler_list= 12660 12661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 12662$as_echo_n "checking dependency style of $depcc... " >&6; } 12663if ${am_cv_CC_dependencies_compiler_type+:} false; then : 12664 $as_echo_n "(cached) " >&6 12665else 12666 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12667 # We make a subdir and do the tests there. Otherwise we can end up 12668 # making bogus files that we don't know about and never remove. For 12669 # instance it was reported that on HP-UX the gcc test will end up 12670 # making a dummy file named 'D' -- because '-MD' means "put the output 12671 # in D". 12672 rm -rf conftest.dir 12673 mkdir conftest.dir 12674 # Copy depcomp to subdir because otherwise we won't find it if we're 12675 # using a relative directory. 12676 cp "$am_depcomp" conftest.dir 12677 cd conftest.dir 12678 # We will build objects and dependencies in a subdirectory because 12679 # it helps to detect inapplicable dependency modes. For instance 12680 # both Tru64's cc and ICC support -MD to output dependencies as a 12681 # side effect of compilation, but ICC will put the dependencies in 12682 # the current directory while Tru64 will put them in the object 12683 # directory. 12684 mkdir sub 12685 12686 am_cv_CC_dependencies_compiler_type=none 12687 if test "$am_compiler_list" = ""; then 12688 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12689 fi 12690 am__universal=false 12691 case " $depcc " in #( 12692 *\ -arch\ *\ -arch\ *) am__universal=true ;; 12693 esac 12694 12695 for depmode in $am_compiler_list; do 12696 # Setup a source with many dependencies, because some compilers 12697 # like to wrap large dependency lists on column 80 (with \), and 12698 # we should not choose a depcomp mode which is confused by this. 12699 # 12700 # We need to recreate these files for each test, as the compiler may 12701 # overwrite some of them when testing with obscure command lines. 12702 # This happens at least with the AIX C compiler. 12703 : > sub/conftest.c 12704 for i in 1 2 3 4 5 6; do 12705 echo '#include "conftst'$i'.h"' >> sub/conftest.c 12706 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 12707 # Solaris 10 /bin/sh. 12708 echo '/* dummy */' > sub/conftst$i.h 12709 done 12710 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12711 12712 # We check with '-c' and '-o' for the sake of the "dashmstdout" 12713 # mode. It turns out that the SunPro C++ compiler does not properly 12714 # handle '-M -o', and we need to detect this. Also, some Intel 12715 # versions had trouble with output in subdirs. 12716 am__obj=sub/conftest.${OBJEXT-o} 12717 am__minus_obj="-o $am__obj" 12718 case $depmode in 12719 gcc) 12720 # This depmode causes a compiler race in universal mode. 12721 test "$am__universal" = false || continue 12722 ;; 12723 nosideeffect) 12724 # After this tag, mechanisms are not by side-effect, so they'll 12725 # only be used when explicitly requested. 12726 if test "x$enable_dependency_tracking" = xyes; then 12727 continue 12728 else 12729 break 12730 fi 12731 ;; 12732 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 12733 # This compiler won't grok '-c -o', but also, the minuso test has 12734 # not run yet. These depmodes are late enough in the game, and 12735 # so weak that their functioning should not be impacted. 12736 am__obj=conftest.${OBJEXT-o} 12737 am__minus_obj= 12738 ;; 12739 none) break ;; 12740 esac 12741 if depmode=$depmode \ 12742 source=sub/conftest.c object=$am__obj \ 12743 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12744 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 12745 >/dev/null 2>conftest.err && 12746 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12747 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12748 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 12749 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12750 # icc doesn't choke on unknown options, it will just issue warnings 12751 # or remarks (even with -Werror). So we grep stderr for any message 12752 # that says an option was ignored or not supported. 12753 # When given -MP, icc 7.0 and 7.1 complain thusly: 12754 # icc: Command line warning: ignoring option '-M'; no argument required 12755 # The diagnosis changed in icc 8.0: 12756 # icc: Command line remark: option '-MP' not supported 12757 if (grep 'ignoring option' conftest.err || 12758 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 12759 am_cv_CC_dependencies_compiler_type=$depmode 12760 break 12761 fi 12762 fi 12763 done 12764 12765 cd .. 12766 rm -rf conftest.dir 12767else 12768 am_cv_CC_dependencies_compiler_type=none 12769fi 12770 12771fi 12772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 12773$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 12774CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 12775 12776 if 12777 test "x$enable_dependency_tracking" != xno \ 12778 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 12779 am__fastdepCC_TRUE= 12780 am__fastdepCC_FALSE='#' 12781else 12782 am__fastdepCC_TRUE='#' 12783 am__fastdepCC_FALSE= 12784fi 12785 12786 12787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 12788$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 12789if ${ac_cv_prog_cc_c99+:} false; then : 12790 $as_echo_n "(cached) " >&6 12791else 12792 ac_cv_prog_cc_c99=no 12793ac_save_CC=$CC 12794cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12795/* end confdefs.h. */ 12796#include <stdarg.h> 12797#include <stdbool.h> 12798#include <stdlib.h> 12799#include <wchar.h> 12800#include <stdio.h> 12801 12802// Check varargs macros. These examples are taken from C99 6.10.3.5. 12803#define debug(...) fprintf (stderr, __VA_ARGS__) 12804#define showlist(...) puts (#__VA_ARGS__) 12805#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 12806static void 12807test_varargs_macros (void) 12808{ 12809 int x = 1234; 12810 int y = 5678; 12811 debug ("Flag"); 12812 debug ("X = %d\n", x); 12813 showlist (The first, second, and third items.); 12814 report (x>y, "x is %d but y is %d", x, y); 12815} 12816 12817// Check long long types. 12818#define BIG64 18446744073709551615ull 12819#define BIG32 4294967295ul 12820#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 12821#if !BIG_OK 12822 your preprocessor is broken; 12823#endif 12824#if BIG_OK 12825#else 12826 your preprocessor is broken; 12827#endif 12828static long long int bignum = -9223372036854775807LL; 12829static unsigned long long int ubignum = BIG64; 12830 12831struct incomplete_array 12832{ 12833 int datasize; 12834 double data[]; 12835}; 12836 12837struct named_init { 12838 int number; 12839 const wchar_t *name; 12840 double average; 12841}; 12842 12843typedef const char *ccp; 12844 12845static inline int 12846test_restrict (ccp restrict text) 12847{ 12848 // See if C++-style comments work. 12849 // Iterate through items via the restricted pointer. 12850 // Also check for declarations in for loops. 12851 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 12852 continue; 12853 return 0; 12854} 12855 12856// Check varargs and va_copy. 12857static void 12858test_varargs (const char *format, ...) 12859{ 12860 va_list args; 12861 va_start (args, format); 12862 va_list args_copy; 12863 va_copy (args_copy, args); 12864 12865 const char *str; 12866 int number; 12867 float fnumber; 12868 12869 while (*format) 12870 { 12871 switch (*format++) 12872 { 12873 case 's': // string 12874 str = va_arg (args_copy, const char *); 12875 break; 12876 case 'd': // int 12877 number = va_arg (args_copy, int); 12878 break; 12879 case 'f': // float 12880 fnumber = va_arg (args_copy, double); 12881 break; 12882 default: 12883 break; 12884 } 12885 } 12886 va_end (args_copy); 12887 va_end (args); 12888} 12889 12890int 12891main () 12892{ 12893 12894 // Check bool. 12895 _Bool success = false; 12896 12897 // Check restrict. 12898 if (test_restrict ("String literal") == 0) 12899 success = true; 12900 char *restrict newvar = "Another string"; 12901 12902 // Check varargs. 12903 test_varargs ("s, d' f .", "string", 65, 34.234); 12904 test_varargs_macros (); 12905 12906 // Check flexible array members. 12907 struct incomplete_array *ia = 12908 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 12909 ia->datasize = 10; 12910 for (int i = 0; i < ia->datasize; ++i) 12911 ia->data[i] = i * 1.234; 12912 12913 // Check named initializers. 12914 struct named_init ni = { 12915 .number = 34, 12916 .name = L"Test wide string", 12917 .average = 543.34343, 12918 }; 12919 12920 ni.number = 58; 12921 12922 int dynamic_array[ni.number]; 12923 dynamic_array[ni.number - 1] = 543; 12924 12925 // work around unused variable warnings 12926 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 12927 || dynamic_array[ni.number - 1] != 543); 12928 12929 ; 12930 return 0; 12931} 12932_ACEOF 12933for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 12934do 12935 CC="$ac_save_CC $ac_arg" 12936 if ac_fn_c_try_compile "$LINENO"; then : 12937 ac_cv_prog_cc_c99=$ac_arg 12938fi 12939rm -f core conftest.err conftest.$ac_objext 12940 test "x$ac_cv_prog_cc_c99" != "xno" && break 12941done 12942rm -f conftest.$ac_ext 12943CC=$ac_save_CC 12944 12945fi 12946# AC_CACHE_VAL 12947case "x$ac_cv_prog_cc_c99" in 12948 x) 12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12950$as_echo "none needed" >&6; } ;; 12951 xno) 12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12953$as_echo "unsupported" >&6; } ;; 12954 *) 12955 CC="$CC $ac_cv_prog_cc_c99" 12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 12957$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 12958esac 12959if test "x$ac_cv_prog_cc_c99" != xno; then : 12960 12961fi 12962 12963 12964 12965# Check whether --enable-executable was given. 12966if test "${enable_executable+set}" = set; then : 12967 enableval=$enable_executable; case "${enableval}" in 12968 yes) executable=true ;; 12969 no) executable=false ;; 12970 *) as_fn_error $? "bad value ${enableval} for --enable-executable" "$LINENO" 5 ;; 12971 esac 12972else 12973 executable=true 12974fi 12975 12976 if test x$executable = xtrue; then 12977 EXECUTABLE_TRUE= 12978 EXECUTABLE_FALSE='#' 12979else 12980 EXECUTABLE_TRUE='#' 12981 EXECUTABLE_FALSE= 12982fi 12983 12984 12985if test "x$executable" = "xtrue"; then 12986 12987 12988 12989 12990 12991 12992 12993if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12994 if test -n "$ac_tool_prefix"; then 12995 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12996set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12998$as_echo_n "checking for $ac_word... " >&6; } 12999if ${ac_cv_path_PKG_CONFIG+:} false; then : 13000 $as_echo_n "(cached) " >&6 13001else 13002 case $PKG_CONFIG in 13003 [\\/]* | ?:[\\/]*) 13004 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13005 ;; 13006 *) 13007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13008for as_dir in $PATH 13009do 13010 IFS=$as_save_IFS 13011 test -z "$as_dir" && as_dir=. 13012 for ac_exec_ext in '' $ac_executable_extensions; do 13013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13014 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13016 break 2 13017 fi 13018done 13019 done 13020IFS=$as_save_IFS 13021 13022 ;; 13023esac 13024fi 13025PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13026if test -n "$PKG_CONFIG"; then 13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13028$as_echo "$PKG_CONFIG" >&6; } 13029else 13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13031$as_echo "no" >&6; } 13032fi 13033 13034 13035fi 13036if test -z "$ac_cv_path_PKG_CONFIG"; then 13037 ac_pt_PKG_CONFIG=$PKG_CONFIG 13038 # Extract the first word of "pkg-config", so it can be a program name with args. 13039set dummy pkg-config; ac_word=$2 13040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13041$as_echo_n "checking for $ac_word... " >&6; } 13042if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 13043 $as_echo_n "(cached) " >&6 13044else 13045 case $ac_pt_PKG_CONFIG in 13046 [\\/]* | ?:[\\/]*) 13047 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13048 ;; 13049 *) 13050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13051for as_dir in $PATH 13052do 13053 IFS=$as_save_IFS 13054 test -z "$as_dir" && as_dir=. 13055 for ac_exec_ext in '' $ac_executable_extensions; do 13056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13057 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13059 break 2 13060 fi 13061done 13062 done 13063IFS=$as_save_IFS 13064 13065 ;; 13066esac 13067fi 13068ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13069if test -n "$ac_pt_PKG_CONFIG"; then 13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13071$as_echo "$ac_pt_PKG_CONFIG" >&6; } 13072else 13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13074$as_echo "no" >&6; } 13075fi 13076 13077 if test "x$ac_pt_PKG_CONFIG" = x; then 13078 PKG_CONFIG="" 13079 else 13080 case $cross_compiling:$ac_tool_warned in 13081yes:) 13082{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13083$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13084ac_tool_warned=yes ;; 13085esac 13086 PKG_CONFIG=$ac_pt_PKG_CONFIG 13087 fi 13088else 13089 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13090fi 13091 13092fi 13093if test -n "$PKG_CONFIG"; then 13094 _pkg_min_version=0.9.0 13095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13096$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13097 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13099$as_echo "yes" >&6; } 13100 else 13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13102$as_echo "no" >&6; } 13103 PKG_CONFIG="" 13104 fi 13105fi 13106 13107pkg_failed=no 13108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for igraph >= 0.6" >&5 13109$as_echo_n "checking for igraph >= 0.6... " >&6; } 13110 13111if test -n "$IGRAPH_CFLAGS"; then 13112 pkg_cv_IGRAPH_CFLAGS="$IGRAPH_CFLAGS" 13113 elif test -n "$PKG_CONFIG"; then 13114 if test -n "$PKG_CONFIG" && \ 13115 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"igraph >= 0.6\""; } >&5 13116 ($PKG_CONFIG --exists --print-errors "igraph >= 0.6") 2>&5 13117 ac_status=$? 13118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13119 test $ac_status = 0; }; then 13120 pkg_cv_IGRAPH_CFLAGS=`$PKG_CONFIG --cflags "igraph >= 0.6" 2>/dev/null` 13121 test "x$?" != "x0" && pkg_failed=yes 13122else 13123 pkg_failed=yes 13124fi 13125 else 13126 pkg_failed=untried 13127fi 13128if test -n "$IGRAPH_LIBS"; then 13129 pkg_cv_IGRAPH_LIBS="$IGRAPH_LIBS" 13130 elif test -n "$PKG_CONFIG"; then 13131 if test -n "$PKG_CONFIG" && \ 13132 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"igraph >= 0.6\""; } >&5 13133 ($PKG_CONFIG --exists --print-errors "igraph >= 0.6") 2>&5 13134 ac_status=$? 13135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13136 test $ac_status = 0; }; then 13137 pkg_cv_IGRAPH_LIBS=`$PKG_CONFIG --libs "igraph >= 0.6" 2>/dev/null` 13138 test "x$?" != "x0" && pkg_failed=yes 13139else 13140 pkg_failed=yes 13141fi 13142 else 13143 pkg_failed=untried 13144fi 13145 13146 13147 13148if test $pkg_failed = yes; then 13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13150$as_echo "no" >&6; } 13151 13152if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13153 _pkg_short_errors_supported=yes 13154else 13155 _pkg_short_errors_supported=no 13156fi 13157 if test $_pkg_short_errors_supported = yes; then 13158 IGRAPH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "igraph >= 0.6" 2>&1` 13159 else 13160 IGRAPH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "igraph >= 0.6" 2>&1` 13161 fi 13162 # Put the nasty error message in config.log where it belongs 13163 echo "$IGRAPH_PKG_ERRORS" >&5 13164 13165 as_fn_error $? "Package requirements (igraph >= 0.6) were not met: 13166 13167$IGRAPH_PKG_ERRORS 13168 13169Consider adjusting the PKG_CONFIG_PATH environment variable if you 13170installed software in a non-standard prefix. 13171 13172Alternatively, you may set the environment variables IGRAPH_CFLAGS 13173and IGRAPH_LIBS to avoid the need to call pkg-config. 13174See the pkg-config man page for more details." "$LINENO" 5 13175elif test $pkg_failed = untried; then 13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13177$as_echo "no" >&6; } 13178 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13179$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13180as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 13181is in your PATH or set the PKG_CONFIG environment variable to the full 13182path to pkg-config. 13183 13184Alternatively, you may set the environment variables IGRAPH_CFLAGS 13185and IGRAPH_LIBS to avoid the need to call pkg-config. 13186See the pkg-config man page for more details. 13187 13188To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13189See \`config.log' for more details" "$LINENO" 5; } 13190else 13191 IGRAPH_CFLAGS=$pkg_cv_IGRAPH_CFLAGS 13192 IGRAPH_LIBS=$pkg_cv_IGRAPH_LIBS 13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13194$as_echo "yes" >&6; } 13195 13196fi 13197fi 13198 13199ac_config_files="$ac_config_files Makefile" 13200 13201 13202cat >confcache <<\_ACEOF 13203# This file is a shell script that caches the results of configure 13204# tests run on this system so they can be shared between configure 13205# scripts and configure runs, see configure's option --config-cache. 13206# It is not useful on other systems. If it contains results you don't 13207# want to keep, you may remove or edit it. 13208# 13209# config.status only pays attention to the cache file if you give it 13210# the --recheck option to rerun configure. 13211# 13212# `ac_cv_env_foo' variables (set or unset) will be overridden when 13213# loading this file, other *unset* `ac_cv_foo' will be assigned the 13214# following values. 13215 13216_ACEOF 13217 13218# The following way of writing the cache mishandles newlines in values, 13219# but we know of no workaround that is simple, portable, and efficient. 13220# So, we kill variables containing newlines. 13221# Ultrix sh set writes to stderr and can't be redirected directly, 13222# and sets the high bit in the cache file unless we assign to the vars. 13223( 13224 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13225 eval ac_val=\$$ac_var 13226 case $ac_val in #( 13227 *${as_nl}*) 13228 case $ac_var in #( 13229 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13230$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13231 esac 13232 case $ac_var in #( 13233 _ | IFS | as_nl) ;; #( 13234 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13235 *) { eval $ac_var=; unset $ac_var;} ;; 13236 esac ;; 13237 esac 13238 done 13239 13240 (set) 2>&1 | 13241 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13242 *${as_nl}ac_space=\ *) 13243 # `set' does not quote correctly, so add quotes: double-quote 13244 # substitution turns \\\\ into \\, and sed turns \\ into \. 13245 sed -n \ 13246 "s/'/'\\\\''/g; 13247 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13248 ;; #( 13249 *) 13250 # `set' quotes correctly as required by POSIX, so do not add quotes. 13251 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13252 ;; 13253 esac | 13254 sort 13255) | 13256 sed ' 13257 /^ac_cv_env_/b end 13258 t clear 13259 :clear 13260 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13261 t end 13262 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13263 :end' >>confcache 13264if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13265 if test -w "$cache_file"; then 13266 if test "x$cache_file" != "x/dev/null"; then 13267 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13268$as_echo "$as_me: updating cache $cache_file" >&6;} 13269 if test ! -f "$cache_file" || test -h "$cache_file"; then 13270 cat confcache >"$cache_file" 13271 else 13272 case $cache_file in #( 13273 */* | ?:*) 13274 mv -f confcache "$cache_file"$$ && 13275 mv -f "$cache_file"$$ "$cache_file" ;; #( 13276 *) 13277 mv -f confcache "$cache_file" ;; 13278 esac 13279 fi 13280 fi 13281 else 13282 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13283$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13284 fi 13285fi 13286rm -f confcache 13287 13288test "x$prefix" = xNONE && prefix=$ac_default_prefix 13289# Let make expand exec_prefix. 13290test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13291 13292# Transform confdefs.h into DEFS. 13293# Protect against shell expansion while executing Makefile rules. 13294# Protect against Makefile macro expansion. 13295# 13296# If the first sed substitution is executed (which looks for macros that 13297# take arguments), then branch to the quote section. Otherwise, 13298# look for a macro that doesn't take arguments. 13299ac_script=' 13300:mline 13301/\\$/{ 13302 N 13303 s,\\\n,, 13304 b mline 13305} 13306t clear 13307:clear 13308s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 13309t quote 13310s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 13311t quote 13312b any 13313:quote 13314s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 13315s/\[/\\&/g 13316s/\]/\\&/g 13317s/\$/$$/g 13318H 13319:any 13320${ 13321 g 13322 s/^\n// 13323 s/\n/ /g 13324 p 13325} 13326' 13327DEFS=`sed -n "$ac_script" confdefs.h` 13328 13329 13330ac_libobjs= 13331ac_ltlibobjs= 13332U= 13333for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13334 # 1. Remove the extension, and $U if already installed. 13335 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13336 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13337 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13338 # will be set to the directory where LIBOBJS objects are built. 13339 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13340 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13341done 13342LIBOBJS=$ac_libobjs 13343 13344LTLIBOBJS=$ac_ltlibobjs 13345 13346 13347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 13348$as_echo_n "checking that generated files are newer than configure... " >&6; } 13349 if test -n "$am_sleep_pid"; then 13350 # Hide warnings about reused PIDs. 13351 wait $am_sleep_pid 2>/dev/null 13352 fi 13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 13354$as_echo "done" >&6; } 13355 if test -n "$EXEEXT"; then 13356 am__EXEEXT_TRUE= 13357 am__EXEEXT_FALSE='#' 13358else 13359 am__EXEEXT_TRUE='#' 13360 am__EXEEXT_FALSE= 13361fi 13362 13363if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13364 as_fn_error $? "conditional \"AMDEP\" was never defined. 13365Usually this means the macro was only invoked conditionally." "$LINENO" 5 13366fi 13367if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13368 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13369Usually this means the macro was only invoked conditionally." "$LINENO" 5 13370fi 13371if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13372 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13373Usually this means the macro was only invoked conditionally." "$LINENO" 5 13374fi 13375if test -z "${EXECUTABLE_TRUE}" && test -z "${EXECUTABLE_FALSE}"; then 13376 as_fn_error $? "conditional \"EXECUTABLE\" was never defined. 13377Usually this means the macro was only invoked conditionally." "$LINENO" 5 13378fi 13379 13380: "${CONFIG_STATUS=./config.status}" 13381ac_write_fail=0 13382ac_clean_files_save=$ac_clean_files 13383ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13384{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13385$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13386as_write_fail=0 13387cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13388#! $SHELL 13389# Generated by $as_me. 13390# Run this file to recreate the current configuration. 13391# Compiler output produced by configure, useful for debugging 13392# configure, is in config.log if it exists. 13393 13394debug=false 13395ac_cs_recheck=false 13396ac_cs_silent=false 13397 13398SHELL=\${CONFIG_SHELL-$SHELL} 13399export SHELL 13400_ASEOF 13401cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13402## -------------------- ## 13403## M4sh Initialization. ## 13404## -------------------- ## 13405 13406# Be more Bourne compatible 13407DUALCASE=1; export DUALCASE # for MKS sh 13408if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13409 emulate sh 13410 NULLCMD=: 13411 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13412 # is contrary to our usage. Disable this feature. 13413 alias -g '${1+"$@"}'='"$@"' 13414 setopt NO_GLOB_SUBST 13415else 13416 case `(set -o) 2>/dev/null` in #( 13417 *posix*) : 13418 set -o posix ;; #( 13419 *) : 13420 ;; 13421esac 13422fi 13423 13424 13425as_nl=' 13426' 13427export as_nl 13428# Printing a long string crashes Solaris 7 /usr/bin/printf. 13429as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13430as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13431as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13432# Prefer a ksh shell builtin over an external printf program on Solaris, 13433# but without wasting forks for bash or zsh. 13434if test -z "$BASH_VERSION$ZSH_VERSION" \ 13435 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13436 as_echo='print -r --' 13437 as_echo_n='print -rn --' 13438elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13439 as_echo='printf %s\n' 13440 as_echo_n='printf %s' 13441else 13442 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13443 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13444 as_echo_n='/usr/ucb/echo -n' 13445 else 13446 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13447 as_echo_n_body='eval 13448 arg=$1; 13449 case $arg in #( 13450 *"$as_nl"*) 13451 expr "X$arg" : "X\\(.*\\)$as_nl"; 13452 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13453 esac; 13454 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13455 ' 13456 export as_echo_n_body 13457 as_echo_n='sh -c $as_echo_n_body as_echo' 13458 fi 13459 export as_echo_body 13460 as_echo='sh -c $as_echo_body as_echo' 13461fi 13462 13463# The user is always right. 13464if test "${PATH_SEPARATOR+set}" != set; then 13465 PATH_SEPARATOR=: 13466 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13467 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13468 PATH_SEPARATOR=';' 13469 } 13470fi 13471 13472 13473# IFS 13474# We need space, tab and new line, in precisely that order. Quoting is 13475# there to prevent editors from complaining about space-tab. 13476# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13477# splitting by setting IFS to empty value.) 13478IFS=" "" $as_nl" 13479 13480# Find who we are. Look in the path if we contain no directory separator. 13481as_myself= 13482case $0 in #(( 13483 *[\\/]* ) as_myself=$0 ;; 13484 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13485for as_dir in $PATH 13486do 13487 IFS=$as_save_IFS 13488 test -z "$as_dir" && as_dir=. 13489 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13490 done 13491IFS=$as_save_IFS 13492 13493 ;; 13494esac 13495# We did not find ourselves, most probably we were run as `sh COMMAND' 13496# in which case we are not to be found in the path. 13497if test "x$as_myself" = x; then 13498 as_myself=$0 13499fi 13500if test ! -f "$as_myself"; then 13501 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13502 exit 1 13503fi 13504 13505# Unset variables that we do not need and which cause bugs (e.g. in 13506# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13507# suppresses any "Segmentation fault" message there. '((' could 13508# trigger a bug in pdksh 5.2.14. 13509for as_var in BASH_ENV ENV MAIL MAILPATH 13510do eval test x\${$as_var+set} = xset \ 13511 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13512done 13513PS1='$ ' 13514PS2='> ' 13515PS4='+ ' 13516 13517# NLS nuisances. 13518LC_ALL=C 13519export LC_ALL 13520LANGUAGE=C 13521export LANGUAGE 13522 13523# CDPATH. 13524(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13525 13526 13527# as_fn_error STATUS ERROR [LINENO LOG_FD] 13528# ---------------------------------------- 13529# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13530# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13531# script with STATUS, using 1 if that was 0. 13532as_fn_error () 13533{ 13534 as_status=$1; test $as_status -eq 0 && as_status=1 13535 if test "$4"; then 13536 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13537 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13538 fi 13539 $as_echo "$as_me: error: $2" >&2 13540 as_fn_exit $as_status 13541} # as_fn_error 13542 13543 13544# as_fn_set_status STATUS 13545# ----------------------- 13546# Set $? to STATUS, without forking. 13547as_fn_set_status () 13548{ 13549 return $1 13550} # as_fn_set_status 13551 13552# as_fn_exit STATUS 13553# ----------------- 13554# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13555as_fn_exit () 13556{ 13557 set +e 13558 as_fn_set_status $1 13559 exit $1 13560} # as_fn_exit 13561 13562# as_fn_unset VAR 13563# --------------- 13564# Portably unset VAR. 13565as_fn_unset () 13566{ 13567 { eval $1=; unset $1;} 13568} 13569as_unset=as_fn_unset 13570# as_fn_append VAR VALUE 13571# ---------------------- 13572# Append the text in VALUE to the end of the definition contained in VAR. Take 13573# advantage of any shell optimizations that allow amortized linear growth over 13574# repeated appends, instead of the typical quadratic growth present in naive 13575# implementations. 13576if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13577 eval 'as_fn_append () 13578 { 13579 eval $1+=\$2 13580 }' 13581else 13582 as_fn_append () 13583 { 13584 eval $1=\$$1\$2 13585 } 13586fi # as_fn_append 13587 13588# as_fn_arith ARG... 13589# ------------------ 13590# Perform arithmetic evaluation on the ARGs, and store the result in the 13591# global $as_val. Take advantage of shells that can avoid forks. The arguments 13592# must be portable across $(()) and expr. 13593if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13594 eval 'as_fn_arith () 13595 { 13596 as_val=$(( $* )) 13597 }' 13598else 13599 as_fn_arith () 13600 { 13601 as_val=`expr "$@" || test $? -eq 1` 13602 } 13603fi # as_fn_arith 13604 13605 13606if expr a : '\(a\)' >/dev/null 2>&1 && 13607 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13608 as_expr=expr 13609else 13610 as_expr=false 13611fi 13612 13613if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13614 as_basename=basename 13615else 13616 as_basename=false 13617fi 13618 13619if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13620 as_dirname=dirname 13621else 13622 as_dirname=false 13623fi 13624 13625as_me=`$as_basename -- "$0" || 13626$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13627 X"$0" : 'X\(//\)$' \| \ 13628 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13629$as_echo X/"$0" | 13630 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13631 s//\1/ 13632 q 13633 } 13634 /^X\/\(\/\/\)$/{ 13635 s//\1/ 13636 q 13637 } 13638 /^X\/\(\/\).*/{ 13639 s//\1/ 13640 q 13641 } 13642 s/.*/./; q'` 13643 13644# Avoid depending upon Character Ranges. 13645as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13646as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13647as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13648as_cr_digits='0123456789' 13649as_cr_alnum=$as_cr_Letters$as_cr_digits 13650 13651ECHO_C= ECHO_N= ECHO_T= 13652case `echo -n x` in #((((( 13653-n*) 13654 case `echo 'xy\c'` in 13655 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13656 xy) ECHO_C='\c';; 13657 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13658 ECHO_T=' ';; 13659 esac;; 13660*) 13661 ECHO_N='-n';; 13662esac 13663 13664rm -f conf$$ conf$$.exe conf$$.file 13665if test -d conf$$.dir; then 13666 rm -f conf$$.dir/conf$$.file 13667else 13668 rm -f conf$$.dir 13669 mkdir conf$$.dir 2>/dev/null 13670fi 13671if (echo >conf$$.file) 2>/dev/null; then 13672 if ln -s conf$$.file conf$$ 2>/dev/null; then 13673 as_ln_s='ln -s' 13674 # ... but there are two gotchas: 13675 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13676 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13677 # In both cases, we have to default to `cp -pR'. 13678 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13679 as_ln_s='cp -pR' 13680 elif ln conf$$.file conf$$ 2>/dev/null; then 13681 as_ln_s=ln 13682 else 13683 as_ln_s='cp -pR' 13684 fi 13685else 13686 as_ln_s='cp -pR' 13687fi 13688rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13689rmdir conf$$.dir 2>/dev/null 13690 13691 13692# as_fn_mkdir_p 13693# ------------- 13694# Create "$as_dir" as a directory, including parents if necessary. 13695as_fn_mkdir_p () 13696{ 13697 13698 case $as_dir in #( 13699 -*) as_dir=./$as_dir;; 13700 esac 13701 test -d "$as_dir" || eval $as_mkdir_p || { 13702 as_dirs= 13703 while :; do 13704 case $as_dir in #( 13705 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13706 *) as_qdir=$as_dir;; 13707 esac 13708 as_dirs="'$as_qdir' $as_dirs" 13709 as_dir=`$as_dirname -- "$as_dir" || 13710$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13711 X"$as_dir" : 'X\(//\)[^/]' \| \ 13712 X"$as_dir" : 'X\(//\)$' \| \ 13713 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13714$as_echo X"$as_dir" | 13715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13716 s//\1/ 13717 q 13718 } 13719 /^X\(\/\/\)[^/].*/{ 13720 s//\1/ 13721 q 13722 } 13723 /^X\(\/\/\)$/{ 13724 s//\1/ 13725 q 13726 } 13727 /^X\(\/\).*/{ 13728 s//\1/ 13729 q 13730 } 13731 s/.*/./; q'` 13732 test -d "$as_dir" && break 13733 done 13734 test -z "$as_dirs" || eval "mkdir $as_dirs" 13735 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13736 13737 13738} # as_fn_mkdir_p 13739if mkdir -p . 2>/dev/null; then 13740 as_mkdir_p='mkdir -p "$as_dir"' 13741else 13742 test -d ./-p && rmdir ./-p 13743 as_mkdir_p=false 13744fi 13745 13746 13747# as_fn_executable_p FILE 13748# ----------------------- 13749# Test if FILE is an executable regular file. 13750as_fn_executable_p () 13751{ 13752 test -f "$1" && test -x "$1" 13753} # as_fn_executable_p 13754as_test_x='test -x' 13755as_executable_p=as_fn_executable_p 13756 13757# Sed expression to map a string onto a valid CPP name. 13758as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13759 13760# Sed expression to map a string onto a valid variable name. 13761as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13762 13763 13764exec 6>&1 13765## ----------------------------------- ## 13766## Main body of $CONFIG_STATUS script. ## 13767## ----------------------------------- ## 13768_ASEOF 13769test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13770 13771cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13772# Save the log message, to keep $0 and so on meaningful, and to 13773# report actual input values of CONFIG_FILES etc. instead of their 13774# values after options handling. 13775ac_log=" 13776This file was extended by rw $as_me 0.9, which was 13777generated by GNU Autoconf 2.69. Invocation command line was 13778 13779 CONFIG_FILES = $CONFIG_FILES 13780 CONFIG_HEADERS = $CONFIG_HEADERS 13781 CONFIG_LINKS = $CONFIG_LINKS 13782 CONFIG_COMMANDS = $CONFIG_COMMANDS 13783 $ $0 $@ 13784 13785on `(hostname || uname -n) 2>/dev/null | sed 1q` 13786" 13787 13788_ACEOF 13789 13790case $ac_config_files in *" 13791"*) set x $ac_config_files; shift; ac_config_files=$*;; 13792esac 13793 13794 13795 13796cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13797# Files that config.status was made for. 13798config_files="$ac_config_files" 13799config_commands="$ac_config_commands" 13800 13801_ACEOF 13802 13803cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13804ac_cs_usage="\ 13805\`$as_me' instantiates files and other configuration actions 13806from templates according to the current configuration. Unless the files 13807and actions are specified as TAGs, all are instantiated by default. 13808 13809Usage: $0 [OPTION]... [TAG]... 13810 13811 -h, --help print this help, then exit 13812 -V, --version print version number and configuration settings, then exit 13813 --config print configuration, then exit 13814 -q, --quiet, --silent 13815 do not print progress messages 13816 -d, --debug don't remove temporary files 13817 --recheck update $as_me by reconfiguring in the same conditions 13818 --file=FILE[:TEMPLATE] 13819 instantiate the configuration file FILE 13820 13821Configuration files: 13822$config_files 13823 13824Configuration commands: 13825$config_commands 13826 13827Report bugs to <philipp@informatik.uni-frankfurt.de>." 13828 13829_ACEOF 13830cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13831ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13832ac_cs_version="\\ 13833rw config.status 0.9 13834configured by $0, generated by GNU Autoconf 2.69, 13835 with options \\"\$ac_cs_config\\" 13836 13837Copyright (C) 2012 Free Software Foundation, Inc. 13838This config.status script is free software; the Free Software Foundation 13839gives unlimited permission to copy, distribute and modify it." 13840 13841ac_pwd='$ac_pwd' 13842srcdir='$srcdir' 13843INSTALL='$INSTALL' 13844MKDIR_P='$MKDIR_P' 13845AWK='$AWK' 13846test -n "\$AWK" || AWK=awk 13847_ACEOF 13848 13849cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13850# The default lists apply if the user does not specify any file. 13851ac_need_defaults=: 13852while test $# != 0 13853do 13854 case $1 in 13855 --*=?*) 13856 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13857 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13858 ac_shift=: 13859 ;; 13860 --*=) 13861 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13862 ac_optarg= 13863 ac_shift=: 13864 ;; 13865 *) 13866 ac_option=$1 13867 ac_optarg=$2 13868 ac_shift=shift 13869 ;; 13870 esac 13871 13872 case $ac_option in 13873 # Handling of the options. 13874 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13875 ac_cs_recheck=: ;; 13876 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13877 $as_echo "$ac_cs_version"; exit ;; 13878 --config | --confi | --conf | --con | --co | --c ) 13879 $as_echo "$ac_cs_config"; exit ;; 13880 --debug | --debu | --deb | --de | --d | -d ) 13881 debug=: ;; 13882 --file | --fil | --fi | --f ) 13883 $ac_shift 13884 case $ac_optarg in 13885 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13886 '') as_fn_error $? "missing file argument" ;; 13887 esac 13888 as_fn_append CONFIG_FILES " '$ac_optarg'" 13889 ac_need_defaults=false;; 13890 --he | --h | --help | --hel | -h ) 13891 $as_echo "$ac_cs_usage"; exit ;; 13892 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13893 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13894 ac_cs_silent=: ;; 13895 13896 # This is an error. 13897 -*) as_fn_error $? "unrecognized option: \`$1' 13898Try \`$0 --help' for more information." ;; 13899 13900 *) as_fn_append ac_config_targets " $1" 13901 ac_need_defaults=false ;; 13902 13903 esac 13904 shift 13905done 13906 13907ac_configure_extra_args= 13908 13909if $ac_cs_silent; then 13910 exec 6>/dev/null 13911 ac_configure_extra_args="$ac_configure_extra_args --silent" 13912fi 13913 13914_ACEOF 13915cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13916if \$ac_cs_recheck; then 13917 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13918 shift 13919 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13920 CONFIG_SHELL='$SHELL' 13921 export CONFIG_SHELL 13922 exec "\$@" 13923fi 13924 13925_ACEOF 13926cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13927exec 5>>config.log 13928{ 13929 echo 13930 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13931## Running $as_me. ## 13932_ASBOX 13933 $as_echo "$ac_log" 13934} >&5 13935 13936_ACEOF 13937cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13938# 13939# INIT-COMMANDS 13940# 13941AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 13942 13943 13944# The HP-UX ksh and POSIX shell print the target directory to stdout 13945# if CDPATH is set. 13946(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13947 13948sed_quote_subst='$sed_quote_subst' 13949double_quote_subst='$double_quote_subst' 13950delay_variable_subst='$delay_variable_subst' 13951macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 13952macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 13953enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 13954enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 13955pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 13956enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 13957shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 13958SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 13959ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 13960PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 13961host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 13962host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 13963host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 13964build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 13965build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 13966build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 13967SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 13968Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 13969GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 13970EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 13971FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 13972LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 13973NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 13974LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 13975max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 13976ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 13977exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 13978lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 13979lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 13980lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 13981lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 13982lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 13983reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 13984reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 13985OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 13986deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 13987file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 13988file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 13989want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 13990DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 13991sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 13992AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 13993AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 13994archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 13995STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 13996RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 13997old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13998old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13999old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 14000lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 14001CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 14002CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 14003compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 14004GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 14005lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 14006lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 14007lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 14008lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 14009lt_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"`' 14010lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 14011nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 14012lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 14013lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 14014objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 14015MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 14016lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 14017lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 14018lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 14019lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 14020lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 14021need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 14022MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 14023DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 14024NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 14025LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 14026OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 14027OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 14028libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 14029shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 14030extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14031archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 14032enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 14033export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 14034whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 14035compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 14036old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 14037old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14038archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 14039archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14040module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 14041module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14042with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 14043allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 14044no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 14045hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 14046hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 14047hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 14048hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 14049hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 14050hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 14051hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 14052inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 14053link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 14054always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 14055export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 14056exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 14057include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 14058prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 14059postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 14060file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 14061variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 14062need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 14063need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 14064version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 14065runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 14066shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 14067shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 14068libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 14069library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 14070soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 14071install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 14072postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14073postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14074finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 14075finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 14076hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 14077sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 14078configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 14079configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 14080hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 14081enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 14082enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 14083enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 14084old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 14085striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 14086 14087LTCC='$LTCC' 14088LTCFLAGS='$LTCFLAGS' 14089compiler='$compiler_DEFAULT' 14090 14091# A function that is used when there is no print builtin or printf. 14092func_fallback_echo () 14093{ 14094 eval 'cat <<_LTECHO_EOF 14095\$1 14096_LTECHO_EOF' 14097} 14098 14099# Quote evaled strings. 14100for var in SHELL \ 14101ECHO \ 14102PATH_SEPARATOR \ 14103SED \ 14104GREP \ 14105EGREP \ 14106FGREP \ 14107LD \ 14108NM \ 14109LN_S \ 14110lt_SP2NL \ 14111lt_NL2SP \ 14112reload_flag \ 14113OBJDUMP \ 14114deplibs_check_method \ 14115file_magic_cmd \ 14116file_magic_glob \ 14117want_nocaseglob \ 14118DLLTOOL \ 14119sharedlib_from_linklib_cmd \ 14120AR \ 14121AR_FLAGS \ 14122archiver_list_spec \ 14123STRIP \ 14124RANLIB \ 14125CC \ 14126CFLAGS \ 14127compiler \ 14128lt_cv_sys_global_symbol_pipe \ 14129lt_cv_sys_global_symbol_to_cdecl \ 14130lt_cv_sys_global_symbol_to_import \ 14131lt_cv_sys_global_symbol_to_c_name_address \ 14132lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14133lt_cv_nm_interface \ 14134nm_file_list_spec \ 14135lt_cv_truncate_bin \ 14136lt_prog_compiler_no_builtin_flag \ 14137lt_prog_compiler_pic \ 14138lt_prog_compiler_wl \ 14139lt_prog_compiler_static \ 14140lt_cv_prog_compiler_c_o \ 14141need_locks \ 14142MANIFEST_TOOL \ 14143DSYMUTIL \ 14144NMEDIT \ 14145LIPO \ 14146OTOOL \ 14147OTOOL64 \ 14148shrext_cmds \ 14149export_dynamic_flag_spec \ 14150whole_archive_flag_spec \ 14151compiler_needs_object \ 14152with_gnu_ld \ 14153allow_undefined_flag \ 14154no_undefined_flag \ 14155hardcode_libdir_flag_spec \ 14156hardcode_libdir_separator \ 14157exclude_expsyms \ 14158include_expsyms \ 14159file_list_spec \ 14160variables_saved_for_relink \ 14161libname_spec \ 14162library_names_spec \ 14163soname_spec \ 14164install_override_mode \ 14165finish_eval \ 14166old_striplib \ 14167striplib; do 14168 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14169 *[\\\\\\\`\\"\\\$]*) 14170 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14171 ;; 14172 *) 14173 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14174 ;; 14175 esac 14176done 14177 14178# Double-quote double-evaled strings. 14179for var in reload_cmds \ 14180old_postinstall_cmds \ 14181old_postuninstall_cmds \ 14182old_archive_cmds \ 14183extract_expsyms_cmds \ 14184old_archive_from_new_cmds \ 14185old_archive_from_expsyms_cmds \ 14186archive_cmds \ 14187archive_expsym_cmds \ 14188module_cmds \ 14189module_expsym_cmds \ 14190export_symbols_cmds \ 14191prelink_cmds \ 14192postlink_cmds \ 14193postinstall_cmds \ 14194postuninstall_cmds \ 14195finish_cmds \ 14196sys_lib_search_path_spec \ 14197configure_time_dlsearch_path \ 14198configure_time_lt_sys_library_path; do 14199 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14200 *[\\\\\\\`\\"\\\$]*) 14201 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14202 ;; 14203 *) 14204 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14205 ;; 14206 esac 14207done 14208 14209ac_aux_dir='$ac_aux_dir' 14210 14211# See if we are running on zsh, and set the options that allow our 14212# commands through without removal of \ escapes INIT. 14213if test -n "\${ZSH_VERSION+set}"; then 14214 setopt NO_GLOB_SUBST 14215fi 14216 14217 14218 PACKAGE='$PACKAGE' 14219 VERSION='$VERSION' 14220 RM='$RM' 14221 ofile='$ofile' 14222 14223 14224 14225 14226_ACEOF 14227 14228cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14229 14230# Handling of arguments. 14231for ac_config_target in $ac_config_targets 14232do 14233 case $ac_config_target in 14234 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14235 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14236 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14237 14238 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14239 esac 14240done 14241 14242 14243# If the user did not use the arguments to specify the items to instantiate, 14244# then the envvar interface is used. Set only those that are not. 14245# We use the long form for the default assignment because of an extremely 14246# bizarre bug on SunOS 4.1.3. 14247if $ac_need_defaults; then 14248 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14249 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14250fi 14251 14252# Have a temporary directory for convenience. Make it in the build tree 14253# simply because there is no reason against having it here, and in addition, 14254# creating and moving files from /tmp can sometimes cause problems. 14255# Hook for its removal unless debugging. 14256# Note that there is a small window in which the directory will not be cleaned: 14257# after its creation but before its name has been assigned to `$tmp'. 14258$debug || 14259{ 14260 tmp= ac_tmp= 14261 trap 'exit_status=$? 14262 : "${ac_tmp:=$tmp}" 14263 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14264' 0 14265 trap 'as_fn_exit 1' 1 2 13 15 14266} 14267# Create a (secure) tmp directory for tmp files. 14268 14269{ 14270 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14271 test -d "$tmp" 14272} || 14273{ 14274 tmp=./conf$$-$RANDOM 14275 (umask 077 && mkdir "$tmp") 14276} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14277ac_tmp=$tmp 14278 14279# Set up the scripts for CONFIG_FILES section. 14280# No need to generate them if there are no CONFIG_FILES. 14281# This happens for instance with `./config.status config.h'. 14282if test -n "$CONFIG_FILES"; then 14283 14284 14285ac_cr=`echo X | tr X '\015'` 14286# On cygwin, bash can eat \r inside `` if the user requested igncr. 14287# But we know of no other shell where ac_cr would be empty at this 14288# point, so we can use a bashism as a fallback. 14289if test "x$ac_cr" = x; then 14290 eval ac_cr=\$\'\\r\' 14291fi 14292ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14293if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14294 ac_cs_awk_cr='\\r' 14295else 14296 ac_cs_awk_cr=$ac_cr 14297fi 14298 14299echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14300_ACEOF 14301 14302 14303{ 14304 echo "cat >conf$$subs.awk <<_ACEOF" && 14305 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14306 echo "_ACEOF" 14307} >conf$$subs.sh || 14308 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14309ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14310ac_delim='%!_!# ' 14311for ac_last_try in false false false false false :; do 14312 . ./conf$$subs.sh || 14313 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14314 14315 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14316 if test $ac_delim_n = $ac_delim_num; then 14317 break 14318 elif $ac_last_try; then 14319 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14320 else 14321 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14322 fi 14323done 14324rm -f conf$$subs.sh 14325 14326cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14327cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14328_ACEOF 14329sed -n ' 14330h 14331s/^/S["/; s/!.*/"]=/ 14332p 14333g 14334s/^[^!]*!// 14335:repl 14336t repl 14337s/'"$ac_delim"'$// 14338t delim 14339:nl 14340h 14341s/\(.\{148\}\)..*/\1/ 14342t more1 14343s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14344p 14345n 14346b repl 14347:more1 14348s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14349p 14350g 14351s/.\{148\}// 14352t nl 14353:delim 14354h 14355s/\(.\{148\}\)..*/\1/ 14356t more2 14357s/["\\]/\\&/g; s/^/"/; s/$/"/ 14358p 14359b 14360:more2 14361s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14362p 14363g 14364s/.\{148\}// 14365t delim 14366' <conf$$subs.awk | sed ' 14367/^[^""]/{ 14368 N 14369 s/\n// 14370} 14371' >>$CONFIG_STATUS || ac_write_fail=1 14372rm -f conf$$subs.awk 14373cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14374_ACAWK 14375cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14376 for (key in S) S_is_set[key] = 1 14377 FS = "" 14378 14379} 14380{ 14381 line = $ 0 14382 nfields = split(line, field, "@") 14383 substed = 0 14384 len = length(field[1]) 14385 for (i = 2; i < nfields; i++) { 14386 key = field[i] 14387 keylen = length(key) 14388 if (S_is_set[key]) { 14389 value = S[key] 14390 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14391 len += length(value) + length(field[++i]) 14392 substed = 1 14393 } else 14394 len += 1 + keylen 14395 } 14396 14397 print line 14398} 14399 14400_ACAWK 14401_ACEOF 14402cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14403if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14404 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14405else 14406 cat 14407fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14408 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14409_ACEOF 14410 14411# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14412# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14413# trailing colons and then remove the whole line if VPATH becomes empty 14414# (actually we leave an empty line to preserve line numbers). 14415if test "x$srcdir" = x.; then 14416 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14417h 14418s/// 14419s/^/:/ 14420s/[ ]*$/:/ 14421s/:\$(srcdir):/:/g 14422s/:\${srcdir}:/:/g 14423s/:@srcdir@:/:/g 14424s/^:*// 14425s/:*$// 14426x 14427s/\(=[ ]*\).*/\1/ 14428G 14429s/\n// 14430s/^[^=]*=[ ]*$// 14431}' 14432fi 14433 14434cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14435fi # test -n "$CONFIG_FILES" 14436 14437 14438eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 14439shift 14440for ac_tag 14441do 14442 case $ac_tag in 14443 :[FHLC]) ac_mode=$ac_tag; continue;; 14444 esac 14445 case $ac_mode$ac_tag in 14446 :[FHL]*:*);; 14447 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14448 :[FH]-) ac_tag=-:-;; 14449 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14450 esac 14451 ac_save_IFS=$IFS 14452 IFS=: 14453 set x $ac_tag 14454 IFS=$ac_save_IFS 14455 shift 14456 ac_file=$1 14457 shift 14458 14459 case $ac_mode in 14460 :L) ac_source=$1;; 14461 :[FH]) 14462 ac_file_inputs= 14463 for ac_f 14464 do 14465 case $ac_f in 14466 -) ac_f="$ac_tmp/stdin";; 14467 *) # Look for the file first in the build tree, then in the source tree 14468 # (if the path is not absolute). The absolute path cannot be DOS-style, 14469 # because $ac_f cannot contain `:'. 14470 test -f "$ac_f" || 14471 case $ac_f in 14472 [\\/$]*) false;; 14473 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14474 esac || 14475 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14476 esac 14477 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14478 as_fn_append ac_file_inputs " '$ac_f'" 14479 done 14480 14481 # Let's still pretend it is `configure' which instantiates (i.e., don't 14482 # use $as_me), people would be surprised to read: 14483 # /* config.h. Generated by config.status. */ 14484 configure_input='Generated from '` 14485 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14486 `' by configure.' 14487 if test x"$ac_file" != x-; then 14488 configure_input="$ac_file. $configure_input" 14489 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14490$as_echo "$as_me: creating $ac_file" >&6;} 14491 fi 14492 # Neutralize special characters interpreted by sed in replacement strings. 14493 case $configure_input in #( 14494 *\&* | *\|* | *\\* ) 14495 ac_sed_conf_input=`$as_echo "$configure_input" | 14496 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14497 *) ac_sed_conf_input=$configure_input;; 14498 esac 14499 14500 case $ac_tag in 14501 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14502 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14503 esac 14504 ;; 14505 esac 14506 14507 ac_dir=`$as_dirname -- "$ac_file" || 14508$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14509 X"$ac_file" : 'X\(//\)[^/]' \| \ 14510 X"$ac_file" : 'X\(//\)$' \| \ 14511 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14512$as_echo X"$ac_file" | 14513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14514 s//\1/ 14515 q 14516 } 14517 /^X\(\/\/\)[^/].*/{ 14518 s//\1/ 14519 q 14520 } 14521 /^X\(\/\/\)$/{ 14522 s//\1/ 14523 q 14524 } 14525 /^X\(\/\).*/{ 14526 s//\1/ 14527 q 14528 } 14529 s/.*/./; q'` 14530 as_dir="$ac_dir"; as_fn_mkdir_p 14531 ac_builddir=. 14532 14533case "$ac_dir" in 14534.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14535*) 14536 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14537 # A ".." for each directory in $ac_dir_suffix. 14538 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14539 case $ac_top_builddir_sub in 14540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14542 esac ;; 14543esac 14544ac_abs_top_builddir=$ac_pwd 14545ac_abs_builddir=$ac_pwd$ac_dir_suffix 14546# for backward compatibility: 14547ac_top_builddir=$ac_top_build_prefix 14548 14549case $srcdir in 14550 .) # We are building in place. 14551 ac_srcdir=. 14552 ac_top_srcdir=$ac_top_builddir_sub 14553 ac_abs_top_srcdir=$ac_pwd ;; 14554 [\\/]* | ?:[\\/]* ) # Absolute name. 14555 ac_srcdir=$srcdir$ac_dir_suffix; 14556 ac_top_srcdir=$srcdir 14557 ac_abs_top_srcdir=$srcdir ;; 14558 *) # Relative name. 14559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14560 ac_top_srcdir=$ac_top_build_prefix$srcdir 14561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14562esac 14563ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14564 14565 14566 case $ac_mode in 14567 :F) 14568 # 14569 # CONFIG_FILE 14570 # 14571 14572 case $INSTALL in 14573 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14574 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14575 esac 14576 ac_MKDIR_P=$MKDIR_P 14577 case $MKDIR_P in 14578 [\\/$]* | ?:[\\/]* ) ;; 14579 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14580 esac 14581_ACEOF 14582 14583cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14584# If the template does not know about datarootdir, expand it. 14585# FIXME: This hack should be removed a few years after 2.60. 14586ac_datarootdir_hack=; ac_datarootdir_seen= 14587ac_sed_dataroot=' 14588/datarootdir/ { 14589 p 14590 q 14591} 14592/@datadir@/p 14593/@docdir@/p 14594/@infodir@/p 14595/@localedir@/p 14596/@mandir@/p' 14597case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14598*datarootdir*) ac_datarootdir_seen=yes;; 14599*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14601$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14602_ACEOF 14603cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14604 ac_datarootdir_hack=' 14605 s&@datadir@&$datadir&g 14606 s&@docdir@&$docdir&g 14607 s&@infodir@&$infodir&g 14608 s&@localedir@&$localedir&g 14609 s&@mandir@&$mandir&g 14610 s&\\\${datarootdir}&$datarootdir&g' ;; 14611esac 14612_ACEOF 14613 14614# Neutralize VPATH when `$srcdir' = `.'. 14615# Shell code in configure.ac might set extrasub. 14616# FIXME: do we really want to maintain this feature? 14617cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14618ac_sed_extra="$ac_vpsub 14619$extrasub 14620_ACEOF 14621cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14622:t 14623/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14624s|@configure_input@|$ac_sed_conf_input|;t t 14625s&@top_builddir@&$ac_top_builddir_sub&;t t 14626s&@top_build_prefix@&$ac_top_build_prefix&;t t 14627s&@srcdir@&$ac_srcdir&;t t 14628s&@abs_srcdir@&$ac_abs_srcdir&;t t 14629s&@top_srcdir@&$ac_top_srcdir&;t t 14630s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14631s&@builddir@&$ac_builddir&;t t 14632s&@abs_builddir@&$ac_abs_builddir&;t t 14633s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14634s&@INSTALL@&$ac_INSTALL&;t t 14635s&@MKDIR_P@&$ac_MKDIR_P&;t t 14636$ac_datarootdir_hack 14637" 14638eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14639 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14640 14641test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14642 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14643 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14644 "$ac_tmp/out"`; test -z "$ac_out"; } && 14645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14646which seems to be undefined. Please make sure it is defined" >&5 14647$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14648which seems to be undefined. Please make sure it is defined" >&2;} 14649 14650 rm -f "$ac_tmp/stdin" 14651 case $ac_file in 14652 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14653 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14654 esac \ 14655 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14656 ;; 14657 14658 14659 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14660$as_echo "$as_me: executing $ac_file commands" >&6;} 14661 ;; 14662 esac 14663 14664 14665 case $ac_file$ac_mode in 14666 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14667 # Older Autoconf quotes --file arguments for eval, but not when files 14668 # are listed without --file. Let's play safe and only enable the eval 14669 # if we detect the quoting. 14670 # TODO: see whether this extra hack can be removed once we start 14671 # requiring Autoconf 2.70 or later. 14672 case $CONFIG_FILES in #( 14673 *\'*) : 14674 eval set x "$CONFIG_FILES" ;; #( 14675 *) : 14676 set x $CONFIG_FILES ;; #( 14677 *) : 14678 ;; 14679esac 14680 shift 14681 # Used to flag and report bootstrapping failures. 14682 am_rc=0 14683 for am_mf 14684 do 14685 # Strip MF so we end up with the name of the file. 14686 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 14687 # Check whether this is an Automake generated Makefile which includes 14688 # dependency-tracking related rules and includes. 14689 # Grep'ing the whole file directly is not great: AIX grep has a line 14690 # limit of 2048, but all sed's we know have understand at least 4000. 14691 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 14692 || continue 14693 am_dirpart=`$as_dirname -- "$am_mf" || 14694$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14695 X"$am_mf" : 'X\(//\)[^/]' \| \ 14696 X"$am_mf" : 'X\(//\)$' \| \ 14697 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 14698$as_echo X"$am_mf" | 14699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14700 s//\1/ 14701 q 14702 } 14703 /^X\(\/\/\)[^/].*/{ 14704 s//\1/ 14705 q 14706 } 14707 /^X\(\/\/\)$/{ 14708 s//\1/ 14709 q 14710 } 14711 /^X\(\/\).*/{ 14712 s//\1/ 14713 q 14714 } 14715 s/.*/./; q'` 14716 am_filepart=`$as_basename -- "$am_mf" || 14717$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 14718 X"$am_mf" : 'X\(//\)$' \| \ 14719 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 14720$as_echo X/"$am_mf" | 14721 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14722 s//\1/ 14723 q 14724 } 14725 /^X\/\(\/\/\)$/{ 14726 s//\1/ 14727 q 14728 } 14729 /^X\/\(\/\).*/{ 14730 s//\1/ 14731 q 14732 } 14733 s/.*/./; q'` 14734 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 14735 && sed -e '/# am--include-marker/d' "$am_filepart" \ 14736 | $MAKE -f - am--depfiles" >&5 14737 (cd "$am_dirpart" \ 14738 && sed -e '/# am--include-marker/d' "$am_filepart" \ 14739 | $MAKE -f - am--depfiles) >&5 2>&5 14740 ac_status=$? 14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14742 (exit $ac_status); } || am_rc=$? 14743 done 14744 if test $am_rc -ne 0; then 14745 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14746$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14747as_fn_error $? "Something went wrong bootstrapping makefile fragments 14748 for automatic dependency tracking. If GNU make was not used, consider 14749 re-running the configure script with MAKE=\"gmake\" (or whatever is 14750 necessary). You can also try re-running configure with the 14751 '--disable-dependency-tracking' option to at least be able to build 14752 the package (albeit without support for automatic dependency tracking). 14753See \`config.log' for more details" "$LINENO" 5; } 14754 fi 14755 { am_dirpart=; unset am_dirpart;} 14756 { am_filepart=; unset am_filepart;} 14757 { am_mf=; unset am_mf;} 14758 { am_rc=; unset am_rc;} 14759 rm -f conftest-deps.mk 14760} 14761 ;; 14762 "libtool":C) 14763 14764 # See if we are running on zsh, and set the options that allow our 14765 # commands through without removal of \ escapes. 14766 if test -n "${ZSH_VERSION+set}"; then 14767 setopt NO_GLOB_SUBST 14768 fi 14769 14770 cfgfile=${ofile}T 14771 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14772 $RM "$cfgfile" 14773 14774 cat <<_LT_EOF >> "$cfgfile" 14775#! $SHELL 14776# Generated automatically by $as_me ($PACKAGE) $VERSION 14777# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14778 14779# Provide generalized library-building support services. 14780# Written by Gordon Matzigkeit, 1996 14781 14782# Copyright (C) 2014 Free Software Foundation, Inc. 14783# This is free software; see the source for copying conditions. There is NO 14784# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14785 14786# GNU Libtool is free software; you can redistribute it and/or modify 14787# it under the terms of the GNU General Public License as published by 14788# the Free Software Foundation; either version 2 of of the License, or 14789# (at your option) any later version. 14790# 14791# As a special exception to the GNU General Public License, if you 14792# distribute this file as part of a program or library that is built 14793# using GNU Libtool, you may include this file under the same 14794# distribution terms that you use for the rest of that program. 14795# 14796# GNU Libtool is distributed in the hope that it will be useful, but 14797# WITHOUT ANY WARRANTY; without even the implied warranty of 14798# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14799# GNU General Public License for more details. 14800# 14801# You should have received a copy of the GNU General Public License 14802# along with this program. If not, see <http://www.gnu.org/licenses/>. 14803 14804 14805# The names of the tagged configurations supported by this script. 14806available_tags='' 14807 14808# Configured defaults for sys_lib_dlsearch_path munging. 14809: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 14810 14811# ### BEGIN LIBTOOL CONFIG 14812 14813# Which release of libtool.m4 was used? 14814macro_version=$macro_version 14815macro_revision=$macro_revision 14816 14817# Whether or not to build shared libraries. 14818build_libtool_libs=$enable_shared 14819 14820# Whether or not to build static libraries. 14821build_old_libs=$enable_static 14822 14823# What type of objects to build. 14824pic_mode=$pic_mode 14825 14826# Whether or not to optimize for fast installation. 14827fast_install=$enable_fast_install 14828 14829# Shared archive member basename,for filename based shared library versioning on AIX. 14830shared_archive_member_spec=$shared_archive_member_spec 14831 14832# Shell to use when invoking shell scripts. 14833SHELL=$lt_SHELL 14834 14835# An echo program that protects backslashes. 14836ECHO=$lt_ECHO 14837 14838# The PATH separator for the build system. 14839PATH_SEPARATOR=$lt_PATH_SEPARATOR 14840 14841# The host system. 14842host_alias=$host_alias 14843host=$host 14844host_os=$host_os 14845 14846# The build system. 14847build_alias=$build_alias 14848build=$build 14849build_os=$build_os 14850 14851# A sed program that does not truncate output. 14852SED=$lt_SED 14853 14854# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14855Xsed="\$SED -e 1s/^X//" 14856 14857# A grep program that handles long lines. 14858GREP=$lt_GREP 14859 14860# An ERE matcher. 14861EGREP=$lt_EGREP 14862 14863# A literal string matcher. 14864FGREP=$lt_FGREP 14865 14866# A BSD- or MS-compatible name lister. 14867NM=$lt_NM 14868 14869# Whether we need soft or hard links. 14870LN_S=$lt_LN_S 14871 14872# What is the maximum length of a command? 14873max_cmd_len=$max_cmd_len 14874 14875# Object file suffix (normally "o"). 14876objext=$ac_objext 14877 14878# Executable file suffix (normally ""). 14879exeext=$exeext 14880 14881# whether the shell understands "unset". 14882lt_unset=$lt_unset 14883 14884# turn spaces into newlines. 14885SP2NL=$lt_lt_SP2NL 14886 14887# turn newlines into spaces. 14888NL2SP=$lt_lt_NL2SP 14889 14890# convert \$build file names to \$host format. 14891to_host_file_cmd=$lt_cv_to_host_file_cmd 14892 14893# convert \$build files to toolchain format. 14894to_tool_file_cmd=$lt_cv_to_tool_file_cmd 14895 14896# An object symbol dumper. 14897OBJDUMP=$lt_OBJDUMP 14898 14899# Method to check whether dependent libraries are shared objects. 14900deplibs_check_method=$lt_deplibs_check_method 14901 14902# Command to use when deplibs_check_method = "file_magic". 14903file_magic_cmd=$lt_file_magic_cmd 14904 14905# How to find potential files when deplibs_check_method = "file_magic". 14906file_magic_glob=$lt_file_magic_glob 14907 14908# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 14909want_nocaseglob=$lt_want_nocaseglob 14910 14911# DLL creation program. 14912DLLTOOL=$lt_DLLTOOL 14913 14914# Command to associate shared and link libraries. 14915sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 14916 14917# The archiver. 14918AR=$lt_AR 14919 14920# Flags to create an archive. 14921AR_FLAGS=$lt_AR_FLAGS 14922 14923# How to feed a file listing to the archiver. 14924archiver_list_spec=$lt_archiver_list_spec 14925 14926# A symbol stripping program. 14927STRIP=$lt_STRIP 14928 14929# Commands used to install an old-style archive. 14930RANLIB=$lt_RANLIB 14931old_postinstall_cmds=$lt_old_postinstall_cmds 14932old_postuninstall_cmds=$lt_old_postuninstall_cmds 14933 14934# Whether to use a lock for old archive extraction. 14935lock_old_archive_extraction=$lock_old_archive_extraction 14936 14937# A C compiler. 14938LTCC=$lt_CC 14939 14940# LTCC compiler flags. 14941LTCFLAGS=$lt_CFLAGS 14942 14943# Take the output of nm and produce a listing of raw symbols and C names. 14944global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14945 14946# Transform the output of nm in a proper C declaration. 14947global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14948 14949# Transform the output of nm into a list of symbols to manually relocate. 14950global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 14951 14952# Transform the output of nm in a C name address pair. 14953global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14954 14955# Transform the output of nm in a C name address pair when lib prefix is needed. 14956global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14957 14958# The name lister interface. 14959nm_interface=$lt_lt_cv_nm_interface 14960 14961# Specify filename containing input files for \$NM. 14962nm_file_list_spec=$lt_nm_file_list_spec 14963 14964# The root where to search for dependent libraries,and where our libraries should be installed. 14965lt_sysroot=$lt_sysroot 14966 14967# Command to truncate a binary pipe. 14968lt_truncate_bin=$lt_lt_cv_truncate_bin 14969 14970# The name of the directory that contains temporary libtool files. 14971objdir=$objdir 14972 14973# Used to examine libraries when file_magic_cmd begins with "file". 14974MAGIC_CMD=$MAGIC_CMD 14975 14976# Must we lock files when doing compilation? 14977need_locks=$lt_need_locks 14978 14979# Manifest tool. 14980MANIFEST_TOOL=$lt_MANIFEST_TOOL 14981 14982# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14983DSYMUTIL=$lt_DSYMUTIL 14984 14985# Tool to change global to local symbols on Mac OS X. 14986NMEDIT=$lt_NMEDIT 14987 14988# Tool to manipulate fat objects and archives on Mac OS X. 14989LIPO=$lt_LIPO 14990 14991# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14992OTOOL=$lt_OTOOL 14993 14994# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14995OTOOL64=$lt_OTOOL64 14996 14997# Old archive suffix (normally "a"). 14998libext=$libext 14999 15000# Shared library suffix (normally ".so"). 15001shrext_cmds=$lt_shrext_cmds 15002 15003# The commands to extract the exported symbol list from a shared archive. 15004extract_expsyms_cmds=$lt_extract_expsyms_cmds 15005 15006# Variables whose values should be saved in libtool wrapper scripts and 15007# restored at link time. 15008variables_saved_for_relink=$lt_variables_saved_for_relink 15009 15010# Do we need the "lib" prefix for modules? 15011need_lib_prefix=$need_lib_prefix 15012 15013# Do we need a version for libraries? 15014need_version=$need_version 15015 15016# Library versioning type. 15017version_type=$version_type 15018 15019# Shared library runtime path variable. 15020runpath_var=$runpath_var 15021 15022# Shared library path variable. 15023shlibpath_var=$shlibpath_var 15024 15025# Is shlibpath searched before the hard-coded library search path? 15026shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15027 15028# Format of library name prefix. 15029libname_spec=$lt_libname_spec 15030 15031# List of archive names. First name is the real one, the rest are links. 15032# The last name is the one that the linker finds with -lNAME 15033library_names_spec=$lt_library_names_spec 15034 15035# The coded name of the library, if different from the real name. 15036soname_spec=$lt_soname_spec 15037 15038# Permission mode override for installation of shared libraries. 15039install_override_mode=$lt_install_override_mode 15040 15041# Command to use after installation of a shared archive. 15042postinstall_cmds=$lt_postinstall_cmds 15043 15044# Command to use after uninstallation of a shared archive. 15045postuninstall_cmds=$lt_postuninstall_cmds 15046 15047# Commands used to finish a libtool library installation in a directory. 15048finish_cmds=$lt_finish_cmds 15049 15050# As "finish_cmds", except a single script fragment to be evaled but 15051# not shown. 15052finish_eval=$lt_finish_eval 15053 15054# Whether we should hardcode library paths into libraries. 15055hardcode_into_libs=$hardcode_into_libs 15056 15057# Compile-time system search path for libraries. 15058sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15059 15060# Detected run-time system search path for libraries. 15061sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 15062 15063# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 15064configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 15065 15066# Whether dlopen is supported. 15067dlopen_support=$enable_dlopen 15068 15069# Whether dlopen of programs is supported. 15070dlopen_self=$enable_dlopen_self 15071 15072# Whether dlopen of statically linked programs is supported. 15073dlopen_self_static=$enable_dlopen_self_static 15074 15075# Commands to strip libraries. 15076old_striplib=$lt_old_striplib 15077striplib=$lt_striplib 15078 15079 15080# The linker used to build libraries. 15081LD=$lt_LD 15082 15083# How to create reloadable object files. 15084reload_flag=$lt_reload_flag 15085reload_cmds=$lt_reload_cmds 15086 15087# Commands used to build an old-style archive. 15088old_archive_cmds=$lt_old_archive_cmds 15089 15090# A language specific compiler. 15091CC=$lt_compiler 15092 15093# Is the compiler the GNU compiler? 15094with_gcc=$GCC 15095 15096# Compiler flag to turn off builtin functions. 15097no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15098 15099# Additional compiler flags for building library objects. 15100pic_flag=$lt_lt_prog_compiler_pic 15101 15102# How to pass a linker flag through the compiler. 15103wl=$lt_lt_prog_compiler_wl 15104 15105# Compiler flag to prevent dynamic linking. 15106link_static_flag=$lt_lt_prog_compiler_static 15107 15108# Does compiler simultaneously support -c and -o options? 15109compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15110 15111# Whether or not to add -lc for building shared libraries. 15112build_libtool_need_lc=$archive_cmds_need_lc 15113 15114# Whether or not to disallow shared libs when runtime libs are static. 15115allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15116 15117# Compiler flag to allow reflexive dlopens. 15118export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15119 15120# Compiler flag to generate shared objects directly from archives. 15121whole_archive_flag_spec=$lt_whole_archive_flag_spec 15122 15123# Whether the compiler copes with passing no objects directly. 15124compiler_needs_object=$lt_compiler_needs_object 15125 15126# Create an old-style archive from a shared archive. 15127old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15128 15129# Create a temporary old-style archive to link instead of a shared archive. 15130old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15131 15132# Commands used to build a shared archive. 15133archive_cmds=$lt_archive_cmds 15134archive_expsym_cmds=$lt_archive_expsym_cmds 15135 15136# Commands used to build a loadable module if different from building 15137# a shared archive. 15138module_cmds=$lt_module_cmds 15139module_expsym_cmds=$lt_module_expsym_cmds 15140 15141# Whether we are building with GNU ld or not. 15142with_gnu_ld=$lt_with_gnu_ld 15143 15144# Flag that allows shared libraries with undefined symbols to be built. 15145allow_undefined_flag=$lt_allow_undefined_flag 15146 15147# Flag that enforces no undefined symbols. 15148no_undefined_flag=$lt_no_undefined_flag 15149 15150# Flag to hardcode \$libdir into a binary during linking. 15151# This must work even if \$libdir does not exist 15152hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15153 15154# Whether we need a single "-rpath" flag with a separated argument. 15155hardcode_libdir_separator=$lt_hardcode_libdir_separator 15156 15157# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15158# DIR into the resulting binary. 15159hardcode_direct=$hardcode_direct 15160 15161# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15162# DIR into the resulting binary and the resulting library dependency is 15163# "absolute",i.e impossible to change by setting \$shlibpath_var if the 15164# library is relocated. 15165hardcode_direct_absolute=$hardcode_direct_absolute 15166 15167# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15168# into the resulting binary. 15169hardcode_minus_L=$hardcode_minus_L 15170 15171# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15172# into the resulting binary. 15173hardcode_shlibpath_var=$hardcode_shlibpath_var 15174 15175# Set to "yes" if building a shared library automatically hardcodes DIR 15176# into the library and all subsequent libraries and executables linked 15177# against it. 15178hardcode_automatic=$hardcode_automatic 15179 15180# Set to yes if linker adds runtime paths of dependent libraries 15181# to runtime path list. 15182inherit_rpath=$inherit_rpath 15183 15184# Whether libtool must link a program against all its dependency libraries. 15185link_all_deplibs=$link_all_deplibs 15186 15187# Set to "yes" if exported symbols are required. 15188always_export_symbols=$always_export_symbols 15189 15190# The commands to list exported symbols. 15191export_symbols_cmds=$lt_export_symbols_cmds 15192 15193# Symbols that should not be listed in the preloaded symbols. 15194exclude_expsyms=$lt_exclude_expsyms 15195 15196# Symbols that must always be exported. 15197include_expsyms=$lt_include_expsyms 15198 15199# Commands necessary for linking programs (against libraries) with templates. 15200prelink_cmds=$lt_prelink_cmds 15201 15202# Commands necessary for finishing linking programs. 15203postlink_cmds=$lt_postlink_cmds 15204 15205# Specify filename containing input files. 15206file_list_spec=$lt_file_list_spec 15207 15208# How to hardcode a shared library path into an executable. 15209hardcode_action=$hardcode_action 15210 15211# ### END LIBTOOL CONFIG 15212 15213_LT_EOF 15214 15215 cat <<'_LT_EOF' >> "$cfgfile" 15216 15217# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 15218 15219# func_munge_path_list VARIABLE PATH 15220# ----------------------------------- 15221# VARIABLE is name of variable containing _space_ separated list of 15222# directories to be munged by the contents of PATH, which is string 15223# having a format: 15224# "DIR[:DIR]:" 15225# string "DIR[ DIR]" will be prepended to VARIABLE 15226# ":DIR[:DIR]" 15227# string "DIR[ DIR]" will be appended to VARIABLE 15228# "DIRP[:DIRP]::[DIRA:]DIRA" 15229# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 15230# "DIRA[ DIRA]" will be appended to VARIABLE 15231# "DIR[:DIR]" 15232# VARIABLE will be replaced by "DIR[ DIR]" 15233func_munge_path_list () 15234{ 15235 case x$2 in 15236 x) 15237 ;; 15238 *:) 15239 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 15240 ;; 15241 x:*) 15242 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 15243 ;; 15244 *::*) 15245 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 15246 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 15247 ;; 15248 *) 15249 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 15250 ;; 15251 esac 15252} 15253 15254 15255# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 15256func_cc_basename () 15257{ 15258 for cc_temp in $*""; do 15259 case $cc_temp in 15260 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15261 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15262 \-*) ;; 15263 *) break;; 15264 esac 15265 done 15266 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 15267} 15268 15269 15270# ### END FUNCTIONS SHARED WITH CONFIGURE 15271 15272_LT_EOF 15273 15274 case $host_os in 15275 aix3*) 15276 cat <<\_LT_EOF >> "$cfgfile" 15277# AIX sometimes has problems with the GCC collect2 program. For some 15278# reason, if we set the COLLECT_NAMES environment variable, the problems 15279# vanish in a puff of smoke. 15280if test set != "${COLLECT_NAMES+set}"; then 15281 COLLECT_NAMES= 15282 export COLLECT_NAMES 15283fi 15284_LT_EOF 15285 ;; 15286 esac 15287 15288 15289ltmain=$ac_aux_dir/ltmain.sh 15290 15291 15292 # We use sed instead of cat because bash on DJGPP gets confused if 15293 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15294 # text mode, it properly converts lines to CR/LF. This bash problem 15295 # is reportedly fixed, but why not run on old versions too? 15296 sed '$q' "$ltmain" >> "$cfgfile" \ 15297 || (rm -f "$cfgfile"; exit 1) 15298 15299 mv -f "$cfgfile" "$ofile" || 15300 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15301 chmod +x "$ofile" 15302 15303 ;; 15304 15305 esac 15306done # for ac_tag 15307 15308 15309as_fn_exit 0 15310_ACEOF 15311ac_clean_files=$ac_clean_files_save 15312 15313test $ac_write_fail = 0 || 15314 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15315 15316 15317# configure is writing to config.log, and then calls config.status. 15318# config.status does its own redirection, appending to config.log. 15319# Unfortunately, on DOS this fails, as config.log is still kept open 15320# by configure, so config.status won't be able to write to it; its 15321# output is simply discarded. So we exec the FD to /dev/null, 15322# effectively closing config.log, so it can be properly (re)opened and 15323# appended to by config.status. When coming back to configure, we 15324# need to make the FD available again. 15325if test "$no_create" != yes; then 15326 ac_cs_success=: 15327 ac_config_status_args= 15328 test "$silent" = yes && 15329 ac_config_status_args="$ac_config_status_args --quiet" 15330 exec 5>/dev/null 15331 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15332 exec 5>>config.log 15333 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15334 # would make configure fail if this is the last instruction. 15335 $ac_cs_success || as_fn_exit 1 15336fi 15337if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15339$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15340fi 15341 15342 15343