1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for numlib 0.10. 4# 5# Report bugs to <courier-users@lists.sourceforge.net>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 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: courier-users@lists.sourceforge.net about your system, 279$0: including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='numlib' 592PACKAGE_TARNAME='numlib' 593PACKAGE_VERSION='0.10' 594PACKAGE_STRING='numlib 0.10' 595PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' 596PACKAGE_URL='' 597 598ac_unique_file="atotimet.c" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639CPP 640LT_SYS_LIBRARY_PATH 641OTOOL64 642OTOOL 643LIPO 644NMEDIT 645DSYMUTIL 646MANIFEST_TOOL 647RANLIB 648ac_ct_AR 649AR 650DLLTOOL 651OBJDUMP 652NM 653ac_ct_DUMPBIN 654DUMPBIN 655LD 656FGREP 657EGREP 658GREP 659SED 660host_os 661host_vendor 662host_cpu 663host 664build_os 665build_vendor 666build_cpu 667build 668LIBTOOL 669LN_S 670am__fastdepCC_FALSE 671am__fastdepCC_TRUE 672CCDEPMODE 673am__nodep 674AMDEPBACKSLASH 675AMDEP_FALSE 676AMDEP_TRUE 677am__include 678DEPDIR 679OBJEXT 680EXEEXT 681ac_ct_CC 682CPPFLAGS 683LDFLAGS 684CFLAGS 685CC 686AM_BACKSLASH 687AM_DEFAULT_VERBOSITY 688AM_DEFAULT_V 689AM_V 690am__untar 691am__tar 692AMTAR 693am__leading_dot 694SET_MAKE 695AWK 696mkdir_p 697MKDIR_P 698INSTALL_STRIP_PROGRAM 699STRIP 700install_sh 701MAKEINFO 702AUTOHEADER 703AUTOMAKE 704AUTOCONF 705ACLOCAL 706VERSION 707PACKAGE 708CYGPATH_W 709am__isrc 710INSTALL_DATA 711INSTALL_SCRIPT 712INSTALL_PROGRAM 713target_alias 714host_alias 715build_alias 716LIBS 717ECHO_T 718ECHO_N 719ECHO_C 720DEFS 721mandir 722localedir 723libdir 724psdir 725pdfdir 726dvidir 727htmldir 728infodir 729docdir 730oldincludedir 731includedir 732runstatedir 733localstatedir 734sharedstatedir 735sysconfdir 736datadir 737datarootdir 738libexecdir 739sbindir 740bindir 741program_transform_name 742prefix 743exec_prefix 744PACKAGE_URL 745PACKAGE_BUGREPORT 746PACKAGE_STRING 747PACKAGE_VERSION 748PACKAGE_TARNAME 749PACKAGE_NAME 750PATH_SEPARATOR 751SHELL 752am__quote' 753ac_subst_files='' 754ac_user_opts=' 755enable_option_checking 756enable_silent_rules 757enable_dependency_tracking 758enable_shared 759enable_static 760with_pic 761enable_fast_install 762with_aix_soname 763with_gnu_ld 764with_sysroot 765enable_libtool_lock 766enable_largefile 767' 768 ac_precious_vars='build_alias 769host_alias 770target_alias 771CC 772CFLAGS 773LDFLAGS 774LIBS 775CPPFLAGS 776LT_SYS_LIBRARY_PATH 777CPP' 778 779 780# Initialize some variables set by options. 781ac_init_help= 782ac_init_version=false 783ac_unrecognized_opts= 784ac_unrecognized_sep= 785# The variables have the same names as the options, with 786# dashes changed to underlines. 787cache_file=/dev/null 788exec_prefix=NONE 789no_create= 790no_recursion= 791prefix=NONE 792program_prefix=NONE 793program_suffix=NONE 794program_transform_name=s,x,x, 795silent= 796site= 797srcdir= 798verbose= 799x_includes=NONE 800x_libraries=NONE 801 802# Installation directory options. 803# These are left unexpanded so users can "make install exec_prefix=/foo" 804# and all the variables that are supposed to be based on exec_prefix 805# by default will actually change. 806# Use braces instead of parens because sh, perl, etc. also accept them. 807# (The list follows the same order as the GNU Coding Standards.) 808bindir='${exec_prefix}/bin' 809sbindir='${exec_prefix}/sbin' 810libexecdir='${exec_prefix}/libexec' 811datarootdir='${prefix}/share' 812datadir='${datarootdir}' 813sysconfdir='${prefix}/etc' 814sharedstatedir='${prefix}/com' 815localstatedir='${prefix}/var' 816runstatedir='${localstatedir}/run' 817includedir='${prefix}/include' 818oldincludedir='/usr/include' 819docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 820infodir='${datarootdir}/info' 821htmldir='${docdir}' 822dvidir='${docdir}' 823pdfdir='${docdir}' 824psdir='${docdir}' 825libdir='${exec_prefix}/lib' 826localedir='${datarootdir}/locale' 827mandir='${datarootdir}/man' 828 829ac_prev= 830ac_dashdash= 831for ac_option 832do 833 # If the previous option needs an argument, assign it. 834 if test -n "$ac_prev"; then 835 eval $ac_prev=\$ac_option 836 ac_prev= 837 continue 838 fi 839 840 case $ac_option in 841 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 842 *=) ac_optarg= ;; 843 *) ac_optarg=yes ;; 844 esac 845 846 # Accept the important Cygnus configure options, so we can diagnose typos. 847 848 case $ac_dashdash$ac_option in 849 --) 850 ac_dashdash=yes ;; 851 852 -bindir | --bindir | --bindi | --bind | --bin | --bi) 853 ac_prev=bindir ;; 854 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 855 bindir=$ac_optarg ;; 856 857 -build | --build | --buil | --bui | --bu) 858 ac_prev=build_alias ;; 859 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 860 build_alias=$ac_optarg ;; 861 862 -cache-file | --cache-file | --cache-fil | --cache-fi \ 863 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 864 ac_prev=cache_file ;; 865 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 866 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 867 cache_file=$ac_optarg ;; 868 869 --config-cache | -C) 870 cache_file=config.cache ;; 871 872 -datadir | --datadir | --datadi | --datad) 873 ac_prev=datadir ;; 874 -datadir=* | --datadir=* | --datadi=* | --datad=*) 875 datadir=$ac_optarg ;; 876 877 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 878 | --dataroo | --dataro | --datar) 879 ac_prev=datarootdir ;; 880 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 881 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 882 datarootdir=$ac_optarg ;; 883 884 -disable-* | --disable-*) 885 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 886 # Reject names that are not valid shell variable names. 887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 888 as_fn_error $? "invalid feature name: $ac_useropt" 889 ac_useropt_orig=$ac_useropt 890 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 891 case $ac_user_opts in 892 *" 893"enable_$ac_useropt" 894"*) ;; 895 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 896 ac_unrecognized_sep=', ';; 897 esac 898 eval enable_$ac_useropt=no ;; 899 900 -docdir | --docdir | --docdi | --doc | --do) 901 ac_prev=docdir ;; 902 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 903 docdir=$ac_optarg ;; 904 905 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 906 ac_prev=dvidir ;; 907 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 908 dvidir=$ac_optarg ;; 909 910 -enable-* | --enable-*) 911 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 912 # Reject names that are not valid shell variable names. 913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 914 as_fn_error $? "invalid feature name: $ac_useropt" 915 ac_useropt_orig=$ac_useropt 916 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 917 case $ac_user_opts in 918 *" 919"enable_$ac_useropt" 920"*) ;; 921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 922 ac_unrecognized_sep=', ';; 923 esac 924 eval enable_$ac_useropt=\$ac_optarg ;; 925 926 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 927 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 928 | --exec | --exe | --ex) 929 ac_prev=exec_prefix ;; 930 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 931 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 932 | --exec=* | --exe=* | --ex=*) 933 exec_prefix=$ac_optarg ;; 934 935 -gas | --gas | --ga | --g) 936 # Obsolete; use --with-gas. 937 with_gas=yes ;; 938 939 -help | --help | --hel | --he | -h) 940 ac_init_help=long ;; 941 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 942 ac_init_help=recursive ;; 943 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 944 ac_init_help=short ;; 945 946 -host | --host | --hos | --ho) 947 ac_prev=host_alias ;; 948 -host=* | --host=* | --hos=* | --ho=*) 949 host_alias=$ac_optarg ;; 950 951 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 952 ac_prev=htmldir ;; 953 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 954 | --ht=*) 955 htmldir=$ac_optarg ;; 956 957 -includedir | --includedir | --includedi | --included | --include \ 958 | --includ | --inclu | --incl | --inc) 959 ac_prev=includedir ;; 960 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 961 | --includ=* | --inclu=* | --incl=* | --inc=*) 962 includedir=$ac_optarg ;; 963 964 -infodir | --infodir | --infodi | --infod | --info | --inf) 965 ac_prev=infodir ;; 966 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 967 infodir=$ac_optarg ;; 968 969 -libdir | --libdir | --libdi | --libd) 970 ac_prev=libdir ;; 971 -libdir=* | --libdir=* | --libdi=* | --libd=*) 972 libdir=$ac_optarg ;; 973 974 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 975 | --libexe | --libex | --libe) 976 ac_prev=libexecdir ;; 977 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 978 | --libexe=* | --libex=* | --libe=*) 979 libexecdir=$ac_optarg ;; 980 981 -localedir | --localedir | --localedi | --localed | --locale) 982 ac_prev=localedir ;; 983 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 984 localedir=$ac_optarg ;; 985 986 -localstatedir | --localstatedir | --localstatedi | --localstated \ 987 | --localstate | --localstat | --localsta | --localst | --locals) 988 ac_prev=localstatedir ;; 989 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 990 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 991 localstatedir=$ac_optarg ;; 992 993 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 994 ac_prev=mandir ;; 995 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 996 mandir=$ac_optarg ;; 997 998 -nfp | --nfp | --nf) 999 # Obsolete; use --without-fp. 1000 with_fp=no ;; 1001 1002 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1003 | --no-cr | --no-c | -n) 1004 no_create=yes ;; 1005 1006 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1007 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1008 no_recursion=yes ;; 1009 1010 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1011 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1012 | --oldin | --oldi | --old | --ol | --o) 1013 ac_prev=oldincludedir ;; 1014 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1015 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1016 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1017 oldincludedir=$ac_optarg ;; 1018 1019 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1020 ac_prev=prefix ;; 1021 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1022 prefix=$ac_optarg ;; 1023 1024 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1025 | --program-pre | --program-pr | --program-p) 1026 ac_prev=program_prefix ;; 1027 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1028 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1029 program_prefix=$ac_optarg ;; 1030 1031 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1032 | --program-suf | --program-su | --program-s) 1033 ac_prev=program_suffix ;; 1034 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1035 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1036 program_suffix=$ac_optarg ;; 1037 1038 -program-transform-name | --program-transform-name \ 1039 | --program-transform-nam | --program-transform-na \ 1040 | --program-transform-n | --program-transform- \ 1041 | --program-transform | --program-transfor \ 1042 | --program-transfo | --program-transf \ 1043 | --program-trans | --program-tran \ 1044 | --progr-tra | --program-tr | --program-t) 1045 ac_prev=program_transform_name ;; 1046 -program-transform-name=* | --program-transform-name=* \ 1047 | --program-transform-nam=* | --program-transform-na=* \ 1048 | --program-transform-n=* | --program-transform-=* \ 1049 | --program-transform=* | --program-transfor=* \ 1050 | --program-transfo=* | --program-transf=* \ 1051 | --program-trans=* | --program-tran=* \ 1052 | --progr-tra=* | --program-tr=* | --program-t=*) 1053 program_transform_name=$ac_optarg ;; 1054 1055 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1056 ac_prev=pdfdir ;; 1057 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1058 pdfdir=$ac_optarg ;; 1059 1060 -psdir | --psdir | --psdi | --psd | --ps) 1061 ac_prev=psdir ;; 1062 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1063 psdir=$ac_optarg ;; 1064 1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1066 | -silent | --silent | --silen | --sile | --sil) 1067 silent=yes ;; 1068 1069 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1070 | --runstate | --runstat | --runsta | --runst | --runs \ 1071 | --run | --ru | --r) 1072 ac_prev=runstatedir ;; 1073 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1074 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1075 | --run=* | --ru=* | --r=*) 1076 runstatedir=$ac_optarg ;; 1077 1078 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1079 ac_prev=sbindir ;; 1080 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1081 | --sbi=* | --sb=*) 1082 sbindir=$ac_optarg ;; 1083 1084 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1085 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1086 | --sharedst | --shareds | --shared | --share | --shar \ 1087 | --sha | --sh) 1088 ac_prev=sharedstatedir ;; 1089 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1090 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1091 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1092 | --sha=* | --sh=*) 1093 sharedstatedir=$ac_optarg ;; 1094 1095 -site | --site | --sit) 1096 ac_prev=site ;; 1097 -site=* | --site=* | --sit=*) 1098 site=$ac_optarg ;; 1099 1100 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1101 ac_prev=srcdir ;; 1102 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1103 srcdir=$ac_optarg ;; 1104 1105 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1106 | --syscon | --sysco | --sysc | --sys | --sy) 1107 ac_prev=sysconfdir ;; 1108 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1109 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1110 sysconfdir=$ac_optarg ;; 1111 1112 -target | --target | --targe | --targ | --tar | --ta | --t) 1113 ac_prev=target_alias ;; 1114 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1115 target_alias=$ac_optarg ;; 1116 1117 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1118 verbose=yes ;; 1119 1120 -version | --version | --versio | --versi | --vers | -V) 1121 ac_init_version=: ;; 1122 1123 -with-* | --with-*) 1124 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1125 # Reject names that are not valid shell variable names. 1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1127 as_fn_error $? "invalid package name: $ac_useropt" 1128 ac_useropt_orig=$ac_useropt 1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1130 case $ac_user_opts in 1131 *" 1132"with_$ac_useropt" 1133"*) ;; 1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1135 ac_unrecognized_sep=', ';; 1136 esac 1137 eval with_$ac_useropt=\$ac_optarg ;; 1138 1139 -without-* | --without-*) 1140 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1141 # Reject names that are not valid shell variable names. 1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1143 as_fn_error $? "invalid package name: $ac_useropt" 1144 ac_useropt_orig=$ac_useropt 1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1146 case $ac_user_opts in 1147 *" 1148"with_$ac_useropt" 1149"*) ;; 1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1151 ac_unrecognized_sep=', ';; 1152 esac 1153 eval with_$ac_useropt=no ;; 1154 1155 --x) 1156 # Obsolete; use --with-x. 1157 with_x=yes ;; 1158 1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1160 | --x-incl | --x-inc | --x-in | --x-i) 1161 ac_prev=x_includes ;; 1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1164 x_includes=$ac_optarg ;; 1165 1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1168 ac_prev=x_libraries ;; 1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1171 x_libraries=$ac_optarg ;; 1172 1173 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1174Try \`$0 --help' for more information" 1175 ;; 1176 1177 *=*) 1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1179 # Reject names that are not valid shell variable names. 1180 case $ac_envvar in #( 1181 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1182 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1183 esac 1184 eval $ac_envvar=\$ac_optarg 1185 export $ac_envvar ;; 1186 1187 *) 1188 # FIXME: should be removed in autoconf 3.0. 1189 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1191 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1192 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1193 ;; 1194 1195 esac 1196done 1197 1198if test -n "$ac_prev"; then 1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1200 as_fn_error $? "missing argument to $ac_option" 1201fi 1202 1203if test -n "$ac_unrecognized_opts"; then 1204 case $enable_option_checking in 1205 no) ;; 1206 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1207 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1208 esac 1209fi 1210 1211# Check all directory arguments for consistency. 1212for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1213 datadir sysconfdir sharedstatedir localstatedir includedir \ 1214 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1215 libdir localedir mandir runstatedir 1216do 1217 eval ac_val=\$$ac_var 1218 # Remove trailing slashes. 1219 case $ac_val in 1220 */ ) 1221 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1222 eval $ac_var=\$ac_val;; 1223 esac 1224 # Be sure to have absolute directory names. 1225 case $ac_val in 1226 [\\/$]* | ?:[\\/]* ) continue;; 1227 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1228 esac 1229 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1230done 1231 1232# There might be people who depend on the old broken behavior: `$host' 1233# used to hold the argument of --host etc. 1234# FIXME: To remove some day. 1235build=$build_alias 1236host=$host_alias 1237target=$target_alias 1238 1239# FIXME: To remove some day. 1240if test "x$host_alias" != x; then 1241 if test "x$build_alias" = x; then 1242 cross_compiling=maybe 1243 elif test "x$build_alias" != "x$host_alias"; then 1244 cross_compiling=yes 1245 fi 1246fi 1247 1248ac_tool_prefix= 1249test -n "$host_alias" && ac_tool_prefix=$host_alias- 1250 1251test "$silent" = yes && exec 6>/dev/null 1252 1253 1254ac_pwd=`pwd` && test -n "$ac_pwd" && 1255ac_ls_di=`ls -di .` && 1256ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1257 as_fn_error $? "working directory cannot be determined" 1258test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1259 as_fn_error $? "pwd does not report name of working directory" 1260 1261 1262# Find the source files, if location was not specified. 1263if test -z "$srcdir"; then 1264 ac_srcdir_defaulted=yes 1265 # Try the directory containing this script, then the parent directory. 1266 ac_confdir=`$as_dirname -- "$as_myself" || 1267$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1268 X"$as_myself" : 'X\(//\)[^/]' \| \ 1269 X"$as_myself" : 'X\(//\)$' \| \ 1270 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1271$as_echo X"$as_myself" | 1272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1273 s//\1/ 1274 q 1275 } 1276 /^X\(\/\/\)[^/].*/{ 1277 s//\1/ 1278 q 1279 } 1280 /^X\(\/\/\)$/{ 1281 s//\1/ 1282 q 1283 } 1284 /^X\(\/\).*/{ 1285 s//\1/ 1286 q 1287 } 1288 s/.*/./; q'` 1289 srcdir=$ac_confdir 1290 if test ! -r "$srcdir/$ac_unique_file"; then 1291 srcdir=.. 1292 fi 1293else 1294 ac_srcdir_defaulted=no 1295fi 1296if test ! -r "$srcdir/$ac_unique_file"; then 1297 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1298 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1299fi 1300ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1301ac_abs_confdir=`( 1302 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1303 pwd)` 1304# When building in place, set srcdir=. 1305if test "$ac_abs_confdir" = "$ac_pwd"; then 1306 srcdir=. 1307fi 1308# Remove unnecessary trailing slashes from srcdir. 1309# Double slashes in file names in object file debugging info 1310# mess up M-x gdb in Emacs. 1311case $srcdir in 1312*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1313esac 1314for ac_var in $ac_precious_vars; do 1315 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1316 eval ac_env_${ac_var}_value=\$${ac_var} 1317 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1318 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1319done 1320 1321# 1322# Report the --help message. 1323# 1324if test "$ac_init_help" = "long"; then 1325 # Omit some internal or obsolete options to make the list less imposing. 1326 # This message is too long to be a string in the A/UX 3.1 sh. 1327 cat <<_ACEOF 1328\`configure' configures numlib 0.10 to adapt to many kinds of systems. 1329 1330Usage: $0 [OPTION]... [VAR=VALUE]... 1331 1332To assign environment variables (e.g., CC, CFLAGS...), specify them as 1333VAR=VALUE. See below for descriptions of some of the useful variables. 1334 1335Defaults for the options are specified in brackets. 1336 1337Configuration: 1338 -h, --help display this help and exit 1339 --help=short display options specific to this package 1340 --help=recursive display the short help of all the included packages 1341 -V, --version display version information and exit 1342 -q, --quiet, --silent do not print \`checking ...' messages 1343 --cache-file=FILE cache test results in FILE [disabled] 1344 -C, --config-cache alias for \`--cache-file=config.cache' 1345 -n, --no-create do not create output files 1346 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1347 1348Installation directories: 1349 --prefix=PREFIX install architecture-independent files in PREFIX 1350 [$ac_default_prefix] 1351 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1352 [PREFIX] 1353 1354By default, \`make install' will install all the files in 1355\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1356an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1357for instance \`--prefix=\$HOME'. 1358 1359For better control, use the options below. 1360 1361Fine tuning of the installation directories: 1362 --bindir=DIR user executables [EPREFIX/bin] 1363 --sbindir=DIR system admin executables [EPREFIX/sbin] 1364 --libexecdir=DIR program executables [EPREFIX/libexec] 1365 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1366 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1367 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1368 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1369 --libdir=DIR object code libraries [EPREFIX/lib] 1370 --includedir=DIR C header files [PREFIX/include] 1371 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1374 --infodir=DIR info documentation [DATAROOTDIR/info] 1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1376 --mandir=DIR man documentation [DATAROOTDIR/man] 1377 --docdir=DIR documentation root [DATAROOTDIR/doc/numlib] 1378 --htmldir=DIR html documentation [DOCDIR] 1379 --dvidir=DIR dvi documentation [DOCDIR] 1380 --pdfdir=DIR pdf documentation [DOCDIR] 1381 --psdir=DIR ps documentation [DOCDIR] 1382_ACEOF 1383 1384 cat <<\_ACEOF 1385 1386Program names: 1387 --program-prefix=PREFIX prepend PREFIX to installed program names 1388 --program-suffix=SUFFIX append SUFFIX to installed program names 1389 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1390 1391System types: 1392 --build=BUILD configure for building on BUILD [guessed] 1393 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1394_ACEOF 1395fi 1396 1397if test -n "$ac_init_help"; then 1398 case $ac_init_help in 1399 short | recursive ) echo "Configuration of numlib 0.10:";; 1400 esac 1401 cat <<\_ACEOF 1402 1403Optional Features: 1404 --disable-option-checking ignore unrecognized --enable/--with options 1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1407 --enable-silent-rules less verbose build output (undo: "make V=1") 1408 --disable-silent-rules verbose build output (undo: "make V=0") 1409 --enable-dependency-tracking 1410 do not reject slow dependency extractors 1411 --disable-dependency-tracking 1412 speeds up one-time build 1413 --enable-shared[=PKGS] build shared libraries [default=yes] 1414 --enable-static[=PKGS] build static libraries [default=yes] 1415 --enable-fast-install[=PKGS] 1416 optimize for fast installation [default=yes] 1417 --disable-libtool-lock avoid locking (might break parallel builds) 1418 --disable-largefile omit support for large files 1419 1420Optional Packages: 1421 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1423 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1424 both] 1425 --with-aix-soname=aix|svr4|both 1426 shared library versioning (aka "SONAME") variant to 1427 provide on AIX, [default=aix]. 1428 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1429 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1430 compiler's sysroot if not specified). 1431 1432Some influential environment variables: 1433 CC C compiler command 1434 CFLAGS C compiler flags 1435 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1436 nonstandard directory <lib dir> 1437 LIBS libraries to pass to the linker, e.g. -l<library> 1438 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1439 you have headers in a nonstandard directory <include dir> 1440 LT_SYS_LIBRARY_PATH 1441 User-defined run-time library search path. 1442 CPP C preprocessor 1443 1444Use these variables to override the choices made by `configure' or to help 1445it to find libraries and programs with nonstandard names/locations. 1446 1447Report bugs to <courier-users@lists.sourceforge.net>. 1448_ACEOF 1449ac_status=$? 1450fi 1451 1452if test "$ac_init_help" = "recursive"; then 1453 # If there are subdirs, report their specific --help. 1454 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1455 test -d "$ac_dir" || 1456 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1457 continue 1458 ac_builddir=. 1459 1460case "$ac_dir" in 1461.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1462*) 1463 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1464 # A ".." for each directory in $ac_dir_suffix. 1465 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1466 case $ac_top_builddir_sub in 1467 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1468 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1469 esac ;; 1470esac 1471ac_abs_top_builddir=$ac_pwd 1472ac_abs_builddir=$ac_pwd$ac_dir_suffix 1473# for backward compatibility: 1474ac_top_builddir=$ac_top_build_prefix 1475 1476case $srcdir in 1477 .) # We are building in place. 1478 ac_srcdir=. 1479 ac_top_srcdir=$ac_top_builddir_sub 1480 ac_abs_top_srcdir=$ac_pwd ;; 1481 [\\/]* | ?:[\\/]* ) # Absolute name. 1482 ac_srcdir=$srcdir$ac_dir_suffix; 1483 ac_top_srcdir=$srcdir 1484 ac_abs_top_srcdir=$srcdir ;; 1485 *) # Relative name. 1486 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1487 ac_top_srcdir=$ac_top_build_prefix$srcdir 1488 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1489esac 1490ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1491 1492 cd "$ac_dir" || { ac_status=$?; continue; } 1493 # Check for guested configure. 1494 if test -f "$ac_srcdir/configure.gnu"; then 1495 echo && 1496 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1497 elif test -f "$ac_srcdir/configure"; then 1498 echo && 1499 $SHELL "$ac_srcdir/configure" --help=recursive 1500 else 1501 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1502 fi || ac_status=$? 1503 cd "$ac_pwd" || { ac_status=$?; break; } 1504 done 1505fi 1506 1507test -n "$ac_init_help" && exit $ac_status 1508if $ac_init_version; then 1509 cat <<\_ACEOF 1510numlib configure 0.10 1511generated by GNU Autoconf 2.69 1512 1513Copyright (C) 2012 Free Software Foundation, Inc. 1514This configure script is free software; the Free Software Foundation 1515gives unlimited permission to copy, distribute and modify it. 1516_ACEOF 1517 exit 1518fi 1519 1520## ------------------------ ## 1521## Autoconf initialization. ## 1522## ------------------------ ## 1523 1524# ac_fn_c_try_compile LINENO 1525# -------------------------- 1526# Try to compile conftest.$ac_ext, and return whether this succeeded. 1527ac_fn_c_try_compile () 1528{ 1529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1530 rm -f conftest.$ac_objext 1531 if { { ac_try="$ac_compile" 1532case "(($ac_try" in 1533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1534 *) ac_try_echo=$ac_try;; 1535esac 1536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1537$as_echo "$ac_try_echo"; } >&5 1538 (eval "$ac_compile") 2>conftest.err 1539 ac_status=$? 1540 if test -s conftest.err; then 1541 grep -v '^ *+' conftest.err >conftest.er1 1542 cat conftest.er1 >&5 1543 mv -f conftest.er1 conftest.err 1544 fi 1545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1546 test $ac_status = 0; } && { 1547 test -z "$ac_c_werror_flag" || 1548 test ! -s conftest.err 1549 } && test -s conftest.$ac_objext; then : 1550 ac_retval=0 1551else 1552 $as_echo "$as_me: failed program was:" >&5 1553sed 's/^/| /' conftest.$ac_ext >&5 1554 1555 ac_retval=1 1556fi 1557 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1558 as_fn_set_status $ac_retval 1559 1560} # ac_fn_c_try_compile 1561 1562# ac_fn_c_try_link LINENO 1563# ----------------------- 1564# Try to link conftest.$ac_ext, and return whether this succeeded. 1565ac_fn_c_try_link () 1566{ 1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1568 rm -f conftest.$ac_objext conftest$ac_exeext 1569 if { { ac_try="$ac_link" 1570case "(($ac_try" in 1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1572 *) ac_try_echo=$ac_try;; 1573esac 1574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1575$as_echo "$ac_try_echo"; } >&5 1576 (eval "$ac_link") 2>conftest.err 1577 ac_status=$? 1578 if test -s conftest.err; then 1579 grep -v '^ *+' conftest.err >conftest.er1 1580 cat conftest.er1 >&5 1581 mv -f conftest.er1 conftest.err 1582 fi 1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1584 test $ac_status = 0; } && { 1585 test -z "$ac_c_werror_flag" || 1586 test ! -s conftest.err 1587 } && test -s conftest$ac_exeext && { 1588 test "$cross_compiling" = yes || 1589 test -x conftest$ac_exeext 1590 }; then : 1591 ac_retval=0 1592else 1593 $as_echo "$as_me: failed program was:" >&5 1594sed 's/^/| /' conftest.$ac_ext >&5 1595 1596 ac_retval=1 1597fi 1598 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1599 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1600 # interfere with the next link command; also delete a directory that is 1601 # left behind by Apple's compiler. We do this before executing the actions. 1602 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1604 as_fn_set_status $ac_retval 1605 1606} # ac_fn_c_try_link 1607 1608# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1609# ------------------------------------------------------- 1610# Tests whether HEADER exists and can be compiled using the include files in 1611# INCLUDES, setting the cache variable VAR accordingly. 1612ac_fn_c_check_header_compile () 1613{ 1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1616$as_echo_n "checking for $2... " >&6; } 1617if eval \${$3+:} false; then : 1618 $as_echo_n "(cached) " >&6 1619else 1620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1621/* end confdefs.h. */ 1622$4 1623#include <$2> 1624_ACEOF 1625if ac_fn_c_try_compile "$LINENO"; then : 1626 eval "$3=yes" 1627else 1628 eval "$3=no" 1629fi 1630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1631fi 1632eval ac_res=\$$3 1633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1634$as_echo "$ac_res" >&6; } 1635 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1636 1637} # ac_fn_c_check_header_compile 1638 1639# ac_fn_c_try_cpp LINENO 1640# ---------------------- 1641# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1642ac_fn_c_try_cpp () 1643{ 1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1645 if { { ac_try="$ac_cpp conftest.$ac_ext" 1646case "(($ac_try" in 1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1648 *) ac_try_echo=$ac_try;; 1649esac 1650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1651$as_echo "$ac_try_echo"; } >&5 1652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1653 ac_status=$? 1654 if test -s conftest.err; then 1655 grep -v '^ *+' conftest.err >conftest.er1 1656 cat conftest.er1 >&5 1657 mv -f conftest.er1 conftest.err 1658 fi 1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1660 test $ac_status = 0; } > conftest.i && { 1661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1662 test ! -s conftest.err 1663 }; then : 1664 ac_retval=0 1665else 1666 $as_echo "$as_me: failed program was:" >&5 1667sed 's/^/| /' conftest.$ac_ext >&5 1668 1669 ac_retval=1 1670fi 1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1672 as_fn_set_status $ac_retval 1673 1674} # ac_fn_c_try_cpp 1675 1676# ac_fn_c_try_run LINENO 1677# ---------------------- 1678# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1679# that executables *can* be run. 1680ac_fn_c_try_run () 1681{ 1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1683 if { { ac_try="$ac_link" 1684case "(($ac_try" in 1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1686 *) ac_try_echo=$ac_try;; 1687esac 1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1689$as_echo "$ac_try_echo"; } >&5 1690 (eval "$ac_link") 2>&5 1691 ac_status=$? 1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1693 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1694 { { case "(($ac_try" in 1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1696 *) ac_try_echo=$ac_try;; 1697esac 1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1699$as_echo "$ac_try_echo"; } >&5 1700 (eval "$ac_try") 2>&5 1701 ac_status=$? 1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1703 test $ac_status = 0; }; }; then : 1704 ac_retval=0 1705else 1706 $as_echo "$as_me: program exited with status $ac_status" >&5 1707 $as_echo "$as_me: failed program was:" >&5 1708sed 's/^/| /' conftest.$ac_ext >&5 1709 1710 ac_retval=$ac_status 1711fi 1712 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1714 as_fn_set_status $ac_retval 1715 1716} # ac_fn_c_try_run 1717 1718# ac_fn_c_check_func LINENO FUNC VAR 1719# ---------------------------------- 1720# Tests whether FUNC exists, setting the cache variable VAR accordingly 1721ac_fn_c_check_func () 1722{ 1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1725$as_echo_n "checking for $2... " >&6; } 1726if eval \${$3+:} false; then : 1727 $as_echo_n "(cached) " >&6 1728else 1729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1730/* end confdefs.h. */ 1731/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1732 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1733#define $2 innocuous_$2 1734 1735/* System header to define __stub macros and hopefully few prototypes, 1736 which can conflict with char $2 (); below. 1737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1738 <limits.h> exists even on freestanding compilers. */ 1739 1740#ifdef __STDC__ 1741# include <limits.h> 1742#else 1743# include <assert.h> 1744#endif 1745 1746#undef $2 1747 1748/* Override any GCC internal prototype to avoid an error. 1749 Use char because int might match the return type of a GCC 1750 builtin and then its argument prototype would still apply. */ 1751#ifdef __cplusplus 1752extern "C" 1753#endif 1754char $2 (); 1755/* The GNU C library defines this for functions which it implements 1756 to always fail with ENOSYS. Some functions are actually named 1757 something starting with __ and the normal name is an alias. */ 1758#if defined __stub_$2 || defined __stub___$2 1759choke me 1760#endif 1761 1762int 1763main () 1764{ 1765return $2 (); 1766 ; 1767 return 0; 1768} 1769_ACEOF 1770if ac_fn_c_try_link "$LINENO"; then : 1771 eval "$3=yes" 1772else 1773 eval "$3=no" 1774fi 1775rm -f core conftest.err conftest.$ac_objext \ 1776 conftest$ac_exeext conftest.$ac_ext 1777fi 1778eval ac_res=\$$3 1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1780$as_echo "$ac_res" >&6; } 1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1782 1783} # ac_fn_c_check_func 1784 1785# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1786# ------------------------------------------------------- 1787# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1788# the include files in INCLUDES and setting the cache variable VAR 1789# accordingly. 1790ac_fn_c_check_header_mongrel () 1791{ 1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1793 if eval \${$3+:} false; then : 1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1795$as_echo_n "checking for $2... " >&6; } 1796if eval \${$3+:} false; then : 1797 $as_echo_n "(cached) " >&6 1798fi 1799eval ac_res=\$$3 1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1801$as_echo "$ac_res" >&6; } 1802else 1803 # Is the header compilable? 1804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1805$as_echo_n "checking $2 usability... " >&6; } 1806cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1807/* end confdefs.h. */ 1808$4 1809#include <$2> 1810_ACEOF 1811if ac_fn_c_try_compile "$LINENO"; then : 1812 ac_header_compiler=yes 1813else 1814 ac_header_compiler=no 1815fi 1816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1818$as_echo "$ac_header_compiler" >&6; } 1819 1820# Is the header present? 1821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1822$as_echo_n "checking $2 presence... " >&6; } 1823cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1824/* end confdefs.h. */ 1825#include <$2> 1826_ACEOF 1827if ac_fn_c_try_cpp "$LINENO"; then : 1828 ac_header_preproc=yes 1829else 1830 ac_header_preproc=no 1831fi 1832rm -f conftest.err conftest.i conftest.$ac_ext 1833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1834$as_echo "$ac_header_preproc" >&6; } 1835 1836# So? What about this header? 1837case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1838 yes:no: ) 1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1840$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1842$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1843 ;; 1844 no:yes:* ) 1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1846$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1848$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1850$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1852$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1854$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1855( $as_echo "## -------------------------------------------------- ## 1856## Report this to courier-users@lists.sourceforge.net ## 1857## -------------------------------------------------- ##" 1858 ) | sed "s/^/$as_me: WARNING: /" >&2 1859 ;; 1860esac 1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1862$as_echo_n "checking for $2... " >&6; } 1863if eval \${$3+:} false; then : 1864 $as_echo_n "(cached) " >&6 1865else 1866 eval "$3=\$ac_header_compiler" 1867fi 1868eval ac_res=\$$3 1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1870$as_echo "$ac_res" >&6; } 1871fi 1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1873 1874} # ac_fn_c_check_header_mongrel 1875 1876# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1877# ------------------------------------------- 1878# Tests whether TYPE exists after having included INCLUDES, setting cache 1879# variable VAR accordingly. 1880ac_fn_c_check_type () 1881{ 1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1884$as_echo_n "checking for $2... " >&6; } 1885if eval \${$3+:} false; then : 1886 $as_echo_n "(cached) " >&6 1887else 1888 eval "$3=no" 1889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1890/* end confdefs.h. */ 1891$4 1892int 1893main () 1894{ 1895if (sizeof ($2)) 1896 return 0; 1897 ; 1898 return 0; 1899} 1900_ACEOF 1901if ac_fn_c_try_compile "$LINENO"; then : 1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1903/* end confdefs.h. */ 1904$4 1905int 1906main () 1907{ 1908if (sizeof (($2))) 1909 return 0; 1910 ; 1911 return 0; 1912} 1913_ACEOF 1914if ac_fn_c_try_compile "$LINENO"; then : 1915 1916else 1917 eval "$3=yes" 1918fi 1919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1920fi 1921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1922fi 1923eval ac_res=\$$3 1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1925$as_echo "$ac_res" >&6; } 1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1927 1928} # ac_fn_c_check_type 1929cat >config.log <<_ACEOF 1930This file contains any messages produced by compilers while 1931running configure, to aid debugging if configure makes a mistake. 1932 1933It was created by numlib $as_me 0.10, which was 1934generated by GNU Autoconf 2.69. Invocation command line was 1935 1936 $ $0 $@ 1937 1938_ACEOF 1939exec 5>>config.log 1940{ 1941cat <<_ASUNAME 1942## --------- ## 1943## Platform. ## 1944## --------- ## 1945 1946hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1947uname -m = `(uname -m) 2>/dev/null || echo unknown` 1948uname -r = `(uname -r) 2>/dev/null || echo unknown` 1949uname -s = `(uname -s) 2>/dev/null || echo unknown` 1950uname -v = `(uname -v) 2>/dev/null || echo unknown` 1951 1952/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1953/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1954 1955/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1956/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1957/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1958/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1959/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1960/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1961/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1962 1963_ASUNAME 1964 1965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1966for as_dir in $PATH 1967do 1968 IFS=$as_save_IFS 1969 test -z "$as_dir" && as_dir=. 1970 $as_echo "PATH: $as_dir" 1971 done 1972IFS=$as_save_IFS 1973 1974} >&5 1975 1976cat >&5 <<_ACEOF 1977 1978 1979## ----------- ## 1980## Core tests. ## 1981## ----------- ## 1982 1983_ACEOF 1984 1985 1986# Keep a trace of the command line. 1987# Strip out --no-create and --no-recursion so they do not pile up. 1988# Strip out --silent because we don't want to record it for future runs. 1989# Also quote any args containing shell meta-characters. 1990# Make two passes to allow for proper duplicate-argument suppression. 1991ac_configure_args= 1992ac_configure_args0= 1993ac_configure_args1= 1994ac_must_keep_next=false 1995for ac_pass in 1 2 1996do 1997 for ac_arg 1998 do 1999 case $ac_arg in 2000 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2001 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2002 | -silent | --silent | --silen | --sile | --sil) 2003 continue ;; 2004 *\'*) 2005 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2006 esac 2007 case $ac_pass in 2008 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2009 2) 2010 as_fn_append ac_configure_args1 " '$ac_arg'" 2011 if test $ac_must_keep_next = true; then 2012 ac_must_keep_next=false # Got value, back to normal. 2013 else 2014 case $ac_arg in 2015 *=* | --config-cache | -C | -disable-* | --disable-* \ 2016 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2017 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2018 | -with-* | --with-* | -without-* | --without-* | --x) 2019 case "$ac_configure_args0 " in 2020 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2021 esac 2022 ;; 2023 -* ) ac_must_keep_next=true ;; 2024 esac 2025 fi 2026 as_fn_append ac_configure_args " '$ac_arg'" 2027 ;; 2028 esac 2029 done 2030done 2031{ ac_configure_args0=; unset ac_configure_args0;} 2032{ ac_configure_args1=; unset ac_configure_args1;} 2033 2034# When interrupted or exit'd, cleanup temporary files, and complete 2035# config.log. We remove comments because anyway the quotes in there 2036# would cause problems or look ugly. 2037# WARNING: Use '\'' to represent an apostrophe within the trap. 2038# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2039trap 'exit_status=$? 2040 # Save into config.log some information that might help in debugging. 2041 { 2042 echo 2043 2044 $as_echo "## ---------------- ## 2045## Cache variables. ## 2046## ---------------- ##" 2047 echo 2048 # The following way of writing the cache mishandles newlines in values, 2049( 2050 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2051 eval ac_val=\$$ac_var 2052 case $ac_val in #( 2053 *${as_nl}*) 2054 case $ac_var in #( 2055 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2056$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2057 esac 2058 case $ac_var in #( 2059 _ | IFS | as_nl) ;; #( 2060 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2061 *) { eval $ac_var=; unset $ac_var;} ;; 2062 esac ;; 2063 esac 2064 done 2065 (set) 2>&1 | 2066 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2067 *${as_nl}ac_space=\ *) 2068 sed -n \ 2069 "s/'\''/'\''\\\\'\'''\''/g; 2070 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2071 ;; #( 2072 *) 2073 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2074 ;; 2075 esac | 2076 sort 2077) 2078 echo 2079 2080 $as_echo "## ----------------- ## 2081## Output variables. ## 2082## ----------------- ##" 2083 echo 2084 for ac_var in $ac_subst_vars 2085 do 2086 eval ac_val=\$$ac_var 2087 case $ac_val in 2088 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2089 esac 2090 $as_echo "$ac_var='\''$ac_val'\''" 2091 done | sort 2092 echo 2093 2094 if test -n "$ac_subst_files"; then 2095 $as_echo "## ------------------- ## 2096## File substitutions. ## 2097## ------------------- ##" 2098 echo 2099 for ac_var in $ac_subst_files 2100 do 2101 eval ac_val=\$$ac_var 2102 case $ac_val in 2103 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2104 esac 2105 $as_echo "$ac_var='\''$ac_val'\''" 2106 done | sort 2107 echo 2108 fi 2109 2110 if test -s confdefs.h; then 2111 $as_echo "## ----------- ## 2112## confdefs.h. ## 2113## ----------- ##" 2114 echo 2115 cat confdefs.h 2116 echo 2117 fi 2118 test "$ac_signal" != 0 && 2119 $as_echo "$as_me: caught signal $ac_signal" 2120 $as_echo "$as_me: exit $exit_status" 2121 } >&5 2122 rm -f core *.core core.conftest.* && 2123 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2124 exit $exit_status 2125' 0 2126for ac_signal in 1 2 13 15; do 2127 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2128done 2129ac_signal=0 2130 2131# confdefs.h avoids OS command line length limits that DEFS can exceed. 2132rm -f -r conftest* confdefs.h 2133 2134$as_echo "/* confdefs.h */" > confdefs.h 2135 2136# Predefined preprocessor variables. 2137 2138cat >>confdefs.h <<_ACEOF 2139#define PACKAGE_NAME "$PACKAGE_NAME" 2140_ACEOF 2141 2142cat >>confdefs.h <<_ACEOF 2143#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2144_ACEOF 2145 2146cat >>confdefs.h <<_ACEOF 2147#define PACKAGE_VERSION "$PACKAGE_VERSION" 2148_ACEOF 2149 2150cat >>confdefs.h <<_ACEOF 2151#define PACKAGE_STRING "$PACKAGE_STRING" 2152_ACEOF 2153 2154cat >>confdefs.h <<_ACEOF 2155#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2156_ACEOF 2157 2158cat >>confdefs.h <<_ACEOF 2159#define PACKAGE_URL "$PACKAGE_URL" 2160_ACEOF 2161 2162 2163# Let the site file select an alternate cache file if it wants to. 2164# Prefer an explicitly selected file to automatically selected ones. 2165ac_site_file1=NONE 2166ac_site_file2=NONE 2167if test -n "$CONFIG_SITE"; then 2168 # We do not want a PATH search for config.site. 2169 case $CONFIG_SITE in #(( 2170 -*) ac_site_file1=./$CONFIG_SITE;; 2171 */*) ac_site_file1=$CONFIG_SITE;; 2172 *) ac_site_file1=./$CONFIG_SITE;; 2173 esac 2174elif test "x$prefix" != xNONE; then 2175 ac_site_file1=$prefix/share/config.site 2176 ac_site_file2=$prefix/etc/config.site 2177else 2178 ac_site_file1=$ac_default_prefix/share/config.site 2179 ac_site_file2=$ac_default_prefix/etc/config.site 2180fi 2181for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2182do 2183 test "x$ac_site_file" = xNONE && continue 2184 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2185 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2186$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2187 sed 's/^/| /' "$ac_site_file" >&5 2188 . "$ac_site_file" \ 2189 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2190$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2191as_fn_error $? "failed to load site script $ac_site_file 2192See \`config.log' for more details" "$LINENO" 5; } 2193 fi 2194done 2195 2196if test -r "$cache_file"; then 2197 # Some versions of bash will fail to source /dev/null (special files 2198 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2199 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2200 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2201$as_echo "$as_me: loading cache $cache_file" >&6;} 2202 case $cache_file in 2203 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2204 *) . "./$cache_file";; 2205 esac 2206 fi 2207else 2208 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2209$as_echo "$as_me: creating cache $cache_file" >&6;} 2210 >$cache_file 2211fi 2212 2213# Check that the precious variables saved in the cache have kept the same 2214# value. 2215ac_cache_corrupted=false 2216for ac_var in $ac_precious_vars; do 2217 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2218 eval ac_new_set=\$ac_env_${ac_var}_set 2219 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2220 eval ac_new_val=\$ac_env_${ac_var}_value 2221 case $ac_old_set,$ac_new_set in 2222 set,) 2223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2224$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2225 ac_cache_corrupted=: ;; 2226 ,set) 2227 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2228$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2229 ac_cache_corrupted=: ;; 2230 ,);; 2231 *) 2232 if test "x$ac_old_val" != "x$ac_new_val"; then 2233 # differences in whitespace do not lead to failure. 2234 ac_old_val_w=`echo x $ac_old_val` 2235 ac_new_val_w=`echo x $ac_new_val` 2236 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2237 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2238$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2239 ac_cache_corrupted=: 2240 else 2241 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2242$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2243 eval $ac_var=\$ac_old_val 2244 fi 2245 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2246$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2247 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2248$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2249 fi;; 2250 esac 2251 # Pass precious variables to config.status. 2252 if test "$ac_new_set" = set; then 2253 case $ac_new_val in 2254 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2255 *) ac_arg=$ac_var=$ac_new_val ;; 2256 esac 2257 case " $ac_configure_args " in 2258 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2259 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2260 esac 2261 fi 2262done 2263if $ac_cache_corrupted; then 2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2265$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2266 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2267$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2268 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2269fi 2270## -------------------- ## 2271## Main body of script. ## 2272## -------------------- ## 2273 2274ac_ext=c 2275ac_cpp='$CPP $CPPFLAGS' 2276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2278ac_compiler_gnu=$ac_cv_c_compiler_gnu 2279 2280 2281 2282>confdefs.h # Kill PACKAGE_ macros 2283 2284 2285ac_aux_dir= 2286for ac_dir in ../.. "$srcdir"/../..; do 2287 if test -f "$ac_dir/install-sh"; then 2288 ac_aux_dir=$ac_dir 2289 ac_install_sh="$ac_aux_dir/install-sh -c" 2290 break 2291 elif test -f "$ac_dir/install.sh"; then 2292 ac_aux_dir=$ac_dir 2293 ac_install_sh="$ac_aux_dir/install.sh -c" 2294 break 2295 elif test -f "$ac_dir/shtool"; then 2296 ac_aux_dir=$ac_dir 2297 ac_install_sh="$ac_aux_dir/shtool install -c" 2298 break 2299 fi 2300done 2301if test -z "$ac_aux_dir"; then 2302 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5 2303fi 2304 2305# These three variables are undocumented and unsupported, 2306# and are intended to be withdrawn in a future Autoconf release. 2307# They can cause serious problems if a builder's source tree is in a directory 2308# whose full name contains unusual characters. 2309ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2310ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2311ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2312 2313 2314ac_config_headers="$ac_config_headers config.h" 2315 2316am__api_version='1.16' 2317 2318# Find a good install program. We prefer a C program (faster), 2319# so one script is as good as another. But avoid the broken or 2320# incompatible versions: 2321# SysV /etc/install, /usr/sbin/install 2322# SunOS /usr/etc/install 2323# IRIX /sbin/install 2324# AIX /bin/install 2325# AmigaOS /C/install, which installs bootblocks on floppy discs 2326# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2327# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2328# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2329# OS/2's system install, which has a completely different semantic 2330# ./install, which can be erroneously created by make from ./install.sh. 2331# Reject install programs that cannot install multiple files. 2332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2333$as_echo_n "checking for a BSD-compatible install... " >&6; } 2334if test -z "$INSTALL"; then 2335if ${ac_cv_path_install+:} false; then : 2336 $as_echo_n "(cached) " >&6 2337else 2338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2339for as_dir in $PATH 2340do 2341 IFS=$as_save_IFS 2342 test -z "$as_dir" && as_dir=. 2343 # Account for people who put trailing slashes in PATH elements. 2344case $as_dir/ in #(( 2345 ./ | .// | /[cC]/* | \ 2346 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2347 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2348 /usr/ucb/* ) ;; 2349 *) 2350 # OSF1 and SCO ODT 3.0 have their own names for install. 2351 # Don't use installbsd from OSF since it installs stuff as root 2352 # by default. 2353 for ac_prog in ginstall scoinst install; do 2354 for ac_exec_ext in '' $ac_executable_extensions; do 2355 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2356 if test $ac_prog = install && 2357 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2358 # AIX install. It has an incompatible calling convention. 2359 : 2360 elif test $ac_prog = install && 2361 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2362 # program-specific install script used by HP pwplus--don't use. 2363 : 2364 else 2365 rm -rf conftest.one conftest.two conftest.dir 2366 echo one > conftest.one 2367 echo two > conftest.two 2368 mkdir conftest.dir 2369 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2370 test -s conftest.one && test -s conftest.two && 2371 test -s conftest.dir/conftest.one && 2372 test -s conftest.dir/conftest.two 2373 then 2374 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2375 break 3 2376 fi 2377 fi 2378 fi 2379 done 2380 done 2381 ;; 2382esac 2383 2384 done 2385IFS=$as_save_IFS 2386 2387rm -rf conftest.one conftest.two conftest.dir 2388 2389fi 2390 if test "${ac_cv_path_install+set}" = set; then 2391 INSTALL=$ac_cv_path_install 2392 else 2393 # As a last resort, use the slow shell script. Don't cache a 2394 # value for INSTALL within a source directory, because that will 2395 # break other packages using the cache if that directory is 2396 # removed, or if the value is a relative name. 2397 INSTALL=$ac_install_sh 2398 fi 2399fi 2400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2401$as_echo "$INSTALL" >&6; } 2402 2403# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2404# It thinks the first close brace ends the variable substitution. 2405test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2406 2407test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2408 2409test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2410 2411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2412$as_echo_n "checking whether build environment is sane... " >&6; } 2413# Reject unsafe characters in $srcdir or the absolute working directory 2414# name. Accept space and tab only in the latter. 2415am_lf=' 2416' 2417case `pwd` in 2418 *[\\\"\#\$\&\'\`$am_lf]*) 2419 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2420esac 2421case $srcdir in 2422 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2423 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2424esac 2425 2426# Do 'set' in a subshell so we don't clobber the current shell's 2427# arguments. Must try -L first in case configure is actually a 2428# symlink; some systems play weird games with the mod time of symlinks 2429# (eg FreeBSD returns the mod time of the symlink's containing 2430# directory). 2431if ( 2432 am_has_slept=no 2433 for am_try in 1 2; do 2434 echo "timestamp, slept: $am_has_slept" > conftest.file 2435 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2436 if test "$*" = "X"; then 2437 # -L didn't work. 2438 set X `ls -t "$srcdir/configure" conftest.file` 2439 fi 2440 if test "$*" != "X $srcdir/configure conftest.file" \ 2441 && test "$*" != "X conftest.file $srcdir/configure"; then 2442 2443 # If neither matched, then we have a broken ls. This can happen 2444 # if, for instance, CONFIG_SHELL is bash and it inherits a 2445 # broken ls alias from the environment. This has actually 2446 # happened. Such a system could not be considered "sane". 2447 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2448 alias in your environment" "$LINENO" 5 2449 fi 2450 if test "$2" = conftest.file || test $am_try -eq 2; then 2451 break 2452 fi 2453 # Just in case. 2454 sleep 1 2455 am_has_slept=yes 2456 done 2457 test "$2" = conftest.file 2458 ) 2459then 2460 # Ok. 2461 : 2462else 2463 as_fn_error $? "newly created file is older than distributed files! 2464Check your system clock" "$LINENO" 5 2465fi 2466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2467$as_echo "yes" >&6; } 2468# If we didn't sleep, we still need to ensure time stamps of config.status and 2469# generated files are strictly newer. 2470am_sleep_pid= 2471if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2472 ( sleep 1 ) & 2473 am_sleep_pid=$! 2474fi 2475 2476rm -f conftest.file 2477 2478test "$program_prefix" != NONE && 2479 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2480# Use a double $ so make ignores it. 2481test "$program_suffix" != NONE && 2482 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2483# Double any \ or $. 2484# By default was `s,x,x', remove it if useless. 2485ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2486program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2487 2488# Expand $ac_aux_dir to an absolute path. 2489am_aux_dir=`cd "$ac_aux_dir" && pwd` 2490 2491if test x"${MISSING+set}" != xset; then 2492 case $am_aux_dir in 2493 *\ * | *\ *) 2494 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2495 *) 2496 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2497 esac 2498fi 2499# Use eval to expand $SHELL 2500if eval "$MISSING --is-lightweight"; then 2501 am_missing_run="$MISSING " 2502else 2503 am_missing_run= 2504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2505$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2506fi 2507 2508if test x"${install_sh+set}" != xset; then 2509 case $am_aux_dir in 2510 *\ * | *\ *) 2511 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2512 *) 2513 install_sh="\${SHELL} $am_aux_dir/install-sh" 2514 esac 2515fi 2516 2517# Installed binaries are usually stripped using 'strip' when the user 2518# run "make install-strip". However 'strip' might not be the right 2519# tool to use in cross-compilation environments, therefore Automake 2520# will honor the 'STRIP' environment variable to overrule this program. 2521if test "$cross_compiling" != no; then 2522 if test -n "$ac_tool_prefix"; then 2523 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2524set dummy ${ac_tool_prefix}strip; ac_word=$2 2525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2526$as_echo_n "checking for $ac_word... " >&6; } 2527if ${ac_cv_prog_STRIP+:} false; then : 2528 $as_echo_n "(cached) " >&6 2529else 2530 if test -n "$STRIP"; then 2531 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2532else 2533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2534for as_dir in $PATH 2535do 2536 IFS=$as_save_IFS 2537 test -z "$as_dir" && as_dir=. 2538 for ac_exec_ext in '' $ac_executable_extensions; do 2539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2540 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2542 break 2 2543 fi 2544done 2545 done 2546IFS=$as_save_IFS 2547 2548fi 2549fi 2550STRIP=$ac_cv_prog_STRIP 2551if test -n "$STRIP"; then 2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2553$as_echo "$STRIP" >&6; } 2554else 2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2556$as_echo "no" >&6; } 2557fi 2558 2559 2560fi 2561if test -z "$ac_cv_prog_STRIP"; then 2562 ac_ct_STRIP=$STRIP 2563 # Extract the first word of "strip", so it can be a program name with args. 2564set dummy strip; ac_word=$2 2565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2566$as_echo_n "checking for $ac_word... " >&6; } 2567if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2568 $as_echo_n "(cached) " >&6 2569else 2570 if test -n "$ac_ct_STRIP"; then 2571 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2572else 2573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2574for as_dir in $PATH 2575do 2576 IFS=$as_save_IFS 2577 test -z "$as_dir" && as_dir=. 2578 for ac_exec_ext in '' $ac_executable_extensions; do 2579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2580 ac_cv_prog_ac_ct_STRIP="strip" 2581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2582 break 2 2583 fi 2584done 2585 done 2586IFS=$as_save_IFS 2587 2588fi 2589fi 2590ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2591if test -n "$ac_ct_STRIP"; then 2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2593$as_echo "$ac_ct_STRIP" >&6; } 2594else 2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2596$as_echo "no" >&6; } 2597fi 2598 2599 if test "x$ac_ct_STRIP" = x; then 2600 STRIP=":" 2601 else 2602 case $cross_compiling:$ac_tool_warned in 2603yes:) 2604{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2605$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2606ac_tool_warned=yes ;; 2607esac 2608 STRIP=$ac_ct_STRIP 2609 fi 2610else 2611 STRIP="$ac_cv_prog_STRIP" 2612fi 2613 2614fi 2615INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2616 2617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2618$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2619if test -z "$MKDIR_P"; then 2620 if ${ac_cv_path_mkdir+:} false; then : 2621 $as_echo_n "(cached) " >&6 2622else 2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2624for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2625do 2626 IFS=$as_save_IFS 2627 test -z "$as_dir" && as_dir=. 2628 for ac_prog in mkdir gmkdir; do 2629 for ac_exec_ext in '' $ac_executable_extensions; do 2630 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2631 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2632 'mkdir (GNU coreutils) '* | \ 2633 'mkdir (coreutils) '* | \ 2634 'mkdir (fileutils) '4.1*) 2635 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2636 break 3;; 2637 esac 2638 done 2639 done 2640 done 2641IFS=$as_save_IFS 2642 2643fi 2644 2645 test -d ./--version && rmdir ./--version 2646 if test "${ac_cv_path_mkdir+set}" = set; then 2647 MKDIR_P="$ac_cv_path_mkdir -p" 2648 else 2649 # As a last resort, use the slow shell script. Don't cache a 2650 # value for MKDIR_P within a source directory, because that will 2651 # break other packages using the cache if that directory is 2652 # removed, or if the value is a relative name. 2653 MKDIR_P="$ac_install_sh -d" 2654 fi 2655fi 2656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2657$as_echo "$MKDIR_P" >&6; } 2658 2659for ac_prog in gawk mawk nawk awk 2660do 2661 # Extract the first word of "$ac_prog", so it can be a program name with args. 2662set dummy $ac_prog; ac_word=$2 2663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2664$as_echo_n "checking for $ac_word... " >&6; } 2665if ${ac_cv_prog_AWK+:} false; then : 2666 $as_echo_n "(cached) " >&6 2667else 2668 if test -n "$AWK"; then 2669 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2670else 2671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2672for as_dir in $PATH 2673do 2674 IFS=$as_save_IFS 2675 test -z "$as_dir" && as_dir=. 2676 for ac_exec_ext in '' $ac_executable_extensions; do 2677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2678 ac_cv_prog_AWK="$ac_prog" 2679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2680 break 2 2681 fi 2682done 2683 done 2684IFS=$as_save_IFS 2685 2686fi 2687fi 2688AWK=$ac_cv_prog_AWK 2689if test -n "$AWK"; then 2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2691$as_echo "$AWK" >&6; } 2692else 2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2694$as_echo "no" >&6; } 2695fi 2696 2697 2698 test -n "$AWK" && break 2699done 2700 2701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2702$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2703set x ${MAKE-make} 2704ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2705if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2706 $as_echo_n "(cached) " >&6 2707else 2708 cat >conftest.make <<\_ACEOF 2709SHELL = /bin/sh 2710all: 2711 @echo '@@@%%%=$(MAKE)=@@@%%%' 2712_ACEOF 2713# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2714case `${MAKE-make} -f conftest.make 2>/dev/null` in 2715 *@@@%%%=?*=@@@%%%*) 2716 eval ac_cv_prog_make_${ac_make}_set=yes;; 2717 *) 2718 eval ac_cv_prog_make_${ac_make}_set=no;; 2719esac 2720rm -f conftest.make 2721fi 2722if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2724$as_echo "yes" >&6; } 2725 SET_MAKE= 2726else 2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2728$as_echo "no" >&6; } 2729 SET_MAKE="MAKE=${MAKE-make}" 2730fi 2731 2732rm -rf .tst 2>/dev/null 2733mkdir .tst 2>/dev/null 2734if test -d .tst; then 2735 am__leading_dot=. 2736else 2737 am__leading_dot=_ 2738fi 2739rmdir .tst 2>/dev/null 2740 2741# Check whether --enable-silent-rules was given. 2742if test "${enable_silent_rules+set}" = set; then : 2743 enableval=$enable_silent_rules; 2744fi 2745 2746case $enable_silent_rules in # ((( 2747 yes) AM_DEFAULT_VERBOSITY=0;; 2748 no) AM_DEFAULT_VERBOSITY=1;; 2749 *) AM_DEFAULT_VERBOSITY=1;; 2750esac 2751am_make=${MAKE-make} 2752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2753$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2754if ${am_cv_make_support_nested_variables+:} false; then : 2755 $as_echo_n "(cached) " >&6 2756else 2757 if $as_echo 'TRUE=$(BAR$(V)) 2758BAR0=false 2759BAR1=true 2760V=1 2761am__doit: 2762 @$(TRUE) 2763.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2764 am_cv_make_support_nested_variables=yes 2765else 2766 am_cv_make_support_nested_variables=no 2767fi 2768fi 2769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2770$as_echo "$am_cv_make_support_nested_variables" >&6; } 2771if test $am_cv_make_support_nested_variables = yes; then 2772 AM_V='$(V)' 2773 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2774else 2775 AM_V=$AM_DEFAULT_VERBOSITY 2776 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2777fi 2778AM_BACKSLASH='\' 2779 2780if test "`cd $srcdir && pwd`" != "`pwd`"; then 2781 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2782 # is not polluted with repeated "-I." 2783 am__isrc=' -I$(srcdir)' 2784 # test to see if srcdir already configured 2785 if test -f $srcdir/config.status; then 2786 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2787 fi 2788fi 2789 2790# test whether we have cygpath 2791if test -z "$CYGPATH_W"; then 2792 if (cygpath --version) >/dev/null 2>/dev/null; then 2793 CYGPATH_W='cygpath -w' 2794 else 2795 CYGPATH_W=echo 2796 fi 2797fi 2798 2799 2800# Define the identity of the package. 2801 PACKAGE='numlib' 2802 VERSION='0.10' 2803 2804 2805# Some tools Automake needs. 2806 2807ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2808 2809 2810AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2811 2812 2813AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2814 2815 2816AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2817 2818 2819MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2820 2821# For better backward compatibility. To be removed once Automake 1.9.x 2822# dies out for good. For more background, see: 2823# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2824# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2825mkdir_p='$(MKDIR_P)' 2826 2827# We need awk for the "check" target (and possibly the TAP driver). The 2828# system "awk" is bad on some platforms. 2829# Always define AMTAR for backward compatibility. Yes, it's still used 2830# in the wild :-( We should find a proper way to deprecate it ... 2831AMTAR='$${TAR-tar}' 2832 2833 2834# We'll loop over all known methods to create a tar archive until one works. 2835_am_tools='gnutar pax cpio none' 2836 2837am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2838 2839 2840 2841 2842 2843 2844# POSIX will say in a future version that running "rm -f" with no argument 2845# is OK; and we want to be able to make that assumption in our Makefile 2846# recipes. So use an aggressive probe to check that the usage we want is 2847# actually supported "in the wild" to an acceptable degree. 2848# See automake bug#10828. 2849# To make any issue more visible, cause the running configure to be aborted 2850# by default if the 'rm' program in use doesn't match our expectations; the 2851# user can still override this though. 2852if rm -f && rm -fr && rm -rf; then : OK; else 2853 cat >&2 <<'END' 2854Oops! 2855 2856Your 'rm' program seems unable to run without file operands specified 2857on the command line, even when the '-f' option is present. This is contrary 2858to the behaviour of most rm programs out there, and not conforming with 2859the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2860 2861Please tell bug-automake@gnu.org about your system, including the value 2862of your $PATH and any error possibly output before this message. This 2863can help us improve future automake versions. 2864 2865END 2866 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2867 echo 'Configuration will proceed anyway, since you have set the' >&2 2868 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2869 echo >&2 2870 else 2871 cat >&2 <<'END' 2872Aborting the configuration process, to ensure you take notice of the issue. 2873 2874You can download and install GNU coreutils to get an 'rm' implementation 2875that behaves properly: <https://www.gnu.org/software/coreutils/>. 2876 2877If you want to complete the configuration process using your problematic 2878'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2879to "yes", and re-run configure. 2880 2881END 2882 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2883 fi 2884fi 2885 2886 2887for ac_prog in gawk mawk nawk awk 2888do 2889 # Extract the first word of "$ac_prog", so it can be a program name with args. 2890set dummy $ac_prog; ac_word=$2 2891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2892$as_echo_n "checking for $ac_word... " >&6; } 2893if ${ac_cv_prog_AWK+:} false; then : 2894 $as_echo_n "(cached) " >&6 2895else 2896 if test -n "$AWK"; then 2897 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2898else 2899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2900for as_dir in $PATH 2901do 2902 IFS=$as_save_IFS 2903 test -z "$as_dir" && as_dir=. 2904 for ac_exec_ext in '' $ac_executable_extensions; do 2905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2906 ac_cv_prog_AWK="$ac_prog" 2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2908 break 2 2909 fi 2910done 2911 done 2912IFS=$as_save_IFS 2913 2914fi 2915fi 2916AWK=$ac_cv_prog_AWK 2917if test -n "$AWK"; then 2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2919$as_echo "$AWK" >&6; } 2920else 2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2922$as_echo "no" >&6; } 2923fi 2924 2925 2926 test -n "$AWK" && break 2927done 2928 2929ac_ext=c 2930ac_cpp='$CPP $CPPFLAGS' 2931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2933ac_compiler_gnu=$ac_cv_c_compiler_gnu 2934if test -n "$ac_tool_prefix"; then 2935 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2936set dummy ${ac_tool_prefix}gcc; ac_word=$2 2937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2938$as_echo_n "checking for $ac_word... " >&6; } 2939if ${ac_cv_prog_CC+:} false; then : 2940 $as_echo_n "(cached) " >&6 2941else 2942 if test -n "$CC"; then 2943 ac_cv_prog_CC="$CC" # Let the user override the test. 2944else 2945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2946for as_dir in $PATH 2947do 2948 IFS=$as_save_IFS 2949 test -z "$as_dir" && as_dir=. 2950 for ac_exec_ext in '' $ac_executable_extensions; do 2951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2952 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2954 break 2 2955 fi 2956done 2957 done 2958IFS=$as_save_IFS 2959 2960fi 2961fi 2962CC=$ac_cv_prog_CC 2963if test -n "$CC"; then 2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2965$as_echo "$CC" >&6; } 2966else 2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2968$as_echo "no" >&6; } 2969fi 2970 2971 2972fi 2973if test -z "$ac_cv_prog_CC"; then 2974 ac_ct_CC=$CC 2975 # Extract the first word of "gcc", so it can be a program name with args. 2976set dummy gcc; ac_word=$2 2977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2978$as_echo_n "checking for $ac_word... " >&6; } 2979if ${ac_cv_prog_ac_ct_CC+:} false; then : 2980 $as_echo_n "(cached) " >&6 2981else 2982 if test -n "$ac_ct_CC"; then 2983 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2984else 2985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2986for as_dir in $PATH 2987do 2988 IFS=$as_save_IFS 2989 test -z "$as_dir" && as_dir=. 2990 for ac_exec_ext in '' $ac_executable_extensions; do 2991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2992 ac_cv_prog_ac_ct_CC="gcc" 2993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2994 break 2 2995 fi 2996done 2997 done 2998IFS=$as_save_IFS 2999 3000fi 3001fi 3002ac_ct_CC=$ac_cv_prog_ac_ct_CC 3003if test -n "$ac_ct_CC"; then 3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3005$as_echo "$ac_ct_CC" >&6; } 3006else 3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3008$as_echo "no" >&6; } 3009fi 3010 3011 if test "x$ac_ct_CC" = x; then 3012 CC="" 3013 else 3014 case $cross_compiling:$ac_tool_warned in 3015yes:) 3016{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3017$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3018ac_tool_warned=yes ;; 3019esac 3020 CC=$ac_ct_CC 3021 fi 3022else 3023 CC="$ac_cv_prog_CC" 3024fi 3025 3026if test -z "$CC"; then 3027 if test -n "$ac_tool_prefix"; then 3028 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3029set dummy ${ac_tool_prefix}cc; ac_word=$2 3030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3031$as_echo_n "checking for $ac_word... " >&6; } 3032if ${ac_cv_prog_CC+:} false; then : 3033 $as_echo_n "(cached) " >&6 3034else 3035 if test -n "$CC"; then 3036 ac_cv_prog_CC="$CC" # Let the user override the test. 3037else 3038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3039for as_dir in $PATH 3040do 3041 IFS=$as_save_IFS 3042 test -z "$as_dir" && as_dir=. 3043 for ac_exec_ext in '' $ac_executable_extensions; do 3044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3045 ac_cv_prog_CC="${ac_tool_prefix}cc" 3046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3047 break 2 3048 fi 3049done 3050 done 3051IFS=$as_save_IFS 3052 3053fi 3054fi 3055CC=$ac_cv_prog_CC 3056if test -n "$CC"; then 3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3058$as_echo "$CC" >&6; } 3059else 3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3061$as_echo "no" >&6; } 3062fi 3063 3064 3065 fi 3066fi 3067if test -z "$CC"; then 3068 # Extract the first word of "cc", so it can be a program name with args. 3069set dummy cc; ac_word=$2 3070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3071$as_echo_n "checking for $ac_word... " >&6; } 3072if ${ac_cv_prog_CC+:} false; then : 3073 $as_echo_n "(cached) " >&6 3074else 3075 if test -n "$CC"; then 3076 ac_cv_prog_CC="$CC" # Let the user override the test. 3077else 3078 ac_prog_rejected=no 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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3087 ac_prog_rejected=yes 3088 continue 3089 fi 3090 ac_cv_prog_CC="cc" 3091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3092 break 2 3093 fi 3094done 3095 done 3096IFS=$as_save_IFS 3097 3098if test $ac_prog_rejected = yes; then 3099 # We found a bogon in the path, so make sure we never use it. 3100 set dummy $ac_cv_prog_CC 3101 shift 3102 if test $# != 0; then 3103 # We chose a different compiler from the bogus one. 3104 # However, it has the same basename, so the bogon will be chosen 3105 # first if we set CC to just the basename; use the full file name. 3106 shift 3107 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3108 fi 3109fi 3110fi 3111fi 3112CC=$ac_cv_prog_CC 3113if test -n "$CC"; then 3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3115$as_echo "$CC" >&6; } 3116else 3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3118$as_echo "no" >&6; } 3119fi 3120 3121 3122fi 3123if test -z "$CC"; then 3124 if test -n "$ac_tool_prefix"; then 3125 for ac_prog in cl.exe 3126 do 3127 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3128set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3130$as_echo_n "checking for $ac_word... " >&6; } 3131if ${ac_cv_prog_CC+:} false; then : 3132 $as_echo_n "(cached) " >&6 3133else 3134 if test -n "$CC"; then 3135 ac_cv_prog_CC="$CC" # Let the user override the test. 3136else 3137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3138for as_dir in $PATH 3139do 3140 IFS=$as_save_IFS 3141 test -z "$as_dir" && as_dir=. 3142 for ac_exec_ext in '' $ac_executable_extensions; do 3143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3144 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3146 break 2 3147 fi 3148done 3149 done 3150IFS=$as_save_IFS 3151 3152fi 3153fi 3154CC=$ac_cv_prog_CC 3155if test -n "$CC"; then 3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3157$as_echo "$CC" >&6; } 3158else 3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3160$as_echo "no" >&6; } 3161fi 3162 3163 3164 test -n "$CC" && break 3165 done 3166fi 3167if test -z "$CC"; then 3168 ac_ct_CC=$CC 3169 for ac_prog in cl.exe 3170do 3171 # Extract the first word of "$ac_prog", so it can be a program name with args. 3172set dummy $ac_prog; ac_word=$2 3173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3174$as_echo_n "checking for $ac_word... " >&6; } 3175if ${ac_cv_prog_ac_ct_CC+:} false; then : 3176 $as_echo_n "(cached) " >&6 3177else 3178 if test -n "$ac_ct_CC"; then 3179 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3180else 3181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3182for as_dir in $PATH 3183do 3184 IFS=$as_save_IFS 3185 test -z "$as_dir" && as_dir=. 3186 for ac_exec_ext in '' $ac_executable_extensions; do 3187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3188 ac_cv_prog_ac_ct_CC="$ac_prog" 3189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3190 break 2 3191 fi 3192done 3193 done 3194IFS=$as_save_IFS 3195 3196fi 3197fi 3198ac_ct_CC=$ac_cv_prog_ac_ct_CC 3199if test -n "$ac_ct_CC"; then 3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3201$as_echo "$ac_ct_CC" >&6; } 3202else 3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3204$as_echo "no" >&6; } 3205fi 3206 3207 3208 test -n "$ac_ct_CC" && break 3209done 3210 3211 if test "x$ac_ct_CC" = x; then 3212 CC="" 3213 else 3214 case $cross_compiling:$ac_tool_warned in 3215yes:) 3216{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3218ac_tool_warned=yes ;; 3219esac 3220 CC=$ac_ct_CC 3221 fi 3222fi 3223 3224fi 3225 3226 3227test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3228$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3229as_fn_error $? "no acceptable C compiler found in \$PATH 3230See \`config.log' for more details" "$LINENO" 5; } 3231 3232# Provide some information about the compiler. 3233$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3234set X $ac_compile 3235ac_compiler=$2 3236for ac_option in --version -v -V -qversion; do 3237 { { ac_try="$ac_compiler $ac_option >&5" 3238case "(($ac_try" in 3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3240 *) ac_try_echo=$ac_try;; 3241esac 3242eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3243$as_echo "$ac_try_echo"; } >&5 3244 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3245 ac_status=$? 3246 if test -s conftest.err; then 3247 sed '10a\ 3248... rest of stderr output deleted ... 3249 10q' conftest.err >conftest.er1 3250 cat conftest.er1 >&5 3251 fi 3252 rm -f conftest.er1 conftest.err 3253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3254 test $ac_status = 0; } 3255done 3256 3257cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3258/* end confdefs.h. */ 3259 3260int 3261main () 3262{ 3263 3264 ; 3265 return 0; 3266} 3267_ACEOF 3268ac_clean_files_save=$ac_clean_files 3269ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3270# Try to create an executable without -o first, disregard a.out. 3271# It will help us diagnose broken compilers, and finding out an intuition 3272# of exeext. 3273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3274$as_echo_n "checking whether the C compiler works... " >&6; } 3275ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3276 3277# The possible output files: 3278ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3279 3280ac_rmfiles= 3281for ac_file in $ac_files 3282do 3283 case $ac_file in 3284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3285 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3286 esac 3287done 3288rm -f $ac_rmfiles 3289 3290if { { ac_try="$ac_link_default" 3291case "(($ac_try" in 3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3293 *) ac_try_echo=$ac_try;; 3294esac 3295eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3296$as_echo "$ac_try_echo"; } >&5 3297 (eval "$ac_link_default") 2>&5 3298 ac_status=$? 3299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3300 test $ac_status = 0; }; then : 3301 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3302# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3303# in a Makefile. We should not override ac_cv_exeext if it was cached, 3304# so that the user can short-circuit this test for compilers unknown to 3305# Autoconf. 3306for ac_file in $ac_files '' 3307do 3308 test -f "$ac_file" || continue 3309 case $ac_file in 3310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3311 ;; 3312 [ab].out ) 3313 # We found the default executable, but exeext='' is most 3314 # certainly right. 3315 break;; 3316 *.* ) 3317 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3318 then :; else 3319 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3320 fi 3321 # We set ac_cv_exeext here because the later test for it is not 3322 # safe: cross compilers may not add the suffix if given an `-o' 3323 # argument, so we may need to know it at that point already. 3324 # Even if this section looks crufty: it has the advantage of 3325 # actually working. 3326 break;; 3327 * ) 3328 break;; 3329 esac 3330done 3331test "$ac_cv_exeext" = no && ac_cv_exeext= 3332 3333else 3334 ac_file='' 3335fi 3336if test -z "$ac_file"; then : 3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3338$as_echo "no" >&6; } 3339$as_echo "$as_me: failed program was:" >&5 3340sed 's/^/| /' conftest.$ac_ext >&5 3341 3342{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3343$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3344as_fn_error 77 "C compiler cannot create executables 3345See \`config.log' for more details" "$LINENO" 5; } 3346else 3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3348$as_echo "yes" >&6; } 3349fi 3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3351$as_echo_n "checking for C compiler default output file name... " >&6; } 3352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3353$as_echo "$ac_file" >&6; } 3354ac_exeext=$ac_cv_exeext 3355 3356rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3357ac_clean_files=$ac_clean_files_save 3358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3359$as_echo_n "checking for suffix of executables... " >&6; } 3360if { { ac_try="$ac_link" 3361case "(($ac_try" in 3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3363 *) ac_try_echo=$ac_try;; 3364esac 3365eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3366$as_echo "$ac_try_echo"; } >&5 3367 (eval "$ac_link") 2>&5 3368 ac_status=$? 3369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3370 test $ac_status = 0; }; then : 3371 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3372# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3373# work properly (i.e., refer to `conftest.exe'), while it won't with 3374# `rm'. 3375for ac_file in conftest.exe conftest conftest.*; do 3376 test -f "$ac_file" || continue 3377 case $ac_file in 3378 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3379 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3380 break;; 3381 * ) break;; 3382 esac 3383done 3384else 3385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3387as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3388See \`config.log' for more details" "$LINENO" 5; } 3389fi 3390rm -f conftest conftest$ac_cv_exeext 3391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3392$as_echo "$ac_cv_exeext" >&6; } 3393 3394rm -f conftest.$ac_ext 3395EXEEXT=$ac_cv_exeext 3396ac_exeext=$EXEEXT 3397cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3398/* end confdefs.h. */ 3399#include <stdio.h> 3400int 3401main () 3402{ 3403FILE *f = fopen ("conftest.out", "w"); 3404 return ferror (f) || fclose (f) != 0; 3405 3406 ; 3407 return 0; 3408} 3409_ACEOF 3410ac_clean_files="$ac_clean_files conftest.out" 3411# Check that the compiler produces executables we can run. If not, either 3412# the compiler is broken, or we cross compile. 3413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3414$as_echo_n "checking whether we are cross compiling... " >&6; } 3415if test "$cross_compiling" != yes; then 3416 { { ac_try="$ac_link" 3417case "(($ac_try" in 3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3419 *) ac_try_echo=$ac_try;; 3420esac 3421eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3422$as_echo "$ac_try_echo"; } >&5 3423 (eval "$ac_link") 2>&5 3424 ac_status=$? 3425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3426 test $ac_status = 0; } 3427 if { ac_try='./conftest$ac_cv_exeext' 3428 { { case "(($ac_try" in 3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3430 *) ac_try_echo=$ac_try;; 3431esac 3432eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3433$as_echo "$ac_try_echo"; } >&5 3434 (eval "$ac_try") 2>&5 3435 ac_status=$? 3436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3437 test $ac_status = 0; }; }; then 3438 cross_compiling=no 3439 else 3440 if test "$cross_compiling" = maybe; then 3441 cross_compiling=yes 3442 else 3443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3444$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3445as_fn_error $? "cannot run C compiled programs. 3446If you meant to cross compile, use \`--host'. 3447See \`config.log' for more details" "$LINENO" 5; } 3448 fi 3449 fi 3450fi 3451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3452$as_echo "$cross_compiling" >&6; } 3453 3454rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3455ac_clean_files=$ac_clean_files_save 3456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3457$as_echo_n "checking for suffix of object files... " >&6; } 3458if ${ac_cv_objext+:} false; then : 3459 $as_echo_n "(cached) " >&6 3460else 3461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3462/* end confdefs.h. */ 3463 3464int 3465main () 3466{ 3467 3468 ; 3469 return 0; 3470} 3471_ACEOF 3472rm -f conftest.o conftest.obj 3473if { { ac_try="$ac_compile" 3474case "(($ac_try" in 3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3476 *) ac_try_echo=$ac_try;; 3477esac 3478eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3479$as_echo "$ac_try_echo"; } >&5 3480 (eval "$ac_compile") 2>&5 3481 ac_status=$? 3482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3483 test $ac_status = 0; }; then : 3484 for ac_file in conftest.o conftest.obj conftest.*; do 3485 test -f "$ac_file" || continue; 3486 case $ac_file in 3487 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3488 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3489 break;; 3490 esac 3491done 3492else 3493 $as_echo "$as_me: failed program was:" >&5 3494sed 's/^/| /' conftest.$ac_ext >&5 3495 3496{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3498as_fn_error $? "cannot compute suffix of object files: cannot compile 3499See \`config.log' for more details" "$LINENO" 5; } 3500fi 3501rm -f conftest.$ac_cv_objext conftest.$ac_ext 3502fi 3503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3504$as_echo "$ac_cv_objext" >&6; } 3505OBJEXT=$ac_cv_objext 3506ac_objext=$OBJEXT 3507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3508$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3509if ${ac_cv_c_compiler_gnu+:} false; then : 3510 $as_echo_n "(cached) " >&6 3511else 3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3513/* end confdefs.h. */ 3514 3515int 3516main () 3517{ 3518#ifndef __GNUC__ 3519 choke me 3520#endif 3521 3522 ; 3523 return 0; 3524} 3525_ACEOF 3526if ac_fn_c_try_compile "$LINENO"; then : 3527 ac_compiler_gnu=yes 3528else 3529 ac_compiler_gnu=no 3530fi 3531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3532ac_cv_c_compiler_gnu=$ac_compiler_gnu 3533 3534fi 3535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3536$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3537if test $ac_compiler_gnu = yes; then 3538 GCC=yes 3539else 3540 GCC= 3541fi 3542ac_test_CFLAGS=${CFLAGS+set} 3543ac_save_CFLAGS=$CFLAGS 3544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3545$as_echo_n "checking whether $CC accepts -g... " >&6; } 3546if ${ac_cv_prog_cc_g+:} false; then : 3547 $as_echo_n "(cached) " >&6 3548else 3549 ac_save_c_werror_flag=$ac_c_werror_flag 3550 ac_c_werror_flag=yes 3551 ac_cv_prog_cc_g=no 3552 CFLAGS="-g" 3553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3554/* end confdefs.h. */ 3555 3556int 3557main () 3558{ 3559 3560 ; 3561 return 0; 3562} 3563_ACEOF 3564if ac_fn_c_try_compile "$LINENO"; then : 3565 ac_cv_prog_cc_g=yes 3566else 3567 CFLAGS="" 3568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3569/* end confdefs.h. */ 3570 3571int 3572main () 3573{ 3574 3575 ; 3576 return 0; 3577} 3578_ACEOF 3579if ac_fn_c_try_compile "$LINENO"; then : 3580 3581else 3582 ac_c_werror_flag=$ac_save_c_werror_flag 3583 CFLAGS="-g" 3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3585/* end confdefs.h. */ 3586 3587int 3588main () 3589{ 3590 3591 ; 3592 return 0; 3593} 3594_ACEOF 3595if ac_fn_c_try_compile "$LINENO"; then : 3596 ac_cv_prog_cc_g=yes 3597fi 3598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3599fi 3600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3601fi 3602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3603 ac_c_werror_flag=$ac_save_c_werror_flag 3604fi 3605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3606$as_echo "$ac_cv_prog_cc_g" >&6; } 3607if test "$ac_test_CFLAGS" = set; then 3608 CFLAGS=$ac_save_CFLAGS 3609elif test $ac_cv_prog_cc_g = yes; then 3610 if test "$GCC" = yes; then 3611 CFLAGS="-g -O2" 3612 else 3613 CFLAGS="-g" 3614 fi 3615else 3616 if test "$GCC" = yes; then 3617 CFLAGS="-O2" 3618 else 3619 CFLAGS= 3620 fi 3621fi 3622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3623$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3624if ${ac_cv_prog_cc_c89+:} false; then : 3625 $as_echo_n "(cached) " >&6 3626else 3627 ac_cv_prog_cc_c89=no 3628ac_save_CC=$CC 3629cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3630/* end confdefs.h. */ 3631#include <stdarg.h> 3632#include <stdio.h> 3633struct stat; 3634/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3635struct buf { int x; }; 3636FILE * (*rcsopen) (struct buf *, struct stat *, int); 3637static char *e (p, i) 3638 char **p; 3639 int i; 3640{ 3641 return p[i]; 3642} 3643static char *f (char * (*g) (char **, int), char **p, ...) 3644{ 3645 char *s; 3646 va_list v; 3647 va_start (v,p); 3648 s = g (p, va_arg (v,int)); 3649 va_end (v); 3650 return s; 3651} 3652 3653/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3654 function prototypes and stuff, but not '\xHH' hex character constants. 3655 These don't provoke an error unfortunately, instead are silently treated 3656 as 'x'. The following induces an error, until -std is added to get 3657 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3658 array size at least. It's necessary to write '\x00'==0 to get something 3659 that's true only with -std. */ 3660int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3661 3662/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3663 inside strings and character constants. */ 3664#define FOO(x) 'x' 3665int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3666 3667int test (int i, double x); 3668struct s1 {int (*f) (int a);}; 3669struct s2 {int (*f) (double a);}; 3670int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3671int argc; 3672char **argv; 3673int 3674main () 3675{ 3676return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3677 ; 3678 return 0; 3679} 3680_ACEOF 3681for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3682 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3683do 3684 CC="$ac_save_CC $ac_arg" 3685 if ac_fn_c_try_compile "$LINENO"; then : 3686 ac_cv_prog_cc_c89=$ac_arg 3687fi 3688rm -f core conftest.err conftest.$ac_objext 3689 test "x$ac_cv_prog_cc_c89" != "xno" && break 3690done 3691rm -f conftest.$ac_ext 3692CC=$ac_save_CC 3693 3694fi 3695# AC_CACHE_VAL 3696case "x$ac_cv_prog_cc_c89" in 3697 x) 3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3699$as_echo "none needed" >&6; } ;; 3700 xno) 3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3702$as_echo "unsupported" >&6; } ;; 3703 *) 3704 CC="$CC $ac_cv_prog_cc_c89" 3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3706$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3707esac 3708if test "x$ac_cv_prog_cc_c89" != xno; then : 3709 3710fi 3711 3712ac_ext=c 3713ac_cpp='$CPP $CPPFLAGS' 3714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3716ac_compiler_gnu=$ac_cv_c_compiler_gnu 3717 3718ac_ext=c 3719ac_cpp='$CPP $CPPFLAGS' 3720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3722ac_compiler_gnu=$ac_cv_c_compiler_gnu 3723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3724$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3725if ${am_cv_prog_cc_c_o+:} false; then : 3726 $as_echo_n "(cached) " >&6 3727else 3728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3729/* end confdefs.h. */ 3730 3731int 3732main () 3733{ 3734 3735 ; 3736 return 0; 3737} 3738_ACEOF 3739 # Make sure it works both with $CC and with simple cc. 3740 # Following AC_PROG_CC_C_O, we do the test twice because some 3741 # compilers refuse to overwrite an existing .o file with -o, 3742 # though they will create one. 3743 am_cv_prog_cc_c_o=yes 3744 for am_i in 1 2; do 3745 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3746 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3747 ac_status=$? 3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3749 (exit $ac_status); } \ 3750 && test -f conftest2.$ac_objext; then 3751 : OK 3752 else 3753 am_cv_prog_cc_c_o=no 3754 break 3755 fi 3756 done 3757 rm -f core conftest* 3758 unset am_i 3759fi 3760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3761$as_echo "$am_cv_prog_cc_c_o" >&6; } 3762if test "$am_cv_prog_cc_c_o" != yes; then 3763 # Losing compiler, so override with the script. 3764 # FIXME: It is wrong to rewrite CC. 3765 # But if we don't then we get into trouble of one sort or another. 3766 # A longer-term fix would be to have automake use am__CC in this case, 3767 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3768 CC="$am_aux_dir/compile $CC" 3769fi 3770ac_ext=c 3771ac_cpp='$CPP $CPPFLAGS' 3772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3774ac_compiler_gnu=$ac_cv_c_compiler_gnu 3775 3776DEPDIR="${am__leading_dot}deps" 3777 3778ac_config_commands="$ac_config_commands depfiles" 3779 3780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3781$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3782cat > confinc.mk << 'END' 3783am__doit: 3784 @echo this is the am__doit target >confinc.out 3785.PHONY: am__doit 3786END 3787am__include="#" 3788am__quote= 3789# BSD make does it like this. 3790echo '.include "confinc.mk" # ignored' > confmf.BSD 3791# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3792echo 'include confinc.mk # ignored' > confmf.GNU 3793_am_result=no 3794for s in GNU BSD; do 3795 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3796 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3797 ac_status=$? 3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3799 (exit $ac_status); } 3800 case $?:`cat confinc.out 2>/dev/null` in #( 3801 '0:this is the am__doit target') : 3802 case $s in #( 3803 BSD) : 3804 am__include='.include' am__quote='"' ;; #( 3805 *) : 3806 am__include='include' am__quote='' ;; 3807esac ;; #( 3808 *) : 3809 ;; 3810esac 3811 if test "$am__include" != "#"; then 3812 _am_result="yes ($s style)" 3813 break 3814 fi 3815done 3816rm -f confinc.* confmf.* 3817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3818$as_echo "${_am_result}" >&6; } 3819 3820# Check whether --enable-dependency-tracking was given. 3821if test "${enable_dependency_tracking+set}" = set; then : 3822 enableval=$enable_dependency_tracking; 3823fi 3824 3825if test "x$enable_dependency_tracking" != xno; then 3826 am_depcomp="$ac_aux_dir/depcomp" 3827 AMDEPBACKSLASH='\' 3828 am__nodep='_no' 3829fi 3830 if test "x$enable_dependency_tracking" != xno; then 3831 AMDEP_TRUE= 3832 AMDEP_FALSE='#' 3833else 3834 AMDEP_TRUE='#' 3835 AMDEP_FALSE= 3836fi 3837 3838 3839 3840depcc="$CC" am_compiler_list= 3841 3842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3843$as_echo_n "checking dependency style of $depcc... " >&6; } 3844if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3845 $as_echo_n "(cached) " >&6 3846else 3847 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3848 # We make a subdir and do the tests there. Otherwise we can end up 3849 # making bogus files that we don't know about and never remove. For 3850 # instance it was reported that on HP-UX the gcc test will end up 3851 # making a dummy file named 'D' -- because '-MD' means "put the output 3852 # in D". 3853 rm -rf conftest.dir 3854 mkdir conftest.dir 3855 # Copy depcomp to subdir because otherwise we won't find it if we're 3856 # using a relative directory. 3857 cp "$am_depcomp" conftest.dir 3858 cd conftest.dir 3859 # We will build objects and dependencies in a subdirectory because 3860 # it helps to detect inapplicable dependency modes. For instance 3861 # both Tru64's cc and ICC support -MD to output dependencies as a 3862 # side effect of compilation, but ICC will put the dependencies in 3863 # the current directory while Tru64 will put them in the object 3864 # directory. 3865 mkdir sub 3866 3867 am_cv_CC_dependencies_compiler_type=none 3868 if test "$am_compiler_list" = ""; then 3869 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3870 fi 3871 am__universal=false 3872 case " $depcc " in #( 3873 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3874 esac 3875 3876 for depmode in $am_compiler_list; do 3877 # Setup a source with many dependencies, because some compilers 3878 # like to wrap large dependency lists on column 80 (with \), and 3879 # we should not choose a depcomp mode which is confused by this. 3880 # 3881 # We need to recreate these files for each test, as the compiler may 3882 # overwrite some of them when testing with obscure command lines. 3883 # This happens at least with the AIX C compiler. 3884 : > sub/conftest.c 3885 for i in 1 2 3 4 5 6; do 3886 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3887 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3888 # Solaris 10 /bin/sh. 3889 echo '/* dummy */' > sub/conftst$i.h 3890 done 3891 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3892 3893 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3894 # mode. It turns out that the SunPro C++ compiler does not properly 3895 # handle '-M -o', and we need to detect this. Also, some Intel 3896 # versions had trouble with output in subdirs. 3897 am__obj=sub/conftest.${OBJEXT-o} 3898 am__minus_obj="-o $am__obj" 3899 case $depmode in 3900 gcc) 3901 # This depmode causes a compiler race in universal mode. 3902 test "$am__universal" = false || continue 3903 ;; 3904 nosideeffect) 3905 # After this tag, mechanisms are not by side-effect, so they'll 3906 # only be used when explicitly requested. 3907 if test "x$enable_dependency_tracking" = xyes; then 3908 continue 3909 else 3910 break 3911 fi 3912 ;; 3913 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3914 # This compiler won't grok '-c -o', but also, the minuso test has 3915 # not run yet. These depmodes are late enough in the game, and 3916 # so weak that their functioning should not be impacted. 3917 am__obj=conftest.${OBJEXT-o} 3918 am__minus_obj= 3919 ;; 3920 none) break ;; 3921 esac 3922 if depmode=$depmode \ 3923 source=sub/conftest.c object=$am__obj \ 3924 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3925 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3926 >/dev/null 2>conftest.err && 3927 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3928 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3929 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3930 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3931 # icc doesn't choke on unknown options, it will just issue warnings 3932 # or remarks (even with -Werror). So we grep stderr for any message 3933 # that says an option was ignored or not supported. 3934 # When given -MP, icc 7.0 and 7.1 complain thusly: 3935 # icc: Command line warning: ignoring option '-M'; no argument required 3936 # The diagnosis changed in icc 8.0: 3937 # icc: Command line remark: option '-MP' not supported 3938 if (grep 'ignoring option' conftest.err || 3939 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3940 am_cv_CC_dependencies_compiler_type=$depmode 3941 break 3942 fi 3943 fi 3944 done 3945 3946 cd .. 3947 rm -rf conftest.dir 3948else 3949 am_cv_CC_dependencies_compiler_type=none 3950fi 3951 3952fi 3953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3954$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3955CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3956 3957 if 3958 test "x$enable_dependency_tracking" != xno \ 3959 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3960 am__fastdepCC_TRUE= 3961 am__fastdepCC_FALSE='#' 3962else 3963 am__fastdepCC_TRUE='#' 3964 am__fastdepCC_FALSE= 3965fi 3966 3967 3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3969$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3970if ${ac_cv_prog_cc_c99+:} false; then : 3971 $as_echo_n "(cached) " >&6 3972else 3973 ac_cv_prog_cc_c99=no 3974ac_save_CC=$CC 3975cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3976/* end confdefs.h. */ 3977#include <stdarg.h> 3978#include <stdbool.h> 3979#include <stdlib.h> 3980#include <wchar.h> 3981#include <stdio.h> 3982 3983// Check varargs macros. These examples are taken from C99 6.10.3.5. 3984#define debug(...) fprintf (stderr, __VA_ARGS__) 3985#define showlist(...) puts (#__VA_ARGS__) 3986#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3987static void 3988test_varargs_macros (void) 3989{ 3990 int x = 1234; 3991 int y = 5678; 3992 debug ("Flag"); 3993 debug ("X = %d\n", x); 3994 showlist (The first, second, and third items.); 3995 report (x>y, "x is %d but y is %d", x, y); 3996} 3997 3998// Check long long types. 3999#define BIG64 18446744073709551615ull 4000#define BIG32 4294967295ul 4001#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4002#if !BIG_OK 4003 your preprocessor is broken; 4004#endif 4005#if BIG_OK 4006#else 4007 your preprocessor is broken; 4008#endif 4009static long long int bignum = -9223372036854775807LL; 4010static unsigned long long int ubignum = BIG64; 4011 4012struct incomplete_array 4013{ 4014 int datasize; 4015 double data[]; 4016}; 4017 4018struct named_init { 4019 int number; 4020 const wchar_t *name; 4021 double average; 4022}; 4023 4024typedef const char *ccp; 4025 4026static inline int 4027test_restrict (ccp restrict text) 4028{ 4029 // See if C++-style comments work. 4030 // Iterate through items via the restricted pointer. 4031 // Also check for declarations in for loops. 4032 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4033 continue; 4034 return 0; 4035} 4036 4037// Check varargs and va_copy. 4038static void 4039test_varargs (const char *format, ...) 4040{ 4041 va_list args; 4042 va_start (args, format); 4043 va_list args_copy; 4044 va_copy (args_copy, args); 4045 4046 const char *str; 4047 int number; 4048 float fnumber; 4049 4050 while (*format) 4051 { 4052 switch (*format++) 4053 { 4054 case 's': // string 4055 str = va_arg (args_copy, const char *); 4056 break; 4057 case 'd': // int 4058 number = va_arg (args_copy, int); 4059 break; 4060 case 'f': // float 4061 fnumber = va_arg (args_copy, double); 4062 break; 4063 default: 4064 break; 4065 } 4066 } 4067 va_end (args_copy); 4068 va_end (args); 4069} 4070 4071int 4072main () 4073{ 4074 4075 // Check bool. 4076 _Bool success = false; 4077 4078 // Check restrict. 4079 if (test_restrict ("String literal") == 0) 4080 success = true; 4081 char *restrict newvar = "Another string"; 4082 4083 // Check varargs. 4084 test_varargs ("s, d' f .", "string", 65, 34.234); 4085 test_varargs_macros (); 4086 4087 // Check flexible array members. 4088 struct incomplete_array *ia = 4089 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4090 ia->datasize = 10; 4091 for (int i = 0; i < ia->datasize; ++i) 4092 ia->data[i] = i * 1.234; 4093 4094 // Check named initializers. 4095 struct named_init ni = { 4096 .number = 34, 4097 .name = L"Test wide string", 4098 .average = 543.34343, 4099 }; 4100 4101 ni.number = 58; 4102 4103 int dynamic_array[ni.number]; 4104 dynamic_array[ni.number - 1] = 543; 4105 4106 // work around unused variable warnings 4107 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4108 || dynamic_array[ni.number - 1] != 543); 4109 4110 ; 4111 return 0; 4112} 4113_ACEOF 4114for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4115do 4116 CC="$ac_save_CC $ac_arg" 4117 if ac_fn_c_try_compile "$LINENO"; then : 4118 ac_cv_prog_cc_c99=$ac_arg 4119fi 4120rm -f core conftest.err conftest.$ac_objext 4121 test "x$ac_cv_prog_cc_c99" != "xno" && break 4122done 4123rm -f conftest.$ac_ext 4124CC=$ac_save_CC 4125 4126fi 4127# AC_CACHE_VAL 4128case "x$ac_cv_prog_cc_c99" in 4129 x) 4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4131$as_echo "none needed" >&6; } ;; 4132 xno) 4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4134$as_echo "unsupported" >&6; } ;; 4135 *) 4136 CC="$CC $ac_cv_prog_cc_c99" 4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4138$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4139esac 4140if test "x$ac_cv_prog_cc_c99" != xno; then : 4141 4142fi 4143 4144 4145 4146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4147$as_echo_n "checking whether ln -s works... " >&6; } 4148LN_S=$as_ln_s 4149if test "$LN_S" = "ln -s"; then 4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4151$as_echo "yes" >&6; } 4152else 4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4154$as_echo "no, using $LN_S" >&6; } 4155fi 4156 4157case `pwd` in 4158 *\ * | *\ *) 4159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4160$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4161esac 4162 4163 4164 4165macro_version='2.4.6' 4166macro_revision='2.4.6' 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180ltmain=$ac_aux_dir/ltmain.sh 4181 4182# Make sure we can run config.sub. 4183$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4184 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4185 4186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4187$as_echo_n "checking build system type... " >&6; } 4188if ${ac_cv_build+:} false; then : 4189 $as_echo_n "(cached) " >&6 4190else 4191 ac_build_alias=$build_alias 4192test "x$ac_build_alias" = x && 4193 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4194test "x$ac_build_alias" = x && 4195 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4196ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4197 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4198 4199fi 4200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4201$as_echo "$ac_cv_build" >&6; } 4202case $ac_cv_build in 4203*-*-*) ;; 4204*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4205esac 4206build=$ac_cv_build 4207ac_save_IFS=$IFS; IFS='-' 4208set x $ac_cv_build 4209shift 4210build_cpu=$1 4211build_vendor=$2 4212shift; shift 4213# Remember, the first character of IFS is used to create $*, 4214# except with old shells: 4215build_os=$* 4216IFS=$ac_save_IFS 4217case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4218 4219 4220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4221$as_echo_n "checking host system type... " >&6; } 4222if ${ac_cv_host+:} false; then : 4223 $as_echo_n "(cached) " >&6 4224else 4225 if test "x$host_alias" = x; then 4226 ac_cv_host=$ac_cv_build 4227else 4228 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4229 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4230fi 4231 4232fi 4233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4234$as_echo "$ac_cv_host" >&6; } 4235case $ac_cv_host in 4236*-*-*) ;; 4237*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4238esac 4239host=$ac_cv_host 4240ac_save_IFS=$IFS; IFS='-' 4241set x $ac_cv_host 4242shift 4243host_cpu=$1 4244host_vendor=$2 4245shift; shift 4246# Remember, the first character of IFS is used to create $*, 4247# except with old shells: 4248host_os=$* 4249IFS=$ac_save_IFS 4250case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4251 4252 4253# Backslashify metacharacters that are still active within 4254# double-quoted strings. 4255sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4256 4257# Same as above, but do not quote variable references. 4258double_quote_subst='s/\(["`\\]\)/\\\1/g' 4259 4260# Sed substitution to delay expansion of an escaped shell variable in a 4261# double_quote_subst'ed string. 4262delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4263 4264# Sed substitution to delay expansion of an escaped single quote. 4265delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4266 4267# Sed substitution to avoid accidental globbing in evaled expressions 4268no_glob_subst='s/\*/\\\*/g' 4269 4270ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4271ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4272ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4273 4274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4275$as_echo_n "checking how to print strings... " >&6; } 4276# Test print first, because it will be a builtin if present. 4277if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4278 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4279 ECHO='print -r --' 4280elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4281 ECHO='printf %s\n' 4282else 4283 # Use this function as a fallback that always works. 4284 func_fallback_echo () 4285 { 4286 eval 'cat <<_LTECHO_EOF 4287$1 4288_LTECHO_EOF' 4289 } 4290 ECHO='func_fallback_echo' 4291fi 4292 4293# func_echo_all arg... 4294# Invoke $ECHO with all args, space-separated. 4295func_echo_all () 4296{ 4297 $ECHO "" 4298} 4299 4300case $ECHO in 4301 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4302$as_echo "printf" >&6; } ;; 4303 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4304$as_echo "print -r" >&6; } ;; 4305 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4306$as_echo "cat" >&6; } ;; 4307esac 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4323$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4324if ${ac_cv_path_SED+:} false; then : 4325 $as_echo_n "(cached) " >&6 4326else 4327 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4328 for ac_i in 1 2 3 4 5 6 7; do 4329 ac_script="$ac_script$as_nl$ac_script" 4330 done 4331 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4332 { ac_script=; unset ac_script;} 4333 if test -z "$SED"; then 4334 ac_path_SED_found=false 4335 # Loop through the user's path and test for each of PROGNAME-LIST 4336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4337for as_dir in $PATH 4338do 4339 IFS=$as_save_IFS 4340 test -z "$as_dir" && as_dir=. 4341 for ac_prog in sed gsed; do 4342 for ac_exec_ext in '' $ac_executable_extensions; do 4343 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4344 as_fn_executable_p "$ac_path_SED" || continue 4345# Check for GNU ac_path_SED and select it if it is found. 4346 # Check for GNU $ac_path_SED 4347case `"$ac_path_SED" --version 2>&1` in 4348*GNU*) 4349 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4350*) 4351 ac_count=0 4352 $as_echo_n 0123456789 >"conftest.in" 4353 while : 4354 do 4355 cat "conftest.in" "conftest.in" >"conftest.tmp" 4356 mv "conftest.tmp" "conftest.in" 4357 cp "conftest.in" "conftest.nl" 4358 $as_echo '' >> "conftest.nl" 4359 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4360 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4361 as_fn_arith $ac_count + 1 && ac_count=$as_val 4362 if test $ac_count -gt ${ac_path_SED_max-0}; then 4363 # Best one so far, save it but keep looking for a better one 4364 ac_cv_path_SED="$ac_path_SED" 4365 ac_path_SED_max=$ac_count 4366 fi 4367 # 10*(2^10) chars as input seems more than enough 4368 test $ac_count -gt 10 && break 4369 done 4370 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4371esac 4372 4373 $ac_path_SED_found && break 3 4374 done 4375 done 4376 done 4377IFS=$as_save_IFS 4378 if test -z "$ac_cv_path_SED"; then 4379 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4380 fi 4381else 4382 ac_cv_path_SED=$SED 4383fi 4384 4385fi 4386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4387$as_echo "$ac_cv_path_SED" >&6; } 4388 SED="$ac_cv_path_SED" 4389 rm -f conftest.sed 4390 4391test -z "$SED" && SED=sed 4392Xsed="$SED -e 1s/^X//" 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4405$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4406if ${ac_cv_path_GREP+:} false; then : 4407 $as_echo_n "(cached) " >&6 4408else 4409 if test -z "$GREP"; then 4410 ac_path_GREP_found=false 4411 # Loop through the user's path and test for each of PROGNAME-LIST 4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4413for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4414do 4415 IFS=$as_save_IFS 4416 test -z "$as_dir" && as_dir=. 4417 for ac_prog in grep ggrep; do 4418 for ac_exec_ext in '' $ac_executable_extensions; do 4419 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4420 as_fn_executable_p "$ac_path_GREP" || continue 4421# Check for GNU ac_path_GREP and select it if it is found. 4422 # Check for GNU $ac_path_GREP 4423case `"$ac_path_GREP" --version 2>&1` in 4424*GNU*) 4425 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4426*) 4427 ac_count=0 4428 $as_echo_n 0123456789 >"conftest.in" 4429 while : 4430 do 4431 cat "conftest.in" "conftest.in" >"conftest.tmp" 4432 mv "conftest.tmp" "conftest.in" 4433 cp "conftest.in" "conftest.nl" 4434 $as_echo 'GREP' >> "conftest.nl" 4435 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4436 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4437 as_fn_arith $ac_count + 1 && ac_count=$as_val 4438 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4439 # Best one so far, save it but keep looking for a better one 4440 ac_cv_path_GREP="$ac_path_GREP" 4441 ac_path_GREP_max=$ac_count 4442 fi 4443 # 10*(2^10) chars as input seems more than enough 4444 test $ac_count -gt 10 && break 4445 done 4446 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4447esac 4448 4449 $ac_path_GREP_found && break 3 4450 done 4451 done 4452 done 4453IFS=$as_save_IFS 4454 if test -z "$ac_cv_path_GREP"; then 4455 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4456 fi 4457else 4458 ac_cv_path_GREP=$GREP 4459fi 4460 4461fi 4462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4463$as_echo "$ac_cv_path_GREP" >&6; } 4464 GREP="$ac_cv_path_GREP" 4465 4466 4467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4468$as_echo_n "checking for egrep... " >&6; } 4469if ${ac_cv_path_EGREP+:} false; then : 4470 $as_echo_n "(cached) " >&6 4471else 4472 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4473 then ac_cv_path_EGREP="$GREP -E" 4474 else 4475 if test -z "$EGREP"; then 4476 ac_path_EGREP_found=false 4477 # Loop through the user's path and test for each of PROGNAME-LIST 4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4479for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4480do 4481 IFS=$as_save_IFS 4482 test -z "$as_dir" && as_dir=. 4483 for ac_prog in egrep; do 4484 for ac_exec_ext in '' $ac_executable_extensions; do 4485 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4486 as_fn_executable_p "$ac_path_EGREP" || continue 4487# Check for GNU ac_path_EGREP and select it if it is found. 4488 # Check for GNU $ac_path_EGREP 4489case `"$ac_path_EGREP" --version 2>&1` in 4490*GNU*) 4491 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4492*) 4493 ac_count=0 4494 $as_echo_n 0123456789 >"conftest.in" 4495 while : 4496 do 4497 cat "conftest.in" "conftest.in" >"conftest.tmp" 4498 mv "conftest.tmp" "conftest.in" 4499 cp "conftest.in" "conftest.nl" 4500 $as_echo 'EGREP' >> "conftest.nl" 4501 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4502 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4503 as_fn_arith $ac_count + 1 && ac_count=$as_val 4504 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4505 # Best one so far, save it but keep looking for a better one 4506 ac_cv_path_EGREP="$ac_path_EGREP" 4507 ac_path_EGREP_max=$ac_count 4508 fi 4509 # 10*(2^10) chars as input seems more than enough 4510 test $ac_count -gt 10 && break 4511 done 4512 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4513esac 4514 4515 $ac_path_EGREP_found && break 3 4516 done 4517 done 4518 done 4519IFS=$as_save_IFS 4520 if test -z "$ac_cv_path_EGREP"; then 4521 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4522 fi 4523else 4524 ac_cv_path_EGREP=$EGREP 4525fi 4526 4527 fi 4528fi 4529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4530$as_echo "$ac_cv_path_EGREP" >&6; } 4531 EGREP="$ac_cv_path_EGREP" 4532 4533 4534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4535$as_echo_n "checking for fgrep... " >&6; } 4536if ${ac_cv_path_FGREP+:} false; then : 4537 $as_echo_n "(cached) " >&6 4538else 4539 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4540 then ac_cv_path_FGREP="$GREP -F" 4541 else 4542 if test -z "$FGREP"; then 4543 ac_path_FGREP_found=false 4544 # Loop through the user's path and test for each of PROGNAME-LIST 4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4546for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4547do 4548 IFS=$as_save_IFS 4549 test -z "$as_dir" && as_dir=. 4550 for ac_prog in fgrep; do 4551 for ac_exec_ext in '' $ac_executable_extensions; do 4552 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4553 as_fn_executable_p "$ac_path_FGREP" || continue 4554# Check for GNU ac_path_FGREP and select it if it is found. 4555 # Check for GNU $ac_path_FGREP 4556case `"$ac_path_FGREP" --version 2>&1` in 4557*GNU*) 4558 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4559*) 4560 ac_count=0 4561 $as_echo_n 0123456789 >"conftest.in" 4562 while : 4563 do 4564 cat "conftest.in" "conftest.in" >"conftest.tmp" 4565 mv "conftest.tmp" "conftest.in" 4566 cp "conftest.in" "conftest.nl" 4567 $as_echo 'FGREP' >> "conftest.nl" 4568 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4569 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4570 as_fn_arith $ac_count + 1 && ac_count=$as_val 4571 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4572 # Best one so far, save it but keep looking for a better one 4573 ac_cv_path_FGREP="$ac_path_FGREP" 4574 ac_path_FGREP_max=$ac_count 4575 fi 4576 # 10*(2^10) chars as input seems more than enough 4577 test $ac_count -gt 10 && break 4578 done 4579 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4580esac 4581 4582 $ac_path_FGREP_found && break 3 4583 done 4584 done 4585 done 4586IFS=$as_save_IFS 4587 if test -z "$ac_cv_path_FGREP"; then 4588 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4589 fi 4590else 4591 ac_cv_path_FGREP=$FGREP 4592fi 4593 4594 fi 4595fi 4596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4597$as_echo "$ac_cv_path_FGREP" >&6; } 4598 FGREP="$ac_cv_path_FGREP" 4599 4600 4601test -z "$GREP" && GREP=grep 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621# Check whether --with-gnu-ld was given. 4622if test "${with_gnu_ld+set}" = set; then : 4623 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4624else 4625 with_gnu_ld=no 4626fi 4627 4628ac_prog=ld 4629if test yes = "$GCC"; then 4630 # Check if gcc -print-prog-name=ld gives a path. 4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4632$as_echo_n "checking for ld used by $CC... " >&6; } 4633 case $host in 4634 *-*-mingw*) 4635 # gcc leaves a trailing carriage return, which upsets mingw 4636 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4637 *) 4638 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4639 esac 4640 case $ac_prog in 4641 # Accept absolute paths. 4642 [\\/]* | ?:[\\/]*) 4643 re_direlt='/[^/][^/]*/\.\./' 4644 # Canonicalize the pathname of ld 4645 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4646 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4647 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4648 done 4649 test -z "$LD" && LD=$ac_prog 4650 ;; 4651 "") 4652 # If it fails, then pretend we aren't using GCC. 4653 ac_prog=ld 4654 ;; 4655 *) 4656 # If it is relative, then search for the first ld in PATH. 4657 with_gnu_ld=unknown 4658 ;; 4659 esac 4660elif test yes = "$with_gnu_ld"; then 4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4662$as_echo_n "checking for GNU ld... " >&6; } 4663else 4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4665$as_echo_n "checking for non-GNU ld... " >&6; } 4666fi 4667if ${lt_cv_path_LD+:} false; then : 4668 $as_echo_n "(cached) " >&6 4669else 4670 if test -z "$LD"; then 4671 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4672 for ac_dir in $PATH; do 4673 IFS=$lt_save_ifs 4674 test -z "$ac_dir" && ac_dir=. 4675 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4676 lt_cv_path_LD=$ac_dir/$ac_prog 4677 # Check to see if the program is GNU ld. I'd rather use --version, 4678 # but apparently some variants of GNU ld only accept -v. 4679 # Break only if it was the GNU/non-GNU ld that we prefer. 4680 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4681 *GNU* | *'with BFD'*) 4682 test no != "$with_gnu_ld" && break 4683 ;; 4684 *) 4685 test yes != "$with_gnu_ld" && break 4686 ;; 4687 esac 4688 fi 4689 done 4690 IFS=$lt_save_ifs 4691else 4692 lt_cv_path_LD=$LD # Let the user override the test with a path. 4693fi 4694fi 4695 4696LD=$lt_cv_path_LD 4697if test -n "$LD"; then 4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4699$as_echo "$LD" >&6; } 4700else 4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4702$as_echo "no" >&6; } 4703fi 4704test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4706$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4707if ${lt_cv_prog_gnu_ld+:} false; then : 4708 $as_echo_n "(cached) " >&6 4709else 4710 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4711case `$LD -v 2>&1 </dev/null` in 4712*GNU* | *'with BFD'*) 4713 lt_cv_prog_gnu_ld=yes 4714 ;; 4715*) 4716 lt_cv_prog_gnu_ld=no 4717 ;; 4718esac 4719fi 4720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4721$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4722with_gnu_ld=$lt_cv_prog_gnu_ld 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4733$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4734if ${lt_cv_path_NM+:} false; then : 4735 $as_echo_n "(cached) " >&6 4736else 4737 if test -n "$NM"; then 4738 # Let the user override the test. 4739 lt_cv_path_NM=$NM 4740else 4741 lt_nm_to_check=${ac_tool_prefix}nm 4742 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4743 lt_nm_to_check="$lt_nm_to_check nm" 4744 fi 4745 for lt_tmp_nm in $lt_nm_to_check; do 4746 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4747 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4748 IFS=$lt_save_ifs 4749 test -z "$ac_dir" && ac_dir=. 4750 tmp_nm=$ac_dir/$lt_tmp_nm 4751 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4752 # Check to see if the nm accepts a BSD-compat flag. 4753 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4754 # nm: unknown option "B" ignored 4755 # Tru64's nm complains that /dev/null is an invalid object file 4756 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4757 case $build_os in 4758 mingw*) lt_bad_file=conftest.nm/nofile ;; 4759 *) lt_bad_file=/dev/null ;; 4760 esac 4761 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4762 *$lt_bad_file* | *'Invalid file or object type'*) 4763 lt_cv_path_NM="$tmp_nm -B" 4764 break 2 4765 ;; 4766 *) 4767 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4768 */dev/null*) 4769 lt_cv_path_NM="$tmp_nm -p" 4770 break 2 4771 ;; 4772 *) 4773 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4774 continue # so that we can try to find one that supports BSD flags 4775 ;; 4776 esac 4777 ;; 4778 esac 4779 fi 4780 done 4781 IFS=$lt_save_ifs 4782 done 4783 : ${lt_cv_path_NM=no} 4784fi 4785fi 4786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4787$as_echo "$lt_cv_path_NM" >&6; } 4788if test no != "$lt_cv_path_NM"; then 4789 NM=$lt_cv_path_NM 4790else 4791 # Didn't find any BSD compatible name lister, look for dumpbin. 4792 if test -n "$DUMPBIN"; then : 4793 # Let the user override the test. 4794 else 4795 if test -n "$ac_tool_prefix"; then 4796 for ac_prog in dumpbin "link -dump" 4797 do 4798 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4799set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4801$as_echo_n "checking for $ac_word... " >&6; } 4802if ${ac_cv_prog_DUMPBIN+:} false; then : 4803 $as_echo_n "(cached) " >&6 4804else 4805 if test -n "$DUMPBIN"; then 4806 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4807else 4808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4809for as_dir in $PATH 4810do 4811 IFS=$as_save_IFS 4812 test -z "$as_dir" && as_dir=. 4813 for ac_exec_ext in '' $ac_executable_extensions; do 4814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4815 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4817 break 2 4818 fi 4819done 4820 done 4821IFS=$as_save_IFS 4822 4823fi 4824fi 4825DUMPBIN=$ac_cv_prog_DUMPBIN 4826if test -n "$DUMPBIN"; then 4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4828$as_echo "$DUMPBIN" >&6; } 4829else 4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4831$as_echo "no" >&6; } 4832fi 4833 4834 4835 test -n "$DUMPBIN" && break 4836 done 4837fi 4838if test -z "$DUMPBIN"; then 4839 ac_ct_DUMPBIN=$DUMPBIN 4840 for ac_prog in dumpbin "link -dump" 4841do 4842 # Extract the first word of "$ac_prog", so it can be a program name with args. 4843set dummy $ac_prog; ac_word=$2 4844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4845$as_echo_n "checking for $ac_word... " >&6; } 4846if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4847 $as_echo_n "(cached) " >&6 4848else 4849 if test -n "$ac_ct_DUMPBIN"; then 4850 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4851else 4852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4853for as_dir in $PATH 4854do 4855 IFS=$as_save_IFS 4856 test -z "$as_dir" && as_dir=. 4857 for ac_exec_ext in '' $ac_executable_extensions; do 4858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4859 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4861 break 2 4862 fi 4863done 4864 done 4865IFS=$as_save_IFS 4866 4867fi 4868fi 4869ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4870if test -n "$ac_ct_DUMPBIN"; then 4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4872$as_echo "$ac_ct_DUMPBIN" >&6; } 4873else 4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4875$as_echo "no" >&6; } 4876fi 4877 4878 4879 test -n "$ac_ct_DUMPBIN" && break 4880done 4881 4882 if test "x$ac_ct_DUMPBIN" = x; then 4883 DUMPBIN=":" 4884 else 4885 case $cross_compiling:$ac_tool_warned in 4886yes:) 4887{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4888$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4889ac_tool_warned=yes ;; 4890esac 4891 DUMPBIN=$ac_ct_DUMPBIN 4892 fi 4893fi 4894 4895 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4896 *COFF*) 4897 DUMPBIN="$DUMPBIN -symbols -headers" 4898 ;; 4899 *) 4900 DUMPBIN=: 4901 ;; 4902 esac 4903 fi 4904 4905 if test : != "$DUMPBIN"; then 4906 NM=$DUMPBIN 4907 fi 4908fi 4909test -z "$NM" && NM=nm 4910 4911 4912 4913 4914 4915 4916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4917$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4918if ${lt_cv_nm_interface+:} false; then : 4919 $as_echo_n "(cached) " >&6 4920else 4921 lt_cv_nm_interface="BSD nm" 4922 echo "int some_variable = 0;" > conftest.$ac_ext 4923 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4924 (eval "$ac_compile" 2>conftest.err) 4925 cat conftest.err >&5 4926 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4927 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4928 cat conftest.err >&5 4929 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4930 cat conftest.out >&5 4931 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4932 lt_cv_nm_interface="MS dumpbin" 4933 fi 4934 rm -f conftest* 4935fi 4936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4937$as_echo "$lt_cv_nm_interface" >&6; } 4938 4939# find the maximum length of command line arguments 4940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4941$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4942if ${lt_cv_sys_max_cmd_len+:} false; then : 4943 $as_echo_n "(cached) " >&6 4944else 4945 i=0 4946 teststring=ABCD 4947 4948 case $build_os in 4949 msdosdjgpp*) 4950 # On DJGPP, this test can blow up pretty badly due to problems in libc 4951 # (any single argument exceeding 2000 bytes causes a buffer overrun 4952 # during glob expansion). Even if it were fixed, the result of this 4953 # check would be larger than it should be. 4954 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4955 ;; 4956 4957 gnu*) 4958 # Under GNU Hurd, this test is not required because there is 4959 # no limit to the length of command line arguments. 4960 # Libtool will interpret -1 as no limit whatsoever 4961 lt_cv_sys_max_cmd_len=-1; 4962 ;; 4963 4964 cygwin* | mingw* | cegcc*) 4965 # On Win9x/ME, this test blows up -- it succeeds, but takes 4966 # about 5 minutes as the teststring grows exponentially. 4967 # Worse, since 9x/ME are not pre-emptively multitasking, 4968 # you end up with a "frozen" computer, even though with patience 4969 # the test eventually succeeds (with a max line length of 256k). 4970 # Instead, let's just punt: use the minimum linelength reported by 4971 # all of the supported platforms: 8192 (on NT/2K/XP). 4972 lt_cv_sys_max_cmd_len=8192; 4973 ;; 4974 4975 mint*) 4976 # On MiNT this can take a long time and run out of memory. 4977 lt_cv_sys_max_cmd_len=8192; 4978 ;; 4979 4980 amigaos*) 4981 # On AmigaOS with pdksh, this test takes hours, literally. 4982 # So we just punt and use a minimum line length of 8192. 4983 lt_cv_sys_max_cmd_len=8192; 4984 ;; 4985 4986 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4987 # This has been around since 386BSD, at least. Likely further. 4988 if test -x /sbin/sysctl; then 4989 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4990 elif test -x /usr/sbin/sysctl; then 4991 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4992 else 4993 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4994 fi 4995 # And add a safety zone 4996 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4997 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4998 ;; 4999 5000 interix*) 5001 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5002 lt_cv_sys_max_cmd_len=196608 5003 ;; 5004 5005 os2*) 5006 # The test takes a long time on OS/2. 5007 lt_cv_sys_max_cmd_len=8192 5008 ;; 5009 5010 osf*) 5011 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5012 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5013 # nice to cause kernel panics so lets avoid the loop below. 5014 # First set a reasonable default. 5015 lt_cv_sys_max_cmd_len=16384 5016 # 5017 if test -x /sbin/sysconfig; then 5018 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5019 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5020 esac 5021 fi 5022 ;; 5023 sco3.2v5*) 5024 lt_cv_sys_max_cmd_len=102400 5025 ;; 5026 sysv5* | sco5v6* | sysv4.2uw2*) 5027 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5028 if test -n "$kargmax"; then 5029 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5030 else 5031 lt_cv_sys_max_cmd_len=32768 5032 fi 5033 ;; 5034 *) 5035 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5036 if test -n "$lt_cv_sys_max_cmd_len" && \ 5037 test undefined != "$lt_cv_sys_max_cmd_len"; then 5038 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5039 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5040 else 5041 # Make teststring a little bigger before we do anything with it. 5042 # a 1K string should be a reasonable start. 5043 for i in 1 2 3 4 5 6 7 8; do 5044 teststring=$teststring$teststring 5045 done 5046 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5047 # If test is not a shell built-in, we'll probably end up computing a 5048 # maximum length that is only half of the actual maximum length, but 5049 # we can't tell. 5050 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5051 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5052 test 17 != "$i" # 1/2 MB should be enough 5053 do 5054 i=`expr $i + 1` 5055 teststring=$teststring$teststring 5056 done 5057 # Only check the string length outside the loop. 5058 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5059 teststring= 5060 # Add a significant safety factor because C++ compilers can tack on 5061 # massive amounts of additional arguments before passing them to the 5062 # linker. It appears as though 1/2 is a usable value. 5063 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5064 fi 5065 ;; 5066 esac 5067 5068fi 5069 5070if test -n "$lt_cv_sys_max_cmd_len"; then 5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5072$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5073else 5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5075$as_echo "none" >&6; } 5076fi 5077max_cmd_len=$lt_cv_sys_max_cmd_len 5078 5079 5080 5081 5082 5083 5084: ${CP="cp -f"} 5085: ${MV="mv -f"} 5086: ${RM="rm -f"} 5087 5088if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5089 lt_unset=unset 5090else 5091 lt_unset=false 5092fi 5093 5094 5095 5096 5097 5098# test EBCDIC or ASCII 5099case `echo X|tr X '\101'` in 5100 A) # ASCII based system 5101 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5102 lt_SP2NL='tr \040 \012' 5103 lt_NL2SP='tr \015\012 \040\040' 5104 ;; 5105 *) # EBCDIC based system 5106 lt_SP2NL='tr \100 \n' 5107 lt_NL2SP='tr \r\n \100\100' 5108 ;; 5109esac 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5120$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5121if ${lt_cv_to_host_file_cmd+:} false; then : 5122 $as_echo_n "(cached) " >&6 5123else 5124 case $host in 5125 *-*-mingw* ) 5126 case $build in 5127 *-*-mingw* ) # actually msys 5128 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5129 ;; 5130 *-*-cygwin* ) 5131 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5132 ;; 5133 * ) # otherwise, assume *nix 5134 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5135 ;; 5136 esac 5137 ;; 5138 *-*-cygwin* ) 5139 case $build in 5140 *-*-mingw* ) # actually msys 5141 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5142 ;; 5143 *-*-cygwin* ) 5144 lt_cv_to_host_file_cmd=func_convert_file_noop 5145 ;; 5146 * ) # otherwise, assume *nix 5147 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5148 ;; 5149 esac 5150 ;; 5151 * ) # unhandled hosts (and "normal" native builds) 5152 lt_cv_to_host_file_cmd=func_convert_file_noop 5153 ;; 5154esac 5155 5156fi 5157 5158to_host_file_cmd=$lt_cv_to_host_file_cmd 5159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5160$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5161 5162 5163 5164 5165 5166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5167$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5168if ${lt_cv_to_tool_file_cmd+:} false; then : 5169 $as_echo_n "(cached) " >&6 5170else 5171 #assume ordinary cross tools, or native build. 5172lt_cv_to_tool_file_cmd=func_convert_file_noop 5173case $host in 5174 *-*-mingw* ) 5175 case $build in 5176 *-*-mingw* ) # actually msys 5177 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5178 ;; 5179 esac 5180 ;; 5181esac 5182 5183fi 5184 5185to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5187$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5188 5189 5190 5191 5192 5193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5194$as_echo_n "checking for $LD option to reload object files... " >&6; } 5195if ${lt_cv_ld_reload_flag+:} false; then : 5196 $as_echo_n "(cached) " >&6 5197else 5198 lt_cv_ld_reload_flag='-r' 5199fi 5200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5201$as_echo "$lt_cv_ld_reload_flag" >&6; } 5202reload_flag=$lt_cv_ld_reload_flag 5203case $reload_flag in 5204"" | " "*) ;; 5205*) reload_flag=" $reload_flag" ;; 5206esac 5207reload_cmds='$LD$reload_flag -o $output$reload_objs' 5208case $host_os in 5209 cygwin* | mingw* | pw32* | cegcc*) 5210 if test yes != "$GCC"; then 5211 reload_cmds=false 5212 fi 5213 ;; 5214 darwin*) 5215 if test yes = "$GCC"; then 5216 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5217 else 5218 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5219 fi 5220 ;; 5221esac 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231if test -n "$ac_tool_prefix"; then 5232 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5233set dummy ${ac_tool_prefix}objdump; ac_word=$2 5234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5235$as_echo_n "checking for $ac_word... " >&6; } 5236if ${ac_cv_prog_OBJDUMP+:} false; then : 5237 $as_echo_n "(cached) " >&6 5238else 5239 if test -n "$OBJDUMP"; then 5240 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5241else 5242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5243for as_dir in $PATH 5244do 5245 IFS=$as_save_IFS 5246 test -z "$as_dir" && as_dir=. 5247 for ac_exec_ext in '' $ac_executable_extensions; do 5248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5249 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5251 break 2 5252 fi 5253done 5254 done 5255IFS=$as_save_IFS 5256 5257fi 5258fi 5259OBJDUMP=$ac_cv_prog_OBJDUMP 5260if test -n "$OBJDUMP"; then 5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5262$as_echo "$OBJDUMP" >&6; } 5263else 5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5265$as_echo "no" >&6; } 5266fi 5267 5268 5269fi 5270if test -z "$ac_cv_prog_OBJDUMP"; then 5271 ac_ct_OBJDUMP=$OBJDUMP 5272 # Extract the first word of "objdump", so it can be a program name with args. 5273set dummy objdump; ac_word=$2 5274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5275$as_echo_n "checking for $ac_word... " >&6; } 5276if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5277 $as_echo_n "(cached) " >&6 5278else 5279 if test -n "$ac_ct_OBJDUMP"; then 5280 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5281else 5282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5283for as_dir in $PATH 5284do 5285 IFS=$as_save_IFS 5286 test -z "$as_dir" && as_dir=. 5287 for ac_exec_ext in '' $ac_executable_extensions; do 5288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5289 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5291 break 2 5292 fi 5293done 5294 done 5295IFS=$as_save_IFS 5296 5297fi 5298fi 5299ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5300if test -n "$ac_ct_OBJDUMP"; then 5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5302$as_echo "$ac_ct_OBJDUMP" >&6; } 5303else 5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5305$as_echo "no" >&6; } 5306fi 5307 5308 if test "x$ac_ct_OBJDUMP" = x; then 5309 OBJDUMP="false" 5310 else 5311 case $cross_compiling:$ac_tool_warned in 5312yes:) 5313{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5314$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5315ac_tool_warned=yes ;; 5316esac 5317 OBJDUMP=$ac_ct_OBJDUMP 5318 fi 5319else 5320 OBJDUMP="$ac_cv_prog_OBJDUMP" 5321fi 5322 5323test -z "$OBJDUMP" && OBJDUMP=objdump 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5334$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5335if ${lt_cv_deplibs_check_method+:} false; then : 5336 $as_echo_n "(cached) " >&6 5337else 5338 lt_cv_file_magic_cmd='$MAGIC_CMD' 5339lt_cv_file_magic_test_file= 5340lt_cv_deplibs_check_method='unknown' 5341# Need to set the preceding variable on all platforms that support 5342# interlibrary dependencies. 5343# 'none' -- dependencies not supported. 5344# 'unknown' -- same as none, but documents that we really don't know. 5345# 'pass_all' -- all dependencies passed with no checks. 5346# 'test_compile' -- check by making test program. 5347# 'file_magic [[regex]]' -- check by looking for files in library path 5348# that responds to the $file_magic_cmd with a given extended regex. 5349# If you have 'file' or equivalent on your system and you're not sure 5350# whether 'pass_all' will *always* work, you probably want this one. 5351 5352case $host_os in 5353aix[4-9]*) 5354 lt_cv_deplibs_check_method=pass_all 5355 ;; 5356 5357beos*) 5358 lt_cv_deplibs_check_method=pass_all 5359 ;; 5360 5361bsdi[45]*) 5362 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5363 lt_cv_file_magic_cmd='/usr/bin/file -L' 5364 lt_cv_file_magic_test_file=/shlib/libc.so 5365 ;; 5366 5367cygwin*) 5368 # func_win32_libid is a shell function defined in ltmain.sh 5369 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5370 lt_cv_file_magic_cmd='func_win32_libid' 5371 ;; 5372 5373mingw* | pw32*) 5374 # Base MSYS/MinGW do not provide the 'file' command needed by 5375 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5376 # unless we find 'file', for example because we are cross-compiling. 5377 if ( file / ) >/dev/null 2>&1; then 5378 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5379 lt_cv_file_magic_cmd='func_win32_libid' 5380 else 5381 # Keep this pattern in sync with the one in func_win32_libid. 5382 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5383 lt_cv_file_magic_cmd='$OBJDUMP -f' 5384 fi 5385 ;; 5386 5387cegcc*) 5388 # use the weaker test based on 'objdump'. See mingw*. 5389 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5390 lt_cv_file_magic_cmd='$OBJDUMP -f' 5391 ;; 5392 5393darwin* | rhapsody*) 5394 lt_cv_deplibs_check_method=pass_all 5395 ;; 5396 5397freebsd* | dragonfly*) 5398 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5399 case $host_cpu in 5400 i*86 ) 5401 # Not sure whether the presence of OpenBSD here was a mistake. 5402 # Let's accept both of them until this is cleared up. 5403 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5404 lt_cv_file_magic_cmd=/usr/bin/file 5405 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5406 ;; 5407 esac 5408 else 5409 lt_cv_deplibs_check_method=pass_all 5410 fi 5411 ;; 5412 5413haiku*) 5414 lt_cv_deplibs_check_method=pass_all 5415 ;; 5416 5417hpux10.20* | hpux11*) 5418 lt_cv_file_magic_cmd=/usr/bin/file 5419 case $host_cpu in 5420 ia64*) 5421 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5422 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5423 ;; 5424 hppa*64*) 5425 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]' 5426 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5427 ;; 5428 *) 5429 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5430 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5431 ;; 5432 esac 5433 ;; 5434 5435interix[3-9]*) 5436 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5437 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5438 ;; 5439 5440irix5* | irix6* | nonstopux*) 5441 case $LD in 5442 *-32|*"-32 ") libmagic=32-bit;; 5443 *-n32|*"-n32 ") libmagic=N32;; 5444 *-64|*"-64 ") libmagic=64-bit;; 5445 *) libmagic=never-match;; 5446 esac 5447 lt_cv_deplibs_check_method=pass_all 5448 ;; 5449 5450# This must be glibc/ELF. 5451linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5452 lt_cv_deplibs_check_method=pass_all 5453 ;; 5454 5455netbsd*) 5456 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5457 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5458 else 5459 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5460 fi 5461 ;; 5462 5463newos6*) 5464 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5465 lt_cv_file_magic_cmd=/usr/bin/file 5466 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5467 ;; 5468 5469*nto* | *qnx*) 5470 lt_cv_deplibs_check_method=pass_all 5471 ;; 5472 5473openbsd* | bitrig*) 5474 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5475 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5476 else 5477 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5478 fi 5479 ;; 5480 5481osf3* | osf4* | osf5*) 5482 lt_cv_deplibs_check_method=pass_all 5483 ;; 5484 5485rdos*) 5486 lt_cv_deplibs_check_method=pass_all 5487 ;; 5488 5489solaris*) 5490 lt_cv_deplibs_check_method=pass_all 5491 ;; 5492 5493sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5494 lt_cv_deplibs_check_method=pass_all 5495 ;; 5496 5497sysv4 | sysv4.3*) 5498 case $host_vendor in 5499 motorola) 5500 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]' 5501 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5502 ;; 5503 ncr) 5504 lt_cv_deplibs_check_method=pass_all 5505 ;; 5506 sequent) 5507 lt_cv_file_magic_cmd='/bin/file' 5508 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5509 ;; 5510 sni) 5511 lt_cv_file_magic_cmd='/bin/file' 5512 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5513 lt_cv_file_magic_test_file=/lib/libc.so 5514 ;; 5515 siemens) 5516 lt_cv_deplibs_check_method=pass_all 5517 ;; 5518 pc) 5519 lt_cv_deplibs_check_method=pass_all 5520 ;; 5521 esac 5522 ;; 5523 5524tpf*) 5525 lt_cv_deplibs_check_method=pass_all 5526 ;; 5527os2*) 5528 lt_cv_deplibs_check_method=pass_all 5529 ;; 5530esac 5531 5532fi 5533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5534$as_echo "$lt_cv_deplibs_check_method" >&6; } 5535 5536file_magic_glob= 5537want_nocaseglob=no 5538if test "$build" = "$host"; then 5539 case $host_os in 5540 mingw* | pw32*) 5541 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5542 want_nocaseglob=yes 5543 else 5544 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5545 fi 5546 ;; 5547 esac 5548fi 5549 5550file_magic_cmd=$lt_cv_file_magic_cmd 5551deplibs_check_method=$lt_cv_deplibs_check_method 5552test -z "$deplibs_check_method" && deplibs_check_method=unknown 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575if test -n "$ac_tool_prefix"; then 5576 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5577set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5579$as_echo_n "checking for $ac_word... " >&6; } 5580if ${ac_cv_prog_DLLTOOL+:} false; then : 5581 $as_echo_n "(cached) " >&6 5582else 5583 if test -n "$DLLTOOL"; then 5584 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5585else 5586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5587for as_dir in $PATH 5588do 5589 IFS=$as_save_IFS 5590 test -z "$as_dir" && as_dir=. 5591 for ac_exec_ext in '' $ac_executable_extensions; do 5592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5593 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5595 break 2 5596 fi 5597done 5598 done 5599IFS=$as_save_IFS 5600 5601fi 5602fi 5603DLLTOOL=$ac_cv_prog_DLLTOOL 5604if test -n "$DLLTOOL"; then 5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5606$as_echo "$DLLTOOL" >&6; } 5607else 5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5609$as_echo "no" >&6; } 5610fi 5611 5612 5613fi 5614if test -z "$ac_cv_prog_DLLTOOL"; then 5615 ac_ct_DLLTOOL=$DLLTOOL 5616 # Extract the first word of "dlltool", so it can be a program name with args. 5617set dummy dlltool; ac_word=$2 5618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5619$as_echo_n "checking for $ac_word... " >&6; } 5620if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5621 $as_echo_n "(cached) " >&6 5622else 5623 if test -n "$ac_ct_DLLTOOL"; then 5624 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5625else 5626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5627for as_dir in $PATH 5628do 5629 IFS=$as_save_IFS 5630 test -z "$as_dir" && as_dir=. 5631 for ac_exec_ext in '' $ac_executable_extensions; do 5632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5633 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5635 break 2 5636 fi 5637done 5638 done 5639IFS=$as_save_IFS 5640 5641fi 5642fi 5643ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5644if test -n "$ac_ct_DLLTOOL"; then 5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5646$as_echo "$ac_ct_DLLTOOL" >&6; } 5647else 5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5649$as_echo "no" >&6; } 5650fi 5651 5652 if test "x$ac_ct_DLLTOOL" = x; then 5653 DLLTOOL="false" 5654 else 5655 case $cross_compiling:$ac_tool_warned in 5656yes:) 5657{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5658$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5659ac_tool_warned=yes ;; 5660esac 5661 DLLTOOL=$ac_ct_DLLTOOL 5662 fi 5663else 5664 DLLTOOL="$ac_cv_prog_DLLTOOL" 5665fi 5666 5667test -z "$DLLTOOL" && DLLTOOL=dlltool 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5679$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5680if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5681 $as_echo_n "(cached) " >&6 5682else 5683 lt_cv_sharedlib_from_linklib_cmd='unknown' 5684 5685case $host_os in 5686cygwin* | mingw* | pw32* | cegcc*) 5687 # two different shell functions defined in ltmain.sh; 5688 # decide which one to use based on capabilities of $DLLTOOL 5689 case `$DLLTOOL --help 2>&1` in 5690 *--identify-strict*) 5691 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5692 ;; 5693 *) 5694 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5695 ;; 5696 esac 5697 ;; 5698*) 5699 # fallback: assume linklib IS sharedlib 5700 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5701 ;; 5702esac 5703 5704fi 5705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5706$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5707sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5708test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5709 5710 5711 5712 5713 5714 5715 5716 5717if test -n "$ac_tool_prefix"; then 5718 for ac_prog in ar 5719 do 5720 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5721set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5723$as_echo_n "checking for $ac_word... " >&6; } 5724if ${ac_cv_prog_AR+:} false; then : 5725 $as_echo_n "(cached) " >&6 5726else 5727 if test -n "$AR"; then 5728 ac_cv_prog_AR="$AR" # Let the user override the test. 5729else 5730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5731for as_dir in $PATH 5732do 5733 IFS=$as_save_IFS 5734 test -z "$as_dir" && as_dir=. 5735 for ac_exec_ext in '' $ac_executable_extensions; do 5736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5737 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5739 break 2 5740 fi 5741done 5742 done 5743IFS=$as_save_IFS 5744 5745fi 5746fi 5747AR=$ac_cv_prog_AR 5748if test -n "$AR"; then 5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5750$as_echo "$AR" >&6; } 5751else 5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5753$as_echo "no" >&6; } 5754fi 5755 5756 5757 test -n "$AR" && break 5758 done 5759fi 5760if test -z "$AR"; then 5761 ac_ct_AR=$AR 5762 for ac_prog in ar 5763do 5764 # Extract the first word of "$ac_prog", so it can be a program name with args. 5765set dummy $ac_prog; ac_word=$2 5766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5767$as_echo_n "checking for $ac_word... " >&6; } 5768if ${ac_cv_prog_ac_ct_AR+:} false; then : 5769 $as_echo_n "(cached) " >&6 5770else 5771 if test -n "$ac_ct_AR"; then 5772 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5773else 5774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5775for as_dir in $PATH 5776do 5777 IFS=$as_save_IFS 5778 test -z "$as_dir" && as_dir=. 5779 for ac_exec_ext in '' $ac_executable_extensions; do 5780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5781 ac_cv_prog_ac_ct_AR="$ac_prog" 5782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5783 break 2 5784 fi 5785done 5786 done 5787IFS=$as_save_IFS 5788 5789fi 5790fi 5791ac_ct_AR=$ac_cv_prog_ac_ct_AR 5792if test -n "$ac_ct_AR"; then 5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5794$as_echo "$ac_ct_AR" >&6; } 5795else 5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5797$as_echo "no" >&6; } 5798fi 5799 5800 5801 test -n "$ac_ct_AR" && break 5802done 5803 5804 if test "x$ac_ct_AR" = x; then 5805 AR="false" 5806 else 5807 case $cross_compiling:$ac_tool_warned in 5808yes:) 5809{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5810$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5811ac_tool_warned=yes ;; 5812esac 5813 AR=$ac_ct_AR 5814 fi 5815fi 5816 5817: ${AR=ar} 5818: ${AR_FLAGS=cru} 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5831$as_echo_n "checking for archiver @FILE support... " >&6; } 5832if ${lt_cv_ar_at_file+:} false; then : 5833 $as_echo_n "(cached) " >&6 5834else 5835 lt_cv_ar_at_file=no 5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5837/* end confdefs.h. */ 5838 5839int 5840main () 5841{ 5842 5843 ; 5844 return 0; 5845} 5846_ACEOF 5847if ac_fn_c_try_compile "$LINENO"; then : 5848 echo conftest.$ac_objext > conftest.lst 5849 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5851 (eval $lt_ar_try) 2>&5 5852 ac_status=$? 5853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5854 test $ac_status = 0; } 5855 if test 0 -eq "$ac_status"; then 5856 # Ensure the archiver fails upon bogus file names. 5857 rm -f conftest.$ac_objext libconftest.a 5858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5859 (eval $lt_ar_try) 2>&5 5860 ac_status=$? 5861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5862 test $ac_status = 0; } 5863 if test 0 -ne "$ac_status"; then 5864 lt_cv_ar_at_file=@ 5865 fi 5866 fi 5867 rm -f conftest.* libconftest.a 5868 5869fi 5870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5871 5872fi 5873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5874$as_echo "$lt_cv_ar_at_file" >&6; } 5875 5876if test no = "$lt_cv_ar_at_file"; then 5877 archiver_list_spec= 5878else 5879 archiver_list_spec=$lt_cv_ar_at_file 5880fi 5881 5882 5883 5884 5885 5886 5887 5888if test -n "$ac_tool_prefix"; then 5889 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5890set dummy ${ac_tool_prefix}strip; ac_word=$2 5891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5892$as_echo_n "checking for $ac_word... " >&6; } 5893if ${ac_cv_prog_STRIP+:} false; then : 5894 $as_echo_n "(cached) " >&6 5895else 5896 if test -n "$STRIP"; then 5897 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5898else 5899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5900for as_dir in $PATH 5901do 5902 IFS=$as_save_IFS 5903 test -z "$as_dir" && as_dir=. 5904 for ac_exec_ext in '' $ac_executable_extensions; do 5905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5906 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5908 break 2 5909 fi 5910done 5911 done 5912IFS=$as_save_IFS 5913 5914fi 5915fi 5916STRIP=$ac_cv_prog_STRIP 5917if test -n "$STRIP"; then 5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5919$as_echo "$STRIP" >&6; } 5920else 5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5922$as_echo "no" >&6; } 5923fi 5924 5925 5926fi 5927if test -z "$ac_cv_prog_STRIP"; then 5928 ac_ct_STRIP=$STRIP 5929 # Extract the first word of "strip", so it can be a program name with args. 5930set dummy strip; ac_word=$2 5931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5932$as_echo_n "checking for $ac_word... " >&6; } 5933if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5934 $as_echo_n "(cached) " >&6 5935else 5936 if test -n "$ac_ct_STRIP"; then 5937 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5938else 5939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5940for as_dir in $PATH 5941do 5942 IFS=$as_save_IFS 5943 test -z "$as_dir" && as_dir=. 5944 for ac_exec_ext in '' $ac_executable_extensions; do 5945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5946 ac_cv_prog_ac_ct_STRIP="strip" 5947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5948 break 2 5949 fi 5950done 5951 done 5952IFS=$as_save_IFS 5953 5954fi 5955fi 5956ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5957if test -n "$ac_ct_STRIP"; then 5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5959$as_echo "$ac_ct_STRIP" >&6; } 5960else 5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5962$as_echo "no" >&6; } 5963fi 5964 5965 if test "x$ac_ct_STRIP" = x; then 5966 STRIP=":" 5967 else 5968 case $cross_compiling:$ac_tool_warned in 5969yes:) 5970{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5971$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5972ac_tool_warned=yes ;; 5973esac 5974 STRIP=$ac_ct_STRIP 5975 fi 5976else 5977 STRIP="$ac_cv_prog_STRIP" 5978fi 5979 5980test -z "$STRIP" && STRIP=: 5981 5982 5983 5984 5985 5986 5987if test -n "$ac_tool_prefix"; then 5988 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5989set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5991$as_echo_n "checking for $ac_word... " >&6; } 5992if ${ac_cv_prog_RANLIB+:} false; then : 5993 $as_echo_n "(cached) " >&6 5994else 5995 if test -n "$RANLIB"; then 5996 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5997else 5998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5999for as_dir in $PATH 6000do 6001 IFS=$as_save_IFS 6002 test -z "$as_dir" && as_dir=. 6003 for ac_exec_ext in '' $ac_executable_extensions; do 6004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6005 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6007 break 2 6008 fi 6009done 6010 done 6011IFS=$as_save_IFS 6012 6013fi 6014fi 6015RANLIB=$ac_cv_prog_RANLIB 6016if test -n "$RANLIB"; then 6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6018$as_echo "$RANLIB" >&6; } 6019else 6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6021$as_echo "no" >&6; } 6022fi 6023 6024 6025fi 6026if test -z "$ac_cv_prog_RANLIB"; then 6027 ac_ct_RANLIB=$RANLIB 6028 # Extract the first word of "ranlib", so it can be a program name with args. 6029set dummy ranlib; ac_word=$2 6030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6031$as_echo_n "checking for $ac_word... " >&6; } 6032if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6033 $as_echo_n "(cached) " >&6 6034else 6035 if test -n "$ac_ct_RANLIB"; then 6036 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6037else 6038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6039for as_dir in $PATH 6040do 6041 IFS=$as_save_IFS 6042 test -z "$as_dir" && as_dir=. 6043 for ac_exec_ext in '' $ac_executable_extensions; do 6044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6045 ac_cv_prog_ac_ct_RANLIB="ranlib" 6046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6047 break 2 6048 fi 6049done 6050 done 6051IFS=$as_save_IFS 6052 6053fi 6054fi 6055ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6056if test -n "$ac_ct_RANLIB"; then 6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6058$as_echo "$ac_ct_RANLIB" >&6; } 6059else 6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6061$as_echo "no" >&6; } 6062fi 6063 6064 if test "x$ac_ct_RANLIB" = x; then 6065 RANLIB=":" 6066 else 6067 case $cross_compiling:$ac_tool_warned in 6068yes:) 6069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6071ac_tool_warned=yes ;; 6072esac 6073 RANLIB=$ac_ct_RANLIB 6074 fi 6075else 6076 RANLIB="$ac_cv_prog_RANLIB" 6077fi 6078 6079test -z "$RANLIB" && RANLIB=: 6080 6081 6082 6083 6084 6085 6086# Determine commands to create old-style static archives. 6087old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6088old_postinstall_cmds='chmod 644 $oldlib' 6089old_postuninstall_cmds= 6090 6091if test -n "$RANLIB"; then 6092 case $host_os in 6093 bitrig* | openbsd*) 6094 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6095 ;; 6096 *) 6097 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6098 ;; 6099 esac 6100 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6101fi 6102 6103case $host_os in 6104 darwin*) 6105 lock_old_archive_extraction=yes ;; 6106 *) 6107 lock_old_archive_extraction=no ;; 6108esac 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148# If no C compiler was specified, use CC. 6149LTCC=${LTCC-"$CC"} 6150 6151# If no C compiler flags were specified, use CFLAGS. 6152LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6153 6154# Allow CC to be a program name with arguments. 6155compiler=$CC 6156 6157 6158# Check for command to grab the raw symbol name followed by C symbol from nm. 6159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6160$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6161if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6162 $as_echo_n "(cached) " >&6 6163else 6164 6165# These are sane defaults that work on at least a few old systems. 6166# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6167 6168# Character class describing NM global symbol codes. 6169symcode='[BCDEGRST]' 6170 6171# Regexp to match symbols that can be accessed directly from C. 6172sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6173 6174# Define system-specific variables. 6175case $host_os in 6176aix*) 6177 symcode='[BCDT]' 6178 ;; 6179cygwin* | mingw* | pw32* | cegcc*) 6180 symcode='[ABCDGISTW]' 6181 ;; 6182hpux*) 6183 if test ia64 = "$host_cpu"; then 6184 symcode='[ABCDEGRST]' 6185 fi 6186 ;; 6187irix* | nonstopux*) 6188 symcode='[BCDEGRST]' 6189 ;; 6190osf*) 6191 symcode='[BCDEGQRST]' 6192 ;; 6193solaris*) 6194 symcode='[BDRT]' 6195 ;; 6196sco3.2v5*) 6197 symcode='[DT]' 6198 ;; 6199sysv4.2uw2*) 6200 symcode='[DT]' 6201 ;; 6202sysv5* | sco5v6* | unixware* | OpenUNIX*) 6203 symcode='[ABDT]' 6204 ;; 6205sysv4) 6206 symcode='[DFNSTU]' 6207 ;; 6208esac 6209 6210# If we're using GNU nm, then use its standard symbol codes. 6211case `$NM -V 2>&1` in 6212*GNU* | *'with BFD'*) 6213 symcode='[ABCDGIRSTW]' ;; 6214esac 6215 6216if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6217 # Gets list of data symbols to import. 6218 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6219 # Adjust the below global symbol transforms to fixup imported variables. 6220 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6221 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6222 lt_c_name_lib_hook="\ 6223 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6224 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6225else 6226 # Disable hooks by default. 6227 lt_cv_sys_global_symbol_to_import= 6228 lt_cdecl_hook= 6229 lt_c_name_hook= 6230 lt_c_name_lib_hook= 6231fi 6232 6233# Transform an extracted symbol line into a proper C declaration. 6234# Some systems (esp. on ia64) link data and code symbols differently, 6235# so use this general approach. 6236lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6237$lt_cdecl_hook\ 6238" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6239" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6240 6241# Transform an extracted symbol line into symbol name and symbol address 6242lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6243$lt_c_name_hook\ 6244" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6245" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6246 6247# Transform an extracted symbol line into symbol name with lib prefix and 6248# symbol address. 6249lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6250$lt_c_name_lib_hook\ 6251" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6252" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6253" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6254 6255# Handle CRLF in mingw tool chain 6256opt_cr= 6257case $build_os in 6258mingw*) 6259 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6260 ;; 6261esac 6262 6263# Try without a prefix underscore, then with it. 6264for ac_symprfx in "" "_"; do 6265 6266 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6267 symxfrm="\\1 $ac_symprfx\\2 \\2" 6268 6269 # Write the raw and C identifiers. 6270 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6271 # Fake it for dumpbin and say T for any non-static function, 6272 # D for any global variable and I for any imported variable. 6273 # Also find C++ and __fastcall symbols from MSVC++, 6274 # which start with @ or ?. 6275 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6276" {last_section=section; section=\$ 3};"\ 6277" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6278" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6279" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6280" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6281" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6282" \$ 0!~/External *\|/{next};"\ 6283" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6284" {if(hide[section]) next};"\ 6285" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6286" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6287" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6288" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6289" ' prfx=^$ac_symprfx" 6290 else 6291 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6292 fi 6293 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6294 6295 # Check to see that the pipe works correctly. 6296 pipe_works=no 6297 6298 rm -f conftest* 6299 cat > conftest.$ac_ext <<_LT_EOF 6300#ifdef __cplusplus 6301extern "C" { 6302#endif 6303char nm_test_var; 6304void nm_test_func(void); 6305void nm_test_func(void){} 6306#ifdef __cplusplus 6307} 6308#endif 6309int main(){nm_test_var='a';nm_test_func();return(0);} 6310_LT_EOF 6311 6312 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6313 (eval $ac_compile) 2>&5 6314 ac_status=$? 6315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6316 test $ac_status = 0; }; then 6317 # Now try to grab the symbols. 6318 nlist=conftest.nm 6319 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6320 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6321 ac_status=$? 6322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6323 test $ac_status = 0; } && test -s "$nlist"; then 6324 # Try sorting and uniquifying the output. 6325 if sort "$nlist" | uniq > "$nlist"T; then 6326 mv -f "$nlist"T "$nlist" 6327 else 6328 rm -f "$nlist"T 6329 fi 6330 6331 # Make sure that we snagged all the symbols we need. 6332 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6333 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6334 cat <<_LT_EOF > conftest.$ac_ext 6335/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6336#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6337/* DATA imports from DLLs on WIN32 can't be const, because runtime 6338 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6339# define LT_DLSYM_CONST 6340#elif defined __osf__ 6341/* This system does not cope well with relocations in const data. */ 6342# define LT_DLSYM_CONST 6343#else 6344# define LT_DLSYM_CONST const 6345#endif 6346 6347#ifdef __cplusplus 6348extern "C" { 6349#endif 6350 6351_LT_EOF 6352 # Now generate the symbol file. 6353 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6354 6355 cat <<_LT_EOF >> conftest.$ac_ext 6356 6357/* The mapping between symbol names and symbols. */ 6358LT_DLSYM_CONST struct { 6359 const char *name; 6360 void *address; 6361} 6362lt__PROGRAM__LTX_preloaded_symbols[] = 6363{ 6364 { "@PROGRAM@", (void *) 0 }, 6365_LT_EOF 6366 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6367 cat <<\_LT_EOF >> conftest.$ac_ext 6368 {0, (void *) 0} 6369}; 6370 6371/* This works around a problem in FreeBSD linker */ 6372#ifdef FREEBSD_WORKAROUND 6373static const void *lt_preloaded_setup() { 6374 return lt__PROGRAM__LTX_preloaded_symbols; 6375} 6376#endif 6377 6378#ifdef __cplusplus 6379} 6380#endif 6381_LT_EOF 6382 # Now try linking the two files. 6383 mv conftest.$ac_objext conftstm.$ac_objext 6384 lt_globsym_save_LIBS=$LIBS 6385 lt_globsym_save_CFLAGS=$CFLAGS 6386 LIBS=conftstm.$ac_objext 6387 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6389 (eval $ac_link) 2>&5 6390 ac_status=$? 6391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6392 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6393 pipe_works=yes 6394 fi 6395 LIBS=$lt_globsym_save_LIBS 6396 CFLAGS=$lt_globsym_save_CFLAGS 6397 else 6398 echo "cannot find nm_test_func in $nlist" >&5 6399 fi 6400 else 6401 echo "cannot find nm_test_var in $nlist" >&5 6402 fi 6403 else 6404 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6405 fi 6406 else 6407 echo "$progname: failed program was:" >&5 6408 cat conftest.$ac_ext >&5 6409 fi 6410 rm -rf conftest* conftst* 6411 6412 # Do not use the global_symbol_pipe unless it works. 6413 if test yes = "$pipe_works"; then 6414 break 6415 else 6416 lt_cv_sys_global_symbol_pipe= 6417 fi 6418done 6419 6420fi 6421 6422if test -z "$lt_cv_sys_global_symbol_pipe"; then 6423 lt_cv_sys_global_symbol_to_cdecl= 6424fi 6425if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6427$as_echo "failed" >&6; } 6428else 6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6430$as_echo "ok" >&6; } 6431fi 6432 6433# Response file support. 6434if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6435 nm_file_list_spec='@' 6436elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6437 nm_file_list_spec='@' 6438fi 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6477$as_echo_n "checking for sysroot... " >&6; } 6478 6479# Check whether --with-sysroot was given. 6480if test "${with_sysroot+set}" = set; then : 6481 withval=$with_sysroot; 6482else 6483 with_sysroot=no 6484fi 6485 6486 6487lt_sysroot= 6488case $with_sysroot in #( 6489 yes) 6490 if test yes = "$GCC"; then 6491 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6492 fi 6493 ;; #( 6494 /*) 6495 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6496 ;; #( 6497 no|'') 6498 ;; #( 6499 *) 6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6501$as_echo "$with_sysroot" >&6; } 6502 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6503 ;; 6504esac 6505 6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6507$as_echo "${lt_sysroot:-no}" >&6; } 6508 6509 6510 6511 6512 6513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6514$as_echo_n "checking for a working dd... " >&6; } 6515if ${ac_cv_path_lt_DD+:} false; then : 6516 $as_echo_n "(cached) " >&6 6517else 6518 printf 0123456789abcdef0123456789abcdef >conftest.i 6519cat conftest.i conftest.i >conftest2.i 6520: ${lt_DD:=$DD} 6521if test -z "$lt_DD"; then 6522 ac_path_lt_DD_found=false 6523 # Loop through the user's path and test for each of PROGNAME-LIST 6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6525for as_dir in $PATH 6526do 6527 IFS=$as_save_IFS 6528 test -z "$as_dir" && as_dir=. 6529 for ac_prog in dd; do 6530 for ac_exec_ext in '' $ac_executable_extensions; do 6531 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6532 as_fn_executable_p "$ac_path_lt_DD" || continue 6533if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6534 cmp -s conftest.i conftest.out \ 6535 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6536fi 6537 $ac_path_lt_DD_found && break 3 6538 done 6539 done 6540 done 6541IFS=$as_save_IFS 6542 if test -z "$ac_cv_path_lt_DD"; then 6543 : 6544 fi 6545else 6546 ac_cv_path_lt_DD=$lt_DD 6547fi 6548 6549rm -f conftest.i conftest2.i conftest.out 6550fi 6551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6552$as_echo "$ac_cv_path_lt_DD" >&6; } 6553 6554 6555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6556$as_echo_n "checking how to truncate binary pipes... " >&6; } 6557if ${lt_cv_truncate_bin+:} false; then : 6558 $as_echo_n "(cached) " >&6 6559else 6560 printf 0123456789abcdef0123456789abcdef >conftest.i 6561cat conftest.i conftest.i >conftest2.i 6562lt_cv_truncate_bin= 6563if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6564 cmp -s conftest.i conftest.out \ 6565 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6566fi 6567rm -f conftest.i conftest2.i conftest.out 6568test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6569fi 6570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6571$as_echo "$lt_cv_truncate_bin" >&6; } 6572 6573 6574 6575 6576 6577 6578 6579# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6580func_cc_basename () 6581{ 6582 for cc_temp in $*""; do 6583 case $cc_temp in 6584 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6585 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6586 \-*) ;; 6587 *) break;; 6588 esac 6589 done 6590 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6591} 6592 6593# Check whether --enable-libtool-lock was given. 6594if test "${enable_libtool_lock+set}" = set; then : 6595 enableval=$enable_libtool_lock; 6596fi 6597 6598test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6599 6600# Some flags need to be propagated to the compiler or linker for good 6601# libtool support. 6602case $host in 6603ia64-*-hpux*) 6604 # Find out what ABI is being produced by ac_compile, and set mode 6605 # options accordingly. 6606 echo 'int i;' > conftest.$ac_ext 6607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6608 (eval $ac_compile) 2>&5 6609 ac_status=$? 6610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6611 test $ac_status = 0; }; then 6612 case `/usr/bin/file conftest.$ac_objext` in 6613 *ELF-32*) 6614 HPUX_IA64_MODE=32 6615 ;; 6616 *ELF-64*) 6617 HPUX_IA64_MODE=64 6618 ;; 6619 esac 6620 fi 6621 rm -rf conftest* 6622 ;; 6623*-*-irix6*) 6624 # Find out what ABI is being produced by ac_compile, and set linker 6625 # options accordingly. 6626 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6628 (eval $ac_compile) 2>&5 6629 ac_status=$? 6630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6631 test $ac_status = 0; }; then 6632 if test yes = "$lt_cv_prog_gnu_ld"; then 6633 case `/usr/bin/file conftest.$ac_objext` in 6634 *32-bit*) 6635 LD="${LD-ld} -melf32bsmip" 6636 ;; 6637 *N32*) 6638 LD="${LD-ld} -melf32bmipn32" 6639 ;; 6640 *64-bit*) 6641 LD="${LD-ld} -melf64bmip" 6642 ;; 6643 esac 6644 else 6645 case `/usr/bin/file conftest.$ac_objext` in 6646 *32-bit*) 6647 LD="${LD-ld} -32" 6648 ;; 6649 *N32*) 6650 LD="${LD-ld} -n32" 6651 ;; 6652 *64-bit*) 6653 LD="${LD-ld} -64" 6654 ;; 6655 esac 6656 fi 6657 fi 6658 rm -rf conftest* 6659 ;; 6660 6661mips64*-*linux*) 6662 # Find out what ABI is being produced by ac_compile, and set linker 6663 # options accordingly. 6664 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6666 (eval $ac_compile) 2>&5 6667 ac_status=$? 6668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6669 test $ac_status = 0; }; then 6670 emul=elf 6671 case `/usr/bin/file conftest.$ac_objext` in 6672 *32-bit*) 6673 emul="${emul}32" 6674 ;; 6675 *64-bit*) 6676 emul="${emul}64" 6677 ;; 6678 esac 6679 case `/usr/bin/file conftest.$ac_objext` in 6680 *MSB*) 6681 emul="${emul}btsmip" 6682 ;; 6683 *LSB*) 6684 emul="${emul}ltsmip" 6685 ;; 6686 esac 6687 case `/usr/bin/file conftest.$ac_objext` in 6688 *N32*) 6689 emul="${emul}n32" 6690 ;; 6691 esac 6692 LD="${LD-ld} -m $emul" 6693 fi 6694 rm -rf conftest* 6695 ;; 6696 6697x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6698s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6699 # Find out what ABI is being produced by ac_compile, and set linker 6700 # options accordingly. Note that the listed cases only cover the 6701 # situations where additional linker options are needed (such as when 6702 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6703 # vice versa); the common cases where no linker options are needed do 6704 # not appear in the list. 6705 echo 'int i;' > conftest.$ac_ext 6706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6707 (eval $ac_compile) 2>&5 6708 ac_status=$? 6709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6710 test $ac_status = 0; }; then 6711 case `/usr/bin/file conftest.o` in 6712 *32-bit*) 6713 case $host in 6714 x86_64-*kfreebsd*-gnu) 6715 LD="${LD-ld} -m elf_i386_fbsd" 6716 ;; 6717 x86_64-*linux*) 6718 case `/usr/bin/file conftest.o` in 6719 *x86-64*) 6720 LD="${LD-ld} -m elf32_x86_64" 6721 ;; 6722 *) 6723 LD="${LD-ld} -m elf_i386" 6724 ;; 6725 esac 6726 ;; 6727 powerpc64le-*linux*) 6728 LD="${LD-ld} -m elf32lppclinux" 6729 ;; 6730 powerpc64-*linux*) 6731 LD="${LD-ld} -m elf32ppclinux" 6732 ;; 6733 s390x-*linux*) 6734 LD="${LD-ld} -m elf_s390" 6735 ;; 6736 sparc64-*linux*) 6737 LD="${LD-ld} -m elf32_sparc" 6738 ;; 6739 esac 6740 ;; 6741 *64-bit*) 6742 case $host in 6743 x86_64-*kfreebsd*-gnu) 6744 LD="${LD-ld} -m elf_x86_64_fbsd" 6745 ;; 6746 x86_64-*linux*) 6747 LD="${LD-ld} -m elf_x86_64" 6748 ;; 6749 powerpcle-*linux*) 6750 LD="${LD-ld} -m elf64lppc" 6751 ;; 6752 powerpc-*linux*) 6753 LD="${LD-ld} -m elf64ppc" 6754 ;; 6755 s390*-*linux*|s390*-*tpf*) 6756 LD="${LD-ld} -m elf64_s390" 6757 ;; 6758 sparc*-*linux*) 6759 LD="${LD-ld} -m elf64_sparc" 6760 ;; 6761 esac 6762 ;; 6763 esac 6764 fi 6765 rm -rf conftest* 6766 ;; 6767 6768*-*-sco3.2v5*) 6769 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6770 SAVE_CFLAGS=$CFLAGS 6771 CFLAGS="$CFLAGS -belf" 6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6773$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6774if ${lt_cv_cc_needs_belf+:} false; then : 6775 $as_echo_n "(cached) " >&6 6776else 6777 ac_ext=c 6778ac_cpp='$CPP $CPPFLAGS' 6779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6781ac_compiler_gnu=$ac_cv_c_compiler_gnu 6782 6783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6784/* end confdefs.h. */ 6785 6786int 6787main () 6788{ 6789 6790 ; 6791 return 0; 6792} 6793_ACEOF 6794if ac_fn_c_try_link "$LINENO"; then : 6795 lt_cv_cc_needs_belf=yes 6796else 6797 lt_cv_cc_needs_belf=no 6798fi 6799rm -f core conftest.err conftest.$ac_objext \ 6800 conftest$ac_exeext conftest.$ac_ext 6801 ac_ext=c 6802ac_cpp='$CPP $CPPFLAGS' 6803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6805ac_compiler_gnu=$ac_cv_c_compiler_gnu 6806 6807fi 6808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6809$as_echo "$lt_cv_cc_needs_belf" >&6; } 6810 if test yes != "$lt_cv_cc_needs_belf"; then 6811 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6812 CFLAGS=$SAVE_CFLAGS 6813 fi 6814 ;; 6815*-*solaris*) 6816 # Find out what ABI is being produced by ac_compile, and set linker 6817 # options accordingly. 6818 echo 'int i;' > conftest.$ac_ext 6819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6820 (eval $ac_compile) 2>&5 6821 ac_status=$? 6822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6823 test $ac_status = 0; }; then 6824 case `/usr/bin/file conftest.o` in 6825 *64-bit*) 6826 case $lt_cv_prog_gnu_ld in 6827 yes*) 6828 case $host in 6829 i?86-*-solaris*|x86_64-*-solaris*) 6830 LD="${LD-ld} -m elf_x86_64" 6831 ;; 6832 sparc*-*-solaris*) 6833 LD="${LD-ld} -m elf64_sparc" 6834 ;; 6835 esac 6836 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6837 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6838 LD=${LD-ld}_sol2 6839 fi 6840 ;; 6841 *) 6842 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6843 LD="${LD-ld} -64" 6844 fi 6845 ;; 6846 esac 6847 ;; 6848 esac 6849 fi 6850 rm -rf conftest* 6851 ;; 6852esac 6853 6854need_locks=$enable_libtool_lock 6855 6856if test -n "$ac_tool_prefix"; then 6857 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6858set dummy ${ac_tool_prefix}mt; ac_word=$2 6859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6860$as_echo_n "checking for $ac_word... " >&6; } 6861if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6862 $as_echo_n "(cached) " >&6 6863else 6864 if test -n "$MANIFEST_TOOL"; then 6865 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6866else 6867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6868for as_dir in $PATH 6869do 6870 IFS=$as_save_IFS 6871 test -z "$as_dir" && as_dir=. 6872 for ac_exec_ext in '' $ac_executable_extensions; do 6873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6874 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6876 break 2 6877 fi 6878done 6879 done 6880IFS=$as_save_IFS 6881 6882fi 6883fi 6884MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6885if test -n "$MANIFEST_TOOL"; then 6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6887$as_echo "$MANIFEST_TOOL" >&6; } 6888else 6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6890$as_echo "no" >&6; } 6891fi 6892 6893 6894fi 6895if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6896 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6897 # Extract the first word of "mt", so it can be a program name with args. 6898set dummy mt; ac_word=$2 6899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6900$as_echo_n "checking for $ac_word... " >&6; } 6901if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6902 $as_echo_n "(cached) " >&6 6903else 6904 if test -n "$ac_ct_MANIFEST_TOOL"; then 6905 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6906else 6907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6908for as_dir in $PATH 6909do 6910 IFS=$as_save_IFS 6911 test -z "$as_dir" && as_dir=. 6912 for ac_exec_ext in '' $ac_executable_extensions; do 6913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6914 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6916 break 2 6917 fi 6918done 6919 done 6920IFS=$as_save_IFS 6921 6922fi 6923fi 6924ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6925if test -n "$ac_ct_MANIFEST_TOOL"; then 6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6927$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6928else 6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6930$as_echo "no" >&6; } 6931fi 6932 6933 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6934 MANIFEST_TOOL=":" 6935 else 6936 case $cross_compiling:$ac_tool_warned in 6937yes:) 6938{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6939$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6940ac_tool_warned=yes ;; 6941esac 6942 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6943 fi 6944else 6945 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6946fi 6947 6948test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6950$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6951if ${lt_cv_path_mainfest_tool+:} false; then : 6952 $as_echo_n "(cached) " >&6 6953else 6954 lt_cv_path_mainfest_tool=no 6955 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6956 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6957 cat conftest.err >&5 6958 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6959 lt_cv_path_mainfest_tool=yes 6960 fi 6961 rm -f conftest* 6962fi 6963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6964$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6965if test yes != "$lt_cv_path_mainfest_tool"; then 6966 MANIFEST_TOOL=: 6967fi 6968 6969 6970 6971 6972 6973 6974 case $host_os in 6975 rhapsody* | darwin*) 6976 if test -n "$ac_tool_prefix"; then 6977 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6978set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6980$as_echo_n "checking for $ac_word... " >&6; } 6981if ${ac_cv_prog_DSYMUTIL+:} false; then : 6982 $as_echo_n "(cached) " >&6 6983else 6984 if test -n "$DSYMUTIL"; then 6985 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6986else 6987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6988for as_dir in $PATH 6989do 6990 IFS=$as_save_IFS 6991 test -z "$as_dir" && as_dir=. 6992 for ac_exec_ext in '' $ac_executable_extensions; do 6993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6994 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6996 break 2 6997 fi 6998done 6999 done 7000IFS=$as_save_IFS 7001 7002fi 7003fi 7004DSYMUTIL=$ac_cv_prog_DSYMUTIL 7005if test -n "$DSYMUTIL"; then 7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7007$as_echo "$DSYMUTIL" >&6; } 7008else 7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7010$as_echo "no" >&6; } 7011fi 7012 7013 7014fi 7015if test -z "$ac_cv_prog_DSYMUTIL"; then 7016 ac_ct_DSYMUTIL=$DSYMUTIL 7017 # Extract the first word of "dsymutil", so it can be a program name with args. 7018set dummy dsymutil; ac_word=$2 7019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7020$as_echo_n "checking for $ac_word... " >&6; } 7021if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7022 $as_echo_n "(cached) " >&6 7023else 7024 if test -n "$ac_ct_DSYMUTIL"; then 7025 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7026else 7027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7028for as_dir in $PATH 7029do 7030 IFS=$as_save_IFS 7031 test -z "$as_dir" && as_dir=. 7032 for ac_exec_ext in '' $ac_executable_extensions; do 7033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7034 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7036 break 2 7037 fi 7038done 7039 done 7040IFS=$as_save_IFS 7041 7042fi 7043fi 7044ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7045if test -n "$ac_ct_DSYMUTIL"; then 7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7047$as_echo "$ac_ct_DSYMUTIL" >&6; } 7048else 7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7050$as_echo "no" >&6; } 7051fi 7052 7053 if test "x$ac_ct_DSYMUTIL" = x; then 7054 DSYMUTIL=":" 7055 else 7056 case $cross_compiling:$ac_tool_warned in 7057yes:) 7058{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7059$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7060ac_tool_warned=yes ;; 7061esac 7062 DSYMUTIL=$ac_ct_DSYMUTIL 7063 fi 7064else 7065 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7066fi 7067 7068 if test -n "$ac_tool_prefix"; then 7069 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7070set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7072$as_echo_n "checking for $ac_word... " >&6; } 7073if ${ac_cv_prog_NMEDIT+:} false; then : 7074 $as_echo_n "(cached) " >&6 7075else 7076 if test -n "$NMEDIT"; then 7077 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7078else 7079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7080for as_dir in $PATH 7081do 7082 IFS=$as_save_IFS 7083 test -z "$as_dir" && as_dir=. 7084 for ac_exec_ext in '' $ac_executable_extensions; do 7085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7086 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7088 break 2 7089 fi 7090done 7091 done 7092IFS=$as_save_IFS 7093 7094fi 7095fi 7096NMEDIT=$ac_cv_prog_NMEDIT 7097if test -n "$NMEDIT"; then 7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7099$as_echo "$NMEDIT" >&6; } 7100else 7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7102$as_echo "no" >&6; } 7103fi 7104 7105 7106fi 7107if test -z "$ac_cv_prog_NMEDIT"; then 7108 ac_ct_NMEDIT=$NMEDIT 7109 # Extract the first word of "nmedit", so it can be a program name with args. 7110set dummy nmedit; ac_word=$2 7111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7112$as_echo_n "checking for $ac_word... " >&6; } 7113if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7114 $as_echo_n "(cached) " >&6 7115else 7116 if test -n "$ac_ct_NMEDIT"; then 7117 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7118else 7119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7120for as_dir in $PATH 7121do 7122 IFS=$as_save_IFS 7123 test -z "$as_dir" && as_dir=. 7124 for ac_exec_ext in '' $ac_executable_extensions; do 7125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7126 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7128 break 2 7129 fi 7130done 7131 done 7132IFS=$as_save_IFS 7133 7134fi 7135fi 7136ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7137if test -n "$ac_ct_NMEDIT"; then 7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7139$as_echo "$ac_ct_NMEDIT" >&6; } 7140else 7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7142$as_echo "no" >&6; } 7143fi 7144 7145 if test "x$ac_ct_NMEDIT" = x; then 7146 NMEDIT=":" 7147 else 7148 case $cross_compiling:$ac_tool_warned in 7149yes:) 7150{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7152ac_tool_warned=yes ;; 7153esac 7154 NMEDIT=$ac_ct_NMEDIT 7155 fi 7156else 7157 NMEDIT="$ac_cv_prog_NMEDIT" 7158fi 7159 7160 if test -n "$ac_tool_prefix"; then 7161 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7162set dummy ${ac_tool_prefix}lipo; ac_word=$2 7163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7164$as_echo_n "checking for $ac_word... " >&6; } 7165if ${ac_cv_prog_LIPO+:} false; then : 7166 $as_echo_n "(cached) " >&6 7167else 7168 if test -n "$LIPO"; then 7169 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7170else 7171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7172for as_dir in $PATH 7173do 7174 IFS=$as_save_IFS 7175 test -z "$as_dir" && as_dir=. 7176 for ac_exec_ext in '' $ac_executable_extensions; do 7177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7178 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7180 break 2 7181 fi 7182done 7183 done 7184IFS=$as_save_IFS 7185 7186fi 7187fi 7188LIPO=$ac_cv_prog_LIPO 7189if test -n "$LIPO"; then 7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7191$as_echo "$LIPO" >&6; } 7192else 7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7194$as_echo "no" >&6; } 7195fi 7196 7197 7198fi 7199if test -z "$ac_cv_prog_LIPO"; then 7200 ac_ct_LIPO=$LIPO 7201 # Extract the first word of "lipo", so it can be a program name with args. 7202set dummy lipo; ac_word=$2 7203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7204$as_echo_n "checking for $ac_word... " >&6; } 7205if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7206 $as_echo_n "(cached) " >&6 7207else 7208 if test -n "$ac_ct_LIPO"; then 7209 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7210else 7211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7212for as_dir in $PATH 7213do 7214 IFS=$as_save_IFS 7215 test -z "$as_dir" && as_dir=. 7216 for ac_exec_ext in '' $ac_executable_extensions; do 7217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7218 ac_cv_prog_ac_ct_LIPO="lipo" 7219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7220 break 2 7221 fi 7222done 7223 done 7224IFS=$as_save_IFS 7225 7226fi 7227fi 7228ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7229if test -n "$ac_ct_LIPO"; then 7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7231$as_echo "$ac_ct_LIPO" >&6; } 7232else 7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7234$as_echo "no" >&6; } 7235fi 7236 7237 if test "x$ac_ct_LIPO" = x; then 7238 LIPO=":" 7239 else 7240 case $cross_compiling:$ac_tool_warned in 7241yes:) 7242{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7243$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7244ac_tool_warned=yes ;; 7245esac 7246 LIPO=$ac_ct_LIPO 7247 fi 7248else 7249 LIPO="$ac_cv_prog_LIPO" 7250fi 7251 7252 if test -n "$ac_tool_prefix"; then 7253 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7254set dummy ${ac_tool_prefix}otool; ac_word=$2 7255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7256$as_echo_n "checking for $ac_word... " >&6; } 7257if ${ac_cv_prog_OTOOL+:} false; then : 7258 $as_echo_n "(cached) " >&6 7259else 7260 if test -n "$OTOOL"; then 7261 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7262else 7263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7264for as_dir in $PATH 7265do 7266 IFS=$as_save_IFS 7267 test -z "$as_dir" && as_dir=. 7268 for ac_exec_ext in '' $ac_executable_extensions; do 7269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7270 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7272 break 2 7273 fi 7274done 7275 done 7276IFS=$as_save_IFS 7277 7278fi 7279fi 7280OTOOL=$ac_cv_prog_OTOOL 7281if test -n "$OTOOL"; then 7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7283$as_echo "$OTOOL" >&6; } 7284else 7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7286$as_echo "no" >&6; } 7287fi 7288 7289 7290fi 7291if test -z "$ac_cv_prog_OTOOL"; then 7292 ac_ct_OTOOL=$OTOOL 7293 # Extract the first word of "otool", so it can be a program name with args. 7294set dummy otool; ac_word=$2 7295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7296$as_echo_n "checking for $ac_word... " >&6; } 7297if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7298 $as_echo_n "(cached) " >&6 7299else 7300 if test -n "$ac_ct_OTOOL"; then 7301 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7302else 7303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7304for as_dir in $PATH 7305do 7306 IFS=$as_save_IFS 7307 test -z "$as_dir" && as_dir=. 7308 for ac_exec_ext in '' $ac_executable_extensions; do 7309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7310 ac_cv_prog_ac_ct_OTOOL="otool" 7311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7312 break 2 7313 fi 7314done 7315 done 7316IFS=$as_save_IFS 7317 7318fi 7319fi 7320ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7321if test -n "$ac_ct_OTOOL"; then 7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7323$as_echo "$ac_ct_OTOOL" >&6; } 7324else 7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7326$as_echo "no" >&6; } 7327fi 7328 7329 if test "x$ac_ct_OTOOL" = x; then 7330 OTOOL=":" 7331 else 7332 case $cross_compiling:$ac_tool_warned in 7333yes:) 7334{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7335$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7336ac_tool_warned=yes ;; 7337esac 7338 OTOOL=$ac_ct_OTOOL 7339 fi 7340else 7341 OTOOL="$ac_cv_prog_OTOOL" 7342fi 7343 7344 if test -n "$ac_tool_prefix"; then 7345 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7346set dummy ${ac_tool_prefix}otool64; ac_word=$2 7347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7348$as_echo_n "checking for $ac_word... " >&6; } 7349if ${ac_cv_prog_OTOOL64+:} false; then : 7350 $as_echo_n "(cached) " >&6 7351else 7352 if test -n "$OTOOL64"; then 7353 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7354else 7355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7356for as_dir in $PATH 7357do 7358 IFS=$as_save_IFS 7359 test -z "$as_dir" && as_dir=. 7360 for ac_exec_ext in '' $ac_executable_extensions; do 7361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7362 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7364 break 2 7365 fi 7366done 7367 done 7368IFS=$as_save_IFS 7369 7370fi 7371fi 7372OTOOL64=$ac_cv_prog_OTOOL64 7373if test -n "$OTOOL64"; then 7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7375$as_echo "$OTOOL64" >&6; } 7376else 7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7378$as_echo "no" >&6; } 7379fi 7380 7381 7382fi 7383if test -z "$ac_cv_prog_OTOOL64"; then 7384 ac_ct_OTOOL64=$OTOOL64 7385 # Extract the first word of "otool64", so it can be a program name with args. 7386set dummy otool64; ac_word=$2 7387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7388$as_echo_n "checking for $ac_word... " >&6; } 7389if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7390 $as_echo_n "(cached) " >&6 7391else 7392 if test -n "$ac_ct_OTOOL64"; then 7393 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7394else 7395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7396for as_dir in $PATH 7397do 7398 IFS=$as_save_IFS 7399 test -z "$as_dir" && as_dir=. 7400 for ac_exec_ext in '' $ac_executable_extensions; do 7401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7402 ac_cv_prog_ac_ct_OTOOL64="otool64" 7403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7404 break 2 7405 fi 7406done 7407 done 7408IFS=$as_save_IFS 7409 7410fi 7411fi 7412ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7413if test -n "$ac_ct_OTOOL64"; then 7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7415$as_echo "$ac_ct_OTOOL64" >&6; } 7416else 7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7418$as_echo "no" >&6; } 7419fi 7420 7421 if test "x$ac_ct_OTOOL64" = x; then 7422 OTOOL64=":" 7423 else 7424 case $cross_compiling:$ac_tool_warned in 7425yes:) 7426{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7427$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7428ac_tool_warned=yes ;; 7429esac 7430 OTOOL64=$ac_ct_OTOOL64 7431 fi 7432else 7433 OTOOL64="$ac_cv_prog_OTOOL64" 7434fi 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7463$as_echo_n "checking for -single_module linker flag... " >&6; } 7464if ${lt_cv_apple_cc_single_mod+:} false; then : 7465 $as_echo_n "(cached) " >&6 7466else 7467 lt_cv_apple_cc_single_mod=no 7468 if test -z "$LT_MULTI_MODULE"; then 7469 # By default we will add the -single_module flag. You can override 7470 # by either setting the environment variable LT_MULTI_MODULE 7471 # non-empty at configure time, or by adding -multi_module to the 7472 # link flags. 7473 rm -rf libconftest.dylib* 7474 echo "int foo(void){return 1;}" > conftest.c 7475 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7476-dynamiclib -Wl,-single_module conftest.c" >&5 7477 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7478 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7479 _lt_result=$? 7480 # If there is a non-empty error log, and "single_module" 7481 # appears in it, assume the flag caused a linker warning 7482 if test -s conftest.err && $GREP single_module conftest.err; then 7483 cat conftest.err >&5 7484 # Otherwise, if the output was created with a 0 exit code from 7485 # the compiler, it worked. 7486 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7487 lt_cv_apple_cc_single_mod=yes 7488 else 7489 cat conftest.err >&5 7490 fi 7491 rm -rf libconftest.dylib* 7492 rm -f conftest.* 7493 fi 7494fi 7495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7496$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7497 7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7499$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7500if ${lt_cv_ld_exported_symbols_list+:} false; then : 7501 $as_echo_n "(cached) " >&6 7502else 7503 lt_cv_ld_exported_symbols_list=no 7504 save_LDFLAGS=$LDFLAGS 7505 echo "_main" > conftest.sym 7506 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7508/* end confdefs.h. */ 7509 7510int 7511main () 7512{ 7513 7514 ; 7515 return 0; 7516} 7517_ACEOF 7518if ac_fn_c_try_link "$LINENO"; then : 7519 lt_cv_ld_exported_symbols_list=yes 7520else 7521 lt_cv_ld_exported_symbols_list=no 7522fi 7523rm -f core conftest.err conftest.$ac_objext \ 7524 conftest$ac_exeext conftest.$ac_ext 7525 LDFLAGS=$save_LDFLAGS 7526 7527fi 7528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7529$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7530 7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7532$as_echo_n "checking for -force_load linker flag... " >&6; } 7533if ${lt_cv_ld_force_load+:} false; then : 7534 $as_echo_n "(cached) " >&6 7535else 7536 lt_cv_ld_force_load=no 7537 cat > conftest.c << _LT_EOF 7538int forced_loaded() { return 2;} 7539_LT_EOF 7540 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7541 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7542 echo "$AR cru libconftest.a conftest.o" >&5 7543 $AR cru libconftest.a conftest.o 2>&5 7544 echo "$RANLIB libconftest.a" >&5 7545 $RANLIB libconftest.a 2>&5 7546 cat > conftest.c << _LT_EOF 7547int main() { return 0;} 7548_LT_EOF 7549 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7550 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7551 _lt_result=$? 7552 if test -s conftest.err && $GREP force_load conftest.err; then 7553 cat conftest.err >&5 7554 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7555 lt_cv_ld_force_load=yes 7556 else 7557 cat conftest.err >&5 7558 fi 7559 rm -f conftest.err libconftest.a conftest conftest.c 7560 rm -rf conftest.dSYM 7561 7562fi 7563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7564$as_echo "$lt_cv_ld_force_load" >&6; } 7565 case $host_os in 7566 rhapsody* | darwin1.[012]) 7567 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7568 darwin1.*) 7569 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7570 darwin*) # darwin 5.x on 7571 # if running on 10.5 or later, the deployment target defaults 7572 # to the OS version, if on x86, and 10.4, the deployment 7573 # target defaults to 10.4. Don't you love it? 7574 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7575 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7576 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7577 10.[012][,.]*) 7578 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7579 10.*) 7580 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7581 esac 7582 ;; 7583 esac 7584 if test yes = "$lt_cv_apple_cc_single_mod"; then 7585 _lt_dar_single_mod='$single_module' 7586 fi 7587 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7588 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7589 else 7590 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7591 fi 7592 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7593 _lt_dsymutil='~$DSYMUTIL $lib || :' 7594 else 7595 _lt_dsymutil= 7596 fi 7597 ;; 7598 esac 7599 7600# func_munge_path_list VARIABLE PATH 7601# ----------------------------------- 7602# VARIABLE is name of variable containing _space_ separated list of 7603# directories to be munged by the contents of PATH, which is string 7604# having a format: 7605# "DIR[:DIR]:" 7606# string "DIR[ DIR]" will be prepended to VARIABLE 7607# ":DIR[:DIR]" 7608# string "DIR[ DIR]" will be appended to VARIABLE 7609# "DIRP[:DIRP]::[DIRA:]DIRA" 7610# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7611# "DIRA[ DIRA]" will be appended to VARIABLE 7612# "DIR[:DIR]" 7613# VARIABLE will be replaced by "DIR[ DIR]" 7614func_munge_path_list () 7615{ 7616 case x$2 in 7617 x) 7618 ;; 7619 *:) 7620 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7621 ;; 7622 x:*) 7623 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7624 ;; 7625 *::*) 7626 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7627 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7628 ;; 7629 *) 7630 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7631 ;; 7632 esac 7633} 7634 7635ac_ext=c 7636ac_cpp='$CPP $CPPFLAGS' 7637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7639ac_compiler_gnu=$ac_cv_c_compiler_gnu 7640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7641$as_echo_n "checking how to run the C preprocessor... " >&6; } 7642# On Suns, sometimes $CPP names a directory. 7643if test -n "$CPP" && test -d "$CPP"; then 7644 CPP= 7645fi 7646if test -z "$CPP"; then 7647 if ${ac_cv_prog_CPP+:} false; then : 7648 $as_echo_n "(cached) " >&6 7649else 7650 # Double quotes because CPP needs to be expanded 7651 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7652 do 7653 ac_preproc_ok=false 7654for ac_c_preproc_warn_flag in '' yes 7655do 7656 # Use a header file that comes with gcc, so configuring glibc 7657 # with a fresh cross-compiler works. 7658 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7659 # <limits.h> exists even on freestanding compilers. 7660 # On the NeXT, cc -E runs the code through the compiler's parser, 7661 # not just through cpp. "Syntax error" is here to catch this case. 7662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7663/* end confdefs.h. */ 7664#ifdef __STDC__ 7665# include <limits.h> 7666#else 7667# include <assert.h> 7668#endif 7669 Syntax error 7670_ACEOF 7671if ac_fn_c_try_cpp "$LINENO"; then : 7672 7673else 7674 # Broken: fails on valid input. 7675continue 7676fi 7677rm -f conftest.err conftest.i conftest.$ac_ext 7678 7679 # OK, works on sane cases. Now check whether nonexistent headers 7680 # can be detected and how. 7681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7682/* end confdefs.h. */ 7683#include <ac_nonexistent.h> 7684_ACEOF 7685if ac_fn_c_try_cpp "$LINENO"; then : 7686 # Broken: success on invalid input. 7687continue 7688else 7689 # Passes both tests. 7690ac_preproc_ok=: 7691break 7692fi 7693rm -f conftest.err conftest.i conftest.$ac_ext 7694 7695done 7696# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7697rm -f conftest.i conftest.err conftest.$ac_ext 7698if $ac_preproc_ok; then : 7699 break 7700fi 7701 7702 done 7703 ac_cv_prog_CPP=$CPP 7704 7705fi 7706 CPP=$ac_cv_prog_CPP 7707else 7708 ac_cv_prog_CPP=$CPP 7709fi 7710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7711$as_echo "$CPP" >&6; } 7712ac_preproc_ok=false 7713for ac_c_preproc_warn_flag in '' yes 7714do 7715 # Use a header file that comes with gcc, so configuring glibc 7716 # with a fresh cross-compiler works. 7717 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7718 # <limits.h> exists even on freestanding compilers. 7719 # On the NeXT, cc -E runs the code through the compiler's parser, 7720 # not just through cpp. "Syntax error" is here to catch this case. 7721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7722/* end confdefs.h. */ 7723#ifdef __STDC__ 7724# include <limits.h> 7725#else 7726# include <assert.h> 7727#endif 7728 Syntax error 7729_ACEOF 7730if ac_fn_c_try_cpp "$LINENO"; then : 7731 7732else 7733 # Broken: fails on valid input. 7734continue 7735fi 7736rm -f conftest.err conftest.i conftest.$ac_ext 7737 7738 # OK, works on sane cases. Now check whether nonexistent headers 7739 # can be detected and how. 7740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7741/* end confdefs.h. */ 7742#include <ac_nonexistent.h> 7743_ACEOF 7744if ac_fn_c_try_cpp "$LINENO"; then : 7745 # Broken: success on invalid input. 7746continue 7747else 7748 # Passes both tests. 7749ac_preproc_ok=: 7750break 7751fi 7752rm -f conftest.err conftest.i conftest.$ac_ext 7753 7754done 7755# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7756rm -f conftest.i conftest.err conftest.$ac_ext 7757if $ac_preproc_ok; then : 7758 7759else 7760 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7761$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7762as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7763See \`config.log' for more details" "$LINENO" 5; } 7764fi 7765 7766ac_ext=c 7767ac_cpp='$CPP $CPPFLAGS' 7768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7770ac_compiler_gnu=$ac_cv_c_compiler_gnu 7771 7772 7773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7774$as_echo_n "checking for ANSI C header files... " >&6; } 7775if ${ac_cv_header_stdc+:} false; then : 7776 $as_echo_n "(cached) " >&6 7777else 7778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7779/* end confdefs.h. */ 7780#include <stdlib.h> 7781#include <stdarg.h> 7782#include <string.h> 7783#include <float.h> 7784 7785int 7786main () 7787{ 7788 7789 ; 7790 return 0; 7791} 7792_ACEOF 7793if ac_fn_c_try_compile "$LINENO"; then : 7794 ac_cv_header_stdc=yes 7795else 7796 ac_cv_header_stdc=no 7797fi 7798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7799 7800if test $ac_cv_header_stdc = yes; then 7801 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7803/* end confdefs.h. */ 7804#include <string.h> 7805 7806_ACEOF 7807if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7808 $EGREP "memchr" >/dev/null 2>&1; then : 7809 7810else 7811 ac_cv_header_stdc=no 7812fi 7813rm -f conftest* 7814 7815fi 7816 7817if test $ac_cv_header_stdc = yes; then 7818 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7820/* end confdefs.h. */ 7821#include <stdlib.h> 7822 7823_ACEOF 7824if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7825 $EGREP "free" >/dev/null 2>&1; then : 7826 7827else 7828 ac_cv_header_stdc=no 7829fi 7830rm -f conftest* 7831 7832fi 7833 7834if test $ac_cv_header_stdc = yes; then 7835 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7836 if test "$cross_compiling" = yes; then : 7837 : 7838else 7839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7840/* end confdefs.h. */ 7841#include <ctype.h> 7842#include <stdlib.h> 7843#if ((' ' & 0x0FF) == 0x020) 7844# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7845# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7846#else 7847# define ISLOWER(c) \ 7848 (('a' <= (c) && (c) <= 'i') \ 7849 || ('j' <= (c) && (c) <= 'r') \ 7850 || ('s' <= (c) && (c) <= 'z')) 7851# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7852#endif 7853 7854#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7855int 7856main () 7857{ 7858 int i; 7859 for (i = 0; i < 256; i++) 7860 if (XOR (islower (i), ISLOWER (i)) 7861 || toupper (i) != TOUPPER (i)) 7862 return 2; 7863 return 0; 7864} 7865_ACEOF 7866if ac_fn_c_try_run "$LINENO"; then : 7867 7868else 7869 ac_cv_header_stdc=no 7870fi 7871rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7872 conftest.$ac_objext conftest.beam conftest.$ac_ext 7873fi 7874 7875fi 7876fi 7877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7878$as_echo "$ac_cv_header_stdc" >&6; } 7879if test $ac_cv_header_stdc = yes; then 7880 7881$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7882 7883fi 7884 7885# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7886for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7887 inttypes.h stdint.h unistd.h 7888do : 7889 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7890ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7891" 7892if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7893 cat >>confdefs.h <<_ACEOF 7894#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7895_ACEOF 7896 7897fi 7898 7899done 7900 7901 7902for ac_header in dlfcn.h 7903do : 7904 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7905" 7906if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7907 cat >>confdefs.h <<_ACEOF 7908#define HAVE_DLFCN_H 1 7909_ACEOF 7910 7911fi 7912 7913done 7914 7915 7916 7917 7918 7919# Set options 7920 7921 7922 7923 enable_dlopen=no 7924 7925 7926 enable_win32_dll=no 7927 7928 7929 # Check whether --enable-shared was given. 7930if test "${enable_shared+set}" = set; then : 7931 enableval=$enable_shared; p=${PACKAGE-default} 7932 case $enableval in 7933 yes) enable_shared=yes ;; 7934 no) enable_shared=no ;; 7935 *) 7936 enable_shared=no 7937 # Look at the argument we got. We use all the common list separators. 7938 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7939 for pkg in $enableval; do 7940 IFS=$lt_save_ifs 7941 if test "X$pkg" = "X$p"; then 7942 enable_shared=yes 7943 fi 7944 done 7945 IFS=$lt_save_ifs 7946 ;; 7947 esac 7948else 7949 enable_shared=yes 7950fi 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 # Check whether --enable-static was given. 7961if test "${enable_static+set}" = set; then : 7962 enableval=$enable_static; p=${PACKAGE-default} 7963 case $enableval in 7964 yes) enable_static=yes ;; 7965 no) enable_static=no ;; 7966 *) 7967 enable_static=no 7968 # Look at the argument we got. We use all the common list separators. 7969 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7970 for pkg in $enableval; do 7971 IFS=$lt_save_ifs 7972 if test "X$pkg" = "X$p"; then 7973 enable_static=yes 7974 fi 7975 done 7976 IFS=$lt_save_ifs 7977 ;; 7978 esac 7979else 7980 enable_static=yes 7981fi 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992# Check whether --with-pic was given. 7993if test "${with_pic+set}" = set; then : 7994 withval=$with_pic; lt_p=${PACKAGE-default} 7995 case $withval in 7996 yes|no) pic_mode=$withval ;; 7997 *) 7998 pic_mode=default 7999 # Look at the argument we got. We use all the common list separators. 8000 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8001 for lt_pkg in $withval; do 8002 IFS=$lt_save_ifs 8003 if test "X$lt_pkg" = "X$lt_p"; then 8004 pic_mode=yes 8005 fi 8006 done 8007 IFS=$lt_save_ifs 8008 ;; 8009 esac 8010else 8011 pic_mode=default 8012fi 8013 8014 8015 8016 8017 8018 8019 8020 8021 # Check whether --enable-fast-install was given. 8022if test "${enable_fast_install+set}" = set; then : 8023 enableval=$enable_fast_install; p=${PACKAGE-default} 8024 case $enableval in 8025 yes) enable_fast_install=yes ;; 8026 no) enable_fast_install=no ;; 8027 *) 8028 enable_fast_install=no 8029 # Look at the argument we got. We use all the common list separators. 8030 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8031 for pkg in $enableval; do 8032 IFS=$lt_save_ifs 8033 if test "X$pkg" = "X$p"; then 8034 enable_fast_install=yes 8035 fi 8036 done 8037 IFS=$lt_save_ifs 8038 ;; 8039 esac 8040else 8041 enable_fast_install=yes 8042fi 8043 8044 8045 8046 8047 8048 8049 8050 8051 shared_archive_member_spec= 8052case $host,$enable_shared in 8053power*-*-aix[5-9]*,yes) 8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8055$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8056 8057# Check whether --with-aix-soname was given. 8058if test "${with_aix_soname+set}" = set; then : 8059 withval=$with_aix_soname; case $withval in 8060 aix|svr4|both) 8061 ;; 8062 *) 8063 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8064 ;; 8065 esac 8066 lt_cv_with_aix_soname=$with_aix_soname 8067else 8068 if ${lt_cv_with_aix_soname+:} false; then : 8069 $as_echo_n "(cached) " >&6 8070else 8071 lt_cv_with_aix_soname=aix 8072fi 8073 8074 with_aix_soname=$lt_cv_with_aix_soname 8075fi 8076 8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8078$as_echo "$with_aix_soname" >&6; } 8079 if test aix != "$with_aix_soname"; then 8080 # For the AIX way of multilib, we name the shared archive member 8081 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8082 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8083 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8084 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8085 if test 64 = "${OBJECT_MODE-32}"; then 8086 shared_archive_member_spec=shr_64 8087 else 8088 shared_archive_member_spec=shr 8089 fi 8090 fi 8091 ;; 8092*) 8093 with_aix_soname=aix 8094 ;; 8095esac 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106# This can be used to rebuild libtool when needed 8107LIBTOOL_DEPS=$ltmain 8108 8109# Always use our own libtool. 8110LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141test -z "$LN_S" && LN_S="ln -s" 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156if test -n "${ZSH_VERSION+set}"; then 8157 setopt NO_GLOB_SUBST 8158fi 8159 8160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8161$as_echo_n "checking for objdir... " >&6; } 8162if ${lt_cv_objdir+:} false; then : 8163 $as_echo_n "(cached) " >&6 8164else 8165 rm -f .libs 2>/dev/null 8166mkdir .libs 2>/dev/null 8167if test -d .libs; then 8168 lt_cv_objdir=.libs 8169else 8170 # MS-DOS does not allow filenames that begin with a dot. 8171 lt_cv_objdir=_libs 8172fi 8173rmdir .libs 2>/dev/null 8174fi 8175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8176$as_echo "$lt_cv_objdir" >&6; } 8177objdir=$lt_cv_objdir 8178 8179 8180 8181 8182 8183cat >>confdefs.h <<_ACEOF 8184#define LT_OBJDIR "$lt_cv_objdir/" 8185_ACEOF 8186 8187 8188 8189 8190case $host_os in 8191aix3*) 8192 # AIX sometimes has problems with the GCC collect2 program. For some 8193 # reason, if we set the COLLECT_NAMES environment variable, the problems 8194 # vanish in a puff of smoke. 8195 if test set != "${COLLECT_NAMES+set}"; then 8196 COLLECT_NAMES= 8197 export COLLECT_NAMES 8198 fi 8199 ;; 8200esac 8201 8202# Global variables: 8203ofile=libtool 8204can_build_shared=yes 8205 8206# All known linkers require a '.a' archive for static linking (except MSVC, 8207# which needs '.lib'). 8208libext=a 8209 8210with_gnu_ld=$lt_cv_prog_gnu_ld 8211 8212old_CC=$CC 8213old_CFLAGS=$CFLAGS 8214 8215# Set sane defaults for various variables 8216test -z "$CC" && CC=cc 8217test -z "$LTCC" && LTCC=$CC 8218test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8219test -z "$LD" && LD=ld 8220test -z "$ac_objext" && ac_objext=o 8221 8222func_cc_basename $compiler 8223cc_basename=$func_cc_basename_result 8224 8225 8226# Only perform the check for file, if the check method requires it 8227test -z "$MAGIC_CMD" && MAGIC_CMD=file 8228case $deplibs_check_method in 8229file_magic*) 8230 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8232$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8233if ${lt_cv_path_MAGIC_CMD+:} false; then : 8234 $as_echo_n "(cached) " >&6 8235else 8236 case $MAGIC_CMD in 8237[\\/*] | ?:[\\/]*) 8238 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8239 ;; 8240*) 8241 lt_save_MAGIC_CMD=$MAGIC_CMD 8242 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8243 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8244 for ac_dir in $ac_dummy; do 8245 IFS=$lt_save_ifs 8246 test -z "$ac_dir" && ac_dir=. 8247 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8248 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8249 if test -n "$file_magic_test_file"; then 8250 case $deplibs_check_method in 8251 "file_magic "*) 8252 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8253 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8254 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8255 $EGREP "$file_magic_regex" > /dev/null; then 8256 : 8257 else 8258 cat <<_LT_EOF 1>&2 8259 8260*** Warning: the command libtool uses to detect shared libraries, 8261*** $file_magic_cmd, produces output that libtool cannot recognize. 8262*** The result is that libtool may fail to recognize shared libraries 8263*** as such. This will affect the creation of libtool libraries that 8264*** depend on shared libraries, but programs linked with such libtool 8265*** libraries will work regardless of this problem. Nevertheless, you 8266*** may want to report the problem to your system manager and/or to 8267*** bug-libtool@gnu.org 8268 8269_LT_EOF 8270 fi ;; 8271 esac 8272 fi 8273 break 8274 fi 8275 done 8276 IFS=$lt_save_ifs 8277 MAGIC_CMD=$lt_save_MAGIC_CMD 8278 ;; 8279esac 8280fi 8281 8282MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8283if test -n "$MAGIC_CMD"; then 8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8285$as_echo "$MAGIC_CMD" >&6; } 8286else 8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8288$as_echo "no" >&6; } 8289fi 8290 8291 8292 8293 8294 8295if test -z "$lt_cv_path_MAGIC_CMD"; then 8296 if test -n "$ac_tool_prefix"; then 8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8298$as_echo_n "checking for file... " >&6; } 8299if ${lt_cv_path_MAGIC_CMD+:} false; then : 8300 $as_echo_n "(cached) " >&6 8301else 8302 case $MAGIC_CMD in 8303[\\/*] | ?:[\\/]*) 8304 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8305 ;; 8306*) 8307 lt_save_MAGIC_CMD=$MAGIC_CMD 8308 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8309 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8310 for ac_dir in $ac_dummy; do 8311 IFS=$lt_save_ifs 8312 test -z "$ac_dir" && ac_dir=. 8313 if test -f "$ac_dir/file"; then 8314 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8315 if test -n "$file_magic_test_file"; then 8316 case $deplibs_check_method in 8317 "file_magic "*) 8318 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8319 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8320 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8321 $EGREP "$file_magic_regex" > /dev/null; then 8322 : 8323 else 8324 cat <<_LT_EOF 1>&2 8325 8326*** Warning: the command libtool uses to detect shared libraries, 8327*** $file_magic_cmd, produces output that libtool cannot recognize. 8328*** The result is that libtool may fail to recognize shared libraries 8329*** as such. This will affect the creation of libtool libraries that 8330*** depend on shared libraries, but programs linked with such libtool 8331*** libraries will work regardless of this problem. Nevertheless, you 8332*** may want to report the problem to your system manager and/or to 8333*** bug-libtool@gnu.org 8334 8335_LT_EOF 8336 fi ;; 8337 esac 8338 fi 8339 break 8340 fi 8341 done 8342 IFS=$lt_save_ifs 8343 MAGIC_CMD=$lt_save_MAGIC_CMD 8344 ;; 8345esac 8346fi 8347 8348MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8349if test -n "$MAGIC_CMD"; then 8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8351$as_echo "$MAGIC_CMD" >&6; } 8352else 8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8354$as_echo "no" >&6; } 8355fi 8356 8357 8358 else 8359 MAGIC_CMD=: 8360 fi 8361fi 8362 8363 fi 8364 ;; 8365esac 8366 8367# Use C for the default configuration in the libtool script 8368 8369lt_save_CC=$CC 8370ac_ext=c 8371ac_cpp='$CPP $CPPFLAGS' 8372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8374ac_compiler_gnu=$ac_cv_c_compiler_gnu 8375 8376 8377# Source file extension for C test sources. 8378ac_ext=c 8379 8380# Object file extension for compiled C test sources. 8381objext=o 8382objext=$objext 8383 8384# Code to be used in simple compile tests 8385lt_simple_compile_test_code="int some_variable = 0;" 8386 8387# Code to be used in simple link tests 8388lt_simple_link_test_code='int main(){return(0);}' 8389 8390 8391 8392 8393 8394 8395 8396# If no C compiler was specified, use CC. 8397LTCC=${LTCC-"$CC"} 8398 8399# If no C compiler flags were specified, use CFLAGS. 8400LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8401 8402# Allow CC to be a program name with arguments. 8403compiler=$CC 8404 8405# Save the default compiler, since it gets overwritten when the other 8406# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8407compiler_DEFAULT=$CC 8408 8409# save warnings/boilerplate of simple test code 8410ac_outfile=conftest.$ac_objext 8411echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8412eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8413_lt_compiler_boilerplate=`cat conftest.err` 8414$RM conftest* 8415 8416ac_outfile=conftest.$ac_objext 8417echo "$lt_simple_link_test_code" >conftest.$ac_ext 8418eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8419_lt_linker_boilerplate=`cat conftest.err` 8420$RM -r conftest* 8421 8422 8423if test -n "$compiler"; then 8424 8425lt_prog_compiler_no_builtin_flag= 8426 8427if test yes = "$GCC"; then 8428 case $cc_basename in 8429 nvcc*) 8430 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8431 *) 8432 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8433 esac 8434 8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8436$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8437if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8438 $as_echo_n "(cached) " >&6 8439else 8440 lt_cv_prog_compiler_rtti_exceptions=no 8441 ac_outfile=conftest.$ac_objext 8442 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8443 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8444 # Insert the option either (1) after the last *FLAGS variable, or 8445 # (2) before a word containing "conftest.", or (3) at the end. 8446 # Note that $ac_compile itself does not contain backslashes and begins 8447 # with a dollar sign (not a hyphen), so the echo should work correctly. 8448 # The option is referenced via a variable to avoid confusing sed. 8449 lt_compile=`echo "$ac_compile" | $SED \ 8450 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8451 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8452 -e 's:$: $lt_compiler_flag:'` 8453 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8454 (eval "$lt_compile" 2>conftest.err) 8455 ac_status=$? 8456 cat conftest.err >&5 8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8458 if (exit $ac_status) && test -s "$ac_outfile"; then 8459 # The compiler can only warn and ignore the option if not recognized 8460 # So say no if there are warnings other than the usual output. 8461 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8462 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8463 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8464 lt_cv_prog_compiler_rtti_exceptions=yes 8465 fi 8466 fi 8467 $RM conftest* 8468 8469fi 8470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8471$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8472 8473if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8474 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8475else 8476 : 8477fi 8478 8479fi 8480 8481 8482 8483 8484 8485 8486 lt_prog_compiler_wl= 8487lt_prog_compiler_pic= 8488lt_prog_compiler_static= 8489 8490 8491 if test yes = "$GCC"; then 8492 lt_prog_compiler_wl='-Wl,' 8493 lt_prog_compiler_static='-static' 8494 8495 case $host_os in 8496 aix*) 8497 # All AIX code is PIC. 8498 if test ia64 = "$host_cpu"; then 8499 # AIX 5 now supports IA64 processor 8500 lt_prog_compiler_static='-Bstatic' 8501 fi 8502 lt_prog_compiler_pic='-fPIC' 8503 ;; 8504 8505 amigaos*) 8506 case $host_cpu in 8507 powerpc) 8508 # see comment about AmigaOS4 .so support 8509 lt_prog_compiler_pic='-fPIC' 8510 ;; 8511 m68k) 8512 # FIXME: we need at least 68020 code to build shared libraries, but 8513 # adding the '-m68020' flag to GCC prevents building anything better, 8514 # like '-m68040'. 8515 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8516 ;; 8517 esac 8518 ;; 8519 8520 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8521 # PIC is the default for these OSes. 8522 ;; 8523 8524 mingw* | cygwin* | pw32* | os2* | cegcc*) 8525 # This hack is so that the source file can tell whether it is being 8526 # built for inclusion in a dll (and should export symbols for example). 8527 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8528 # (--disable-auto-import) libraries 8529 lt_prog_compiler_pic='-DDLL_EXPORT' 8530 case $host_os in 8531 os2*) 8532 lt_prog_compiler_static='$wl-static' 8533 ;; 8534 esac 8535 ;; 8536 8537 darwin* | rhapsody*) 8538 # PIC is the default on this platform 8539 # Common symbols not allowed in MH_DYLIB files 8540 lt_prog_compiler_pic='-fno-common' 8541 ;; 8542 8543 haiku*) 8544 # PIC is the default for Haiku. 8545 # The "-static" flag exists, but is broken. 8546 lt_prog_compiler_static= 8547 ;; 8548 8549 hpux*) 8550 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8551 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8552 # sets the default TLS model and affects inlining. 8553 case $host_cpu in 8554 hppa*64*) 8555 # +Z the default 8556 ;; 8557 *) 8558 lt_prog_compiler_pic='-fPIC' 8559 ;; 8560 esac 8561 ;; 8562 8563 interix[3-9]*) 8564 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8565 # Instead, we relocate shared libraries at runtime. 8566 ;; 8567 8568 msdosdjgpp*) 8569 # Just because we use GCC doesn't mean we suddenly get shared libraries 8570 # on systems that don't support them. 8571 lt_prog_compiler_can_build_shared=no 8572 enable_shared=no 8573 ;; 8574 8575 *nto* | *qnx*) 8576 # QNX uses GNU C++, but need to define -shared option too, otherwise 8577 # it will coredump. 8578 lt_prog_compiler_pic='-fPIC -shared' 8579 ;; 8580 8581 sysv4*MP*) 8582 if test -d /usr/nec; then 8583 lt_prog_compiler_pic=-Kconform_pic 8584 fi 8585 ;; 8586 8587 *) 8588 lt_prog_compiler_pic='-fPIC' 8589 ;; 8590 esac 8591 8592 case $cc_basename in 8593 nvcc*) # Cuda Compiler Driver 2.2 8594 lt_prog_compiler_wl='-Xlinker ' 8595 if test -n "$lt_prog_compiler_pic"; then 8596 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8597 fi 8598 ;; 8599 esac 8600 else 8601 # PORTME Check for flag to pass linker flags through the system compiler. 8602 case $host_os in 8603 aix*) 8604 lt_prog_compiler_wl='-Wl,' 8605 if test ia64 = "$host_cpu"; then 8606 # AIX 5 now supports IA64 processor 8607 lt_prog_compiler_static='-Bstatic' 8608 else 8609 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8610 fi 8611 ;; 8612 8613 darwin* | rhapsody*) 8614 # PIC is the default on this platform 8615 # Common symbols not allowed in MH_DYLIB files 8616 lt_prog_compiler_pic='-fno-common' 8617 case $cc_basename in 8618 nagfor*) 8619 # NAG Fortran compiler 8620 lt_prog_compiler_wl='-Wl,-Wl,,' 8621 lt_prog_compiler_pic='-PIC' 8622 lt_prog_compiler_static='-Bstatic' 8623 ;; 8624 esac 8625 ;; 8626 8627 mingw* | cygwin* | pw32* | os2* | cegcc*) 8628 # This hack is so that the source file can tell whether it is being 8629 # built for inclusion in a dll (and should export symbols for example). 8630 lt_prog_compiler_pic='-DDLL_EXPORT' 8631 case $host_os in 8632 os2*) 8633 lt_prog_compiler_static='$wl-static' 8634 ;; 8635 esac 8636 ;; 8637 8638 hpux9* | hpux10* | hpux11*) 8639 lt_prog_compiler_wl='-Wl,' 8640 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8641 # not for PA HP-UX. 8642 case $host_cpu in 8643 hppa*64*|ia64*) 8644 # +Z the default 8645 ;; 8646 *) 8647 lt_prog_compiler_pic='+Z' 8648 ;; 8649 esac 8650 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8651 lt_prog_compiler_static='$wl-a ${wl}archive' 8652 ;; 8653 8654 irix5* | irix6* | nonstopux*) 8655 lt_prog_compiler_wl='-Wl,' 8656 # PIC (with -KPIC) is the default. 8657 lt_prog_compiler_static='-non_shared' 8658 ;; 8659 8660 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8661 case $cc_basename in 8662 # old Intel for x86_64, which still supported -KPIC. 8663 ecc*) 8664 lt_prog_compiler_wl='-Wl,' 8665 lt_prog_compiler_pic='-KPIC' 8666 lt_prog_compiler_static='-static' 8667 ;; 8668 # icc used to be incompatible with GCC. 8669 # ICC 10 doesn't accept -KPIC any more. 8670 icc* | ifort*) 8671 lt_prog_compiler_wl='-Wl,' 8672 lt_prog_compiler_pic='-fPIC' 8673 lt_prog_compiler_static='-static' 8674 ;; 8675 # Lahey Fortran 8.1. 8676 lf95*) 8677 lt_prog_compiler_wl='-Wl,' 8678 lt_prog_compiler_pic='--shared' 8679 lt_prog_compiler_static='--static' 8680 ;; 8681 nagfor*) 8682 # NAG Fortran compiler 8683 lt_prog_compiler_wl='-Wl,-Wl,,' 8684 lt_prog_compiler_pic='-PIC' 8685 lt_prog_compiler_static='-Bstatic' 8686 ;; 8687 tcc*) 8688 # Fabrice Bellard et al's Tiny C Compiler 8689 lt_prog_compiler_wl='-Wl,' 8690 lt_prog_compiler_pic='-fPIC' 8691 lt_prog_compiler_static='-static' 8692 ;; 8693 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8694 # Portland Group compilers (*not* the Pentium gcc compiler, 8695 # which looks to be a dead project) 8696 lt_prog_compiler_wl='-Wl,' 8697 lt_prog_compiler_pic='-fpic' 8698 lt_prog_compiler_static='-Bstatic' 8699 ;; 8700 ccc*) 8701 lt_prog_compiler_wl='-Wl,' 8702 # All Alpha code is PIC. 8703 lt_prog_compiler_static='-non_shared' 8704 ;; 8705 xl* | bgxl* | bgf* | mpixl*) 8706 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8707 lt_prog_compiler_wl='-Wl,' 8708 lt_prog_compiler_pic='-qpic' 8709 lt_prog_compiler_static='-qstaticlink' 8710 ;; 8711 *) 8712 case `$CC -V 2>&1 | sed 5q` in 8713 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8714 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8715 lt_prog_compiler_pic='-KPIC' 8716 lt_prog_compiler_static='-Bstatic' 8717 lt_prog_compiler_wl='' 8718 ;; 8719 *Sun\ F* | *Sun*Fortran*) 8720 lt_prog_compiler_pic='-KPIC' 8721 lt_prog_compiler_static='-Bstatic' 8722 lt_prog_compiler_wl='-Qoption ld ' 8723 ;; 8724 *Sun\ C*) 8725 # Sun C 5.9 8726 lt_prog_compiler_pic='-KPIC' 8727 lt_prog_compiler_static='-Bstatic' 8728 lt_prog_compiler_wl='-Wl,' 8729 ;; 8730 *Intel*\ [CF]*Compiler*) 8731 lt_prog_compiler_wl='-Wl,' 8732 lt_prog_compiler_pic='-fPIC' 8733 lt_prog_compiler_static='-static' 8734 ;; 8735 *Portland\ Group*) 8736 lt_prog_compiler_wl='-Wl,' 8737 lt_prog_compiler_pic='-fpic' 8738 lt_prog_compiler_static='-Bstatic' 8739 ;; 8740 esac 8741 ;; 8742 esac 8743 ;; 8744 8745 newsos6) 8746 lt_prog_compiler_pic='-KPIC' 8747 lt_prog_compiler_static='-Bstatic' 8748 ;; 8749 8750 *nto* | *qnx*) 8751 # QNX uses GNU C++, but need to define -shared option too, otherwise 8752 # it will coredump. 8753 lt_prog_compiler_pic='-fPIC -shared' 8754 ;; 8755 8756 osf3* | osf4* | osf5*) 8757 lt_prog_compiler_wl='-Wl,' 8758 # All OSF/1 code is PIC. 8759 lt_prog_compiler_static='-non_shared' 8760 ;; 8761 8762 rdos*) 8763 lt_prog_compiler_static='-non_shared' 8764 ;; 8765 8766 solaris*) 8767 lt_prog_compiler_pic='-KPIC' 8768 lt_prog_compiler_static='-Bstatic' 8769 case $cc_basename in 8770 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8771 lt_prog_compiler_wl='-Qoption ld ';; 8772 *) 8773 lt_prog_compiler_wl='-Wl,';; 8774 esac 8775 ;; 8776 8777 sunos4*) 8778 lt_prog_compiler_wl='-Qoption ld ' 8779 lt_prog_compiler_pic='-PIC' 8780 lt_prog_compiler_static='-Bstatic' 8781 ;; 8782 8783 sysv4 | sysv4.2uw2* | sysv4.3*) 8784 lt_prog_compiler_wl='-Wl,' 8785 lt_prog_compiler_pic='-KPIC' 8786 lt_prog_compiler_static='-Bstatic' 8787 ;; 8788 8789 sysv4*MP*) 8790 if test -d /usr/nec; then 8791 lt_prog_compiler_pic='-Kconform_pic' 8792 lt_prog_compiler_static='-Bstatic' 8793 fi 8794 ;; 8795 8796 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8797 lt_prog_compiler_wl='-Wl,' 8798 lt_prog_compiler_pic='-KPIC' 8799 lt_prog_compiler_static='-Bstatic' 8800 ;; 8801 8802 unicos*) 8803 lt_prog_compiler_wl='-Wl,' 8804 lt_prog_compiler_can_build_shared=no 8805 ;; 8806 8807 uts4*) 8808 lt_prog_compiler_pic='-pic' 8809 lt_prog_compiler_static='-Bstatic' 8810 ;; 8811 8812 *) 8813 lt_prog_compiler_can_build_shared=no 8814 ;; 8815 esac 8816 fi 8817 8818case $host_os in 8819 # For platforms that do not support PIC, -DPIC is meaningless: 8820 *djgpp*) 8821 lt_prog_compiler_pic= 8822 ;; 8823 *) 8824 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8825 ;; 8826esac 8827 8828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8829$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8830if ${lt_cv_prog_compiler_pic+:} false; then : 8831 $as_echo_n "(cached) " >&6 8832else 8833 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8834fi 8835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8836$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8837lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8838 8839# 8840# Check to make sure the PIC flag actually works. 8841# 8842if test -n "$lt_prog_compiler_pic"; then 8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8844$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8845if ${lt_cv_prog_compiler_pic_works+:} false; then : 8846 $as_echo_n "(cached) " >&6 8847else 8848 lt_cv_prog_compiler_pic_works=no 8849 ac_outfile=conftest.$ac_objext 8850 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8851 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8852 # Insert the option either (1) after the last *FLAGS variable, or 8853 # (2) before a word containing "conftest.", or (3) at the end. 8854 # Note that $ac_compile itself does not contain backslashes and begins 8855 # with a dollar sign (not a hyphen), so the echo should work correctly. 8856 # The option is referenced via a variable to avoid confusing sed. 8857 lt_compile=`echo "$ac_compile" | $SED \ 8858 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8859 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8860 -e 's:$: $lt_compiler_flag:'` 8861 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8862 (eval "$lt_compile" 2>conftest.err) 8863 ac_status=$? 8864 cat conftest.err >&5 8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8866 if (exit $ac_status) && test -s "$ac_outfile"; then 8867 # The compiler can only warn and ignore the option if not recognized 8868 # So say no if there are warnings other than the usual output. 8869 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8870 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8871 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8872 lt_cv_prog_compiler_pic_works=yes 8873 fi 8874 fi 8875 $RM conftest* 8876 8877fi 8878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8879$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8880 8881if test yes = "$lt_cv_prog_compiler_pic_works"; then 8882 case $lt_prog_compiler_pic in 8883 "" | " "*) ;; 8884 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8885 esac 8886else 8887 lt_prog_compiler_pic= 8888 lt_prog_compiler_can_build_shared=no 8889fi 8890 8891fi 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903# 8904# Check to make sure the static flag actually works. 8905# 8906wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8908$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8909if ${lt_cv_prog_compiler_static_works+:} false; then : 8910 $as_echo_n "(cached) " >&6 8911else 8912 lt_cv_prog_compiler_static_works=no 8913 save_LDFLAGS=$LDFLAGS 8914 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8915 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8916 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8917 # The linker can only warn and ignore the option if not recognized 8918 # So say no if there are warnings 8919 if test -s conftest.err; then 8920 # Append any errors to the config.log. 8921 cat conftest.err 1>&5 8922 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8923 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8924 if diff conftest.exp conftest.er2 >/dev/null; then 8925 lt_cv_prog_compiler_static_works=yes 8926 fi 8927 else 8928 lt_cv_prog_compiler_static_works=yes 8929 fi 8930 fi 8931 $RM -r conftest* 8932 LDFLAGS=$save_LDFLAGS 8933 8934fi 8935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8936$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8937 8938if test yes = "$lt_cv_prog_compiler_static_works"; then 8939 : 8940else 8941 lt_prog_compiler_static= 8942fi 8943 8944 8945 8946 8947 8948 8949 8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8951$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8952if ${lt_cv_prog_compiler_c_o+:} false; then : 8953 $as_echo_n "(cached) " >&6 8954else 8955 lt_cv_prog_compiler_c_o=no 8956 $RM -r conftest 2>/dev/null 8957 mkdir conftest 8958 cd conftest 8959 mkdir out 8960 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8961 8962 lt_compiler_flag="-o out/conftest2.$ac_objext" 8963 # Insert the option either (1) after the last *FLAGS variable, or 8964 # (2) before a word containing "conftest.", or (3) at the end. 8965 # Note that $ac_compile itself does not contain backslashes and begins 8966 # with a dollar sign (not a hyphen), so the echo should work correctly. 8967 lt_compile=`echo "$ac_compile" | $SED \ 8968 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8969 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8970 -e 's:$: $lt_compiler_flag:'` 8971 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8972 (eval "$lt_compile" 2>out/conftest.err) 8973 ac_status=$? 8974 cat out/conftest.err >&5 8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8976 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8977 then 8978 # The compiler can only warn and ignore the option if not recognized 8979 # So say no if there are warnings 8980 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8981 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8982 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8983 lt_cv_prog_compiler_c_o=yes 8984 fi 8985 fi 8986 chmod u+w . 2>&5 8987 $RM conftest* 8988 # SGI C++ compiler will create directory out/ii_files/ for 8989 # template instantiation 8990 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8991 $RM out/* && rmdir out 8992 cd .. 8993 $RM -r conftest 8994 $RM conftest* 8995 8996fi 8997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8998$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8999 9000 9001 9002 9003 9004 9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9006$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9007if ${lt_cv_prog_compiler_c_o+:} false; then : 9008 $as_echo_n "(cached) " >&6 9009else 9010 lt_cv_prog_compiler_c_o=no 9011 $RM -r conftest 2>/dev/null 9012 mkdir conftest 9013 cd conftest 9014 mkdir out 9015 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9016 9017 lt_compiler_flag="-o out/conftest2.$ac_objext" 9018 # Insert the option either (1) after the last *FLAGS variable, or 9019 # (2) before a word containing "conftest.", or (3) at the end. 9020 # Note that $ac_compile itself does not contain backslashes and begins 9021 # with a dollar sign (not a hyphen), so the echo should work correctly. 9022 lt_compile=`echo "$ac_compile" | $SED \ 9023 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9024 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9025 -e 's:$: $lt_compiler_flag:'` 9026 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9027 (eval "$lt_compile" 2>out/conftest.err) 9028 ac_status=$? 9029 cat out/conftest.err >&5 9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9031 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9032 then 9033 # The compiler can only warn and ignore the option if not recognized 9034 # So say no if there are warnings 9035 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9036 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9037 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9038 lt_cv_prog_compiler_c_o=yes 9039 fi 9040 fi 9041 chmod u+w . 2>&5 9042 $RM conftest* 9043 # SGI C++ compiler will create directory out/ii_files/ for 9044 # template instantiation 9045 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9046 $RM out/* && rmdir out 9047 cd .. 9048 $RM -r conftest 9049 $RM conftest* 9050 9051fi 9052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9053$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9054 9055 9056 9057 9058hard_links=nottested 9059if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9060 # do not overwrite the value of need_locks provided by the user 9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9062$as_echo_n "checking if we can lock with hard links... " >&6; } 9063 hard_links=yes 9064 $RM conftest* 9065 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9066 touch conftest.a 9067 ln conftest.a conftest.b 2>&5 || hard_links=no 9068 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9070$as_echo "$hard_links" >&6; } 9071 if test no = "$hard_links"; then 9072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9073$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9074 need_locks=warn 9075 fi 9076else 9077 need_locks=no 9078fi 9079 9080 9081 9082 9083 9084 9085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9086$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9087 9088 runpath_var= 9089 allow_undefined_flag= 9090 always_export_symbols=no 9091 archive_cmds= 9092 archive_expsym_cmds= 9093 compiler_needs_object=no 9094 enable_shared_with_static_runtimes=no 9095 export_dynamic_flag_spec= 9096 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9097 hardcode_automatic=no 9098 hardcode_direct=no 9099 hardcode_direct_absolute=no 9100 hardcode_libdir_flag_spec= 9101 hardcode_libdir_separator= 9102 hardcode_minus_L=no 9103 hardcode_shlibpath_var=unsupported 9104 inherit_rpath=no 9105 link_all_deplibs=unknown 9106 module_cmds= 9107 module_expsym_cmds= 9108 old_archive_from_new_cmds= 9109 old_archive_from_expsyms_cmds= 9110 thread_safe_flag_spec= 9111 whole_archive_flag_spec= 9112 # include_expsyms should be a list of space-separated symbols to be *always* 9113 # included in the symbol list 9114 include_expsyms= 9115 # exclude_expsyms can be an extended regexp of symbols to exclude 9116 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9117 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9118 # as well as any symbol that contains 'd'. 9119 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9120 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9121 # platforms (ab)use it in PIC code, but their linkers get confused if 9122 # the symbol is explicitly referenced. Since portable code cannot 9123 # rely on this symbol name, it's probably fine to never include it in 9124 # preloaded symbol tables. 9125 # Exclude shared library initialization/finalization symbols. 9126 extract_expsyms_cmds= 9127 9128 case $host_os in 9129 cygwin* | mingw* | pw32* | cegcc*) 9130 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9131 # When not using gcc, we currently assume that we are using 9132 # Microsoft Visual C++. 9133 if test yes != "$GCC"; then 9134 with_gnu_ld=no 9135 fi 9136 ;; 9137 interix*) 9138 # we just hope/assume this is gcc and not c89 (= MSVC++) 9139 with_gnu_ld=yes 9140 ;; 9141 openbsd* | bitrig*) 9142 with_gnu_ld=no 9143 ;; 9144 esac 9145 9146 ld_shlibs=yes 9147 9148 # On some targets, GNU ld is compatible enough with the native linker 9149 # that we're better off using the native interface for both. 9150 lt_use_gnu_ld_interface=no 9151 if test yes = "$with_gnu_ld"; then 9152 case $host_os in 9153 aix*) 9154 # The AIX port of GNU ld has always aspired to compatibility 9155 # with the native linker. However, as the warning in the GNU ld 9156 # block says, versions before 2.19.5* couldn't really create working 9157 # shared libraries, regardless of the interface used. 9158 case `$LD -v 2>&1` in 9159 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9160 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9161 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9162 *) 9163 lt_use_gnu_ld_interface=yes 9164 ;; 9165 esac 9166 ;; 9167 *) 9168 lt_use_gnu_ld_interface=yes 9169 ;; 9170 esac 9171 fi 9172 9173 if test yes = "$lt_use_gnu_ld_interface"; then 9174 # If archive_cmds runs LD, not CC, wlarc should be empty 9175 wlarc='$wl' 9176 9177 # Set some defaults for GNU ld with shared library support. These 9178 # are reset later if shared libraries are not supported. Putting them 9179 # here allows them to be overridden if necessary. 9180 runpath_var=LD_RUN_PATH 9181 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9182 export_dynamic_flag_spec='$wl--export-dynamic' 9183 # ancient GNU ld didn't support --whole-archive et. al. 9184 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9185 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9186 else 9187 whole_archive_flag_spec= 9188 fi 9189 supports_anon_versioning=no 9190 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9191 *GNU\ gold*) supports_anon_versioning=yes ;; 9192 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9193 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9194 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9195 *\ 2.11.*) ;; # other 2.11 versions 9196 *) supports_anon_versioning=yes ;; 9197 esac 9198 9199 # See if GNU ld supports shared libraries. 9200 case $host_os in 9201 aix[3-9]*) 9202 # On AIX/PPC, the GNU linker is very broken 9203 if test ia64 != "$host_cpu"; then 9204 ld_shlibs=no 9205 cat <<_LT_EOF 1>&2 9206 9207*** Warning: the GNU linker, at least up to release 2.19, is reported 9208*** to be unable to reliably create shared libraries on AIX. 9209*** Therefore, libtool is disabling shared libraries support. If you 9210*** really care for shared libraries, you may want to install binutils 9211*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9212*** You will then need to restart the configuration process. 9213 9214_LT_EOF 9215 fi 9216 ;; 9217 9218 amigaos*) 9219 case $host_cpu in 9220 powerpc) 9221 # see comment about AmigaOS4 .so support 9222 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9223 archive_expsym_cmds='' 9224 ;; 9225 m68k) 9226 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)' 9227 hardcode_libdir_flag_spec='-L$libdir' 9228 hardcode_minus_L=yes 9229 ;; 9230 esac 9231 ;; 9232 9233 beos*) 9234 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9235 allow_undefined_flag=unsupported 9236 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9237 # support --undefined. This deserves some investigation. FIXME 9238 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9239 else 9240 ld_shlibs=no 9241 fi 9242 ;; 9243 9244 cygwin* | mingw* | pw32* | cegcc*) 9245 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9246 # as there is no search path for DLLs. 9247 hardcode_libdir_flag_spec='-L$libdir' 9248 export_dynamic_flag_spec='$wl--export-all-symbols' 9249 allow_undefined_flag=unsupported 9250 always_export_symbols=no 9251 enable_shared_with_static_runtimes=yes 9252 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' 9253 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9254 9255 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9256 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9257 # If the export-symbols file already is a .def file, use it as 9258 # is; otherwise, prepend EXPORTS... 9259 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9260 cp $export_symbols $output_objdir/$soname.def; 9261 else 9262 echo EXPORTS > $output_objdir/$soname.def; 9263 cat $export_symbols >> $output_objdir/$soname.def; 9264 fi~ 9265 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9266 else 9267 ld_shlibs=no 9268 fi 9269 ;; 9270 9271 haiku*) 9272 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9273 link_all_deplibs=yes 9274 ;; 9275 9276 os2*) 9277 hardcode_libdir_flag_spec='-L$libdir' 9278 hardcode_minus_L=yes 9279 allow_undefined_flag=unsupported 9280 shrext_cmds=.dll 9281 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9282 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9283 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9284 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9285 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9286 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9287 emximp -o $lib $output_objdir/$libname.def' 9288 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9289 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9290 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9291 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9292 prefix_cmds="$SED"~ 9293 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9294 prefix_cmds="$prefix_cmds -e 1d"; 9295 fi~ 9296 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9297 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9298 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9299 emximp -o $lib $output_objdir/$libname.def' 9300 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9301 enable_shared_with_static_runtimes=yes 9302 ;; 9303 9304 interix[3-9]*) 9305 hardcode_direct=no 9306 hardcode_shlibpath_var=no 9307 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9308 export_dynamic_flag_spec='$wl-E' 9309 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9310 # Instead, shared libraries are loaded at an image base (0x10000000 by 9311 # default) and relocated if they conflict, which is a slow very memory 9312 # consuming and fragmenting process. To avoid this, we pick a random, 9313 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9314 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9315 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9316 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' 9317 ;; 9318 9319 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9320 tmp_diet=no 9321 if test linux-dietlibc = "$host_os"; then 9322 case $cc_basename in 9323 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9324 esac 9325 fi 9326 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9327 && test no = "$tmp_diet" 9328 then 9329 tmp_addflag=' $pic_flag' 9330 tmp_sharedflag='-shared' 9331 case $cc_basename,$host_cpu in 9332 pgcc*) # Portland Group C compiler 9333 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' 9334 tmp_addflag=' $pic_flag' 9335 ;; 9336 pgf77* | pgf90* | pgf95* | pgfortran*) 9337 # Portland Group f77 and f90 compilers 9338 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' 9339 tmp_addflag=' $pic_flag -Mnomain' ;; 9340 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9341 tmp_addflag=' -i_dynamic' ;; 9342 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9343 tmp_addflag=' -i_dynamic -nofor_main' ;; 9344 ifc* | ifort*) # Intel Fortran compiler 9345 tmp_addflag=' -nofor_main' ;; 9346 lf95*) # Lahey Fortran 8.1 9347 whole_archive_flag_spec= 9348 tmp_sharedflag='--shared' ;; 9349 nagfor*) # NAGFOR 5.3 9350 tmp_sharedflag='-Wl,-shared' ;; 9351 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9352 tmp_sharedflag='-qmkshrobj' 9353 tmp_addflag= ;; 9354 nvcc*) # Cuda Compiler Driver 2.2 9355 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' 9356 compiler_needs_object=yes 9357 ;; 9358 esac 9359 case `$CC -V 2>&1 | sed 5q` in 9360 *Sun\ C*) # Sun C 5.9 9361 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' 9362 compiler_needs_object=yes 9363 tmp_sharedflag='-G' ;; 9364 *Sun\ F*) # Sun Fortran 8.3 9365 tmp_sharedflag='-G' ;; 9366 esac 9367 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9368 9369 if test yes = "$supports_anon_versioning"; then 9370 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9371 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9372 echo "local: *; };" >> $output_objdir/$libname.ver~ 9373 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9374 fi 9375 9376 case $cc_basename in 9377 tcc*) 9378 export_dynamic_flag_spec='-rdynamic' 9379 ;; 9380 xlf* | bgf* | bgxlf* | mpixlf*) 9381 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9382 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9383 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9384 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9385 if test yes = "$supports_anon_versioning"; then 9386 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9387 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9388 echo "local: *; };" >> $output_objdir/$libname.ver~ 9389 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9390 fi 9391 ;; 9392 esac 9393 else 9394 ld_shlibs=no 9395 fi 9396 ;; 9397 9398 netbsd*) 9399 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9400 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9401 wlarc= 9402 else 9403 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9404 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9405 fi 9406 ;; 9407 9408 solaris*) 9409 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9410 ld_shlibs=no 9411 cat <<_LT_EOF 1>&2 9412 9413*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9414*** create shared libraries on Solaris systems. Therefore, libtool 9415*** is disabling shared libraries support. We urge you to upgrade GNU 9416*** binutils to release 2.9.1 or newer. Another option is to modify 9417*** your PATH or compiler configuration so that the native linker is 9418*** used, and then restart. 9419 9420_LT_EOF 9421 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9422 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9423 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9424 else 9425 ld_shlibs=no 9426 fi 9427 ;; 9428 9429 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9430 case `$LD -v 2>&1` in 9431 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9432 ld_shlibs=no 9433 cat <<_LT_EOF 1>&2 9434 9435*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9436*** reliably create shared libraries on SCO systems. Therefore, libtool 9437*** is disabling shared libraries support. We urge you to upgrade GNU 9438*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9439*** your PATH or compiler configuration so that the native linker is 9440*** used, and then restart. 9441 9442_LT_EOF 9443 ;; 9444 *) 9445 # For security reasons, it is highly recommended that you always 9446 # use absolute paths for naming shared libraries, and exclude the 9447 # DT_RUNPATH tag from executables and libraries. But doing so 9448 # requires that you compile everything twice, which is a pain. 9449 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9450 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9451 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9452 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9453 else 9454 ld_shlibs=no 9455 fi 9456 ;; 9457 esac 9458 ;; 9459 9460 sunos4*) 9461 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9462 wlarc= 9463 hardcode_direct=yes 9464 hardcode_shlibpath_var=no 9465 ;; 9466 9467 *) 9468 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9469 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9470 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9471 else 9472 ld_shlibs=no 9473 fi 9474 ;; 9475 esac 9476 9477 if test no = "$ld_shlibs"; then 9478 runpath_var= 9479 hardcode_libdir_flag_spec= 9480 export_dynamic_flag_spec= 9481 whole_archive_flag_spec= 9482 fi 9483 else 9484 # PORTME fill in a description of your system's linker (not GNU ld) 9485 case $host_os in 9486 aix3*) 9487 allow_undefined_flag=unsupported 9488 always_export_symbols=yes 9489 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' 9490 # Note: this linker hardcodes the directories in LIBPATH if there 9491 # are no directories specified by -L. 9492 hardcode_minus_L=yes 9493 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9494 # Neither direct hardcoding nor static linking is supported with a 9495 # broken collect2. 9496 hardcode_direct=unsupported 9497 fi 9498 ;; 9499 9500 aix[4-9]*) 9501 if test ia64 = "$host_cpu"; then 9502 # On IA64, the linker does run time linking by default, so we don't 9503 # have to do anything special. 9504 aix_use_runtimelinking=no 9505 exp_sym_flag='-Bexport' 9506 no_entry_flag= 9507 else 9508 # If we're using GNU nm, then we don't want the "-C" option. 9509 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9510 # Without the "-l" option, or with the "-B" option, AIX nm treats 9511 # weak defined symbols like other global defined symbols, whereas 9512 # GNU nm marks them as "W". 9513 # While the 'weak' keyword is ignored in the Export File, we need 9514 # it in the Import File for the 'aix-soname' feature, so we have 9515 # to replace the "-B" option with "-P" for AIX nm. 9516 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9517 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' 9518 else 9519 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' 9520 fi 9521 aix_use_runtimelinking=no 9522 9523 # Test if we are trying to use run time linking or normal 9524 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9525 # have runtime linking enabled, and use it for executables. 9526 # For shared libraries, we enable/disable runtime linking 9527 # depending on the kind of the shared library created - 9528 # when "with_aix_soname,aix_use_runtimelinking" is: 9529 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9530 # "aix,yes" lib.so shared, rtl:yes, for executables 9531 # lib.a static archive 9532 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9533 # lib.a(lib.so.V) shared, rtl:no, for executables 9534 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9535 # lib.a(lib.so.V) shared, rtl:no 9536 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9537 # lib.a static archive 9538 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9539 for ld_flag in $LDFLAGS; do 9540 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9541 aix_use_runtimelinking=yes 9542 break 9543 fi 9544 done 9545 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9546 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9547 # so we don't have lib.a shared libs to link our executables. 9548 # We have to force runtime linking in this case. 9549 aix_use_runtimelinking=yes 9550 LDFLAGS="$LDFLAGS -Wl,-brtl" 9551 fi 9552 ;; 9553 esac 9554 9555 exp_sym_flag='-bexport' 9556 no_entry_flag='-bnoentry' 9557 fi 9558 9559 # When large executables or shared objects are built, AIX ld can 9560 # have problems creating the table of contents. If linking a library 9561 # or program results in "error TOC overflow" add -mminimal-toc to 9562 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9563 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9564 9565 archive_cmds='' 9566 hardcode_direct=yes 9567 hardcode_direct_absolute=yes 9568 hardcode_libdir_separator=':' 9569 link_all_deplibs=yes 9570 file_list_spec='$wl-f,' 9571 case $with_aix_soname,$aix_use_runtimelinking in 9572 aix,*) ;; # traditional, no import file 9573 svr4,* | *,yes) # use import file 9574 # The Import File defines what to hardcode. 9575 hardcode_direct=no 9576 hardcode_direct_absolute=no 9577 ;; 9578 esac 9579 9580 if test yes = "$GCC"; then 9581 case $host_os in aix4.[012]|aix4.[012].*) 9582 # We only want to do this on AIX 4.2 and lower, the check 9583 # below for broken collect2 doesn't work under 4.3+ 9584 collect2name=`$CC -print-prog-name=collect2` 9585 if test -f "$collect2name" && 9586 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9587 then 9588 # We have reworked collect2 9589 : 9590 else 9591 # We have old collect2 9592 hardcode_direct=unsupported 9593 # It fails to find uninstalled libraries when the uninstalled 9594 # path is not listed in the libpath. Setting hardcode_minus_L 9595 # to unsupported forces relinking 9596 hardcode_minus_L=yes 9597 hardcode_libdir_flag_spec='-L$libdir' 9598 hardcode_libdir_separator= 9599 fi 9600 ;; 9601 esac 9602 shared_flag='-shared' 9603 if test yes = "$aix_use_runtimelinking"; then 9604 shared_flag="$shared_flag "'$wl-G' 9605 fi 9606 # Need to ensure runtime linking is disabled for the traditional 9607 # shared library, or the linker may eventually find shared libraries 9608 # /with/ Import File - we do not want to mix them. 9609 shared_flag_aix='-shared' 9610 shared_flag_svr4='-shared $wl-G' 9611 else 9612 # not using gcc 9613 if test ia64 = "$host_cpu"; then 9614 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9615 # chokes on -Wl,-G. The following line is correct: 9616 shared_flag='-G' 9617 else 9618 if test yes = "$aix_use_runtimelinking"; then 9619 shared_flag='$wl-G' 9620 else 9621 shared_flag='$wl-bM:SRE' 9622 fi 9623 shared_flag_aix='$wl-bM:SRE' 9624 shared_flag_svr4='$wl-G' 9625 fi 9626 fi 9627 9628 export_dynamic_flag_spec='$wl-bexpall' 9629 # It seems that -bexpall does not export symbols beginning with 9630 # underscore (_), so it is better to generate a list of symbols to export. 9631 always_export_symbols=yes 9632 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9633 # Warning - without using the other runtime loading flags (-brtl), 9634 # -berok will link without error, but may produce a broken library. 9635 allow_undefined_flag='-berok' 9636 # Determine the default libpath from the value encoded in an 9637 # empty executable. 9638 if test set = "${lt_cv_aix_libpath+set}"; then 9639 aix_libpath=$lt_cv_aix_libpath 9640else 9641 if ${lt_cv_aix_libpath_+:} false; then : 9642 $as_echo_n "(cached) " >&6 9643else 9644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9645/* end confdefs.h. */ 9646 9647int 9648main () 9649{ 9650 9651 ; 9652 return 0; 9653} 9654_ACEOF 9655if ac_fn_c_try_link "$LINENO"; then : 9656 9657 lt_aix_libpath_sed=' 9658 /Import File Strings/,/^$/ { 9659 /^0/ { 9660 s/^0 *\([^ ]*\) *$/\1/ 9661 p 9662 } 9663 }' 9664 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9665 # Check for a 64-bit object if we didn't find anything. 9666 if test -z "$lt_cv_aix_libpath_"; then 9667 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9668 fi 9669fi 9670rm -f core conftest.err conftest.$ac_objext \ 9671 conftest$ac_exeext conftest.$ac_ext 9672 if test -z "$lt_cv_aix_libpath_"; then 9673 lt_cv_aix_libpath_=/usr/lib:/lib 9674 fi 9675 9676fi 9677 9678 aix_libpath=$lt_cv_aix_libpath_ 9679fi 9680 9681 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9682 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 9683 else 9684 if test ia64 = "$host_cpu"; then 9685 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9686 allow_undefined_flag="-z nodefs" 9687 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" 9688 else 9689 # Determine the default libpath from the value encoded in an 9690 # empty executable. 9691 if test set = "${lt_cv_aix_libpath+set}"; then 9692 aix_libpath=$lt_cv_aix_libpath 9693else 9694 if ${lt_cv_aix_libpath_+:} false; then : 9695 $as_echo_n "(cached) " >&6 9696else 9697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9698/* end confdefs.h. */ 9699 9700int 9701main () 9702{ 9703 9704 ; 9705 return 0; 9706} 9707_ACEOF 9708if ac_fn_c_try_link "$LINENO"; then : 9709 9710 lt_aix_libpath_sed=' 9711 /Import File Strings/,/^$/ { 9712 /^0/ { 9713 s/^0 *\([^ ]*\) *$/\1/ 9714 p 9715 } 9716 }' 9717 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9718 # Check for a 64-bit object if we didn't find anything. 9719 if test -z "$lt_cv_aix_libpath_"; then 9720 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9721 fi 9722fi 9723rm -f core conftest.err conftest.$ac_objext \ 9724 conftest$ac_exeext conftest.$ac_ext 9725 if test -z "$lt_cv_aix_libpath_"; then 9726 lt_cv_aix_libpath_=/usr/lib:/lib 9727 fi 9728 9729fi 9730 9731 aix_libpath=$lt_cv_aix_libpath_ 9732fi 9733 9734 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9735 # Warning - without using the other run time loading flags, 9736 # -berok will link without error, but may produce a broken library. 9737 no_undefined_flag=' $wl-bernotok' 9738 allow_undefined_flag=' $wl-berok' 9739 if test yes = "$with_gnu_ld"; then 9740 # We only use this code for GNU lds that support --whole-archive. 9741 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9742 else 9743 # Exported symbols can be pulled into shared objects from archives 9744 whole_archive_flag_spec='$convenience' 9745 fi 9746 archive_cmds_need_lc=yes 9747 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9748 # -brtl affects multiple linker settings, -berok does not and is overridden later 9749 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9750 if test svr4 != "$with_aix_soname"; then 9751 # This is similar to how AIX traditionally builds its shared libraries. 9752 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' 9753 fi 9754 if test aix != "$with_aix_soname"; then 9755 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' 9756 else 9757 # used by -dlpreopen to get the symbols 9758 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9759 fi 9760 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9761 fi 9762 fi 9763 ;; 9764 9765 amigaos*) 9766 case $host_cpu in 9767 powerpc) 9768 # see comment about AmigaOS4 .so support 9769 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9770 archive_expsym_cmds='' 9771 ;; 9772 m68k) 9773 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)' 9774 hardcode_libdir_flag_spec='-L$libdir' 9775 hardcode_minus_L=yes 9776 ;; 9777 esac 9778 ;; 9779 9780 bsdi[45]*) 9781 export_dynamic_flag_spec=-rdynamic 9782 ;; 9783 9784 cygwin* | mingw* | pw32* | cegcc*) 9785 # When not using gcc, we currently assume that we are using 9786 # Microsoft Visual C++. 9787 # hardcode_libdir_flag_spec is actually meaningless, as there is 9788 # no search path for DLLs. 9789 case $cc_basename in 9790 cl*) 9791 # Native MSVC 9792 hardcode_libdir_flag_spec=' ' 9793 allow_undefined_flag=unsupported 9794 always_export_symbols=yes 9795 file_list_spec='@' 9796 # Tell ltmain to make .lib files, not .a files. 9797 libext=lib 9798 # Tell ltmain to make .dll files, not .so files. 9799 shrext_cmds=.dll 9800 # FIXME: Setting linknames here is a bad hack. 9801 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9802 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9803 cp "$export_symbols" "$output_objdir/$soname.def"; 9804 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9805 else 9806 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9807 fi~ 9808 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9809 linknames=' 9810 # The linker will not automatically build a static lib if we build a DLL. 9811 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9812 enable_shared_with_static_runtimes=yes 9813 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9814 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9815 # Don't use ranlib 9816 old_postinstall_cmds='chmod 644 $oldlib' 9817 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9818 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9819 case $lt_outputfile in 9820 *.exe|*.EXE) ;; 9821 *) 9822 lt_outputfile=$lt_outputfile.exe 9823 lt_tool_outputfile=$lt_tool_outputfile.exe 9824 ;; 9825 esac~ 9826 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9827 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9828 $RM "$lt_outputfile.manifest"; 9829 fi' 9830 ;; 9831 *) 9832 # Assume MSVC wrapper 9833 hardcode_libdir_flag_spec=' ' 9834 allow_undefined_flag=unsupported 9835 # Tell ltmain to make .lib files, not .a files. 9836 libext=lib 9837 # Tell ltmain to make .dll files, not .so files. 9838 shrext_cmds=.dll 9839 # FIXME: Setting linknames here is a bad hack. 9840 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9841 # The linker will automatically build a .lib file if we build a DLL. 9842 old_archive_from_new_cmds='true' 9843 # FIXME: Should let the user specify the lib program. 9844 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9845 enable_shared_with_static_runtimes=yes 9846 ;; 9847 esac 9848 ;; 9849 9850 darwin* | rhapsody*) 9851 9852 9853 archive_cmds_need_lc=no 9854 hardcode_direct=no 9855 hardcode_automatic=yes 9856 hardcode_shlibpath_var=unsupported 9857 if test yes = "$lt_cv_ld_force_load"; then 9858 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\"`' 9859 9860 else 9861 whole_archive_flag_spec='' 9862 fi 9863 link_all_deplibs=yes 9864 allow_undefined_flag=$_lt_dar_allow_undefined 9865 case $cc_basename in 9866 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9867 *) _lt_dar_can_shared=$GCC ;; 9868 esac 9869 if test yes = "$_lt_dar_can_shared"; then 9870 output_verbose_link_cmd=func_echo_all 9871 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9872 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9873 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" 9874 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" 9875 9876 else 9877 ld_shlibs=no 9878 fi 9879 9880 ;; 9881 9882 dgux*) 9883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9884 hardcode_libdir_flag_spec='-L$libdir' 9885 hardcode_shlibpath_var=no 9886 ;; 9887 9888 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9889 # support. Future versions do this automatically, but an explicit c++rt0.o 9890 # does not break anything, and helps significantly (at the cost of a little 9891 # extra space). 9892 freebsd2.2*) 9893 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9894 hardcode_libdir_flag_spec='-R$libdir' 9895 hardcode_direct=yes 9896 hardcode_shlibpath_var=no 9897 ;; 9898 9899 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9900 freebsd2.*) 9901 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9902 hardcode_direct=yes 9903 hardcode_minus_L=yes 9904 hardcode_shlibpath_var=no 9905 ;; 9906 9907 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9908 freebsd* | dragonfly*) 9909 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9910 hardcode_libdir_flag_spec='-R$libdir' 9911 hardcode_direct=yes 9912 hardcode_shlibpath_var=no 9913 ;; 9914 9915 hpux9*) 9916 if test yes = "$GCC"; then 9917 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' 9918 else 9919 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' 9920 fi 9921 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9922 hardcode_libdir_separator=: 9923 hardcode_direct=yes 9924 9925 # hardcode_minus_L: Not really in the search PATH, 9926 # but as the default location of the library. 9927 hardcode_minus_L=yes 9928 export_dynamic_flag_spec='$wl-E' 9929 ;; 9930 9931 hpux10*) 9932 if test yes,no = "$GCC,$with_gnu_ld"; then 9933 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9934 else 9935 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9936 fi 9937 if test no = "$with_gnu_ld"; then 9938 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9939 hardcode_libdir_separator=: 9940 hardcode_direct=yes 9941 hardcode_direct_absolute=yes 9942 export_dynamic_flag_spec='$wl-E' 9943 # hardcode_minus_L: Not really in the search PATH, 9944 # but as the default location of the library. 9945 hardcode_minus_L=yes 9946 fi 9947 ;; 9948 9949 hpux11*) 9950 if test yes,no = "$GCC,$with_gnu_ld"; then 9951 case $host_cpu in 9952 hppa*64*) 9953 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9954 ;; 9955 ia64*) 9956 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9957 ;; 9958 *) 9959 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9960 ;; 9961 esac 9962 else 9963 case $host_cpu in 9964 hppa*64*) 9965 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9966 ;; 9967 ia64*) 9968 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9969 ;; 9970 *) 9971 9972 # Older versions of the 11.00 compiler do not understand -b yet 9973 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9975$as_echo_n "checking if $CC understands -b... " >&6; } 9976if ${lt_cv_prog_compiler__b+:} false; then : 9977 $as_echo_n "(cached) " >&6 9978else 9979 lt_cv_prog_compiler__b=no 9980 save_LDFLAGS=$LDFLAGS 9981 LDFLAGS="$LDFLAGS -b" 9982 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9983 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9984 # The linker can only warn and ignore the option if not recognized 9985 # So say no if there are warnings 9986 if test -s conftest.err; then 9987 # Append any errors to the config.log. 9988 cat conftest.err 1>&5 9989 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9990 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9991 if diff conftest.exp conftest.er2 >/dev/null; then 9992 lt_cv_prog_compiler__b=yes 9993 fi 9994 else 9995 lt_cv_prog_compiler__b=yes 9996 fi 9997 fi 9998 $RM -r conftest* 9999 LDFLAGS=$save_LDFLAGS 10000 10001fi 10002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10003$as_echo "$lt_cv_prog_compiler__b" >&6; } 10004 10005if test yes = "$lt_cv_prog_compiler__b"; then 10006 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10007else 10008 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10009fi 10010 10011 ;; 10012 esac 10013 fi 10014 if test no = "$with_gnu_ld"; then 10015 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10016 hardcode_libdir_separator=: 10017 10018 case $host_cpu in 10019 hppa*64*|ia64*) 10020 hardcode_direct=no 10021 hardcode_shlibpath_var=no 10022 ;; 10023 *) 10024 hardcode_direct=yes 10025 hardcode_direct_absolute=yes 10026 export_dynamic_flag_spec='$wl-E' 10027 10028 # hardcode_minus_L: Not really in the search PATH, 10029 # but as the default location of the library. 10030 hardcode_minus_L=yes 10031 ;; 10032 esac 10033 fi 10034 ;; 10035 10036 irix5* | irix6* | nonstopux*) 10037 if test yes = "$GCC"; then 10038 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' 10039 # Try to use the -exported_symbol ld option, if it does not 10040 # work, assume that -exports_file does not work either and 10041 # implicitly export all symbols. 10042 # This should be the same for all languages, so no per-tag cache variable. 10043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10044$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10045if ${lt_cv_irix_exported_symbol+:} false; then : 10046 $as_echo_n "(cached) " >&6 10047else 10048 save_LDFLAGS=$LDFLAGS 10049 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10051/* end confdefs.h. */ 10052int foo (void) { return 0; } 10053_ACEOF 10054if ac_fn_c_try_link "$LINENO"; then : 10055 lt_cv_irix_exported_symbol=yes 10056else 10057 lt_cv_irix_exported_symbol=no 10058fi 10059rm -f core conftest.err conftest.$ac_objext \ 10060 conftest$ac_exeext conftest.$ac_ext 10061 LDFLAGS=$save_LDFLAGS 10062fi 10063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10064$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10065 if test yes = "$lt_cv_irix_exported_symbol"; then 10066 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' 10067 fi 10068 else 10069 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' 10070 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' 10071 fi 10072 archive_cmds_need_lc='no' 10073 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10074 hardcode_libdir_separator=: 10075 inherit_rpath=yes 10076 link_all_deplibs=yes 10077 ;; 10078 10079 linux*) 10080 case $cc_basename in 10081 tcc*) 10082 # Fabrice Bellard et al's Tiny C Compiler 10083 ld_shlibs=yes 10084 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10085 ;; 10086 esac 10087 ;; 10088 10089 netbsd*) 10090 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10091 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10092 else 10093 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10094 fi 10095 hardcode_libdir_flag_spec='-R$libdir' 10096 hardcode_direct=yes 10097 hardcode_shlibpath_var=no 10098 ;; 10099 10100 newsos6) 10101 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10102 hardcode_direct=yes 10103 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10104 hardcode_libdir_separator=: 10105 hardcode_shlibpath_var=no 10106 ;; 10107 10108 *nto* | *qnx*) 10109 ;; 10110 10111 openbsd* | bitrig*) 10112 if test -f /usr/libexec/ld.so; then 10113 hardcode_direct=yes 10114 hardcode_shlibpath_var=no 10115 hardcode_direct_absolute=yes 10116 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10117 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10118 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10119 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10120 export_dynamic_flag_spec='$wl-E' 10121 else 10122 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10123 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10124 fi 10125 else 10126 ld_shlibs=no 10127 fi 10128 ;; 10129 10130 os2*) 10131 hardcode_libdir_flag_spec='-L$libdir' 10132 hardcode_minus_L=yes 10133 allow_undefined_flag=unsupported 10134 shrext_cmds=.dll 10135 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10136 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10137 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10138 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10139 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10140 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10141 emximp -o $lib $output_objdir/$libname.def' 10142 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10143 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10144 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10145 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10146 prefix_cmds="$SED"~ 10147 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10148 prefix_cmds="$prefix_cmds -e 1d"; 10149 fi~ 10150 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10151 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10152 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10153 emximp -o $lib $output_objdir/$libname.def' 10154 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10155 enable_shared_with_static_runtimes=yes 10156 ;; 10157 10158 osf3*) 10159 if test yes = "$GCC"; then 10160 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10161 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' 10162 else 10163 allow_undefined_flag=' -expect_unresolved \*' 10164 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' 10165 fi 10166 archive_cmds_need_lc='no' 10167 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10168 hardcode_libdir_separator=: 10169 ;; 10170 10171 osf4* | osf5*) # as osf3* with the addition of -msym flag 10172 if test yes = "$GCC"; then 10173 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10174 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' 10175 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10176 else 10177 allow_undefined_flag=' -expect_unresolved \*' 10178 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' 10179 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~ 10180 $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' 10181 10182 # Both c and cxx compiler support -rpath directly 10183 hardcode_libdir_flag_spec='-rpath $libdir' 10184 fi 10185 archive_cmds_need_lc='no' 10186 hardcode_libdir_separator=: 10187 ;; 10188 10189 solaris*) 10190 no_undefined_flag=' -z defs' 10191 if test yes = "$GCC"; then 10192 wlarc='$wl' 10193 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10194 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10195 $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' 10196 else 10197 case `$CC -V 2>&1` in 10198 *"Compilers 5.0"*) 10199 wlarc='' 10200 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10201 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10202 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10203 ;; 10204 *) 10205 wlarc='$wl' 10206 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10207 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10208 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10209 ;; 10210 esac 10211 fi 10212 hardcode_libdir_flag_spec='-R$libdir' 10213 hardcode_shlibpath_var=no 10214 case $host_os in 10215 solaris2.[0-5] | solaris2.[0-5].*) ;; 10216 *) 10217 # The compiler driver will combine and reorder linker options, 10218 # but understands '-z linker_flag'. GCC discards it without '$wl', 10219 # but is careful enough not to reorder. 10220 # Supported since Solaris 2.6 (maybe 2.5.1?) 10221 if test yes = "$GCC"; then 10222 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10223 else 10224 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10225 fi 10226 ;; 10227 esac 10228 link_all_deplibs=yes 10229 ;; 10230 10231 sunos4*) 10232 if test sequent = "$host_vendor"; then 10233 # Use $CC to link under sequent, because it throws in some extra .o 10234 # files that make .init and .fini sections work. 10235 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10236 else 10237 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10238 fi 10239 hardcode_libdir_flag_spec='-L$libdir' 10240 hardcode_direct=yes 10241 hardcode_minus_L=yes 10242 hardcode_shlibpath_var=no 10243 ;; 10244 10245 sysv4) 10246 case $host_vendor in 10247 sni) 10248 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10249 hardcode_direct=yes # is this really true??? 10250 ;; 10251 siemens) 10252 ## LD is ld it makes a PLAMLIB 10253 ## CC just makes a GrossModule. 10254 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10255 reload_cmds='$CC -r -o $output$reload_objs' 10256 hardcode_direct=no 10257 ;; 10258 motorola) 10259 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10260 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10261 ;; 10262 esac 10263 runpath_var='LD_RUN_PATH' 10264 hardcode_shlibpath_var=no 10265 ;; 10266 10267 sysv4.3*) 10268 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10269 hardcode_shlibpath_var=no 10270 export_dynamic_flag_spec='-Bexport' 10271 ;; 10272 10273 sysv4*MP*) 10274 if test -d /usr/nec; then 10275 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10276 hardcode_shlibpath_var=no 10277 runpath_var=LD_RUN_PATH 10278 hardcode_runpath_var=yes 10279 ld_shlibs=yes 10280 fi 10281 ;; 10282 10283 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10284 no_undefined_flag='$wl-z,text' 10285 archive_cmds_need_lc=no 10286 hardcode_shlibpath_var=no 10287 runpath_var='LD_RUN_PATH' 10288 10289 if test yes = "$GCC"; then 10290 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10291 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10292 else 10293 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10294 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10295 fi 10296 ;; 10297 10298 sysv5* | sco3.2v5* | sco5v6*) 10299 # Note: We CANNOT use -z defs as we might desire, because we do not 10300 # link with -lc, and that would cause any symbols used from libc to 10301 # always be unresolved, which means just about no library would 10302 # ever link correctly. If we're not using GNU ld we use -z text 10303 # though, which does catch some bad symbols but isn't as heavy-handed 10304 # as -z defs. 10305 no_undefined_flag='$wl-z,text' 10306 allow_undefined_flag='$wl-z,nodefs' 10307 archive_cmds_need_lc=no 10308 hardcode_shlibpath_var=no 10309 hardcode_libdir_flag_spec='$wl-R,$libdir' 10310 hardcode_libdir_separator=':' 10311 link_all_deplibs=yes 10312 export_dynamic_flag_spec='$wl-Bexport' 10313 runpath_var='LD_RUN_PATH' 10314 10315 if test yes = "$GCC"; then 10316 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10317 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10318 else 10319 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10320 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10321 fi 10322 ;; 10323 10324 uts4*) 10325 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10326 hardcode_libdir_flag_spec='-L$libdir' 10327 hardcode_shlibpath_var=no 10328 ;; 10329 10330 *) 10331 ld_shlibs=no 10332 ;; 10333 esac 10334 10335 if test sni = "$host_vendor"; then 10336 case $host in 10337 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10338 export_dynamic_flag_spec='$wl-Blargedynsym' 10339 ;; 10340 esac 10341 fi 10342 fi 10343 10344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10345$as_echo "$ld_shlibs" >&6; } 10346test no = "$ld_shlibs" && can_build_shared=no 10347 10348with_gnu_ld=$with_gnu_ld 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364# 10365# Do we need to explicitly link libc? 10366# 10367case "x$archive_cmds_need_lc" in 10368x|xyes) 10369 # Assume -lc should be added 10370 archive_cmds_need_lc=yes 10371 10372 if test yes,yes = "$GCC,$enable_shared"; then 10373 case $archive_cmds in 10374 *'~'*) 10375 # FIXME: we may have to deal with multi-command sequences. 10376 ;; 10377 '$CC '*) 10378 # Test whether the compiler implicitly links with -lc since on some 10379 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10380 # to ld, don't add -lc before -lgcc. 10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10382$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10383if ${lt_cv_archive_cmds_need_lc+:} false; then : 10384 $as_echo_n "(cached) " >&6 10385else 10386 $RM conftest* 10387 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10388 10389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10390 (eval $ac_compile) 2>&5 10391 ac_status=$? 10392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10393 test $ac_status = 0; } 2>conftest.err; then 10394 soname=conftest 10395 lib=conftest 10396 libobjs=conftest.$ac_objext 10397 deplibs= 10398 wl=$lt_prog_compiler_wl 10399 pic_flag=$lt_prog_compiler_pic 10400 compiler_flags=-v 10401 linker_flags=-v 10402 verstring= 10403 output_objdir=. 10404 libname=conftest 10405 lt_save_allow_undefined_flag=$allow_undefined_flag 10406 allow_undefined_flag= 10407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10408 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10409 ac_status=$? 10410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10411 test $ac_status = 0; } 10412 then 10413 lt_cv_archive_cmds_need_lc=no 10414 else 10415 lt_cv_archive_cmds_need_lc=yes 10416 fi 10417 allow_undefined_flag=$lt_save_allow_undefined_flag 10418 else 10419 cat conftest.err 1>&5 10420 fi 10421 $RM conftest* 10422 10423fi 10424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10425$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10426 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10427 ;; 10428 esac 10429 fi 10430 ;; 10431esac 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10585$as_echo_n "checking dynamic linker characteristics... " >&6; } 10586 10587if test yes = "$GCC"; then 10588 case $host_os in 10589 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10590 *) lt_awk_arg='/^libraries:/' ;; 10591 esac 10592 case $host_os in 10593 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10594 *) lt_sed_strip_eq='s|=/|/|g' ;; 10595 esac 10596 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10597 case $lt_search_path_spec in 10598 *\;*) 10599 # if the path contains ";" then we assume it to be the separator 10600 # otherwise default to the standard path separator (i.e. ":") - it is 10601 # assumed that no part of a normal pathname contains ";" but that should 10602 # okay in the real world where ";" in dirpaths is itself problematic. 10603 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10604 ;; 10605 *) 10606 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10607 ;; 10608 esac 10609 # Ok, now we have the path, separated by spaces, we can step through it 10610 # and add multilib dir if necessary... 10611 lt_tmp_lt_search_path_spec= 10612 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10613 # ...but if some path component already ends with the multilib dir we assume 10614 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10615 case "$lt_multi_os_dir; $lt_search_path_spec " in 10616 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10617 lt_multi_os_dir= 10618 ;; 10619 esac 10620 for lt_sys_path in $lt_search_path_spec; do 10621 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10622 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10623 elif test -n "$lt_multi_os_dir"; then 10624 test -d "$lt_sys_path" && \ 10625 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10626 fi 10627 done 10628 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10629BEGIN {RS = " "; FS = "/|\n";} { 10630 lt_foo = ""; 10631 lt_count = 0; 10632 for (lt_i = NF; lt_i > 0; lt_i--) { 10633 if ($lt_i != "" && $lt_i != ".") { 10634 if ($lt_i == "..") { 10635 lt_count++; 10636 } else { 10637 if (lt_count == 0) { 10638 lt_foo = "/" $lt_i lt_foo; 10639 } else { 10640 lt_count--; 10641 } 10642 } 10643 } 10644 } 10645 if (lt_foo != "") { lt_freq[lt_foo]++; } 10646 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10647}'` 10648 # AWK program above erroneously prepends '/' to C:/dos/paths 10649 # for these hosts. 10650 case $host_os in 10651 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10652 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10653 esac 10654 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10655else 10656 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10657fi 10658library_names_spec= 10659libname_spec='lib$name' 10660soname_spec= 10661shrext_cmds=.so 10662postinstall_cmds= 10663postuninstall_cmds= 10664finish_cmds= 10665finish_eval= 10666shlibpath_var= 10667shlibpath_overrides_runpath=unknown 10668version_type=none 10669dynamic_linker="$host_os ld.so" 10670sys_lib_dlsearch_path_spec="/lib /usr/lib" 10671need_lib_prefix=unknown 10672hardcode_into_libs=no 10673 10674# when you set need_version to no, make sure it does not cause -set_version 10675# flags to be left without arguments 10676need_version=unknown 10677 10678 10679 10680case $host_os in 10681aix3*) 10682 version_type=linux # correct to gnu/linux during the next big refactor 10683 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10684 shlibpath_var=LIBPATH 10685 10686 # AIX 3 has no versioning support, so we append a major version to the name. 10687 soname_spec='$libname$release$shared_ext$major' 10688 ;; 10689 10690aix[4-9]*) 10691 version_type=linux # correct to gnu/linux during the next big refactor 10692 need_lib_prefix=no 10693 need_version=no 10694 hardcode_into_libs=yes 10695 if test ia64 = "$host_cpu"; then 10696 # AIX 5 supports IA64 10697 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10698 shlibpath_var=LD_LIBRARY_PATH 10699 else 10700 # With GCC up to 2.95.x, collect2 would create an import file 10701 # for dependence libraries. The import file would start with 10702 # the line '#! .'. This would cause the generated library to 10703 # depend on '.', always an invalid library. This was fixed in 10704 # development snapshots of GCC prior to 3.0. 10705 case $host_os in 10706 aix4 | aix4.[01] | aix4.[01].*) 10707 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10708 echo ' yes ' 10709 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10710 : 10711 else 10712 can_build_shared=no 10713 fi 10714 ;; 10715 esac 10716 # Using Import Files as archive members, it is possible to support 10717 # filename-based versioning of shared library archives on AIX. While 10718 # this would work for both with and without runtime linking, it will 10719 # prevent static linking of such archives. So we do filename-based 10720 # shared library versioning with .so extension only, which is used 10721 # when both runtime linking and shared linking is enabled. 10722 # Unfortunately, runtime linking may impact performance, so we do 10723 # not want this to be the default eventually. Also, we use the 10724 # versioned .so libs for executables only if there is the -brtl 10725 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10726 # To allow for filename-based versioning support, we need to create 10727 # libNAME.so.V as an archive file, containing: 10728 # *) an Import File, referring to the versioned filename of the 10729 # archive as well as the shared archive member, telling the 10730 # bitwidth (32 or 64) of that shared object, and providing the 10731 # list of exported symbols of that shared object, eventually 10732 # decorated with the 'weak' keyword 10733 # *) the shared object with the F_LOADONLY flag set, to really avoid 10734 # it being seen by the linker. 10735 # At run time we better use the real file rather than another symlink, 10736 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10737 10738 case $with_aix_soname,$aix_use_runtimelinking in 10739 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10740 # soname into executable. Probably we can add versioning support to 10741 # collect2, so additional links can be useful in future. 10742 aix,yes) # traditional libtool 10743 dynamic_linker='AIX unversionable lib.so' 10744 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10745 # instead of lib<name>.a to let people know that these are not 10746 # typical AIX shared libraries. 10747 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10748 ;; 10749 aix,no) # traditional AIX only 10750 dynamic_linker='AIX lib.a(lib.so.V)' 10751 # We preserve .a as extension for shared libraries through AIX4.2 10752 # and later when we are not doing run time linking. 10753 library_names_spec='$libname$release.a $libname.a' 10754 soname_spec='$libname$release$shared_ext$major' 10755 ;; 10756 svr4,*) # full svr4 only 10757 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10758 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10759 # We do not specify a path in Import Files, so LIBPATH fires. 10760 shlibpath_overrides_runpath=yes 10761 ;; 10762 *,yes) # both, prefer svr4 10763 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10764 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10765 # unpreferred sharedlib libNAME.a needs extra handling 10766 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"' 10767 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"' 10768 # We do not specify a path in Import Files, so LIBPATH fires. 10769 shlibpath_overrides_runpath=yes 10770 ;; 10771 *,no) # both, prefer aix 10772 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10773 library_names_spec='$libname$release.a $libname.a' 10774 soname_spec='$libname$release$shared_ext$major' 10775 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10776 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)' 10777 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"' 10778 ;; 10779 esac 10780 shlibpath_var=LIBPATH 10781 fi 10782 ;; 10783 10784amigaos*) 10785 case $host_cpu in 10786 powerpc) 10787 # Since July 2007 AmigaOS4 officially supports .so libraries. 10788 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10789 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10790 ;; 10791 m68k) 10792 library_names_spec='$libname.ixlibrary $libname.a' 10793 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10794 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' 10795 ;; 10796 esac 10797 ;; 10798 10799beos*) 10800 library_names_spec='$libname$shared_ext' 10801 dynamic_linker="$host_os ld.so" 10802 shlibpath_var=LIBRARY_PATH 10803 ;; 10804 10805bsdi[45]*) 10806 version_type=linux # correct to gnu/linux during the next big refactor 10807 need_version=no 10808 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10809 soname_spec='$libname$release$shared_ext$major' 10810 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10811 shlibpath_var=LD_LIBRARY_PATH 10812 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10813 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10814 # the default ld.so.conf also contains /usr/contrib/lib and 10815 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10816 # libtool to hard-code these into programs 10817 ;; 10818 10819cygwin* | mingw* | pw32* | cegcc*) 10820 version_type=windows 10821 shrext_cmds=.dll 10822 need_version=no 10823 need_lib_prefix=no 10824 10825 case $GCC,$cc_basename in 10826 yes,*) 10827 # gcc 10828 library_names_spec='$libname.dll.a' 10829 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10830 postinstall_cmds='base_file=`basename \$file`~ 10831 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10832 dldir=$destdir/`dirname \$dlpath`~ 10833 test -d \$dldir || mkdir -p \$dldir~ 10834 $install_prog $dir/$dlname \$dldir/$dlname~ 10835 chmod a+x \$dldir/$dlname~ 10836 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10837 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10838 fi' 10839 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10840 dlpath=$dir/\$dldll~ 10841 $RM \$dlpath' 10842 shlibpath_overrides_runpath=yes 10843 10844 case $host_os in 10845 cygwin*) 10846 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10847 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10848 10849 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10850 ;; 10851 mingw* | cegcc*) 10852 # MinGW DLLs use traditional 'lib' prefix 10853 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10854 ;; 10855 pw32*) 10856 # pw32 DLLs use 'pw' prefix rather than 'lib' 10857 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10858 ;; 10859 esac 10860 dynamic_linker='Win32 ld.exe' 10861 ;; 10862 10863 *,cl*) 10864 # Native MSVC 10865 libname_spec='$name' 10866 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10867 library_names_spec='$libname.dll.lib' 10868 10869 case $build_os in 10870 mingw*) 10871 sys_lib_search_path_spec= 10872 lt_save_ifs=$IFS 10873 IFS=';' 10874 for lt_path in $LIB 10875 do 10876 IFS=$lt_save_ifs 10877 # Let DOS variable expansion print the short 8.3 style file name. 10878 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10879 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10880 done 10881 IFS=$lt_save_ifs 10882 # Convert to MSYS style. 10883 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10884 ;; 10885 cygwin*) 10886 # Convert to unix form, then to dos form, then back to unix form 10887 # but this time dos style (no spaces!) so that the unix form looks 10888 # like /cygdrive/c/PROGRA~1:/cygdr... 10889 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10890 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10891 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10892 ;; 10893 *) 10894 sys_lib_search_path_spec=$LIB 10895 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10896 # It is most probably a Windows format PATH. 10897 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10898 else 10899 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10900 fi 10901 # FIXME: find the short name or the path components, as spaces are 10902 # common. (e.g. "Program Files" -> "PROGRA~1") 10903 ;; 10904 esac 10905 10906 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10907 postinstall_cmds='base_file=`basename \$file`~ 10908 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10909 dldir=$destdir/`dirname \$dlpath`~ 10910 test -d \$dldir || mkdir -p \$dldir~ 10911 $install_prog $dir/$dlname \$dldir/$dlname' 10912 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10913 dlpath=$dir/\$dldll~ 10914 $RM \$dlpath' 10915 shlibpath_overrides_runpath=yes 10916 dynamic_linker='Win32 link.exe' 10917 ;; 10918 10919 *) 10920 # Assume MSVC wrapper 10921 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10922 dynamic_linker='Win32 ld.exe' 10923 ;; 10924 esac 10925 # FIXME: first we should search . and the directory the executable is in 10926 shlibpath_var=PATH 10927 ;; 10928 10929darwin* | rhapsody*) 10930 dynamic_linker="$host_os dyld" 10931 version_type=darwin 10932 need_lib_prefix=no 10933 need_version=no 10934 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10935 soname_spec='$libname$release$major$shared_ext' 10936 shlibpath_overrides_runpath=yes 10937 shlibpath_var=DYLD_LIBRARY_PATH 10938 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10939 10940 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10941 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10942 ;; 10943 10944dgux*) 10945 version_type=linux # correct to gnu/linux during the next big refactor 10946 need_lib_prefix=no 10947 need_version=no 10948 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10949 soname_spec='$libname$release$shared_ext$major' 10950 shlibpath_var=LD_LIBRARY_PATH 10951 ;; 10952 10953freebsd* | dragonfly*) 10954 # DragonFly does not have aout. When/if they implement a new 10955 # versioning mechanism, adjust this. 10956 if test -x /usr/bin/objformat; then 10957 objformat=`/usr/bin/objformat` 10958 else 10959 case $host_os in 10960 freebsd[23].*) objformat=aout ;; 10961 *) objformat=elf ;; 10962 esac 10963 fi 10964 version_type=freebsd-$objformat 10965 case $version_type in 10966 freebsd-elf*) 10967 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10968 soname_spec='$libname$release$shared_ext$major' 10969 need_version=no 10970 need_lib_prefix=no 10971 ;; 10972 freebsd-*) 10973 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10974 need_version=yes 10975 ;; 10976 esac 10977 shlibpath_var=LD_LIBRARY_PATH 10978 case $host_os in 10979 freebsd2.*) 10980 shlibpath_overrides_runpath=yes 10981 ;; 10982 freebsd3.[01]* | freebsdelf3.[01]*) 10983 shlibpath_overrides_runpath=yes 10984 hardcode_into_libs=yes 10985 ;; 10986 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10987 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10988 shlibpath_overrides_runpath=no 10989 hardcode_into_libs=yes 10990 ;; 10991 *) # from 4.6 on, and DragonFly 10992 shlibpath_overrides_runpath=yes 10993 hardcode_into_libs=yes 10994 ;; 10995 esac 10996 ;; 10997 10998haiku*) 10999 version_type=linux # correct to gnu/linux during the next big refactor 11000 need_lib_prefix=no 11001 need_version=no 11002 dynamic_linker="$host_os runtime_loader" 11003 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11004 soname_spec='$libname$release$shared_ext$major' 11005 shlibpath_var=LIBRARY_PATH 11006 shlibpath_overrides_runpath=no 11007 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11008 hardcode_into_libs=yes 11009 ;; 11010 11011hpux9* | hpux10* | hpux11*) 11012 # Give a soname corresponding to the major version so that dld.sl refuses to 11013 # link against other versions. 11014 version_type=sunos 11015 need_lib_prefix=no 11016 need_version=no 11017 case $host_cpu in 11018 ia64*) 11019 shrext_cmds='.so' 11020 hardcode_into_libs=yes 11021 dynamic_linker="$host_os dld.so" 11022 shlibpath_var=LD_LIBRARY_PATH 11023 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11024 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11025 soname_spec='$libname$release$shared_ext$major' 11026 if test 32 = "$HPUX_IA64_MODE"; then 11027 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11028 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11029 else 11030 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11031 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11032 fi 11033 ;; 11034 hppa*64*) 11035 shrext_cmds='.sl' 11036 hardcode_into_libs=yes 11037 dynamic_linker="$host_os dld.sl" 11038 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11039 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11040 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11041 soname_spec='$libname$release$shared_ext$major' 11042 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11043 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11044 ;; 11045 *) 11046 shrext_cmds='.sl' 11047 dynamic_linker="$host_os dld.sl" 11048 shlibpath_var=SHLIB_PATH 11049 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11050 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11051 soname_spec='$libname$release$shared_ext$major' 11052 ;; 11053 esac 11054 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11055 postinstall_cmds='chmod 555 $lib' 11056 # or fails outright, so override atomically: 11057 install_override_mode=555 11058 ;; 11059 11060interix[3-9]*) 11061 version_type=linux # correct to gnu/linux during the next big refactor 11062 need_lib_prefix=no 11063 need_version=no 11064 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11065 soname_spec='$libname$release$shared_ext$major' 11066 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11067 shlibpath_var=LD_LIBRARY_PATH 11068 shlibpath_overrides_runpath=no 11069 hardcode_into_libs=yes 11070 ;; 11071 11072irix5* | irix6* | nonstopux*) 11073 case $host_os in 11074 nonstopux*) version_type=nonstopux ;; 11075 *) 11076 if test yes = "$lt_cv_prog_gnu_ld"; then 11077 version_type=linux # correct to gnu/linux during the next big refactor 11078 else 11079 version_type=irix 11080 fi ;; 11081 esac 11082 need_lib_prefix=no 11083 need_version=no 11084 soname_spec='$libname$release$shared_ext$major' 11085 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11086 case $host_os in 11087 irix5* | nonstopux*) 11088 libsuff= shlibsuff= 11089 ;; 11090 *) 11091 case $LD in # libtool.m4 will add one of these switches to LD 11092 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11093 libsuff= shlibsuff= libmagic=32-bit;; 11094 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11095 libsuff=32 shlibsuff=N32 libmagic=N32;; 11096 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11097 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11098 *) libsuff= shlibsuff= libmagic=never-match;; 11099 esac 11100 ;; 11101 esac 11102 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11103 shlibpath_overrides_runpath=no 11104 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11105 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11106 hardcode_into_libs=yes 11107 ;; 11108 11109# No shared lib support for Linux oldld, aout, or coff. 11110linux*oldld* | linux*aout* | linux*coff*) 11111 dynamic_linker=no 11112 ;; 11113 11114linux*android*) 11115 version_type=none # Android doesn't support versioned libraries. 11116 need_lib_prefix=no 11117 need_version=no 11118 library_names_spec='$libname$release$shared_ext' 11119 soname_spec='$libname$release$shared_ext' 11120 finish_cmds= 11121 shlibpath_var=LD_LIBRARY_PATH 11122 shlibpath_overrides_runpath=yes 11123 11124 # This implies no fast_install, which is unacceptable. 11125 # Some rework will be needed to allow for fast_install 11126 # before this can be enabled. 11127 hardcode_into_libs=yes 11128 11129 dynamic_linker='Android linker' 11130 # Don't embed -rpath directories since the linker doesn't support them. 11131 hardcode_libdir_flag_spec='-L$libdir' 11132 ;; 11133 11134# This must be glibc/ELF. 11135linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11136 version_type=linux # correct to gnu/linux during the next big refactor 11137 need_lib_prefix=no 11138 need_version=no 11139 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11140 soname_spec='$libname$release$shared_ext$major' 11141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11142 shlibpath_var=LD_LIBRARY_PATH 11143 shlibpath_overrides_runpath=no 11144 11145 # Some binutils ld are patched to set DT_RUNPATH 11146 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11147 $as_echo_n "(cached) " >&6 11148else 11149 lt_cv_shlibpath_overrides_runpath=no 11150 save_LDFLAGS=$LDFLAGS 11151 save_libdir=$libdir 11152 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11153 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11155/* end confdefs.h. */ 11156 11157int 11158main () 11159{ 11160 11161 ; 11162 return 0; 11163} 11164_ACEOF 11165if ac_fn_c_try_link "$LINENO"; then : 11166 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11167 lt_cv_shlibpath_overrides_runpath=yes 11168fi 11169fi 11170rm -f core conftest.err conftest.$ac_objext \ 11171 conftest$ac_exeext conftest.$ac_ext 11172 LDFLAGS=$save_LDFLAGS 11173 libdir=$save_libdir 11174 11175fi 11176 11177 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11178 11179 # This implies no fast_install, which is unacceptable. 11180 # Some rework will be needed to allow for fast_install 11181 # before this can be enabled. 11182 hardcode_into_libs=yes 11183 11184 # Add ABI-specific directories to the system library path. 11185 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 11186 11187 # Ideally, we could use ldconfig to report *all* directores which are 11188 # searched for libraries, however this is still not possible. Aside from not 11189 # being certain /sbin/ldconfig is available, command 11190 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11191 # even though it is searched at run-time. Try to do the best guess by 11192 # appending ld.so.conf contents (and includes) to the search path. 11193 if test -f /etc/ld.so.conf; then 11194 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' ' '` 11195 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 11196 fi 11197 11198 # We used to test for /lib/ld.so.1 and disable shared libraries on 11199 # powerpc, because MkLinux only supported shared libraries with the 11200 # GNU dynamic linker. Since this was broken with cross compilers, 11201 # most powerpc-linux boxes support dynamic linking these days and 11202 # people can always --disable-shared, the test was removed, and we 11203 # assume the GNU/Linux dynamic linker is in use. 11204 dynamic_linker='GNU/Linux ld.so' 11205 ;; 11206 11207netbsd*) 11208 version_type=sunos 11209 need_lib_prefix=no 11210 need_version=no 11211 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11212 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11213 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11214 dynamic_linker='NetBSD (a.out) ld.so' 11215 else 11216 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11217 soname_spec='$libname$release$shared_ext$major' 11218 dynamic_linker='NetBSD ld.elf_so' 11219 fi 11220 shlibpath_var=LD_LIBRARY_PATH 11221 shlibpath_overrides_runpath=yes 11222 hardcode_into_libs=yes 11223 ;; 11224 11225newsos6) 11226 version_type=linux # correct to gnu/linux during the next big refactor 11227 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11228 shlibpath_var=LD_LIBRARY_PATH 11229 shlibpath_overrides_runpath=yes 11230 ;; 11231 11232*nto* | *qnx*) 11233 version_type=qnx 11234 need_lib_prefix=no 11235 need_version=no 11236 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11237 soname_spec='$libname$release$shared_ext$major' 11238 shlibpath_var=LD_LIBRARY_PATH 11239 shlibpath_overrides_runpath=no 11240 hardcode_into_libs=yes 11241 dynamic_linker='ldqnx.so' 11242 ;; 11243 11244openbsd* | bitrig*) 11245 version_type=sunos 11246 sys_lib_dlsearch_path_spec=/usr/lib 11247 need_lib_prefix=no 11248 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11249 need_version=no 11250 else 11251 need_version=yes 11252 fi 11253 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11254 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11255 shlibpath_var=LD_LIBRARY_PATH 11256 shlibpath_overrides_runpath=yes 11257 ;; 11258 11259os2*) 11260 libname_spec='$name' 11261 version_type=windows 11262 shrext_cmds=.dll 11263 need_version=no 11264 need_lib_prefix=no 11265 # OS/2 can only load a DLL with a base name of 8 characters or less. 11266 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11267 v=$($ECHO $release$versuffix | tr -d .-); 11268 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11269 $ECHO $n$v`$shared_ext' 11270 library_names_spec='${libname}_dll.$libext' 11271 dynamic_linker='OS/2 ld.exe' 11272 shlibpath_var=BEGINLIBPATH 11273 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11274 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11275 postinstall_cmds='base_file=`basename \$file`~ 11276 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11277 dldir=$destdir/`dirname \$dlpath`~ 11278 test -d \$dldir || mkdir -p \$dldir~ 11279 $install_prog $dir/$dlname \$dldir/$dlname~ 11280 chmod a+x \$dldir/$dlname~ 11281 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11282 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11283 fi' 11284 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11285 dlpath=$dir/\$dldll~ 11286 $RM \$dlpath' 11287 ;; 11288 11289osf3* | osf4* | osf5*) 11290 version_type=osf 11291 need_lib_prefix=no 11292 need_version=no 11293 soname_spec='$libname$release$shared_ext$major' 11294 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11295 shlibpath_var=LD_LIBRARY_PATH 11296 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11297 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11298 ;; 11299 11300rdos*) 11301 dynamic_linker=no 11302 ;; 11303 11304solaris*) 11305 version_type=linux # correct to gnu/linux during the next big refactor 11306 need_lib_prefix=no 11307 need_version=no 11308 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11309 soname_spec='$libname$release$shared_ext$major' 11310 shlibpath_var=LD_LIBRARY_PATH 11311 shlibpath_overrides_runpath=yes 11312 hardcode_into_libs=yes 11313 # ldd complains unless libraries are executable 11314 postinstall_cmds='chmod +x $lib' 11315 ;; 11316 11317sunos4*) 11318 version_type=sunos 11319 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11320 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11321 shlibpath_var=LD_LIBRARY_PATH 11322 shlibpath_overrides_runpath=yes 11323 if test yes = "$with_gnu_ld"; then 11324 need_lib_prefix=no 11325 fi 11326 need_version=yes 11327 ;; 11328 11329sysv4 | sysv4.3*) 11330 version_type=linux # correct to gnu/linux during the next big refactor 11331 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11332 soname_spec='$libname$release$shared_ext$major' 11333 shlibpath_var=LD_LIBRARY_PATH 11334 case $host_vendor in 11335 sni) 11336 shlibpath_overrides_runpath=no 11337 need_lib_prefix=no 11338 runpath_var=LD_RUN_PATH 11339 ;; 11340 siemens) 11341 need_lib_prefix=no 11342 ;; 11343 motorola) 11344 need_lib_prefix=no 11345 need_version=no 11346 shlibpath_overrides_runpath=no 11347 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11348 ;; 11349 esac 11350 ;; 11351 11352sysv4*MP*) 11353 if test -d /usr/nec; then 11354 version_type=linux # correct to gnu/linux during the next big refactor 11355 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11356 soname_spec='$libname$shared_ext.$major' 11357 shlibpath_var=LD_LIBRARY_PATH 11358 fi 11359 ;; 11360 11361sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11362 version_type=sco 11363 need_lib_prefix=no 11364 need_version=no 11365 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11366 soname_spec='$libname$release$shared_ext$major' 11367 shlibpath_var=LD_LIBRARY_PATH 11368 shlibpath_overrides_runpath=yes 11369 hardcode_into_libs=yes 11370 if test yes = "$with_gnu_ld"; then 11371 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11372 else 11373 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11374 case $host_os in 11375 sco3.2v5*) 11376 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11377 ;; 11378 esac 11379 fi 11380 sys_lib_dlsearch_path_spec='/usr/lib' 11381 ;; 11382 11383tpf*) 11384 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11385 version_type=linux # correct to gnu/linux during the next big refactor 11386 need_lib_prefix=no 11387 need_version=no 11388 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11389 shlibpath_var=LD_LIBRARY_PATH 11390 shlibpath_overrides_runpath=no 11391 hardcode_into_libs=yes 11392 ;; 11393 11394uts4*) 11395 version_type=linux # correct to gnu/linux during the next big refactor 11396 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11397 soname_spec='$libname$release$shared_ext$major' 11398 shlibpath_var=LD_LIBRARY_PATH 11399 ;; 11400 11401*) 11402 dynamic_linker=no 11403 ;; 11404esac 11405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11406$as_echo "$dynamic_linker" >&6; } 11407test no = "$dynamic_linker" && can_build_shared=no 11408 11409variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11410if test yes = "$GCC"; then 11411 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11412fi 11413 11414if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11415 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11416fi 11417 11418if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11419 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11420fi 11421 11422# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11423configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11424 11425# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11426func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11427 11428# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11429configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11528$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11529hardcode_action= 11530if test -n "$hardcode_libdir_flag_spec" || 11531 test -n "$runpath_var" || 11532 test yes = "$hardcode_automatic"; then 11533 11534 # We can hardcode non-existent directories. 11535 if test no != "$hardcode_direct" && 11536 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11537 # have to relink, otherwise we might link with an installed library 11538 # when we should be linking with a yet-to-be-installed one 11539 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11540 test no != "$hardcode_minus_L"; then 11541 # Linking always hardcodes the temporary library directory. 11542 hardcode_action=relink 11543 else 11544 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11545 hardcode_action=immediate 11546 fi 11547else 11548 # We cannot hardcode anything, or else we can only hardcode existing 11549 # directories. 11550 hardcode_action=unsupported 11551fi 11552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11553$as_echo "$hardcode_action" >&6; } 11554 11555if test relink = "$hardcode_action" || 11556 test yes = "$inherit_rpath"; then 11557 # Fast installation is not supported 11558 enable_fast_install=no 11559elif test yes = "$shlibpath_overrides_runpath" || 11560 test no = "$enable_shared"; then 11561 # Fast installation is not necessary 11562 enable_fast_install=needless 11563fi 11564 11565 11566 11567 11568 11569 11570 if test yes != "$enable_dlopen"; then 11571 enable_dlopen=unknown 11572 enable_dlopen_self=unknown 11573 enable_dlopen_self_static=unknown 11574else 11575 lt_cv_dlopen=no 11576 lt_cv_dlopen_libs= 11577 11578 case $host_os in 11579 beos*) 11580 lt_cv_dlopen=load_add_on 11581 lt_cv_dlopen_libs= 11582 lt_cv_dlopen_self=yes 11583 ;; 11584 11585 mingw* | pw32* | cegcc*) 11586 lt_cv_dlopen=LoadLibrary 11587 lt_cv_dlopen_libs= 11588 ;; 11589 11590 cygwin*) 11591 lt_cv_dlopen=dlopen 11592 lt_cv_dlopen_libs= 11593 ;; 11594 11595 darwin*) 11596 # if libdl is installed we need to link against it 11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11598$as_echo_n "checking for dlopen in -ldl... " >&6; } 11599if ${ac_cv_lib_dl_dlopen+:} false; then : 11600 $as_echo_n "(cached) " >&6 11601else 11602 ac_check_lib_save_LIBS=$LIBS 11603LIBS="-ldl $LIBS" 11604cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11605/* end confdefs.h. */ 11606 11607/* Override any GCC internal prototype to avoid an error. 11608 Use char because int might match the return type of a GCC 11609 builtin and then its argument prototype would still apply. */ 11610#ifdef __cplusplus 11611extern "C" 11612#endif 11613char dlopen (); 11614int 11615main () 11616{ 11617return dlopen (); 11618 ; 11619 return 0; 11620} 11621_ACEOF 11622if ac_fn_c_try_link "$LINENO"; then : 11623 ac_cv_lib_dl_dlopen=yes 11624else 11625 ac_cv_lib_dl_dlopen=no 11626fi 11627rm -f core conftest.err conftest.$ac_objext \ 11628 conftest$ac_exeext conftest.$ac_ext 11629LIBS=$ac_check_lib_save_LIBS 11630fi 11631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11632$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11633if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11634 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11635else 11636 11637 lt_cv_dlopen=dyld 11638 lt_cv_dlopen_libs= 11639 lt_cv_dlopen_self=yes 11640 11641fi 11642 11643 ;; 11644 11645 tpf*) 11646 # Don't try to run any link tests for TPF. We know it's impossible 11647 # because TPF is a cross-compiler, and we know how we open DSOs. 11648 lt_cv_dlopen=dlopen 11649 lt_cv_dlopen_libs= 11650 lt_cv_dlopen_self=no 11651 ;; 11652 11653 *) 11654 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11655if test "x$ac_cv_func_shl_load" = xyes; then : 11656 lt_cv_dlopen=shl_load 11657else 11658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11659$as_echo_n "checking for shl_load in -ldld... " >&6; } 11660if ${ac_cv_lib_dld_shl_load+:} false; then : 11661 $as_echo_n "(cached) " >&6 11662else 11663 ac_check_lib_save_LIBS=$LIBS 11664LIBS="-ldld $LIBS" 11665cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11666/* end confdefs.h. */ 11667 11668/* Override any GCC internal prototype to avoid an error. 11669 Use char because int might match the return type of a GCC 11670 builtin and then its argument prototype would still apply. */ 11671#ifdef __cplusplus 11672extern "C" 11673#endif 11674char shl_load (); 11675int 11676main () 11677{ 11678return shl_load (); 11679 ; 11680 return 0; 11681} 11682_ACEOF 11683if ac_fn_c_try_link "$LINENO"; then : 11684 ac_cv_lib_dld_shl_load=yes 11685else 11686 ac_cv_lib_dld_shl_load=no 11687fi 11688rm -f core conftest.err conftest.$ac_objext \ 11689 conftest$ac_exeext conftest.$ac_ext 11690LIBS=$ac_check_lib_save_LIBS 11691fi 11692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11693$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11694if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11695 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11696else 11697 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11698if test "x$ac_cv_func_dlopen" = xyes; then : 11699 lt_cv_dlopen=dlopen 11700else 11701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11702$as_echo_n "checking for dlopen in -ldl... " >&6; } 11703if ${ac_cv_lib_dl_dlopen+:} false; then : 11704 $as_echo_n "(cached) " >&6 11705else 11706 ac_check_lib_save_LIBS=$LIBS 11707LIBS="-ldl $LIBS" 11708cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11709/* end confdefs.h. */ 11710 11711/* Override any GCC internal prototype to avoid an error. 11712 Use char because int might match the return type of a GCC 11713 builtin and then its argument prototype would still apply. */ 11714#ifdef __cplusplus 11715extern "C" 11716#endif 11717char dlopen (); 11718int 11719main () 11720{ 11721return dlopen (); 11722 ; 11723 return 0; 11724} 11725_ACEOF 11726if ac_fn_c_try_link "$LINENO"; then : 11727 ac_cv_lib_dl_dlopen=yes 11728else 11729 ac_cv_lib_dl_dlopen=no 11730fi 11731rm -f core conftest.err conftest.$ac_objext \ 11732 conftest$ac_exeext conftest.$ac_ext 11733LIBS=$ac_check_lib_save_LIBS 11734fi 11735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11736$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11737if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11738 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11739else 11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11741$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11742if ${ac_cv_lib_svld_dlopen+:} false; then : 11743 $as_echo_n "(cached) " >&6 11744else 11745 ac_check_lib_save_LIBS=$LIBS 11746LIBS="-lsvld $LIBS" 11747cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11748/* end confdefs.h. */ 11749 11750/* Override any GCC internal prototype to avoid an error. 11751 Use char because int might match the return type of a GCC 11752 builtin and then its argument prototype would still apply. */ 11753#ifdef __cplusplus 11754extern "C" 11755#endif 11756char dlopen (); 11757int 11758main () 11759{ 11760return dlopen (); 11761 ; 11762 return 0; 11763} 11764_ACEOF 11765if ac_fn_c_try_link "$LINENO"; then : 11766 ac_cv_lib_svld_dlopen=yes 11767else 11768 ac_cv_lib_svld_dlopen=no 11769fi 11770rm -f core conftest.err conftest.$ac_objext \ 11771 conftest$ac_exeext conftest.$ac_ext 11772LIBS=$ac_check_lib_save_LIBS 11773fi 11774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11775$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11776if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11777 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11778else 11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11780$as_echo_n "checking for dld_link in -ldld... " >&6; } 11781if ${ac_cv_lib_dld_dld_link+:} false; then : 11782 $as_echo_n "(cached) " >&6 11783else 11784 ac_check_lib_save_LIBS=$LIBS 11785LIBS="-ldld $LIBS" 11786cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11787/* end confdefs.h. */ 11788 11789/* Override any GCC internal prototype to avoid an error. 11790 Use char because int might match the return type of a GCC 11791 builtin and then its argument prototype would still apply. */ 11792#ifdef __cplusplus 11793extern "C" 11794#endif 11795char dld_link (); 11796int 11797main () 11798{ 11799return dld_link (); 11800 ; 11801 return 0; 11802} 11803_ACEOF 11804if ac_fn_c_try_link "$LINENO"; then : 11805 ac_cv_lib_dld_dld_link=yes 11806else 11807 ac_cv_lib_dld_dld_link=no 11808fi 11809rm -f core conftest.err conftest.$ac_objext \ 11810 conftest$ac_exeext conftest.$ac_ext 11811LIBS=$ac_check_lib_save_LIBS 11812fi 11813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11814$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11815if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11816 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11817fi 11818 11819 11820fi 11821 11822 11823fi 11824 11825 11826fi 11827 11828 11829fi 11830 11831 11832fi 11833 11834 ;; 11835 esac 11836 11837 if test no = "$lt_cv_dlopen"; then 11838 enable_dlopen=no 11839 else 11840 enable_dlopen=yes 11841 fi 11842 11843 case $lt_cv_dlopen in 11844 dlopen) 11845 save_CPPFLAGS=$CPPFLAGS 11846 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11847 11848 save_LDFLAGS=$LDFLAGS 11849 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11850 11851 save_LIBS=$LIBS 11852 LIBS="$lt_cv_dlopen_libs $LIBS" 11853 11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11855$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11856if ${lt_cv_dlopen_self+:} false; then : 11857 $as_echo_n "(cached) " >&6 11858else 11859 if test yes = "$cross_compiling"; then : 11860 lt_cv_dlopen_self=cross 11861else 11862 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11863 lt_status=$lt_dlunknown 11864 cat > conftest.$ac_ext <<_LT_EOF 11865#line $LINENO "configure" 11866#include "confdefs.h" 11867 11868#if HAVE_DLFCN_H 11869#include <dlfcn.h> 11870#endif 11871 11872#include <stdio.h> 11873 11874#ifdef RTLD_GLOBAL 11875# define LT_DLGLOBAL RTLD_GLOBAL 11876#else 11877# ifdef DL_GLOBAL 11878# define LT_DLGLOBAL DL_GLOBAL 11879# else 11880# define LT_DLGLOBAL 0 11881# endif 11882#endif 11883 11884/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11885 find out it does not work in some platform. */ 11886#ifndef LT_DLLAZY_OR_NOW 11887# ifdef RTLD_LAZY 11888# define LT_DLLAZY_OR_NOW RTLD_LAZY 11889# else 11890# ifdef DL_LAZY 11891# define LT_DLLAZY_OR_NOW DL_LAZY 11892# else 11893# ifdef RTLD_NOW 11894# define LT_DLLAZY_OR_NOW RTLD_NOW 11895# else 11896# ifdef DL_NOW 11897# define LT_DLLAZY_OR_NOW DL_NOW 11898# else 11899# define LT_DLLAZY_OR_NOW 0 11900# endif 11901# endif 11902# endif 11903# endif 11904#endif 11905 11906/* When -fvisibility=hidden is used, assume the code has been annotated 11907 correspondingly for the symbols needed. */ 11908#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11909int fnord () __attribute__((visibility("default"))); 11910#endif 11911 11912int fnord () { return 42; } 11913int main () 11914{ 11915 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11916 int status = $lt_dlunknown; 11917 11918 if (self) 11919 { 11920 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11921 else 11922 { 11923 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11924 else puts (dlerror ()); 11925 } 11926 /* dlclose (self); */ 11927 } 11928 else 11929 puts (dlerror ()); 11930 11931 return status; 11932} 11933_LT_EOF 11934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11935 (eval $ac_link) 2>&5 11936 ac_status=$? 11937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11938 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11939 (./conftest; exit; ) >&5 2>/dev/null 11940 lt_status=$? 11941 case x$lt_status in 11942 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11943 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11944 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11945 esac 11946 else : 11947 # compilation failed 11948 lt_cv_dlopen_self=no 11949 fi 11950fi 11951rm -fr conftest* 11952 11953 11954fi 11955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11956$as_echo "$lt_cv_dlopen_self" >&6; } 11957 11958 if test yes = "$lt_cv_dlopen_self"; then 11959 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11961$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11962if ${lt_cv_dlopen_self_static+:} false; then : 11963 $as_echo_n "(cached) " >&6 11964else 11965 if test yes = "$cross_compiling"; then : 11966 lt_cv_dlopen_self_static=cross 11967else 11968 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11969 lt_status=$lt_dlunknown 11970 cat > conftest.$ac_ext <<_LT_EOF 11971#line $LINENO "configure" 11972#include "confdefs.h" 11973 11974#if HAVE_DLFCN_H 11975#include <dlfcn.h> 11976#endif 11977 11978#include <stdio.h> 11979 11980#ifdef RTLD_GLOBAL 11981# define LT_DLGLOBAL RTLD_GLOBAL 11982#else 11983# ifdef DL_GLOBAL 11984# define LT_DLGLOBAL DL_GLOBAL 11985# else 11986# define LT_DLGLOBAL 0 11987# endif 11988#endif 11989 11990/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11991 find out it does not work in some platform. */ 11992#ifndef LT_DLLAZY_OR_NOW 11993# ifdef RTLD_LAZY 11994# define LT_DLLAZY_OR_NOW RTLD_LAZY 11995# else 11996# ifdef DL_LAZY 11997# define LT_DLLAZY_OR_NOW DL_LAZY 11998# else 11999# ifdef RTLD_NOW 12000# define LT_DLLAZY_OR_NOW RTLD_NOW 12001# else 12002# ifdef DL_NOW 12003# define LT_DLLAZY_OR_NOW DL_NOW 12004# else 12005# define LT_DLLAZY_OR_NOW 0 12006# endif 12007# endif 12008# endif 12009# endif 12010#endif 12011 12012/* When -fvisibility=hidden is used, assume the code has been annotated 12013 correspondingly for the symbols needed. */ 12014#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12015int fnord () __attribute__((visibility("default"))); 12016#endif 12017 12018int fnord () { return 42; } 12019int main () 12020{ 12021 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12022 int status = $lt_dlunknown; 12023 12024 if (self) 12025 { 12026 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12027 else 12028 { 12029 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12030 else puts (dlerror ()); 12031 } 12032 /* dlclose (self); */ 12033 } 12034 else 12035 puts (dlerror ()); 12036 12037 return status; 12038} 12039_LT_EOF 12040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12041 (eval $ac_link) 2>&5 12042 ac_status=$? 12043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12044 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12045 (./conftest; exit; ) >&5 2>/dev/null 12046 lt_status=$? 12047 case x$lt_status in 12048 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12049 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12050 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12051 esac 12052 else : 12053 # compilation failed 12054 lt_cv_dlopen_self_static=no 12055 fi 12056fi 12057rm -fr conftest* 12058 12059 12060fi 12061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12062$as_echo "$lt_cv_dlopen_self_static" >&6; } 12063 fi 12064 12065 CPPFLAGS=$save_CPPFLAGS 12066 LDFLAGS=$save_LDFLAGS 12067 LIBS=$save_LIBS 12068 ;; 12069 esac 12070 12071 case $lt_cv_dlopen_self in 12072 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12073 *) enable_dlopen_self=unknown ;; 12074 esac 12075 12076 case $lt_cv_dlopen_self_static in 12077 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12078 *) enable_dlopen_self_static=unknown ;; 12079 esac 12080fi 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098striplib= 12099old_striplib= 12100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12101$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12102if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12103 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12104 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12106$as_echo "yes" >&6; } 12107else 12108# FIXME - insert some real tests, host_os isn't really good enough 12109 case $host_os in 12110 darwin*) 12111 if test -n "$STRIP"; then 12112 striplib="$STRIP -x" 12113 old_striplib="$STRIP -S" 12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12115$as_echo "yes" >&6; } 12116 else 12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12118$as_echo "no" >&6; } 12119 fi 12120 ;; 12121 *) 12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12123$as_echo "no" >&6; } 12124 ;; 12125 esac 12126fi 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 # Report what library types will actually be built 12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12141$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12143$as_echo "$can_build_shared" >&6; } 12144 12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12146$as_echo_n "checking whether to build shared libraries... " >&6; } 12147 test no = "$can_build_shared" && enable_shared=no 12148 12149 # On AIX, shared libraries and static libraries use the same namespace, and 12150 # are all built from PIC. 12151 case $host_os in 12152 aix3*) 12153 test yes = "$enable_shared" && enable_static=no 12154 if test -n "$RANLIB"; then 12155 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12156 postinstall_cmds='$RANLIB $lib' 12157 fi 12158 ;; 12159 12160 aix[4-9]*) 12161 if test ia64 != "$host_cpu"; then 12162 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12163 yes,aix,yes) ;; # shared object as lib.so file only 12164 yes,svr4,*) ;; # shared object as lib.so archive member only 12165 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12166 esac 12167 fi 12168 ;; 12169 esac 12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12171$as_echo "$enable_shared" >&6; } 12172 12173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12174$as_echo_n "checking whether to build static libraries... " >&6; } 12175 # Make sure either enable_shared or enable_static is yes. 12176 test yes = "$enable_shared" || enable_static=yes 12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12178$as_echo "$enable_static" >&6; } 12179 12180 12181 12182 12183fi 12184ac_ext=c 12185ac_cpp='$CPP $CPPFLAGS' 12186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12188ac_compiler_gnu=$ac_cv_c_compiler_gnu 12189 12190CC=$lt_save_CC 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 ac_config_commands="$ac_config_commands libtool" 12207 12208 12209 12210 12211# Only expand once: 12212 12213 12214 12215if test "$GCC" = "yes" 12216then 12217 CFLAGS="$CFLAGS -Wall" 12218fi 12219 12220CFLAGS="-I.. -I${srcdir}/.. $CFLAGS" 12221 12222 12223 12224for ac_header in unistd.h stdint.h 12225do : 12226 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12227ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12228if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12229 cat >>confdefs.h <<_ACEOF 12230#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12231_ACEOF 12232 12233fi 12234 12235done 12236 12237 12238ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" 12239if test "x$ac_cv_type_int64_t" = xyes; then : 12240 : 12241else 12242 12243 12244cat >>confdefs.h <<_ACEOF 12245#define int64_t long long 12246_ACEOF 12247 12248 12249fi 12250 12251 12252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 12253$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 12254if ${ac_cv_type_uid_t+:} false; then : 12255 $as_echo_n "(cached) " >&6 12256else 12257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12258/* end confdefs.h. */ 12259#include <sys/types.h> 12260 12261_ACEOF 12262if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12263 $EGREP "uid_t" >/dev/null 2>&1; then : 12264 ac_cv_type_uid_t=yes 12265else 12266 ac_cv_type_uid_t=no 12267fi 12268rm -f conftest* 12269 12270fi 12271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 12272$as_echo "$ac_cv_type_uid_t" >&6; } 12273if test $ac_cv_type_uid_t = no; then 12274 12275$as_echo "#define uid_t int" >>confdefs.h 12276 12277 12278$as_echo "#define gid_t int" >>confdefs.h 12279 12280fi 12281 12282ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 12283if test "x$ac_cv_type_pid_t" = xyes; then : 12284 12285else 12286 12287cat >>confdefs.h <<_ACEOF 12288#define pid_t int 12289_ACEOF 12290 12291fi 12292 12293# Check whether --enable-largefile was given. 12294if test "${enable_largefile+set}" = set; then : 12295 enableval=$enable_largefile; 12296fi 12297 12298if test "$enable_largefile" != no; then 12299 12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 12301$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 12302if ${ac_cv_sys_largefile_CC+:} false; then : 12303 $as_echo_n "(cached) " >&6 12304else 12305 ac_cv_sys_largefile_CC=no 12306 if test "$GCC" != yes; then 12307 ac_save_CC=$CC 12308 while :; do 12309 # IRIX 6.2 and later do not support large files by default, 12310 # so use the C compiler's -n32 option if that helps. 12311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12312/* end confdefs.h. */ 12313#include <sys/types.h> 12314 /* Check that off_t can represent 2**63 - 1 correctly. 12315 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12316 since some C++ compilers masquerading as C compilers 12317 incorrectly reject 9223372036854775807. */ 12318#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12319 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12320 && LARGE_OFF_T % 2147483647 == 1) 12321 ? 1 : -1]; 12322int 12323main () 12324{ 12325 12326 ; 12327 return 0; 12328} 12329_ACEOF 12330 if ac_fn_c_try_compile "$LINENO"; then : 12331 break 12332fi 12333rm -f core conftest.err conftest.$ac_objext 12334 CC="$CC -n32" 12335 if ac_fn_c_try_compile "$LINENO"; then : 12336 ac_cv_sys_largefile_CC=' -n32'; break 12337fi 12338rm -f core conftest.err conftest.$ac_objext 12339 break 12340 done 12341 CC=$ac_save_CC 12342 rm -f conftest.$ac_ext 12343 fi 12344fi 12345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 12346$as_echo "$ac_cv_sys_largefile_CC" >&6; } 12347 if test "$ac_cv_sys_largefile_CC" != no; then 12348 CC=$CC$ac_cv_sys_largefile_CC 12349 fi 12350 12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 12352$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 12353if ${ac_cv_sys_file_offset_bits+:} false; then : 12354 $as_echo_n "(cached) " >&6 12355else 12356 while :; do 12357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12358/* end confdefs.h. */ 12359#include <sys/types.h> 12360 /* Check that off_t can represent 2**63 - 1 correctly. 12361 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12362 since some C++ compilers masquerading as C compilers 12363 incorrectly reject 9223372036854775807. */ 12364#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12365 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12366 && LARGE_OFF_T % 2147483647 == 1) 12367 ? 1 : -1]; 12368int 12369main () 12370{ 12371 12372 ; 12373 return 0; 12374} 12375_ACEOF 12376if ac_fn_c_try_compile "$LINENO"; then : 12377 ac_cv_sys_file_offset_bits=no; break 12378fi 12379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12381/* end confdefs.h. */ 12382#define _FILE_OFFSET_BITS 64 12383#include <sys/types.h> 12384 /* Check that off_t can represent 2**63 - 1 correctly. 12385 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12386 since some C++ compilers masquerading as C compilers 12387 incorrectly reject 9223372036854775807. */ 12388#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12389 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12390 && LARGE_OFF_T % 2147483647 == 1) 12391 ? 1 : -1]; 12392int 12393main () 12394{ 12395 12396 ; 12397 return 0; 12398} 12399_ACEOF 12400if ac_fn_c_try_compile "$LINENO"; then : 12401 ac_cv_sys_file_offset_bits=64; break 12402fi 12403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12404 ac_cv_sys_file_offset_bits=unknown 12405 break 12406done 12407fi 12408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 12409$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 12410case $ac_cv_sys_file_offset_bits in #( 12411 no | unknown) ;; 12412 *) 12413cat >>confdefs.h <<_ACEOF 12414#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 12415_ACEOF 12416;; 12417esac 12418rm -rf conftest* 12419 if test $ac_cv_sys_file_offset_bits = unknown; then 12420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 12421$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 12422if ${ac_cv_sys_large_files+:} false; then : 12423 $as_echo_n "(cached) " >&6 12424else 12425 while :; do 12426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12427/* end confdefs.h. */ 12428#include <sys/types.h> 12429 /* Check that off_t can represent 2**63 - 1 correctly. 12430 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12431 since some C++ compilers masquerading as C compilers 12432 incorrectly reject 9223372036854775807. */ 12433#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12434 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12435 && LARGE_OFF_T % 2147483647 == 1) 12436 ? 1 : -1]; 12437int 12438main () 12439{ 12440 12441 ; 12442 return 0; 12443} 12444_ACEOF 12445if ac_fn_c_try_compile "$LINENO"; then : 12446 ac_cv_sys_large_files=no; break 12447fi 12448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12450/* end confdefs.h. */ 12451#define _LARGE_FILES 1 12452#include <sys/types.h> 12453 /* Check that off_t can represent 2**63 - 1 correctly. 12454 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12455 since some C++ compilers masquerading as C compilers 12456 incorrectly reject 9223372036854775807. */ 12457#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12458 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12459 && LARGE_OFF_T % 2147483647 == 1) 12460 ? 1 : -1]; 12461int 12462main () 12463{ 12464 12465 ; 12466 return 0; 12467} 12468_ACEOF 12469if ac_fn_c_try_compile "$LINENO"; then : 12470 ac_cv_sys_large_files=1; break 12471fi 12472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12473 ac_cv_sys_large_files=unknown 12474 break 12475done 12476fi 12477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 12478$as_echo "$ac_cv_sys_large_files" >&6; } 12479case $ac_cv_sys_large_files in #( 12480 no | unknown) ;; 12481 *) 12482cat >>confdefs.h <<_ACEOF 12483#define _LARGE_FILES $ac_cv_sys_large_files 12484_ACEOF 12485;; 12486esac 12487rm -rf conftest* 12488 fi 12489 12490 12491fi 12492 12493 12494 12495for ac_func in setgroups initgroups 12496do : 12497 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12498ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12499if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12500 cat >>confdefs.h <<_ACEOF 12501#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12502_ACEOF 12503 12504fi 12505done 12506 12507ac_config_files="$ac_config_files Makefile" 12508 12509cat >confcache <<\_ACEOF 12510# This file is a shell script that caches the results of configure 12511# tests run on this system so they can be shared between configure 12512# scripts and configure runs, see configure's option --config-cache. 12513# It is not useful on other systems. If it contains results you don't 12514# want to keep, you may remove or edit it. 12515# 12516# config.status only pays attention to the cache file if you give it 12517# the --recheck option to rerun configure. 12518# 12519# `ac_cv_env_foo' variables (set or unset) will be overridden when 12520# loading this file, other *unset* `ac_cv_foo' will be assigned the 12521# following values. 12522 12523_ACEOF 12524 12525# The following way of writing the cache mishandles newlines in values, 12526# but we know of no workaround that is simple, portable, and efficient. 12527# So, we kill variables containing newlines. 12528# Ultrix sh set writes to stderr and can't be redirected directly, 12529# and sets the high bit in the cache file unless we assign to the vars. 12530( 12531 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12532 eval ac_val=\$$ac_var 12533 case $ac_val in #( 12534 *${as_nl}*) 12535 case $ac_var in #( 12536 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12537$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12538 esac 12539 case $ac_var in #( 12540 _ | IFS | as_nl) ;; #( 12541 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12542 *) { eval $ac_var=; unset $ac_var;} ;; 12543 esac ;; 12544 esac 12545 done 12546 12547 (set) 2>&1 | 12548 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12549 *${as_nl}ac_space=\ *) 12550 # `set' does not quote correctly, so add quotes: double-quote 12551 # substitution turns \\\\ into \\, and sed turns \\ into \. 12552 sed -n \ 12553 "s/'/'\\\\''/g; 12554 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12555 ;; #( 12556 *) 12557 # `set' quotes correctly as required by POSIX, so do not add quotes. 12558 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12559 ;; 12560 esac | 12561 sort 12562) | 12563 sed ' 12564 /^ac_cv_env_/b end 12565 t clear 12566 :clear 12567 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12568 t end 12569 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12570 :end' >>confcache 12571if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12572 if test -w "$cache_file"; then 12573 if test "x$cache_file" != "x/dev/null"; then 12574 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12575$as_echo "$as_me: updating cache $cache_file" >&6;} 12576 if test ! -f "$cache_file" || test -h "$cache_file"; then 12577 cat confcache >"$cache_file" 12578 else 12579 case $cache_file in #( 12580 */* | ?:*) 12581 mv -f confcache "$cache_file"$$ && 12582 mv -f "$cache_file"$$ "$cache_file" ;; #( 12583 *) 12584 mv -f confcache "$cache_file" ;; 12585 esac 12586 fi 12587 fi 12588 else 12589 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12590$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12591 fi 12592fi 12593rm -f confcache 12594 12595test "x$prefix" = xNONE && prefix=$ac_default_prefix 12596# Let make expand exec_prefix. 12597test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12598 12599DEFS=-DHAVE_CONFIG_H 12600 12601ac_libobjs= 12602ac_ltlibobjs= 12603U= 12604for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12605 # 1. Remove the extension, and $U if already installed. 12606 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12607 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12608 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12609 # will be set to the directory where LIBOBJS objects are built. 12610 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12611 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12612done 12613LIBOBJS=$ac_libobjs 12614 12615LTLIBOBJS=$ac_ltlibobjs 12616 12617 12618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12619$as_echo_n "checking that generated files are newer than configure... " >&6; } 12620 if test -n "$am_sleep_pid"; then 12621 # Hide warnings about reused PIDs. 12622 wait $am_sleep_pid 2>/dev/null 12623 fi 12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 12625$as_echo "done" >&6; } 12626 if test -n "$EXEEXT"; then 12627 am__EXEEXT_TRUE= 12628 am__EXEEXT_FALSE='#' 12629else 12630 am__EXEEXT_TRUE='#' 12631 am__EXEEXT_FALSE= 12632fi 12633 12634if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12635 as_fn_error $? "conditional \"AMDEP\" was never defined. 12636Usually this means the macro was only invoked conditionally." "$LINENO" 5 12637fi 12638if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12639 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12640Usually this means the macro was only invoked conditionally." "$LINENO" 5 12641fi 12642 12643: "${CONFIG_STATUS=./config.status}" 12644ac_write_fail=0 12645ac_clean_files_save=$ac_clean_files 12646ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12647{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12648$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12649as_write_fail=0 12650cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12651#! $SHELL 12652# Generated by $as_me. 12653# Run this file to recreate the current configuration. 12654# Compiler output produced by configure, useful for debugging 12655# configure, is in config.log if it exists. 12656 12657debug=false 12658ac_cs_recheck=false 12659ac_cs_silent=false 12660 12661SHELL=\${CONFIG_SHELL-$SHELL} 12662export SHELL 12663_ASEOF 12664cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12665## -------------------- ## 12666## M4sh Initialization. ## 12667## -------------------- ## 12668 12669# Be more Bourne compatible 12670DUALCASE=1; export DUALCASE # for MKS sh 12671if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12672 emulate sh 12673 NULLCMD=: 12674 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12675 # is contrary to our usage. Disable this feature. 12676 alias -g '${1+"$@"}'='"$@"' 12677 setopt NO_GLOB_SUBST 12678else 12679 case `(set -o) 2>/dev/null` in #( 12680 *posix*) : 12681 set -o posix ;; #( 12682 *) : 12683 ;; 12684esac 12685fi 12686 12687 12688as_nl=' 12689' 12690export as_nl 12691# Printing a long string crashes Solaris 7 /usr/bin/printf. 12692as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12693as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12694as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12695# Prefer a ksh shell builtin over an external printf program on Solaris, 12696# but without wasting forks for bash or zsh. 12697if test -z "$BASH_VERSION$ZSH_VERSION" \ 12698 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12699 as_echo='print -r --' 12700 as_echo_n='print -rn --' 12701elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12702 as_echo='printf %s\n' 12703 as_echo_n='printf %s' 12704else 12705 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12706 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12707 as_echo_n='/usr/ucb/echo -n' 12708 else 12709 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12710 as_echo_n_body='eval 12711 arg=$1; 12712 case $arg in #( 12713 *"$as_nl"*) 12714 expr "X$arg" : "X\\(.*\\)$as_nl"; 12715 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12716 esac; 12717 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12718 ' 12719 export as_echo_n_body 12720 as_echo_n='sh -c $as_echo_n_body as_echo' 12721 fi 12722 export as_echo_body 12723 as_echo='sh -c $as_echo_body as_echo' 12724fi 12725 12726# The user is always right. 12727if test "${PATH_SEPARATOR+set}" != set; then 12728 PATH_SEPARATOR=: 12729 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12730 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12731 PATH_SEPARATOR=';' 12732 } 12733fi 12734 12735 12736# IFS 12737# We need space, tab and new line, in precisely that order. Quoting is 12738# there to prevent editors from complaining about space-tab. 12739# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12740# splitting by setting IFS to empty value.) 12741IFS=" "" $as_nl" 12742 12743# Find who we are. Look in the path if we contain no directory separator. 12744as_myself= 12745case $0 in #(( 12746 *[\\/]* ) as_myself=$0 ;; 12747 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12748for as_dir in $PATH 12749do 12750 IFS=$as_save_IFS 12751 test -z "$as_dir" && as_dir=. 12752 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12753 done 12754IFS=$as_save_IFS 12755 12756 ;; 12757esac 12758# We did not find ourselves, most probably we were run as `sh COMMAND' 12759# in which case we are not to be found in the path. 12760if test "x$as_myself" = x; then 12761 as_myself=$0 12762fi 12763if test ! -f "$as_myself"; then 12764 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12765 exit 1 12766fi 12767 12768# Unset variables that we do not need and which cause bugs (e.g. in 12769# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12770# suppresses any "Segmentation fault" message there. '((' could 12771# trigger a bug in pdksh 5.2.14. 12772for as_var in BASH_ENV ENV MAIL MAILPATH 12773do eval test x\${$as_var+set} = xset \ 12774 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12775done 12776PS1='$ ' 12777PS2='> ' 12778PS4='+ ' 12779 12780# NLS nuisances. 12781LC_ALL=C 12782export LC_ALL 12783LANGUAGE=C 12784export LANGUAGE 12785 12786# CDPATH. 12787(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12788 12789 12790# as_fn_error STATUS ERROR [LINENO LOG_FD] 12791# ---------------------------------------- 12792# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12793# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12794# script with STATUS, using 1 if that was 0. 12795as_fn_error () 12796{ 12797 as_status=$1; test $as_status -eq 0 && as_status=1 12798 if test "$4"; then 12799 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12800 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12801 fi 12802 $as_echo "$as_me: error: $2" >&2 12803 as_fn_exit $as_status 12804} # as_fn_error 12805 12806 12807# as_fn_set_status STATUS 12808# ----------------------- 12809# Set $? to STATUS, without forking. 12810as_fn_set_status () 12811{ 12812 return $1 12813} # as_fn_set_status 12814 12815# as_fn_exit STATUS 12816# ----------------- 12817# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12818as_fn_exit () 12819{ 12820 set +e 12821 as_fn_set_status $1 12822 exit $1 12823} # as_fn_exit 12824 12825# as_fn_unset VAR 12826# --------------- 12827# Portably unset VAR. 12828as_fn_unset () 12829{ 12830 { eval $1=; unset $1;} 12831} 12832as_unset=as_fn_unset 12833# as_fn_append VAR VALUE 12834# ---------------------- 12835# Append the text in VALUE to the end of the definition contained in VAR. Take 12836# advantage of any shell optimizations that allow amortized linear growth over 12837# repeated appends, instead of the typical quadratic growth present in naive 12838# implementations. 12839if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12840 eval 'as_fn_append () 12841 { 12842 eval $1+=\$2 12843 }' 12844else 12845 as_fn_append () 12846 { 12847 eval $1=\$$1\$2 12848 } 12849fi # as_fn_append 12850 12851# as_fn_arith ARG... 12852# ------------------ 12853# Perform arithmetic evaluation on the ARGs, and store the result in the 12854# global $as_val. Take advantage of shells that can avoid forks. The arguments 12855# must be portable across $(()) and expr. 12856if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12857 eval 'as_fn_arith () 12858 { 12859 as_val=$(( $* )) 12860 }' 12861else 12862 as_fn_arith () 12863 { 12864 as_val=`expr "$@" || test $? -eq 1` 12865 } 12866fi # as_fn_arith 12867 12868 12869if expr a : '\(a\)' >/dev/null 2>&1 && 12870 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12871 as_expr=expr 12872else 12873 as_expr=false 12874fi 12875 12876if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12877 as_basename=basename 12878else 12879 as_basename=false 12880fi 12881 12882if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12883 as_dirname=dirname 12884else 12885 as_dirname=false 12886fi 12887 12888as_me=`$as_basename -- "$0" || 12889$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12890 X"$0" : 'X\(//\)$' \| \ 12891 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12892$as_echo X/"$0" | 12893 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12894 s//\1/ 12895 q 12896 } 12897 /^X\/\(\/\/\)$/{ 12898 s//\1/ 12899 q 12900 } 12901 /^X\/\(\/\).*/{ 12902 s//\1/ 12903 q 12904 } 12905 s/.*/./; q'` 12906 12907# Avoid depending upon Character Ranges. 12908as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12909as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12910as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12911as_cr_digits='0123456789' 12912as_cr_alnum=$as_cr_Letters$as_cr_digits 12913 12914ECHO_C= ECHO_N= ECHO_T= 12915case `echo -n x` in #((((( 12916-n*) 12917 case `echo 'xy\c'` in 12918 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12919 xy) ECHO_C='\c';; 12920 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12921 ECHO_T=' ';; 12922 esac;; 12923*) 12924 ECHO_N='-n';; 12925esac 12926 12927rm -f conf$$ conf$$.exe conf$$.file 12928if test -d conf$$.dir; then 12929 rm -f conf$$.dir/conf$$.file 12930else 12931 rm -f conf$$.dir 12932 mkdir conf$$.dir 2>/dev/null 12933fi 12934if (echo >conf$$.file) 2>/dev/null; then 12935 if ln -s conf$$.file conf$$ 2>/dev/null; then 12936 as_ln_s='ln -s' 12937 # ... but there are two gotchas: 12938 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12939 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12940 # In both cases, we have to default to `cp -pR'. 12941 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12942 as_ln_s='cp -pR' 12943 elif ln conf$$.file conf$$ 2>/dev/null; then 12944 as_ln_s=ln 12945 else 12946 as_ln_s='cp -pR' 12947 fi 12948else 12949 as_ln_s='cp -pR' 12950fi 12951rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12952rmdir conf$$.dir 2>/dev/null 12953 12954 12955# as_fn_mkdir_p 12956# ------------- 12957# Create "$as_dir" as a directory, including parents if necessary. 12958as_fn_mkdir_p () 12959{ 12960 12961 case $as_dir in #( 12962 -*) as_dir=./$as_dir;; 12963 esac 12964 test -d "$as_dir" || eval $as_mkdir_p || { 12965 as_dirs= 12966 while :; do 12967 case $as_dir in #( 12968 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12969 *) as_qdir=$as_dir;; 12970 esac 12971 as_dirs="'$as_qdir' $as_dirs" 12972 as_dir=`$as_dirname -- "$as_dir" || 12973$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12974 X"$as_dir" : 'X\(//\)[^/]' \| \ 12975 X"$as_dir" : 'X\(//\)$' \| \ 12976 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12977$as_echo X"$as_dir" | 12978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12979 s//\1/ 12980 q 12981 } 12982 /^X\(\/\/\)[^/].*/{ 12983 s//\1/ 12984 q 12985 } 12986 /^X\(\/\/\)$/{ 12987 s//\1/ 12988 q 12989 } 12990 /^X\(\/\).*/{ 12991 s//\1/ 12992 q 12993 } 12994 s/.*/./; q'` 12995 test -d "$as_dir" && break 12996 done 12997 test -z "$as_dirs" || eval "mkdir $as_dirs" 12998 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12999 13000 13001} # as_fn_mkdir_p 13002if mkdir -p . 2>/dev/null; then 13003 as_mkdir_p='mkdir -p "$as_dir"' 13004else 13005 test -d ./-p && rmdir ./-p 13006 as_mkdir_p=false 13007fi 13008 13009 13010# as_fn_executable_p FILE 13011# ----------------------- 13012# Test if FILE is an executable regular file. 13013as_fn_executable_p () 13014{ 13015 test -f "$1" && test -x "$1" 13016} # as_fn_executable_p 13017as_test_x='test -x' 13018as_executable_p=as_fn_executable_p 13019 13020# Sed expression to map a string onto a valid CPP name. 13021as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13022 13023# Sed expression to map a string onto a valid variable name. 13024as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13025 13026 13027exec 6>&1 13028## ----------------------------------- ## 13029## Main body of $CONFIG_STATUS script. ## 13030## ----------------------------------- ## 13031_ASEOF 13032test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13033 13034cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13035# Save the log message, to keep $0 and so on meaningful, and to 13036# report actual input values of CONFIG_FILES etc. instead of their 13037# values after options handling. 13038ac_log=" 13039This file was extended by numlib $as_me 0.10, which was 13040generated by GNU Autoconf 2.69. Invocation command line was 13041 13042 CONFIG_FILES = $CONFIG_FILES 13043 CONFIG_HEADERS = $CONFIG_HEADERS 13044 CONFIG_LINKS = $CONFIG_LINKS 13045 CONFIG_COMMANDS = $CONFIG_COMMANDS 13046 $ $0 $@ 13047 13048on `(hostname || uname -n) 2>/dev/null | sed 1q` 13049" 13050 13051_ACEOF 13052 13053case $ac_config_files in *" 13054"*) set x $ac_config_files; shift; ac_config_files=$*;; 13055esac 13056 13057case $ac_config_headers in *" 13058"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13059esac 13060 13061 13062cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13063# Files that config.status was made for. 13064config_files="$ac_config_files" 13065config_headers="$ac_config_headers" 13066config_commands="$ac_config_commands" 13067 13068_ACEOF 13069 13070cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13071ac_cs_usage="\ 13072\`$as_me' instantiates files and other configuration actions 13073from templates according to the current configuration. Unless the files 13074and actions are specified as TAGs, all are instantiated by default. 13075 13076Usage: $0 [OPTION]... [TAG]... 13077 13078 -h, --help print this help, then exit 13079 -V, --version print version number and configuration settings, then exit 13080 --config print configuration, then exit 13081 -q, --quiet, --silent 13082 do not print progress messages 13083 -d, --debug don't remove temporary files 13084 --recheck update $as_me by reconfiguring in the same conditions 13085 --file=FILE[:TEMPLATE] 13086 instantiate the configuration file FILE 13087 --header=FILE[:TEMPLATE] 13088 instantiate the configuration header FILE 13089 13090Configuration files: 13091$config_files 13092 13093Configuration headers: 13094$config_headers 13095 13096Configuration commands: 13097$config_commands 13098 13099Report bugs to <courier-users@lists.sourceforge.net>." 13100 13101_ACEOF 13102cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13103ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13104ac_cs_version="\\ 13105numlib config.status 0.10 13106configured by $0, generated by GNU Autoconf 2.69, 13107 with options \\"\$ac_cs_config\\" 13108 13109Copyright (C) 2012 Free Software Foundation, Inc. 13110This config.status script is free software; the Free Software Foundation 13111gives unlimited permission to copy, distribute and modify it." 13112 13113ac_pwd='$ac_pwd' 13114srcdir='$srcdir' 13115INSTALL='$INSTALL' 13116MKDIR_P='$MKDIR_P' 13117AWK='$AWK' 13118test -n "\$AWK" || AWK=awk 13119_ACEOF 13120 13121cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13122# The default lists apply if the user does not specify any file. 13123ac_need_defaults=: 13124while test $# != 0 13125do 13126 case $1 in 13127 --*=?*) 13128 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13129 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13130 ac_shift=: 13131 ;; 13132 --*=) 13133 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13134 ac_optarg= 13135 ac_shift=: 13136 ;; 13137 *) 13138 ac_option=$1 13139 ac_optarg=$2 13140 ac_shift=shift 13141 ;; 13142 esac 13143 13144 case $ac_option in 13145 # Handling of the options. 13146 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13147 ac_cs_recheck=: ;; 13148 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13149 $as_echo "$ac_cs_version"; exit ;; 13150 --config | --confi | --conf | --con | --co | --c ) 13151 $as_echo "$ac_cs_config"; exit ;; 13152 --debug | --debu | --deb | --de | --d | -d ) 13153 debug=: ;; 13154 --file | --fil | --fi | --f ) 13155 $ac_shift 13156 case $ac_optarg in 13157 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13158 '') as_fn_error $? "missing file argument" ;; 13159 esac 13160 as_fn_append CONFIG_FILES " '$ac_optarg'" 13161 ac_need_defaults=false;; 13162 --header | --heade | --head | --hea ) 13163 $ac_shift 13164 case $ac_optarg in 13165 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13166 esac 13167 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13168 ac_need_defaults=false;; 13169 --he | --h) 13170 # Conflict between --help and --header 13171 as_fn_error $? "ambiguous option: \`$1' 13172Try \`$0 --help' for more information.";; 13173 --help | --hel | -h ) 13174 $as_echo "$ac_cs_usage"; exit ;; 13175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13176 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13177 ac_cs_silent=: ;; 13178 13179 # This is an error. 13180 -*) as_fn_error $? "unrecognized option: \`$1' 13181Try \`$0 --help' for more information." ;; 13182 13183 *) as_fn_append ac_config_targets " $1" 13184 ac_need_defaults=false ;; 13185 13186 esac 13187 shift 13188done 13189 13190ac_configure_extra_args= 13191 13192if $ac_cs_silent; then 13193 exec 6>/dev/null 13194 ac_configure_extra_args="$ac_configure_extra_args --silent" 13195fi 13196 13197_ACEOF 13198cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13199if \$ac_cs_recheck; then 13200 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13201 shift 13202 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13203 CONFIG_SHELL='$SHELL' 13204 export CONFIG_SHELL 13205 exec "\$@" 13206fi 13207 13208_ACEOF 13209cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13210exec 5>>config.log 13211{ 13212 echo 13213 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13214## Running $as_me. ## 13215_ASBOX 13216 $as_echo "$ac_log" 13217} >&5 13218 13219_ACEOF 13220cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13221# 13222# INIT-COMMANDS 13223# 13224AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 13225 13226 13227# The HP-UX ksh and POSIX shell print the target directory to stdout 13228# if CDPATH is set. 13229(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13230 13231sed_quote_subst='$sed_quote_subst' 13232double_quote_subst='$double_quote_subst' 13233delay_variable_subst='$delay_variable_subst' 13234macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 13235macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 13236enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 13237enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 13238pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 13239enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 13240shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 13241SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 13242ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 13243PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 13244host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 13245host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 13246host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 13247build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 13248build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 13249build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 13250SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 13251Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 13252GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 13253EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 13254FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 13255LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 13256NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 13257LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 13258max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 13259ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 13260exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 13261lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 13262lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 13263lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 13264lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 13265lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 13266reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 13267reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 13268OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 13269deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 13270file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 13271file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 13272want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 13273DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 13274sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 13275AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 13276AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 13277archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 13278STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 13279RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 13280old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13281old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13282old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 13283lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 13284CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 13285CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 13286compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 13287GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 13288lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 13289lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 13290lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 13291lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 13292lt_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"`' 13293lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 13294nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 13295lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 13296lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 13297objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 13298MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 13299lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 13300lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 13301lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 13302lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 13303lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 13304need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 13305MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 13306DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 13307NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 13308LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 13309OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 13310OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 13311libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 13312shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 13313extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13314archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 13315enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 13316export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 13317whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 13318compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 13319old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 13320old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13321archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 13322archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13323module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 13324module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13325with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 13326allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 13327no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 13328hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 13329hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 13330hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 13331hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 13332hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 13333hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 13334hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 13335inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 13336link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 13337always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 13338export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 13339exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 13340include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 13341prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 13342postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 13343file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 13344variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 13345need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 13346need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 13347version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 13348runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 13349shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 13350shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 13351libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 13352library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 13353soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 13354install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 13355postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13356postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13357finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 13358finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 13359hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 13360sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 13361configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 13362configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 13363hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 13364enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 13365enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 13366enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 13367old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 13368striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 13369 13370LTCC='$LTCC' 13371LTCFLAGS='$LTCFLAGS' 13372compiler='$compiler_DEFAULT' 13373 13374# A function that is used when there is no print builtin or printf. 13375func_fallback_echo () 13376{ 13377 eval 'cat <<_LTECHO_EOF 13378\$1 13379_LTECHO_EOF' 13380} 13381 13382# Quote evaled strings. 13383for var in SHELL \ 13384ECHO \ 13385PATH_SEPARATOR \ 13386SED \ 13387GREP \ 13388EGREP \ 13389FGREP \ 13390LD \ 13391NM \ 13392LN_S \ 13393lt_SP2NL \ 13394lt_NL2SP \ 13395reload_flag \ 13396OBJDUMP \ 13397deplibs_check_method \ 13398file_magic_cmd \ 13399file_magic_glob \ 13400want_nocaseglob \ 13401DLLTOOL \ 13402sharedlib_from_linklib_cmd \ 13403AR \ 13404AR_FLAGS \ 13405archiver_list_spec \ 13406STRIP \ 13407RANLIB \ 13408CC \ 13409CFLAGS \ 13410compiler \ 13411lt_cv_sys_global_symbol_pipe \ 13412lt_cv_sys_global_symbol_to_cdecl \ 13413lt_cv_sys_global_symbol_to_import \ 13414lt_cv_sys_global_symbol_to_c_name_address \ 13415lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13416lt_cv_nm_interface \ 13417nm_file_list_spec \ 13418lt_cv_truncate_bin \ 13419lt_prog_compiler_no_builtin_flag \ 13420lt_prog_compiler_pic \ 13421lt_prog_compiler_wl \ 13422lt_prog_compiler_static \ 13423lt_cv_prog_compiler_c_o \ 13424need_locks \ 13425MANIFEST_TOOL \ 13426DSYMUTIL \ 13427NMEDIT \ 13428LIPO \ 13429OTOOL \ 13430OTOOL64 \ 13431shrext_cmds \ 13432export_dynamic_flag_spec \ 13433whole_archive_flag_spec \ 13434compiler_needs_object \ 13435with_gnu_ld \ 13436allow_undefined_flag \ 13437no_undefined_flag \ 13438hardcode_libdir_flag_spec \ 13439hardcode_libdir_separator \ 13440exclude_expsyms \ 13441include_expsyms \ 13442file_list_spec \ 13443variables_saved_for_relink \ 13444libname_spec \ 13445library_names_spec \ 13446soname_spec \ 13447install_override_mode \ 13448finish_eval \ 13449old_striplib \ 13450striplib; do 13451 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13452 *[\\\\\\\`\\"\\\$]*) 13453 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 13454 ;; 13455 *) 13456 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13457 ;; 13458 esac 13459done 13460 13461# Double-quote double-evaled strings. 13462for var in reload_cmds \ 13463old_postinstall_cmds \ 13464old_postuninstall_cmds \ 13465old_archive_cmds \ 13466extract_expsyms_cmds \ 13467old_archive_from_new_cmds \ 13468old_archive_from_expsyms_cmds \ 13469archive_cmds \ 13470archive_expsym_cmds \ 13471module_cmds \ 13472module_expsym_cmds \ 13473export_symbols_cmds \ 13474prelink_cmds \ 13475postlink_cmds \ 13476postinstall_cmds \ 13477postuninstall_cmds \ 13478finish_cmds \ 13479sys_lib_search_path_spec \ 13480configure_time_dlsearch_path \ 13481configure_time_lt_sys_library_path; do 13482 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13483 *[\\\\\\\`\\"\\\$]*) 13484 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 13485 ;; 13486 *) 13487 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13488 ;; 13489 esac 13490done 13491 13492ac_aux_dir='$ac_aux_dir' 13493 13494# See if we are running on zsh, and set the options that allow our 13495# commands through without removal of \ escapes INIT. 13496if test -n "\${ZSH_VERSION+set}"; then 13497 setopt NO_GLOB_SUBST 13498fi 13499 13500 13501 PACKAGE='$PACKAGE' 13502 VERSION='$VERSION' 13503 RM='$RM' 13504 ofile='$ofile' 13505 13506 13507 13508 13509_ACEOF 13510 13511cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13512 13513# Handling of arguments. 13514for ac_config_target in $ac_config_targets 13515do 13516 case $ac_config_target in 13517 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13518 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13519 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13520 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13521 13522 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13523 esac 13524done 13525 13526 13527# If the user did not use the arguments to specify the items to instantiate, 13528# then the envvar interface is used. Set only those that are not. 13529# We use the long form for the default assignment because of an extremely 13530# bizarre bug on SunOS 4.1.3. 13531if $ac_need_defaults; then 13532 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13533 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13534 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13535fi 13536 13537# Have a temporary directory for convenience. Make it in the build tree 13538# simply because there is no reason against having it here, and in addition, 13539# creating and moving files from /tmp can sometimes cause problems. 13540# Hook for its removal unless debugging. 13541# Note that there is a small window in which the directory will not be cleaned: 13542# after its creation but before its name has been assigned to `$tmp'. 13543$debug || 13544{ 13545 tmp= ac_tmp= 13546 trap 'exit_status=$? 13547 : "${ac_tmp:=$tmp}" 13548 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13549' 0 13550 trap 'as_fn_exit 1' 1 2 13 15 13551} 13552# Create a (secure) tmp directory for tmp files. 13553 13554{ 13555 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13556 test -d "$tmp" 13557} || 13558{ 13559 tmp=./conf$$-$RANDOM 13560 (umask 077 && mkdir "$tmp") 13561} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13562ac_tmp=$tmp 13563 13564# Set up the scripts for CONFIG_FILES section. 13565# No need to generate them if there are no CONFIG_FILES. 13566# This happens for instance with `./config.status config.h'. 13567if test -n "$CONFIG_FILES"; then 13568 13569 13570ac_cr=`echo X | tr X '\015'` 13571# On cygwin, bash can eat \r inside `` if the user requested igncr. 13572# But we know of no other shell where ac_cr would be empty at this 13573# point, so we can use a bashism as a fallback. 13574if test "x$ac_cr" = x; then 13575 eval ac_cr=\$\'\\r\' 13576fi 13577ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13578if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13579 ac_cs_awk_cr='\\r' 13580else 13581 ac_cs_awk_cr=$ac_cr 13582fi 13583 13584echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 13585_ACEOF 13586 13587 13588{ 13589 echo "cat >conf$$subs.awk <<_ACEOF" && 13590 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13591 echo "_ACEOF" 13592} >conf$$subs.sh || 13593 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13594ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13595ac_delim='%!_!# ' 13596for ac_last_try in false false false false false :; do 13597 . ./conf$$subs.sh || 13598 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13599 13600 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13601 if test $ac_delim_n = $ac_delim_num; then 13602 break 13603 elif $ac_last_try; then 13604 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13605 else 13606 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13607 fi 13608done 13609rm -f conf$$subs.sh 13610 13611cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13612cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13613_ACEOF 13614sed -n ' 13615h 13616s/^/S["/; s/!.*/"]=/ 13617p 13618g 13619s/^[^!]*!// 13620:repl 13621t repl 13622s/'"$ac_delim"'$// 13623t delim 13624:nl 13625h 13626s/\(.\{148\}\)..*/\1/ 13627t more1 13628s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13629p 13630n 13631b repl 13632:more1 13633s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13634p 13635g 13636s/.\{148\}// 13637t nl 13638:delim 13639h 13640s/\(.\{148\}\)..*/\1/ 13641t more2 13642s/["\\]/\\&/g; s/^/"/; s/$/"/ 13643p 13644b 13645:more2 13646s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13647p 13648g 13649s/.\{148\}// 13650t delim 13651' <conf$$subs.awk | sed ' 13652/^[^""]/{ 13653 N 13654 s/\n// 13655} 13656' >>$CONFIG_STATUS || ac_write_fail=1 13657rm -f conf$$subs.awk 13658cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13659_ACAWK 13660cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13661 for (key in S) S_is_set[key] = 1 13662 FS = "" 13663 13664} 13665{ 13666 line = $ 0 13667 nfields = split(line, field, "@") 13668 substed = 0 13669 len = length(field[1]) 13670 for (i = 2; i < nfields; i++) { 13671 key = field[i] 13672 keylen = length(key) 13673 if (S_is_set[key]) { 13674 value = S[key] 13675 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13676 len += length(value) + length(field[++i]) 13677 substed = 1 13678 } else 13679 len += 1 + keylen 13680 } 13681 13682 print line 13683} 13684 13685_ACAWK 13686_ACEOF 13687cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13688if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13689 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13690else 13691 cat 13692fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13693 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13694_ACEOF 13695 13696# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13697# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13698# trailing colons and then remove the whole line if VPATH becomes empty 13699# (actually we leave an empty line to preserve line numbers). 13700if test "x$srcdir" = x.; then 13701 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13702h 13703s/// 13704s/^/:/ 13705s/[ ]*$/:/ 13706s/:\$(srcdir):/:/g 13707s/:\${srcdir}:/:/g 13708s/:@srcdir@:/:/g 13709s/^:*// 13710s/:*$// 13711x 13712s/\(=[ ]*\).*/\1/ 13713G 13714s/\n// 13715s/^[^=]*=[ ]*$// 13716}' 13717fi 13718 13719cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13720fi # test -n "$CONFIG_FILES" 13721 13722# Set up the scripts for CONFIG_HEADERS section. 13723# No need to generate them if there are no CONFIG_HEADERS. 13724# This happens for instance with `./config.status Makefile'. 13725if test -n "$CONFIG_HEADERS"; then 13726cat >"$ac_tmp/defines.awk" <<\_ACAWK || 13727BEGIN { 13728_ACEOF 13729 13730# Transform confdefs.h into an awk script `defines.awk', embedded as 13731# here-document in config.status, that substitutes the proper values into 13732# config.h.in to produce config.h. 13733 13734# Create a delimiter string that does not exist in confdefs.h, to ease 13735# handling of long lines. 13736ac_delim='%!_!# ' 13737for ac_last_try in false false :; do 13738 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13739 if test -z "$ac_tt"; then 13740 break 13741 elif $ac_last_try; then 13742 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13743 else 13744 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13745 fi 13746done 13747 13748# For the awk script, D is an array of macro values keyed by name, 13749# likewise P contains macro parameters if any. Preserve backslash 13750# newline sequences. 13751 13752ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13753sed -n ' 13754s/.\{148\}/&'"$ac_delim"'/g 13755t rset 13756:rset 13757s/^[ ]*#[ ]*define[ ][ ]*/ / 13758t def 13759d 13760:def 13761s/\\$// 13762t bsnl 13763s/["\\]/\\&/g 13764s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13765D["\1"]=" \3"/p 13766s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13767d 13768:bsnl 13769s/["\\]/\\&/g 13770s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13771D["\1"]=" \3\\\\\\n"\\/p 13772t cont 13773s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13774t cont 13775d 13776:cont 13777n 13778s/.\{148\}/&'"$ac_delim"'/g 13779t clear 13780:clear 13781s/\\$// 13782t bsnlc 13783s/["\\]/\\&/g; s/^/"/; s/$/"/p 13784d 13785:bsnlc 13786s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13787b cont 13788' <confdefs.h | sed ' 13789s/'"$ac_delim"'/"\\\ 13790"/g' >>$CONFIG_STATUS || ac_write_fail=1 13791 13792cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13793 for (key in D) D_is_set[key] = 1 13794 FS = "" 13795} 13796/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13797 line = \$ 0 13798 split(line, arg, " ") 13799 if (arg[1] == "#") { 13800 defundef = arg[2] 13801 mac1 = arg[3] 13802 } else { 13803 defundef = substr(arg[1], 2) 13804 mac1 = arg[2] 13805 } 13806 split(mac1, mac2, "(") #) 13807 macro = mac2[1] 13808 prefix = substr(line, 1, index(line, defundef) - 1) 13809 if (D_is_set[macro]) { 13810 # Preserve the white space surrounding the "#". 13811 print prefix "define", macro P[macro] D[macro] 13812 next 13813 } else { 13814 # Replace #undef with comments. This is necessary, for example, 13815 # in the case of _POSIX_SOURCE, which is predefined and required 13816 # on some systems where configure will not decide to define it. 13817 if (defundef == "undef") { 13818 print "/*", prefix defundef, macro, "*/" 13819 next 13820 } 13821 } 13822} 13823{ print } 13824_ACAWK 13825_ACEOF 13826cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13827 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13828fi # test -n "$CONFIG_HEADERS" 13829 13830 13831eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13832shift 13833for ac_tag 13834do 13835 case $ac_tag in 13836 :[FHLC]) ac_mode=$ac_tag; continue;; 13837 esac 13838 case $ac_mode$ac_tag in 13839 :[FHL]*:*);; 13840 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 13841 :[FH]-) ac_tag=-:-;; 13842 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13843 esac 13844 ac_save_IFS=$IFS 13845 IFS=: 13846 set x $ac_tag 13847 IFS=$ac_save_IFS 13848 shift 13849 ac_file=$1 13850 shift 13851 13852 case $ac_mode in 13853 :L) ac_source=$1;; 13854 :[FH]) 13855 ac_file_inputs= 13856 for ac_f 13857 do 13858 case $ac_f in 13859 -) ac_f="$ac_tmp/stdin";; 13860 *) # Look for the file first in the build tree, then in the source tree 13861 # (if the path is not absolute). The absolute path cannot be DOS-style, 13862 # because $ac_f cannot contain `:'. 13863 test -f "$ac_f" || 13864 case $ac_f in 13865 [\\/$]*) false;; 13866 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13867 esac || 13868 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13869 esac 13870 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13871 as_fn_append ac_file_inputs " '$ac_f'" 13872 done 13873 13874 # Let's still pretend it is `configure' which instantiates (i.e., don't 13875 # use $as_me), people would be surprised to read: 13876 # /* config.h. Generated by config.status. */ 13877 configure_input='Generated from '` 13878 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13879 `' by configure.' 13880 if test x"$ac_file" != x-; then 13881 configure_input="$ac_file. $configure_input" 13882 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13883$as_echo "$as_me: creating $ac_file" >&6;} 13884 fi 13885 # Neutralize special characters interpreted by sed in replacement strings. 13886 case $configure_input in #( 13887 *\&* | *\|* | *\\* ) 13888 ac_sed_conf_input=`$as_echo "$configure_input" | 13889 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13890 *) ac_sed_conf_input=$configure_input;; 13891 esac 13892 13893 case $ac_tag in 13894 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13895 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13896 esac 13897 ;; 13898 esac 13899 13900 ac_dir=`$as_dirname -- "$ac_file" || 13901$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13902 X"$ac_file" : 'X\(//\)[^/]' \| \ 13903 X"$ac_file" : 'X\(//\)$' \| \ 13904 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13905$as_echo X"$ac_file" | 13906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13907 s//\1/ 13908 q 13909 } 13910 /^X\(\/\/\)[^/].*/{ 13911 s//\1/ 13912 q 13913 } 13914 /^X\(\/\/\)$/{ 13915 s//\1/ 13916 q 13917 } 13918 /^X\(\/\).*/{ 13919 s//\1/ 13920 q 13921 } 13922 s/.*/./; q'` 13923 as_dir="$ac_dir"; as_fn_mkdir_p 13924 ac_builddir=. 13925 13926case "$ac_dir" in 13927.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13928*) 13929 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13930 # A ".." for each directory in $ac_dir_suffix. 13931 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13932 case $ac_top_builddir_sub in 13933 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13934 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13935 esac ;; 13936esac 13937ac_abs_top_builddir=$ac_pwd 13938ac_abs_builddir=$ac_pwd$ac_dir_suffix 13939# for backward compatibility: 13940ac_top_builddir=$ac_top_build_prefix 13941 13942case $srcdir in 13943 .) # We are building in place. 13944 ac_srcdir=. 13945 ac_top_srcdir=$ac_top_builddir_sub 13946 ac_abs_top_srcdir=$ac_pwd ;; 13947 [\\/]* | ?:[\\/]* ) # Absolute name. 13948 ac_srcdir=$srcdir$ac_dir_suffix; 13949 ac_top_srcdir=$srcdir 13950 ac_abs_top_srcdir=$srcdir ;; 13951 *) # Relative name. 13952 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13953 ac_top_srcdir=$ac_top_build_prefix$srcdir 13954 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13955esac 13956ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13957 13958 13959 case $ac_mode in 13960 :F) 13961 # 13962 # CONFIG_FILE 13963 # 13964 13965 case $INSTALL in 13966 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13967 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13968 esac 13969 ac_MKDIR_P=$MKDIR_P 13970 case $MKDIR_P in 13971 [\\/$]* | ?:[\\/]* ) ;; 13972 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13973 esac 13974_ACEOF 13975 13976cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13977# If the template does not know about datarootdir, expand it. 13978# FIXME: This hack should be removed a few years after 2.60. 13979ac_datarootdir_hack=; ac_datarootdir_seen= 13980ac_sed_dataroot=' 13981/datarootdir/ { 13982 p 13983 q 13984} 13985/@datadir@/p 13986/@docdir@/p 13987/@infodir@/p 13988/@localedir@/p 13989/@mandir@/p' 13990case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13991*datarootdir*) ac_datarootdir_seen=yes;; 13992*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13994$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13995_ACEOF 13996cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13997 ac_datarootdir_hack=' 13998 s&@datadir@&$datadir&g 13999 s&@docdir@&$docdir&g 14000 s&@infodir@&$infodir&g 14001 s&@localedir@&$localedir&g 14002 s&@mandir@&$mandir&g 14003 s&\\\${datarootdir}&$datarootdir&g' ;; 14004esac 14005_ACEOF 14006 14007# Neutralize VPATH when `$srcdir' = `.'. 14008# Shell code in configure.ac might set extrasub. 14009# FIXME: do we really want to maintain this feature? 14010cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14011ac_sed_extra="$ac_vpsub 14012$extrasub 14013_ACEOF 14014cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14015:t 14016/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14017s|@configure_input@|$ac_sed_conf_input|;t t 14018s&@top_builddir@&$ac_top_builddir_sub&;t t 14019s&@top_build_prefix@&$ac_top_build_prefix&;t t 14020s&@srcdir@&$ac_srcdir&;t t 14021s&@abs_srcdir@&$ac_abs_srcdir&;t t 14022s&@top_srcdir@&$ac_top_srcdir&;t t 14023s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14024s&@builddir@&$ac_builddir&;t t 14025s&@abs_builddir@&$ac_abs_builddir&;t t 14026s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14027s&@INSTALL@&$ac_INSTALL&;t t 14028s&@MKDIR_P@&$ac_MKDIR_P&;t t 14029$ac_datarootdir_hack 14030" 14031eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14032 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14033 14034test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14035 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14036 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14037 "$ac_tmp/out"`; test -z "$ac_out"; } && 14038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14039which seems to be undefined. Please make sure it is defined" >&5 14040$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14041which seems to be undefined. Please make sure it is defined" >&2;} 14042 14043 rm -f "$ac_tmp/stdin" 14044 case $ac_file in 14045 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14046 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14047 esac \ 14048 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14049 ;; 14050 :H) 14051 # 14052 # CONFIG_HEADER 14053 # 14054 if test x"$ac_file" != x-; then 14055 { 14056 $as_echo "/* $configure_input */" \ 14057 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 14058 } >"$ac_tmp/config.h" \ 14059 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14060 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 14061 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14062$as_echo "$as_me: $ac_file is unchanged" >&6;} 14063 else 14064 rm -f "$ac_file" 14065 mv "$ac_tmp/config.h" "$ac_file" \ 14066 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14067 fi 14068 else 14069 $as_echo "/* $configure_input */" \ 14070 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 14071 || as_fn_error $? "could not create -" "$LINENO" 5 14072 fi 14073# Compute "$ac_file"'s index in $config_headers. 14074_am_arg="$ac_file" 14075_am_stamp_count=1 14076for _am_header in $config_headers :; do 14077 case $_am_header in 14078 $_am_arg | $_am_arg:* ) 14079 break ;; 14080 * ) 14081 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14082 esac 14083done 14084echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14085$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14086 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14087 X"$_am_arg" : 'X\(//\)$' \| \ 14088 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14089$as_echo X"$_am_arg" | 14090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14091 s//\1/ 14092 q 14093 } 14094 /^X\(\/\/\)[^/].*/{ 14095 s//\1/ 14096 q 14097 } 14098 /^X\(\/\/\)$/{ 14099 s//\1/ 14100 q 14101 } 14102 /^X\(\/\).*/{ 14103 s//\1/ 14104 q 14105 } 14106 s/.*/./; q'`/stamp-h$_am_stamp_count 14107 ;; 14108 14109 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14110$as_echo "$as_me: executing $ac_file commands" >&6;} 14111 ;; 14112 esac 14113 14114 14115 case $ac_file$ac_mode in 14116 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14117 # Older Autoconf quotes --file arguments for eval, but not when files 14118 # are listed without --file. Let's play safe and only enable the eval 14119 # if we detect the quoting. 14120 # TODO: see whether this extra hack can be removed once we start 14121 # requiring Autoconf 2.70 or later. 14122 case $CONFIG_FILES in #( 14123 *\'*) : 14124 eval set x "$CONFIG_FILES" ;; #( 14125 *) : 14126 set x $CONFIG_FILES ;; #( 14127 *) : 14128 ;; 14129esac 14130 shift 14131 # Used to flag and report bootstrapping failures. 14132 am_rc=0 14133 for am_mf 14134 do 14135 # Strip MF so we end up with the name of the file. 14136 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 14137 # Check whether this is an Automake generated Makefile which includes 14138 # dependency-tracking related rules and includes. 14139 # Grep'ing the whole file directly is not great: AIX grep has a line 14140 # limit of 2048, but all sed's we know have understand at least 4000. 14141 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 14142 || continue 14143 am_dirpart=`$as_dirname -- "$am_mf" || 14144$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14145 X"$am_mf" : 'X\(//\)[^/]' \| \ 14146 X"$am_mf" : 'X\(//\)$' \| \ 14147 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 14148$as_echo X"$am_mf" | 14149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14150 s//\1/ 14151 q 14152 } 14153 /^X\(\/\/\)[^/].*/{ 14154 s//\1/ 14155 q 14156 } 14157 /^X\(\/\/\)$/{ 14158 s//\1/ 14159 q 14160 } 14161 /^X\(\/\).*/{ 14162 s//\1/ 14163 q 14164 } 14165 s/.*/./; q'` 14166 am_filepart=`$as_basename -- "$am_mf" || 14167$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 14168 X"$am_mf" : 'X\(//\)$' \| \ 14169 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 14170$as_echo X/"$am_mf" | 14171 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14172 s//\1/ 14173 q 14174 } 14175 /^X\/\(\/\/\)$/{ 14176 s//\1/ 14177 q 14178 } 14179 /^X\/\(\/\).*/{ 14180 s//\1/ 14181 q 14182 } 14183 s/.*/./; q'` 14184 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 14185 && sed -e '/# am--include-marker/d' "$am_filepart" \ 14186 | $MAKE -f - am--depfiles" >&5 14187 (cd "$am_dirpart" \ 14188 && sed -e '/# am--include-marker/d' "$am_filepart" \ 14189 | $MAKE -f - am--depfiles) >&5 2>&5 14190 ac_status=$? 14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14192 (exit $ac_status); } || am_rc=$? 14193 done 14194 if test $am_rc -ne 0; then 14195 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14196$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14197as_fn_error $? "Something went wrong bootstrapping makefile fragments 14198 for automatic dependency tracking. If GNU make was not used, consider 14199 re-running the configure script with MAKE=\"gmake\" (or whatever is 14200 necessary). You can also try re-running configure with the 14201 '--disable-dependency-tracking' option to at least be able to build 14202 the package (albeit without support for automatic dependency tracking). 14203See \`config.log' for more details" "$LINENO" 5; } 14204 fi 14205 { am_dirpart=; unset am_dirpart;} 14206 { am_filepart=; unset am_filepart;} 14207 { am_mf=; unset am_mf;} 14208 { am_rc=; unset am_rc;} 14209 rm -f conftest-deps.mk 14210} 14211 ;; 14212 "libtool":C) 14213 14214 # See if we are running on zsh, and set the options that allow our 14215 # commands through without removal of \ escapes. 14216 if test -n "${ZSH_VERSION+set}"; then 14217 setopt NO_GLOB_SUBST 14218 fi 14219 14220 cfgfile=${ofile}T 14221 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14222 $RM "$cfgfile" 14223 14224 cat <<_LT_EOF >> "$cfgfile" 14225#! $SHELL 14226# Generated automatically by $as_me ($PACKAGE) $VERSION 14227# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14228# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14229 14230# Provide generalized library-building support services. 14231# Written by Gordon Matzigkeit, 1996 14232 14233# Copyright (C) 2014 Free Software Foundation, Inc. 14234# This is free software; see the source for copying conditions. There is NO 14235# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14236 14237# GNU Libtool is free software; you can redistribute it and/or modify 14238# it under the terms of the GNU General Public License as published by 14239# the Free Software Foundation; either version 2 of of the License, or 14240# (at your option) any later version. 14241# 14242# As a special exception to the GNU General Public License, if you 14243# distribute this file as part of a program or library that is built 14244# using GNU Libtool, you may include this file under the same 14245# distribution terms that you use for the rest of that program. 14246# 14247# GNU Libtool is distributed in the hope that it will be useful, but 14248# WITHOUT ANY WARRANTY; without even the implied warranty of 14249# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14250# GNU General Public License for more details. 14251# 14252# You should have received a copy of the GNU General Public License 14253# along with this program. If not, see <http://www.gnu.org/licenses/>. 14254 14255 14256# The names of the tagged configurations supported by this script. 14257available_tags='' 14258 14259# Configured defaults for sys_lib_dlsearch_path munging. 14260: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 14261 14262# ### BEGIN LIBTOOL CONFIG 14263 14264# Which release of libtool.m4 was used? 14265macro_version=$macro_version 14266macro_revision=$macro_revision 14267 14268# Whether or not to build shared libraries. 14269build_libtool_libs=$enable_shared 14270 14271# Whether or not to build static libraries. 14272build_old_libs=$enable_static 14273 14274# What type of objects to build. 14275pic_mode=$pic_mode 14276 14277# Whether or not to optimize for fast installation. 14278fast_install=$enable_fast_install 14279 14280# Shared archive member basename,for filename based shared library versioning on AIX. 14281shared_archive_member_spec=$shared_archive_member_spec 14282 14283# Shell to use when invoking shell scripts. 14284SHELL=$lt_SHELL 14285 14286# An echo program that protects backslashes. 14287ECHO=$lt_ECHO 14288 14289# The PATH separator for the build system. 14290PATH_SEPARATOR=$lt_PATH_SEPARATOR 14291 14292# The host system. 14293host_alias=$host_alias 14294host=$host 14295host_os=$host_os 14296 14297# The build system. 14298build_alias=$build_alias 14299build=$build 14300build_os=$build_os 14301 14302# A sed program that does not truncate output. 14303SED=$lt_SED 14304 14305# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14306Xsed="\$SED -e 1s/^X//" 14307 14308# A grep program that handles long lines. 14309GREP=$lt_GREP 14310 14311# An ERE matcher. 14312EGREP=$lt_EGREP 14313 14314# A literal string matcher. 14315FGREP=$lt_FGREP 14316 14317# A BSD- or MS-compatible name lister. 14318NM=$lt_NM 14319 14320# Whether we need soft or hard links. 14321LN_S=$lt_LN_S 14322 14323# What is the maximum length of a command? 14324max_cmd_len=$max_cmd_len 14325 14326# Object file suffix (normally "o"). 14327objext=$ac_objext 14328 14329# Executable file suffix (normally ""). 14330exeext=$exeext 14331 14332# whether the shell understands "unset". 14333lt_unset=$lt_unset 14334 14335# turn spaces into newlines. 14336SP2NL=$lt_lt_SP2NL 14337 14338# turn newlines into spaces. 14339NL2SP=$lt_lt_NL2SP 14340 14341# convert \$build file names to \$host format. 14342to_host_file_cmd=$lt_cv_to_host_file_cmd 14343 14344# convert \$build files to toolchain format. 14345to_tool_file_cmd=$lt_cv_to_tool_file_cmd 14346 14347# An object symbol dumper. 14348OBJDUMP=$lt_OBJDUMP 14349 14350# Method to check whether dependent libraries are shared objects. 14351deplibs_check_method=$lt_deplibs_check_method 14352 14353# Command to use when deplibs_check_method = "file_magic". 14354file_magic_cmd=$lt_file_magic_cmd 14355 14356# How to find potential files when deplibs_check_method = "file_magic". 14357file_magic_glob=$lt_file_magic_glob 14358 14359# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 14360want_nocaseglob=$lt_want_nocaseglob 14361 14362# DLL creation program. 14363DLLTOOL=$lt_DLLTOOL 14364 14365# Command to associate shared and link libraries. 14366sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 14367 14368# The archiver. 14369AR=$lt_AR 14370 14371# Flags to create an archive. 14372AR_FLAGS=$lt_AR_FLAGS 14373 14374# How to feed a file listing to the archiver. 14375archiver_list_spec=$lt_archiver_list_spec 14376 14377# A symbol stripping program. 14378STRIP=$lt_STRIP 14379 14380# Commands used to install an old-style archive. 14381RANLIB=$lt_RANLIB 14382old_postinstall_cmds=$lt_old_postinstall_cmds 14383old_postuninstall_cmds=$lt_old_postuninstall_cmds 14384 14385# Whether to use a lock for old archive extraction. 14386lock_old_archive_extraction=$lock_old_archive_extraction 14387 14388# A C compiler. 14389LTCC=$lt_CC 14390 14391# LTCC compiler flags. 14392LTCFLAGS=$lt_CFLAGS 14393 14394# Take the output of nm and produce a listing of raw symbols and C names. 14395global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14396 14397# Transform the output of nm in a proper C declaration. 14398global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14399 14400# Transform the output of nm into a list of symbols to manually relocate. 14401global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 14402 14403# Transform the output of nm in a C name address pair. 14404global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14405 14406# Transform the output of nm in a C name address pair when lib prefix is needed. 14407global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14408 14409# The name lister interface. 14410nm_interface=$lt_lt_cv_nm_interface 14411 14412# Specify filename containing input files for \$NM. 14413nm_file_list_spec=$lt_nm_file_list_spec 14414 14415# The root where to search for dependent libraries,and where our libraries should be installed. 14416lt_sysroot=$lt_sysroot 14417 14418# Command to truncate a binary pipe. 14419lt_truncate_bin=$lt_lt_cv_truncate_bin 14420 14421# The name of the directory that contains temporary libtool files. 14422objdir=$objdir 14423 14424# Used to examine libraries when file_magic_cmd begins with "file". 14425MAGIC_CMD=$MAGIC_CMD 14426 14427# Must we lock files when doing compilation? 14428need_locks=$lt_need_locks 14429 14430# Manifest tool. 14431MANIFEST_TOOL=$lt_MANIFEST_TOOL 14432 14433# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14434DSYMUTIL=$lt_DSYMUTIL 14435 14436# Tool to change global to local symbols on Mac OS X. 14437NMEDIT=$lt_NMEDIT 14438 14439# Tool to manipulate fat objects and archives on Mac OS X. 14440LIPO=$lt_LIPO 14441 14442# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14443OTOOL=$lt_OTOOL 14444 14445# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14446OTOOL64=$lt_OTOOL64 14447 14448# Old archive suffix (normally "a"). 14449libext=$libext 14450 14451# Shared library suffix (normally ".so"). 14452shrext_cmds=$lt_shrext_cmds 14453 14454# The commands to extract the exported symbol list from a shared archive. 14455extract_expsyms_cmds=$lt_extract_expsyms_cmds 14456 14457# Variables whose values should be saved in libtool wrapper scripts and 14458# restored at link time. 14459variables_saved_for_relink=$lt_variables_saved_for_relink 14460 14461# Do we need the "lib" prefix for modules? 14462need_lib_prefix=$need_lib_prefix 14463 14464# Do we need a version for libraries? 14465need_version=$need_version 14466 14467# Library versioning type. 14468version_type=$version_type 14469 14470# Shared library runtime path variable. 14471runpath_var=$runpath_var 14472 14473# Shared library path variable. 14474shlibpath_var=$shlibpath_var 14475 14476# Is shlibpath searched before the hard-coded library search path? 14477shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14478 14479# Format of library name prefix. 14480libname_spec=$lt_libname_spec 14481 14482# List of archive names. First name is the real one, the rest are links. 14483# The last name is the one that the linker finds with -lNAME 14484library_names_spec=$lt_library_names_spec 14485 14486# The coded name of the library, if different from the real name. 14487soname_spec=$lt_soname_spec 14488 14489# Permission mode override for installation of shared libraries. 14490install_override_mode=$lt_install_override_mode 14491 14492# Command to use after installation of a shared archive. 14493postinstall_cmds=$lt_postinstall_cmds 14494 14495# Command to use after uninstallation of a shared archive. 14496postuninstall_cmds=$lt_postuninstall_cmds 14497 14498# Commands used to finish a libtool library installation in a directory. 14499finish_cmds=$lt_finish_cmds 14500 14501# As "finish_cmds", except a single script fragment to be evaled but 14502# not shown. 14503finish_eval=$lt_finish_eval 14504 14505# Whether we should hardcode library paths into libraries. 14506hardcode_into_libs=$hardcode_into_libs 14507 14508# Compile-time system search path for libraries. 14509sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14510 14511# Detected run-time system search path for libraries. 14512sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 14513 14514# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 14515configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 14516 14517# Whether dlopen is supported. 14518dlopen_support=$enable_dlopen 14519 14520# Whether dlopen of programs is supported. 14521dlopen_self=$enable_dlopen_self 14522 14523# Whether dlopen of statically linked programs is supported. 14524dlopen_self_static=$enable_dlopen_self_static 14525 14526# Commands to strip libraries. 14527old_striplib=$lt_old_striplib 14528striplib=$lt_striplib 14529 14530 14531# The linker used to build libraries. 14532LD=$lt_LD 14533 14534# How to create reloadable object files. 14535reload_flag=$lt_reload_flag 14536reload_cmds=$lt_reload_cmds 14537 14538# Commands used to build an old-style archive. 14539old_archive_cmds=$lt_old_archive_cmds 14540 14541# A language specific compiler. 14542CC=$lt_compiler 14543 14544# Is the compiler the GNU compiler? 14545with_gcc=$GCC 14546 14547# Compiler flag to turn off builtin functions. 14548no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14549 14550# Additional compiler flags for building library objects. 14551pic_flag=$lt_lt_prog_compiler_pic 14552 14553# How to pass a linker flag through the compiler. 14554wl=$lt_lt_prog_compiler_wl 14555 14556# Compiler flag to prevent dynamic linking. 14557link_static_flag=$lt_lt_prog_compiler_static 14558 14559# Does compiler simultaneously support -c and -o options? 14560compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14561 14562# Whether or not to add -lc for building shared libraries. 14563build_libtool_need_lc=$archive_cmds_need_lc 14564 14565# Whether or not to disallow shared libs when runtime libs are static. 14566allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14567 14568# Compiler flag to allow reflexive dlopens. 14569export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14570 14571# Compiler flag to generate shared objects directly from archives. 14572whole_archive_flag_spec=$lt_whole_archive_flag_spec 14573 14574# Whether the compiler copes with passing no objects directly. 14575compiler_needs_object=$lt_compiler_needs_object 14576 14577# Create an old-style archive from a shared archive. 14578old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14579 14580# Create a temporary old-style archive to link instead of a shared archive. 14581old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14582 14583# Commands used to build a shared archive. 14584archive_cmds=$lt_archive_cmds 14585archive_expsym_cmds=$lt_archive_expsym_cmds 14586 14587# Commands used to build a loadable module if different from building 14588# a shared archive. 14589module_cmds=$lt_module_cmds 14590module_expsym_cmds=$lt_module_expsym_cmds 14591 14592# Whether we are building with GNU ld or not. 14593with_gnu_ld=$lt_with_gnu_ld 14594 14595# Flag that allows shared libraries with undefined symbols to be built. 14596allow_undefined_flag=$lt_allow_undefined_flag 14597 14598# Flag that enforces no undefined symbols. 14599no_undefined_flag=$lt_no_undefined_flag 14600 14601# Flag to hardcode \$libdir into a binary during linking. 14602# This must work even if \$libdir does not exist 14603hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14604 14605# Whether we need a single "-rpath" flag with a separated argument. 14606hardcode_libdir_separator=$lt_hardcode_libdir_separator 14607 14608# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 14609# DIR into the resulting binary. 14610hardcode_direct=$hardcode_direct 14611 14612# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 14613# DIR into the resulting binary and the resulting library dependency is 14614# "absolute",i.e impossible to change by setting \$shlibpath_var if the 14615# library is relocated. 14616hardcode_direct_absolute=$hardcode_direct_absolute 14617 14618# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14619# into the resulting binary. 14620hardcode_minus_L=$hardcode_minus_L 14621 14622# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14623# into the resulting binary. 14624hardcode_shlibpath_var=$hardcode_shlibpath_var 14625 14626# Set to "yes" if building a shared library automatically hardcodes DIR 14627# into the library and all subsequent libraries and executables linked 14628# against it. 14629hardcode_automatic=$hardcode_automatic 14630 14631# Set to yes if linker adds runtime paths of dependent libraries 14632# to runtime path list. 14633inherit_rpath=$inherit_rpath 14634 14635# Whether libtool must link a program against all its dependency libraries. 14636link_all_deplibs=$link_all_deplibs 14637 14638# Set to "yes" if exported symbols are required. 14639always_export_symbols=$always_export_symbols 14640 14641# The commands to list exported symbols. 14642export_symbols_cmds=$lt_export_symbols_cmds 14643 14644# Symbols that should not be listed in the preloaded symbols. 14645exclude_expsyms=$lt_exclude_expsyms 14646 14647# Symbols that must always be exported. 14648include_expsyms=$lt_include_expsyms 14649 14650# Commands necessary for linking programs (against libraries) with templates. 14651prelink_cmds=$lt_prelink_cmds 14652 14653# Commands necessary for finishing linking programs. 14654postlink_cmds=$lt_postlink_cmds 14655 14656# Specify filename containing input files. 14657file_list_spec=$lt_file_list_spec 14658 14659# How to hardcode a shared library path into an executable. 14660hardcode_action=$hardcode_action 14661 14662# ### END LIBTOOL CONFIG 14663 14664_LT_EOF 14665 14666 cat <<'_LT_EOF' >> "$cfgfile" 14667 14668# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 14669 14670# func_munge_path_list VARIABLE PATH 14671# ----------------------------------- 14672# VARIABLE is name of variable containing _space_ separated list of 14673# directories to be munged by the contents of PATH, which is string 14674# having a format: 14675# "DIR[:DIR]:" 14676# string "DIR[ DIR]" will be prepended to VARIABLE 14677# ":DIR[:DIR]" 14678# string "DIR[ DIR]" will be appended to VARIABLE 14679# "DIRP[:DIRP]::[DIRA:]DIRA" 14680# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 14681# "DIRA[ DIRA]" will be appended to VARIABLE 14682# "DIR[:DIR]" 14683# VARIABLE will be replaced by "DIR[ DIR]" 14684func_munge_path_list () 14685{ 14686 case x$2 in 14687 x) 14688 ;; 14689 *:) 14690 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 14691 ;; 14692 x:*) 14693 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 14694 ;; 14695 *::*) 14696 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 14697 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 14698 ;; 14699 *) 14700 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 14701 ;; 14702 esac 14703} 14704 14705 14706# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 14707func_cc_basename () 14708{ 14709 for cc_temp in $*""; do 14710 case $cc_temp in 14711 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14712 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14713 \-*) ;; 14714 *) break;; 14715 esac 14716 done 14717 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 14718} 14719 14720 14721# ### END FUNCTIONS SHARED WITH CONFIGURE 14722 14723_LT_EOF 14724 14725 case $host_os in 14726 aix3*) 14727 cat <<\_LT_EOF >> "$cfgfile" 14728# AIX sometimes has problems with the GCC collect2 program. For some 14729# reason, if we set the COLLECT_NAMES environment variable, the problems 14730# vanish in a puff of smoke. 14731if test set != "${COLLECT_NAMES+set}"; then 14732 COLLECT_NAMES= 14733 export COLLECT_NAMES 14734fi 14735_LT_EOF 14736 ;; 14737 esac 14738 14739 14740ltmain=$ac_aux_dir/ltmain.sh 14741 14742 14743 # We use sed instead of cat because bash on DJGPP gets confused if 14744 # if finds mixed CR/LF and LF-only lines. Since sed operates in 14745 # text mode, it properly converts lines to CR/LF. This bash problem 14746 # is reportedly fixed, but why not run on old versions too? 14747 sed '$q' "$ltmain" >> "$cfgfile" \ 14748 || (rm -f "$cfgfile"; exit 1) 14749 14750 mv -f "$cfgfile" "$ofile" || 14751 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14752 chmod +x "$ofile" 14753 14754 ;; 14755 14756 esac 14757done # for ac_tag 14758 14759 14760as_fn_exit 0 14761_ACEOF 14762ac_clean_files=$ac_clean_files_save 14763 14764test $ac_write_fail = 0 || 14765 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 14766 14767 14768# configure is writing to config.log, and then calls config.status. 14769# config.status does its own redirection, appending to config.log. 14770# Unfortunately, on DOS this fails, as config.log is still kept open 14771# by configure, so config.status won't be able to write to it; its 14772# output is simply discarded. So we exec the FD to /dev/null, 14773# effectively closing config.log, so it can be properly (re)opened and 14774# appended to by config.status. When coming back to configure, we 14775# need to make the FD available again. 14776if test "$no_create" != yes; then 14777 ac_cs_success=: 14778 ac_config_status_args= 14779 test "$silent" = yes && 14780 ac_config_status_args="$ac_config_status_args --quiet" 14781 exec 5>/dev/null 14782 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14783 exec 5>>config.log 14784 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14785 # would make configure fail if this is the last instruction. 14786 $ac_cs_success || as_fn_exit 1 14787fi 14788if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14790$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14791fi 14792 14793