1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for libpng 1.6.44. 4# 5# Report bugs to <[email protected]>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed 'exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144then : 145 emulate sh 146 NULLCMD=: 147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 148 # is contrary to our usage. Disable this feature. 149 alias -g '\${1+\"\$@\"}'='\"\$@\"' 150 setopt NO_GLOB_SUBST 151else case e in #( 152 e) case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157esac ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else case e in #( 176 e) exitcode=1; echo positional parameters were not saved. ;; 177esac 178fi 179test x\$exitcode = x0 || exit 1 180blah=\$(echo \$(echo blah)) 181test x\"\$blah\" = xblah || exit 1 182test -x / || exit 1" 183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 187test \$(( 1 + 1 )) = 2 || exit 1 188 189 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 190 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 192 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 193 PATH=/empty FPATH=/empty; export PATH FPATH 194 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 195 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 196 if (eval "$as_required") 2>/dev/null 197then : 198 as_have_required=yes 199else case e in #( 200 e) as_have_required=no ;; 201esac 202fi 203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 204then : 205 206else case e in #( 207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 208as_found=false 209for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 210do 211 IFS=$as_save_IFS 212 case $as_dir in #((( 213 '') as_dir=./ ;; 214 */) ;; 215 *) as_dir=$as_dir/ ;; 216 esac 217 as_found=: 218 case $as_dir in #( 219 /*) 220 for as_base in sh bash ksh sh5; do 221 # Try only shells that exist, to save several forks. 222 as_shell=$as_dir$as_base 223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 225then : 226 CONFIG_SHELL=$as_shell as_have_required=yes 227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 228then : 229 break 2 230fi 231fi 232 done;; 233 esac 234 as_found=false 235done 236IFS=$as_save_IFS 237if $as_found 238then : 239 240else case e in #( 241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 243then : 244 CONFIG_SHELL=$SHELL as_have_required=yes 245fi ;; 246esac 247fi 248 249 250 if test "x$CONFIG_SHELL" != x 251then : 252 export CONFIG_SHELL 253 # We cannot yet assume a decent shell, so we have to provide a 254# neutralization value for shells without unset; and this also 255# works around shells that cannot unset nonexistent variables. 256# Preserve -v and -x to the replacement shell. 257BASH_ENV=/dev/null 258ENV=/dev/null 259(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 260case $- in # (((( 261 *v*x* | *x*v* ) as_opts=-vx ;; 262 *v* ) as_opts=-v ;; 263 *x* ) as_opts=-x ;; 264 * ) as_opts= ;; 265esac 266exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 267# Admittedly, this is quite paranoid, since all the known shells bail 268# out after a failed 'exec'. 269printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 270exit 255 271fi 272 273 if test x$as_have_required = xno 274then : 275 printf "%s\n" "$0: This script requires a shell more modern than all" 276 printf "%s\n" "$0: the shells that I found on your system." 277 if test ${ZSH_VERSION+y} ; then 278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 280 else 281 printf "%s\n" "$0: Please tell [email protected] and 282$0: [email protected] about your 283$0: system, including any error possibly output before this 284$0: message. Then install a modern shell, or manually run 285$0: the script under such a shell if you do have one." 286 fi 287 exit 1 288fi ;; 289esac 290fi 291fi 292SHELL=${CONFIG_SHELL-/bin/sh} 293export SHELL 294# Unset more variables known to interfere with behavior of common tools. 295CLICOLOR_FORCE= GREP_OPTIONS= 296unset CLICOLOR_FORCE GREP_OPTIONS 297 298## --------------------- ## 299## M4sh Shell Functions. ## 300## --------------------- ## 301# as_fn_unset VAR 302# --------------- 303# Portably unset VAR. 304as_fn_unset () 305{ 306 { eval $1=; unset $1;} 307} 308as_unset=as_fn_unset 309 310 311# as_fn_set_status STATUS 312# ----------------------- 313# Set $? to STATUS, without forking. 314as_fn_set_status () 315{ 316 return $1 317} # as_fn_set_status 318 319# as_fn_exit STATUS 320# ----------------- 321# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 322as_fn_exit () 323{ 324 set +e 325 as_fn_set_status $1 326 exit $1 327} # as_fn_exit 328 329# as_fn_mkdir_p 330# ------------- 331# Create "$as_dir" as a directory, including parents if necessary. 332as_fn_mkdir_p () 333{ 334 335 case $as_dir in #( 336 -*) as_dir=./$as_dir;; 337 esac 338 test -d "$as_dir" || eval $as_mkdir_p || { 339 as_dirs= 340 while :; do 341 case $as_dir in #( 342 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 343 *) as_qdir=$as_dir;; 344 esac 345 as_dirs="'$as_qdir' $as_dirs" 346 as_dir=`$as_dirname -- "$as_dir" || 347$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 348 X"$as_dir" : 'X\(//\)[^/]' \| \ 349 X"$as_dir" : 'X\(//\)$' \| \ 350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 351printf "%s\n" X"$as_dir" | 352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 353 s//\1/ 354 q 355 } 356 /^X\(\/\/\)[^/].*/{ 357 s//\1/ 358 q 359 } 360 /^X\(\/\/\)$/{ 361 s//\1/ 362 q 363 } 364 /^X\(\/\).*/{ 365 s//\1/ 366 q 367 } 368 s/.*/./; q'` 369 test -d "$as_dir" && break 370 done 371 test -z "$as_dirs" || eval "mkdir $as_dirs" 372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 373 374 375} # as_fn_mkdir_p 376 377# as_fn_executable_p FILE 378# ----------------------- 379# Test if FILE is an executable regular file. 380as_fn_executable_p () 381{ 382 test -f "$1" && test -x "$1" 383} # as_fn_executable_p 384# as_fn_append VAR VALUE 385# ---------------------- 386# Append the text in VALUE to the end of the definition contained in VAR. Take 387# advantage of any shell optimizations that allow amortized linear growth over 388# repeated appends, instead of the typical quadratic growth present in naive 389# implementations. 390if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 391then : 392 eval 'as_fn_append () 393 { 394 eval $1+=\$2 395 }' 396else case e in #( 397 e) as_fn_append () 398 { 399 eval $1=\$$1\$2 400 } ;; 401esac 402fi # as_fn_append 403 404# as_fn_arith ARG... 405# ------------------ 406# Perform arithmetic evaluation on the ARGs, and store the result in the 407# global $as_val. Take advantage of shells that can avoid forks. The arguments 408# must be portable across $(()) and expr. 409if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 410then : 411 eval 'as_fn_arith () 412 { 413 as_val=$(( $* )) 414 }' 415else case e in #( 416 e) as_fn_arith () 417 { 418 as_val=`expr "$@" || test $? -eq 1` 419 } ;; 420esac 421fi # as_fn_arith 422 423 424# as_fn_error STATUS ERROR [LINENO LOG_FD] 425# ---------------------------------------- 426# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 427# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 428# script with STATUS, using 1 if that was 0. 429as_fn_error () 430{ 431 as_status=$1; test $as_status -eq 0 && as_status=1 432 if test "$4"; then 433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 435 fi 436 printf "%s\n" "$as_me: error: $2" >&2 437 as_fn_exit $as_status 438} # as_fn_error 439 440if expr a : '\(a\)' >/dev/null 2>&1 && 441 test "X`expr 00001 : '.*\(...\)'`" = X001; then 442 as_expr=expr 443else 444 as_expr=false 445fi 446 447if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 448 as_basename=basename 449else 450 as_basename=false 451fi 452 453if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 454 as_dirname=dirname 455else 456 as_dirname=false 457fi 458 459as_me=`$as_basename -- "$0" || 460$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 461 X"$0" : 'X\(//\)$' \| \ 462 X"$0" : 'X\(/\)' \| . 2>/dev/null || 463printf "%s\n" X/"$0" | 464 sed '/^.*\/\([^/][^/]*\)\/*$/{ 465 s//\1/ 466 q 467 } 468 /^X\/\(\/\/\)$/{ 469 s//\1/ 470 q 471 } 472 /^X\/\(\/\).*/{ 473 s//\1/ 474 q 475 } 476 s/.*/./; q'` 477 478# Avoid depending upon Character Ranges. 479as_cr_letters='abcdefghijklmnopqrstuvwxyz' 480as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 481as_cr_Letters=$as_cr_letters$as_cr_LETTERS 482as_cr_digits='0123456789' 483as_cr_alnum=$as_cr_Letters$as_cr_digits 484 485 486 as_lineno_1=$LINENO as_lineno_1a=$LINENO 487 as_lineno_2=$LINENO as_lineno_2a=$LINENO 488 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 489 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 490 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 491 sed -n ' 492 p 493 /[$]LINENO/= 494 ' <$as_myself | 495 sed ' 496 t clear 497 :clear 498 s/[$]LINENO.*/&-/ 499 t lineno 500 b 501 :lineno 502 N 503 :loop 504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 505 t loop 506 s/-\n.*// 507 ' >$as_me.lineno && 508 chmod +x "$as_me.lineno" || 509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 510 511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 512 # already done that, so ensure we don't try to do so again and fall 513 # in an infinite loop. This has already happened in practice. 514 _as_can_reexec=no; export _as_can_reexec 515 # Don't try to exec as it changes $[0], causing all sort of problems 516 # (the dirname of $[0] is not the place where we might find the 517 # original and so on. Autoconf is especially sensitive to this). 518 . "./$as_me.lineno" 519 # Exit status is that of the last command. 520 exit 521} 522 523 524# Determine whether it's possible to make 'echo' print without a newline. 525# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 526# for compatibility with existing Makefiles. 527ECHO_C= ECHO_N= ECHO_T= 528case `echo -n x` in #((((( 529-n*) 530 case `echo 'xy\c'` in 531 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 532 xy) ECHO_C='\c';; 533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 534 ECHO_T=' ';; 535 esac;; 536*) 537 ECHO_N='-n';; 538esac 539 540# For backward compatibility with old third-party macros, we provide 541# the shell variables $as_echo and $as_echo_n. New code should use 542# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 543as_echo='printf %s\n' 544as_echo_n='printf %s' 545 546rm -f conf$$ conf$$.exe conf$$.file 547if test -d conf$$.dir; then 548 rm -f conf$$.dir/conf$$.file 549else 550 rm -f conf$$.dir 551 mkdir conf$$.dir 2>/dev/null 552fi 553if (echo >conf$$.file) 2>/dev/null; then 554 if ln -s conf$$.file conf$$ 2>/dev/null; then 555 as_ln_s='ln -s' 556 # ... but there are two gotchas: 557 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 558 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 559 # In both cases, we have to default to 'cp -pR'. 560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 561 as_ln_s='cp -pR' 562 elif ln conf$$.file conf$$ 2>/dev/null; then 563 as_ln_s=ln 564 else 565 as_ln_s='cp -pR' 566 fi 567else 568 as_ln_s='cp -pR' 569fi 570rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 571rmdir conf$$.dir 2>/dev/null 572 573if mkdir -p . 2>/dev/null; then 574 as_mkdir_p='mkdir -p "$as_dir"' 575else 576 test -d ./-p && rmdir ./-p 577 as_mkdir_p=false 578fi 579 580as_test_x='test -x' 581as_executable_p=as_fn_executable_p 582 583# Sed expression to map a string onto a valid CPP name. 584as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 585as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 586 587# Sed expression to map a string onto a valid variable name. 588as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 589as_tr_sh="eval sed '$as_sed_sh'" # deprecated 590 591SHELL=${CONFIG_SHELL-/bin/sh} 592 593 594test -n "$DJDIR" || exec 7<&0 </dev/null 595exec 6>&1 596 597# Name of the host. 598# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 599# so uname gets run too. 600ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 601 602# 603# Initializations. 604# 605ac_default_prefix=/usr/local 606ac_clean_files= 607ac_config_libobj_dir=. 608LIBOBJS= 609cross_compiling=no 610subdirs= 611MFLAGS= 612MAKEFLAGS= 613 614# Identity of this package. 615PACKAGE_NAME='libpng' 616PACKAGE_TARNAME='libpng' 617PACKAGE_VERSION='1.6.44' 618PACKAGE_STRING='libpng 1.6.44' 619PACKAGE_BUGREPORT='[email protected]' 620PACKAGE_URL='' 621 622ac_unique_file="pngget.c" 623# Factoring default headers for most tests. 624ac_includes_default="\ 625#include <stddef.h> 626#ifdef HAVE_STDIO_H 627# include <stdio.h> 628#endif 629#ifdef HAVE_STDLIB_H 630# include <stdlib.h> 631#endif 632#ifdef HAVE_STRING_H 633# include <string.h> 634#endif 635#ifdef HAVE_INTTYPES_H 636# include <inttypes.h> 637#endif 638#ifdef HAVE_STDINT_H 639# include <stdint.h> 640#endif 641#ifdef HAVE_STRINGS_H 642# include <strings.h> 643#endif 644#ifdef HAVE_SYS_TYPES_H 645# include <sys/types.h> 646#endif 647#ifdef HAVE_SYS_STAT_H 648# include <sys/stat.h> 649#endif 650#ifdef HAVE_UNISTD_H 651# include <unistd.h> 652#endif" 653 654ac_header_c_list= 655ac_subst_vars='am__EXEEXT_FALSE 656am__EXEEXT_TRUE 657LTLIBOBJS 658LIBOBJS 659PNG_LOONGARCH_LSX_FALSE 660PNG_LOONGARCH_LSX_TRUE 661PNG_POWERPC_VSX_FALSE 662PNG_POWERPC_VSX_TRUE 663PNG_INTEL_SSE_FALSE 664PNG_INTEL_SSE_TRUE 665PNG_MIPS_MMI_FALSE 666PNG_MIPS_MMI_TRUE 667PNG_MIPS_MSA_FALSE 668PNG_MIPS_MSA_TRUE 669PNG_ARM_NEON_FALSE 670PNG_ARM_NEON_TRUE 671DO_INSTALL_LIBPNG_CONFIG_FALSE 672DO_INSTALL_LIBPNG_CONFIG_TRUE 673DO_INSTALL_LIBPNG_PC_FALSE 674DO_INSTALL_LIBPNG_PC_TRUE 675DO_INSTALL_LINKS_FALSE 676DO_INSTALL_LINKS_TRUE 677DO_PNG_PREFIX_FALSE 678DO_PNG_PREFIX_TRUE 679PNG_PREFIX 680binconfigs 681pkgconfigdir 682PNGLIB_RELEASE 683PNGLIB_MINOR 684PNGLIB_MAJOR 685PNGLIB_VERSION 686SYMBOL_PREFIX 687HAVE_LD_VERSION_SCRIPT_FALSE 688HAVE_LD_VERSION_SCRIPT_TRUE 689HAVE_SOLARIS_LD_FALSE 690HAVE_SOLARIS_LD_TRUE 691HAVE_CLOCK_GETTIME_FALSE 692HAVE_CLOCK_GETTIME_TRUE 693PNG_COPTS 694ENABLE_TOOLS_FALSE 695ENABLE_TOOLS_TRUE 696ENABLE_TESTS_FALSE 697ENABLE_TESTS_TRUE 698DFNCPP 699LT_SYS_LIBRARY_PATH 700OTOOL64 701OTOOL 702LIPO 703NMEDIT 704DSYMUTIL 705MANIFEST_TOOL 706RANLIB 707ac_ct_AR 708AR 709FILECMD 710NM 711ac_ct_DUMPBIN 712DUMPBIN 713LIBTOOL 714OBJDUMP 715DLLTOOL 716AS 717LN_S 718CPP 719LD 720FGREP 721EGREP 722GREP 723SED 724host_os 725host_vendor 726host_cpu 727host 728build_os 729build_vendor 730build_cpu 731build 732am__fastdepCCAS_FALSE 733am__fastdepCCAS_TRUE 734CCASDEPMODE 735CCASFLAGS 736CCAS 737am__fastdepCC_FALSE 738am__fastdepCC_TRUE 739CCDEPMODE 740am__nodep 741AMDEPBACKSLASH 742AMDEP_FALSE 743AMDEP_TRUE 744am__include 745DEPDIR 746OBJEXT 747EXEEXT 748ac_ct_CC 749CPPFLAGS 750LDFLAGS 751CFLAGS 752CC 753MAINT 754MAINTAINER_MODE_FALSE 755MAINTAINER_MODE_TRUE 756am__xargs_n 757am__rm_f_notfound 758AM_BACKSLASH 759AM_DEFAULT_VERBOSITY 760AM_DEFAULT_V 761AM_V 762CSCOPE 763ETAGS 764CTAGS 765am__untar 766am__tar 767AMTAR 768am__leading_dot 769SET_MAKE 770AWK 771mkdir_p 772MKDIR_P 773INSTALL_STRIP_PROGRAM 774STRIP 775install_sh 776MAKEINFO 777AUTOHEADER 778AUTOMAKE 779AUTOCONF 780ACLOCAL 781VERSION 782PACKAGE 783CYGPATH_W 784am__isrc 785INSTALL_DATA 786INSTALL_SCRIPT 787INSTALL_PROGRAM 788target_alias 789host_alias 790build_alias 791LIBS 792ECHO_T 793ECHO_N 794ECHO_C 795DEFS 796mandir 797localedir 798libdir 799psdir 800pdfdir 801dvidir 802htmldir 803infodir 804docdir 805oldincludedir 806includedir 807runstatedir 808localstatedir 809sharedstatedir 810sysconfdir 811datadir 812datarootdir 813libexecdir 814sbindir 815bindir 816program_transform_name 817prefix 818exec_prefix 819PACKAGE_URL 820PACKAGE_BUGREPORT 821PACKAGE_STRING 822PACKAGE_VERSION 823PACKAGE_TARNAME 824PACKAGE_NAME 825PATH_SEPARATOR 826SHELL 827am__quote' 828ac_subst_files='' 829ac_user_opts=' 830enable_option_checking 831enable_silent_rules 832enable_maintainer_mode 833enable_dependency_tracking 834with_gnu_ld 835enable_shared 836enable_static 837with_pic 838enable_fast_install 839with_aix_soname 840with_sysroot 841enable_libtool_lock 842enable_tests 843enable_tools 844enable_werror 845with_zlib_prefix 846with_pkgconfigdir 847with_binconfigs 848with_libpng_prefix 849enable_unversioned_links 850enable_unversioned_libpng_pc 851enable_unversioned_libpng_config 852enable_hardware_optimizations 853enable_arm_neon 854enable_mips_msa 855enable_mips_mmi 856enable_intel_sse 857enable_powerpc_vsx 858enable_loongarch_lsx 859' 860 ac_precious_vars='build_alias 861host_alias 862target_alias 863CC 864CFLAGS 865LDFLAGS 866LIBS 867CPPFLAGS 868CCAS 869CCASFLAGS 870CPP 871LT_SYS_LIBRARY_PATH 872AWK 873PNG_COPTS' 874 875 876# Initialize some variables set by options. 877ac_init_help= 878ac_init_version=false 879ac_unrecognized_opts= 880ac_unrecognized_sep= 881# The variables have the same names as the options, with 882# dashes changed to underlines. 883cache_file=/dev/null 884exec_prefix=NONE 885no_create= 886no_recursion= 887prefix=NONE 888program_prefix=NONE 889program_suffix=NONE 890program_transform_name=s,x,x, 891silent= 892site= 893srcdir= 894verbose= 895x_includes=NONE 896x_libraries=NONE 897 898# Installation directory options. 899# These are left unexpanded so users can "make install exec_prefix=/foo" 900# and all the variables that are supposed to be based on exec_prefix 901# by default will actually change. 902# Use braces instead of parens because sh, perl, etc. also accept them. 903# (The list follows the same order as the GNU Coding Standards.) 904bindir='${exec_prefix}/bin' 905sbindir='${exec_prefix}/sbin' 906libexecdir='${exec_prefix}/libexec' 907datarootdir='${prefix}/share' 908datadir='${datarootdir}' 909sysconfdir='${prefix}/etc' 910sharedstatedir='${prefix}/com' 911localstatedir='${prefix}/var' 912runstatedir='${localstatedir}/run' 913includedir='${prefix}/include' 914oldincludedir='/usr/include' 915docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 916infodir='${datarootdir}/info' 917htmldir='${docdir}' 918dvidir='${docdir}' 919pdfdir='${docdir}' 920psdir='${docdir}' 921libdir='${exec_prefix}/lib' 922localedir='${datarootdir}/locale' 923mandir='${datarootdir}/man' 924 925ac_prev= 926ac_dashdash= 927for ac_option 928do 929 # If the previous option needs an argument, assign it. 930 if test -n "$ac_prev"; then 931 eval $ac_prev=\$ac_option 932 ac_prev= 933 continue 934 fi 935 936 case $ac_option in 937 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 938 *=) ac_optarg= ;; 939 *) ac_optarg=yes ;; 940 esac 941 942 case $ac_dashdash$ac_option in 943 --) 944 ac_dashdash=yes ;; 945 946 -bindir | --bindir | --bindi | --bind | --bin | --bi) 947 ac_prev=bindir ;; 948 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 949 bindir=$ac_optarg ;; 950 951 -build | --build | --buil | --bui | --bu) 952 ac_prev=build_alias ;; 953 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 954 build_alias=$ac_optarg ;; 955 956 -cache-file | --cache-file | --cache-fil | --cache-fi \ 957 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 958 ac_prev=cache_file ;; 959 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 960 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 961 cache_file=$ac_optarg ;; 962 963 --config-cache | -C) 964 cache_file=config.cache ;; 965 966 -datadir | --datadir | --datadi | --datad) 967 ac_prev=datadir ;; 968 -datadir=* | --datadir=* | --datadi=* | --datad=*) 969 datadir=$ac_optarg ;; 970 971 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 972 | --dataroo | --dataro | --datar) 973 ac_prev=datarootdir ;; 974 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 975 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 976 datarootdir=$ac_optarg ;; 977 978 -disable-* | --disable-*) 979 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 980 # Reject names that are not valid shell variable names. 981 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 982 as_fn_error $? "invalid feature name: '$ac_useropt'" 983 ac_useropt_orig=$ac_useropt 984 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 985 case $ac_user_opts in 986 *" 987"enable_$ac_useropt" 988"*) ;; 989 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 990 ac_unrecognized_sep=', ';; 991 esac 992 eval enable_$ac_useropt=no ;; 993 994 -docdir | --docdir | --docdi | --doc | --do) 995 ac_prev=docdir ;; 996 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 997 docdir=$ac_optarg ;; 998 999 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1000 ac_prev=dvidir ;; 1001 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1002 dvidir=$ac_optarg ;; 1003 1004 -enable-* | --enable-*) 1005 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1006 # Reject names that are not valid shell variable names. 1007 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1008 as_fn_error $? "invalid feature name: '$ac_useropt'" 1009 ac_useropt_orig=$ac_useropt 1010 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1011 case $ac_user_opts in 1012 *" 1013"enable_$ac_useropt" 1014"*) ;; 1015 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1016 ac_unrecognized_sep=', ';; 1017 esac 1018 eval enable_$ac_useropt=\$ac_optarg ;; 1019 1020 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1021 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1022 | --exec | --exe | --ex) 1023 ac_prev=exec_prefix ;; 1024 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1025 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1026 | --exec=* | --exe=* | --ex=*) 1027 exec_prefix=$ac_optarg ;; 1028 1029 -gas | --gas | --ga | --g) 1030 # Obsolete; use --with-gas. 1031 with_gas=yes ;; 1032 1033 -help | --help | --hel | --he | -h) 1034 ac_init_help=long ;; 1035 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1036 ac_init_help=recursive ;; 1037 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1038 ac_init_help=short ;; 1039 1040 -host | --host | --hos | --ho) 1041 ac_prev=host_alias ;; 1042 -host=* | --host=* | --hos=* | --ho=*) 1043 host_alias=$ac_optarg ;; 1044 1045 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1046 ac_prev=htmldir ;; 1047 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1048 | --ht=*) 1049 htmldir=$ac_optarg ;; 1050 1051 -includedir | --includedir | --includedi | --included | --include \ 1052 | --includ | --inclu | --incl | --inc) 1053 ac_prev=includedir ;; 1054 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1055 | --includ=* | --inclu=* | --incl=* | --inc=*) 1056 includedir=$ac_optarg ;; 1057 1058 -infodir | --infodir | --infodi | --infod | --info | --inf) 1059 ac_prev=infodir ;; 1060 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1061 infodir=$ac_optarg ;; 1062 1063 -libdir | --libdir | --libdi | --libd) 1064 ac_prev=libdir ;; 1065 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1066 libdir=$ac_optarg ;; 1067 1068 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1069 | --libexe | --libex | --libe) 1070 ac_prev=libexecdir ;; 1071 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1072 | --libexe=* | --libex=* | --libe=*) 1073 libexecdir=$ac_optarg ;; 1074 1075 -localedir | --localedir | --localedi | --localed | --locale) 1076 ac_prev=localedir ;; 1077 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1078 localedir=$ac_optarg ;; 1079 1080 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1081 | --localstate | --localstat | --localsta | --localst | --locals) 1082 ac_prev=localstatedir ;; 1083 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1084 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1085 localstatedir=$ac_optarg ;; 1086 1087 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1088 ac_prev=mandir ;; 1089 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1090 mandir=$ac_optarg ;; 1091 1092 -nfp | --nfp | --nf) 1093 # Obsolete; use --without-fp. 1094 with_fp=no ;; 1095 1096 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1097 | --no-cr | --no-c | -n) 1098 no_create=yes ;; 1099 1100 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1101 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1102 no_recursion=yes ;; 1103 1104 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1105 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1106 | --oldin | --oldi | --old | --ol | --o) 1107 ac_prev=oldincludedir ;; 1108 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1109 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1110 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1111 oldincludedir=$ac_optarg ;; 1112 1113 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1114 ac_prev=prefix ;; 1115 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1116 prefix=$ac_optarg ;; 1117 1118 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1119 | --program-pre | --program-pr | --program-p) 1120 ac_prev=program_prefix ;; 1121 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1122 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1123 program_prefix=$ac_optarg ;; 1124 1125 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1126 | --program-suf | --program-su | --program-s) 1127 ac_prev=program_suffix ;; 1128 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1129 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1130 program_suffix=$ac_optarg ;; 1131 1132 -program-transform-name | --program-transform-name \ 1133 | --program-transform-nam | --program-transform-na \ 1134 | --program-transform-n | --program-transform- \ 1135 | --program-transform | --program-transfor \ 1136 | --program-transfo | --program-transf \ 1137 | --program-trans | --program-tran \ 1138 | --progr-tra | --program-tr | --program-t) 1139 ac_prev=program_transform_name ;; 1140 -program-transform-name=* | --program-transform-name=* \ 1141 | --program-transform-nam=* | --program-transform-na=* \ 1142 | --program-transform-n=* | --program-transform-=* \ 1143 | --program-transform=* | --program-transfor=* \ 1144 | --program-transfo=* | --program-transf=* \ 1145 | --program-trans=* | --program-tran=* \ 1146 | --progr-tra=* | --program-tr=* | --program-t=*) 1147 program_transform_name=$ac_optarg ;; 1148 1149 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1150 ac_prev=pdfdir ;; 1151 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1152 pdfdir=$ac_optarg ;; 1153 1154 -psdir | --psdir | --psdi | --psd | --ps) 1155 ac_prev=psdir ;; 1156 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1157 psdir=$ac_optarg ;; 1158 1159 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1160 | -silent | --silent | --silen | --sile | --sil) 1161 silent=yes ;; 1162 1163 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1164 | --runstate | --runstat | --runsta | --runst | --runs \ 1165 | --run | --ru | --r) 1166 ac_prev=runstatedir ;; 1167 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1168 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1169 | --run=* | --ru=* | --r=*) 1170 runstatedir=$ac_optarg ;; 1171 1172 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1173 ac_prev=sbindir ;; 1174 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1175 | --sbi=* | --sb=*) 1176 sbindir=$ac_optarg ;; 1177 1178 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1179 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1180 | --sharedst | --shareds | --shared | --share | --shar \ 1181 | --sha | --sh) 1182 ac_prev=sharedstatedir ;; 1183 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1184 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1185 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1186 | --sha=* | --sh=*) 1187 sharedstatedir=$ac_optarg ;; 1188 1189 -site | --site | --sit) 1190 ac_prev=site ;; 1191 -site=* | --site=* | --sit=*) 1192 site=$ac_optarg ;; 1193 1194 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1195 ac_prev=srcdir ;; 1196 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1197 srcdir=$ac_optarg ;; 1198 1199 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1200 | --syscon | --sysco | --sysc | --sys | --sy) 1201 ac_prev=sysconfdir ;; 1202 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1203 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1204 sysconfdir=$ac_optarg ;; 1205 1206 -target | --target | --targe | --targ | --tar | --ta | --t) 1207 ac_prev=target_alias ;; 1208 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1209 target_alias=$ac_optarg ;; 1210 1211 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1212 verbose=yes ;; 1213 1214 -version | --version | --versio | --versi | --vers | -V) 1215 ac_init_version=: ;; 1216 1217 -with-* | --with-*) 1218 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1219 # Reject names that are not valid shell variable names. 1220 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1221 as_fn_error $? "invalid package name: '$ac_useropt'" 1222 ac_useropt_orig=$ac_useropt 1223 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1224 case $ac_user_opts in 1225 *" 1226"with_$ac_useropt" 1227"*) ;; 1228 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1229 ac_unrecognized_sep=', ';; 1230 esac 1231 eval with_$ac_useropt=\$ac_optarg ;; 1232 1233 -without-* | --without-*) 1234 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1235 # Reject names that are not valid shell variable names. 1236 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1237 as_fn_error $? "invalid package name: '$ac_useropt'" 1238 ac_useropt_orig=$ac_useropt 1239 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1240 case $ac_user_opts in 1241 *" 1242"with_$ac_useropt" 1243"*) ;; 1244 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1245 ac_unrecognized_sep=', ';; 1246 esac 1247 eval with_$ac_useropt=no ;; 1248 1249 --x) 1250 # Obsolete; use --with-x. 1251 with_x=yes ;; 1252 1253 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1254 | --x-incl | --x-inc | --x-in | --x-i) 1255 ac_prev=x_includes ;; 1256 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1257 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1258 x_includes=$ac_optarg ;; 1259 1260 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1261 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1262 ac_prev=x_libraries ;; 1263 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1264 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1265 x_libraries=$ac_optarg ;; 1266 1267 -*) as_fn_error $? "unrecognized option: '$ac_option' 1268Try '$0 --help' for more information" 1269 ;; 1270 1271 *=*) 1272 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1273 # Reject names that are not valid shell variable names. 1274 case $ac_envvar in #( 1275 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1276 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1277 esac 1278 eval $ac_envvar=\$ac_optarg 1279 export $ac_envvar ;; 1280 1281 *) 1282 # FIXME: should be removed in autoconf 3.0. 1283 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1284 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1285 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1286 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1287 ;; 1288 1289 esac 1290done 1291 1292if test -n "$ac_prev"; then 1293 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1294 as_fn_error $? "missing argument to $ac_option" 1295fi 1296 1297if test -n "$ac_unrecognized_opts"; then 1298 case $enable_option_checking in 1299 no) ;; 1300 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1301 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1302 esac 1303fi 1304 1305# Check all directory arguments for consistency. 1306for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1307 datadir sysconfdir sharedstatedir localstatedir includedir \ 1308 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1309 libdir localedir mandir runstatedir 1310do 1311 eval ac_val=\$$ac_var 1312 # Remove trailing slashes. 1313 case $ac_val in 1314 */ ) 1315 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1316 eval $ac_var=\$ac_val;; 1317 esac 1318 # Be sure to have absolute directory names. 1319 case $ac_val in 1320 [\\/$]* | ?:[\\/]* ) continue;; 1321 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1322 esac 1323 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1324done 1325 1326# There might be people who depend on the old broken behavior: '$host' 1327# used to hold the argument of --host etc. 1328# FIXME: To remove some day. 1329build=$build_alias 1330host=$host_alias 1331target=$target_alias 1332 1333# FIXME: To remove some day. 1334if test "x$host_alias" != x; then 1335 if test "x$build_alias" = x; then 1336 cross_compiling=maybe 1337 elif test "x$build_alias" != "x$host_alias"; then 1338 cross_compiling=yes 1339 fi 1340fi 1341 1342ac_tool_prefix= 1343test -n "$host_alias" && ac_tool_prefix=$host_alias- 1344 1345test "$silent" = yes && exec 6>/dev/null 1346 1347 1348ac_pwd=`pwd` && test -n "$ac_pwd" && 1349ac_ls_di=`ls -di .` && 1350ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1351 as_fn_error $? "working directory cannot be determined" 1352test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1353 as_fn_error $? "pwd does not report name of working directory" 1354 1355 1356# Find the source files, if location was not specified. 1357if test -z "$srcdir"; then 1358 ac_srcdir_defaulted=yes 1359 # Try the directory containing this script, then the parent directory. 1360 ac_confdir=`$as_dirname -- "$as_myself" || 1361$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1362 X"$as_myself" : 'X\(//\)[^/]' \| \ 1363 X"$as_myself" : 'X\(//\)$' \| \ 1364 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1365printf "%s\n" X"$as_myself" | 1366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1367 s//\1/ 1368 q 1369 } 1370 /^X\(\/\/\)[^/].*/{ 1371 s//\1/ 1372 q 1373 } 1374 /^X\(\/\/\)$/{ 1375 s//\1/ 1376 q 1377 } 1378 /^X\(\/\).*/{ 1379 s//\1/ 1380 q 1381 } 1382 s/.*/./; q'` 1383 srcdir=$ac_confdir 1384 if test ! -r "$srcdir/$ac_unique_file"; then 1385 srcdir=.. 1386 fi 1387else 1388 ac_srcdir_defaulted=no 1389fi 1390if test ! -r "$srcdir/$ac_unique_file"; then 1391 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1392 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1393fi 1394ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1395ac_abs_confdir=`( 1396 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1397 pwd)` 1398# When building in place, set srcdir=. 1399if test "$ac_abs_confdir" = "$ac_pwd"; then 1400 srcdir=. 1401fi 1402# Remove unnecessary trailing slashes from srcdir. 1403# Double slashes in file names in object file debugging info 1404# mess up M-x gdb in Emacs. 1405case $srcdir in 1406*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1407esac 1408for ac_var in $ac_precious_vars; do 1409 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1410 eval ac_env_${ac_var}_value=\$${ac_var} 1411 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1412 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1413done 1414 1415# 1416# Report the --help message. 1417# 1418if test "$ac_init_help" = "long"; then 1419 # Omit some internal or obsolete options to make the list less imposing. 1420 # This message is too long to be a string in the A/UX 3.1 sh. 1421 cat <<_ACEOF 1422'configure' configures libpng 1.6.44 to adapt to many kinds of systems. 1423 1424Usage: $0 [OPTION]... [VAR=VALUE]... 1425 1426To assign environment variables (e.g., CC, CFLAGS...), specify them as 1427VAR=VALUE. See below for descriptions of some of the useful variables. 1428 1429Defaults for the options are specified in brackets. 1430 1431Configuration: 1432 -h, --help display this help and exit 1433 --help=short display options specific to this package 1434 --help=recursive display the short help of all the included packages 1435 -V, --version display version information and exit 1436 -q, --quiet, --silent do not print 'checking ...' messages 1437 --cache-file=FILE cache test results in FILE [disabled] 1438 -C, --config-cache alias for '--cache-file=config.cache' 1439 -n, --no-create do not create output files 1440 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1441 1442Installation directories: 1443 --prefix=PREFIX install architecture-independent files in PREFIX 1444 [$ac_default_prefix] 1445 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1446 [PREFIX] 1447 1448By default, 'make install' will install all the files in 1449'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1450an installation prefix other than '$ac_default_prefix' using '--prefix', 1451for instance '--prefix=\$HOME'. 1452 1453For better control, use the options below. 1454 1455Fine tuning of the installation directories: 1456 --bindir=DIR user executables [EPREFIX/bin] 1457 --sbindir=DIR system admin executables [EPREFIX/sbin] 1458 --libexecdir=DIR program executables [EPREFIX/libexec] 1459 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1460 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1461 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1462 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1463 --libdir=DIR object code libraries [EPREFIX/lib] 1464 --includedir=DIR C header files [PREFIX/include] 1465 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1466 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1467 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1468 --infodir=DIR info documentation [DATAROOTDIR/info] 1469 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1470 --mandir=DIR man documentation [DATAROOTDIR/man] 1471 --docdir=DIR documentation root [DATAROOTDIR/doc/libpng] 1472 --htmldir=DIR html documentation [DOCDIR] 1473 --dvidir=DIR dvi documentation [DOCDIR] 1474 --pdfdir=DIR pdf documentation [DOCDIR] 1475 --psdir=DIR ps documentation [DOCDIR] 1476_ACEOF 1477 1478 cat <<\_ACEOF 1479 1480Program names: 1481 --program-prefix=PREFIX prepend PREFIX to installed program names 1482 --program-suffix=SUFFIX append SUFFIX to installed program names 1483 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1484 1485System types: 1486 --build=BUILD configure for building on BUILD [guessed] 1487 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1488_ACEOF 1489fi 1490 1491if test -n "$ac_init_help"; then 1492 case $ac_init_help in 1493 short | recursive ) echo "Configuration of libpng 1.6.44:";; 1494 esac 1495 cat <<\_ACEOF 1496 1497Optional Features: 1498 --disable-option-checking ignore unrecognized --enable/--with options 1499 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1500 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1501 --enable-silent-rules less verbose build output (undo: "make V=1") 1502 --disable-silent-rules verbose build output (undo: "make V=0") 1503 --enable-maintainer-mode 1504 enable make rules and dependencies not useful (and 1505 sometimes confusing) to the casual installer 1506 --enable-dependency-tracking 1507 do not reject slow dependency extractors 1508 --disable-dependency-tracking 1509 speeds up one-time build 1510 --enable-shared[=PKGS] build shared libraries [default=yes] 1511 --enable-static[=PKGS] build static libraries [default=yes] 1512 --enable-fast-install[=PKGS] 1513 optimize for fast installation [default=yes] 1514 --disable-libtool-lock avoid locking (might break parallel builds) 1515 --disable-tests do not build the test programs (default is to build) 1516 --disable-tools do not build the auxiliary tools (default is to 1517 build) 1518 --enable-werror[=OPT] Pass -Werror or the given argument to the compiler 1519 if it is supported 1520 --enable-unversioned-links 1521 Installed libpng header files are placed in a 1522 versioned subdirectory and installed libpng library 1523 (including DLL) files are versioned. If this option 1524 is enabled unversioned links will be created 1525 pointing to the corresponding installed files. If 1526 you use libpng.pc or libpng-config for all builds 1527 you do not need these links, but if you compile 1528 programs directly they will typically #include 1529 <png.h> and link with -lpng; in that case you need 1530 the links. The links can be installed manually using 1531 'make install-header-links' and 'make 1532 install-library-links' and can be removed using the 1533 corresponding uninstall- targets. If you do enable 1534 this option every libpng 'make install' will 1535 recreate the links to point to the just installed 1536 version of libpng. The default is to create the 1537 links; use --disable-unversioned-links to change 1538 this 1539 --enable-unversioned-libpng-pc 1540 Install the configuration file 'libpng.pc' as a link 1541 to the versioned version. This is done by default - 1542 use --disable-unversioned-libpng-pc to change this. 1543 --enable-unversioned-libpng-config 1544 Install the configuration file 'libpng-config' as a 1545 link to the versioned version. This is done by 1546 default - use --disable-unversioned-libpng-config to 1547 change this. 1548 --enable-hardware-optimizations 1549 Enable hardware optimizations: =no/off, yes/on. 1550 --enable-arm-neon Enable ARM NEON optimizations: =no/off, check, api, 1551 yes/on. no/off: disable the optimizations; check: 1552 use internal checking code (deprecated and poorly 1553 supported); api: disable by default, enable by a 1554 call to png_set_option; yes/on: turn on 1555 unconditionally. If not specified: determined by the 1556 compiler. 1557 --enable-mips-msa Enable MIPS MSA optimizations: =no/off, check, api, 1558 yes/on. no/off: disable the optimizations; check: 1559 use internal checking code (deprecated and poorly 1560 supported); api: disable by default, enable by a 1561 call to png_set_option; yes/on: turn on 1562 unconditionally. If not specified: determined by the 1563 compiler. 1564 --enable-mips-mmi Enable MIPS MMI optimizations: =no/off, check, api, 1565 yes/on. no/off: disable the optimizations; check: 1566 use internal checking code (deprecated and poorly 1567 supported); api: disable by default, enable by a 1568 call to png_set_option; yes/on: turn on 1569 unconditionally. If not specified: determined by the 1570 compiler. 1571 --enable-intel-sse Enable Intel SSE optimizations: =no/off, yes/on. 1572 no/off: disable the optimizations; yes/on: enable 1573 the optimizations. If not specified: determined by 1574 the compiler. 1575 --enable-powerpc-vsx Enable POWERPC VSX optimizations: =no/off, check, 1576 api, yes/on. no/off: disable the optimizations; 1577 check: use internal checking code; api: disable by 1578 default, enable by a call to png_set_option; yes/on: 1579 turn on unconditionally. If not specified: 1580 determined by the compiler. 1581 --enable-loongarch-lsx 1582 Enable LOONGARCH LSX optimizations: =no/off, yes/on: 1583 no/off: disable the optimizations; yes/on: turn on 1584 unconditionally. If not specified: determined by the 1585 compiler. 1586 1587Optional Packages: 1588 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1589 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1590 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1591 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1592 both] 1593 --with-aix-soname=aix|svr4|both 1594 shared library versioning (aka "SONAME") variant to 1595 provide on AIX, [default=aix]. 1596 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1597 compiler's sysroot if not specified). 1598 --with-zlib-prefix prefix that may have been used in installed zlib 1599 --with-pkgconfigdir Use the specified pkgconfig dir (default is 1600 libdir/pkgconfig) 1601 --with-binconfigs Generate shell libpng-config scripts as well as 1602 pkg-config data [default=yes] 1603 --with-libpng-prefix prefix libpng exported function (API) names with the 1604 given value 1605 1606Some influential environment variables: 1607 CC C compiler command 1608 CFLAGS C compiler flags 1609 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1610 nonstandard directory <lib dir> 1611 LIBS libraries to pass to the linker, e.g. -l<library> 1612 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1613 you have headers in a nonstandard directory <include dir> 1614 CCAS assembler compiler command (defaults to CC) 1615 CCASFLAGS assembler compiler flags (defaults to CFLAGS) 1616 CPP C preprocessor 1617 LT_SYS_LIBRARY_PATH 1618 User-defined run-time library search path. 1619 AWK AWK language processor 1620 PNG_COPTS additional flags for the C compiler, to be used for options that 1621 would cause configure itself to fail 1622 1623Use these variables to override the choices made by 'configure' or to help 1624it to find libraries and programs with nonstandard names/locations. 1625 1626Report bugs to <[email protected]>. 1627_ACEOF 1628ac_status=$? 1629fi 1630 1631if test "$ac_init_help" = "recursive"; then 1632 # If there are subdirs, report their specific --help. 1633 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1634 test -d "$ac_dir" || 1635 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1636 continue 1637 ac_builddir=. 1638 1639case "$ac_dir" in 1640.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1641*) 1642 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1643 # A ".." for each directory in $ac_dir_suffix. 1644 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1645 case $ac_top_builddir_sub in 1646 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1647 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1648 esac ;; 1649esac 1650ac_abs_top_builddir=$ac_pwd 1651ac_abs_builddir=$ac_pwd$ac_dir_suffix 1652# for backward compatibility: 1653ac_top_builddir=$ac_top_build_prefix 1654 1655case $srcdir in 1656 .) # We are building in place. 1657 ac_srcdir=. 1658 ac_top_srcdir=$ac_top_builddir_sub 1659 ac_abs_top_srcdir=$ac_pwd ;; 1660 [\\/]* | ?:[\\/]* ) # Absolute name. 1661 ac_srcdir=$srcdir$ac_dir_suffix; 1662 ac_top_srcdir=$srcdir 1663 ac_abs_top_srcdir=$srcdir ;; 1664 *) # Relative name. 1665 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1666 ac_top_srcdir=$ac_top_build_prefix$srcdir 1667 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1668esac 1669ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1670 1671 cd "$ac_dir" || { ac_status=$?; continue; } 1672 # Check for configure.gnu first; this name is used for a wrapper for 1673 # Metaconfig's "Configure" on case-insensitive file systems. 1674 if test -f "$ac_srcdir/configure.gnu"; then 1675 echo && 1676 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1677 elif test -f "$ac_srcdir/configure"; then 1678 echo && 1679 $SHELL "$ac_srcdir/configure" --help=recursive 1680 else 1681 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1682 fi || ac_status=$? 1683 cd "$ac_pwd" || { ac_status=$?; break; } 1684 done 1685fi 1686 1687test -n "$ac_init_help" && exit $ac_status 1688if $ac_init_version; then 1689 cat <<\_ACEOF 1690libpng configure 1.6.44 1691generated by GNU Autoconf 2.72 1692 1693Copyright (C) 2023 Free Software Foundation, Inc. 1694This configure script is free software; the Free Software Foundation 1695gives unlimited permission to copy, distribute and modify it. 1696_ACEOF 1697 exit 1698fi 1699 1700## ------------------------ ## 1701## Autoconf initialization. ## 1702## ------------------------ ## 1703 1704# ac_fn_c_try_compile LINENO 1705# -------------------------- 1706# Try to compile conftest.$ac_ext, and return whether this succeeded. 1707ac_fn_c_try_compile () 1708{ 1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1710 rm -f conftest.$ac_objext conftest.beam 1711 if { { ac_try="$ac_compile" 1712case "(($ac_try" in 1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1714 *) ac_try_echo=$ac_try;; 1715esac 1716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1717printf "%s\n" "$ac_try_echo"; } >&5 1718 (eval "$ac_compile") 2>conftest.err 1719 ac_status=$? 1720 if test -s conftest.err; then 1721 grep -v '^ *+' conftest.err >conftest.er1 1722 cat conftest.er1 >&5 1723 mv -f conftest.er1 conftest.err 1724 fi 1725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1726 test $ac_status = 0; } && { 1727 test -z "$ac_c_werror_flag" || 1728 test ! -s conftest.err 1729 } && test -s conftest.$ac_objext 1730then : 1731 ac_retval=0 1732else case e in #( 1733 e) printf "%s\n" "$as_me: failed program was:" >&5 1734sed 's/^/| /' conftest.$ac_ext >&5 1735 1736 ac_retval=1 ;; 1737esac 1738fi 1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1740 as_fn_set_status $ac_retval 1741 1742} # ac_fn_c_try_compile 1743 1744# ac_fn_c_try_cpp LINENO 1745# ---------------------- 1746# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1747ac_fn_c_try_cpp () 1748{ 1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1750 if { { ac_try="$ac_cpp conftest.$ac_ext" 1751case "(($ac_try" in 1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1753 *) ac_try_echo=$ac_try;; 1754esac 1755eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1756printf "%s\n" "$ac_try_echo"; } >&5 1757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1758 ac_status=$? 1759 if test -s conftest.err; then 1760 grep -v '^ *+' conftest.err >conftest.er1 1761 cat conftest.er1 >&5 1762 mv -f conftest.er1 conftest.err 1763 fi 1764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1765 test $ac_status = 0; } > conftest.i && { 1766 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1767 test ! -s conftest.err 1768 } 1769then : 1770 ac_retval=0 1771else case e in #( 1772 e) printf "%s\n" "$as_me: failed program was:" >&5 1773sed 's/^/| /' conftest.$ac_ext >&5 1774 1775 ac_retval=1 ;; 1776esac 1777fi 1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1779 as_fn_set_status $ac_retval 1780 1781} # ac_fn_c_try_cpp 1782 1783# ac_fn_c_try_link LINENO 1784# ----------------------- 1785# Try to link conftest.$ac_ext, and return whether this succeeded. 1786ac_fn_c_try_link () 1787{ 1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1789 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1790 if { { ac_try="$ac_link" 1791case "(($ac_try" in 1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1793 *) ac_try_echo=$ac_try;; 1794esac 1795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1796printf "%s\n" "$ac_try_echo"; } >&5 1797 (eval "$ac_link") 2>conftest.err 1798 ac_status=$? 1799 if test -s conftest.err; then 1800 grep -v '^ *+' conftest.err >conftest.er1 1801 cat conftest.er1 >&5 1802 mv -f conftest.er1 conftest.err 1803 fi 1804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1805 test $ac_status = 0; } && { 1806 test -z "$ac_c_werror_flag" || 1807 test ! -s conftest.err 1808 } && test -s conftest$ac_exeext && { 1809 test "$cross_compiling" = yes || 1810 test -x conftest$ac_exeext 1811 } 1812then : 1813 ac_retval=0 1814else case e in #( 1815 e) printf "%s\n" "$as_me: failed program was:" >&5 1816sed 's/^/| /' conftest.$ac_ext >&5 1817 1818 ac_retval=1 ;; 1819esac 1820fi 1821 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1822 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1823 # interfere with the next link command; also delete a directory that is 1824 # left behind by Apple's compiler. We do this before executing the actions. 1825 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1827 as_fn_set_status $ac_retval 1828 1829} # ac_fn_c_try_link 1830 1831# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1832# ------------------------------------------------------- 1833# Tests whether HEADER exists and can be compiled using the include files in 1834# INCLUDES, setting the cache variable VAR accordingly. 1835ac_fn_c_check_header_compile () 1836{ 1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1839printf %s "checking for $2... " >&6; } 1840if eval test \${$3+y} 1841then : 1842 printf %s "(cached) " >&6 1843else case e in #( 1844 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1845/* end confdefs.h. */ 1846$4 1847#include <$2> 1848_ACEOF 1849if ac_fn_c_try_compile "$LINENO" 1850then : 1851 eval "$3=yes" 1852else case e in #( 1853 e) eval "$3=no" ;; 1854esac 1855fi 1856rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1857esac 1858fi 1859eval ac_res=\$$3 1860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1861printf "%s\n" "$ac_res" >&6; } 1862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1863 1864} # ac_fn_c_check_header_compile 1865 1866# ac_fn_c_check_func LINENO FUNC VAR 1867# ---------------------------------- 1868# Tests whether FUNC exists, setting the cache variable VAR accordingly 1869ac_fn_c_check_func () 1870{ 1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1873printf %s "checking for $2... " >&6; } 1874if eval test \${$3+y} 1875then : 1876 printf %s "(cached) " >&6 1877else case e in #( 1878 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1879/* end confdefs.h. */ 1880/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1881 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1882#define $2 innocuous_$2 1883 1884/* System header to define __stub macros and hopefully few prototypes, 1885 which can conflict with char $2 (void); below. */ 1886 1887#include <limits.h> 1888#undef $2 1889 1890/* Override any GCC internal prototype to avoid an error. 1891 Use char because int might match the return type of a GCC 1892 builtin and then its argument prototype would still apply. */ 1893#ifdef __cplusplus 1894extern "C" 1895#endif 1896char $2 (void); 1897/* The GNU C library defines this for functions which it implements 1898 to always fail with ENOSYS. Some functions are actually named 1899 something starting with __ and the normal name is an alias. */ 1900#if defined __stub_$2 || defined __stub___$2 1901choke me 1902#endif 1903 1904int 1905main (void) 1906{ 1907return $2 (); 1908 ; 1909 return 0; 1910} 1911_ACEOF 1912if ac_fn_c_try_link "$LINENO" 1913then : 1914 eval "$3=yes" 1915else case e in #( 1916 e) eval "$3=no" ;; 1917esac 1918fi 1919rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1920 conftest$ac_exeext conftest.$ac_ext ;; 1921esac 1922fi 1923eval ac_res=\$$3 1924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1925printf "%s\n" "$ac_res" >&6; } 1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1927 1928} # ac_fn_c_check_func 1929ac_configure_args_raw= 1930for ac_arg 1931do 1932 case $ac_arg in 1933 *\'*) 1934 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1935 esac 1936 as_fn_append ac_configure_args_raw " '$ac_arg'" 1937done 1938 1939case $ac_configure_args_raw in 1940 *$as_nl*) 1941 ac_safe_unquote= ;; 1942 *) 1943 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1944 ac_unsafe_a="$ac_unsafe_z#~" 1945 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1946 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1947esac 1948 1949cat >config.log <<_ACEOF 1950This file contains any messages produced by compilers while 1951running configure, to aid debugging if configure makes a mistake. 1952 1953It was created by libpng $as_me 1.6.44, which was 1954generated by GNU Autoconf 2.72. Invocation command line was 1955 1956 $ $0$ac_configure_args_raw 1957 1958_ACEOF 1959exec 5>>config.log 1960{ 1961cat <<_ASUNAME 1962## --------- ## 1963## Platform. ## 1964## --------- ## 1965 1966hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1967uname -m = `(uname -m) 2>/dev/null || echo unknown` 1968uname -r = `(uname -r) 2>/dev/null || echo unknown` 1969uname -s = `(uname -s) 2>/dev/null || echo unknown` 1970uname -v = `(uname -v) 2>/dev/null || echo unknown` 1971 1972/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1973/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1974 1975/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1976/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1977/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1978/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1979/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1980/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1981/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1982 1983_ASUNAME 1984 1985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1986for as_dir in $PATH 1987do 1988 IFS=$as_save_IFS 1989 case $as_dir in #((( 1990 '') as_dir=./ ;; 1991 */) ;; 1992 *) as_dir=$as_dir/ ;; 1993 esac 1994 printf "%s\n" "PATH: $as_dir" 1995 done 1996IFS=$as_save_IFS 1997 1998} >&5 1999 2000cat >&5 <<_ACEOF 2001 2002 2003## ----------- ## 2004## Core tests. ## 2005## ----------- ## 2006 2007_ACEOF 2008 2009 2010# Keep a trace of the command line. 2011# Strip out --no-create and --no-recursion so they do not pile up. 2012# Strip out --silent because we don't want to record it for future runs. 2013# Also quote any args containing shell meta-characters. 2014# Make two passes to allow for proper duplicate-argument suppression. 2015ac_configure_args= 2016ac_configure_args0= 2017ac_configure_args1= 2018ac_must_keep_next=false 2019for ac_pass in 1 2 2020do 2021 for ac_arg 2022 do 2023 case $ac_arg in 2024 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2025 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2026 | -silent | --silent | --silen | --sile | --sil) 2027 continue ;; 2028 *\'*) 2029 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2030 esac 2031 case $ac_pass in 2032 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2033 2) 2034 as_fn_append ac_configure_args1 " '$ac_arg'" 2035 if test $ac_must_keep_next = true; then 2036 ac_must_keep_next=false # Got value, back to normal. 2037 else 2038 case $ac_arg in 2039 *=* | --config-cache | -C | -disable-* | --disable-* \ 2040 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2041 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2042 | -with-* | --with-* | -without-* | --without-* | --x) 2043 case "$ac_configure_args0 " in 2044 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2045 esac 2046 ;; 2047 -* ) ac_must_keep_next=true ;; 2048 esac 2049 fi 2050 as_fn_append ac_configure_args " '$ac_arg'" 2051 ;; 2052 esac 2053 done 2054done 2055{ ac_configure_args0=; unset ac_configure_args0;} 2056{ ac_configure_args1=; unset ac_configure_args1;} 2057 2058# When interrupted or exit'd, cleanup temporary files, and complete 2059# config.log. We remove comments because anyway the quotes in there 2060# would cause problems or look ugly. 2061# WARNING: Use '\'' to represent an apostrophe within the trap. 2062# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2063trap 'exit_status=$? 2064 # Sanitize IFS. 2065 IFS=" "" $as_nl" 2066 # Save into config.log some information that might help in debugging. 2067 { 2068 echo 2069 2070 printf "%s\n" "## ---------------- ## 2071## Cache variables. ## 2072## ---------------- ##" 2073 echo 2074 # The following way of writing the cache mishandles newlines in values, 2075( 2076 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2077 eval ac_val=\$$ac_var 2078 case $ac_val in #( 2079 *${as_nl}*) 2080 case $ac_var in #( 2081 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2082printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2083 esac 2084 case $ac_var in #( 2085 _ | IFS | as_nl) ;; #( 2086 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2087 *) { eval $ac_var=; unset $ac_var;} ;; 2088 esac ;; 2089 esac 2090 done 2091 (set) 2>&1 | 2092 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2093 *${as_nl}ac_space=\ *) 2094 sed -n \ 2095 "s/'\''/'\''\\\\'\'''\''/g; 2096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2097 ;; #( 2098 *) 2099 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2100 ;; 2101 esac | 2102 sort 2103) 2104 echo 2105 2106 printf "%s\n" "## ----------------- ## 2107## Output variables. ## 2108## ----------------- ##" 2109 echo 2110 for ac_var in $ac_subst_vars 2111 do 2112 eval ac_val=\$$ac_var 2113 case $ac_val in 2114 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2115 esac 2116 printf "%s\n" "$ac_var='\''$ac_val'\''" 2117 done | sort 2118 echo 2119 2120 if test -n "$ac_subst_files"; then 2121 printf "%s\n" "## ------------------- ## 2122## File substitutions. ## 2123## ------------------- ##" 2124 echo 2125 for ac_var in $ac_subst_files 2126 do 2127 eval ac_val=\$$ac_var 2128 case $ac_val in 2129 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2130 esac 2131 printf "%s\n" "$ac_var='\''$ac_val'\''" 2132 done | sort 2133 echo 2134 fi 2135 2136 if test -s confdefs.h; then 2137 printf "%s\n" "## ----------- ## 2138## confdefs.h. ## 2139## ----------- ##" 2140 echo 2141 cat confdefs.h 2142 echo 2143 fi 2144 test "$ac_signal" != 0 && 2145 printf "%s\n" "$as_me: caught signal $ac_signal" 2146 printf "%s\n" "$as_me: exit $exit_status" 2147 } >&5 2148 rm -f core *.core core.conftest.* && 2149 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2150 exit $exit_status 2151' 0 2152for ac_signal in 1 2 13 15; do 2153 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2154done 2155ac_signal=0 2156 2157# confdefs.h avoids OS command line length limits that DEFS can exceed. 2158rm -f -r conftest* confdefs.h 2159 2160printf "%s\n" "/* confdefs.h */" > confdefs.h 2161 2162# Predefined preprocessor variables. 2163 2164printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2165 2166printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2167 2168printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2169 2170printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2171 2172printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2173 2174printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2175 2176 2177# Let the site file select an alternate cache file if it wants to. 2178# Prefer an explicitly selected file to automatically selected ones. 2179if test -n "$CONFIG_SITE"; then 2180 ac_site_files="$CONFIG_SITE" 2181elif test "x$prefix" != xNONE; then 2182 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2183else 2184 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2185fi 2186 2187for ac_site_file in $ac_site_files 2188do 2189 case $ac_site_file in #( 2190 */*) : 2191 ;; #( 2192 *) : 2193 ac_site_file=./$ac_site_file ;; 2194esac 2195 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2197printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2198 sed 's/^/| /' "$ac_site_file" >&5 2199 . "$ac_site_file" \ 2200 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2201printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2202as_fn_error $? "failed to load site script $ac_site_file 2203See 'config.log' for more details" "$LINENO" 5; } 2204 fi 2205done 2206 2207if test -r "$cache_file"; then 2208 # Some versions of bash will fail to source /dev/null (special files 2209 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2210 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2212printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2213 case $cache_file in 2214 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2215 *) . "./$cache_file";; 2216 esac 2217 fi 2218else 2219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2220printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2221 >$cache_file 2222fi 2223 2224# Test code for whether the C compiler supports C89 (global declarations) 2225ac_c_conftest_c89_globals=' 2226/* Does the compiler advertise C89 conformance? 2227 Do not test the value of __STDC__, because some compilers set it to 0 2228 while being otherwise adequately conformant. */ 2229#if !defined __STDC__ 2230# error "Compiler does not advertise C89 conformance" 2231#endif 2232 2233#include <stddef.h> 2234#include <stdarg.h> 2235struct stat; 2236/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2237struct buf { int x; }; 2238struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2239static char *e (char **p, int i) 2240{ 2241 return p[i]; 2242} 2243static char *f (char * (*g) (char **, int), char **p, ...) 2244{ 2245 char *s; 2246 va_list v; 2247 va_start (v,p); 2248 s = g (p, va_arg (v,int)); 2249 va_end (v); 2250 return s; 2251} 2252 2253/* C89 style stringification. */ 2254#define noexpand_stringify(a) #a 2255const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2256 2257/* C89 style token pasting. Exercises some of the corner cases that 2258 e.g. old MSVC gets wrong, but not very hard. */ 2259#define noexpand_concat(a,b) a##b 2260#define expand_concat(a,b) noexpand_concat(a,b) 2261extern int vA; 2262extern int vbee; 2263#define aye A 2264#define bee B 2265int *pvA = &expand_concat(v,aye); 2266int *pvbee = &noexpand_concat(v,bee); 2267 2268/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2269 function prototypes and stuff, but not \xHH hex character constants. 2270 These do not provoke an error unfortunately, instead are silently treated 2271 as an "x". The following induces an error, until -std is added to get 2272 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2273 array size at least. It is necessary to write \x00 == 0 to get something 2274 that is true only with -std. */ 2275int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2276 2277/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2278 inside strings and character constants. */ 2279#define FOO(x) '\''x'\'' 2280int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2281 2282int test (int i, double x); 2283struct s1 {int (*f) (int a);}; 2284struct s2 {int (*f) (double a);}; 2285int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2286 int, int);' 2287 2288# Test code for whether the C compiler supports C89 (body of main). 2289ac_c_conftest_c89_main=' 2290ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2291' 2292 2293# Test code for whether the C compiler supports C99 (global declarations) 2294ac_c_conftest_c99_globals=' 2295/* Does the compiler advertise C99 conformance? */ 2296#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2297# error "Compiler does not advertise C99 conformance" 2298#endif 2299 2300// See if C++-style comments work. 2301 2302#include <stdbool.h> 2303extern int puts (const char *); 2304extern int printf (const char *, ...); 2305extern int dprintf (int, const char *, ...); 2306extern void *malloc (size_t); 2307extern void free (void *); 2308 2309// Check varargs macros. These examples are taken from C99 6.10.3.5. 2310// dprintf is used instead of fprintf to avoid needing to declare 2311// FILE and stderr. 2312#define debug(...) dprintf (2, __VA_ARGS__) 2313#define showlist(...) puts (#__VA_ARGS__) 2314#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2315static void 2316test_varargs_macros (void) 2317{ 2318 int x = 1234; 2319 int y = 5678; 2320 debug ("Flag"); 2321 debug ("X = %d\n", x); 2322 showlist (The first, second, and third items.); 2323 report (x>y, "x is %d but y is %d", x, y); 2324} 2325 2326// Check long long types. 2327#define BIG64 18446744073709551615ull 2328#define BIG32 4294967295ul 2329#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2330#if !BIG_OK 2331 #error "your preprocessor is broken" 2332#endif 2333#if BIG_OK 2334#else 2335 #error "your preprocessor is broken" 2336#endif 2337static long long int bignum = -9223372036854775807LL; 2338static unsigned long long int ubignum = BIG64; 2339 2340struct incomplete_array 2341{ 2342 int datasize; 2343 double data[]; 2344}; 2345 2346struct named_init { 2347 int number; 2348 const wchar_t *name; 2349 double average; 2350}; 2351 2352typedef const char *ccp; 2353 2354static inline int 2355test_restrict (ccp restrict text) 2356{ 2357 // Iterate through items via the restricted pointer. 2358 // Also check for declarations in for loops. 2359 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2360 continue; 2361 return 0; 2362} 2363 2364// Check varargs and va_copy. 2365static bool 2366test_varargs (const char *format, ...) 2367{ 2368 va_list args; 2369 va_start (args, format); 2370 va_list args_copy; 2371 va_copy (args_copy, args); 2372 2373 const char *str = ""; 2374 int number = 0; 2375 float fnumber = 0; 2376 2377 while (*format) 2378 { 2379 switch (*format++) 2380 { 2381 case '\''s'\'': // string 2382 str = va_arg (args_copy, const char *); 2383 break; 2384 case '\''d'\'': // int 2385 number = va_arg (args_copy, int); 2386 break; 2387 case '\''f'\'': // float 2388 fnumber = va_arg (args_copy, double); 2389 break; 2390 default: 2391 break; 2392 } 2393 } 2394 va_end (args_copy); 2395 va_end (args); 2396 2397 return *str && number && fnumber; 2398} 2399' 2400 2401# Test code for whether the C compiler supports C99 (body of main). 2402ac_c_conftest_c99_main=' 2403 // Check bool. 2404 _Bool success = false; 2405 success |= (argc != 0); 2406 2407 // Check restrict. 2408 if (test_restrict ("String literal") == 0) 2409 success = true; 2410 char *restrict newvar = "Another string"; 2411 2412 // Check varargs. 2413 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2414 test_varargs_macros (); 2415 2416 // Check flexible array members. 2417 struct incomplete_array *ia = 2418 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2419 ia->datasize = 10; 2420 for (int i = 0; i < ia->datasize; ++i) 2421 ia->data[i] = i * 1.234; 2422 // Work around memory leak warnings. 2423 free (ia); 2424 2425 // Check named initializers. 2426 struct named_init ni = { 2427 .number = 34, 2428 .name = L"Test wide string", 2429 .average = 543.34343, 2430 }; 2431 2432 ni.number = 58; 2433 2434 int dynamic_array[ni.number]; 2435 dynamic_array[0] = argv[0][0]; 2436 dynamic_array[ni.number - 1] = 543; 2437 2438 // work around unused variable warnings 2439 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2440 || dynamic_array[ni.number - 1] != 543); 2441' 2442 2443# Test code for whether the C compiler supports C11 (global declarations) 2444ac_c_conftest_c11_globals=' 2445/* Does the compiler advertise C11 conformance? */ 2446#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2447# error "Compiler does not advertise C11 conformance" 2448#endif 2449 2450// Check _Alignas. 2451char _Alignas (double) aligned_as_double; 2452char _Alignas (0) no_special_alignment; 2453extern char aligned_as_int; 2454char _Alignas (0) _Alignas (int) aligned_as_int; 2455 2456// Check _Alignof. 2457enum 2458{ 2459 int_alignment = _Alignof (int), 2460 int_array_alignment = _Alignof (int[100]), 2461 char_alignment = _Alignof (char) 2462}; 2463_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2464 2465// Check _Noreturn. 2466int _Noreturn does_not_return (void) { for (;;) continue; } 2467 2468// Check _Static_assert. 2469struct test_static_assert 2470{ 2471 int x; 2472 _Static_assert (sizeof (int) <= sizeof (long int), 2473 "_Static_assert does not work in struct"); 2474 long int y; 2475}; 2476 2477// Check UTF-8 literals. 2478#define u8 syntax error! 2479char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2480 2481// Check duplicate typedefs. 2482typedef long *long_ptr; 2483typedef long int *long_ptr; 2484typedef long_ptr long_ptr; 2485 2486// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2487struct anonymous 2488{ 2489 union { 2490 struct { int i; int j; }; 2491 struct { int k; long int l; } w; 2492 }; 2493 int m; 2494} v1; 2495' 2496 2497# Test code for whether the C compiler supports C11 (body of main). 2498ac_c_conftest_c11_main=' 2499 _Static_assert ((offsetof (struct anonymous, i) 2500 == offsetof (struct anonymous, w.k)), 2501 "Anonymous union alignment botch"); 2502 v1.i = 2; 2503 v1.w.k = 5; 2504 ok |= v1.i != 5; 2505' 2506 2507# Test code for whether the C compiler supports C11 (complete). 2508ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2509${ac_c_conftest_c99_globals} 2510${ac_c_conftest_c11_globals} 2511 2512int 2513main (int argc, char **argv) 2514{ 2515 int ok = 0; 2516 ${ac_c_conftest_c89_main} 2517 ${ac_c_conftest_c99_main} 2518 ${ac_c_conftest_c11_main} 2519 return ok; 2520} 2521" 2522 2523# Test code for whether the C compiler supports C99 (complete). 2524ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2525${ac_c_conftest_c99_globals} 2526 2527int 2528main (int argc, char **argv) 2529{ 2530 int ok = 0; 2531 ${ac_c_conftest_c89_main} 2532 ${ac_c_conftest_c99_main} 2533 return ok; 2534} 2535" 2536 2537# Test code for whether the C compiler supports C89 (complete). 2538ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2539 2540int 2541main (int argc, char **argv) 2542{ 2543 int ok = 0; 2544 ${ac_c_conftest_c89_main} 2545 return ok; 2546} 2547" 2548 2549as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2550as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2551as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2552as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2553as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2554as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2555as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2556as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2557as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2558 2559# Auxiliary files required by this configure script. 2560ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh" 2561 2562# Locations in which to look for auxiliary files. 2563ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2564 2565# Search for a directory containing all of the required auxiliary files, 2566# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2567# If we don't find one directory that contains all the files we need, 2568# we report the set of missing files from the *first* directory in 2569# $ac_aux_dir_candidates and give up. 2570ac_missing_aux_files="" 2571ac_first_candidate=: 2572printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2574as_found=false 2575for as_dir in $ac_aux_dir_candidates 2576do 2577 IFS=$as_save_IFS 2578 case $as_dir in #((( 2579 '') as_dir=./ ;; 2580 */) ;; 2581 *) as_dir=$as_dir/ ;; 2582 esac 2583 as_found=: 2584 2585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2586 ac_aux_dir_found=yes 2587 ac_install_sh= 2588 for ac_aux in $ac_aux_files 2589 do 2590 # As a special case, if "install-sh" is required, that requirement 2591 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2592 # and $ac_install_sh is set appropriately for whichever one is found. 2593 if test x"$ac_aux" = x"install-sh" 2594 then 2595 if test -f "${as_dir}install-sh"; then 2596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2597 ac_install_sh="${as_dir}install-sh -c" 2598 elif test -f "${as_dir}install.sh"; then 2599 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2600 ac_install_sh="${as_dir}install.sh -c" 2601 elif test -f "${as_dir}shtool"; then 2602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2603 ac_install_sh="${as_dir}shtool install -c" 2604 else 2605 ac_aux_dir_found=no 2606 if $ac_first_candidate; then 2607 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2608 else 2609 break 2610 fi 2611 fi 2612 else 2613 if test -f "${as_dir}${ac_aux}"; then 2614 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2615 else 2616 ac_aux_dir_found=no 2617 if $ac_first_candidate; then 2618 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2619 else 2620 break 2621 fi 2622 fi 2623 fi 2624 done 2625 if test "$ac_aux_dir_found" = yes; then 2626 ac_aux_dir="$as_dir" 2627 break 2628 fi 2629 ac_first_candidate=false 2630 2631 as_found=false 2632done 2633IFS=$as_save_IFS 2634if $as_found 2635then : 2636 2637else case e in #( 2638 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2639esac 2640fi 2641 2642 2643# These three variables are undocumented and unsupported, 2644# and are intended to be withdrawn in a future Autoconf release. 2645# They can cause serious problems if a builder's source tree is in a directory 2646# whose full name contains unusual characters. 2647if test -f "${ac_aux_dir}config.guess"; then 2648 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2649fi 2650if test -f "${ac_aux_dir}config.sub"; then 2651 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2652fi 2653if test -f "$ac_aux_dir/configure"; then 2654 ac_configure="$SHELL ${ac_aux_dir}configure" 2655fi 2656 2657# Check that the precious variables saved in the cache have kept the same 2658# value. 2659ac_cache_corrupted=false 2660for ac_var in $ac_precious_vars; do 2661 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2662 eval ac_new_set=\$ac_env_${ac_var}_set 2663 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2664 eval ac_new_val=\$ac_env_${ac_var}_value 2665 case $ac_old_set,$ac_new_set in 2666 set,) 2667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2668printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2669 ac_cache_corrupted=: ;; 2670 ,set) 2671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2672printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2673 ac_cache_corrupted=: ;; 2674 ,);; 2675 *) 2676 if test "x$ac_old_val" != "x$ac_new_val"; then 2677 # differences in whitespace do not lead to failure. 2678 ac_old_val_w=`echo x $ac_old_val` 2679 ac_new_val_w=`echo x $ac_new_val` 2680 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2682printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2683 ac_cache_corrupted=: 2684 else 2685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2686printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2687 eval $ac_var=\$ac_old_val 2688 fi 2689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2690printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2692printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2693 fi;; 2694 esac 2695 # Pass precious variables to config.status. 2696 if test "$ac_new_set" = set; then 2697 case $ac_new_val in 2698 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2699 *) ac_arg=$ac_var=$ac_new_val ;; 2700 esac 2701 case " $ac_configure_args " in 2702 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2703 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2704 esac 2705 fi 2706done 2707if $ac_cache_corrupted; then 2708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2709printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2711printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2712 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2713 and start over" "$LINENO" 5 2714fi 2715## -------------------- ## 2716## Main body of script. ## 2717## -------------------- ## 2718 2719ac_ext=c 2720ac_cpp='$CPP $CPPFLAGS' 2721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2723ac_compiler_gnu=$ac_cv_c_compiler_gnu 2724 2725 2726 2727 2728# libpng does not follow GNU file name conventions (hence 'foreign') 2729# color-tests requires automake 1.11 or later 2730# silent-rules requires automake 1.11 or later 2731# dist-xz requires automake 1.11 or later 2732# 1.12.2 fixes a security issue in 1.11.2 and 1.12.1 2733# 1.13 is required for parallel tests 2734am__api_version='1.17' 2735 2736 2737 2738 # Find a good install program. We prefer a C program (faster), 2739# so one script is as good as another. But avoid the broken or 2740# incompatible versions: 2741# SysV /etc/install, /usr/sbin/install 2742# SunOS /usr/etc/install 2743# IRIX /sbin/install 2744# AIX /bin/install 2745# AmigaOS /C/install, which installs bootblocks on floppy discs 2746# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2747# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2748# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2749# OS/2's system install, which has a completely different semantic 2750# ./install, which can be erroneously created by make from ./install.sh. 2751# Reject install programs that cannot install multiple files. 2752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2753printf %s "checking for a BSD-compatible install... " >&6; } 2754if test -z "$INSTALL"; then 2755if test ${ac_cv_path_install+y} 2756then : 2757 printf %s "(cached) " >&6 2758else case e in #( 2759 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2760for as_dir in $PATH 2761do 2762 IFS=$as_save_IFS 2763 case $as_dir in #((( 2764 '') as_dir=./ ;; 2765 */) ;; 2766 *) as_dir=$as_dir/ ;; 2767 esac 2768 # Account for fact that we put trailing slashes in our PATH walk. 2769case $as_dir in #(( 2770 ./ | /[cC]/* | \ 2771 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2772 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2773 /usr/ucb/* ) ;; 2774 *) 2775 # OSF1 and SCO ODT 3.0 have their own names for install. 2776 # Don't use installbsd from OSF since it installs stuff as root 2777 # by default. 2778 for ac_prog in ginstall scoinst install; do 2779 for ac_exec_ext in '' $ac_executable_extensions; do 2780 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2781 if test $ac_prog = install && 2782 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2783 # AIX install. It has an incompatible calling convention. 2784 : 2785 elif test $ac_prog = install && 2786 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2787 # program-specific install script used by HP pwplus--don't use. 2788 : 2789 else 2790 rm -rf conftest.one conftest.two conftest.dir 2791 echo one > conftest.one 2792 echo two > conftest.two 2793 mkdir conftest.dir 2794 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2795 test -s conftest.one && test -s conftest.two && 2796 test -s conftest.dir/conftest.one && 2797 test -s conftest.dir/conftest.two 2798 then 2799 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2800 break 3 2801 fi 2802 fi 2803 fi 2804 done 2805 done 2806 ;; 2807esac 2808 2809 done 2810IFS=$as_save_IFS 2811 2812rm -rf conftest.one conftest.two conftest.dir 2813 ;; 2814esac 2815fi 2816 if test ${ac_cv_path_install+y}; then 2817 INSTALL=$ac_cv_path_install 2818 else 2819 # As a last resort, use the slow shell script. Don't cache a 2820 # value for INSTALL within a source directory, because that will 2821 # break other packages using the cache if that directory is 2822 # removed, or if the value is a relative name. 2823 INSTALL=$ac_install_sh 2824 fi 2825fi 2826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2827printf "%s\n" "$INSTALL" >&6; } 2828 2829# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2830# It thinks the first close brace ends the variable substitution. 2831test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2832 2833test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2834 2835test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2836 2837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 2838printf %s "checking whether sleep supports fractional seconds... " >&6; } 2839if test ${am_cv_sleep_fractional_seconds+y} 2840then : 2841 printf %s "(cached) " >&6 2842else case e in #( 2843 e) if sleep 0.001 2>/dev/null 2844then : 2845 am_cv_sleep_fractional_seconds=yes 2846else case e in #( 2847 e) am_cv_sleep_fractional_seconds=no ;; 2848esac 2849fi 2850 ;; 2851esac 2852fi 2853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 2854printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 2855 2856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 2857printf %s "checking filesystem timestamp resolution... " >&6; } 2858if test ${am_cv_filesystem_timestamp_resolution+y} 2859then : 2860 printf %s "(cached) " >&6 2861else case e in #( 2862 e) # Default to the worst case. 2863am_cv_filesystem_timestamp_resolution=2 2864 2865# Only try to go finer than 1 sec if sleep can do it. 2866# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 2867# - 1 sec is not much of a win compared to 2 sec, and 2868# - it takes 2 seconds to perform the test whether 1 sec works. 2869# 2870# Instead, just use the default 2s on platforms that have 1s resolution, 2871# accept the extra 1s delay when using $sleep in the Automake tests, in 2872# exchange for not incurring the 2s delay for running the test for all 2873# packages. 2874# 2875am_try_resolutions= 2876if test "$am_cv_sleep_fractional_seconds" = yes; then 2877 # Even a millisecond often causes a bunch of false positives, 2878 # so just try a hundredth of a second. The time saved between .001 and 2879 # .01 is not terribly consequential. 2880 am_try_resolutions="0.01 0.1 $am_try_resolutions" 2881fi 2882 2883# In order to catch current-generation FAT out, we must *modify* files 2884# that already exist; the *creation* timestamp is finer. Use names 2885# that make ls -t sort them differently when they have equal 2886# timestamps than when they have distinct timestamps, keeping 2887# in mind that ls -t prints the *newest* file first. 2888rm -f conftest.ts? 2889: > conftest.ts1 2890: > conftest.ts2 2891: > conftest.ts3 2892 2893# Make sure ls -t actually works. Do 'set' in a subshell so we don't 2894# clobber the current shell's arguments. (Outer-level square brackets 2895# are removed by m4; they're present so that m4 does not expand 2896# <dollar><star>; be careful, easy to get confused.) 2897if ( 2898 set X `ls -t conftest.ts[12]` && 2899 { 2900 test "$*" != "X conftest.ts1 conftest.ts2" || 2901 test "$*" != "X conftest.ts2 conftest.ts1"; 2902 } 2903); then :; else 2904 # If neither matched, then we have a broken ls. This can happen 2905 # if, for instance, CONFIG_SHELL is bash and it inherits a 2906 # broken ls alias from the environment. This has actually 2907 # happened. Such a system could not be considered "sane". 2908 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 2909 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2910printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2911as_fn_error $? "ls -t produces unexpected output. 2912Make sure there is not a broken ls alias in your environment. 2913See 'config.log' for more details" "$LINENO" 5; } 2914fi 2915 2916for am_try_res in $am_try_resolutions; do 2917 # Any one fine-grained sleep might happen to cross the boundary 2918 # between two values of a coarser actual resolution, but if we do 2919 # two fine-grained sleeps in a row, at least one of them will fall 2920 # entirely within a coarse interval. 2921 echo alpha > conftest.ts1 2922 sleep $am_try_res 2923 echo beta > conftest.ts2 2924 sleep $am_try_res 2925 echo gamma > conftest.ts3 2926 2927 # We assume that 'ls -t' will make use of high-resolution 2928 # timestamps if the operating system supports them at all. 2929 if (set X `ls -t conftest.ts?` && 2930 test "$2" = conftest.ts3 && 2931 test "$3" = conftest.ts2 && 2932 test "$4" = conftest.ts1); then 2933 # 2934 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 2935 # because we don't need to test make. 2936 make_ok=true 2937 if test $am_try_res != 1; then 2938 # But if we've succeeded so far with a subsecond resolution, we 2939 # have one more thing to check: make. It can happen that 2940 # everything else supports the subsecond mtimes, but make doesn't; 2941 # notably on macOS, which ships make 3.81 from 2006 (the last one 2942 # released under GPLv2). https://bugs.gnu.org/68808 2943 # 2944 # We test $MAKE if it is defined in the environment, else "make". 2945 # It might get overridden later, but our hope is that in practice 2946 # it does not matter: it is the system "make" which is (by far) 2947 # the most likely to be broken, whereas if the user overrides it, 2948 # probably they did so with a better, or at least not worse, make. 2949 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 2950 # 2951 # Create a Makefile (real tab character here): 2952 rm -f conftest.mk 2953 echo 'conftest.ts1: conftest.ts2' >conftest.mk 2954 echo ' touch conftest.ts2' >>conftest.mk 2955 # 2956 # Now, running 2957 # touch conftest.ts1; touch conftest.ts2; make 2958 # should touch ts1 because ts2 is newer. This could happen by luck, 2959 # but most often, it will fail if make's support is insufficient. So 2960 # test for several consecutive successes. 2961 # 2962 # (We reuse conftest.ts[12] because we still want to modify existing 2963 # files, not create new ones, per above.) 2964 n=0 2965 make=${MAKE-make} 2966 until test $n -eq 3; do 2967 echo one > conftest.ts1 2968 sleep $am_try_res 2969 echo two > conftest.ts2 # ts2 should now be newer than ts1 2970 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 2971 make_ok=false 2972 break # out of $n loop 2973 fi 2974 n=`expr $n + 1` 2975 done 2976 fi 2977 # 2978 if $make_ok; then 2979 # Everything we know to check worked out, so call this resolution good. 2980 am_cv_filesystem_timestamp_resolution=$am_try_res 2981 break # out of $am_try_res loop 2982 fi 2983 # Otherwise, we'll go on to check the next resolution. 2984 fi 2985done 2986rm -f conftest.ts? 2987# (end _am_filesystem_timestamp_resolution) 2988 ;; 2989esac 2990fi 2991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 2992printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 2993 2994# This check should not be cached, as it may vary across builds of 2995# different projects. 2996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2997printf %s "checking whether build environment is sane... " >&6; } 2998# Reject unsafe characters in $srcdir or the absolute working directory 2999# name. Accept space and tab only in the latter. 3000am_lf=' 3001' 3002case `pwd` in 3003 *[\\\"\#\$\&\'\`$am_lf]*) 3004 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3005esac 3006case $srcdir in 3007 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3008 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3009esac 3010 3011# Do 'set' in a subshell so we don't clobber the current shell's 3012# arguments. Must try -L first in case configure is actually a 3013# symlink; some systems play weird games with the mod time of symlinks 3014# (eg FreeBSD returns the mod time of the symlink's containing 3015# directory). 3016am_build_env_is_sane=no 3017am_has_slept=no 3018rm -f conftest.file 3019for am_try in 1 2; do 3020 echo "timestamp, slept: $am_has_slept" > conftest.file 3021 if ( 3022 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3023 if test "$*" = "X"; then 3024 # -L didn't work. 3025 set X `ls -t "$srcdir/configure" conftest.file` 3026 fi 3027 test "$2" = conftest.file 3028 ); then 3029 am_build_env_is_sane=yes 3030 break 3031 fi 3032 # Just in case. 3033 sleep "$am_cv_filesystem_timestamp_resolution" 3034 am_has_slept=yes 3035done 3036 3037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 3038printf "%s\n" "$am_build_env_is_sane" >&6; } 3039if test "$am_build_env_is_sane" = no; then 3040 as_fn_error $? "newly created file is older than distributed files! 3041Check your system clock" "$LINENO" 5 3042fi 3043 3044# If we didn't sleep, we still need to ensure time stamps of config.status and 3045# generated files are strictly newer. 3046am_sleep_pid= 3047if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 3048then : 3049 3050else case e in #( 3051 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 3052 am_sleep_pid=$! 3053 ;; 3054esac 3055fi 3056 3057rm -f conftest.file 3058 3059test "$program_prefix" != NONE && 3060 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3061# Use a double $ so make ignores it. 3062test "$program_suffix" != NONE && 3063 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3064# Double any \ or $. 3065# By default was 's,x,x', remove it if useless. 3066ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3067program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3068 3069 3070# Expand $ac_aux_dir to an absolute path. 3071am_aux_dir=`cd "$ac_aux_dir" && pwd` 3072 3073 3074 if test x"${MISSING+set}" != xset; then 3075 MISSING="\${SHELL} '$am_aux_dir/missing'" 3076fi 3077# Use eval to expand $SHELL 3078if eval "$MISSING --is-lightweight"; then 3079 am_missing_run="$MISSING " 3080else 3081 am_missing_run= 3082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3083printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3084fi 3085 3086if test x"${install_sh+set}" != xset; then 3087 case $am_aux_dir in 3088 *\ * | *\ *) 3089 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3090 *) 3091 install_sh="\${SHELL} $am_aux_dir/install-sh" 3092 esac 3093fi 3094 3095# Installed binaries are usually stripped using 'strip' when the user 3096# run "make install-strip". However 'strip' might not be the right 3097# tool to use in cross-compilation environments, therefore Automake 3098# will honor the 'STRIP' environment variable to overrule this program. 3099if test "$cross_compiling" != no; then 3100 if test -n "$ac_tool_prefix"; then 3101 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3102set dummy ${ac_tool_prefix}strip; ac_word=$2 3103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3104printf %s "checking for $ac_word... " >&6; } 3105if test ${ac_cv_prog_STRIP+y} 3106then : 3107 printf %s "(cached) " >&6 3108else case e in #( 3109 e) if test -n "$STRIP"; then 3110 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3111else 3112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3113for as_dir in $PATH 3114do 3115 IFS=$as_save_IFS 3116 case $as_dir in #((( 3117 '') as_dir=./ ;; 3118 */) ;; 3119 *) as_dir=$as_dir/ ;; 3120 esac 3121 for ac_exec_ext in '' $ac_executable_extensions; do 3122 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3123 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3124 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3125 break 2 3126 fi 3127done 3128 done 3129IFS=$as_save_IFS 3130 3131fi ;; 3132esac 3133fi 3134STRIP=$ac_cv_prog_STRIP 3135if test -n "$STRIP"; then 3136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3137printf "%s\n" "$STRIP" >&6; } 3138else 3139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3140printf "%s\n" "no" >&6; } 3141fi 3142 3143 3144fi 3145if test -z "$ac_cv_prog_STRIP"; then 3146 ac_ct_STRIP=$STRIP 3147 # Extract the first word of "strip", so it can be a program name with args. 3148set dummy strip; ac_word=$2 3149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3150printf %s "checking for $ac_word... " >&6; } 3151if test ${ac_cv_prog_ac_ct_STRIP+y} 3152then : 3153 printf %s "(cached) " >&6 3154else case e in #( 3155 e) if test -n "$ac_ct_STRIP"; then 3156 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3157else 3158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3159for as_dir in $PATH 3160do 3161 IFS=$as_save_IFS 3162 case $as_dir in #((( 3163 '') as_dir=./ ;; 3164 */) ;; 3165 *) as_dir=$as_dir/ ;; 3166 esac 3167 for ac_exec_ext in '' $ac_executable_extensions; do 3168 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3169 ac_cv_prog_ac_ct_STRIP="strip" 3170 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3171 break 2 3172 fi 3173done 3174 done 3175IFS=$as_save_IFS 3176 3177fi ;; 3178esac 3179fi 3180ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3181if test -n "$ac_ct_STRIP"; then 3182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3183printf "%s\n" "$ac_ct_STRIP" >&6; } 3184else 3185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3186printf "%s\n" "no" >&6; } 3187fi 3188 3189 if test "x$ac_ct_STRIP" = x; then 3190 STRIP=":" 3191 else 3192 case $cross_compiling:$ac_tool_warned in 3193yes:) 3194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3195printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3196ac_tool_warned=yes ;; 3197esac 3198 STRIP=$ac_ct_STRIP 3199 fi 3200else 3201 STRIP="$ac_cv_prog_STRIP" 3202fi 3203 3204fi 3205INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3206 3207 3208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3209printf %s "checking for a race-free mkdir -p... " >&6; } 3210if test -z "$MKDIR_P"; then 3211 if test ${ac_cv_path_mkdir+y} 3212then : 3213 printf %s "(cached) " >&6 3214else case e in #( 3215 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3216for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3217do 3218 IFS=$as_save_IFS 3219 case $as_dir in #((( 3220 '') as_dir=./ ;; 3221 */) ;; 3222 *) as_dir=$as_dir/ ;; 3223 esac 3224 for ac_prog in mkdir gmkdir; do 3225 for ac_exec_ext in '' $ac_executable_extensions; do 3226 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3227 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3228 'mkdir ('*'coreutils) '* | \ 3229 *'BusyBox '* | \ 3230 'mkdir (fileutils) '4.1*) 3231 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3232 break 3;; 3233 esac 3234 done 3235 done 3236 done 3237IFS=$as_save_IFS 3238 ;; 3239esac 3240fi 3241 3242 test -d ./--version && rmdir ./--version 3243 if test ${ac_cv_path_mkdir+y}; then 3244 MKDIR_P="$ac_cv_path_mkdir -p" 3245 else 3246 # As a last resort, use plain mkdir -p, 3247 # in the hope it doesn't have the bugs of ancient mkdir. 3248 MKDIR_P='mkdir -p' 3249 fi 3250fi 3251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3252printf "%s\n" "$MKDIR_P" >&6; } 3253 3254for ac_prog in gawk mawk nawk awk 3255do 3256 # Extract the first word of "$ac_prog", so it can be a program name with args. 3257set dummy $ac_prog; ac_word=$2 3258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3259printf %s "checking for $ac_word... " >&6; } 3260if test ${ac_cv_prog_AWK+y} 3261then : 3262 printf %s "(cached) " >&6 3263else case e in #( 3264 e) if test -n "$AWK"; then 3265 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3266else 3267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3268for as_dir in $PATH 3269do 3270 IFS=$as_save_IFS 3271 case $as_dir in #((( 3272 '') as_dir=./ ;; 3273 */) ;; 3274 *) as_dir=$as_dir/ ;; 3275 esac 3276 for ac_exec_ext in '' $ac_executable_extensions; do 3277 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3278 ac_cv_prog_AWK="$ac_prog" 3279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3280 break 2 3281 fi 3282done 3283 done 3284IFS=$as_save_IFS 3285 3286fi ;; 3287esac 3288fi 3289AWK=$ac_cv_prog_AWK 3290if test -n "$AWK"; then 3291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3292printf "%s\n" "$AWK" >&6; } 3293else 3294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3295printf "%s\n" "no" >&6; } 3296fi 3297 3298 3299 test -n "$AWK" && break 3300done 3301 3302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3303printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3304set x ${MAKE-make} 3305ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3306if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3307then : 3308 printf %s "(cached) " >&6 3309else case e in #( 3310 e) cat >conftest.make <<\_ACEOF 3311SHELL = /bin/sh 3312all: 3313 @echo '@@@%%%=$(MAKE)=@@@%%%' 3314_ACEOF 3315# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3316case `${MAKE-make} -f conftest.make 2>/dev/null` in 3317 *@@@%%%=?*=@@@%%%*) 3318 eval ac_cv_prog_make_${ac_make}_set=yes;; 3319 *) 3320 eval ac_cv_prog_make_${ac_make}_set=no;; 3321esac 3322rm -f conftest.make ;; 3323esac 3324fi 3325if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3327printf "%s\n" "yes" >&6; } 3328 SET_MAKE= 3329else 3330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3331printf "%s\n" "no" >&6; } 3332 SET_MAKE="MAKE=${MAKE-make}" 3333fi 3334 3335rm -rf .tst 2>/dev/null 3336mkdir .tst 2>/dev/null 3337if test -d .tst; then 3338 am__leading_dot=. 3339else 3340 am__leading_dot=_ 3341fi 3342rmdir .tst 2>/dev/null 3343 3344AM_DEFAULT_VERBOSITY=1 3345# Check whether --enable-silent-rules was given. 3346if test ${enable_silent_rules+y} 3347then : 3348 enableval=$enable_silent_rules; 3349fi 3350 3351am_make=${MAKE-make} 3352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3353printf %s "checking whether $am_make supports nested variables... " >&6; } 3354if test ${am_cv_make_support_nested_variables+y} 3355then : 3356 printf %s "(cached) " >&6 3357else case e in #( 3358 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3359BAR0=false 3360BAR1=true 3361V=1 3362am__doit: 3363 @$(TRUE) 3364.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3365 am_cv_make_support_nested_variables=yes 3366else 3367 am_cv_make_support_nested_variables=no 3368fi ;; 3369esac 3370fi 3371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3372printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3373AM_BACKSLASH='\' 3374 3375am__rm_f_notfound= 3376if (rm -f && rm -fr && rm -rf) 2>/dev/null 3377then : 3378 3379else case e in #( 3380 e) am__rm_f_notfound='""' ;; 3381esac 3382fi 3383 3384 3385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 3386printf %s "checking xargs -n works... " >&6; } 3387if test ${am_cv_xargs_n_works+y} 3388then : 3389 printf %s "(cached) " >&6 3390else case e in #( 3391 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 33923" 3393then : 3394 am_cv_xargs_n_works=yes 3395else case e in #( 3396 e) am_cv_xargs_n_works=no ;; 3397esac 3398fi ;; 3399esac 3400fi 3401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 3402printf "%s\n" "$am_cv_xargs_n_works" >&6; } 3403if test "$am_cv_xargs_n_works" = yes 3404then : 3405 am__xargs_n='xargs -n' 3406else case e in #( 3407 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 3408 ;; 3409esac 3410fi 3411 3412if test "`cd $srcdir && pwd`" != "`pwd`"; then 3413 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3414 # is not polluted with repeated "-I." 3415 am__isrc=' -I$(srcdir)' 3416 # test to see if srcdir already configured 3417 if test -f $srcdir/config.status; then 3418 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3419 fi 3420fi 3421 3422# test whether we have cygpath 3423if test -z "$CYGPATH_W"; then 3424 if (cygpath --version) >/dev/null 2>/dev/null; then 3425 CYGPATH_W='cygpath -w' 3426 else 3427 CYGPATH_W=echo 3428 fi 3429fi 3430 3431 3432# Define the identity of the package. 3433 PACKAGE='libpng' 3434 VERSION='1.6.44' 3435 3436 3437printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3438 3439 3440printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3441 3442# Some tools Automake needs. 3443 3444ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3445 3446 3447AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3448 3449 3450AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3451 3452 3453AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3454 3455 3456MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3457 3458# For better backward compatibility. To be removed once Automake 1.9.x 3459# dies out for good. For more background, see: 3460# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3461# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3462mkdir_p='$(MKDIR_P)' 3463 3464# We need awk for the "check" target (and possibly the TAP driver). The 3465# system "awk" is bad on some platforms. 3466# Always define AMTAR for backward compatibility. Yes, it's still used 3467# in the wild :-( We should find a proper way to deprecate it ... 3468AMTAR='$${TAR-tar}' 3469 3470 3471# We'll loop over all known methods to create a tar archive until one works. 3472_am_tools='gnutar pax cpio none' 3473 3474am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3475 3476 3477 3478 3479 3480# Variables for tags utilities; see am/tags.am 3481if test -z "$CTAGS"; then 3482 CTAGS=ctags 3483fi 3484 3485if test -z "$ETAGS"; then 3486 ETAGS=etags 3487fi 3488 3489if test -z "$CSCOPE"; then 3490 CSCOPE=cscope 3491fi 3492 3493 3494 3495 3496 3497 3498 3499# The following line causes --disable-maintainer-mode to be the default to 3500# configure. This is necessary because libpng distributions cannot rely on the 3501# time stamps of the autotools generated files being correct 3502 3503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3504printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3505 # Check whether --enable-maintainer-mode was given. 3506if test ${enable_maintainer_mode+y} 3507then : 3508 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3509else case e in #( 3510 e) USE_MAINTAINER_MODE=no ;; 3511esac 3512fi 3513 3514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3515printf "%s\n" "$USE_MAINTAINER_MODE" >&6; } 3516 if test $USE_MAINTAINER_MODE = yes; then 3517 MAINTAINER_MODE_TRUE= 3518 MAINTAINER_MODE_FALSE='#' 3519else 3520 MAINTAINER_MODE_TRUE='#' 3521 MAINTAINER_MODE_FALSE= 3522fi 3523 3524 MAINT=$MAINTAINER_MODE_TRUE 3525 3526 3527 3528 3529PNGLIB_VERSION=1.6.44 3530PNGLIB_MAJOR=1 3531PNGLIB_MINOR=6 3532PNGLIB_RELEASE=44 3533 3534 3535 3536ac_config_headers="$ac_config_headers config.h" 3537 3538 3539# Check the basic programs. 3540ac_ext=c 3541ac_cpp='$CPP $CPPFLAGS' 3542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3544ac_compiler_gnu=$ac_cv_c_compiler_gnu 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555ac_ext=c 3556ac_cpp='$CPP $CPPFLAGS' 3557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3559ac_compiler_gnu=$ac_cv_c_compiler_gnu 3560if test -n "$ac_tool_prefix"; then 3561 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3562set dummy ${ac_tool_prefix}gcc; ac_word=$2 3563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3564printf %s "checking for $ac_word... " >&6; } 3565if test ${ac_cv_prog_CC+y} 3566then : 3567 printf %s "(cached) " >&6 3568else case e in #( 3569 e) if test -n "$CC"; then 3570 ac_cv_prog_CC="$CC" # Let the user override the test. 3571else 3572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3573for as_dir in $PATH 3574do 3575 IFS=$as_save_IFS 3576 case $as_dir in #((( 3577 '') as_dir=./ ;; 3578 */) ;; 3579 *) as_dir=$as_dir/ ;; 3580 esac 3581 for ac_exec_ext in '' $ac_executable_extensions; do 3582 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3583 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3585 break 2 3586 fi 3587done 3588 done 3589IFS=$as_save_IFS 3590 3591fi ;; 3592esac 3593fi 3594CC=$ac_cv_prog_CC 3595if test -n "$CC"; then 3596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3597printf "%s\n" "$CC" >&6; } 3598else 3599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3600printf "%s\n" "no" >&6; } 3601fi 3602 3603 3604fi 3605if test -z "$ac_cv_prog_CC"; then 3606 ac_ct_CC=$CC 3607 # Extract the first word of "gcc", so it can be a program name with args. 3608set dummy gcc; ac_word=$2 3609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3610printf %s "checking for $ac_word... " >&6; } 3611if test ${ac_cv_prog_ac_ct_CC+y} 3612then : 3613 printf %s "(cached) " >&6 3614else case e in #( 3615 e) if test -n "$ac_ct_CC"; then 3616 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3617else 3618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3619for as_dir in $PATH 3620do 3621 IFS=$as_save_IFS 3622 case $as_dir in #((( 3623 '') as_dir=./ ;; 3624 */) ;; 3625 *) as_dir=$as_dir/ ;; 3626 esac 3627 for ac_exec_ext in '' $ac_executable_extensions; do 3628 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3629 ac_cv_prog_ac_ct_CC="gcc" 3630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3631 break 2 3632 fi 3633done 3634 done 3635IFS=$as_save_IFS 3636 3637fi ;; 3638esac 3639fi 3640ac_ct_CC=$ac_cv_prog_ac_ct_CC 3641if test -n "$ac_ct_CC"; then 3642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3643printf "%s\n" "$ac_ct_CC" >&6; } 3644else 3645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3646printf "%s\n" "no" >&6; } 3647fi 3648 3649 if test "x$ac_ct_CC" = x; then 3650 CC="" 3651 else 3652 case $cross_compiling:$ac_tool_warned in 3653yes:) 3654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3655printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3656ac_tool_warned=yes ;; 3657esac 3658 CC=$ac_ct_CC 3659 fi 3660else 3661 CC="$ac_cv_prog_CC" 3662fi 3663 3664if test -z "$CC"; then 3665 if test -n "$ac_tool_prefix"; then 3666 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3667set dummy ${ac_tool_prefix}cc; ac_word=$2 3668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3669printf %s "checking for $ac_word... " >&6; } 3670if test ${ac_cv_prog_CC+y} 3671then : 3672 printf %s "(cached) " >&6 3673else case e in #( 3674 e) if test -n "$CC"; then 3675 ac_cv_prog_CC="$CC" # Let the user override the test. 3676else 3677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3678for as_dir in $PATH 3679do 3680 IFS=$as_save_IFS 3681 case $as_dir in #((( 3682 '') as_dir=./ ;; 3683 */) ;; 3684 *) as_dir=$as_dir/ ;; 3685 esac 3686 for ac_exec_ext in '' $ac_executable_extensions; do 3687 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3688 ac_cv_prog_CC="${ac_tool_prefix}cc" 3689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3690 break 2 3691 fi 3692done 3693 done 3694IFS=$as_save_IFS 3695 3696fi ;; 3697esac 3698fi 3699CC=$ac_cv_prog_CC 3700if test -n "$CC"; then 3701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3702printf "%s\n" "$CC" >&6; } 3703else 3704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3705printf "%s\n" "no" >&6; } 3706fi 3707 3708 3709 fi 3710fi 3711if test -z "$CC"; then 3712 # Extract the first word of "cc", so it can be a program name with args. 3713set dummy cc; ac_word=$2 3714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3715printf %s "checking for $ac_word... " >&6; } 3716if test ${ac_cv_prog_CC+y} 3717then : 3718 printf %s "(cached) " >&6 3719else case e in #( 3720 e) if test -n "$CC"; then 3721 ac_cv_prog_CC="$CC" # Let the user override the test. 3722else 3723 ac_prog_rejected=no 3724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3725for as_dir in $PATH 3726do 3727 IFS=$as_save_IFS 3728 case $as_dir in #((( 3729 '') as_dir=./ ;; 3730 */) ;; 3731 *) as_dir=$as_dir/ ;; 3732 esac 3733 for ac_exec_ext in '' $ac_executable_extensions; do 3734 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3735 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3736 ac_prog_rejected=yes 3737 continue 3738 fi 3739 ac_cv_prog_CC="cc" 3740 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3741 break 2 3742 fi 3743done 3744 done 3745IFS=$as_save_IFS 3746 3747if test $ac_prog_rejected = yes; then 3748 # We found a bogon in the path, so make sure we never use it. 3749 set dummy $ac_cv_prog_CC 3750 shift 3751 if test $# != 0; then 3752 # We chose a different compiler from the bogus one. 3753 # However, it has the same basename, so the bogon will be chosen 3754 # first if we set CC to just the basename; use the full file name. 3755 shift 3756 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3757 fi 3758fi 3759fi ;; 3760esac 3761fi 3762CC=$ac_cv_prog_CC 3763if test -n "$CC"; then 3764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3765printf "%s\n" "$CC" >&6; } 3766else 3767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3768printf "%s\n" "no" >&6; } 3769fi 3770 3771 3772fi 3773if test -z "$CC"; then 3774 if test -n "$ac_tool_prefix"; then 3775 for ac_prog in cl.exe 3776 do 3777 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3778set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3780printf %s "checking for $ac_word... " >&6; } 3781if test ${ac_cv_prog_CC+y} 3782then : 3783 printf %s "(cached) " >&6 3784else case e in #( 3785 e) if test -n "$CC"; then 3786 ac_cv_prog_CC="$CC" # Let the user override the test. 3787else 3788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3789for as_dir in $PATH 3790do 3791 IFS=$as_save_IFS 3792 case $as_dir in #((( 3793 '') as_dir=./ ;; 3794 */) ;; 3795 *) as_dir=$as_dir/ ;; 3796 esac 3797 for ac_exec_ext in '' $ac_executable_extensions; do 3798 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3799 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3801 break 2 3802 fi 3803done 3804 done 3805IFS=$as_save_IFS 3806 3807fi ;; 3808esac 3809fi 3810CC=$ac_cv_prog_CC 3811if test -n "$CC"; then 3812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3813printf "%s\n" "$CC" >&6; } 3814else 3815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3816printf "%s\n" "no" >&6; } 3817fi 3818 3819 3820 test -n "$CC" && break 3821 done 3822fi 3823if test -z "$CC"; then 3824 ac_ct_CC=$CC 3825 for ac_prog in cl.exe 3826do 3827 # Extract the first word of "$ac_prog", so it can be a program name with args. 3828set dummy $ac_prog; ac_word=$2 3829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3830printf %s "checking for $ac_word... " >&6; } 3831if test ${ac_cv_prog_ac_ct_CC+y} 3832then : 3833 printf %s "(cached) " >&6 3834else case e in #( 3835 e) if test -n "$ac_ct_CC"; then 3836 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3837else 3838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3839for as_dir in $PATH 3840do 3841 IFS=$as_save_IFS 3842 case $as_dir in #((( 3843 '') as_dir=./ ;; 3844 */) ;; 3845 *) as_dir=$as_dir/ ;; 3846 esac 3847 for ac_exec_ext in '' $ac_executable_extensions; do 3848 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3849 ac_cv_prog_ac_ct_CC="$ac_prog" 3850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3851 break 2 3852 fi 3853done 3854 done 3855IFS=$as_save_IFS 3856 3857fi ;; 3858esac 3859fi 3860ac_ct_CC=$ac_cv_prog_ac_ct_CC 3861if test -n "$ac_ct_CC"; then 3862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3863printf "%s\n" "$ac_ct_CC" >&6; } 3864else 3865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3866printf "%s\n" "no" >&6; } 3867fi 3868 3869 3870 test -n "$ac_ct_CC" && break 3871done 3872 3873 if test "x$ac_ct_CC" = x; then 3874 CC="" 3875 else 3876 case $cross_compiling:$ac_tool_warned in 3877yes:) 3878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3879printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3880ac_tool_warned=yes ;; 3881esac 3882 CC=$ac_ct_CC 3883 fi 3884fi 3885 3886fi 3887if test -z "$CC"; then 3888 if test -n "$ac_tool_prefix"; then 3889 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3890set dummy ${ac_tool_prefix}clang; ac_word=$2 3891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3892printf %s "checking for $ac_word... " >&6; } 3893if test ${ac_cv_prog_CC+y} 3894then : 3895 printf %s "(cached) " >&6 3896else case e in #( 3897 e) if test -n "$CC"; then 3898 ac_cv_prog_CC="$CC" # Let the user override the test. 3899else 3900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3901for as_dir in $PATH 3902do 3903 IFS=$as_save_IFS 3904 case $as_dir in #((( 3905 '') as_dir=./ ;; 3906 */) ;; 3907 *) as_dir=$as_dir/ ;; 3908 esac 3909 for ac_exec_ext in '' $ac_executable_extensions; do 3910 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3911 ac_cv_prog_CC="${ac_tool_prefix}clang" 3912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3913 break 2 3914 fi 3915done 3916 done 3917IFS=$as_save_IFS 3918 3919fi ;; 3920esac 3921fi 3922CC=$ac_cv_prog_CC 3923if test -n "$CC"; then 3924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3925printf "%s\n" "$CC" >&6; } 3926else 3927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3928printf "%s\n" "no" >&6; } 3929fi 3930 3931 3932fi 3933if test -z "$ac_cv_prog_CC"; then 3934 ac_ct_CC=$CC 3935 # Extract the first word of "clang", so it can be a program name with args. 3936set dummy clang; ac_word=$2 3937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3938printf %s "checking for $ac_word... " >&6; } 3939if test ${ac_cv_prog_ac_ct_CC+y} 3940then : 3941 printf %s "(cached) " >&6 3942else case e in #( 3943 e) if test -n "$ac_ct_CC"; then 3944 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3945else 3946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3947for as_dir in $PATH 3948do 3949 IFS=$as_save_IFS 3950 case $as_dir in #((( 3951 '') as_dir=./ ;; 3952 */) ;; 3953 *) as_dir=$as_dir/ ;; 3954 esac 3955 for ac_exec_ext in '' $ac_executable_extensions; do 3956 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3957 ac_cv_prog_ac_ct_CC="clang" 3958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3959 break 2 3960 fi 3961done 3962 done 3963IFS=$as_save_IFS 3964 3965fi ;; 3966esac 3967fi 3968ac_ct_CC=$ac_cv_prog_ac_ct_CC 3969if test -n "$ac_ct_CC"; then 3970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3971printf "%s\n" "$ac_ct_CC" >&6; } 3972else 3973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3974printf "%s\n" "no" >&6; } 3975fi 3976 3977 if test "x$ac_ct_CC" = x; then 3978 CC="" 3979 else 3980 case $cross_compiling:$ac_tool_warned in 3981yes:) 3982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3983printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3984ac_tool_warned=yes ;; 3985esac 3986 CC=$ac_ct_CC 3987 fi 3988else 3989 CC="$ac_cv_prog_CC" 3990fi 3991 3992fi 3993 3994 3995test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3996printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3997as_fn_error $? "no acceptable C compiler found in \$PATH 3998See 'config.log' for more details" "$LINENO" 5; } 3999 4000# Provide some information about the compiler. 4001printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4002set X $ac_compile 4003ac_compiler=$2 4004for ac_option in --version -v -V -qversion -version; do 4005 { { ac_try="$ac_compiler $ac_option >&5" 4006case "(($ac_try" in 4007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4008 *) ac_try_echo=$ac_try;; 4009esac 4010eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4011printf "%s\n" "$ac_try_echo"; } >&5 4012 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4013 ac_status=$? 4014 if test -s conftest.err; then 4015 sed '10a\ 4016... rest of stderr output deleted ... 4017 10q' conftest.err >conftest.er1 4018 cat conftest.er1 >&5 4019 fi 4020 rm -f conftest.er1 conftest.err 4021 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4022 test $ac_status = 0; } 4023done 4024 4025cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4026/* end confdefs.h. */ 4027 4028int 4029main (void) 4030{ 4031 4032 ; 4033 return 0; 4034} 4035_ACEOF 4036ac_clean_files_save=$ac_clean_files 4037ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4038# Try to create an executable without -o first, disregard a.out. 4039# It will help us diagnose broken compilers, and finding out an intuition 4040# of exeext. 4041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4042printf %s "checking whether the C compiler works... " >&6; } 4043ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4044 4045# The possible output files: 4046ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4047 4048ac_rmfiles= 4049for ac_file in $ac_files 4050do 4051 case $ac_file in 4052 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4053 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4054 esac 4055done 4056rm -f $ac_rmfiles 4057 4058if { { ac_try="$ac_link_default" 4059case "(($ac_try" in 4060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4061 *) ac_try_echo=$ac_try;; 4062esac 4063eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4064printf "%s\n" "$ac_try_echo"; } >&5 4065 (eval "$ac_link_default") 2>&5 4066 ac_status=$? 4067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4068 test $ac_status = 0; } 4069then : 4070 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 4071# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 4072# in a Makefile. We should not override ac_cv_exeext if it was cached, 4073# so that the user can short-circuit this test for compilers unknown to 4074# Autoconf. 4075for ac_file in $ac_files '' 4076do 4077 test -f "$ac_file" || continue 4078 case $ac_file in 4079 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4080 ;; 4081 [ab].out ) 4082 # We found the default executable, but exeext='' is most 4083 # certainly right. 4084 break;; 4085 *.* ) 4086 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4087 then :; else 4088 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4089 fi 4090 # We set ac_cv_exeext here because the later test for it is not 4091 # safe: cross compilers may not add the suffix if given an '-o' 4092 # argument, so we may need to know it at that point already. 4093 # Even if this section looks crufty: it has the advantage of 4094 # actually working. 4095 break;; 4096 * ) 4097 break;; 4098 esac 4099done 4100test "$ac_cv_exeext" = no && ac_cv_exeext= 4101 4102else case e in #( 4103 e) ac_file='' ;; 4104esac 4105fi 4106if test -z "$ac_file" 4107then : 4108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4109printf "%s\n" "no" >&6; } 4110printf "%s\n" "$as_me: failed program was:" >&5 4111sed 's/^/| /' conftest.$ac_ext >&5 4112 4113{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4114printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4115as_fn_error 77 "C compiler cannot create executables 4116See 'config.log' for more details" "$LINENO" 5; } 4117else case e in #( 4118 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4119printf "%s\n" "yes" >&6; } ;; 4120esac 4121fi 4122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4123printf %s "checking for C compiler default output file name... " >&6; } 4124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4125printf "%s\n" "$ac_file" >&6; } 4126ac_exeext=$ac_cv_exeext 4127 4128rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4129ac_clean_files=$ac_clean_files_save 4130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4131printf %s "checking for suffix of executables... " >&6; } 4132if { { ac_try="$ac_link" 4133case "(($ac_try" in 4134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4135 *) ac_try_echo=$ac_try;; 4136esac 4137eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4138printf "%s\n" "$ac_try_echo"; } >&5 4139 (eval "$ac_link") 2>&5 4140 ac_status=$? 4141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4142 test $ac_status = 0; } 4143then : 4144 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 4145# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 4146# work properly (i.e., refer to 'conftest.exe'), while it won't with 4147# 'rm'. 4148for ac_file in conftest.exe conftest conftest.*; do 4149 test -f "$ac_file" || continue 4150 case $ac_file in 4151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4152 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4153 break;; 4154 * ) break;; 4155 esac 4156done 4157else case e in #( 4158 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4159printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4160as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4161See 'config.log' for more details" "$LINENO" 5; } ;; 4162esac 4163fi 4164rm -f conftest conftest$ac_cv_exeext 4165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4166printf "%s\n" "$ac_cv_exeext" >&6; } 4167 4168rm -f conftest.$ac_ext 4169EXEEXT=$ac_cv_exeext 4170ac_exeext=$EXEEXT 4171cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4172/* end confdefs.h. */ 4173#include <stdio.h> 4174int 4175main (void) 4176{ 4177FILE *f = fopen ("conftest.out", "w"); 4178 if (!f) 4179 return 1; 4180 return ferror (f) || fclose (f) != 0; 4181 4182 ; 4183 return 0; 4184} 4185_ACEOF 4186ac_clean_files="$ac_clean_files conftest.out" 4187# Check that the compiler produces executables we can run. If not, either 4188# the compiler is broken, or we cross compile. 4189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4190printf %s "checking whether we are cross compiling... " >&6; } 4191if test "$cross_compiling" != yes; then 4192 { { ac_try="$ac_link" 4193case "(($ac_try" in 4194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4195 *) ac_try_echo=$ac_try;; 4196esac 4197eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4198printf "%s\n" "$ac_try_echo"; } >&5 4199 (eval "$ac_link") 2>&5 4200 ac_status=$? 4201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4202 test $ac_status = 0; } 4203 if { ac_try='./conftest$ac_cv_exeext' 4204 { { case "(($ac_try" in 4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4206 *) ac_try_echo=$ac_try;; 4207esac 4208eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4209printf "%s\n" "$ac_try_echo"; } >&5 4210 (eval "$ac_try") 2>&5 4211 ac_status=$? 4212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4213 test $ac_status = 0; }; }; then 4214 cross_compiling=no 4215 else 4216 if test "$cross_compiling" = maybe; then 4217 cross_compiling=yes 4218 else 4219 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4220printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4221as_fn_error 77 "cannot run C compiled programs. 4222If you meant to cross compile, use '--host'. 4223See 'config.log' for more details" "$LINENO" 5; } 4224 fi 4225 fi 4226fi 4227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4228printf "%s\n" "$cross_compiling" >&6; } 4229 4230rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4231 conftest.o conftest.obj conftest.out 4232ac_clean_files=$ac_clean_files_save 4233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4234printf %s "checking for suffix of object files... " >&6; } 4235if test ${ac_cv_objext+y} 4236then : 4237 printf %s "(cached) " >&6 4238else case e in #( 4239 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4240/* end confdefs.h. */ 4241 4242int 4243main (void) 4244{ 4245 4246 ; 4247 return 0; 4248} 4249_ACEOF 4250rm -f conftest.o conftest.obj 4251if { { ac_try="$ac_compile" 4252case "(($ac_try" in 4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4254 *) ac_try_echo=$ac_try;; 4255esac 4256eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4257printf "%s\n" "$ac_try_echo"; } >&5 4258 (eval "$ac_compile") 2>&5 4259 ac_status=$? 4260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4261 test $ac_status = 0; } 4262then : 4263 for ac_file in conftest.o conftest.obj conftest.*; do 4264 test -f "$ac_file" || continue; 4265 case $ac_file in 4266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4267 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4268 break;; 4269 esac 4270done 4271else case e in #( 4272 e) printf "%s\n" "$as_me: failed program was:" >&5 4273sed 's/^/| /' conftest.$ac_ext >&5 4274 4275{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4276printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4277as_fn_error $? "cannot compute suffix of object files: cannot compile 4278See 'config.log' for more details" "$LINENO" 5; } ;; 4279esac 4280fi 4281rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4282esac 4283fi 4284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4285printf "%s\n" "$ac_cv_objext" >&6; } 4286OBJEXT=$ac_cv_objext 4287ac_objext=$OBJEXT 4288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4289printf %s "checking whether the compiler supports GNU C... " >&6; } 4290if test ${ac_cv_c_compiler_gnu+y} 4291then : 4292 printf %s "(cached) " >&6 4293else case e in #( 4294 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4295/* end confdefs.h. */ 4296 4297int 4298main (void) 4299{ 4300#ifndef __GNUC__ 4301 choke me 4302#endif 4303 4304 ; 4305 return 0; 4306} 4307_ACEOF 4308if ac_fn_c_try_compile "$LINENO" 4309then : 4310 ac_compiler_gnu=yes 4311else case e in #( 4312 e) ac_compiler_gnu=no ;; 4313esac 4314fi 4315rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4316ac_cv_c_compiler_gnu=$ac_compiler_gnu 4317 ;; 4318esac 4319fi 4320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4321printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4322ac_compiler_gnu=$ac_cv_c_compiler_gnu 4323 4324if test $ac_compiler_gnu = yes; then 4325 GCC=yes 4326else 4327 GCC= 4328fi 4329ac_test_CFLAGS=${CFLAGS+y} 4330ac_save_CFLAGS=$CFLAGS 4331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4332printf %s "checking whether $CC accepts -g... " >&6; } 4333if test ${ac_cv_prog_cc_g+y} 4334then : 4335 printf %s "(cached) " >&6 4336else case e in #( 4337 e) ac_save_c_werror_flag=$ac_c_werror_flag 4338 ac_c_werror_flag=yes 4339 ac_cv_prog_cc_g=no 4340 CFLAGS="-g" 4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4342/* end confdefs.h. */ 4343 4344int 4345main (void) 4346{ 4347 4348 ; 4349 return 0; 4350} 4351_ACEOF 4352if ac_fn_c_try_compile "$LINENO" 4353then : 4354 ac_cv_prog_cc_g=yes 4355else case e in #( 4356 e) CFLAGS="" 4357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4358/* end confdefs.h. */ 4359 4360int 4361main (void) 4362{ 4363 4364 ; 4365 return 0; 4366} 4367_ACEOF 4368if ac_fn_c_try_compile "$LINENO" 4369then : 4370 4371else case e in #( 4372 e) ac_c_werror_flag=$ac_save_c_werror_flag 4373 CFLAGS="-g" 4374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4375/* end confdefs.h. */ 4376 4377int 4378main (void) 4379{ 4380 4381 ; 4382 return 0; 4383} 4384_ACEOF 4385if ac_fn_c_try_compile "$LINENO" 4386then : 4387 ac_cv_prog_cc_g=yes 4388fi 4389rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4390esac 4391fi 4392rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4393esac 4394fi 4395rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4396 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4397esac 4398fi 4399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4400printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4401if test $ac_test_CFLAGS; then 4402 CFLAGS=$ac_save_CFLAGS 4403elif test $ac_cv_prog_cc_g = yes; then 4404 if test "$GCC" = yes; then 4405 CFLAGS="-g -O2" 4406 else 4407 CFLAGS="-g" 4408 fi 4409else 4410 if test "$GCC" = yes; then 4411 CFLAGS="-O2" 4412 else 4413 CFLAGS= 4414 fi 4415fi 4416ac_prog_cc_stdc=no 4417if test x$ac_prog_cc_stdc = xno 4418then : 4419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4420printf %s "checking for $CC option to enable C11 features... " >&6; } 4421if test ${ac_cv_prog_cc_c11+y} 4422then : 4423 printf %s "(cached) " >&6 4424else case e in #( 4425 e) ac_cv_prog_cc_c11=no 4426ac_save_CC=$CC 4427cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4428/* end confdefs.h. */ 4429$ac_c_conftest_c11_program 4430_ACEOF 4431for ac_arg in '' -std=gnu11 4432do 4433 CC="$ac_save_CC $ac_arg" 4434 if ac_fn_c_try_compile "$LINENO" 4435then : 4436 ac_cv_prog_cc_c11=$ac_arg 4437fi 4438rm -f core conftest.err conftest.$ac_objext conftest.beam 4439 test "x$ac_cv_prog_cc_c11" != "xno" && break 4440done 4441rm -f conftest.$ac_ext 4442CC=$ac_save_CC ;; 4443esac 4444fi 4445 4446if test "x$ac_cv_prog_cc_c11" = xno 4447then : 4448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4449printf "%s\n" "unsupported" >&6; } 4450else case e in #( 4451 e) if test "x$ac_cv_prog_cc_c11" = x 4452then : 4453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4454printf "%s\n" "none needed" >&6; } 4455else case e in #( 4456 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4457printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4458 CC="$CC $ac_cv_prog_cc_c11" ;; 4459esac 4460fi 4461 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4462 ac_prog_cc_stdc=c11 ;; 4463esac 4464fi 4465fi 4466if test x$ac_prog_cc_stdc = xno 4467then : 4468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4469printf %s "checking for $CC option to enable C99 features... " >&6; } 4470if test ${ac_cv_prog_cc_c99+y} 4471then : 4472 printf %s "(cached) " >&6 4473else case e in #( 4474 e) ac_cv_prog_cc_c99=no 4475ac_save_CC=$CC 4476cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4477/* end confdefs.h. */ 4478$ac_c_conftest_c99_program 4479_ACEOF 4480for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4481do 4482 CC="$ac_save_CC $ac_arg" 4483 if ac_fn_c_try_compile "$LINENO" 4484then : 4485 ac_cv_prog_cc_c99=$ac_arg 4486fi 4487rm -f core conftest.err conftest.$ac_objext conftest.beam 4488 test "x$ac_cv_prog_cc_c99" != "xno" && break 4489done 4490rm -f conftest.$ac_ext 4491CC=$ac_save_CC ;; 4492esac 4493fi 4494 4495if test "x$ac_cv_prog_cc_c99" = xno 4496then : 4497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4498printf "%s\n" "unsupported" >&6; } 4499else case e in #( 4500 e) if test "x$ac_cv_prog_cc_c99" = x 4501then : 4502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4503printf "%s\n" "none needed" >&6; } 4504else case e in #( 4505 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4506printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4507 CC="$CC $ac_cv_prog_cc_c99" ;; 4508esac 4509fi 4510 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4511 ac_prog_cc_stdc=c99 ;; 4512esac 4513fi 4514fi 4515if test x$ac_prog_cc_stdc = xno 4516then : 4517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4518printf %s "checking for $CC option to enable C89 features... " >&6; } 4519if test ${ac_cv_prog_cc_c89+y} 4520then : 4521 printf %s "(cached) " >&6 4522else case e in #( 4523 e) ac_cv_prog_cc_c89=no 4524ac_save_CC=$CC 4525cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4526/* end confdefs.h. */ 4527$ac_c_conftest_c89_program 4528_ACEOF 4529for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4530do 4531 CC="$ac_save_CC $ac_arg" 4532 if ac_fn_c_try_compile "$LINENO" 4533then : 4534 ac_cv_prog_cc_c89=$ac_arg 4535fi 4536rm -f core conftest.err conftest.$ac_objext conftest.beam 4537 test "x$ac_cv_prog_cc_c89" != "xno" && break 4538done 4539rm -f conftest.$ac_ext 4540CC=$ac_save_CC ;; 4541esac 4542fi 4543 4544if test "x$ac_cv_prog_cc_c89" = xno 4545then : 4546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4547printf "%s\n" "unsupported" >&6; } 4548else case e in #( 4549 e) if test "x$ac_cv_prog_cc_c89" = x 4550then : 4551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4552printf "%s\n" "none needed" >&6; } 4553else case e in #( 4554 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4555printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4556 CC="$CC $ac_cv_prog_cc_c89" ;; 4557esac 4558fi 4559 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4560 ac_prog_cc_stdc=c89 ;; 4561esac 4562fi 4563fi 4564 4565ac_ext=c 4566ac_cpp='$CPP $CPPFLAGS' 4567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4569ac_compiler_gnu=$ac_cv_c_compiler_gnu 4570 4571 4572 ac_ext=c 4573ac_cpp='$CPP $CPPFLAGS' 4574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4576ac_compiler_gnu=$ac_cv_c_compiler_gnu 4577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4578printf %s "checking whether $CC understands -c and -o together... " >&6; } 4579if test ${am_cv_prog_cc_c_o+y} 4580then : 4581 printf %s "(cached) " >&6 4582else case e in #( 4583 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4584/* end confdefs.h. */ 4585 4586int 4587main (void) 4588{ 4589 4590 ; 4591 return 0; 4592} 4593_ACEOF 4594 # Make sure it works both with $CC and with simple cc. 4595 # Following AC_PROG_CC_C_O, we do the test twice because some 4596 # compilers refuse to overwrite an existing .o file with -o, 4597 # though they will create one. 4598 am_cv_prog_cc_c_o=yes 4599 for am_i in 1 2; do 4600 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4601 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4602 ac_status=$? 4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4604 (exit $ac_status); } \ 4605 && test -f conftest2.$ac_objext; then 4606 : OK 4607 else 4608 am_cv_prog_cc_c_o=no 4609 break 4610 fi 4611 done 4612 rm -f core conftest* 4613 unset am_i ;; 4614esac 4615fi 4616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4617printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4618if test "$am_cv_prog_cc_c_o" != yes; then 4619 # Losing compiler, so override with the script. 4620 # FIXME: It is wrong to rewrite CC. 4621 # But if we don't then we get into trouble of one sort or another. 4622 # A longer-term fix would be to have automake use am__CC in this case, 4623 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4624 CC="$am_aux_dir/compile $CC" 4625fi 4626ac_ext=c 4627ac_cpp='$CPP $CPPFLAGS' 4628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4630ac_compiler_gnu=$ac_cv_c_compiler_gnu 4631 4632DEPDIR="${am__leading_dot}deps" 4633 4634ac_config_commands="$ac_config_commands depfiles" 4635 4636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4637printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4638cat > confinc.mk << 'END' 4639am__doit: 4640 @echo this is the am__doit target >confinc.out 4641.PHONY: am__doit 4642END 4643am__include="#" 4644am__quote= 4645# BSD make does it like this. 4646echo '.include "confinc.mk" # ignored' > confmf.BSD 4647# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4648echo 'include confinc.mk # ignored' > confmf.GNU 4649_am_result=no 4650for s in GNU BSD; do 4651 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4652 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4653 ac_status=$? 4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4655 (exit $ac_status); } 4656 case $?:`cat confinc.out 2>/dev/null` in #( 4657 '0:this is the am__doit target') : 4658 case $s in #( 4659 BSD) : 4660 am__include='.include' am__quote='"' ;; #( 4661 *) : 4662 am__include='include' am__quote='' ;; 4663esac ;; #( 4664 *) : 4665 ;; 4666esac 4667 if test "$am__include" != "#"; then 4668 _am_result="yes ($s style)" 4669 break 4670 fi 4671done 4672rm -f confinc.* confmf.* 4673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4674printf "%s\n" "${_am_result}" >&6; } 4675 4676# Check whether --enable-dependency-tracking was given. 4677if test ${enable_dependency_tracking+y} 4678then : 4679 enableval=$enable_dependency_tracking; 4680fi 4681 4682if test "x$enable_dependency_tracking" != xno; then 4683 am_depcomp="$ac_aux_dir/depcomp" 4684 AMDEPBACKSLASH='\' 4685 am__nodep='_no' 4686fi 4687 if test "x$enable_dependency_tracking" != xno; then 4688 AMDEP_TRUE= 4689 AMDEP_FALSE='#' 4690else 4691 AMDEP_TRUE='#' 4692 AMDEP_FALSE= 4693fi 4694 4695 4696 4697depcc="$CC" am_compiler_list= 4698 4699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4700printf %s "checking dependency style of $depcc... " >&6; } 4701if test ${am_cv_CC_dependencies_compiler_type+y} 4702then : 4703 printf %s "(cached) " >&6 4704else case e in #( 4705 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4706 # We make a subdir and do the tests there. Otherwise we can end up 4707 # making bogus files that we don't know about and never remove. For 4708 # instance it was reported that on HP-UX the gcc test will end up 4709 # making a dummy file named 'D' -- because '-MD' means "put the output 4710 # in D". 4711 rm -rf conftest.dir 4712 mkdir conftest.dir 4713 # Copy depcomp to subdir because otherwise we won't find it if we're 4714 # using a relative directory. 4715 cp "$am_depcomp" conftest.dir 4716 cd conftest.dir 4717 # We will build objects and dependencies in a subdirectory because 4718 # it helps to detect inapplicable dependency modes. For instance 4719 # both Tru64's cc and ICC support -MD to output dependencies as a 4720 # side effect of compilation, but ICC will put the dependencies in 4721 # the current directory while Tru64 will put them in the object 4722 # directory. 4723 mkdir sub 4724 4725 am_cv_CC_dependencies_compiler_type=none 4726 if test "$am_compiler_list" = ""; then 4727 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4728 fi 4729 am__universal=false 4730 case " $depcc " in #( 4731 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4732 esac 4733 4734 for depmode in $am_compiler_list; do 4735 # Setup a source with many dependencies, because some compilers 4736 # like to wrap large dependency lists on column 80 (with \), and 4737 # we should not choose a depcomp mode which is confused by this. 4738 # 4739 # We need to recreate these files for each test, as the compiler may 4740 # overwrite some of them when testing with obscure command lines. 4741 # This happens at least with the AIX C compiler. 4742 : > sub/conftest.c 4743 for i in 1 2 3 4 5 6; do 4744 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4745 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4746 # Solaris 10 /bin/sh. 4747 echo '/* dummy */' > sub/conftst$i.h 4748 done 4749 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4750 4751 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4752 # mode. It turns out that the SunPro C++ compiler does not properly 4753 # handle '-M -o', and we need to detect this. Also, some Intel 4754 # versions had trouble with output in subdirs. 4755 am__obj=sub/conftest.${OBJEXT-o} 4756 am__minus_obj="-o $am__obj" 4757 case $depmode in 4758 gcc) 4759 # This depmode causes a compiler race in universal mode. 4760 test "$am__universal" = false || continue 4761 ;; 4762 nosideeffect) 4763 # After this tag, mechanisms are not by side-effect, so they'll 4764 # only be used when explicitly requested. 4765 if test "x$enable_dependency_tracking" = xyes; then 4766 continue 4767 else 4768 break 4769 fi 4770 ;; 4771 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4772 # This compiler won't grok '-c -o', but also, the minuso test has 4773 # not run yet. These depmodes are late enough in the game, and 4774 # so weak that their functioning should not be impacted. 4775 am__obj=conftest.${OBJEXT-o} 4776 am__minus_obj= 4777 ;; 4778 none) break ;; 4779 esac 4780 if depmode=$depmode \ 4781 source=sub/conftest.c object=$am__obj \ 4782 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4783 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4784 >/dev/null 2>conftest.err && 4785 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4786 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4787 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4788 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4789 # icc doesn't choke on unknown options, it will just issue warnings 4790 # or remarks (even with -Werror). So we grep stderr for any message 4791 # that says an option was ignored or not supported. 4792 # When given -MP, icc 7.0 and 7.1 complain thus: 4793 # icc: Command line warning: ignoring option '-M'; no argument required 4794 # The diagnosis changed in icc 8.0: 4795 # icc: Command line remark: option '-MP' not supported 4796 if (grep 'ignoring option' conftest.err || 4797 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4798 am_cv_CC_dependencies_compiler_type=$depmode 4799 break 4800 fi 4801 fi 4802 done 4803 4804 cd .. 4805 rm -rf conftest.dir 4806else 4807 am_cv_CC_dependencies_compiler_type=none 4808fi 4809 ;; 4810esac 4811fi 4812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4813printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4814CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4815 4816 if 4817 test "x$enable_dependency_tracking" != xno \ 4818 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4819 am__fastdepCC_TRUE= 4820 am__fastdepCC_FALSE='#' 4821else 4822 am__fastdepCC_TRUE='#' 4823 am__fastdepCC_FALSE= 4824fi 4825 4826 4827# By default we simply use the C compiler to build assembly code. 4828 4829test "${CCAS+set}" = set || CCAS=$CC 4830test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS 4831 4832 4833 4834depcc="$CCAS" am_compiler_list= 4835 4836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4837printf %s "checking dependency style of $depcc... " >&6; } 4838if test ${am_cv_CCAS_dependencies_compiler_type+y} 4839then : 4840 printf %s "(cached) " >&6 4841else case e in #( 4842 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4843 # We make a subdir and do the tests there. Otherwise we can end up 4844 # making bogus files that we don't know about and never remove. For 4845 # instance it was reported that on HP-UX the gcc test will end up 4846 # making a dummy file named 'D' -- because '-MD' means "put the output 4847 # in D". 4848 rm -rf conftest.dir 4849 mkdir conftest.dir 4850 # Copy depcomp to subdir because otherwise we won't find it if we're 4851 # using a relative directory. 4852 cp "$am_depcomp" conftest.dir 4853 cd conftest.dir 4854 # We will build objects and dependencies in a subdirectory because 4855 # it helps to detect inapplicable dependency modes. For instance 4856 # both Tru64's cc and ICC support -MD to output dependencies as a 4857 # side effect of compilation, but ICC will put the dependencies in 4858 # the current directory while Tru64 will put them in the object 4859 # directory. 4860 mkdir sub 4861 4862 am_cv_CCAS_dependencies_compiler_type=none 4863 if test "$am_compiler_list" = ""; then 4864 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4865 fi 4866 am__universal=false 4867 4868 4869 for depmode in $am_compiler_list; do 4870 # Setup a source with many dependencies, because some compilers 4871 # like to wrap large dependency lists on column 80 (with \), and 4872 # we should not choose a depcomp mode which is confused by this. 4873 # 4874 # We need to recreate these files for each test, as the compiler may 4875 # overwrite some of them when testing with obscure command lines. 4876 # This happens at least with the AIX C compiler. 4877 : > sub/conftest.c 4878 for i in 1 2 3 4 5 6; do 4879 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4880 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4881 # Solaris 10 /bin/sh. 4882 echo '/* dummy */' > sub/conftst$i.h 4883 done 4884 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4885 4886 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4887 # mode. It turns out that the SunPro C++ compiler does not properly 4888 # handle '-M -o', and we need to detect this. Also, some Intel 4889 # versions had trouble with output in subdirs. 4890 am__obj=sub/conftest.${OBJEXT-o} 4891 am__minus_obj="-o $am__obj" 4892 case $depmode in 4893 gcc) 4894 # This depmode causes a compiler race in universal mode. 4895 test "$am__universal" = false || continue 4896 ;; 4897 nosideeffect) 4898 # After this tag, mechanisms are not by side-effect, so they'll 4899 # only be used when explicitly requested. 4900 if test "x$enable_dependency_tracking" = xyes; then 4901 continue 4902 else 4903 break 4904 fi 4905 ;; 4906 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4907 # This compiler won't grok '-c -o', but also, the minuso test has 4908 # not run yet. These depmodes are late enough in the game, and 4909 # so weak that their functioning should not be impacted. 4910 am__obj=conftest.${OBJEXT-o} 4911 am__minus_obj= 4912 ;; 4913 none) break ;; 4914 esac 4915 if depmode=$depmode \ 4916 source=sub/conftest.c object=$am__obj \ 4917 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4918 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4919 >/dev/null 2>conftest.err && 4920 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4921 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4922 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4923 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4924 # icc doesn't choke on unknown options, it will just issue warnings 4925 # or remarks (even with -Werror). So we grep stderr for any message 4926 # that says an option was ignored or not supported. 4927 # When given -MP, icc 7.0 and 7.1 complain thus: 4928 # icc: Command line warning: ignoring option '-M'; no argument required 4929 # The diagnosis changed in icc 8.0: 4930 # icc: Command line remark: option '-MP' not supported 4931 if (grep 'ignoring option' conftest.err || 4932 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4933 am_cv_CCAS_dependencies_compiler_type=$depmode 4934 break 4935 fi 4936 fi 4937 done 4938 4939 cd .. 4940 rm -rf conftest.dir 4941else 4942 am_cv_CCAS_dependencies_compiler_type=none 4943fi 4944 ;; 4945esac 4946fi 4947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 4948printf "%s\n" "$am_cv_CCAS_dependencies_compiler_type" >&6; } 4949CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type 4950 4951 if 4952 test "x$enable_dependency_tracking" != xno \ 4953 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then 4954 am__fastdepCCAS_TRUE= 4955 am__fastdepCCAS_FALSE='#' 4956else 4957 am__fastdepCCAS_TRUE='#' 4958 am__fastdepCCAS_FALSE= 4959fi 4960 4961 4962 4963 4964 # Make sure we can run config.sub. 4965$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4966 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4967 4968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4969printf %s "checking build system type... " >&6; } 4970if test ${ac_cv_build+y} 4971then : 4972 printf %s "(cached) " >&6 4973else case e in #( 4974 e) ac_build_alias=$build_alias 4975test "x$ac_build_alias" = x && 4976 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4977test "x$ac_build_alias" = x && 4978 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4979ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4980 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4981 ;; 4982esac 4983fi 4984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4985printf "%s\n" "$ac_cv_build" >&6; } 4986case $ac_cv_build in 4987*-*-*) ;; 4988*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4989esac 4990build=$ac_cv_build 4991ac_save_IFS=$IFS; IFS='-' 4992set x $ac_cv_build 4993shift 4994build_cpu=$1 4995build_vendor=$2 4996shift; shift 4997# Remember, the first character of IFS is used to create $*, 4998# except with old shells: 4999build_os=$* 5000IFS=$ac_save_IFS 5001case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5002 5003 5004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5005printf %s "checking host system type... " >&6; } 5006if test ${ac_cv_host+y} 5007then : 5008 printf %s "(cached) " >&6 5009else case e in #( 5010 e) if test "x$host_alias" = x; then 5011 ac_cv_host=$ac_cv_build 5012else 5013 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 5014 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 5015fi 5016 ;; 5017esac 5018fi 5019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5020printf "%s\n" "$ac_cv_host" >&6; } 5021case $ac_cv_host in 5022*-*-*) ;; 5023*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5024esac 5025host=$ac_cv_host 5026ac_save_IFS=$IFS; IFS='-' 5027set x $ac_cv_host 5028shift 5029host_cpu=$1 5030host_vendor=$2 5031shift; shift 5032# Remember, the first character of IFS is used to create $*, 5033# except with old shells: 5034host_os=$* 5035IFS=$ac_save_IFS 5036case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5037 5038 5039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5040printf %s "checking for a sed that does not truncate output... " >&6; } 5041if test ${ac_cv_path_SED+y} 5042then : 5043 printf %s "(cached) " >&6 5044else case e in #( 5045 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5046 for ac_i in 1 2 3 4 5 6 7; do 5047 ac_script="$ac_script$as_nl$ac_script" 5048 done 5049 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5050 { ac_script=; unset ac_script;} 5051 if test -z "$SED"; then 5052 ac_path_SED_found=false 5053 # Loop through the user's path and test for each of PROGNAME-LIST 5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5055for as_dir in $PATH 5056do 5057 IFS=$as_save_IFS 5058 case $as_dir in #((( 5059 '') as_dir=./ ;; 5060 */) ;; 5061 *) as_dir=$as_dir/ ;; 5062 esac 5063 for ac_prog in sed gsed 5064 do 5065 for ac_exec_ext in '' $ac_executable_extensions; do 5066 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5067 as_fn_executable_p "$ac_path_SED" || continue 5068# Check for GNU ac_path_SED and select it if it is found. 5069 # Check for GNU $ac_path_SED 5070case `"$ac_path_SED" --version 2>&1` in #( 5071*GNU*) 5072 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5073#( 5074*) 5075 ac_count=0 5076 printf %s 0123456789 >"conftest.in" 5077 while : 5078 do 5079 cat "conftest.in" "conftest.in" >"conftest.tmp" 5080 mv "conftest.tmp" "conftest.in" 5081 cp "conftest.in" "conftest.nl" 5082 printf "%s\n" '' >> "conftest.nl" 5083 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5084 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5085 as_fn_arith $ac_count + 1 && ac_count=$as_val 5086 if test $ac_count -gt ${ac_path_SED_max-0}; then 5087 # Best one so far, save it but keep looking for a better one 5088 ac_cv_path_SED="$ac_path_SED" 5089 ac_path_SED_max=$ac_count 5090 fi 5091 # 10*(2^10) chars as input seems more than enough 5092 test $ac_count -gt 10 && break 5093 done 5094 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5095esac 5096 5097 $ac_path_SED_found && break 3 5098 done 5099 done 5100 done 5101IFS=$as_save_IFS 5102 if test -z "$ac_cv_path_SED"; then 5103 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5104 fi 5105else 5106 ac_cv_path_SED=$SED 5107fi 5108 ;; 5109esac 5110fi 5111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5112printf "%s\n" "$ac_cv_path_SED" >&6; } 5113 SED="$ac_cv_path_SED" 5114 rm -f conftest.sed 5115 5116test -z "$SED" && SED=sed 5117Xsed="$SED -e 1s/^X//" 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5130printf %s "checking for grep that handles long lines and -e... " >&6; } 5131if test ${ac_cv_path_GREP+y} 5132then : 5133 printf %s "(cached) " >&6 5134else case e in #( 5135 e) if test -z "$GREP"; then 5136 ac_path_GREP_found=false 5137 # Loop through the user's path and test for each of PROGNAME-LIST 5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5139for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5140do 5141 IFS=$as_save_IFS 5142 case $as_dir in #((( 5143 '') as_dir=./ ;; 5144 */) ;; 5145 *) as_dir=$as_dir/ ;; 5146 esac 5147 for ac_prog in grep ggrep 5148 do 5149 for ac_exec_ext in '' $ac_executable_extensions; do 5150 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5151 as_fn_executable_p "$ac_path_GREP" || continue 5152# Check for GNU ac_path_GREP and select it if it is found. 5153 # Check for GNU $ac_path_GREP 5154case `"$ac_path_GREP" --version 2>&1` in #( 5155*GNU*) 5156 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5157#( 5158*) 5159 ac_count=0 5160 printf %s 0123456789 >"conftest.in" 5161 while : 5162 do 5163 cat "conftest.in" "conftest.in" >"conftest.tmp" 5164 mv "conftest.tmp" "conftest.in" 5165 cp "conftest.in" "conftest.nl" 5166 printf "%s\n" 'GREP' >> "conftest.nl" 5167 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5168 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5169 as_fn_arith $ac_count + 1 && ac_count=$as_val 5170 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5171 # Best one so far, save it but keep looking for a better one 5172 ac_cv_path_GREP="$ac_path_GREP" 5173 ac_path_GREP_max=$ac_count 5174 fi 5175 # 10*(2^10) chars as input seems more than enough 5176 test $ac_count -gt 10 && break 5177 done 5178 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5179esac 5180 5181 $ac_path_GREP_found && break 3 5182 done 5183 done 5184 done 5185IFS=$as_save_IFS 5186 if test -z "$ac_cv_path_GREP"; then 5187 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5188 fi 5189else 5190 ac_cv_path_GREP=$GREP 5191fi 5192 ;; 5193esac 5194fi 5195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5196printf "%s\n" "$ac_cv_path_GREP" >&6; } 5197 GREP="$ac_cv_path_GREP" 5198 5199 5200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5201printf %s "checking for egrep... " >&6; } 5202if test ${ac_cv_path_EGREP+y} 5203then : 5204 printf %s "(cached) " >&6 5205else case e in #( 5206 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5207 then ac_cv_path_EGREP="$GREP -E" 5208 else 5209 if test -z "$EGREP"; then 5210 ac_path_EGREP_found=false 5211 # Loop through the user's path and test for each of PROGNAME-LIST 5212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5213for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5214do 5215 IFS=$as_save_IFS 5216 case $as_dir in #((( 5217 '') as_dir=./ ;; 5218 */) ;; 5219 *) as_dir=$as_dir/ ;; 5220 esac 5221 for ac_prog in egrep 5222 do 5223 for ac_exec_ext in '' $ac_executable_extensions; do 5224 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5225 as_fn_executable_p "$ac_path_EGREP" || continue 5226# Check for GNU ac_path_EGREP and select it if it is found. 5227 # Check for GNU $ac_path_EGREP 5228case `"$ac_path_EGREP" --version 2>&1` in #( 5229*GNU*) 5230 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5231#( 5232*) 5233 ac_count=0 5234 printf %s 0123456789 >"conftest.in" 5235 while : 5236 do 5237 cat "conftest.in" "conftest.in" >"conftest.tmp" 5238 mv "conftest.tmp" "conftest.in" 5239 cp "conftest.in" "conftest.nl" 5240 printf "%s\n" 'EGREP' >> "conftest.nl" 5241 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5242 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5243 as_fn_arith $ac_count + 1 && ac_count=$as_val 5244 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5245 # Best one so far, save it but keep looking for a better one 5246 ac_cv_path_EGREP="$ac_path_EGREP" 5247 ac_path_EGREP_max=$ac_count 5248 fi 5249 # 10*(2^10) chars as input seems more than enough 5250 test $ac_count -gt 10 && break 5251 done 5252 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5253esac 5254 5255 $ac_path_EGREP_found && break 3 5256 done 5257 done 5258 done 5259IFS=$as_save_IFS 5260 if test -z "$ac_cv_path_EGREP"; then 5261 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5262 fi 5263else 5264 ac_cv_path_EGREP=$EGREP 5265fi 5266 5267 fi ;; 5268esac 5269fi 5270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5271printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5272 EGREP="$ac_cv_path_EGREP" 5273 5274 EGREP_TRADITIONAL=$EGREP 5275 ac_cv_path_EGREP_TRADITIONAL=$EGREP 5276 5277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5278printf %s "checking for fgrep... " >&6; } 5279if test ${ac_cv_path_FGREP+y} 5280then : 5281 printf %s "(cached) " >&6 5282else case e in #( 5283 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5284 then ac_cv_path_FGREP="$GREP -F" 5285 else 5286 if test -z "$FGREP"; then 5287 ac_path_FGREP_found=false 5288 # Loop through the user's path and test for each of PROGNAME-LIST 5289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5290for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5291do 5292 IFS=$as_save_IFS 5293 case $as_dir in #((( 5294 '') as_dir=./ ;; 5295 */) ;; 5296 *) as_dir=$as_dir/ ;; 5297 esac 5298 for ac_prog in fgrep 5299 do 5300 for ac_exec_ext in '' $ac_executable_extensions; do 5301 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5302 as_fn_executable_p "$ac_path_FGREP" || continue 5303# Check for GNU ac_path_FGREP and select it if it is found. 5304 # Check for GNU $ac_path_FGREP 5305case `"$ac_path_FGREP" --version 2>&1` in #( 5306*GNU*) 5307 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5308#( 5309*) 5310 ac_count=0 5311 printf %s 0123456789 >"conftest.in" 5312 while : 5313 do 5314 cat "conftest.in" "conftest.in" >"conftest.tmp" 5315 mv "conftest.tmp" "conftest.in" 5316 cp "conftest.in" "conftest.nl" 5317 printf "%s\n" 'FGREP' >> "conftest.nl" 5318 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5319 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5320 as_fn_arith $ac_count + 1 && ac_count=$as_val 5321 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5322 # Best one so far, save it but keep looking for a better one 5323 ac_cv_path_FGREP="$ac_path_FGREP" 5324 ac_path_FGREP_max=$ac_count 5325 fi 5326 # 10*(2^10) chars as input seems more than enough 5327 test $ac_count -gt 10 && break 5328 done 5329 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5330esac 5331 5332 $ac_path_FGREP_found && break 3 5333 done 5334 done 5335 done 5336IFS=$as_save_IFS 5337 if test -z "$ac_cv_path_FGREP"; then 5338 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5339 fi 5340else 5341 ac_cv_path_FGREP=$FGREP 5342fi 5343 5344 fi ;; 5345esac 5346fi 5347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5348printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5349 FGREP="$ac_cv_path_FGREP" 5350 5351 5352test -z "$GREP" && GREP=grep 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5371ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5372ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5373 5374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5375printf %s "checking how to print strings... " >&6; } 5376# Test print first, because it will be a builtin if present. 5377if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5378 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5379 ECHO='print -r --' 5380elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5381 ECHO='printf %s\n' 5382else 5383 # Use this function as a fallback that always works. 5384 func_fallback_echo () 5385 { 5386 eval 'cat <<_LTECHO_EOF 5387$1 5388_LTECHO_EOF' 5389 } 5390 ECHO='func_fallback_echo' 5391fi 5392 5393# func_echo_all arg... 5394# Invoke $ECHO with all args, space-separated. 5395func_echo_all () 5396{ 5397 $ECHO "" 5398} 5399 5400case $ECHO in 5401 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5402printf "%s\n" "printf" >&6; } ;; 5403 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5404printf "%s\n" "print -r" >&6; } ;; 5405 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5406printf "%s\n" "cat" >&6; } ;; 5407esac 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424# Check whether --with-gnu-ld was given. 5425if test ${with_gnu_ld+y} 5426then : 5427 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5428else case e in #( 5429 e) with_gnu_ld=no ;; 5430esac 5431fi 5432 5433ac_prog=ld 5434if test yes = "$GCC"; then 5435 # Check if gcc -print-prog-name=ld gives a path. 5436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5437printf %s "checking for ld used by $CC... " >&6; } 5438 case $host in 5439 *-*-mingw*) 5440 # gcc leaves a trailing carriage return, which upsets mingw 5441 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5442 *) 5443 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5444 esac 5445 case $ac_prog in 5446 # Accept absolute paths. 5447 [\\/]* | ?:[\\/]*) 5448 re_direlt='/[^/][^/]*/\.\./' 5449 # Canonicalize the pathname of ld 5450 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5451 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5452 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5453 done 5454 test -z "$LD" && LD=$ac_prog 5455 ;; 5456 "") 5457 # If it fails, then pretend we aren't using GCC. 5458 ac_prog=ld 5459 ;; 5460 *) 5461 # If it is relative, then search for the first ld in PATH. 5462 with_gnu_ld=unknown 5463 ;; 5464 esac 5465elif test yes = "$with_gnu_ld"; then 5466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5467printf %s "checking for GNU ld... " >&6; } 5468else 5469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5470printf %s "checking for non-GNU ld... " >&6; } 5471fi 5472if test ${lt_cv_path_LD+y} 5473then : 5474 printf %s "(cached) " >&6 5475else case e in #( 5476 e) if test -z "$LD"; then 5477 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5478 for ac_dir in $PATH; do 5479 IFS=$lt_save_ifs 5480 test -z "$ac_dir" && ac_dir=. 5481 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5482 lt_cv_path_LD=$ac_dir/$ac_prog 5483 # Check to see if the program is GNU ld. I'd rather use --version, 5484 # but apparently some variants of GNU ld only accept -v. 5485 # Break only if it was the GNU/non-GNU ld that we prefer. 5486 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5487 *GNU* | *'with BFD'*) 5488 test no != "$with_gnu_ld" && break 5489 ;; 5490 *) 5491 test yes != "$with_gnu_ld" && break 5492 ;; 5493 esac 5494 fi 5495 done 5496 IFS=$lt_save_ifs 5497else 5498 lt_cv_path_LD=$LD # Let the user override the test with a path. 5499fi ;; 5500esac 5501fi 5502 5503LD=$lt_cv_path_LD 5504if test -n "$LD"; then 5505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5506printf "%s\n" "$LD" >&6; } 5507else 5508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5509printf "%s\n" "no" >&6; } 5510fi 5511test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5513printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5514if test ${lt_cv_prog_gnu_ld+y} 5515then : 5516 printf %s "(cached) " >&6 5517else case e in #( 5518 e) # I'd rather use --version here, but apparently some GNU lds only accept -v. 5519case `$LD -v 2>&1 </dev/null` in 5520*GNU* | *'with BFD'*) 5521 lt_cv_prog_gnu_ld=yes 5522 ;; 5523*) 5524 lt_cv_prog_gnu_ld=no 5525 ;; 5526esac ;; 5527esac 5528fi 5529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5530printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5531with_gnu_ld=$lt_cv_prog_gnu_ld 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541ac_ext=c 5542ac_cpp='$CPP $CPPFLAGS' 5543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5545ac_compiler_gnu=$ac_cv_c_compiler_gnu 5546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5547printf %s "checking how to run the C preprocessor... " >&6; } 5548# On Suns, sometimes $CPP names a directory. 5549if test -n "$CPP" && test -d "$CPP"; then 5550 CPP= 5551fi 5552if test -z "$CPP"; then 5553 if test ${ac_cv_prog_CPP+y} 5554then : 5555 printf %s "(cached) " >&6 5556else case e in #( 5557 e) # Double quotes because $CC needs to be expanded 5558 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 5559 do 5560 ac_preproc_ok=false 5561for ac_c_preproc_warn_flag in '' yes 5562do 5563 # Use a header file that comes with gcc, so configuring glibc 5564 # with a fresh cross-compiler works. 5565 # On the NeXT, cc -E runs the code through the compiler's parser, 5566 # not just through cpp. "Syntax error" is here to catch this case. 5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5568/* end confdefs.h. */ 5569#include <limits.h> 5570 Syntax error 5571_ACEOF 5572if ac_fn_c_try_cpp "$LINENO" 5573then : 5574 5575else case e in #( 5576 e) # Broken: fails on valid input. 5577continue ;; 5578esac 5579fi 5580rm -f conftest.err conftest.i conftest.$ac_ext 5581 5582 # OK, works on sane cases. Now check whether nonexistent headers 5583 # can be detected and how. 5584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5585/* end confdefs.h. */ 5586#include <ac_nonexistent.h> 5587_ACEOF 5588if ac_fn_c_try_cpp "$LINENO" 5589then : 5590 # Broken: success on invalid input. 5591continue 5592else case e in #( 5593 e) # Passes both tests. 5594ac_preproc_ok=: 5595break ;; 5596esac 5597fi 5598rm -f conftest.err conftest.i conftest.$ac_ext 5599 5600done 5601# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5602rm -f conftest.i conftest.err conftest.$ac_ext 5603if $ac_preproc_ok 5604then : 5605 break 5606fi 5607 5608 done 5609 ac_cv_prog_CPP=$CPP 5610 ;; 5611esac 5612fi 5613 CPP=$ac_cv_prog_CPP 5614else 5615 ac_cv_prog_CPP=$CPP 5616fi 5617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5618printf "%s\n" "$CPP" >&6; } 5619ac_preproc_ok=false 5620for ac_c_preproc_warn_flag in '' yes 5621do 5622 # Use a header file that comes with gcc, so configuring glibc 5623 # with a fresh cross-compiler works. 5624 # On the NeXT, cc -E runs the code through the compiler's parser, 5625 # not just through cpp. "Syntax error" is here to catch this case. 5626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5627/* end confdefs.h. */ 5628#include <limits.h> 5629 Syntax error 5630_ACEOF 5631if ac_fn_c_try_cpp "$LINENO" 5632then : 5633 5634else case e in #( 5635 e) # Broken: fails on valid input. 5636continue ;; 5637esac 5638fi 5639rm -f conftest.err conftest.i conftest.$ac_ext 5640 5641 # OK, works on sane cases. Now check whether nonexistent headers 5642 # can be detected and how. 5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5644/* end confdefs.h. */ 5645#include <ac_nonexistent.h> 5646_ACEOF 5647if ac_fn_c_try_cpp "$LINENO" 5648then : 5649 # Broken: success on invalid input. 5650continue 5651else case e in #( 5652 e) # Passes both tests. 5653ac_preproc_ok=: 5654break ;; 5655esac 5656fi 5657rm -f conftest.err conftest.i conftest.$ac_ext 5658 5659done 5660# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5661rm -f conftest.i conftest.err conftest.$ac_ext 5662if $ac_preproc_ok 5663then : 5664 5665else case e in #( 5666 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 5667printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 5668as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5669See 'config.log' for more details" "$LINENO" 5; } ;; 5670esac 5671fi 5672 5673ac_ext=c 5674ac_cpp='$CPP $CPPFLAGS' 5675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5677ac_compiler_gnu=$ac_cv_c_compiler_gnu 5678 5679for ac_prog in gawk mawk nawk awk 5680do 5681 # Extract the first word of "$ac_prog", so it can be a program name with args. 5682set dummy $ac_prog; ac_word=$2 5683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5684printf %s "checking for $ac_word... " >&6; } 5685if test ${ac_cv_prog_AWK+y} 5686then : 5687 printf %s "(cached) " >&6 5688else case e in #( 5689 e) if test -n "$AWK"; then 5690 ac_cv_prog_AWK="$AWK" # Let the user override the test. 5691else 5692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5693for as_dir in $PATH 5694do 5695 IFS=$as_save_IFS 5696 case $as_dir in #((( 5697 '') as_dir=./ ;; 5698 */) ;; 5699 *) as_dir=$as_dir/ ;; 5700 esac 5701 for ac_exec_ext in '' $ac_executable_extensions; do 5702 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5703 ac_cv_prog_AWK="$ac_prog" 5704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5705 break 2 5706 fi 5707done 5708 done 5709IFS=$as_save_IFS 5710 5711fi ;; 5712esac 5713fi 5714AWK=$ac_cv_prog_AWK 5715if test -n "$AWK"; then 5716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 5717printf "%s\n" "$AWK" >&6; } 5718else 5719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5720printf "%s\n" "no" >&6; } 5721fi 5722 5723 5724 test -n "$AWK" && break 5725done 5726 5727 5728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5729printf %s "checking whether ln -s works... " >&6; } 5730LN_S=$as_ln_s 5731if test "$LN_S" = "ln -s"; then 5732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5733printf "%s\n" "yes" >&6; } 5734else 5735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5736printf "%s\n" "no, using $LN_S" >&6; } 5737fi 5738 5739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 5740printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 5741set x ${MAKE-make} 5742ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 5743if eval test \${ac_cv_prog_make_${ac_make}_set+y} 5744then : 5745 printf %s "(cached) " >&6 5746else case e in #( 5747 e) cat >conftest.make <<\_ACEOF 5748SHELL = /bin/sh 5749all: 5750 @echo '@@@%%%=$(MAKE)=@@@%%%' 5751_ACEOF 5752# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 5753case `${MAKE-make} -f conftest.make 2>/dev/null` in 5754 *@@@%%%=?*=@@@%%%*) 5755 eval ac_cv_prog_make_${ac_make}_set=yes;; 5756 *) 5757 eval ac_cv_prog_make_${ac_make}_set=no;; 5758esac 5759rm -f conftest.make ;; 5760esac 5761fi 5762if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 5763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5764printf "%s\n" "yes" >&6; } 5765 SET_MAKE= 5766else 5767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5768printf "%s\n" "no" >&6; } 5769 SET_MAKE="MAKE=${MAKE-make}" 5770fi 5771 5772 5773case `pwd` in 5774 *\ * | *\ *) 5775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5776printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5777esac 5778 5779 5780 5781macro_version='2.4.7' 5782macro_revision='2.4.7' 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797ltmain=$ac_aux_dir/ltmain.sh 5798 5799# Backslashify metacharacters that are still active within 5800# double-quoted strings. 5801sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5802 5803# Same as above, but do not quote variable references. 5804double_quote_subst='s/\(["`\\]\)/\\\1/g' 5805 5806# Sed substitution to delay expansion of an escaped shell variable in a 5807# double_quote_subst'ed string. 5808delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5809 5810# Sed substitution to delay expansion of an escaped single quote. 5811delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5812 5813# Sed substitution to avoid accidental globbing in evaled expressions 5814no_glob_subst='s/\*/\\\*/g' 5815 5816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5817printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5818if test ${lt_cv_path_NM+y} 5819then : 5820 printf %s "(cached) " >&6 5821else case e in #( 5822 e) if test -n "$NM"; then 5823 # Let the user override the test. 5824 lt_cv_path_NM=$NM 5825else 5826 lt_nm_to_check=${ac_tool_prefix}nm 5827 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5828 lt_nm_to_check="$lt_nm_to_check nm" 5829 fi 5830 for lt_tmp_nm in $lt_nm_to_check; do 5831 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5832 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5833 IFS=$lt_save_ifs 5834 test -z "$ac_dir" && ac_dir=. 5835 tmp_nm=$ac_dir/$lt_tmp_nm 5836 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5837 # Check to see if the nm accepts a BSD-compat flag. 5838 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5839 # nm: unknown option "B" ignored 5840 # Tru64's nm complains that /dev/null is an invalid object file 5841 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5842 case $build_os in 5843 mingw*) lt_bad_file=conftest.nm/nofile ;; 5844 *) lt_bad_file=/dev/null ;; 5845 esac 5846 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5847 *$lt_bad_file* | *'Invalid file or object type'*) 5848 lt_cv_path_NM="$tmp_nm -B" 5849 break 2 5850 ;; 5851 *) 5852 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5853 */dev/null*) 5854 lt_cv_path_NM="$tmp_nm -p" 5855 break 2 5856 ;; 5857 *) 5858 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5859 continue # so that we can try to find one that supports BSD flags 5860 ;; 5861 esac 5862 ;; 5863 esac 5864 fi 5865 done 5866 IFS=$lt_save_ifs 5867 done 5868 : ${lt_cv_path_NM=no} 5869fi ;; 5870esac 5871fi 5872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5873printf "%s\n" "$lt_cv_path_NM" >&6; } 5874if test no != "$lt_cv_path_NM"; then 5875 NM=$lt_cv_path_NM 5876else 5877 # Didn't find any BSD compatible name lister, look for dumpbin. 5878 if test -n "$DUMPBIN"; then : 5879 # Let the user override the test. 5880 else 5881 if test -n "$ac_tool_prefix"; then 5882 for ac_prog in dumpbin "link -dump" 5883 do 5884 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5885set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5887printf %s "checking for $ac_word... " >&6; } 5888if test ${ac_cv_prog_DUMPBIN+y} 5889then : 5890 printf %s "(cached) " >&6 5891else case e in #( 5892 e) if test -n "$DUMPBIN"; then 5893 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5894else 5895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5896for as_dir in $PATH 5897do 5898 IFS=$as_save_IFS 5899 case $as_dir in #((( 5900 '') as_dir=./ ;; 5901 */) ;; 5902 *) as_dir=$as_dir/ ;; 5903 esac 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_DUMPBIN="$ac_tool_prefix$ac_prog" 5907 printf "%s\n" "$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 ;; 5915esac 5916fi 5917DUMPBIN=$ac_cv_prog_DUMPBIN 5918if test -n "$DUMPBIN"; then 5919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5920printf "%s\n" "$DUMPBIN" >&6; } 5921else 5922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5923printf "%s\n" "no" >&6; } 5924fi 5925 5926 5927 test -n "$DUMPBIN" && break 5928 done 5929fi 5930if test -z "$DUMPBIN"; then 5931 ac_ct_DUMPBIN=$DUMPBIN 5932 for ac_prog in dumpbin "link -dump" 5933do 5934 # Extract the first word of "$ac_prog", so it can be a program name with args. 5935set dummy $ac_prog; ac_word=$2 5936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5937printf %s "checking for $ac_word... " >&6; } 5938if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5939then : 5940 printf %s "(cached) " >&6 5941else case e in #( 5942 e) if test -n "$ac_ct_DUMPBIN"; then 5943 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5944else 5945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5946for as_dir in $PATH 5947do 5948 IFS=$as_save_IFS 5949 case $as_dir in #((( 5950 '') as_dir=./ ;; 5951 */) ;; 5952 *) as_dir=$as_dir/ ;; 5953 esac 5954 for ac_exec_ext in '' $ac_executable_extensions; do 5955 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5956 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5958 break 2 5959 fi 5960done 5961 done 5962IFS=$as_save_IFS 5963 5964fi ;; 5965esac 5966fi 5967ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5968if test -n "$ac_ct_DUMPBIN"; then 5969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5970printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5971else 5972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5973printf "%s\n" "no" >&6; } 5974fi 5975 5976 5977 test -n "$ac_ct_DUMPBIN" && break 5978done 5979 5980 if test "x$ac_ct_DUMPBIN" = x; then 5981 DUMPBIN=":" 5982 else 5983 case $cross_compiling:$ac_tool_warned in 5984yes:) 5985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5986printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5987ac_tool_warned=yes ;; 5988esac 5989 DUMPBIN=$ac_ct_DUMPBIN 5990 fi 5991fi 5992 5993 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5994 *COFF*) 5995 DUMPBIN="$DUMPBIN -symbols -headers" 5996 ;; 5997 *) 5998 DUMPBIN=: 5999 ;; 6000 esac 6001 fi 6002 6003 if test : != "$DUMPBIN"; then 6004 NM=$DUMPBIN 6005 fi 6006fi 6007test -z "$NM" && NM=nm 6008 6009 6010 6011 6012 6013 6014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6015printf %s "checking the name lister ($NM) interface... " >&6; } 6016if test ${lt_cv_nm_interface+y} 6017then : 6018 printf %s "(cached) " >&6 6019else case e in #( 6020 e) lt_cv_nm_interface="BSD nm" 6021 echo "int some_variable = 0;" > conftest.$ac_ext 6022 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6023 (eval "$ac_compile" 2>conftest.err) 6024 cat conftest.err >&5 6025 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6026 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6027 cat conftest.err >&5 6028 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6029 cat conftest.out >&5 6030 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6031 lt_cv_nm_interface="MS dumpbin" 6032 fi 6033 rm -f conftest* ;; 6034esac 6035fi 6036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6037printf "%s\n" "$lt_cv_nm_interface" >&6; } 6038 6039# find the maximum length of command line arguments 6040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6041printf %s "checking the maximum length of command line arguments... " >&6; } 6042if test ${lt_cv_sys_max_cmd_len+y} 6043then : 6044 printf %s "(cached) " >&6 6045else case e in #( 6046 e) i=0 6047 teststring=ABCD 6048 6049 case $build_os in 6050 msdosdjgpp*) 6051 # On DJGPP, this test can blow up pretty badly due to problems in libc 6052 # (any single argument exceeding 2000 bytes causes a buffer overrun 6053 # during glob expansion). Even if it were fixed, the result of this 6054 # check would be larger than it should be. 6055 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6056 ;; 6057 6058 gnu*) 6059 # Under GNU Hurd, this test is not required because there is 6060 # no limit to the length of command line arguments. 6061 # Libtool will interpret -1 as no limit whatsoever 6062 lt_cv_sys_max_cmd_len=-1; 6063 ;; 6064 6065 cygwin* | mingw* | cegcc*) 6066 # On Win9x/ME, this test blows up -- it succeeds, but takes 6067 # about 5 minutes as the teststring grows exponentially. 6068 # Worse, since 9x/ME are not pre-emptively multitasking, 6069 # you end up with a "frozen" computer, even though with patience 6070 # the test eventually succeeds (with a max line length of 256k). 6071 # Instead, let's just punt: use the minimum linelength reported by 6072 # all of the supported platforms: 8192 (on NT/2K/XP). 6073 lt_cv_sys_max_cmd_len=8192; 6074 ;; 6075 6076 mint*) 6077 # On MiNT this can take a long time and run out of memory. 6078 lt_cv_sys_max_cmd_len=8192; 6079 ;; 6080 6081 amigaos*) 6082 # On AmigaOS with pdksh, this test takes hours, literally. 6083 # So we just punt and use a minimum line length of 8192. 6084 lt_cv_sys_max_cmd_len=8192; 6085 ;; 6086 6087 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 6088 # This has been around since 386BSD, at least. Likely further. 6089 if test -x /sbin/sysctl; then 6090 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6091 elif test -x /usr/sbin/sysctl; then 6092 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6093 else 6094 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6095 fi 6096 # And add a safety zone 6097 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6098 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6099 ;; 6100 6101 interix*) 6102 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6103 lt_cv_sys_max_cmd_len=196608 6104 ;; 6105 6106 os2*) 6107 # The test takes a long time on OS/2. 6108 lt_cv_sys_max_cmd_len=8192 6109 ;; 6110 6111 osf*) 6112 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6113 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6114 # nice to cause kernel panics so lets avoid the loop below. 6115 # First set a reasonable default. 6116 lt_cv_sys_max_cmd_len=16384 6117 # 6118 if test -x /sbin/sysconfig; then 6119 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6120 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6121 esac 6122 fi 6123 ;; 6124 sco3.2v5*) 6125 lt_cv_sys_max_cmd_len=102400 6126 ;; 6127 sysv5* | sco5v6* | sysv4.2uw2*) 6128 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6129 if test -n "$kargmax"; then 6130 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 6131 else 6132 lt_cv_sys_max_cmd_len=32768 6133 fi 6134 ;; 6135 *) 6136 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6137 if test -n "$lt_cv_sys_max_cmd_len" && \ 6138 test undefined != "$lt_cv_sys_max_cmd_len"; then 6139 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6140 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6141 else 6142 # Make teststring a little bigger before we do anything with it. 6143 # a 1K string should be a reasonable start. 6144 for i in 1 2 3 4 5 6 7 8; do 6145 teststring=$teststring$teststring 6146 done 6147 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6148 # If test is not a shell built-in, we'll probably end up computing a 6149 # maximum length that is only half of the actual maximum length, but 6150 # we can't tell. 6151 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6152 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6153 test 17 != "$i" # 1/2 MB should be enough 6154 do 6155 i=`expr $i + 1` 6156 teststring=$teststring$teststring 6157 done 6158 # Only check the string length outside the loop. 6159 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6160 teststring= 6161 # Add a significant safety factor because C++ compilers can tack on 6162 # massive amounts of additional arguments before passing them to the 6163 # linker. It appears as though 1/2 is a usable value. 6164 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6165 fi 6166 ;; 6167 esac 6168 ;; 6169esac 6170fi 6171 6172if test -n "$lt_cv_sys_max_cmd_len"; then 6173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6174printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 6175else 6176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 6177printf "%s\n" "none" >&6; } 6178fi 6179max_cmd_len=$lt_cv_sys_max_cmd_len 6180 6181 6182 6183 6184 6185 6186: ${CP="cp -f"} 6187: ${MV="mv -f"} 6188: ${RM="rm -f"} 6189 6190if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6191 lt_unset=unset 6192else 6193 lt_unset=false 6194fi 6195 6196 6197 6198 6199 6200# test EBCDIC or ASCII 6201case `echo X|tr X '\101'` in 6202 A) # ASCII based system 6203 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6204 lt_SP2NL='tr \040 \012' 6205 lt_NL2SP='tr \015\012 \040\040' 6206 ;; 6207 *) # EBCDIC based system 6208 lt_SP2NL='tr \100 \n' 6209 lt_NL2SP='tr \r\n \100\100' 6210 ;; 6211esac 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6222printf %s "checking how to convert $build file names to $host format... " >&6; } 6223if test ${lt_cv_to_host_file_cmd+y} 6224then : 6225 printf %s "(cached) " >&6 6226else case e in #( 6227 e) case $host in 6228 *-*-mingw* ) 6229 case $build in 6230 *-*-mingw* ) # actually msys 6231 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6232 ;; 6233 *-*-cygwin* ) 6234 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6235 ;; 6236 * ) # otherwise, assume *nix 6237 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6238 ;; 6239 esac 6240 ;; 6241 *-*-cygwin* ) 6242 case $build in 6243 *-*-mingw* ) # actually msys 6244 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6245 ;; 6246 *-*-cygwin* ) 6247 lt_cv_to_host_file_cmd=func_convert_file_noop 6248 ;; 6249 * ) # otherwise, assume *nix 6250 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6251 ;; 6252 esac 6253 ;; 6254 * ) # unhandled hosts (and "normal" native builds) 6255 lt_cv_to_host_file_cmd=func_convert_file_noop 6256 ;; 6257esac 6258 ;; 6259esac 6260fi 6261 6262to_host_file_cmd=$lt_cv_to_host_file_cmd 6263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6264printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 6265 6266 6267 6268 6269 6270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6271printf %s "checking how to convert $build file names to toolchain format... " >&6; } 6272if test ${lt_cv_to_tool_file_cmd+y} 6273then : 6274 printf %s "(cached) " >&6 6275else case e in #( 6276 e) #assume ordinary cross tools, or native build. 6277lt_cv_to_tool_file_cmd=func_convert_file_noop 6278case $host in 6279 *-*-mingw* ) 6280 case $build in 6281 *-*-mingw* ) # actually msys 6282 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6283 ;; 6284 esac 6285 ;; 6286esac 6287 ;; 6288esac 6289fi 6290 6291to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6293printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 6294 6295 6296 6297 6298 6299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6300printf %s "checking for $LD option to reload object files... " >&6; } 6301if test ${lt_cv_ld_reload_flag+y} 6302then : 6303 printf %s "(cached) " >&6 6304else case e in #( 6305 e) lt_cv_ld_reload_flag='-r' ;; 6306esac 6307fi 6308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6309printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 6310reload_flag=$lt_cv_ld_reload_flag 6311case $reload_flag in 6312"" | " "*) ;; 6313*) reload_flag=" $reload_flag" ;; 6314esac 6315reload_cmds='$LD$reload_flag -o $output$reload_objs' 6316case $host_os in 6317 cygwin* | mingw* | pw32* | cegcc*) 6318 if test yes != "$GCC"; then 6319 reload_cmds=false 6320 fi 6321 ;; 6322 darwin*) 6323 if test yes = "$GCC"; then 6324 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6325 else 6326 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6327 fi 6328 ;; 6329esac 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339if test -n "$ac_tool_prefix"; then 6340 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 6341set dummy ${ac_tool_prefix}file; ac_word=$2 6342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6343printf %s "checking for $ac_word... " >&6; } 6344if test ${ac_cv_prog_FILECMD+y} 6345then : 6346 printf %s "(cached) " >&6 6347else case e in #( 6348 e) if test -n "$FILECMD"; then 6349 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 6350else 6351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6352for as_dir in $PATH 6353do 6354 IFS=$as_save_IFS 6355 case $as_dir in #((( 6356 '') as_dir=./ ;; 6357 */) ;; 6358 *) as_dir=$as_dir/ ;; 6359 esac 6360 for ac_exec_ext in '' $ac_executable_extensions; do 6361 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6362 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 6363 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6364 break 2 6365 fi 6366done 6367 done 6368IFS=$as_save_IFS 6369 6370fi ;; 6371esac 6372fi 6373FILECMD=$ac_cv_prog_FILECMD 6374if test -n "$FILECMD"; then 6375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 6376printf "%s\n" "$FILECMD" >&6; } 6377else 6378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6379printf "%s\n" "no" >&6; } 6380fi 6381 6382 6383fi 6384if test -z "$ac_cv_prog_FILECMD"; then 6385 ac_ct_FILECMD=$FILECMD 6386 # Extract the first word of "file", so it can be a program name with args. 6387set dummy file; ac_word=$2 6388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6389printf %s "checking for $ac_word... " >&6; } 6390if test ${ac_cv_prog_ac_ct_FILECMD+y} 6391then : 6392 printf %s "(cached) " >&6 6393else case e in #( 6394 e) if test -n "$ac_ct_FILECMD"; then 6395 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 6396else 6397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6398for as_dir in $PATH 6399do 6400 IFS=$as_save_IFS 6401 case $as_dir in #((( 6402 '') as_dir=./ ;; 6403 */) ;; 6404 *) as_dir=$as_dir/ ;; 6405 esac 6406 for ac_exec_ext in '' $ac_executable_extensions; do 6407 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6408 ac_cv_prog_ac_ct_FILECMD="file" 6409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6410 break 2 6411 fi 6412done 6413 done 6414IFS=$as_save_IFS 6415 6416fi ;; 6417esac 6418fi 6419ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 6420if test -n "$ac_ct_FILECMD"; then 6421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 6422printf "%s\n" "$ac_ct_FILECMD" >&6; } 6423else 6424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6425printf "%s\n" "no" >&6; } 6426fi 6427 6428 if test "x$ac_ct_FILECMD" = x; then 6429 FILECMD=":" 6430 else 6431 case $cross_compiling:$ac_tool_warned in 6432yes:) 6433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6434printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6435ac_tool_warned=yes ;; 6436esac 6437 FILECMD=$ac_ct_FILECMD 6438 fi 6439else 6440 FILECMD="$ac_cv_prog_FILECMD" 6441fi 6442 6443 6444 6445 6446 6447 6448 6449if test -n "$ac_tool_prefix"; then 6450 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6451set dummy ${ac_tool_prefix}objdump; ac_word=$2 6452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6453printf %s "checking for $ac_word... " >&6; } 6454if test ${ac_cv_prog_OBJDUMP+y} 6455then : 6456 printf %s "(cached) " >&6 6457else case e in #( 6458 e) if test -n "$OBJDUMP"; then 6459 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6460else 6461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6462for as_dir in $PATH 6463do 6464 IFS=$as_save_IFS 6465 case $as_dir in #((( 6466 '') as_dir=./ ;; 6467 */) ;; 6468 *) as_dir=$as_dir/ ;; 6469 esac 6470 for ac_exec_ext in '' $ac_executable_extensions; do 6471 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6472 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6474 break 2 6475 fi 6476done 6477 done 6478IFS=$as_save_IFS 6479 6480fi ;; 6481esac 6482fi 6483OBJDUMP=$ac_cv_prog_OBJDUMP 6484if test -n "$OBJDUMP"; then 6485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6486printf "%s\n" "$OBJDUMP" >&6; } 6487else 6488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6489printf "%s\n" "no" >&6; } 6490fi 6491 6492 6493fi 6494if test -z "$ac_cv_prog_OBJDUMP"; then 6495 ac_ct_OBJDUMP=$OBJDUMP 6496 # Extract the first word of "objdump", so it can be a program name with args. 6497set dummy objdump; ac_word=$2 6498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6499printf %s "checking for $ac_word... " >&6; } 6500if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6501then : 6502 printf %s "(cached) " >&6 6503else case e in #( 6504 e) if test -n "$ac_ct_OBJDUMP"; then 6505 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6506else 6507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6508for as_dir in $PATH 6509do 6510 IFS=$as_save_IFS 6511 case $as_dir in #((( 6512 '') as_dir=./ ;; 6513 */) ;; 6514 *) as_dir=$as_dir/ ;; 6515 esac 6516 for ac_exec_ext in '' $ac_executable_extensions; do 6517 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6518 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6520 break 2 6521 fi 6522done 6523 done 6524IFS=$as_save_IFS 6525 6526fi ;; 6527esac 6528fi 6529ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6530if test -n "$ac_ct_OBJDUMP"; then 6531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6532printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6533else 6534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6535printf "%s\n" "no" >&6; } 6536fi 6537 6538 if test "x$ac_ct_OBJDUMP" = x; then 6539 OBJDUMP="false" 6540 else 6541 case $cross_compiling:$ac_tool_warned in 6542yes:) 6543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6544printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6545ac_tool_warned=yes ;; 6546esac 6547 OBJDUMP=$ac_ct_OBJDUMP 6548 fi 6549else 6550 OBJDUMP="$ac_cv_prog_OBJDUMP" 6551fi 6552 6553test -z "$OBJDUMP" && OBJDUMP=objdump 6554 6555 6556 6557 6558 6559 6560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6561printf %s "checking how to recognize dependent libraries... " >&6; } 6562if test ${lt_cv_deplibs_check_method+y} 6563then : 6564 printf %s "(cached) " >&6 6565else case e in #( 6566 e) lt_cv_file_magic_cmd='$MAGIC_CMD' 6567lt_cv_file_magic_test_file= 6568lt_cv_deplibs_check_method='unknown' 6569# Need to set the preceding variable on all platforms that support 6570# interlibrary dependencies. 6571# 'none' -- dependencies not supported. 6572# 'unknown' -- same as none, but documents that we really don't know. 6573# 'pass_all' -- all dependencies passed with no checks. 6574# 'test_compile' -- check by making test program. 6575# 'file_magic [[regex]]' -- check by looking for files in library path 6576# that responds to the $file_magic_cmd with a given extended regex. 6577# If you have 'file' or equivalent on your system and you're not sure 6578# whether 'pass_all' will *always* work, you probably want this one. 6579 6580case $host_os in 6581aix[4-9]*) 6582 lt_cv_deplibs_check_method=pass_all 6583 ;; 6584 6585beos*) 6586 lt_cv_deplibs_check_method=pass_all 6587 ;; 6588 6589bsdi[45]*) 6590 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6591 lt_cv_file_magic_cmd='$FILECMD -L' 6592 lt_cv_file_magic_test_file=/shlib/libc.so 6593 ;; 6594 6595cygwin*) 6596 # func_win32_libid is a shell function defined in ltmain.sh 6597 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6598 lt_cv_file_magic_cmd='func_win32_libid' 6599 ;; 6600 6601mingw* | pw32*) 6602 # Base MSYS/MinGW do not provide the 'file' command needed by 6603 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6604 # unless we find 'file', for example because we are cross-compiling. 6605 if ( file / ) >/dev/null 2>&1; then 6606 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6607 lt_cv_file_magic_cmd='func_win32_libid' 6608 else 6609 # Keep this pattern in sync with the one in func_win32_libid. 6610 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6611 lt_cv_file_magic_cmd='$OBJDUMP -f' 6612 fi 6613 ;; 6614 6615cegcc*) 6616 # use the weaker test based on 'objdump'. See mingw*. 6617 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6618 lt_cv_file_magic_cmd='$OBJDUMP -f' 6619 ;; 6620 6621darwin* | rhapsody*) 6622 lt_cv_deplibs_check_method=pass_all 6623 ;; 6624 6625freebsd* | dragonfly* | midnightbsd*) 6626 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6627 case $host_cpu in 6628 i*86 ) 6629 # Not sure whether the presence of OpenBSD here was a mistake. 6630 # Let's accept both of them until this is cleared up. 6631 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6632 lt_cv_file_magic_cmd=$FILECMD 6633 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6634 ;; 6635 esac 6636 else 6637 lt_cv_deplibs_check_method=pass_all 6638 fi 6639 ;; 6640 6641haiku*) 6642 lt_cv_deplibs_check_method=pass_all 6643 ;; 6644 6645hpux10.20* | hpux11*) 6646 lt_cv_file_magic_cmd=$FILECMD 6647 case $host_cpu in 6648 ia64*) 6649 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6650 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6651 ;; 6652 hppa*64*) 6653 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]' 6654 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6655 ;; 6656 *) 6657 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6658 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6659 ;; 6660 esac 6661 ;; 6662 6663interix[3-9]*) 6664 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6665 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6666 ;; 6667 6668irix5* | irix6* | nonstopux*) 6669 case $LD in 6670 *-32|*"-32 ") libmagic=32-bit;; 6671 *-n32|*"-n32 ") libmagic=N32;; 6672 *-64|*"-64 ") libmagic=64-bit;; 6673 *) libmagic=never-match;; 6674 esac 6675 lt_cv_deplibs_check_method=pass_all 6676 ;; 6677 6678# This must be glibc/ELF. 6679linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6680 lt_cv_deplibs_check_method=pass_all 6681 ;; 6682 6683netbsd*) 6684 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6685 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6686 else 6687 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6688 fi 6689 ;; 6690 6691newos6*) 6692 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6693 lt_cv_file_magic_cmd=$FILECMD 6694 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6695 ;; 6696 6697*nto* | *qnx*) 6698 lt_cv_deplibs_check_method=pass_all 6699 ;; 6700 6701openbsd* | bitrig*) 6702 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6703 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6704 else 6705 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6706 fi 6707 ;; 6708 6709osf3* | osf4* | osf5*) 6710 lt_cv_deplibs_check_method=pass_all 6711 ;; 6712 6713rdos*) 6714 lt_cv_deplibs_check_method=pass_all 6715 ;; 6716 6717solaris*) 6718 lt_cv_deplibs_check_method=pass_all 6719 ;; 6720 6721sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6722 lt_cv_deplibs_check_method=pass_all 6723 ;; 6724 6725sysv4 | sysv4.3*) 6726 case $host_vendor in 6727 motorola) 6728 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]' 6729 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6730 ;; 6731 ncr) 6732 lt_cv_deplibs_check_method=pass_all 6733 ;; 6734 sequent) 6735 lt_cv_file_magic_cmd='/bin/file' 6736 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6737 ;; 6738 sni) 6739 lt_cv_file_magic_cmd='/bin/file' 6740 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6741 lt_cv_file_magic_test_file=/lib/libc.so 6742 ;; 6743 siemens) 6744 lt_cv_deplibs_check_method=pass_all 6745 ;; 6746 pc) 6747 lt_cv_deplibs_check_method=pass_all 6748 ;; 6749 esac 6750 ;; 6751 6752tpf*) 6753 lt_cv_deplibs_check_method=pass_all 6754 ;; 6755os2*) 6756 lt_cv_deplibs_check_method=pass_all 6757 ;; 6758esac 6759 ;; 6760esac 6761fi 6762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6763printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6764 6765file_magic_glob= 6766want_nocaseglob=no 6767if test "$build" = "$host"; then 6768 case $host_os in 6769 mingw* | pw32*) 6770 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6771 want_nocaseglob=yes 6772 else 6773 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6774 fi 6775 ;; 6776 esac 6777fi 6778 6779file_magic_cmd=$lt_cv_file_magic_cmd 6780deplibs_check_method=$lt_cv_deplibs_check_method 6781test -z "$deplibs_check_method" && deplibs_check_method=unknown 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804if test -n "$ac_tool_prefix"; then 6805 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6806set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6808printf %s "checking for $ac_word... " >&6; } 6809if test ${ac_cv_prog_DLLTOOL+y} 6810then : 6811 printf %s "(cached) " >&6 6812else case e in #( 6813 e) if test -n "$DLLTOOL"; then 6814 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6815else 6816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6817for as_dir in $PATH 6818do 6819 IFS=$as_save_IFS 6820 case $as_dir in #((( 6821 '') as_dir=./ ;; 6822 */) ;; 6823 *) as_dir=$as_dir/ ;; 6824 esac 6825 for ac_exec_ext in '' $ac_executable_extensions; do 6826 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6827 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6829 break 2 6830 fi 6831done 6832 done 6833IFS=$as_save_IFS 6834 6835fi ;; 6836esac 6837fi 6838DLLTOOL=$ac_cv_prog_DLLTOOL 6839if test -n "$DLLTOOL"; then 6840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6841printf "%s\n" "$DLLTOOL" >&6; } 6842else 6843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6844printf "%s\n" "no" >&6; } 6845fi 6846 6847 6848fi 6849if test -z "$ac_cv_prog_DLLTOOL"; then 6850 ac_ct_DLLTOOL=$DLLTOOL 6851 # Extract the first word of "dlltool", so it can be a program name with args. 6852set dummy dlltool; ac_word=$2 6853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6854printf %s "checking for $ac_word... " >&6; } 6855if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6856then : 6857 printf %s "(cached) " >&6 6858else case e in #( 6859 e) if test -n "$ac_ct_DLLTOOL"; then 6860 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6861else 6862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6863for as_dir in $PATH 6864do 6865 IFS=$as_save_IFS 6866 case $as_dir in #((( 6867 '') as_dir=./ ;; 6868 */) ;; 6869 *) as_dir=$as_dir/ ;; 6870 esac 6871 for ac_exec_ext in '' $ac_executable_extensions; do 6872 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6873 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6875 break 2 6876 fi 6877done 6878 done 6879IFS=$as_save_IFS 6880 6881fi ;; 6882esac 6883fi 6884ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6885if test -n "$ac_ct_DLLTOOL"; then 6886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6887printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6888else 6889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6890printf "%s\n" "no" >&6; } 6891fi 6892 6893 if test "x$ac_ct_DLLTOOL" = x; then 6894 DLLTOOL="false" 6895 else 6896 case $cross_compiling:$ac_tool_warned in 6897yes:) 6898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6899printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6900ac_tool_warned=yes ;; 6901esac 6902 DLLTOOL=$ac_ct_DLLTOOL 6903 fi 6904else 6905 DLLTOOL="$ac_cv_prog_DLLTOOL" 6906fi 6907 6908test -z "$DLLTOOL" && DLLTOOL=dlltool 6909 6910 6911 6912 6913 6914 6915 6916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6917printf %s "checking how to associate runtime and link libraries... " >&6; } 6918if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6919then : 6920 printf %s "(cached) " >&6 6921else case e in #( 6922 e) lt_cv_sharedlib_from_linklib_cmd='unknown' 6923 6924case $host_os in 6925cygwin* | mingw* | pw32* | cegcc*) 6926 # two different shell functions defined in ltmain.sh; 6927 # decide which one to use based on capabilities of $DLLTOOL 6928 case `$DLLTOOL --help 2>&1` in 6929 *--identify-strict*) 6930 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6931 ;; 6932 *) 6933 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6934 ;; 6935 esac 6936 ;; 6937*) 6938 # fallback: assume linklib IS sharedlib 6939 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6940 ;; 6941esac 6942 ;; 6943esac 6944fi 6945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6946printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6947sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6948test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6949 6950 6951 6952 6953 6954 6955 6956 6957if test -n "$ac_tool_prefix"; then 6958 for ac_prog in ar 6959 do 6960 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6961set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6963printf %s "checking for $ac_word... " >&6; } 6964if test ${ac_cv_prog_AR+y} 6965then : 6966 printf %s "(cached) " >&6 6967else case e in #( 6968 e) if test -n "$AR"; then 6969 ac_cv_prog_AR="$AR" # Let the user override the test. 6970else 6971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6972for as_dir in $PATH 6973do 6974 IFS=$as_save_IFS 6975 case $as_dir in #((( 6976 '') as_dir=./ ;; 6977 */) ;; 6978 *) as_dir=$as_dir/ ;; 6979 esac 6980 for ac_exec_ext in '' $ac_executable_extensions; do 6981 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6982 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6983 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6984 break 2 6985 fi 6986done 6987 done 6988IFS=$as_save_IFS 6989 6990fi ;; 6991esac 6992fi 6993AR=$ac_cv_prog_AR 6994if test -n "$AR"; then 6995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6996printf "%s\n" "$AR" >&6; } 6997else 6998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6999printf "%s\n" "no" >&6; } 7000fi 7001 7002 7003 test -n "$AR" && break 7004 done 7005fi 7006if test -z "$AR"; then 7007 ac_ct_AR=$AR 7008 for ac_prog in ar 7009do 7010 # Extract the first word of "$ac_prog", so it can be a program name with args. 7011set dummy $ac_prog; ac_word=$2 7012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7013printf %s "checking for $ac_word... " >&6; } 7014if test ${ac_cv_prog_ac_ct_AR+y} 7015then : 7016 printf %s "(cached) " >&6 7017else case e in #( 7018 e) if test -n "$ac_ct_AR"; then 7019 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7020else 7021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7022for as_dir in $PATH 7023do 7024 IFS=$as_save_IFS 7025 case $as_dir in #((( 7026 '') as_dir=./ ;; 7027 */) ;; 7028 *) as_dir=$as_dir/ ;; 7029 esac 7030 for ac_exec_ext in '' $ac_executable_extensions; do 7031 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7032 ac_cv_prog_ac_ct_AR="$ac_prog" 7033 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7034 break 2 7035 fi 7036done 7037 done 7038IFS=$as_save_IFS 7039 7040fi ;; 7041esac 7042fi 7043ac_ct_AR=$ac_cv_prog_ac_ct_AR 7044if test -n "$ac_ct_AR"; then 7045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7046printf "%s\n" "$ac_ct_AR" >&6; } 7047else 7048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7049printf "%s\n" "no" >&6; } 7050fi 7051 7052 7053 test -n "$ac_ct_AR" && break 7054done 7055 7056 if test "x$ac_ct_AR" = x; then 7057 AR="false" 7058 else 7059 case $cross_compiling:$ac_tool_warned in 7060yes:) 7061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7062printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7063ac_tool_warned=yes ;; 7064esac 7065 AR=$ac_ct_AR 7066 fi 7067fi 7068 7069: ${AR=ar} 7070 7071 7072 7073 7074 7075 7076# Use ARFLAGS variable as AR's operation code to sync the variable naming with 7077# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 7078# higher priority because thats what people were doing historically (setting 7079# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 7080# variable obsoleted/removed. 7081 7082test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 7083lt_ar_flags=$AR_FLAGS 7084 7085 7086 7087 7088 7089 7090# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 7091# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 7092 7093 7094 7095 7096 7097 7098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7099printf %s "checking for archiver @FILE support... " >&6; } 7100if test ${lt_cv_ar_at_file+y} 7101then : 7102 printf %s "(cached) " >&6 7103else case e in #( 7104 e) lt_cv_ar_at_file=no 7105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7106/* end confdefs.h. */ 7107 7108int 7109main (void) 7110{ 7111 7112 ; 7113 return 0; 7114} 7115_ACEOF 7116if ac_fn_c_try_compile "$LINENO" 7117then : 7118 echo conftest.$ac_objext > conftest.lst 7119 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7121 (eval $lt_ar_try) 2>&5 7122 ac_status=$? 7123 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7124 test $ac_status = 0; } 7125 if test 0 -eq "$ac_status"; then 7126 # Ensure the archiver fails upon bogus file names. 7127 rm -f conftest.$ac_objext libconftest.a 7128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7129 (eval $lt_ar_try) 2>&5 7130 ac_status=$? 7131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7132 test $ac_status = 0; } 7133 if test 0 -ne "$ac_status"; then 7134 lt_cv_ar_at_file=@ 7135 fi 7136 fi 7137 rm -f conftest.* libconftest.a 7138 7139fi 7140rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7141 ;; 7142esac 7143fi 7144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7145printf "%s\n" "$lt_cv_ar_at_file" >&6; } 7146 7147if test no = "$lt_cv_ar_at_file"; then 7148 archiver_list_spec= 7149else 7150 archiver_list_spec=$lt_cv_ar_at_file 7151fi 7152 7153 7154 7155 7156 7157 7158 7159if test -n "$ac_tool_prefix"; then 7160 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7161set dummy ${ac_tool_prefix}strip; ac_word=$2 7162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7163printf %s "checking for $ac_word... " >&6; } 7164if test ${ac_cv_prog_STRIP+y} 7165then : 7166 printf %s "(cached) " >&6 7167else case e in #( 7168 e) if test -n "$STRIP"; then 7169 ac_cv_prog_STRIP="$STRIP" # 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 case $as_dir in #((( 7176 '') as_dir=./ ;; 7177 */) ;; 7178 *) as_dir=$as_dir/ ;; 7179 esac 7180 for ac_exec_ext in '' $ac_executable_extensions; do 7181 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7182 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7183 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7184 break 2 7185 fi 7186done 7187 done 7188IFS=$as_save_IFS 7189 7190fi ;; 7191esac 7192fi 7193STRIP=$ac_cv_prog_STRIP 7194if test -n "$STRIP"; then 7195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7196printf "%s\n" "$STRIP" >&6; } 7197else 7198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7199printf "%s\n" "no" >&6; } 7200fi 7201 7202 7203fi 7204if test -z "$ac_cv_prog_STRIP"; then 7205 ac_ct_STRIP=$STRIP 7206 # Extract the first word of "strip", so it can be a program name with args. 7207set dummy strip; ac_word=$2 7208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7209printf %s "checking for $ac_word... " >&6; } 7210if test ${ac_cv_prog_ac_ct_STRIP+y} 7211then : 7212 printf %s "(cached) " >&6 7213else case e in #( 7214 e) if test -n "$ac_ct_STRIP"; then 7215 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7216else 7217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7218for as_dir in $PATH 7219do 7220 IFS=$as_save_IFS 7221 case $as_dir in #((( 7222 '') as_dir=./ ;; 7223 */) ;; 7224 *) as_dir=$as_dir/ ;; 7225 esac 7226 for ac_exec_ext in '' $ac_executable_extensions; do 7227 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7228 ac_cv_prog_ac_ct_STRIP="strip" 7229 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7230 break 2 7231 fi 7232done 7233 done 7234IFS=$as_save_IFS 7235 7236fi ;; 7237esac 7238fi 7239ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7240if test -n "$ac_ct_STRIP"; then 7241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7242printf "%s\n" "$ac_ct_STRIP" >&6; } 7243else 7244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7245printf "%s\n" "no" >&6; } 7246fi 7247 7248 if test "x$ac_ct_STRIP" = x; then 7249 STRIP=":" 7250 else 7251 case $cross_compiling:$ac_tool_warned in 7252yes:) 7253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7254printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7255ac_tool_warned=yes ;; 7256esac 7257 STRIP=$ac_ct_STRIP 7258 fi 7259else 7260 STRIP="$ac_cv_prog_STRIP" 7261fi 7262 7263test -z "$STRIP" && STRIP=: 7264 7265 7266 7267 7268 7269 7270if test -n "$ac_tool_prefix"; then 7271 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7272set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7274printf %s "checking for $ac_word... " >&6; } 7275if test ${ac_cv_prog_RANLIB+y} 7276then : 7277 printf %s "(cached) " >&6 7278else case e in #( 7279 e) if test -n "$RANLIB"; then 7280 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7281else 7282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7283for as_dir in $PATH 7284do 7285 IFS=$as_save_IFS 7286 case $as_dir in #((( 7287 '') as_dir=./ ;; 7288 */) ;; 7289 *) as_dir=$as_dir/ ;; 7290 esac 7291 for ac_exec_ext in '' $ac_executable_extensions; do 7292 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7293 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7295 break 2 7296 fi 7297done 7298 done 7299IFS=$as_save_IFS 7300 7301fi ;; 7302esac 7303fi 7304RANLIB=$ac_cv_prog_RANLIB 7305if test -n "$RANLIB"; then 7306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7307printf "%s\n" "$RANLIB" >&6; } 7308else 7309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7310printf "%s\n" "no" >&6; } 7311fi 7312 7313 7314fi 7315if test -z "$ac_cv_prog_RANLIB"; then 7316 ac_ct_RANLIB=$RANLIB 7317 # Extract the first word of "ranlib", so it can be a program name with args. 7318set dummy ranlib; ac_word=$2 7319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7320printf %s "checking for $ac_word... " >&6; } 7321if test ${ac_cv_prog_ac_ct_RANLIB+y} 7322then : 7323 printf %s "(cached) " >&6 7324else case e in #( 7325 e) if test -n "$ac_ct_RANLIB"; then 7326 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7327else 7328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7329for as_dir in $PATH 7330do 7331 IFS=$as_save_IFS 7332 case $as_dir in #((( 7333 '') as_dir=./ ;; 7334 */) ;; 7335 *) as_dir=$as_dir/ ;; 7336 esac 7337 for ac_exec_ext in '' $ac_executable_extensions; do 7338 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7339 ac_cv_prog_ac_ct_RANLIB="ranlib" 7340 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7341 break 2 7342 fi 7343done 7344 done 7345IFS=$as_save_IFS 7346 7347fi ;; 7348esac 7349fi 7350ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7351if test -n "$ac_ct_RANLIB"; then 7352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7353printf "%s\n" "$ac_ct_RANLIB" >&6; } 7354else 7355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7356printf "%s\n" "no" >&6; } 7357fi 7358 7359 if test "x$ac_ct_RANLIB" = x; then 7360 RANLIB=":" 7361 else 7362 case $cross_compiling:$ac_tool_warned in 7363yes:) 7364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7365printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7366ac_tool_warned=yes ;; 7367esac 7368 RANLIB=$ac_ct_RANLIB 7369 fi 7370else 7371 RANLIB="$ac_cv_prog_RANLIB" 7372fi 7373 7374test -z "$RANLIB" && RANLIB=: 7375 7376 7377 7378 7379 7380 7381# Determine commands to create old-style static archives. 7382old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7383old_postinstall_cmds='chmod 644 $oldlib' 7384old_postuninstall_cmds= 7385 7386if test -n "$RANLIB"; then 7387 case $host_os in 7388 bitrig* | openbsd*) 7389 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7390 ;; 7391 *) 7392 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7393 ;; 7394 esac 7395 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7396fi 7397 7398case $host_os in 7399 darwin*) 7400 lock_old_archive_extraction=yes ;; 7401 *) 7402 lock_old_archive_extraction=no ;; 7403esac 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443# If no C compiler was specified, use CC. 7444LTCC=${LTCC-"$CC"} 7445 7446# If no C compiler flags were specified, use CFLAGS. 7447LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7448 7449# Allow CC to be a program name with arguments. 7450compiler=$CC 7451 7452 7453# Check for command to grab the raw symbol name followed by C symbol from nm. 7454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7455printf %s "checking command to parse $NM output from $compiler object... " >&6; } 7456if test ${lt_cv_sys_global_symbol_pipe+y} 7457then : 7458 printf %s "(cached) " >&6 7459else case e in #( 7460 e) 7461# These are sane defaults that work on at least a few old systems. 7462# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7463 7464# Character class describing NM global symbol codes. 7465symcode='[BCDEGRST]' 7466 7467# Regexp to match symbols that can be accessed directly from C. 7468sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7469 7470# Define system-specific variables. 7471case $host_os in 7472aix*) 7473 symcode='[BCDT]' 7474 ;; 7475cygwin* | mingw* | pw32* | cegcc*) 7476 symcode='[ABCDGISTW]' 7477 ;; 7478hpux*) 7479 if test ia64 = "$host_cpu"; then 7480 symcode='[ABCDEGRST]' 7481 fi 7482 ;; 7483irix* | nonstopux*) 7484 symcode='[BCDEGRST]' 7485 ;; 7486osf*) 7487 symcode='[BCDEGQRST]' 7488 ;; 7489solaris*) 7490 symcode='[BDRT]' 7491 ;; 7492sco3.2v5*) 7493 symcode='[DT]' 7494 ;; 7495sysv4.2uw2*) 7496 symcode='[DT]' 7497 ;; 7498sysv5* | sco5v6* | unixware* | OpenUNIX*) 7499 symcode='[ABDT]' 7500 ;; 7501sysv4) 7502 symcode='[DFNSTU]' 7503 ;; 7504esac 7505 7506# If we're using GNU nm, then use its standard symbol codes. 7507case `$NM -V 2>&1` in 7508*GNU* | *'with BFD'*) 7509 symcode='[ABCDGIRSTW]' ;; 7510esac 7511 7512if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7513 # Gets list of data symbols to import. 7514 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 7515 # Adjust the below global symbol transforms to fixup imported variables. 7516 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7517 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7518 lt_c_name_lib_hook="\ 7519 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7520 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7521else 7522 # Disable hooks by default. 7523 lt_cv_sys_global_symbol_to_import= 7524 lt_cdecl_hook= 7525 lt_c_name_hook= 7526 lt_c_name_lib_hook= 7527fi 7528 7529# Transform an extracted symbol line into a proper C declaration. 7530# Some systems (esp. on ia64) link data and code symbols differently, 7531# so use this general approach. 7532lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 7533$lt_cdecl_hook\ 7534" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7535" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7536 7537# Transform an extracted symbol line into symbol name and symbol address 7538lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 7539$lt_c_name_hook\ 7540" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7541" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7542 7543# Transform an extracted symbol line into symbol name with lib prefix and 7544# symbol address. 7545lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7546$lt_c_name_lib_hook\ 7547" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7548" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7549" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7550 7551# Handle CRLF in mingw tool chain 7552opt_cr= 7553case $build_os in 7554mingw*) 7555 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7556 ;; 7557esac 7558 7559# Try without a prefix underscore, then with it. 7560for ac_symprfx in "" "_"; do 7561 7562 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7563 symxfrm="\\1 $ac_symprfx\\2 \\2" 7564 7565 # Write the raw and C identifiers. 7566 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7567 # Fake it for dumpbin and say T for any non-static function, 7568 # D for any global variable and I for any imported variable. 7569 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7570 # which start with @ or ?. 7571 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7572" {last_section=section; section=\$ 3};"\ 7573" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7574" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7575" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7576" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7577" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7578" \$ 0!~/External *\|/{next};"\ 7579" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7580" {if(hide[section]) next};"\ 7581" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7582" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7583" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7584" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7585" ' prfx=^$ac_symprfx" 7586 else 7587 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7588 fi 7589 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7590 7591 # Check to see that the pipe works correctly. 7592 pipe_works=no 7593 7594 rm -f conftest* 7595 cat > conftest.$ac_ext <<_LT_EOF 7596#ifdef __cplusplus 7597extern "C" { 7598#endif 7599char nm_test_var; 7600void nm_test_func(void); 7601void nm_test_func(void){} 7602#ifdef __cplusplus 7603} 7604#endif 7605int main(){nm_test_var='a';nm_test_func();return(0);} 7606_LT_EOF 7607 7608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7609 (eval $ac_compile) 2>&5 7610 ac_status=$? 7611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7612 test $ac_status = 0; }; then 7613 # Now try to grab the symbols. 7614 nlist=conftest.nm 7615 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7616 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7617 ac_status=$? 7618 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7619 test $ac_status = 0; } && test -s "$nlist"; then 7620 # Try sorting and uniquifying the output. 7621 if sort "$nlist" | uniq > "$nlist"T; then 7622 mv -f "$nlist"T "$nlist" 7623 else 7624 rm -f "$nlist"T 7625 fi 7626 7627 # Make sure that we snagged all the symbols we need. 7628 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7629 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7630 cat <<_LT_EOF > conftest.$ac_ext 7631/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7632#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7633/* DATA imports from DLLs on WIN32 can't be const, because runtime 7634 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7635# define LT_DLSYM_CONST 7636#elif defined __osf__ 7637/* This system does not cope well with relocations in const data. */ 7638# define LT_DLSYM_CONST 7639#else 7640# define LT_DLSYM_CONST const 7641#endif 7642 7643#ifdef __cplusplus 7644extern "C" { 7645#endif 7646 7647_LT_EOF 7648 # Now generate the symbol file. 7649 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7650 7651 cat <<_LT_EOF >> conftest.$ac_ext 7652 7653/* The mapping between symbol names and symbols. */ 7654LT_DLSYM_CONST struct { 7655 const char *name; 7656 void *address; 7657} 7658lt__PROGRAM__LTX_preloaded_symbols[] = 7659{ 7660 { "@PROGRAM@", (void *) 0 }, 7661_LT_EOF 7662 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7663 cat <<\_LT_EOF >> conftest.$ac_ext 7664 {0, (void *) 0} 7665}; 7666 7667/* This works around a problem in FreeBSD linker */ 7668#ifdef FREEBSD_WORKAROUND 7669static const void *lt_preloaded_setup() { 7670 return lt__PROGRAM__LTX_preloaded_symbols; 7671} 7672#endif 7673 7674#ifdef __cplusplus 7675} 7676#endif 7677_LT_EOF 7678 # Now try linking the two files. 7679 mv conftest.$ac_objext conftstm.$ac_objext 7680 lt_globsym_save_LIBS=$LIBS 7681 lt_globsym_save_CFLAGS=$CFLAGS 7682 LIBS=conftstm.$ac_objext 7683 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7685 (eval $ac_link) 2>&5 7686 ac_status=$? 7687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7688 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7689 pipe_works=yes 7690 fi 7691 LIBS=$lt_globsym_save_LIBS 7692 CFLAGS=$lt_globsym_save_CFLAGS 7693 else 7694 echo "cannot find nm_test_func in $nlist" >&5 7695 fi 7696 else 7697 echo "cannot find nm_test_var in $nlist" >&5 7698 fi 7699 else 7700 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7701 fi 7702 else 7703 echo "$progname: failed program was:" >&5 7704 cat conftest.$ac_ext >&5 7705 fi 7706 rm -rf conftest* conftst* 7707 7708 # Do not use the global_symbol_pipe unless it works. 7709 if test yes = "$pipe_works"; then 7710 break 7711 else 7712 lt_cv_sys_global_symbol_pipe= 7713 fi 7714done 7715 ;; 7716esac 7717fi 7718 7719if test -z "$lt_cv_sys_global_symbol_pipe"; then 7720 lt_cv_sys_global_symbol_to_cdecl= 7721fi 7722if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7724printf "%s\n" "failed" >&6; } 7725else 7726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7727printf "%s\n" "ok" >&6; } 7728fi 7729 7730# Response file support. 7731if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7732 nm_file_list_spec='@' 7733elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7734 nm_file_list_spec='@' 7735fi 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7774printf %s "checking for sysroot... " >&6; } 7775 7776# Check whether --with-sysroot was given. 7777if test ${with_sysroot+y} 7778then : 7779 withval=$with_sysroot; 7780else case e in #( 7781 e) with_sysroot=no ;; 7782esac 7783fi 7784 7785 7786lt_sysroot= 7787case $with_sysroot in #( 7788 yes) 7789 if test yes = "$GCC"; then 7790 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7791 fi 7792 ;; #( 7793 /*) 7794 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7795 ;; #( 7796 no|'') 7797 ;; #( 7798 *) 7799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7800printf "%s\n" "$with_sysroot" >&6; } 7801 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7802 ;; 7803esac 7804 7805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7806printf "%s\n" "${lt_sysroot:-no}" >&6; } 7807 7808 7809 7810 7811 7812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7813printf %s "checking for a working dd... " >&6; } 7814if test ${ac_cv_path_lt_DD+y} 7815then : 7816 printf %s "(cached) " >&6 7817else case e in #( 7818 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7819cat conftest.i conftest.i >conftest2.i 7820: ${lt_DD:=$DD} 7821if test -z "$lt_DD"; then 7822 ac_path_lt_DD_found=false 7823 # Loop through the user's path and test for each of PROGNAME-LIST 7824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7825for as_dir in $PATH 7826do 7827 IFS=$as_save_IFS 7828 case $as_dir in #((( 7829 '') as_dir=./ ;; 7830 */) ;; 7831 *) as_dir=$as_dir/ ;; 7832 esac 7833 for ac_prog in dd 7834 do 7835 for ac_exec_ext in '' $ac_executable_extensions; do 7836 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7837 as_fn_executable_p "$ac_path_lt_DD" || continue 7838if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7839 cmp -s conftest.i conftest.out \ 7840 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7841fi 7842 $ac_path_lt_DD_found && break 3 7843 done 7844 done 7845 done 7846IFS=$as_save_IFS 7847 if test -z "$ac_cv_path_lt_DD"; then 7848 : 7849 fi 7850else 7851 ac_cv_path_lt_DD=$lt_DD 7852fi 7853 7854rm -f conftest.i conftest2.i conftest.out ;; 7855esac 7856fi 7857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7858printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7859 7860 7861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7862printf %s "checking how to truncate binary pipes... " >&6; } 7863if test ${lt_cv_truncate_bin+y} 7864then : 7865 printf %s "(cached) " >&6 7866else case e in #( 7867 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7868cat conftest.i conftest.i >conftest2.i 7869lt_cv_truncate_bin= 7870if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7871 cmp -s conftest.i conftest.out \ 7872 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7873fi 7874rm -f conftest.i conftest2.i conftest.out 7875test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; 7876esac 7877fi 7878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7879printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7880 7881 7882 7883 7884 7885 7886 7887# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7888func_cc_basename () 7889{ 7890 for cc_temp in $*""; do 7891 case $cc_temp in 7892 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7893 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7894 \-*) ;; 7895 *) break;; 7896 esac 7897 done 7898 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7899} 7900 7901# Check whether --enable-libtool-lock was given. 7902if test ${enable_libtool_lock+y} 7903then : 7904 enableval=$enable_libtool_lock; 7905fi 7906 7907test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7908 7909# Some flags need to be propagated to the compiler or linker for good 7910# libtool support. 7911case $host in 7912ia64-*-hpux*) 7913 # Find out what ABI is being produced by ac_compile, and set mode 7914 # options accordingly. 7915 echo 'int i;' > conftest.$ac_ext 7916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7917 (eval $ac_compile) 2>&5 7918 ac_status=$? 7919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7920 test $ac_status = 0; }; then 7921 case `$FILECMD conftest.$ac_objext` in 7922 *ELF-32*) 7923 HPUX_IA64_MODE=32 7924 ;; 7925 *ELF-64*) 7926 HPUX_IA64_MODE=64 7927 ;; 7928 esac 7929 fi 7930 rm -rf conftest* 7931 ;; 7932*-*-irix6*) 7933 # Find out what ABI is being produced by ac_compile, and set linker 7934 # options accordingly. 7935 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7937 (eval $ac_compile) 2>&5 7938 ac_status=$? 7939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7940 test $ac_status = 0; }; then 7941 if test yes = "$lt_cv_prog_gnu_ld"; then 7942 case `$FILECMD conftest.$ac_objext` in 7943 *32-bit*) 7944 LD="${LD-ld} -melf32bsmip" 7945 ;; 7946 *N32*) 7947 LD="${LD-ld} -melf32bmipn32" 7948 ;; 7949 *64-bit*) 7950 LD="${LD-ld} -melf64bmip" 7951 ;; 7952 esac 7953 else 7954 case `$FILECMD conftest.$ac_objext` in 7955 *32-bit*) 7956 LD="${LD-ld} -32" 7957 ;; 7958 *N32*) 7959 LD="${LD-ld} -n32" 7960 ;; 7961 *64-bit*) 7962 LD="${LD-ld} -64" 7963 ;; 7964 esac 7965 fi 7966 fi 7967 rm -rf conftest* 7968 ;; 7969 7970mips64*-*linux*) 7971 # Find out what ABI is being produced by ac_compile, and set linker 7972 # options accordingly. 7973 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7975 (eval $ac_compile) 2>&5 7976 ac_status=$? 7977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7978 test $ac_status = 0; }; then 7979 emul=elf 7980 case `$FILECMD conftest.$ac_objext` in 7981 *32-bit*) 7982 emul="${emul}32" 7983 ;; 7984 *64-bit*) 7985 emul="${emul}64" 7986 ;; 7987 esac 7988 case `$FILECMD conftest.$ac_objext` in 7989 *MSB*) 7990 emul="${emul}btsmip" 7991 ;; 7992 *LSB*) 7993 emul="${emul}ltsmip" 7994 ;; 7995 esac 7996 case `$FILECMD conftest.$ac_objext` in 7997 *N32*) 7998 emul="${emul}n32" 7999 ;; 8000 esac 8001 LD="${LD-ld} -m $emul" 8002 fi 8003 rm -rf conftest* 8004 ;; 8005 8006x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8007s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8008 # Find out what ABI is being produced by ac_compile, and set linker 8009 # options accordingly. Note that the listed cases only cover the 8010 # situations where additional linker options are needed (such as when 8011 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 8012 # vice versa); the common cases where no linker options are needed do 8013 # not appear in the list. 8014 echo 'int i;' > conftest.$ac_ext 8015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8016 (eval $ac_compile) 2>&5 8017 ac_status=$? 8018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8019 test $ac_status = 0; }; then 8020 case `$FILECMD conftest.o` in 8021 *32-bit*) 8022 case $host in 8023 x86_64-*kfreebsd*-gnu) 8024 LD="${LD-ld} -m elf_i386_fbsd" 8025 ;; 8026 x86_64-*linux*) 8027 case `$FILECMD conftest.o` in 8028 *x86-64*) 8029 LD="${LD-ld} -m elf32_x86_64" 8030 ;; 8031 *) 8032 LD="${LD-ld} -m elf_i386" 8033 ;; 8034 esac 8035 ;; 8036 powerpc64le-*linux*) 8037 LD="${LD-ld} -m elf32lppclinux" 8038 ;; 8039 powerpc64-*linux*) 8040 LD="${LD-ld} -m elf32ppclinux" 8041 ;; 8042 s390x-*linux*) 8043 LD="${LD-ld} -m elf_s390" 8044 ;; 8045 sparc64-*linux*) 8046 LD="${LD-ld} -m elf32_sparc" 8047 ;; 8048 esac 8049 ;; 8050 *64-bit*) 8051 case $host in 8052 x86_64-*kfreebsd*-gnu) 8053 LD="${LD-ld} -m elf_x86_64_fbsd" 8054 ;; 8055 x86_64-*linux*) 8056 LD="${LD-ld} -m elf_x86_64" 8057 ;; 8058 powerpcle-*linux*) 8059 LD="${LD-ld} -m elf64lppc" 8060 ;; 8061 powerpc-*linux*) 8062 LD="${LD-ld} -m elf64ppc" 8063 ;; 8064 s390*-*linux*|s390*-*tpf*) 8065 LD="${LD-ld} -m elf64_s390" 8066 ;; 8067 sparc*-*linux*) 8068 LD="${LD-ld} -m elf64_sparc" 8069 ;; 8070 esac 8071 ;; 8072 esac 8073 fi 8074 rm -rf conftest* 8075 ;; 8076 8077*-*-sco3.2v5*) 8078 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8079 SAVE_CFLAGS=$CFLAGS 8080 CFLAGS="$CFLAGS -belf" 8081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8082printf %s "checking whether the C compiler needs -belf... " >&6; } 8083if test ${lt_cv_cc_needs_belf+y} 8084then : 8085 printf %s "(cached) " >&6 8086else case e in #( 8087 e) ac_ext=c 8088ac_cpp='$CPP $CPPFLAGS' 8089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8091ac_compiler_gnu=$ac_cv_c_compiler_gnu 8092 8093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8094/* end confdefs.h. */ 8095 8096int 8097main (void) 8098{ 8099 8100 ; 8101 return 0; 8102} 8103_ACEOF 8104if ac_fn_c_try_link "$LINENO" 8105then : 8106 lt_cv_cc_needs_belf=yes 8107else case e in #( 8108 e) lt_cv_cc_needs_belf=no ;; 8109esac 8110fi 8111rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8112 conftest$ac_exeext conftest.$ac_ext 8113 ac_ext=c 8114ac_cpp='$CPP $CPPFLAGS' 8115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8117ac_compiler_gnu=$ac_cv_c_compiler_gnu 8118 ;; 8119esac 8120fi 8121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8122printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 8123 if test yes != "$lt_cv_cc_needs_belf"; then 8124 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8125 CFLAGS=$SAVE_CFLAGS 8126 fi 8127 ;; 8128*-*solaris*) 8129 # Find out what ABI is being produced by ac_compile, and set linker 8130 # options accordingly. 8131 echo 'int i;' > conftest.$ac_ext 8132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8133 (eval $ac_compile) 2>&5 8134 ac_status=$? 8135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8136 test $ac_status = 0; }; then 8137 case `$FILECMD conftest.o` in 8138 *64-bit*) 8139 case $lt_cv_prog_gnu_ld in 8140 yes*) 8141 case $host in 8142 i?86-*-solaris*|x86_64-*-solaris*) 8143 LD="${LD-ld} -m elf_x86_64" 8144 ;; 8145 sparc*-*-solaris*) 8146 LD="${LD-ld} -m elf64_sparc" 8147 ;; 8148 esac 8149 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8150 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8151 LD=${LD-ld}_sol2 8152 fi 8153 ;; 8154 *) 8155 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8156 LD="${LD-ld} -64" 8157 fi 8158 ;; 8159 esac 8160 ;; 8161 esac 8162 fi 8163 rm -rf conftest* 8164 ;; 8165esac 8166 8167need_locks=$enable_libtool_lock 8168 8169if test -n "$ac_tool_prefix"; then 8170 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8171set dummy ${ac_tool_prefix}mt; ac_word=$2 8172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8173printf %s "checking for $ac_word... " >&6; } 8174if test ${ac_cv_prog_MANIFEST_TOOL+y} 8175then : 8176 printf %s "(cached) " >&6 8177else case e in #( 8178 e) if test -n "$MANIFEST_TOOL"; then 8179 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8180else 8181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8182for as_dir in $PATH 8183do 8184 IFS=$as_save_IFS 8185 case $as_dir in #((( 8186 '') as_dir=./ ;; 8187 */) ;; 8188 *) as_dir=$as_dir/ ;; 8189 esac 8190 for ac_exec_ext in '' $ac_executable_extensions; do 8191 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8192 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8193 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8194 break 2 8195 fi 8196done 8197 done 8198IFS=$as_save_IFS 8199 8200fi ;; 8201esac 8202fi 8203MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8204if test -n "$MANIFEST_TOOL"; then 8205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8206printf "%s\n" "$MANIFEST_TOOL" >&6; } 8207else 8208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8209printf "%s\n" "no" >&6; } 8210fi 8211 8212 8213fi 8214if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8215 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8216 # Extract the first word of "mt", so it can be a program name with args. 8217set dummy mt; ac_word=$2 8218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8219printf %s "checking for $ac_word... " >&6; } 8220if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 8221then : 8222 printf %s "(cached) " >&6 8223else case e in #( 8224 e) if test -n "$ac_ct_MANIFEST_TOOL"; then 8225 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8226else 8227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8228for as_dir in $PATH 8229do 8230 IFS=$as_save_IFS 8231 case $as_dir in #((( 8232 '') as_dir=./ ;; 8233 */) ;; 8234 *) as_dir=$as_dir/ ;; 8235 esac 8236 for ac_exec_ext in '' $ac_executable_extensions; do 8237 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8238 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8239 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8240 break 2 8241 fi 8242done 8243 done 8244IFS=$as_save_IFS 8245 8246fi ;; 8247esac 8248fi 8249ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8250if test -n "$ac_ct_MANIFEST_TOOL"; then 8251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8252printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 8253else 8254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8255printf "%s\n" "no" >&6; } 8256fi 8257 8258 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8259 MANIFEST_TOOL=":" 8260 else 8261 case $cross_compiling:$ac_tool_warned in 8262yes:) 8263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8264printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8265ac_tool_warned=yes ;; 8266esac 8267 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8268 fi 8269else 8270 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8271fi 8272 8273test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8275printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8276if test ${lt_cv_path_mainfest_tool+y} 8277then : 8278 printf %s "(cached) " >&6 8279else case e in #( 8280 e) lt_cv_path_mainfest_tool=no 8281 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8282 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8283 cat conftest.err >&5 8284 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8285 lt_cv_path_mainfest_tool=yes 8286 fi 8287 rm -f conftest* ;; 8288esac 8289fi 8290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8291printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 8292if test yes != "$lt_cv_path_mainfest_tool"; then 8293 MANIFEST_TOOL=: 8294fi 8295 8296 8297 8298 8299 8300 8301 case $host_os in 8302 rhapsody* | darwin*) 8303 if test -n "$ac_tool_prefix"; then 8304 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8305set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8307printf %s "checking for $ac_word... " >&6; } 8308if test ${ac_cv_prog_DSYMUTIL+y} 8309then : 8310 printf %s "(cached) " >&6 8311else case e in #( 8312 e) if test -n "$DSYMUTIL"; then 8313 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8314else 8315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8316for as_dir in $PATH 8317do 8318 IFS=$as_save_IFS 8319 case $as_dir in #((( 8320 '') as_dir=./ ;; 8321 */) ;; 8322 *) as_dir=$as_dir/ ;; 8323 esac 8324 for ac_exec_ext in '' $ac_executable_extensions; do 8325 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8326 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8328 break 2 8329 fi 8330done 8331 done 8332IFS=$as_save_IFS 8333 8334fi ;; 8335esac 8336fi 8337DSYMUTIL=$ac_cv_prog_DSYMUTIL 8338if test -n "$DSYMUTIL"; then 8339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8340printf "%s\n" "$DSYMUTIL" >&6; } 8341else 8342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8343printf "%s\n" "no" >&6; } 8344fi 8345 8346 8347fi 8348if test -z "$ac_cv_prog_DSYMUTIL"; then 8349 ac_ct_DSYMUTIL=$DSYMUTIL 8350 # Extract the first word of "dsymutil", so it can be a program name with args. 8351set dummy dsymutil; ac_word=$2 8352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8353printf %s "checking for $ac_word... " >&6; } 8354if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 8355then : 8356 printf %s "(cached) " >&6 8357else case e in #( 8358 e) if test -n "$ac_ct_DSYMUTIL"; then 8359 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8360else 8361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8362for as_dir in $PATH 8363do 8364 IFS=$as_save_IFS 8365 case $as_dir in #((( 8366 '') as_dir=./ ;; 8367 */) ;; 8368 *) as_dir=$as_dir/ ;; 8369 esac 8370 for ac_exec_ext in '' $ac_executable_extensions; do 8371 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8372 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8374 break 2 8375 fi 8376done 8377 done 8378IFS=$as_save_IFS 8379 8380fi ;; 8381esac 8382fi 8383ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8384if test -n "$ac_ct_DSYMUTIL"; then 8385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8386printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 8387else 8388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8389printf "%s\n" "no" >&6; } 8390fi 8391 8392 if test "x$ac_ct_DSYMUTIL" = x; then 8393 DSYMUTIL=":" 8394 else 8395 case $cross_compiling:$ac_tool_warned in 8396yes:) 8397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8398printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8399ac_tool_warned=yes ;; 8400esac 8401 DSYMUTIL=$ac_ct_DSYMUTIL 8402 fi 8403else 8404 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8405fi 8406 8407 if test -n "$ac_tool_prefix"; then 8408 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8409set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8411printf %s "checking for $ac_word... " >&6; } 8412if test ${ac_cv_prog_NMEDIT+y} 8413then : 8414 printf %s "(cached) " >&6 8415else case e in #( 8416 e) if test -n "$NMEDIT"; then 8417 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8418else 8419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8420for as_dir in $PATH 8421do 8422 IFS=$as_save_IFS 8423 case $as_dir in #((( 8424 '') as_dir=./ ;; 8425 */) ;; 8426 *) as_dir=$as_dir/ ;; 8427 esac 8428 for ac_exec_ext in '' $ac_executable_extensions; do 8429 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8430 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8432 break 2 8433 fi 8434done 8435 done 8436IFS=$as_save_IFS 8437 8438fi ;; 8439esac 8440fi 8441NMEDIT=$ac_cv_prog_NMEDIT 8442if test -n "$NMEDIT"; then 8443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8444printf "%s\n" "$NMEDIT" >&6; } 8445else 8446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8447printf "%s\n" "no" >&6; } 8448fi 8449 8450 8451fi 8452if test -z "$ac_cv_prog_NMEDIT"; then 8453 ac_ct_NMEDIT=$NMEDIT 8454 # Extract the first word of "nmedit", so it can be a program name with args. 8455set dummy nmedit; ac_word=$2 8456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8457printf %s "checking for $ac_word... " >&6; } 8458if test ${ac_cv_prog_ac_ct_NMEDIT+y} 8459then : 8460 printf %s "(cached) " >&6 8461else case e in #( 8462 e) if test -n "$ac_ct_NMEDIT"; then 8463 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8464else 8465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8466for as_dir in $PATH 8467do 8468 IFS=$as_save_IFS 8469 case $as_dir in #((( 8470 '') as_dir=./ ;; 8471 */) ;; 8472 *) as_dir=$as_dir/ ;; 8473 esac 8474 for ac_exec_ext in '' $ac_executable_extensions; do 8475 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8476 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8477 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8478 break 2 8479 fi 8480done 8481 done 8482IFS=$as_save_IFS 8483 8484fi ;; 8485esac 8486fi 8487ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8488if test -n "$ac_ct_NMEDIT"; then 8489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8490printf "%s\n" "$ac_ct_NMEDIT" >&6; } 8491else 8492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8493printf "%s\n" "no" >&6; } 8494fi 8495 8496 if test "x$ac_ct_NMEDIT" = x; then 8497 NMEDIT=":" 8498 else 8499 case $cross_compiling:$ac_tool_warned in 8500yes:) 8501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8502printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8503ac_tool_warned=yes ;; 8504esac 8505 NMEDIT=$ac_ct_NMEDIT 8506 fi 8507else 8508 NMEDIT="$ac_cv_prog_NMEDIT" 8509fi 8510 8511 if test -n "$ac_tool_prefix"; then 8512 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8513set dummy ${ac_tool_prefix}lipo; ac_word=$2 8514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8515printf %s "checking for $ac_word... " >&6; } 8516if test ${ac_cv_prog_LIPO+y} 8517then : 8518 printf %s "(cached) " >&6 8519else case e in #( 8520 e) if test -n "$LIPO"; then 8521 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8522else 8523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8524for as_dir in $PATH 8525do 8526 IFS=$as_save_IFS 8527 case $as_dir in #((( 8528 '') as_dir=./ ;; 8529 */) ;; 8530 *) as_dir=$as_dir/ ;; 8531 esac 8532 for ac_exec_ext in '' $ac_executable_extensions; do 8533 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8534 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8536 break 2 8537 fi 8538done 8539 done 8540IFS=$as_save_IFS 8541 8542fi ;; 8543esac 8544fi 8545LIPO=$ac_cv_prog_LIPO 8546if test -n "$LIPO"; then 8547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8548printf "%s\n" "$LIPO" >&6; } 8549else 8550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8551printf "%s\n" "no" >&6; } 8552fi 8553 8554 8555fi 8556if test -z "$ac_cv_prog_LIPO"; then 8557 ac_ct_LIPO=$LIPO 8558 # Extract the first word of "lipo", so it can be a program name with args. 8559set dummy lipo; ac_word=$2 8560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8561printf %s "checking for $ac_word... " >&6; } 8562if test ${ac_cv_prog_ac_ct_LIPO+y} 8563then : 8564 printf %s "(cached) " >&6 8565else case e in #( 8566 e) if test -n "$ac_ct_LIPO"; then 8567 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8568else 8569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8570for as_dir in $PATH 8571do 8572 IFS=$as_save_IFS 8573 case $as_dir in #((( 8574 '') as_dir=./ ;; 8575 */) ;; 8576 *) as_dir=$as_dir/ ;; 8577 esac 8578 for ac_exec_ext in '' $ac_executable_extensions; do 8579 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8580 ac_cv_prog_ac_ct_LIPO="lipo" 8581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8582 break 2 8583 fi 8584done 8585 done 8586IFS=$as_save_IFS 8587 8588fi ;; 8589esac 8590fi 8591ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8592if test -n "$ac_ct_LIPO"; then 8593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8594printf "%s\n" "$ac_ct_LIPO" >&6; } 8595else 8596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8597printf "%s\n" "no" >&6; } 8598fi 8599 8600 if test "x$ac_ct_LIPO" = x; then 8601 LIPO=":" 8602 else 8603 case $cross_compiling:$ac_tool_warned in 8604yes:) 8605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8606printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8607ac_tool_warned=yes ;; 8608esac 8609 LIPO=$ac_ct_LIPO 8610 fi 8611else 8612 LIPO="$ac_cv_prog_LIPO" 8613fi 8614 8615 if test -n "$ac_tool_prefix"; then 8616 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8617set dummy ${ac_tool_prefix}otool; ac_word=$2 8618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8619printf %s "checking for $ac_word... " >&6; } 8620if test ${ac_cv_prog_OTOOL+y} 8621then : 8622 printf %s "(cached) " >&6 8623else case e in #( 8624 e) if test -n "$OTOOL"; then 8625 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8626else 8627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8628for as_dir in $PATH 8629do 8630 IFS=$as_save_IFS 8631 case $as_dir in #((( 8632 '') as_dir=./ ;; 8633 */) ;; 8634 *) as_dir=$as_dir/ ;; 8635 esac 8636 for ac_exec_ext in '' $ac_executable_extensions; do 8637 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8638 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8640 break 2 8641 fi 8642done 8643 done 8644IFS=$as_save_IFS 8645 8646fi ;; 8647esac 8648fi 8649OTOOL=$ac_cv_prog_OTOOL 8650if test -n "$OTOOL"; then 8651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8652printf "%s\n" "$OTOOL" >&6; } 8653else 8654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8655printf "%s\n" "no" >&6; } 8656fi 8657 8658 8659fi 8660if test -z "$ac_cv_prog_OTOOL"; then 8661 ac_ct_OTOOL=$OTOOL 8662 # Extract the first word of "otool", so it can be a program name with args. 8663set dummy otool; ac_word=$2 8664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8665printf %s "checking for $ac_word... " >&6; } 8666if test ${ac_cv_prog_ac_ct_OTOOL+y} 8667then : 8668 printf %s "(cached) " >&6 8669else case e in #( 8670 e) if test -n "$ac_ct_OTOOL"; then 8671 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8672else 8673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8674for as_dir in $PATH 8675do 8676 IFS=$as_save_IFS 8677 case $as_dir in #((( 8678 '') as_dir=./ ;; 8679 */) ;; 8680 *) as_dir=$as_dir/ ;; 8681 esac 8682 for ac_exec_ext in '' $ac_executable_extensions; do 8683 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8684 ac_cv_prog_ac_ct_OTOOL="otool" 8685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8686 break 2 8687 fi 8688done 8689 done 8690IFS=$as_save_IFS 8691 8692fi ;; 8693esac 8694fi 8695ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8696if test -n "$ac_ct_OTOOL"; then 8697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8698printf "%s\n" "$ac_ct_OTOOL" >&6; } 8699else 8700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8701printf "%s\n" "no" >&6; } 8702fi 8703 8704 if test "x$ac_ct_OTOOL" = x; then 8705 OTOOL=":" 8706 else 8707 case $cross_compiling:$ac_tool_warned in 8708yes:) 8709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8710printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8711ac_tool_warned=yes ;; 8712esac 8713 OTOOL=$ac_ct_OTOOL 8714 fi 8715else 8716 OTOOL="$ac_cv_prog_OTOOL" 8717fi 8718 8719 if test -n "$ac_tool_prefix"; then 8720 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8721set dummy ${ac_tool_prefix}otool64; ac_word=$2 8722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8723printf %s "checking for $ac_word... " >&6; } 8724if test ${ac_cv_prog_OTOOL64+y} 8725then : 8726 printf %s "(cached) " >&6 8727else case e in #( 8728 e) if test -n "$OTOOL64"; then 8729 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8730else 8731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8732for as_dir in $PATH 8733do 8734 IFS=$as_save_IFS 8735 case $as_dir in #((( 8736 '') as_dir=./ ;; 8737 */) ;; 8738 *) as_dir=$as_dir/ ;; 8739 esac 8740 for ac_exec_ext in '' $ac_executable_extensions; do 8741 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8742 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8743 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8744 break 2 8745 fi 8746done 8747 done 8748IFS=$as_save_IFS 8749 8750fi ;; 8751esac 8752fi 8753OTOOL64=$ac_cv_prog_OTOOL64 8754if test -n "$OTOOL64"; then 8755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8756printf "%s\n" "$OTOOL64" >&6; } 8757else 8758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8759printf "%s\n" "no" >&6; } 8760fi 8761 8762 8763fi 8764if test -z "$ac_cv_prog_OTOOL64"; then 8765 ac_ct_OTOOL64=$OTOOL64 8766 # Extract the first word of "otool64", so it can be a program name with args. 8767set dummy otool64; ac_word=$2 8768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8769printf %s "checking for $ac_word... " >&6; } 8770if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8771then : 8772 printf %s "(cached) " >&6 8773else case e in #( 8774 e) if test -n "$ac_ct_OTOOL64"; then 8775 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8776else 8777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8778for as_dir in $PATH 8779do 8780 IFS=$as_save_IFS 8781 case $as_dir in #((( 8782 '') as_dir=./ ;; 8783 */) ;; 8784 *) as_dir=$as_dir/ ;; 8785 esac 8786 for ac_exec_ext in '' $ac_executable_extensions; do 8787 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8788 ac_cv_prog_ac_ct_OTOOL64="otool64" 8789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8790 break 2 8791 fi 8792done 8793 done 8794IFS=$as_save_IFS 8795 8796fi ;; 8797esac 8798fi 8799ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8800if test -n "$ac_ct_OTOOL64"; then 8801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8802printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8803else 8804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8805printf "%s\n" "no" >&6; } 8806fi 8807 8808 if test "x$ac_ct_OTOOL64" = x; then 8809 OTOOL64=":" 8810 else 8811 case $cross_compiling:$ac_tool_warned in 8812yes:) 8813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8814printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8815ac_tool_warned=yes ;; 8816esac 8817 OTOOL64=$ac_ct_OTOOL64 8818 fi 8819else 8820 OTOOL64="$ac_cv_prog_OTOOL64" 8821fi 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8850printf %s "checking for -single_module linker flag... " >&6; } 8851if test ${lt_cv_apple_cc_single_mod+y} 8852then : 8853 printf %s "(cached) " >&6 8854else case e in #( 8855 e) lt_cv_apple_cc_single_mod=no 8856 if test -z "$LT_MULTI_MODULE"; then 8857 # By default we will add the -single_module flag. You can override 8858 # by either setting the environment variable LT_MULTI_MODULE 8859 # non-empty at configure time, or by adding -multi_module to the 8860 # link flags. 8861 rm -rf libconftest.dylib* 8862 echo "int foo(void){return 1;}" > conftest.c 8863 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8864-dynamiclib -Wl,-single_module conftest.c" >&5 8865 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8866 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8867 _lt_result=$? 8868 # If there is a non-empty error log, and "single_module" 8869 # appears in it, assume the flag caused a linker warning 8870 if test -s conftest.err && $GREP single_module conftest.err; then 8871 cat conftest.err >&5 8872 # Otherwise, if the output was created with a 0 exit code from 8873 # the compiler, it worked. 8874 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8875 lt_cv_apple_cc_single_mod=yes 8876 else 8877 cat conftest.err >&5 8878 fi 8879 rm -rf libconftest.dylib* 8880 rm -f conftest.* 8881 fi ;; 8882esac 8883fi 8884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8885printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8886 8887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8888printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8889if test ${lt_cv_ld_exported_symbols_list+y} 8890then : 8891 printf %s "(cached) " >&6 8892else case e in #( 8893 e) lt_cv_ld_exported_symbols_list=no 8894 save_LDFLAGS=$LDFLAGS 8895 echo "_main" > conftest.sym 8896 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8898/* end confdefs.h. */ 8899 8900int 8901main (void) 8902{ 8903 8904 ; 8905 return 0; 8906} 8907_ACEOF 8908if ac_fn_c_try_link "$LINENO" 8909then : 8910 lt_cv_ld_exported_symbols_list=yes 8911else case e in #( 8912 e) lt_cv_ld_exported_symbols_list=no ;; 8913esac 8914fi 8915rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8916 conftest$ac_exeext conftest.$ac_ext 8917 LDFLAGS=$save_LDFLAGS 8918 ;; 8919esac 8920fi 8921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8922printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8923 8924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8925printf %s "checking for -force_load linker flag... " >&6; } 8926if test ${lt_cv_ld_force_load+y} 8927then : 8928 printf %s "(cached) " >&6 8929else case e in #( 8930 e) lt_cv_ld_force_load=no 8931 cat > conftest.c << _LT_EOF 8932int forced_loaded() { return 2;} 8933_LT_EOF 8934 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8935 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8936 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8937 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8938 echo "$RANLIB libconftest.a" >&5 8939 $RANLIB libconftest.a 2>&5 8940 cat > conftest.c << _LT_EOF 8941int main() { return 0;} 8942_LT_EOF 8943 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8944 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8945 _lt_result=$? 8946 if test -s conftest.err && $GREP force_load conftest.err; then 8947 cat conftest.err >&5 8948 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8949 lt_cv_ld_force_load=yes 8950 else 8951 cat conftest.err >&5 8952 fi 8953 rm -f conftest.err libconftest.a conftest conftest.c 8954 rm -rf conftest.dSYM 8955 ;; 8956esac 8957fi 8958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8959printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8960 case $host_os in 8961 rhapsody* | darwin1.[012]) 8962 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8963 darwin1.*) 8964 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8965 darwin*) 8966 case $MACOSX_DEPLOYMENT_TARGET,$host in 8967 10.[012],*|,*powerpc*-darwin[5-8]*) 8968 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8969 *) 8970 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8971 esac 8972 ;; 8973 esac 8974 if test yes = "$lt_cv_apple_cc_single_mod"; then 8975 _lt_dar_single_mod='$single_module' 8976 fi 8977 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8978 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8979 else 8980 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8981 fi 8982 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8983 _lt_dsymutil='~$DSYMUTIL $lib || :' 8984 else 8985 _lt_dsymutil= 8986 fi 8987 ;; 8988 esac 8989 8990# func_munge_path_list VARIABLE PATH 8991# ----------------------------------- 8992# VARIABLE is name of variable containing _space_ separated list of 8993# directories to be munged by the contents of PATH, which is string 8994# having a format: 8995# "DIR[:DIR]:" 8996# string "DIR[ DIR]" will be prepended to VARIABLE 8997# ":DIR[:DIR]" 8998# string "DIR[ DIR]" will be appended to VARIABLE 8999# "DIRP[:DIRP]::[DIRA:]DIRA" 9000# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 9001# "DIRA[ DIRA]" will be appended to VARIABLE 9002# "DIR[:DIR]" 9003# VARIABLE will be replaced by "DIR[ DIR]" 9004func_munge_path_list () 9005{ 9006 case x$2 in 9007 x) 9008 ;; 9009 *:) 9010 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 9011 ;; 9012 x:*) 9013 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 9014 ;; 9015 *::*) 9016 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 9017 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 9018 ;; 9019 *) 9020 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 9021 ;; 9022 esac 9023} 9024 9025ac_header= ac_cache= 9026for ac_item in $ac_header_c_list 9027do 9028 if test $ac_cache; then 9029 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 9030 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 9031 printf "%s\n" "#define $ac_item 1" >> confdefs.h 9032 fi 9033 ac_header= ac_cache= 9034 elif test $ac_header; then 9035 ac_cache=$ac_item 9036 else 9037 ac_header=$ac_item 9038 fi 9039done 9040 9041 9042 9043 9044 9045 9046 9047 9048if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 9049then : 9050 9051printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 9052 9053fi 9054ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9055" 9056if test "x$ac_cv_header_dlfcn_h" = xyes 9057then : 9058 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 9059 9060fi 9061 9062 9063 9064 9065 9066# Set options 9067enable_win32_dll=yes 9068 9069case $host in 9070*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 9071 if test -n "$ac_tool_prefix"; then 9072 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 9073set dummy ${ac_tool_prefix}as; ac_word=$2 9074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9075printf %s "checking for $ac_word... " >&6; } 9076if test ${ac_cv_prog_AS+y} 9077then : 9078 printf %s "(cached) " >&6 9079else case e in #( 9080 e) if test -n "$AS"; then 9081 ac_cv_prog_AS="$AS" # Let the user override the test. 9082else 9083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9084for as_dir in $PATH 9085do 9086 IFS=$as_save_IFS 9087 case $as_dir in #((( 9088 '') as_dir=./ ;; 9089 */) ;; 9090 *) as_dir=$as_dir/ ;; 9091 esac 9092 for ac_exec_ext in '' $ac_executable_extensions; do 9093 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9094 ac_cv_prog_AS="${ac_tool_prefix}as" 9095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9096 break 2 9097 fi 9098done 9099 done 9100IFS=$as_save_IFS 9101 9102fi ;; 9103esac 9104fi 9105AS=$ac_cv_prog_AS 9106if test -n "$AS"; then 9107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 9108printf "%s\n" "$AS" >&6; } 9109else 9110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9111printf "%s\n" "no" >&6; } 9112fi 9113 9114 9115fi 9116if test -z "$ac_cv_prog_AS"; then 9117 ac_ct_AS=$AS 9118 # Extract the first word of "as", so it can be a program name with args. 9119set dummy as; ac_word=$2 9120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9121printf %s "checking for $ac_word... " >&6; } 9122if test ${ac_cv_prog_ac_ct_AS+y} 9123then : 9124 printf %s "(cached) " >&6 9125else case e in #( 9126 e) if test -n "$ac_ct_AS"; then 9127 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 9128else 9129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9130for as_dir in $PATH 9131do 9132 IFS=$as_save_IFS 9133 case $as_dir in #((( 9134 '') as_dir=./ ;; 9135 */) ;; 9136 *) as_dir=$as_dir/ ;; 9137 esac 9138 for ac_exec_ext in '' $ac_executable_extensions; do 9139 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9140 ac_cv_prog_ac_ct_AS="as" 9141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9142 break 2 9143 fi 9144done 9145 done 9146IFS=$as_save_IFS 9147 9148fi ;; 9149esac 9150fi 9151ac_ct_AS=$ac_cv_prog_ac_ct_AS 9152if test -n "$ac_ct_AS"; then 9153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 9154printf "%s\n" "$ac_ct_AS" >&6; } 9155else 9156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9157printf "%s\n" "no" >&6; } 9158fi 9159 9160 if test "x$ac_ct_AS" = x; then 9161 AS="false" 9162 else 9163 case $cross_compiling:$ac_tool_warned in 9164yes:) 9165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9166printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9167ac_tool_warned=yes ;; 9168esac 9169 AS=$ac_ct_AS 9170 fi 9171else 9172 AS="$ac_cv_prog_AS" 9173fi 9174 9175 if test -n "$ac_tool_prefix"; then 9176 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 9177set dummy ${ac_tool_prefix}dlltool; ac_word=$2 9178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9179printf %s "checking for $ac_word... " >&6; } 9180if test ${ac_cv_prog_DLLTOOL+y} 9181then : 9182 printf %s "(cached) " >&6 9183else case e in #( 9184 e) if test -n "$DLLTOOL"; then 9185 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 9186else 9187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9188for as_dir in $PATH 9189do 9190 IFS=$as_save_IFS 9191 case $as_dir in #((( 9192 '') as_dir=./ ;; 9193 */) ;; 9194 *) as_dir=$as_dir/ ;; 9195 esac 9196 for ac_exec_ext in '' $ac_executable_extensions; do 9197 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9198 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 9199 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9200 break 2 9201 fi 9202done 9203 done 9204IFS=$as_save_IFS 9205 9206fi ;; 9207esac 9208fi 9209DLLTOOL=$ac_cv_prog_DLLTOOL 9210if test -n "$DLLTOOL"; then 9211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 9212printf "%s\n" "$DLLTOOL" >&6; } 9213else 9214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9215printf "%s\n" "no" >&6; } 9216fi 9217 9218 9219fi 9220if test -z "$ac_cv_prog_DLLTOOL"; then 9221 ac_ct_DLLTOOL=$DLLTOOL 9222 # Extract the first word of "dlltool", so it can be a program name with args. 9223set dummy dlltool; ac_word=$2 9224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9225printf %s "checking for $ac_word... " >&6; } 9226if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 9227then : 9228 printf %s "(cached) " >&6 9229else case e in #( 9230 e) if test -n "$ac_ct_DLLTOOL"; then 9231 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 9232else 9233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9234for as_dir in $PATH 9235do 9236 IFS=$as_save_IFS 9237 case $as_dir in #((( 9238 '') as_dir=./ ;; 9239 */) ;; 9240 *) as_dir=$as_dir/ ;; 9241 esac 9242 for ac_exec_ext in '' $ac_executable_extensions; do 9243 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9244 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 9245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9246 break 2 9247 fi 9248done 9249 done 9250IFS=$as_save_IFS 9251 9252fi ;; 9253esac 9254fi 9255ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 9256if test -n "$ac_ct_DLLTOOL"; then 9257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 9258printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 9259else 9260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9261printf "%s\n" "no" >&6; } 9262fi 9263 9264 if test "x$ac_ct_DLLTOOL" = x; then 9265 DLLTOOL="false" 9266 else 9267 case $cross_compiling:$ac_tool_warned in 9268yes:) 9269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9270printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9271ac_tool_warned=yes ;; 9272esac 9273 DLLTOOL=$ac_ct_DLLTOOL 9274 fi 9275else 9276 DLLTOOL="$ac_cv_prog_DLLTOOL" 9277fi 9278 9279 if test -n "$ac_tool_prefix"; then 9280 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 9281set dummy ${ac_tool_prefix}objdump; ac_word=$2 9282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9283printf %s "checking for $ac_word... " >&6; } 9284if test ${ac_cv_prog_OBJDUMP+y} 9285then : 9286 printf %s "(cached) " >&6 9287else case e in #( 9288 e) if test -n "$OBJDUMP"; then 9289 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 9290else 9291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9292for as_dir in $PATH 9293do 9294 IFS=$as_save_IFS 9295 case $as_dir in #((( 9296 '') as_dir=./ ;; 9297 */) ;; 9298 *) as_dir=$as_dir/ ;; 9299 esac 9300 for ac_exec_ext in '' $ac_executable_extensions; do 9301 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9302 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 9303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9304 break 2 9305 fi 9306done 9307 done 9308IFS=$as_save_IFS 9309 9310fi ;; 9311esac 9312fi 9313OBJDUMP=$ac_cv_prog_OBJDUMP 9314if test -n "$OBJDUMP"; then 9315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9316printf "%s\n" "$OBJDUMP" >&6; } 9317else 9318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9319printf "%s\n" "no" >&6; } 9320fi 9321 9322 9323fi 9324if test -z "$ac_cv_prog_OBJDUMP"; then 9325 ac_ct_OBJDUMP=$OBJDUMP 9326 # Extract the first word of "objdump", so it can be a program name with args. 9327set dummy objdump; ac_word=$2 9328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9329printf %s "checking for $ac_word... " >&6; } 9330if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 9331then : 9332 printf %s "(cached) " >&6 9333else case e in #( 9334 e) if test -n "$ac_ct_OBJDUMP"; then 9335 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 9336else 9337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9338for as_dir in $PATH 9339do 9340 IFS=$as_save_IFS 9341 case $as_dir in #((( 9342 '') as_dir=./ ;; 9343 */) ;; 9344 *) as_dir=$as_dir/ ;; 9345 esac 9346 for ac_exec_ext in '' $ac_executable_extensions; do 9347 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9348 ac_cv_prog_ac_ct_OBJDUMP="objdump" 9349 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9350 break 2 9351 fi 9352done 9353 done 9354IFS=$as_save_IFS 9355 9356fi ;; 9357esac 9358fi 9359ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 9360if test -n "$ac_ct_OBJDUMP"; then 9361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 9362printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 9363else 9364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9365printf "%s\n" "no" >&6; } 9366fi 9367 9368 if test "x$ac_ct_OBJDUMP" = x; then 9369 OBJDUMP="false" 9370 else 9371 case $cross_compiling:$ac_tool_warned in 9372yes:) 9373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9374printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9375ac_tool_warned=yes ;; 9376esac 9377 OBJDUMP=$ac_ct_OBJDUMP 9378 fi 9379else 9380 OBJDUMP="$ac_cv_prog_OBJDUMP" 9381fi 9382 9383 ;; 9384esac 9385 9386test -z "$AS" && AS=as 9387 9388 9389 9390 9391 9392test -z "$DLLTOOL" && DLLTOOL=dlltool 9393 9394 9395 9396 9397 9398test -z "$OBJDUMP" && OBJDUMP=objdump 9399 9400 9401 9402 9403 9404 9405 9406 enable_dlopen=no 9407 9408 9409 9410 # Check whether --enable-shared was given. 9411if test ${enable_shared+y} 9412then : 9413 enableval=$enable_shared; p=${PACKAGE-default} 9414 case $enableval in 9415 yes) enable_shared=yes ;; 9416 no) enable_shared=no ;; 9417 *) 9418 enable_shared=no 9419 # Look at the argument we got. We use all the common list separators. 9420 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9421 for pkg in $enableval; do 9422 IFS=$lt_save_ifs 9423 if test "X$pkg" = "X$p"; then 9424 enable_shared=yes 9425 fi 9426 done 9427 IFS=$lt_save_ifs 9428 ;; 9429 esac 9430else case e in #( 9431 e) enable_shared=yes ;; 9432esac 9433fi 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 # Check whether --enable-static was given. 9444if test ${enable_static+y} 9445then : 9446 enableval=$enable_static; p=${PACKAGE-default} 9447 case $enableval in 9448 yes) enable_static=yes ;; 9449 no) enable_static=no ;; 9450 *) 9451 enable_static=no 9452 # Look at the argument we got. We use all the common list separators. 9453 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9454 for pkg in $enableval; do 9455 IFS=$lt_save_ifs 9456 if test "X$pkg" = "X$p"; then 9457 enable_static=yes 9458 fi 9459 done 9460 IFS=$lt_save_ifs 9461 ;; 9462 esac 9463else case e in #( 9464 e) enable_static=yes ;; 9465esac 9466fi 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477# Check whether --with-pic was given. 9478if test ${with_pic+y} 9479then : 9480 withval=$with_pic; lt_p=${PACKAGE-default} 9481 case $withval in 9482 yes|no) pic_mode=$withval ;; 9483 *) 9484 pic_mode=default 9485 # Look at the argument we got. We use all the common list separators. 9486 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9487 for lt_pkg in $withval; do 9488 IFS=$lt_save_ifs 9489 if test "X$lt_pkg" = "X$lt_p"; then 9490 pic_mode=yes 9491 fi 9492 done 9493 IFS=$lt_save_ifs 9494 ;; 9495 esac 9496else case e in #( 9497 e) pic_mode=default ;; 9498esac 9499fi 9500 9501 9502 9503 9504 9505 9506 9507 9508 # Check whether --enable-fast-install was given. 9509if test ${enable_fast_install+y} 9510then : 9511 enableval=$enable_fast_install; p=${PACKAGE-default} 9512 case $enableval in 9513 yes) enable_fast_install=yes ;; 9514 no) enable_fast_install=no ;; 9515 *) 9516 enable_fast_install=no 9517 # Look at the argument we got. We use all the common list separators. 9518 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9519 for pkg in $enableval; do 9520 IFS=$lt_save_ifs 9521 if test "X$pkg" = "X$p"; then 9522 enable_fast_install=yes 9523 fi 9524 done 9525 IFS=$lt_save_ifs 9526 ;; 9527 esac 9528else case e in #( 9529 e) enable_fast_install=yes ;; 9530esac 9531fi 9532 9533 9534 9535 9536 9537 9538 9539 9540 shared_archive_member_spec= 9541case $host,$enable_shared in 9542power*-*-aix[5-9]*,yes) 9543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9544printf %s "checking which variant of shared library versioning to provide... " >&6; } 9545 9546# Check whether --with-aix-soname was given. 9547if test ${with_aix_soname+y} 9548then : 9549 withval=$with_aix_soname; case $withval in 9550 aix|svr4|both) 9551 ;; 9552 *) 9553 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9554 ;; 9555 esac 9556 lt_cv_with_aix_soname=$with_aix_soname 9557else case e in #( 9558 e) if test ${lt_cv_with_aix_soname+y} 9559then : 9560 printf %s "(cached) " >&6 9561else case e in #( 9562 e) lt_cv_with_aix_soname=aix ;; 9563esac 9564fi 9565 9566 with_aix_soname=$lt_cv_with_aix_soname ;; 9567esac 9568fi 9569 9570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9571printf "%s\n" "$with_aix_soname" >&6; } 9572 if test aix != "$with_aix_soname"; then 9573 # For the AIX way of multilib, we name the shared archive member 9574 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9575 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9576 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9577 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9578 if test 64 = "${OBJECT_MODE-32}"; then 9579 shared_archive_member_spec=shr_64 9580 else 9581 shared_archive_member_spec=shr 9582 fi 9583 fi 9584 ;; 9585*) 9586 with_aix_soname=aix 9587 ;; 9588esac 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599# This can be used to rebuild libtool when needed 9600LIBTOOL_DEPS=$ltmain 9601 9602# Always use our own libtool. 9603LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634test -z "$LN_S" && LN_S="ln -s" 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649if test -n "${ZSH_VERSION+set}"; then 9650 setopt NO_GLOB_SUBST 9651fi 9652 9653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9654printf %s "checking for objdir... " >&6; } 9655if test ${lt_cv_objdir+y} 9656then : 9657 printf %s "(cached) " >&6 9658else case e in #( 9659 e) rm -f .libs 2>/dev/null 9660mkdir .libs 2>/dev/null 9661if test -d .libs; then 9662 lt_cv_objdir=.libs 9663else 9664 # MS-DOS does not allow filenames that begin with a dot. 9665 lt_cv_objdir=_libs 9666fi 9667rmdir .libs 2>/dev/null ;; 9668esac 9669fi 9670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9671printf "%s\n" "$lt_cv_objdir" >&6; } 9672objdir=$lt_cv_objdir 9673 9674 9675 9676 9677 9678printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 9679 9680 9681 9682 9683case $host_os in 9684aix3*) 9685 # AIX sometimes has problems with the GCC collect2 program. For some 9686 # reason, if we set the COLLECT_NAMES environment variable, the problems 9687 # vanish in a puff of smoke. 9688 if test set != "${COLLECT_NAMES+set}"; then 9689 COLLECT_NAMES= 9690 export COLLECT_NAMES 9691 fi 9692 ;; 9693esac 9694 9695# Global variables: 9696ofile=libtool 9697can_build_shared=yes 9698 9699# All known linkers require a '.a' archive for static linking (except MSVC and 9700# ICC, which need '.lib'). 9701libext=a 9702 9703with_gnu_ld=$lt_cv_prog_gnu_ld 9704 9705old_CC=$CC 9706old_CFLAGS=$CFLAGS 9707 9708# Set sane defaults for various variables 9709test -z "$CC" && CC=cc 9710test -z "$LTCC" && LTCC=$CC 9711test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9712test -z "$LD" && LD=ld 9713test -z "$ac_objext" && ac_objext=o 9714 9715func_cc_basename $compiler 9716cc_basename=$func_cc_basename_result 9717 9718 9719# Only perform the check for file, if the check method requires it 9720test -z "$MAGIC_CMD" && MAGIC_CMD=file 9721case $deplibs_check_method in 9722file_magic*) 9723 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9725printf %s "checking for ${ac_tool_prefix}file... " >&6; } 9726if test ${lt_cv_path_MAGIC_CMD+y} 9727then : 9728 printf %s "(cached) " >&6 9729else case e in #( 9730 e) case $MAGIC_CMD in 9731[\\/*] | ?:[\\/]*) 9732 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9733 ;; 9734*) 9735 lt_save_MAGIC_CMD=$MAGIC_CMD 9736 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9737 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9738 for ac_dir in $ac_dummy; do 9739 IFS=$lt_save_ifs 9740 test -z "$ac_dir" && ac_dir=. 9741 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9742 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9743 if test -n "$file_magic_test_file"; then 9744 case $deplibs_check_method in 9745 "file_magic "*) 9746 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9747 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9748 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9749 $EGREP "$file_magic_regex" > /dev/null; then 9750 : 9751 else 9752 cat <<_LT_EOF 1>&2 9753 9754*** Warning: the command libtool uses to detect shared libraries, 9755*** $file_magic_cmd, produces output that libtool cannot recognize. 9756*** The result is that libtool may fail to recognize shared libraries 9757*** as such. This will affect the creation of libtool libraries that 9758*** depend on shared libraries, but programs linked with such libtool 9759*** libraries will work regardless of this problem. Nevertheless, you 9760*** may want to report the problem to your system manager and/or to 9761*** [email protected] 9762 9763_LT_EOF 9764 fi ;; 9765 esac 9766 fi 9767 break 9768 fi 9769 done 9770 IFS=$lt_save_ifs 9771 MAGIC_CMD=$lt_save_MAGIC_CMD 9772 ;; 9773esac ;; 9774esac 9775fi 9776 9777MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9778if test -n "$MAGIC_CMD"; then 9779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9780printf "%s\n" "$MAGIC_CMD" >&6; } 9781else 9782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9783printf "%s\n" "no" >&6; } 9784fi 9785 9786 9787 9788 9789 9790if test -z "$lt_cv_path_MAGIC_CMD"; then 9791 if test -n "$ac_tool_prefix"; then 9792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9793printf %s "checking for file... " >&6; } 9794if test ${lt_cv_path_MAGIC_CMD+y} 9795then : 9796 printf %s "(cached) " >&6 9797else case e in #( 9798 e) case $MAGIC_CMD in 9799[\\/*] | ?:[\\/]*) 9800 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9801 ;; 9802*) 9803 lt_save_MAGIC_CMD=$MAGIC_CMD 9804 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9805 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9806 for ac_dir in $ac_dummy; do 9807 IFS=$lt_save_ifs 9808 test -z "$ac_dir" && ac_dir=. 9809 if test -f "$ac_dir/file"; then 9810 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9811 if test -n "$file_magic_test_file"; then 9812 case $deplibs_check_method in 9813 "file_magic "*) 9814 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9815 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9816 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9817 $EGREP "$file_magic_regex" > /dev/null; then 9818 : 9819 else 9820 cat <<_LT_EOF 1>&2 9821 9822*** Warning: the command libtool uses to detect shared libraries, 9823*** $file_magic_cmd, produces output that libtool cannot recognize. 9824*** The result is that libtool may fail to recognize shared libraries 9825*** as such. This will affect the creation of libtool libraries that 9826*** depend on shared libraries, but programs linked with such libtool 9827*** libraries will work regardless of this problem. Nevertheless, you 9828*** may want to report the problem to your system manager and/or to 9829*** [email protected] 9830 9831_LT_EOF 9832 fi ;; 9833 esac 9834 fi 9835 break 9836 fi 9837 done 9838 IFS=$lt_save_ifs 9839 MAGIC_CMD=$lt_save_MAGIC_CMD 9840 ;; 9841esac ;; 9842esac 9843fi 9844 9845MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9846if test -n "$MAGIC_CMD"; then 9847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9848printf "%s\n" "$MAGIC_CMD" >&6; } 9849else 9850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9851printf "%s\n" "no" >&6; } 9852fi 9853 9854 9855 else 9856 MAGIC_CMD=: 9857 fi 9858fi 9859 9860 fi 9861 ;; 9862esac 9863 9864# Use C for the default configuration in the libtool script 9865 9866lt_save_CC=$CC 9867ac_ext=c 9868ac_cpp='$CPP $CPPFLAGS' 9869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9871ac_compiler_gnu=$ac_cv_c_compiler_gnu 9872 9873 9874# Source file extension for C test sources. 9875ac_ext=c 9876 9877# Object file extension for compiled C test sources. 9878objext=o 9879objext=$objext 9880 9881# Code to be used in simple compile tests 9882lt_simple_compile_test_code="int some_variable = 0;" 9883 9884# Code to be used in simple link tests 9885lt_simple_link_test_code='int main(){return(0);}' 9886 9887 9888 9889 9890 9891 9892 9893# If no C compiler was specified, use CC. 9894LTCC=${LTCC-"$CC"} 9895 9896# If no C compiler flags were specified, use CFLAGS. 9897LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9898 9899# Allow CC to be a program name with arguments. 9900compiler=$CC 9901 9902# Save the default compiler, since it gets overwritten when the other 9903# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9904compiler_DEFAULT=$CC 9905 9906# save warnings/boilerplate of simple test code 9907ac_outfile=conftest.$ac_objext 9908echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9909eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9910_lt_compiler_boilerplate=`cat conftest.err` 9911$RM conftest* 9912 9913ac_outfile=conftest.$ac_objext 9914echo "$lt_simple_link_test_code" >conftest.$ac_ext 9915eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9916_lt_linker_boilerplate=`cat conftest.err` 9917$RM -r conftest* 9918 9919 9920## CAVEAT EMPTOR: 9921## There is no encapsulation within the following macros, do not change 9922## the running order or otherwise move them around unless you know exactly 9923## what you are doing... 9924if test -n "$compiler"; then 9925 9926lt_prog_compiler_no_builtin_flag= 9927 9928if test yes = "$GCC"; then 9929 case $cc_basename in 9930 nvcc*) 9931 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9932 *) 9933 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9934 esac 9935 9936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9937printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9938if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9939then : 9940 printf %s "(cached) " >&6 9941else case e in #( 9942 e) lt_cv_prog_compiler_rtti_exceptions=no 9943 ac_outfile=conftest.$ac_objext 9944 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9945 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9946 # Insert the option either (1) after the last *FLAGS variable, or 9947 # (2) before a word containing "conftest.", or (3) at the end. 9948 # Note that $ac_compile itself does not contain backslashes and begins 9949 # with a dollar sign (not a hyphen), so the echo should work correctly. 9950 # The option is referenced via a variable to avoid confusing sed. 9951 lt_compile=`echo "$ac_compile" | $SED \ 9952 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9953 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9954 -e 's:$: $lt_compiler_flag:'` 9955 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9956 (eval "$lt_compile" 2>conftest.err) 9957 ac_status=$? 9958 cat conftest.err >&5 9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9960 if (exit $ac_status) && test -s "$ac_outfile"; then 9961 # The compiler can only warn and ignore the option if not recognized 9962 # So say no if there are warnings other than the usual output. 9963 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9964 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9965 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9966 lt_cv_prog_compiler_rtti_exceptions=yes 9967 fi 9968 fi 9969 $RM conftest* 9970 ;; 9971esac 9972fi 9973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9974printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9975 9976if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9977 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9978else 9979 : 9980fi 9981 9982fi 9983 9984 9985 9986 9987 9988 9989 lt_prog_compiler_wl= 9990lt_prog_compiler_pic= 9991lt_prog_compiler_static= 9992 9993 9994 if test yes = "$GCC"; then 9995 lt_prog_compiler_wl='-Wl,' 9996 lt_prog_compiler_static='-static' 9997 9998 case $host_os in 9999 aix*) 10000 # All AIX code is PIC. 10001 if test ia64 = "$host_cpu"; then 10002 # AIX 5 now supports IA64 processor 10003 lt_prog_compiler_static='-Bstatic' 10004 fi 10005 lt_prog_compiler_pic='-fPIC' 10006 ;; 10007 10008 amigaos*) 10009 case $host_cpu in 10010 powerpc) 10011 # see comment about AmigaOS4 .so support 10012 lt_prog_compiler_pic='-fPIC' 10013 ;; 10014 m68k) 10015 # FIXME: we need at least 68020 code to build shared libraries, but 10016 # adding the '-m68020' flag to GCC prevents building anything better, 10017 # like '-m68040'. 10018 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10019 ;; 10020 esac 10021 ;; 10022 10023 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10024 # PIC is the default for these OSes. 10025 ;; 10026 10027 mingw* | cygwin* | pw32* | os2* | cegcc*) 10028 # This hack is so that the source file can tell whether it is being 10029 # built for inclusion in a dll (and should export symbols for example). 10030 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10031 # (--disable-auto-import) libraries 10032 lt_prog_compiler_pic='-DDLL_EXPORT' 10033 case $host_os in 10034 os2*) 10035 lt_prog_compiler_static='$wl-static' 10036 ;; 10037 esac 10038 ;; 10039 10040 darwin* | rhapsody*) 10041 # PIC is the default on this platform 10042 # Common symbols not allowed in MH_DYLIB files 10043 lt_prog_compiler_pic='-fno-common' 10044 ;; 10045 10046 haiku*) 10047 # PIC is the default for Haiku. 10048 # The "-static" flag exists, but is broken. 10049 lt_prog_compiler_static= 10050 ;; 10051 10052 hpux*) 10053 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10054 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10055 # sets the default TLS model and affects inlining. 10056 case $host_cpu in 10057 hppa*64*) 10058 # +Z the default 10059 ;; 10060 *) 10061 lt_prog_compiler_pic='-fPIC' 10062 ;; 10063 esac 10064 ;; 10065 10066 interix[3-9]*) 10067 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10068 # Instead, we relocate shared libraries at runtime. 10069 ;; 10070 10071 msdosdjgpp*) 10072 # Just because we use GCC doesn't mean we suddenly get shared libraries 10073 # on systems that don't support them. 10074 lt_prog_compiler_can_build_shared=no 10075 enable_shared=no 10076 ;; 10077 10078 *nto* | *qnx*) 10079 # QNX uses GNU C++, but need to define -shared option too, otherwise 10080 # it will coredump. 10081 lt_prog_compiler_pic='-fPIC -shared' 10082 ;; 10083 10084 sysv4*MP*) 10085 if test -d /usr/nec; then 10086 lt_prog_compiler_pic=-Kconform_pic 10087 fi 10088 ;; 10089 10090 *) 10091 lt_prog_compiler_pic='-fPIC' 10092 ;; 10093 esac 10094 10095 case $cc_basename in 10096 nvcc*) # Cuda Compiler Driver 2.2 10097 lt_prog_compiler_wl='-Xlinker ' 10098 if test -n "$lt_prog_compiler_pic"; then 10099 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 10100 fi 10101 ;; 10102 esac 10103 else 10104 # PORTME Check for flag to pass linker flags through the system compiler. 10105 case $host_os in 10106 aix*) 10107 lt_prog_compiler_wl='-Wl,' 10108 if test ia64 = "$host_cpu"; then 10109 # AIX 5 now supports IA64 processor 10110 lt_prog_compiler_static='-Bstatic' 10111 else 10112 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10113 fi 10114 ;; 10115 10116 darwin* | rhapsody*) 10117 # PIC is the default on this platform 10118 # Common symbols not allowed in MH_DYLIB files 10119 lt_prog_compiler_pic='-fno-common' 10120 case $cc_basename in 10121 nagfor*) 10122 # NAG Fortran compiler 10123 lt_prog_compiler_wl='-Wl,-Wl,,' 10124 lt_prog_compiler_pic='-PIC' 10125 lt_prog_compiler_static='-Bstatic' 10126 ;; 10127 esac 10128 ;; 10129 10130 mingw* | cygwin* | pw32* | os2* | cegcc*) 10131 # This hack is so that the source file can tell whether it is being 10132 # built for inclusion in a dll (and should export symbols for example). 10133 lt_prog_compiler_pic='-DDLL_EXPORT' 10134 case $host_os in 10135 os2*) 10136 lt_prog_compiler_static='$wl-static' 10137 ;; 10138 esac 10139 ;; 10140 10141 hpux9* | hpux10* | hpux11*) 10142 lt_prog_compiler_wl='-Wl,' 10143 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10144 # not for PA HP-UX. 10145 case $host_cpu in 10146 hppa*64*|ia64*) 10147 # +Z the default 10148 ;; 10149 *) 10150 lt_prog_compiler_pic='+Z' 10151 ;; 10152 esac 10153 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10154 lt_prog_compiler_static='$wl-a ${wl}archive' 10155 ;; 10156 10157 irix5* | irix6* | nonstopux*) 10158 lt_prog_compiler_wl='-Wl,' 10159 # PIC (with -KPIC) is the default. 10160 lt_prog_compiler_static='-non_shared' 10161 ;; 10162 10163 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10164 case $cc_basename in 10165 # old Intel for x86_64, which still supported -KPIC. 10166 ecc*) 10167 lt_prog_compiler_wl='-Wl,' 10168 lt_prog_compiler_pic='-KPIC' 10169 lt_prog_compiler_static='-static' 10170 ;; 10171 # icc used to be incompatible with GCC. 10172 # ICC 10 doesn't accept -KPIC any more. 10173 icc* | ifort*) 10174 lt_prog_compiler_wl='-Wl,' 10175 lt_prog_compiler_pic='-fPIC' 10176 lt_prog_compiler_static='-static' 10177 ;; 10178 # Lahey Fortran 8.1. 10179 lf95*) 10180 lt_prog_compiler_wl='-Wl,' 10181 lt_prog_compiler_pic='--shared' 10182 lt_prog_compiler_static='--static' 10183 ;; 10184 nagfor*) 10185 # NAG Fortran compiler 10186 lt_prog_compiler_wl='-Wl,-Wl,,' 10187 lt_prog_compiler_pic='-PIC' 10188 lt_prog_compiler_static='-Bstatic' 10189 ;; 10190 tcc*) 10191 # Fabrice Bellard et al's Tiny C Compiler 10192 lt_prog_compiler_wl='-Wl,' 10193 lt_prog_compiler_pic='-fPIC' 10194 lt_prog_compiler_static='-static' 10195 ;; 10196 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10197 # Portland Group compilers (*not* the Pentium gcc compiler, 10198 # which looks to be a dead project) 10199 lt_prog_compiler_wl='-Wl,' 10200 lt_prog_compiler_pic='-fpic' 10201 lt_prog_compiler_static='-Bstatic' 10202 ;; 10203 ccc*) 10204 lt_prog_compiler_wl='-Wl,' 10205 # All Alpha code is PIC. 10206 lt_prog_compiler_static='-non_shared' 10207 ;; 10208 xl* | bgxl* | bgf* | mpixl*) 10209 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10210 lt_prog_compiler_wl='-Wl,' 10211 lt_prog_compiler_pic='-qpic' 10212 lt_prog_compiler_static='-qstaticlink' 10213 ;; 10214 *) 10215 case `$CC -V 2>&1 | $SED 5q` in 10216 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10217 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10218 lt_prog_compiler_pic='-KPIC' 10219 lt_prog_compiler_static='-Bstatic' 10220 lt_prog_compiler_wl='' 10221 ;; 10222 *Sun\ F* | *Sun*Fortran*) 10223 lt_prog_compiler_pic='-KPIC' 10224 lt_prog_compiler_static='-Bstatic' 10225 lt_prog_compiler_wl='-Qoption ld ' 10226 ;; 10227 *Sun\ C*) 10228 # Sun C 5.9 10229 lt_prog_compiler_pic='-KPIC' 10230 lt_prog_compiler_static='-Bstatic' 10231 lt_prog_compiler_wl='-Wl,' 10232 ;; 10233 *Intel*\ [CF]*Compiler*) 10234 lt_prog_compiler_wl='-Wl,' 10235 lt_prog_compiler_pic='-fPIC' 10236 lt_prog_compiler_static='-static' 10237 ;; 10238 *Portland\ Group*) 10239 lt_prog_compiler_wl='-Wl,' 10240 lt_prog_compiler_pic='-fpic' 10241 lt_prog_compiler_static='-Bstatic' 10242 ;; 10243 esac 10244 ;; 10245 esac 10246 ;; 10247 10248 newsos6) 10249 lt_prog_compiler_pic='-KPIC' 10250 lt_prog_compiler_static='-Bstatic' 10251 ;; 10252 10253 *nto* | *qnx*) 10254 # QNX uses GNU C++, but need to define -shared option too, otherwise 10255 # it will coredump. 10256 lt_prog_compiler_pic='-fPIC -shared' 10257 ;; 10258 10259 osf3* | osf4* | osf5*) 10260 lt_prog_compiler_wl='-Wl,' 10261 # All OSF/1 code is PIC. 10262 lt_prog_compiler_static='-non_shared' 10263 ;; 10264 10265 rdos*) 10266 lt_prog_compiler_static='-non_shared' 10267 ;; 10268 10269 solaris*) 10270 lt_prog_compiler_pic='-KPIC' 10271 lt_prog_compiler_static='-Bstatic' 10272 case $cc_basename in 10273 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10274 lt_prog_compiler_wl='-Qoption ld ';; 10275 *) 10276 lt_prog_compiler_wl='-Wl,';; 10277 esac 10278 ;; 10279 10280 sunos4*) 10281 lt_prog_compiler_wl='-Qoption ld ' 10282 lt_prog_compiler_pic='-PIC' 10283 lt_prog_compiler_static='-Bstatic' 10284 ;; 10285 10286 sysv4 | sysv4.2uw2* | sysv4.3*) 10287 lt_prog_compiler_wl='-Wl,' 10288 lt_prog_compiler_pic='-KPIC' 10289 lt_prog_compiler_static='-Bstatic' 10290 ;; 10291 10292 sysv4*MP*) 10293 if test -d /usr/nec; then 10294 lt_prog_compiler_pic='-Kconform_pic' 10295 lt_prog_compiler_static='-Bstatic' 10296 fi 10297 ;; 10298 10299 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10300 lt_prog_compiler_wl='-Wl,' 10301 lt_prog_compiler_pic='-KPIC' 10302 lt_prog_compiler_static='-Bstatic' 10303 ;; 10304 10305 unicos*) 10306 lt_prog_compiler_wl='-Wl,' 10307 lt_prog_compiler_can_build_shared=no 10308 ;; 10309 10310 uts4*) 10311 lt_prog_compiler_pic='-pic' 10312 lt_prog_compiler_static='-Bstatic' 10313 ;; 10314 10315 *) 10316 lt_prog_compiler_can_build_shared=no 10317 ;; 10318 esac 10319 fi 10320 10321case $host_os in 10322 # For platforms that do not support PIC, -DPIC is meaningless: 10323 *djgpp*) 10324 lt_prog_compiler_pic= 10325 ;; 10326 *) 10327 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10328 ;; 10329esac 10330 10331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10332printf %s "checking for $compiler option to produce PIC... " >&6; } 10333if test ${lt_cv_prog_compiler_pic+y} 10334then : 10335 printf %s "(cached) " >&6 10336else case e in #( 10337 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 10338esac 10339fi 10340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10341printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 10342lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10343 10344# 10345# Check to make sure the PIC flag actually works. 10346# 10347if test -n "$lt_prog_compiler_pic"; then 10348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10349printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10350if test ${lt_cv_prog_compiler_pic_works+y} 10351then : 10352 printf %s "(cached) " >&6 10353else case e in #( 10354 e) lt_cv_prog_compiler_pic_works=no 10355 ac_outfile=conftest.$ac_objext 10356 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10357 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 10358 # Insert the option either (1) after the last *FLAGS variable, or 10359 # (2) before a word containing "conftest.", or (3) at the end. 10360 # Note that $ac_compile itself does not contain backslashes and begins 10361 # with a dollar sign (not a hyphen), so the echo should work correctly. 10362 # The option is referenced via a variable to avoid confusing sed. 10363 lt_compile=`echo "$ac_compile" | $SED \ 10364 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10365 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10366 -e 's:$: $lt_compiler_flag:'` 10367 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10368 (eval "$lt_compile" 2>conftest.err) 10369 ac_status=$? 10370 cat conftest.err >&5 10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10372 if (exit $ac_status) && test -s "$ac_outfile"; then 10373 # The compiler can only warn and ignore the option if not recognized 10374 # So say no if there are warnings other than the usual output. 10375 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10376 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10377 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10378 lt_cv_prog_compiler_pic_works=yes 10379 fi 10380 fi 10381 $RM conftest* 10382 ;; 10383esac 10384fi 10385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10386printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 10387 10388if test yes = "$lt_cv_prog_compiler_pic_works"; then 10389 case $lt_prog_compiler_pic in 10390 "" | " "*) ;; 10391 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10392 esac 10393else 10394 lt_prog_compiler_pic= 10395 lt_prog_compiler_can_build_shared=no 10396fi 10397 10398fi 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410# 10411# Check to make sure the static flag actually works. 10412# 10413wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10415printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10416if test ${lt_cv_prog_compiler_static_works+y} 10417then : 10418 printf %s "(cached) " >&6 10419else case e in #( 10420 e) lt_cv_prog_compiler_static_works=no 10421 save_LDFLAGS=$LDFLAGS 10422 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10423 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10424 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10425 # The linker can only warn and ignore the option if not recognized 10426 # So say no if there are warnings 10427 if test -s conftest.err; then 10428 # Append any errors to the config.log. 10429 cat conftest.err 1>&5 10430 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10431 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10432 if diff conftest.exp conftest.er2 >/dev/null; then 10433 lt_cv_prog_compiler_static_works=yes 10434 fi 10435 else 10436 lt_cv_prog_compiler_static_works=yes 10437 fi 10438 fi 10439 $RM -r conftest* 10440 LDFLAGS=$save_LDFLAGS 10441 ;; 10442esac 10443fi 10444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10445printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 10446 10447if test yes = "$lt_cv_prog_compiler_static_works"; then 10448 : 10449else 10450 lt_prog_compiler_static= 10451fi 10452 10453 10454 10455 10456 10457 10458 10459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10460printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10461if test ${lt_cv_prog_compiler_c_o+y} 10462then : 10463 printf %s "(cached) " >&6 10464else case e in #( 10465 e) lt_cv_prog_compiler_c_o=no 10466 $RM -r conftest 2>/dev/null 10467 mkdir conftest 10468 cd conftest 10469 mkdir out 10470 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10471 10472 lt_compiler_flag="-o out/conftest2.$ac_objext" 10473 # Insert the option either (1) after the last *FLAGS variable, or 10474 # (2) before a word containing "conftest.", or (3) at the end. 10475 # Note that $ac_compile itself does not contain backslashes and begins 10476 # with a dollar sign (not a hyphen), so the echo should work correctly. 10477 lt_compile=`echo "$ac_compile" | $SED \ 10478 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10479 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10480 -e 's:$: $lt_compiler_flag:'` 10481 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10482 (eval "$lt_compile" 2>out/conftest.err) 10483 ac_status=$? 10484 cat out/conftest.err >&5 10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10486 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10487 then 10488 # The compiler can only warn and ignore the option if not recognized 10489 # So say no if there are warnings 10490 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10491 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10492 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10493 lt_cv_prog_compiler_c_o=yes 10494 fi 10495 fi 10496 chmod u+w . 2>&5 10497 $RM conftest* 10498 # SGI C++ compiler will create directory out/ii_files/ for 10499 # template instantiation 10500 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10501 $RM out/* && rmdir out 10502 cd .. 10503 $RM -r conftest 10504 $RM conftest* 10505 ;; 10506esac 10507fi 10508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10509printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10510 10511 10512 10513 10514 10515 10516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10517printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10518if test ${lt_cv_prog_compiler_c_o+y} 10519then : 10520 printf %s "(cached) " >&6 10521else case e in #( 10522 e) lt_cv_prog_compiler_c_o=no 10523 $RM -r conftest 2>/dev/null 10524 mkdir conftest 10525 cd conftest 10526 mkdir out 10527 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10528 10529 lt_compiler_flag="-o out/conftest2.$ac_objext" 10530 # Insert the option either (1) after the last *FLAGS variable, or 10531 # (2) before a word containing "conftest.", or (3) at the end. 10532 # Note that $ac_compile itself does not contain backslashes and begins 10533 # with a dollar sign (not a hyphen), so the echo should work correctly. 10534 lt_compile=`echo "$ac_compile" | $SED \ 10535 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10536 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10537 -e 's:$: $lt_compiler_flag:'` 10538 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10539 (eval "$lt_compile" 2>out/conftest.err) 10540 ac_status=$? 10541 cat out/conftest.err >&5 10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10543 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10544 then 10545 # The compiler can only warn and ignore the option if not recognized 10546 # So say no if there are warnings 10547 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10548 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10549 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10550 lt_cv_prog_compiler_c_o=yes 10551 fi 10552 fi 10553 chmod u+w . 2>&5 10554 $RM conftest* 10555 # SGI C++ compiler will create directory out/ii_files/ for 10556 # template instantiation 10557 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10558 $RM out/* && rmdir out 10559 cd .. 10560 $RM -r conftest 10561 $RM conftest* 10562 ;; 10563esac 10564fi 10565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10566printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10567 10568 10569 10570 10571hard_links=nottested 10572if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10573 # do not overwrite the value of need_locks provided by the user 10574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10575printf %s "checking if we can lock with hard links... " >&6; } 10576 hard_links=yes 10577 $RM conftest* 10578 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10579 touch conftest.a 10580 ln conftest.a conftest.b 2>&5 || hard_links=no 10581 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10583printf "%s\n" "$hard_links" >&6; } 10584 if test no = "$hard_links"; then 10585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10586printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10587 need_locks=warn 10588 fi 10589else 10590 need_locks=no 10591fi 10592 10593 10594 10595 10596 10597 10598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10599printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10600 10601 runpath_var= 10602 allow_undefined_flag= 10603 always_export_symbols=no 10604 archive_cmds= 10605 archive_expsym_cmds= 10606 compiler_needs_object=no 10607 enable_shared_with_static_runtimes=no 10608 export_dynamic_flag_spec= 10609 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10610 hardcode_automatic=no 10611 hardcode_direct=no 10612 hardcode_direct_absolute=no 10613 hardcode_libdir_flag_spec= 10614 hardcode_libdir_separator= 10615 hardcode_minus_L=no 10616 hardcode_shlibpath_var=unsupported 10617 inherit_rpath=no 10618 link_all_deplibs=unknown 10619 module_cmds= 10620 module_expsym_cmds= 10621 old_archive_from_new_cmds= 10622 old_archive_from_expsyms_cmds= 10623 thread_safe_flag_spec= 10624 whole_archive_flag_spec= 10625 # include_expsyms should be a list of space-separated symbols to be *always* 10626 # included in the symbol list 10627 include_expsyms= 10628 # exclude_expsyms can be an extended regexp of symbols to exclude 10629 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10630 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10631 # as well as any symbol that contains 'd'. 10632 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10633 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10634 # platforms (ab)use it in PIC code, but their linkers get confused if 10635 # the symbol is explicitly referenced. Since portable code cannot 10636 # rely on this symbol name, it's probably fine to never include it in 10637 # preloaded symbol tables. 10638 # Exclude shared library initialization/finalization symbols. 10639 extract_expsyms_cmds= 10640 10641 case $host_os in 10642 cygwin* | mingw* | pw32* | cegcc*) 10643 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 10644 # When not using gcc, we currently assume that we are using 10645 # Microsoft Visual C++ or Intel C++ Compiler. 10646 if test yes != "$GCC"; then 10647 with_gnu_ld=no 10648 fi 10649 ;; 10650 interix*) 10651 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 10652 with_gnu_ld=yes 10653 ;; 10654 openbsd* | bitrig*) 10655 with_gnu_ld=no 10656 ;; 10657 esac 10658 10659 ld_shlibs=yes 10660 10661 # On some targets, GNU ld is compatible enough with the native linker 10662 # that we're better off using the native interface for both. 10663 lt_use_gnu_ld_interface=no 10664 if test yes = "$with_gnu_ld"; then 10665 case $host_os in 10666 aix*) 10667 # The AIX port of GNU ld has always aspired to compatibility 10668 # with the native linker. However, as the warning in the GNU ld 10669 # block says, versions before 2.19.5* couldn't really create working 10670 # shared libraries, regardless of the interface used. 10671 case `$LD -v 2>&1` in 10672 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10673 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10674 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10675 *) 10676 lt_use_gnu_ld_interface=yes 10677 ;; 10678 esac 10679 ;; 10680 *) 10681 lt_use_gnu_ld_interface=yes 10682 ;; 10683 esac 10684 fi 10685 10686 if test yes = "$lt_use_gnu_ld_interface"; then 10687 # If archive_cmds runs LD, not CC, wlarc should be empty 10688 wlarc='$wl' 10689 10690 # Set some defaults for GNU ld with shared library support. These 10691 # are reset later if shared libraries are not supported. Putting them 10692 # here allows them to be overridden if necessary. 10693 runpath_var=LD_RUN_PATH 10694 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10695 export_dynamic_flag_spec='$wl--export-dynamic' 10696 # ancient GNU ld didn't support --whole-archive et. al. 10697 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10698 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10699 else 10700 whole_archive_flag_spec= 10701 fi 10702 supports_anon_versioning=no 10703 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 10704 *GNU\ gold*) supports_anon_versioning=yes ;; 10705 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10706 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10707 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10708 *\ 2.11.*) ;; # other 2.11 versions 10709 *) supports_anon_versioning=yes ;; 10710 esac 10711 10712 # See if GNU ld supports shared libraries. 10713 case $host_os in 10714 aix[3-9]*) 10715 # On AIX/PPC, the GNU linker is very broken 10716 if test ia64 != "$host_cpu"; then 10717 ld_shlibs=no 10718 cat <<_LT_EOF 1>&2 10719 10720*** Warning: the GNU linker, at least up to release 2.19, is reported 10721*** to be unable to reliably create shared libraries on AIX. 10722*** Therefore, libtool is disabling shared libraries support. If you 10723*** really care for shared libraries, you may want to install binutils 10724*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10725*** You will then need to restart the configuration process. 10726 10727_LT_EOF 10728 fi 10729 ;; 10730 10731 amigaos*) 10732 case $host_cpu in 10733 powerpc) 10734 # see comment about AmigaOS4 .so support 10735 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10736 archive_expsym_cmds='' 10737 ;; 10738 m68k) 10739 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)' 10740 hardcode_libdir_flag_spec='-L$libdir' 10741 hardcode_minus_L=yes 10742 ;; 10743 esac 10744 ;; 10745 10746 beos*) 10747 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10748 allow_undefined_flag=unsupported 10749 # Joseph Beckenbach <[email protected]> says some releases of gcc 10750 # support --undefined. This deserves some investigation. FIXME 10751 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10752 else 10753 ld_shlibs=no 10754 fi 10755 ;; 10756 10757 cygwin* | mingw* | pw32* | cegcc*) 10758 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10759 # as there is no search path for DLLs. 10760 hardcode_libdir_flag_spec='-L$libdir' 10761 export_dynamic_flag_spec='$wl--export-all-symbols' 10762 allow_undefined_flag=unsupported 10763 always_export_symbols=no 10764 enable_shared_with_static_runtimes=yes 10765 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' 10766 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10767 10768 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10769 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10770 # If the export-symbols file already is a .def file, use it as 10771 # is; otherwise, prepend EXPORTS... 10772 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10773 cp $export_symbols $output_objdir/$soname.def; 10774 else 10775 echo EXPORTS > $output_objdir/$soname.def; 10776 cat $export_symbols >> $output_objdir/$soname.def; 10777 fi~ 10778 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10779 else 10780 ld_shlibs=no 10781 fi 10782 ;; 10783 10784 haiku*) 10785 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10786 link_all_deplibs=yes 10787 ;; 10788 10789 os2*) 10790 hardcode_libdir_flag_spec='-L$libdir' 10791 hardcode_minus_L=yes 10792 allow_undefined_flag=unsupported 10793 shrext_cmds=.dll 10794 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10795 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10796 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10797 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10798 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10799 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10800 emximp -o $lib $output_objdir/$libname.def' 10801 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10802 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10803 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10804 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10805 prefix_cmds="$SED"~ 10806 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10807 prefix_cmds="$prefix_cmds -e 1d"; 10808 fi~ 10809 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10810 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10811 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10812 emximp -o $lib $output_objdir/$libname.def' 10813 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10814 enable_shared_with_static_runtimes=yes 10815 file_list_spec='@' 10816 ;; 10817 10818 interix[3-9]*) 10819 hardcode_direct=no 10820 hardcode_shlibpath_var=no 10821 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10822 export_dynamic_flag_spec='$wl-E' 10823 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10824 # Instead, shared libraries are loaded at an image base (0x10000000 by 10825 # default) and relocated if they conflict, which is a slow very memory 10826 # consuming and fragmenting process. To avoid this, we pick a random, 10827 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10828 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10829 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10830 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' 10831 ;; 10832 10833 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10834 tmp_diet=no 10835 if test linux-dietlibc = "$host_os"; then 10836 case $cc_basename in 10837 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10838 esac 10839 fi 10840 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10841 && test no = "$tmp_diet" 10842 then 10843 tmp_addflag=' $pic_flag' 10844 tmp_sharedflag='-shared' 10845 case $cc_basename,$host_cpu in 10846 pgcc*) # Portland Group C compiler 10847 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' 10848 tmp_addflag=' $pic_flag' 10849 ;; 10850 pgf77* | pgf90* | pgf95* | pgfortran*) 10851 # Portland Group f77 and f90 compilers 10852 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' 10853 tmp_addflag=' $pic_flag -Mnomain' ;; 10854 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10855 tmp_addflag=' -i_dynamic' ;; 10856 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10857 tmp_addflag=' -i_dynamic -nofor_main' ;; 10858 ifc* | ifort*) # Intel Fortran compiler 10859 tmp_addflag=' -nofor_main' ;; 10860 lf95*) # Lahey Fortran 8.1 10861 whole_archive_flag_spec= 10862 tmp_sharedflag='--shared' ;; 10863 nagfor*) # NAGFOR 5.3 10864 tmp_sharedflag='-Wl,-shared' ;; 10865 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10866 tmp_sharedflag='-qmkshrobj' 10867 tmp_addflag= ;; 10868 nvcc*) # Cuda Compiler Driver 2.2 10869 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' 10870 compiler_needs_object=yes 10871 ;; 10872 esac 10873 case `$CC -V 2>&1 | $SED 5q` in 10874 *Sun\ C*) # Sun C 5.9 10875 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' 10876 compiler_needs_object=yes 10877 tmp_sharedflag='-G' ;; 10878 *Sun\ F*) # Sun Fortran 8.3 10879 tmp_sharedflag='-G' ;; 10880 esac 10881 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10882 10883 if test yes = "$supports_anon_versioning"; then 10884 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10885 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10886 echo "local: *; };" >> $output_objdir/$libname.ver~ 10887 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10888 fi 10889 10890 case $cc_basename in 10891 tcc*) 10892 export_dynamic_flag_spec='-rdynamic' 10893 ;; 10894 xlf* | bgf* | bgxlf* | mpixlf*) 10895 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10896 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10897 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10898 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10899 if test yes = "$supports_anon_versioning"; then 10900 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10901 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10902 echo "local: *; };" >> $output_objdir/$libname.ver~ 10903 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10904 fi 10905 ;; 10906 esac 10907 else 10908 ld_shlibs=no 10909 fi 10910 ;; 10911 10912 netbsd*) 10913 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10914 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10915 wlarc= 10916 else 10917 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10918 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10919 fi 10920 ;; 10921 10922 solaris*) 10923 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10924 ld_shlibs=no 10925 cat <<_LT_EOF 1>&2 10926 10927*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10928*** create shared libraries on Solaris systems. Therefore, libtool 10929*** is disabling shared libraries support. We urge you to upgrade GNU 10930*** binutils to release 2.9.1 or newer. Another option is to modify 10931*** your PATH or compiler configuration so that the native linker is 10932*** used, and then restart. 10933 10934_LT_EOF 10935 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10936 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10937 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10938 else 10939 ld_shlibs=no 10940 fi 10941 ;; 10942 10943 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10944 case `$LD -v 2>&1` in 10945 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10946 ld_shlibs=no 10947 cat <<_LT_EOF 1>&2 10948 10949*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10950*** reliably create shared libraries on SCO systems. Therefore, libtool 10951*** is disabling shared libraries support. We urge you to upgrade GNU 10952*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10953*** your PATH or compiler configuration so that the native linker is 10954*** used, and then restart. 10955 10956_LT_EOF 10957 ;; 10958 *) 10959 # For security reasons, it is highly recommended that you always 10960 # use absolute paths for naming shared libraries, and exclude the 10961 # DT_RUNPATH tag from executables and libraries. But doing so 10962 # requires that you compile everything twice, which is a pain. 10963 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10964 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10965 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10966 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10967 else 10968 ld_shlibs=no 10969 fi 10970 ;; 10971 esac 10972 ;; 10973 10974 sunos4*) 10975 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10976 wlarc= 10977 hardcode_direct=yes 10978 hardcode_shlibpath_var=no 10979 ;; 10980 10981 *) 10982 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10983 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10984 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10985 else 10986 ld_shlibs=no 10987 fi 10988 ;; 10989 esac 10990 10991 if test no = "$ld_shlibs"; then 10992 runpath_var= 10993 hardcode_libdir_flag_spec= 10994 export_dynamic_flag_spec= 10995 whole_archive_flag_spec= 10996 fi 10997 else 10998 # PORTME fill in a description of your system's linker (not GNU ld) 10999 case $host_os in 11000 aix3*) 11001 allow_undefined_flag=unsupported 11002 always_export_symbols=yes 11003 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' 11004 # Note: this linker hardcodes the directories in LIBPATH if there 11005 # are no directories specified by -L. 11006 hardcode_minus_L=yes 11007 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 11008 # Neither direct hardcoding nor static linking is supported with a 11009 # broken collect2. 11010 hardcode_direct=unsupported 11011 fi 11012 ;; 11013 11014 aix[4-9]*) 11015 if test ia64 = "$host_cpu"; then 11016 # On IA64, the linker does run time linking by default, so we don't 11017 # have to do anything special. 11018 aix_use_runtimelinking=no 11019 exp_sym_flag='-Bexport' 11020 no_entry_flag= 11021 else 11022 # If we're using GNU nm, then we don't want the "-C" option. 11023 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 11024 # Without the "-l" option, or with the "-B" option, AIX nm treats 11025 # weak defined symbols like other global defined symbols, whereas 11026 # GNU nm marks them as "W". 11027 # While the 'weak' keyword is ignored in the Export File, we need 11028 # it in the Import File for the 'aix-soname' feature, so we have 11029 # to replace the "-B" option with "-P" for AIX nm. 11030 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11031 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' 11032 else 11033 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 == "L") || (\$ 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' 11034 fi 11035 aix_use_runtimelinking=no 11036 11037 # Test if we are trying to use run time linking or normal 11038 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11039 # have runtime linking enabled, and use it for executables. 11040 # For shared libraries, we enable/disable runtime linking 11041 # depending on the kind of the shared library created - 11042 # when "with_aix_soname,aix_use_runtimelinking" is: 11043 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 11044 # "aix,yes" lib.so shared, rtl:yes, for executables 11045 # lib.a static archive 11046 # "both,no" lib.so.V(shr.o) shared, rtl:yes 11047 # lib.a(lib.so.V) shared, rtl:no, for executables 11048 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 11049 # lib.a(lib.so.V) shared, rtl:no 11050 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 11051 # lib.a static archive 11052 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11053 for ld_flag in $LDFLAGS; do 11054 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 11055 aix_use_runtimelinking=yes 11056 break 11057 fi 11058 done 11059 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 11060 # With aix-soname=svr4, we create the lib.so.V shared archives only, 11061 # so we don't have lib.a shared libs to link our executables. 11062 # We have to force runtime linking in this case. 11063 aix_use_runtimelinking=yes 11064 LDFLAGS="$LDFLAGS -Wl,-brtl" 11065 fi 11066 ;; 11067 esac 11068 11069 exp_sym_flag='-bexport' 11070 no_entry_flag='-bnoentry' 11071 fi 11072 11073 # When large executables or shared objects are built, AIX ld can 11074 # have problems creating the table of contents. If linking a library 11075 # or program results in "error TOC overflow" add -mminimal-toc to 11076 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11077 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11078 11079 archive_cmds='' 11080 hardcode_direct=yes 11081 hardcode_direct_absolute=yes 11082 hardcode_libdir_separator=':' 11083 link_all_deplibs=yes 11084 file_list_spec='$wl-f,' 11085 case $with_aix_soname,$aix_use_runtimelinking in 11086 aix,*) ;; # traditional, no import file 11087 svr4,* | *,yes) # use import file 11088 # The Import File defines what to hardcode. 11089 hardcode_direct=no 11090 hardcode_direct_absolute=no 11091 ;; 11092 esac 11093 11094 if test yes = "$GCC"; then 11095 case $host_os in aix4.[012]|aix4.[012].*) 11096 # We only want to do this on AIX 4.2 and lower, the check 11097 # below for broken collect2 doesn't work under 4.3+ 11098 collect2name=`$CC -print-prog-name=collect2` 11099 if test -f "$collect2name" && 11100 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11101 then 11102 # We have reworked collect2 11103 : 11104 else 11105 # We have old collect2 11106 hardcode_direct=unsupported 11107 # It fails to find uninstalled libraries when the uninstalled 11108 # path is not listed in the libpath. Setting hardcode_minus_L 11109 # to unsupported forces relinking 11110 hardcode_minus_L=yes 11111 hardcode_libdir_flag_spec='-L$libdir' 11112 hardcode_libdir_separator= 11113 fi 11114 ;; 11115 esac 11116 shared_flag='-shared' 11117 if test yes = "$aix_use_runtimelinking"; then 11118 shared_flag="$shared_flag "'$wl-G' 11119 fi 11120 # Need to ensure runtime linking is disabled for the traditional 11121 # shared library, or the linker may eventually find shared libraries 11122 # /with/ Import File - we do not want to mix them. 11123 shared_flag_aix='-shared' 11124 shared_flag_svr4='-shared $wl-G' 11125 else 11126 # not using gcc 11127 if test ia64 = "$host_cpu"; then 11128 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11129 # chokes on -Wl,-G. The following line is correct: 11130 shared_flag='-G' 11131 else 11132 if test yes = "$aix_use_runtimelinking"; then 11133 shared_flag='$wl-G' 11134 else 11135 shared_flag='$wl-bM:SRE' 11136 fi 11137 shared_flag_aix='$wl-bM:SRE' 11138 shared_flag_svr4='$wl-G' 11139 fi 11140 fi 11141 11142 export_dynamic_flag_spec='$wl-bexpall' 11143 # It seems that -bexpall does not export symbols beginning with 11144 # underscore (_), so it is better to generate a list of symbols to export. 11145 always_export_symbols=yes 11146 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 11147 # Warning - without using the other runtime loading flags (-brtl), 11148 # -berok will link without error, but may produce a broken library. 11149 allow_undefined_flag='-berok' 11150 # Determine the default libpath from the value encoded in an 11151 # empty executable. 11152 if test set = "${lt_cv_aix_libpath+set}"; then 11153 aix_libpath=$lt_cv_aix_libpath 11154else 11155 if test ${lt_cv_aix_libpath_+y} 11156then : 11157 printf %s "(cached) " >&6 11158else case e in #( 11159 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11160/* end confdefs.h. */ 11161 11162int 11163main (void) 11164{ 11165 11166 ; 11167 return 0; 11168} 11169_ACEOF 11170if ac_fn_c_try_link "$LINENO" 11171then : 11172 11173 lt_aix_libpath_sed=' 11174 /Import File Strings/,/^$/ { 11175 /^0/ { 11176 s/^0 *\([^ ]*\) *$/\1/ 11177 p 11178 } 11179 }' 11180 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11181 # Check for a 64-bit object if we didn't find anything. 11182 if test -z "$lt_cv_aix_libpath_"; then 11183 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11184 fi 11185fi 11186rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11187 conftest$ac_exeext conftest.$ac_ext 11188 if test -z "$lt_cv_aix_libpath_"; then 11189 lt_cv_aix_libpath_=/usr/lib:/lib 11190 fi 11191 ;; 11192esac 11193fi 11194 11195 aix_libpath=$lt_cv_aix_libpath_ 11196fi 11197 11198 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11199 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 11200 else 11201 if test ia64 = "$host_cpu"; then 11202 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 11203 allow_undefined_flag="-z nodefs" 11204 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" 11205 else 11206 # Determine the default libpath from the value encoded in an 11207 # empty executable. 11208 if test set = "${lt_cv_aix_libpath+set}"; then 11209 aix_libpath=$lt_cv_aix_libpath 11210else 11211 if test ${lt_cv_aix_libpath_+y} 11212then : 11213 printf %s "(cached) " >&6 11214else case e in #( 11215 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11216/* end confdefs.h. */ 11217 11218int 11219main (void) 11220{ 11221 11222 ; 11223 return 0; 11224} 11225_ACEOF 11226if ac_fn_c_try_link "$LINENO" 11227then : 11228 11229 lt_aix_libpath_sed=' 11230 /Import File Strings/,/^$/ { 11231 /^0/ { 11232 s/^0 *\([^ ]*\) *$/\1/ 11233 p 11234 } 11235 }' 11236 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11237 # Check for a 64-bit object if we didn't find anything. 11238 if test -z "$lt_cv_aix_libpath_"; then 11239 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11240 fi 11241fi 11242rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11243 conftest$ac_exeext conftest.$ac_ext 11244 if test -z "$lt_cv_aix_libpath_"; then 11245 lt_cv_aix_libpath_=/usr/lib:/lib 11246 fi 11247 ;; 11248esac 11249fi 11250 11251 aix_libpath=$lt_cv_aix_libpath_ 11252fi 11253 11254 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11255 # Warning - without using the other run time loading flags, 11256 # -berok will link without error, but may produce a broken library. 11257 no_undefined_flag=' $wl-bernotok' 11258 allow_undefined_flag=' $wl-berok' 11259 if test yes = "$with_gnu_ld"; then 11260 # We only use this code for GNU lds that support --whole-archive. 11261 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 11262 else 11263 # Exported symbols can be pulled into shared objects from archives 11264 whole_archive_flag_spec='$convenience' 11265 fi 11266 archive_cmds_need_lc=yes 11267 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 11268 # -brtl affects multiple linker settings, -berok does not and is overridden later 11269 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 11270 if test svr4 != "$with_aix_soname"; then 11271 # This is similar to how AIX traditionally builds its shared libraries. 11272 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' 11273 fi 11274 if test aix != "$with_aix_soname"; then 11275 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' 11276 else 11277 # used by -dlpreopen to get the symbols 11278 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 11279 fi 11280 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 11281 fi 11282 fi 11283 ;; 11284 11285 amigaos*) 11286 case $host_cpu in 11287 powerpc) 11288 # see comment about AmigaOS4 .so support 11289 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11290 archive_expsym_cmds='' 11291 ;; 11292 m68k) 11293 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)' 11294 hardcode_libdir_flag_spec='-L$libdir' 11295 hardcode_minus_L=yes 11296 ;; 11297 esac 11298 ;; 11299 11300 bsdi[45]*) 11301 export_dynamic_flag_spec=-rdynamic 11302 ;; 11303 11304 cygwin* | mingw* | pw32* | cegcc*) 11305 # When not using gcc, we currently assume that we are using 11306 # Microsoft Visual C++ or Intel C++ Compiler. 11307 # hardcode_libdir_flag_spec is actually meaningless, as there is 11308 # no search path for DLLs. 11309 case $cc_basename in 11310 cl* | icl*) 11311 # Native MSVC or ICC 11312 hardcode_libdir_flag_spec=' ' 11313 allow_undefined_flag=unsupported 11314 always_export_symbols=yes 11315 file_list_spec='@' 11316 # Tell ltmain to make .lib files, not .a files. 11317 libext=lib 11318 # Tell ltmain to make .dll files, not .so files. 11319 shrext_cmds=.dll 11320 # FIXME: Setting linknames here is a bad hack. 11321 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 11322 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11323 cp "$export_symbols" "$output_objdir/$soname.def"; 11324 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 11325 else 11326 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 11327 fi~ 11328 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11329 linknames=' 11330 # The linker will not automatically build a static lib if we build a DLL. 11331 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11332 enable_shared_with_static_runtimes=yes 11333 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11334 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11335 # Don't use ranlib 11336 old_postinstall_cmds='chmod 644 $oldlib' 11337 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11338 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11339 case $lt_outputfile in 11340 *.exe|*.EXE) ;; 11341 *) 11342 lt_outputfile=$lt_outputfile.exe 11343 lt_tool_outputfile=$lt_tool_outputfile.exe 11344 ;; 11345 esac~ 11346 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 11347 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11348 $RM "$lt_outputfile.manifest"; 11349 fi' 11350 ;; 11351 *) 11352 # Assume MSVC and ICC wrapper 11353 hardcode_libdir_flag_spec=' ' 11354 allow_undefined_flag=unsupported 11355 # Tell ltmain to make .lib files, not .a files. 11356 libext=lib 11357 # Tell ltmain to make .dll files, not .so files. 11358 shrext_cmds=.dll 11359 # FIXME: Setting linknames here is a bad hack. 11360 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11361 # The linker will automatically build a .lib file if we build a DLL. 11362 old_archive_from_new_cmds='true' 11363 # FIXME: Should let the user specify the lib program. 11364 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11365 enable_shared_with_static_runtimes=yes 11366 ;; 11367 esac 11368 ;; 11369 11370 darwin* | rhapsody*) 11371 11372 11373 archive_cmds_need_lc=no 11374 hardcode_direct=no 11375 hardcode_automatic=yes 11376 hardcode_shlibpath_var=unsupported 11377 if test yes = "$lt_cv_ld_force_load"; then 11378 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\"`' 11379 11380 else 11381 whole_archive_flag_spec='' 11382 fi 11383 link_all_deplibs=yes 11384 allow_undefined_flag=$_lt_dar_allow_undefined 11385 case $cc_basename in 11386 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11387 *) _lt_dar_can_shared=$GCC ;; 11388 esac 11389 if test yes = "$_lt_dar_can_shared"; then 11390 output_verbose_link_cmd=func_echo_all 11391 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11392 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11393 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" 11394 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" 11395 11396 else 11397 ld_shlibs=no 11398 fi 11399 11400 ;; 11401 11402 dgux*) 11403 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11404 hardcode_libdir_flag_spec='-L$libdir' 11405 hardcode_shlibpath_var=no 11406 ;; 11407 11408 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11409 # support. Future versions do this automatically, but an explicit c++rt0.o 11410 # does not break anything, and helps significantly (at the cost of a little 11411 # extra space). 11412 freebsd2.2*) 11413 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11414 hardcode_libdir_flag_spec='-R$libdir' 11415 hardcode_direct=yes 11416 hardcode_shlibpath_var=no 11417 ;; 11418 11419 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11420 freebsd2.*) 11421 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11422 hardcode_direct=yes 11423 hardcode_minus_L=yes 11424 hardcode_shlibpath_var=no 11425 ;; 11426 11427 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11428 freebsd* | dragonfly* | midnightbsd*) 11429 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11430 hardcode_libdir_flag_spec='-R$libdir' 11431 hardcode_direct=yes 11432 hardcode_shlibpath_var=no 11433 ;; 11434 11435 hpux9*) 11436 if test yes = "$GCC"; then 11437 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' 11438 else 11439 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' 11440 fi 11441 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11442 hardcode_libdir_separator=: 11443 hardcode_direct=yes 11444 11445 # hardcode_minus_L: Not really in the search PATH, 11446 # but as the default location of the library. 11447 hardcode_minus_L=yes 11448 export_dynamic_flag_spec='$wl-E' 11449 ;; 11450 11451 hpux10*) 11452 if test yes,no = "$GCC,$with_gnu_ld"; then 11453 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11454 else 11455 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11456 fi 11457 if test no = "$with_gnu_ld"; then 11458 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11459 hardcode_libdir_separator=: 11460 hardcode_direct=yes 11461 hardcode_direct_absolute=yes 11462 export_dynamic_flag_spec='$wl-E' 11463 # hardcode_minus_L: Not really in the search PATH, 11464 # but as the default location of the library. 11465 hardcode_minus_L=yes 11466 fi 11467 ;; 11468 11469 hpux11*) 11470 if test yes,no = "$GCC,$with_gnu_ld"; then 11471 case $host_cpu in 11472 hppa*64*) 11473 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11474 ;; 11475 ia64*) 11476 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11477 ;; 11478 *) 11479 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11480 ;; 11481 esac 11482 else 11483 case $host_cpu in 11484 hppa*64*) 11485 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11486 ;; 11487 ia64*) 11488 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11489 ;; 11490 *) 11491 11492 # Older versions of the 11.00 compiler do not understand -b yet 11493 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11495printf %s "checking if $CC understands -b... " >&6; } 11496if test ${lt_cv_prog_compiler__b+y} 11497then : 11498 printf %s "(cached) " >&6 11499else case e in #( 11500 e) lt_cv_prog_compiler__b=no 11501 save_LDFLAGS=$LDFLAGS 11502 LDFLAGS="$LDFLAGS -b" 11503 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11504 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11505 # The linker can only warn and ignore the option if not recognized 11506 # So say no if there are warnings 11507 if test -s conftest.err; then 11508 # Append any errors to the config.log. 11509 cat conftest.err 1>&5 11510 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11511 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11512 if diff conftest.exp conftest.er2 >/dev/null; then 11513 lt_cv_prog_compiler__b=yes 11514 fi 11515 else 11516 lt_cv_prog_compiler__b=yes 11517 fi 11518 fi 11519 $RM -r conftest* 11520 LDFLAGS=$save_LDFLAGS 11521 ;; 11522esac 11523fi 11524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11525printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 11526 11527if test yes = "$lt_cv_prog_compiler__b"; then 11528 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11529else 11530 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11531fi 11532 11533 ;; 11534 esac 11535 fi 11536 if test no = "$with_gnu_ld"; then 11537 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11538 hardcode_libdir_separator=: 11539 11540 case $host_cpu in 11541 hppa*64*|ia64*) 11542 hardcode_direct=no 11543 hardcode_shlibpath_var=no 11544 ;; 11545 *) 11546 hardcode_direct=yes 11547 hardcode_direct_absolute=yes 11548 export_dynamic_flag_spec='$wl-E' 11549 11550 # hardcode_minus_L: Not really in the search PATH, 11551 # but as the default location of the library. 11552 hardcode_minus_L=yes 11553 ;; 11554 esac 11555 fi 11556 ;; 11557 11558 irix5* | irix6* | nonstopux*) 11559 if test yes = "$GCC"; then 11560 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' 11561 # Try to use the -exported_symbol ld option, if it does not 11562 # work, assume that -exports_file does not work either and 11563 # implicitly export all symbols. 11564 # This should be the same for all languages, so no per-tag cache variable. 11565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11566printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11567if test ${lt_cv_irix_exported_symbol+y} 11568then : 11569 printf %s "(cached) " >&6 11570else case e in #( 11571 e) save_LDFLAGS=$LDFLAGS 11572 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11574/* end confdefs.h. */ 11575int foo (void) { return 0; } 11576_ACEOF 11577if ac_fn_c_try_link "$LINENO" 11578then : 11579 lt_cv_irix_exported_symbol=yes 11580else case e in #( 11581 e) lt_cv_irix_exported_symbol=no ;; 11582esac 11583fi 11584rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11585 conftest$ac_exeext conftest.$ac_ext 11586 LDFLAGS=$save_LDFLAGS ;; 11587esac 11588fi 11589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11590printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 11591 if test yes = "$lt_cv_irix_exported_symbol"; then 11592 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' 11593 fi 11594 else 11595 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' 11596 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' 11597 fi 11598 archive_cmds_need_lc='no' 11599 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11600 hardcode_libdir_separator=: 11601 inherit_rpath=yes 11602 link_all_deplibs=yes 11603 ;; 11604 11605 linux*) 11606 case $cc_basename in 11607 tcc*) 11608 # Fabrice Bellard et al's Tiny C Compiler 11609 ld_shlibs=yes 11610 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11611 ;; 11612 esac 11613 ;; 11614 11615 netbsd*) 11616 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11617 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11618 else 11619 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11620 fi 11621 hardcode_libdir_flag_spec='-R$libdir' 11622 hardcode_direct=yes 11623 hardcode_shlibpath_var=no 11624 ;; 11625 11626 newsos6) 11627 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11628 hardcode_direct=yes 11629 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11630 hardcode_libdir_separator=: 11631 hardcode_shlibpath_var=no 11632 ;; 11633 11634 *nto* | *qnx*) 11635 ;; 11636 11637 openbsd* | bitrig*) 11638 if test -f /usr/libexec/ld.so; then 11639 hardcode_direct=yes 11640 hardcode_shlibpath_var=no 11641 hardcode_direct_absolute=yes 11642 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11643 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11644 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11645 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11646 export_dynamic_flag_spec='$wl-E' 11647 else 11648 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11649 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11650 fi 11651 else 11652 ld_shlibs=no 11653 fi 11654 ;; 11655 11656 os2*) 11657 hardcode_libdir_flag_spec='-L$libdir' 11658 hardcode_minus_L=yes 11659 allow_undefined_flag=unsupported 11660 shrext_cmds=.dll 11661 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11662 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11663 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11664 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11665 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11666 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11667 emximp -o $lib $output_objdir/$libname.def' 11668 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11669 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11670 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11671 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11672 prefix_cmds="$SED"~ 11673 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11674 prefix_cmds="$prefix_cmds -e 1d"; 11675 fi~ 11676 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11677 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11678 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11679 emximp -o $lib $output_objdir/$libname.def' 11680 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11681 enable_shared_with_static_runtimes=yes 11682 file_list_spec='@' 11683 ;; 11684 11685 osf3*) 11686 if test yes = "$GCC"; then 11687 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11688 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' 11689 else 11690 allow_undefined_flag=' -expect_unresolved \*' 11691 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' 11692 fi 11693 archive_cmds_need_lc='no' 11694 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11695 hardcode_libdir_separator=: 11696 ;; 11697 11698 osf4* | osf5*) # as osf3* with the addition of -msym flag 11699 if test yes = "$GCC"; then 11700 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11701 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' 11702 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11703 else 11704 allow_undefined_flag=' -expect_unresolved \*' 11705 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' 11706 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~ 11707 $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' 11708 11709 # Both c and cxx compiler support -rpath directly 11710 hardcode_libdir_flag_spec='-rpath $libdir' 11711 fi 11712 archive_cmds_need_lc='no' 11713 hardcode_libdir_separator=: 11714 ;; 11715 11716 solaris*) 11717 no_undefined_flag=' -z defs' 11718 if test yes = "$GCC"; then 11719 wlarc='$wl' 11720 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11721 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11722 $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' 11723 else 11724 case `$CC -V 2>&1` in 11725 *"Compilers 5.0"*) 11726 wlarc='' 11727 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11728 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11729 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11730 ;; 11731 *) 11732 wlarc='$wl' 11733 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11734 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11735 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11736 ;; 11737 esac 11738 fi 11739 hardcode_libdir_flag_spec='-R$libdir' 11740 hardcode_shlibpath_var=no 11741 case $host_os in 11742 solaris2.[0-5] | solaris2.[0-5].*) ;; 11743 *) 11744 # The compiler driver will combine and reorder linker options, 11745 # but understands '-z linker_flag'. GCC discards it without '$wl', 11746 # but is careful enough not to reorder. 11747 # Supported since Solaris 2.6 (maybe 2.5.1?) 11748 if test yes = "$GCC"; then 11749 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11750 else 11751 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11752 fi 11753 ;; 11754 esac 11755 link_all_deplibs=yes 11756 ;; 11757 11758 sunos4*) 11759 if test sequent = "$host_vendor"; then 11760 # Use $CC to link under sequent, because it throws in some extra .o 11761 # files that make .init and .fini sections work. 11762 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11763 else 11764 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11765 fi 11766 hardcode_libdir_flag_spec='-L$libdir' 11767 hardcode_direct=yes 11768 hardcode_minus_L=yes 11769 hardcode_shlibpath_var=no 11770 ;; 11771 11772 sysv4) 11773 case $host_vendor in 11774 sni) 11775 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11776 hardcode_direct=yes # is this really true??? 11777 ;; 11778 siemens) 11779 ## LD is ld it makes a PLAMLIB 11780 ## CC just makes a GrossModule. 11781 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11782 reload_cmds='$CC -r -o $output$reload_objs' 11783 hardcode_direct=no 11784 ;; 11785 motorola) 11786 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11787 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11788 ;; 11789 esac 11790 runpath_var='LD_RUN_PATH' 11791 hardcode_shlibpath_var=no 11792 ;; 11793 11794 sysv4.3*) 11795 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11796 hardcode_shlibpath_var=no 11797 export_dynamic_flag_spec='-Bexport' 11798 ;; 11799 11800 sysv4*MP*) 11801 if test -d /usr/nec; then 11802 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11803 hardcode_shlibpath_var=no 11804 runpath_var=LD_RUN_PATH 11805 hardcode_runpath_var=yes 11806 ld_shlibs=yes 11807 fi 11808 ;; 11809 11810 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11811 no_undefined_flag='$wl-z,text' 11812 archive_cmds_need_lc=no 11813 hardcode_shlibpath_var=no 11814 runpath_var='LD_RUN_PATH' 11815 11816 if test yes = "$GCC"; then 11817 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11818 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11819 else 11820 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11821 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11822 fi 11823 ;; 11824 11825 sysv5* | sco3.2v5* | sco5v6*) 11826 # Note: We CANNOT use -z defs as we might desire, because we do not 11827 # link with -lc, and that would cause any symbols used from libc to 11828 # always be unresolved, which means just about no library would 11829 # ever link correctly. If we're not using GNU ld we use -z text 11830 # though, which does catch some bad symbols but isn't as heavy-handed 11831 # as -z defs. 11832 no_undefined_flag='$wl-z,text' 11833 allow_undefined_flag='$wl-z,nodefs' 11834 archive_cmds_need_lc=no 11835 hardcode_shlibpath_var=no 11836 hardcode_libdir_flag_spec='$wl-R,$libdir' 11837 hardcode_libdir_separator=':' 11838 link_all_deplibs=yes 11839 export_dynamic_flag_spec='$wl-Bexport' 11840 runpath_var='LD_RUN_PATH' 11841 11842 if test yes = "$GCC"; then 11843 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11844 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11845 else 11846 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11847 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11848 fi 11849 ;; 11850 11851 uts4*) 11852 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11853 hardcode_libdir_flag_spec='-L$libdir' 11854 hardcode_shlibpath_var=no 11855 ;; 11856 11857 *) 11858 ld_shlibs=no 11859 ;; 11860 esac 11861 11862 if test sni = "$host_vendor"; then 11863 case $host in 11864 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11865 export_dynamic_flag_spec='$wl-Blargedynsym' 11866 ;; 11867 esac 11868 fi 11869 fi 11870 11871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11872printf "%s\n" "$ld_shlibs" >&6; } 11873test no = "$ld_shlibs" && can_build_shared=no 11874 11875with_gnu_ld=$with_gnu_ld 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891# 11892# Do we need to explicitly link libc? 11893# 11894case "x$archive_cmds_need_lc" in 11895x|xyes) 11896 # Assume -lc should be added 11897 archive_cmds_need_lc=yes 11898 11899 if test yes,yes = "$GCC,$enable_shared"; then 11900 case $archive_cmds in 11901 *'~'*) 11902 # FIXME: we may have to deal with multi-command sequences. 11903 ;; 11904 '$CC '*) 11905 # Test whether the compiler implicitly links with -lc since on some 11906 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11907 # to ld, don't add -lc before -lgcc. 11908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11909printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11910if test ${lt_cv_archive_cmds_need_lc+y} 11911then : 11912 printf %s "(cached) " >&6 11913else case e in #( 11914 e) $RM conftest* 11915 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11916 11917 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11918 (eval $ac_compile) 2>&5 11919 ac_status=$? 11920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11921 test $ac_status = 0; } 2>conftest.err; then 11922 soname=conftest 11923 lib=conftest 11924 libobjs=conftest.$ac_objext 11925 deplibs= 11926 wl=$lt_prog_compiler_wl 11927 pic_flag=$lt_prog_compiler_pic 11928 compiler_flags=-v 11929 linker_flags=-v 11930 verstring= 11931 output_objdir=. 11932 libname=conftest 11933 lt_save_allow_undefined_flag=$allow_undefined_flag 11934 allow_undefined_flag= 11935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11936 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11937 ac_status=$? 11938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11939 test $ac_status = 0; } 11940 then 11941 lt_cv_archive_cmds_need_lc=no 11942 else 11943 lt_cv_archive_cmds_need_lc=yes 11944 fi 11945 allow_undefined_flag=$lt_save_allow_undefined_flag 11946 else 11947 cat conftest.err 1>&5 11948 fi 11949 $RM conftest* 11950 ;; 11951esac 11952fi 11953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11954printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11955 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11956 ;; 11957 esac 11958 fi 11959 ;; 11960esac 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12114printf %s "checking dynamic linker characteristics... " >&6; } 12115 12116if test yes = "$GCC"; then 12117 case $host_os in 12118 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 12119 *) lt_awk_arg='/^libraries:/' ;; 12120 esac 12121 case $host_os in 12122 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 12123 *) lt_sed_strip_eq='s|=/|/|g' ;; 12124 esac 12125 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12126 case $lt_search_path_spec in 12127 *\;*) 12128 # if the path contains ";" then we assume it to be the separator 12129 # otherwise default to the standard path separator (i.e. ":") - it is 12130 # assumed that no part of a normal pathname contains ";" but that should 12131 # okay in the real world where ";" in dirpaths is itself problematic. 12132 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12133 ;; 12134 *) 12135 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12136 ;; 12137 esac 12138 # Ok, now we have the path, separated by spaces, we can step through it 12139 # and add multilib dir if necessary... 12140 lt_tmp_lt_search_path_spec= 12141 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12142 # ...but if some path component already ends with the multilib dir we assume 12143 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 12144 case "$lt_multi_os_dir; $lt_search_path_spec " in 12145 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 12146 lt_multi_os_dir= 12147 ;; 12148 esac 12149 for lt_sys_path in $lt_search_path_spec; do 12150 if test -d "$lt_sys_path$lt_multi_os_dir"; then 12151 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 12152 elif test -n "$lt_multi_os_dir"; then 12153 test -d "$lt_sys_path" && \ 12154 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12155 fi 12156 done 12157 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12158BEGIN {RS = " "; FS = "/|\n";} { 12159 lt_foo = ""; 12160 lt_count = 0; 12161 for (lt_i = NF; lt_i > 0; lt_i--) { 12162 if ($lt_i != "" && $lt_i != ".") { 12163 if ($lt_i == "..") { 12164 lt_count++; 12165 } else { 12166 if (lt_count == 0) { 12167 lt_foo = "/" $lt_i lt_foo; 12168 } else { 12169 lt_count--; 12170 } 12171 } 12172 } 12173 } 12174 if (lt_foo != "") { lt_freq[lt_foo]++; } 12175 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12176}'` 12177 # AWK program above erroneously prepends '/' to C:/dos/paths 12178 # for these hosts. 12179 case $host_os in 12180 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12181 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 12182 esac 12183 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12184else 12185 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12186fi 12187library_names_spec= 12188libname_spec='lib$name' 12189soname_spec= 12190shrext_cmds=.so 12191postinstall_cmds= 12192postuninstall_cmds= 12193finish_cmds= 12194finish_eval= 12195shlibpath_var= 12196shlibpath_overrides_runpath=unknown 12197version_type=none 12198dynamic_linker="$host_os ld.so" 12199sys_lib_dlsearch_path_spec="/lib /usr/lib" 12200need_lib_prefix=unknown 12201hardcode_into_libs=no 12202 12203# when you set need_version to no, make sure it does not cause -set_version 12204# flags to be left without arguments 12205need_version=unknown 12206 12207 12208 12209case $host_os in 12210aix3*) 12211 version_type=linux # correct to gnu/linux during the next big refactor 12212 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 12213 shlibpath_var=LIBPATH 12214 12215 # AIX 3 has no versioning support, so we append a major version to the name. 12216 soname_spec='$libname$release$shared_ext$major' 12217 ;; 12218 12219aix[4-9]*) 12220 version_type=linux # correct to gnu/linux during the next big refactor 12221 need_lib_prefix=no 12222 need_version=no 12223 hardcode_into_libs=yes 12224 if test ia64 = "$host_cpu"; then 12225 # AIX 5 supports IA64 12226 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 12227 shlibpath_var=LD_LIBRARY_PATH 12228 else 12229 # With GCC up to 2.95.x, collect2 would create an import file 12230 # for dependence libraries. The import file would start with 12231 # the line '#! .'. This would cause the generated library to 12232 # depend on '.', always an invalid library. This was fixed in 12233 # development snapshots of GCC prior to 3.0. 12234 case $host_os in 12235 aix4 | aix4.[01] | aix4.[01].*) 12236 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12237 echo ' yes ' 12238 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 12239 : 12240 else 12241 can_build_shared=no 12242 fi 12243 ;; 12244 esac 12245 # Using Import Files as archive members, it is possible to support 12246 # filename-based versioning of shared library archives on AIX. While 12247 # this would work for both with and without runtime linking, it will 12248 # prevent static linking of such archives. So we do filename-based 12249 # shared library versioning with .so extension only, which is used 12250 # when both runtime linking and shared linking is enabled. 12251 # Unfortunately, runtime linking may impact performance, so we do 12252 # not want this to be the default eventually. Also, we use the 12253 # versioned .so libs for executables only if there is the -brtl 12254 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 12255 # To allow for filename-based versioning support, we need to create 12256 # libNAME.so.V as an archive file, containing: 12257 # *) an Import File, referring to the versioned filename of the 12258 # archive as well as the shared archive member, telling the 12259 # bitwidth (32 or 64) of that shared object, and providing the 12260 # list of exported symbols of that shared object, eventually 12261 # decorated with the 'weak' keyword 12262 # *) the shared object with the F_LOADONLY flag set, to really avoid 12263 # it being seen by the linker. 12264 # At run time we better use the real file rather than another symlink, 12265 # but for link time we create the symlink libNAME.so -> libNAME.so.V 12266 12267 case $with_aix_soname,$aix_use_runtimelinking in 12268 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 12269 # soname into executable. Probably we can add versioning support to 12270 # collect2, so additional links can be useful in future. 12271 aix,yes) # traditional libtool 12272 dynamic_linker='AIX unversionable lib.so' 12273 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12274 # instead of lib<name>.a to let people know that these are not 12275 # typical AIX shared libraries. 12276 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12277 ;; 12278 aix,no) # traditional AIX only 12279 dynamic_linker='AIX lib.a(lib.so.V)' 12280 # We preserve .a as extension for shared libraries through AIX4.2 12281 # and later when we are not doing run time linking. 12282 library_names_spec='$libname$release.a $libname.a' 12283 soname_spec='$libname$release$shared_ext$major' 12284 ;; 12285 svr4,*) # full svr4 only 12286 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 12287 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12288 # We do not specify a path in Import Files, so LIBPATH fires. 12289 shlibpath_overrides_runpath=yes 12290 ;; 12291 *,yes) # both, prefer svr4 12292 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 12293 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12294 # unpreferred sharedlib libNAME.a needs extra handling 12295 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"' 12296 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"' 12297 # We do not specify a path in Import Files, so LIBPATH fires. 12298 shlibpath_overrides_runpath=yes 12299 ;; 12300 *,no) # both, prefer aix 12301 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 12302 library_names_spec='$libname$release.a $libname.a' 12303 soname_spec='$libname$release$shared_ext$major' 12304 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 12305 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)' 12306 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"' 12307 ;; 12308 esac 12309 shlibpath_var=LIBPATH 12310 fi 12311 ;; 12312 12313amigaos*) 12314 case $host_cpu in 12315 powerpc) 12316 # Since July 2007 AmigaOS4 officially supports .so libraries. 12317 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12318 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12319 ;; 12320 m68k) 12321 library_names_spec='$libname.ixlibrary $libname.a' 12322 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12323 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' 12324 ;; 12325 esac 12326 ;; 12327 12328beos*) 12329 library_names_spec='$libname$shared_ext' 12330 dynamic_linker="$host_os ld.so" 12331 shlibpath_var=LIBRARY_PATH 12332 ;; 12333 12334bsdi[45]*) 12335 version_type=linux # correct to gnu/linux during the next big refactor 12336 need_version=no 12337 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12338 soname_spec='$libname$release$shared_ext$major' 12339 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12340 shlibpath_var=LD_LIBRARY_PATH 12341 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12342 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12343 # the default ld.so.conf also contains /usr/contrib/lib and 12344 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12345 # libtool to hard-code these into programs 12346 ;; 12347 12348cygwin* | mingw* | pw32* | cegcc*) 12349 version_type=windows 12350 shrext_cmds=.dll 12351 need_version=no 12352 need_lib_prefix=no 12353 12354 case $GCC,$cc_basename in 12355 yes,*) 12356 # gcc 12357 library_names_spec='$libname.dll.a' 12358 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12359 postinstall_cmds='base_file=`basename \$file`~ 12360 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12361 dldir=$destdir/`dirname \$dlpath`~ 12362 test -d \$dldir || mkdir -p \$dldir~ 12363 $install_prog $dir/$dlname \$dldir/$dlname~ 12364 chmod a+x \$dldir/$dlname~ 12365 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12366 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12367 fi' 12368 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12369 dlpath=$dir/\$dldll~ 12370 $RM \$dlpath' 12371 shlibpath_overrides_runpath=yes 12372 12373 case $host_os in 12374 cygwin*) 12375 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12376 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12377 12378 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12379 ;; 12380 mingw* | cegcc*) 12381 # MinGW DLLs use traditional 'lib' prefix 12382 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12383 ;; 12384 pw32*) 12385 # pw32 DLLs use 'pw' prefix rather than 'lib' 12386 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12387 ;; 12388 esac 12389 dynamic_linker='Win32 ld.exe' 12390 ;; 12391 12392 *,cl* | *,icl*) 12393 # Native MSVC or ICC 12394 libname_spec='$name' 12395 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12396 library_names_spec='$libname.dll.lib' 12397 12398 case $build_os in 12399 mingw*) 12400 sys_lib_search_path_spec= 12401 lt_save_ifs=$IFS 12402 IFS=';' 12403 for lt_path in $LIB 12404 do 12405 IFS=$lt_save_ifs 12406 # Let DOS variable expansion print the short 8.3 style file name. 12407 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12408 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12409 done 12410 IFS=$lt_save_ifs 12411 # Convert to MSYS style. 12412 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12413 ;; 12414 cygwin*) 12415 # Convert to unix form, then to dos form, then back to unix form 12416 # but this time dos style (no spaces!) so that the unix form looks 12417 # like /cygdrive/c/PROGRA~1:/cygdr... 12418 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12419 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12420 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12421 ;; 12422 *) 12423 sys_lib_search_path_spec=$LIB 12424 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12425 # It is most probably a Windows format PATH. 12426 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12427 else 12428 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12429 fi 12430 # FIXME: find the short name or the path components, as spaces are 12431 # common. (e.g. "Program Files" -> "PROGRA~1") 12432 ;; 12433 esac 12434 12435 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12436 postinstall_cmds='base_file=`basename \$file`~ 12437 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12438 dldir=$destdir/`dirname \$dlpath`~ 12439 test -d \$dldir || mkdir -p \$dldir~ 12440 $install_prog $dir/$dlname \$dldir/$dlname' 12441 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12442 dlpath=$dir/\$dldll~ 12443 $RM \$dlpath' 12444 shlibpath_overrides_runpath=yes 12445 dynamic_linker='Win32 link.exe' 12446 ;; 12447 12448 *) 12449 # Assume MSVC and ICC wrapper 12450 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12451 dynamic_linker='Win32 ld.exe' 12452 ;; 12453 esac 12454 # FIXME: first we should search . and the directory the executable is in 12455 shlibpath_var=PATH 12456 ;; 12457 12458darwin* | rhapsody*) 12459 dynamic_linker="$host_os dyld" 12460 version_type=darwin 12461 need_lib_prefix=no 12462 need_version=no 12463 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12464 soname_spec='$libname$release$major$shared_ext' 12465 shlibpath_overrides_runpath=yes 12466 shlibpath_var=DYLD_LIBRARY_PATH 12467 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12468 12469 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12470 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12471 ;; 12472 12473dgux*) 12474 version_type=linux # correct to gnu/linux during the next big refactor 12475 need_lib_prefix=no 12476 need_version=no 12477 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12478 soname_spec='$libname$release$shared_ext$major' 12479 shlibpath_var=LD_LIBRARY_PATH 12480 ;; 12481 12482freebsd* | dragonfly* | midnightbsd*) 12483 # DragonFly does not have aout. When/if they implement a new 12484 # versioning mechanism, adjust this. 12485 if test -x /usr/bin/objformat; then 12486 objformat=`/usr/bin/objformat` 12487 else 12488 case $host_os in 12489 freebsd[23].*) objformat=aout ;; 12490 *) objformat=elf ;; 12491 esac 12492 fi 12493 version_type=freebsd-$objformat 12494 case $version_type in 12495 freebsd-elf*) 12496 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12497 soname_spec='$libname$release$shared_ext$major' 12498 need_version=no 12499 need_lib_prefix=no 12500 ;; 12501 freebsd-*) 12502 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12503 need_version=yes 12504 ;; 12505 esac 12506 shlibpath_var=LD_LIBRARY_PATH 12507 case $host_os in 12508 freebsd2.*) 12509 shlibpath_overrides_runpath=yes 12510 ;; 12511 freebsd3.[01]* | freebsdelf3.[01]*) 12512 shlibpath_overrides_runpath=yes 12513 hardcode_into_libs=yes 12514 ;; 12515 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12516 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12517 shlibpath_overrides_runpath=no 12518 hardcode_into_libs=yes 12519 ;; 12520 *) # from 4.6 on, and DragonFly 12521 shlibpath_overrides_runpath=yes 12522 hardcode_into_libs=yes 12523 ;; 12524 esac 12525 ;; 12526 12527haiku*) 12528 version_type=linux # correct to gnu/linux during the next big refactor 12529 need_lib_prefix=no 12530 need_version=no 12531 dynamic_linker="$host_os runtime_loader" 12532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12533 soname_spec='$libname$release$shared_ext$major' 12534 shlibpath_var=LIBRARY_PATH 12535 shlibpath_overrides_runpath=no 12536 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12537 hardcode_into_libs=yes 12538 ;; 12539 12540hpux9* | hpux10* | hpux11*) 12541 # Give a soname corresponding to the major version so that dld.sl refuses to 12542 # link against other versions. 12543 version_type=sunos 12544 need_lib_prefix=no 12545 need_version=no 12546 case $host_cpu in 12547 ia64*) 12548 shrext_cmds='.so' 12549 hardcode_into_libs=yes 12550 dynamic_linker="$host_os dld.so" 12551 shlibpath_var=LD_LIBRARY_PATH 12552 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12553 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12554 soname_spec='$libname$release$shared_ext$major' 12555 if test 32 = "$HPUX_IA64_MODE"; then 12556 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12557 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12558 else 12559 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12560 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12561 fi 12562 ;; 12563 hppa*64*) 12564 shrext_cmds='.sl' 12565 hardcode_into_libs=yes 12566 dynamic_linker="$host_os dld.sl" 12567 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12568 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12569 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12570 soname_spec='$libname$release$shared_ext$major' 12571 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12572 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12573 ;; 12574 *) 12575 shrext_cmds='.sl' 12576 dynamic_linker="$host_os dld.sl" 12577 shlibpath_var=SHLIB_PATH 12578 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12579 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12580 soname_spec='$libname$release$shared_ext$major' 12581 ;; 12582 esac 12583 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12584 postinstall_cmds='chmod 555 $lib' 12585 # or fails outright, so override atomically: 12586 install_override_mode=555 12587 ;; 12588 12589interix[3-9]*) 12590 version_type=linux # correct to gnu/linux during the next big refactor 12591 need_lib_prefix=no 12592 need_version=no 12593 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12594 soname_spec='$libname$release$shared_ext$major' 12595 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12596 shlibpath_var=LD_LIBRARY_PATH 12597 shlibpath_overrides_runpath=no 12598 hardcode_into_libs=yes 12599 ;; 12600 12601irix5* | irix6* | nonstopux*) 12602 case $host_os in 12603 nonstopux*) version_type=nonstopux ;; 12604 *) 12605 if test yes = "$lt_cv_prog_gnu_ld"; then 12606 version_type=linux # correct to gnu/linux during the next big refactor 12607 else 12608 version_type=irix 12609 fi ;; 12610 esac 12611 need_lib_prefix=no 12612 need_version=no 12613 soname_spec='$libname$release$shared_ext$major' 12614 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12615 case $host_os in 12616 irix5* | nonstopux*) 12617 libsuff= shlibsuff= 12618 ;; 12619 *) 12620 case $LD in # libtool.m4 will add one of these switches to LD 12621 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12622 libsuff= shlibsuff= libmagic=32-bit;; 12623 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12624 libsuff=32 shlibsuff=N32 libmagic=N32;; 12625 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12626 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12627 *) libsuff= shlibsuff= libmagic=never-match;; 12628 esac 12629 ;; 12630 esac 12631 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12632 shlibpath_overrides_runpath=no 12633 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12634 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12635 hardcode_into_libs=yes 12636 ;; 12637 12638# No shared lib support for Linux oldld, aout, or coff. 12639linux*oldld* | linux*aout* | linux*coff*) 12640 dynamic_linker=no 12641 ;; 12642 12643linux*android*) 12644 version_type=none # Android doesn't support versioned libraries. 12645 need_lib_prefix=no 12646 need_version=no 12647 library_names_spec='$libname$release$shared_ext' 12648 soname_spec='$libname$release$shared_ext' 12649 finish_cmds= 12650 shlibpath_var=LD_LIBRARY_PATH 12651 shlibpath_overrides_runpath=yes 12652 12653 # This implies no fast_install, which is unacceptable. 12654 # Some rework will be needed to allow for fast_install 12655 # before this can be enabled. 12656 hardcode_into_libs=yes 12657 12658 dynamic_linker='Android linker' 12659 # Don't embed -rpath directories since the linker doesn't support them. 12660 hardcode_libdir_flag_spec='-L$libdir' 12661 ;; 12662 12663# This must be glibc/ELF. 12664linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12665 version_type=linux # correct to gnu/linux during the next big refactor 12666 need_lib_prefix=no 12667 need_version=no 12668 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12669 soname_spec='$libname$release$shared_ext$major' 12670 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12671 shlibpath_var=LD_LIBRARY_PATH 12672 shlibpath_overrides_runpath=no 12673 12674 # Some binutils ld are patched to set DT_RUNPATH 12675 if test ${lt_cv_shlibpath_overrides_runpath+y} 12676then : 12677 printf %s "(cached) " >&6 12678else case e in #( 12679 e) lt_cv_shlibpath_overrides_runpath=no 12680 save_LDFLAGS=$LDFLAGS 12681 save_libdir=$libdir 12682 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12683 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12685/* end confdefs.h. */ 12686 12687int 12688main (void) 12689{ 12690 12691 ; 12692 return 0; 12693} 12694_ACEOF 12695if ac_fn_c_try_link "$LINENO" 12696then : 12697 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 12698then : 12699 lt_cv_shlibpath_overrides_runpath=yes 12700fi 12701fi 12702rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12703 conftest$ac_exeext conftest.$ac_ext 12704 LDFLAGS=$save_LDFLAGS 12705 libdir=$save_libdir 12706 ;; 12707esac 12708fi 12709 12710 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12711 12712 # This implies no fast_install, which is unacceptable. 12713 # Some rework will be needed to allow for fast_install 12714 # before this can be enabled. 12715 hardcode_into_libs=yes 12716 12717 # Ideally, we could use ldconfig to report *all* directores which are 12718 # searched for libraries, however this is still not possible. Aside from not 12719 # being certain /sbin/ldconfig is available, command 12720 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12721 # even though it is searched at run-time. Try to do the best guess by 12722 # appending ld.so.conf contents (and includes) to the search path. 12723 if test -f /etc/ld.so.conf; then 12724 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' ' '` 12725 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12726 fi 12727 12728 # We used to test for /lib/ld.so.1 and disable shared libraries on 12729 # powerpc, because MkLinux only supported shared libraries with the 12730 # GNU dynamic linker. Since this was broken with cross compilers, 12731 # most powerpc-linux boxes support dynamic linking these days and 12732 # people can always --disable-shared, the test was removed, and we 12733 # assume the GNU/Linux dynamic linker is in use. 12734 dynamic_linker='GNU/Linux ld.so' 12735 ;; 12736 12737netbsd*) 12738 version_type=sunos 12739 need_lib_prefix=no 12740 need_version=no 12741 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12742 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12743 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12744 dynamic_linker='NetBSD (a.out) ld.so' 12745 else 12746 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12747 soname_spec='$libname$release$shared_ext$major' 12748 dynamic_linker='NetBSD ld.elf_so' 12749 fi 12750 shlibpath_var=LD_LIBRARY_PATH 12751 shlibpath_overrides_runpath=yes 12752 hardcode_into_libs=yes 12753 ;; 12754 12755newsos6) 12756 version_type=linux # correct to gnu/linux during the next big refactor 12757 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12758 shlibpath_var=LD_LIBRARY_PATH 12759 shlibpath_overrides_runpath=yes 12760 ;; 12761 12762*nto* | *qnx*) 12763 version_type=qnx 12764 need_lib_prefix=no 12765 need_version=no 12766 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12767 soname_spec='$libname$release$shared_ext$major' 12768 shlibpath_var=LD_LIBRARY_PATH 12769 shlibpath_overrides_runpath=no 12770 hardcode_into_libs=yes 12771 dynamic_linker='ldqnx.so' 12772 ;; 12773 12774openbsd* | bitrig*) 12775 version_type=sunos 12776 sys_lib_dlsearch_path_spec=/usr/lib 12777 need_lib_prefix=no 12778 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12779 need_version=no 12780 else 12781 need_version=yes 12782 fi 12783 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12784 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12785 shlibpath_var=LD_LIBRARY_PATH 12786 shlibpath_overrides_runpath=yes 12787 ;; 12788 12789os2*) 12790 libname_spec='$name' 12791 version_type=windows 12792 shrext_cmds=.dll 12793 need_version=no 12794 need_lib_prefix=no 12795 # OS/2 can only load a DLL with a base name of 8 characters or less. 12796 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12797 v=$($ECHO $release$versuffix | tr -d .-); 12798 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12799 $ECHO $n$v`$shared_ext' 12800 library_names_spec='${libname}_dll.$libext' 12801 dynamic_linker='OS/2 ld.exe' 12802 shlibpath_var=BEGINLIBPATH 12803 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12804 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12805 postinstall_cmds='base_file=`basename \$file`~ 12806 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12807 dldir=$destdir/`dirname \$dlpath`~ 12808 test -d \$dldir || mkdir -p \$dldir~ 12809 $install_prog $dir/$dlname \$dldir/$dlname~ 12810 chmod a+x \$dldir/$dlname~ 12811 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12812 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12813 fi' 12814 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12815 dlpath=$dir/\$dldll~ 12816 $RM \$dlpath' 12817 ;; 12818 12819osf3* | osf4* | osf5*) 12820 version_type=osf 12821 need_lib_prefix=no 12822 need_version=no 12823 soname_spec='$libname$release$shared_ext$major' 12824 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12825 shlibpath_var=LD_LIBRARY_PATH 12826 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12827 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12828 ;; 12829 12830rdos*) 12831 dynamic_linker=no 12832 ;; 12833 12834solaris*) 12835 version_type=linux # correct to gnu/linux during the next big refactor 12836 need_lib_prefix=no 12837 need_version=no 12838 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12839 soname_spec='$libname$release$shared_ext$major' 12840 shlibpath_var=LD_LIBRARY_PATH 12841 shlibpath_overrides_runpath=yes 12842 hardcode_into_libs=yes 12843 # ldd complains unless libraries are executable 12844 postinstall_cmds='chmod +x $lib' 12845 ;; 12846 12847sunos4*) 12848 version_type=sunos 12849 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12850 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12851 shlibpath_var=LD_LIBRARY_PATH 12852 shlibpath_overrides_runpath=yes 12853 if test yes = "$with_gnu_ld"; then 12854 need_lib_prefix=no 12855 fi 12856 need_version=yes 12857 ;; 12858 12859sysv4 | sysv4.3*) 12860 version_type=linux # correct to gnu/linux during the next big refactor 12861 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12862 soname_spec='$libname$release$shared_ext$major' 12863 shlibpath_var=LD_LIBRARY_PATH 12864 case $host_vendor in 12865 sni) 12866 shlibpath_overrides_runpath=no 12867 need_lib_prefix=no 12868 runpath_var=LD_RUN_PATH 12869 ;; 12870 siemens) 12871 need_lib_prefix=no 12872 ;; 12873 motorola) 12874 need_lib_prefix=no 12875 need_version=no 12876 shlibpath_overrides_runpath=no 12877 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12878 ;; 12879 esac 12880 ;; 12881 12882sysv4*MP*) 12883 if test -d /usr/nec; then 12884 version_type=linux # correct to gnu/linux during the next big refactor 12885 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12886 soname_spec='$libname$shared_ext.$major' 12887 shlibpath_var=LD_LIBRARY_PATH 12888 fi 12889 ;; 12890 12891sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12892 version_type=sco 12893 need_lib_prefix=no 12894 need_version=no 12895 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12896 soname_spec='$libname$release$shared_ext$major' 12897 shlibpath_var=LD_LIBRARY_PATH 12898 shlibpath_overrides_runpath=yes 12899 hardcode_into_libs=yes 12900 if test yes = "$with_gnu_ld"; then 12901 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12902 else 12903 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12904 case $host_os in 12905 sco3.2v5*) 12906 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12907 ;; 12908 esac 12909 fi 12910 sys_lib_dlsearch_path_spec='/usr/lib' 12911 ;; 12912 12913tpf*) 12914 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12915 version_type=linux # correct to gnu/linux during the next big refactor 12916 need_lib_prefix=no 12917 need_version=no 12918 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12919 shlibpath_var=LD_LIBRARY_PATH 12920 shlibpath_overrides_runpath=no 12921 hardcode_into_libs=yes 12922 ;; 12923 12924uts4*) 12925 version_type=linux # correct to gnu/linux during the next big refactor 12926 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12927 soname_spec='$libname$release$shared_ext$major' 12928 shlibpath_var=LD_LIBRARY_PATH 12929 ;; 12930 12931*) 12932 dynamic_linker=no 12933 ;; 12934esac 12935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12936printf "%s\n" "$dynamic_linker" >&6; } 12937test no = "$dynamic_linker" && can_build_shared=no 12938 12939variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12940if test yes = "$GCC"; then 12941 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12942fi 12943 12944if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12945 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12946fi 12947 12948if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12949 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12950fi 12951 12952# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12953configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12954 12955# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12956func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12957 12958# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12959configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 13057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13058printf %s "checking how to hardcode library paths into programs... " >&6; } 13059hardcode_action= 13060if test -n "$hardcode_libdir_flag_spec" || 13061 test -n "$runpath_var" || 13062 test yes = "$hardcode_automatic"; then 13063 13064 # We can hardcode non-existent directories. 13065 if test no != "$hardcode_direct" && 13066 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13067 # have to relink, otherwise we might link with an installed library 13068 # when we should be linking with a yet-to-be-installed one 13069 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 13070 test no != "$hardcode_minus_L"; then 13071 # Linking always hardcodes the temporary library directory. 13072 hardcode_action=relink 13073 else 13074 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13075 hardcode_action=immediate 13076 fi 13077else 13078 # We cannot hardcode anything, or else we can only hardcode existing 13079 # directories. 13080 hardcode_action=unsupported 13081fi 13082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13083printf "%s\n" "$hardcode_action" >&6; } 13084 13085if test relink = "$hardcode_action" || 13086 test yes = "$inherit_rpath"; then 13087 # Fast installation is not supported 13088 enable_fast_install=no 13089elif test yes = "$shlibpath_overrides_runpath" || 13090 test no = "$enable_shared"; then 13091 # Fast installation is not necessary 13092 enable_fast_install=needless 13093fi 13094 13095 13096 13097 13098 13099 13100 if test yes != "$enable_dlopen"; then 13101 enable_dlopen=unknown 13102 enable_dlopen_self=unknown 13103 enable_dlopen_self_static=unknown 13104else 13105 lt_cv_dlopen=no 13106 lt_cv_dlopen_libs= 13107 13108 case $host_os in 13109 beos*) 13110 lt_cv_dlopen=load_add_on 13111 lt_cv_dlopen_libs= 13112 lt_cv_dlopen_self=yes 13113 ;; 13114 13115 mingw* | pw32* | cegcc*) 13116 lt_cv_dlopen=LoadLibrary 13117 lt_cv_dlopen_libs= 13118 ;; 13119 13120 cygwin*) 13121 lt_cv_dlopen=dlopen 13122 lt_cv_dlopen_libs= 13123 ;; 13124 13125 darwin*) 13126 # if libdl is installed we need to link against it 13127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13128printf %s "checking for dlopen in -ldl... " >&6; } 13129if test ${ac_cv_lib_dl_dlopen+y} 13130then : 13131 printf %s "(cached) " >&6 13132else case e in #( 13133 e) ac_check_lib_save_LIBS=$LIBS 13134LIBS="-ldl $LIBS" 13135cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13136/* end confdefs.h. */ 13137 13138/* Override any GCC internal prototype to avoid an error. 13139 Use char because int might match the return type of a GCC 13140 builtin and then its argument prototype would still apply. 13141 The 'extern "C"' is for builds by C++ compilers; 13142 although this is not generally supported in C code supporting it here 13143 has little cost and some practical benefit (sr 110532). */ 13144#ifdef __cplusplus 13145extern "C" 13146#endif 13147char dlopen (void); 13148int 13149main (void) 13150{ 13151return dlopen (); 13152 ; 13153 return 0; 13154} 13155_ACEOF 13156if ac_fn_c_try_link "$LINENO" 13157then : 13158 ac_cv_lib_dl_dlopen=yes 13159else case e in #( 13160 e) ac_cv_lib_dl_dlopen=no ;; 13161esac 13162fi 13163rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13164 conftest$ac_exeext conftest.$ac_ext 13165LIBS=$ac_check_lib_save_LIBS ;; 13166esac 13167fi 13168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13169printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13170if test "x$ac_cv_lib_dl_dlopen" = xyes 13171then : 13172 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13173else case e in #( 13174 e) 13175 lt_cv_dlopen=dyld 13176 lt_cv_dlopen_libs= 13177 lt_cv_dlopen_self=yes 13178 ;; 13179esac 13180fi 13181 13182 ;; 13183 13184 tpf*) 13185 # Don't try to run any link tests for TPF. We know it's impossible 13186 # because TPF is a cross-compiler, and we know how we open DSOs. 13187 lt_cv_dlopen=dlopen 13188 lt_cv_dlopen_libs= 13189 lt_cv_dlopen_self=no 13190 ;; 13191 13192 *) 13193 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13194if test "x$ac_cv_func_shl_load" = xyes 13195then : 13196 lt_cv_dlopen=shl_load 13197else case e in #( 13198 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13199printf %s "checking for shl_load in -ldld... " >&6; } 13200if test ${ac_cv_lib_dld_shl_load+y} 13201then : 13202 printf %s "(cached) " >&6 13203else case e in #( 13204 e) ac_check_lib_save_LIBS=$LIBS 13205LIBS="-ldld $LIBS" 13206cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13207/* end confdefs.h. */ 13208 13209/* Override any GCC internal prototype to avoid an error. 13210 Use char because int might match the return type of a GCC 13211 builtin and then its argument prototype would still apply. 13212 The 'extern "C"' is for builds by C++ compilers; 13213 although this is not generally supported in C code supporting it here 13214 has little cost and some practical benefit (sr 110532). */ 13215#ifdef __cplusplus 13216extern "C" 13217#endif 13218char shl_load (void); 13219int 13220main (void) 13221{ 13222return shl_load (); 13223 ; 13224 return 0; 13225} 13226_ACEOF 13227if ac_fn_c_try_link "$LINENO" 13228then : 13229 ac_cv_lib_dld_shl_load=yes 13230else case e in #( 13231 e) ac_cv_lib_dld_shl_load=no ;; 13232esac 13233fi 13234rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13235 conftest$ac_exeext conftest.$ac_ext 13236LIBS=$ac_check_lib_save_LIBS ;; 13237esac 13238fi 13239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13240printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 13241if test "x$ac_cv_lib_dld_shl_load" = xyes 13242then : 13243 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 13244else case e in #( 13245 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13246if test "x$ac_cv_func_dlopen" = xyes 13247then : 13248 lt_cv_dlopen=dlopen 13249else case e in #( 13250 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13251printf %s "checking for dlopen in -ldl... " >&6; } 13252if test ${ac_cv_lib_dl_dlopen+y} 13253then : 13254 printf %s "(cached) " >&6 13255else case e in #( 13256 e) ac_check_lib_save_LIBS=$LIBS 13257LIBS="-ldl $LIBS" 13258cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13259/* end confdefs.h. */ 13260 13261/* Override any GCC internal prototype to avoid an error. 13262 Use char because int might match the return type of a GCC 13263 builtin and then its argument prototype would still apply. 13264 The 'extern "C"' is for builds by C++ compilers; 13265 although this is not generally supported in C code supporting it here 13266 has little cost and some practical benefit (sr 110532). */ 13267#ifdef __cplusplus 13268extern "C" 13269#endif 13270char dlopen (void); 13271int 13272main (void) 13273{ 13274return dlopen (); 13275 ; 13276 return 0; 13277} 13278_ACEOF 13279if ac_fn_c_try_link "$LINENO" 13280then : 13281 ac_cv_lib_dl_dlopen=yes 13282else case e in #( 13283 e) ac_cv_lib_dl_dlopen=no ;; 13284esac 13285fi 13286rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13287 conftest$ac_exeext conftest.$ac_ext 13288LIBS=$ac_check_lib_save_LIBS ;; 13289esac 13290fi 13291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13292printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13293if test "x$ac_cv_lib_dl_dlopen" = xyes 13294then : 13295 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13296else case e in #( 13297 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13298printf %s "checking for dlopen in -lsvld... " >&6; } 13299if test ${ac_cv_lib_svld_dlopen+y} 13300then : 13301 printf %s "(cached) " >&6 13302else case e in #( 13303 e) ac_check_lib_save_LIBS=$LIBS 13304LIBS="-lsvld $LIBS" 13305cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13306/* end confdefs.h. */ 13307 13308/* Override any GCC internal prototype to avoid an error. 13309 Use char because int might match the return type of a GCC 13310 builtin and then its argument prototype would still apply. 13311 The 'extern "C"' is for builds by C++ compilers; 13312 although this is not generally supported in C code supporting it here 13313 has little cost and some practical benefit (sr 110532). */ 13314#ifdef __cplusplus 13315extern "C" 13316#endif 13317char dlopen (void); 13318int 13319main (void) 13320{ 13321return dlopen (); 13322 ; 13323 return 0; 13324} 13325_ACEOF 13326if ac_fn_c_try_link "$LINENO" 13327then : 13328 ac_cv_lib_svld_dlopen=yes 13329else case e in #( 13330 e) ac_cv_lib_svld_dlopen=no ;; 13331esac 13332fi 13333rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13334 conftest$ac_exeext conftest.$ac_ext 13335LIBS=$ac_check_lib_save_LIBS ;; 13336esac 13337fi 13338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13339printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 13340if test "x$ac_cv_lib_svld_dlopen" = xyes 13341then : 13342 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13343else case e in #( 13344 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13345printf %s "checking for dld_link in -ldld... " >&6; } 13346if test ${ac_cv_lib_dld_dld_link+y} 13347then : 13348 printf %s "(cached) " >&6 13349else case e in #( 13350 e) ac_check_lib_save_LIBS=$LIBS 13351LIBS="-ldld $LIBS" 13352cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13353/* end confdefs.h. */ 13354 13355/* Override any GCC internal prototype to avoid an error. 13356 Use char because int might match the return type of a GCC 13357 builtin and then its argument prototype would still apply. 13358 The 'extern "C"' is for builds by C++ compilers; 13359 although this is not generally supported in C code supporting it here 13360 has little cost and some practical benefit (sr 110532). */ 13361#ifdef __cplusplus 13362extern "C" 13363#endif 13364char dld_link (void); 13365int 13366main (void) 13367{ 13368return dld_link (); 13369 ; 13370 return 0; 13371} 13372_ACEOF 13373if ac_fn_c_try_link "$LINENO" 13374then : 13375 ac_cv_lib_dld_dld_link=yes 13376else case e in #( 13377 e) ac_cv_lib_dld_dld_link=no ;; 13378esac 13379fi 13380rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13381 conftest$ac_exeext conftest.$ac_ext 13382LIBS=$ac_check_lib_save_LIBS ;; 13383esac 13384fi 13385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13386printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 13387if test "x$ac_cv_lib_dld_dld_link" = xyes 13388then : 13389 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13390fi 13391 13392 ;; 13393esac 13394fi 13395 13396 ;; 13397esac 13398fi 13399 13400 ;; 13401esac 13402fi 13403 13404 ;; 13405esac 13406fi 13407 13408 ;; 13409esac 13410fi 13411 13412 ;; 13413 esac 13414 13415 if test no = "$lt_cv_dlopen"; then 13416 enable_dlopen=no 13417 else 13418 enable_dlopen=yes 13419 fi 13420 13421 case $lt_cv_dlopen in 13422 dlopen) 13423 save_CPPFLAGS=$CPPFLAGS 13424 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13425 13426 save_LDFLAGS=$LDFLAGS 13427 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13428 13429 save_LIBS=$LIBS 13430 LIBS="$lt_cv_dlopen_libs $LIBS" 13431 13432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13433printf %s "checking whether a program can dlopen itself... " >&6; } 13434if test ${lt_cv_dlopen_self+y} 13435then : 13436 printf %s "(cached) " >&6 13437else case e in #( 13438 e) if test yes = "$cross_compiling"; then : 13439 lt_cv_dlopen_self=cross 13440else 13441 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13442 lt_status=$lt_dlunknown 13443 cat > conftest.$ac_ext <<_LT_EOF 13444#line $LINENO "configure" 13445#include "confdefs.h" 13446 13447#if HAVE_DLFCN_H 13448#include <dlfcn.h> 13449#endif 13450 13451#include <stdio.h> 13452 13453#ifdef RTLD_GLOBAL 13454# define LT_DLGLOBAL RTLD_GLOBAL 13455#else 13456# ifdef DL_GLOBAL 13457# define LT_DLGLOBAL DL_GLOBAL 13458# else 13459# define LT_DLGLOBAL 0 13460# endif 13461#endif 13462 13463/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13464 find out it does not work in some platform. */ 13465#ifndef LT_DLLAZY_OR_NOW 13466# ifdef RTLD_LAZY 13467# define LT_DLLAZY_OR_NOW RTLD_LAZY 13468# else 13469# ifdef DL_LAZY 13470# define LT_DLLAZY_OR_NOW DL_LAZY 13471# else 13472# ifdef RTLD_NOW 13473# define LT_DLLAZY_OR_NOW RTLD_NOW 13474# else 13475# ifdef DL_NOW 13476# define LT_DLLAZY_OR_NOW DL_NOW 13477# else 13478# define LT_DLLAZY_OR_NOW 0 13479# endif 13480# endif 13481# endif 13482# endif 13483#endif 13484 13485/* When -fvisibility=hidden is used, assume the code has been annotated 13486 correspondingly for the symbols needed. */ 13487#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13488int fnord () __attribute__((visibility("default"))); 13489#endif 13490 13491int fnord () { return 42; } 13492int main () 13493{ 13494 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13495 int status = $lt_dlunknown; 13496 13497 if (self) 13498 { 13499 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13500 else 13501 { 13502 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13503 else puts (dlerror ()); 13504 } 13505 /* dlclose (self); */ 13506 } 13507 else 13508 puts (dlerror ()); 13509 13510 return status; 13511} 13512_LT_EOF 13513 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13514 (eval $ac_link) 2>&5 13515 ac_status=$? 13516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13517 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13518 (./conftest; exit; ) >&5 2>/dev/null 13519 lt_status=$? 13520 case x$lt_status in 13521 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13522 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13523 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13524 esac 13525 else : 13526 # compilation failed 13527 lt_cv_dlopen_self=no 13528 fi 13529fi 13530rm -fr conftest* 13531 13532 ;; 13533esac 13534fi 13535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13536printf "%s\n" "$lt_cv_dlopen_self" >&6; } 13537 13538 if test yes = "$lt_cv_dlopen_self"; then 13539 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13541printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 13542if test ${lt_cv_dlopen_self_static+y} 13543then : 13544 printf %s "(cached) " >&6 13545else case e in #( 13546 e) if test yes = "$cross_compiling"; then : 13547 lt_cv_dlopen_self_static=cross 13548else 13549 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13550 lt_status=$lt_dlunknown 13551 cat > conftest.$ac_ext <<_LT_EOF 13552#line $LINENO "configure" 13553#include "confdefs.h" 13554 13555#if HAVE_DLFCN_H 13556#include <dlfcn.h> 13557#endif 13558 13559#include <stdio.h> 13560 13561#ifdef RTLD_GLOBAL 13562# define LT_DLGLOBAL RTLD_GLOBAL 13563#else 13564# ifdef DL_GLOBAL 13565# define LT_DLGLOBAL DL_GLOBAL 13566# else 13567# define LT_DLGLOBAL 0 13568# endif 13569#endif 13570 13571/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13572 find out it does not work in some platform. */ 13573#ifndef LT_DLLAZY_OR_NOW 13574# ifdef RTLD_LAZY 13575# define LT_DLLAZY_OR_NOW RTLD_LAZY 13576# else 13577# ifdef DL_LAZY 13578# define LT_DLLAZY_OR_NOW DL_LAZY 13579# else 13580# ifdef RTLD_NOW 13581# define LT_DLLAZY_OR_NOW RTLD_NOW 13582# else 13583# ifdef DL_NOW 13584# define LT_DLLAZY_OR_NOW DL_NOW 13585# else 13586# define LT_DLLAZY_OR_NOW 0 13587# endif 13588# endif 13589# endif 13590# endif 13591#endif 13592 13593/* When -fvisibility=hidden is used, assume the code has been annotated 13594 correspondingly for the symbols needed. */ 13595#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13596int fnord () __attribute__((visibility("default"))); 13597#endif 13598 13599int fnord () { return 42; } 13600int main () 13601{ 13602 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13603 int status = $lt_dlunknown; 13604 13605 if (self) 13606 { 13607 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13608 else 13609 { 13610 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13611 else puts (dlerror ()); 13612 } 13613 /* dlclose (self); */ 13614 } 13615 else 13616 puts (dlerror ()); 13617 13618 return status; 13619} 13620_LT_EOF 13621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13622 (eval $ac_link) 2>&5 13623 ac_status=$? 13624 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13625 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13626 (./conftest; exit; ) >&5 2>/dev/null 13627 lt_status=$? 13628 case x$lt_status in 13629 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13630 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13631 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13632 esac 13633 else : 13634 # compilation failed 13635 lt_cv_dlopen_self_static=no 13636 fi 13637fi 13638rm -fr conftest* 13639 13640 ;; 13641esac 13642fi 13643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13644printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 13645 fi 13646 13647 CPPFLAGS=$save_CPPFLAGS 13648 LDFLAGS=$save_LDFLAGS 13649 LIBS=$save_LIBS 13650 ;; 13651 esac 13652 13653 case $lt_cv_dlopen_self in 13654 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13655 *) enable_dlopen_self=unknown ;; 13656 esac 13657 13658 case $lt_cv_dlopen_self_static in 13659 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13660 *) enable_dlopen_self_static=unknown ;; 13661 esac 13662fi 13663 13664 13665 13666 13667 13668 13669 13670 13671 13672 13673 13674 13675 13676 13677 13678 13679 13680striplib= 13681old_striplib= 13682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13683printf %s "checking whether stripping libraries is possible... " >&6; } 13684if test -z "$STRIP"; then 13685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13686printf "%s\n" "no" >&6; } 13687else 13688 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13689 old_striplib="$STRIP --strip-debug" 13690 striplib="$STRIP --strip-unneeded" 13691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13692printf "%s\n" "yes" >&6; } 13693 else 13694 case $host_os in 13695 darwin*) 13696 # FIXME - insert some real tests, host_os isn't really good enough 13697 striplib="$STRIP -x" 13698 old_striplib="$STRIP -S" 13699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13700printf "%s\n" "yes" >&6; } 13701 ;; 13702 freebsd*) 13703 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 13704 old_striplib="$STRIP --strip-debug" 13705 striplib="$STRIP --strip-unneeded" 13706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13707printf "%s\n" "yes" >&6; } 13708 else 13709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13710printf "%s\n" "no" >&6; } 13711 fi 13712 ;; 13713 *) 13714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13715printf "%s\n" "no" >&6; } 13716 ;; 13717 esac 13718 fi 13719fi 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 # Report what library types will actually be built 13733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13734printf %s "checking if libtool supports shared libraries... " >&6; } 13735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13736printf "%s\n" "$can_build_shared" >&6; } 13737 13738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13739printf %s "checking whether to build shared libraries... " >&6; } 13740 test no = "$can_build_shared" && enable_shared=no 13741 13742 # On AIX, shared libraries and static libraries use the same namespace, and 13743 # are all built from PIC. 13744 case $host_os in 13745 aix3*) 13746 test yes = "$enable_shared" && enable_static=no 13747 if test -n "$RANLIB"; then 13748 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13749 postinstall_cmds='$RANLIB $lib' 13750 fi 13751 ;; 13752 13753 aix[4-9]*) 13754 if test ia64 != "$host_cpu"; then 13755 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13756 yes,aix,yes) ;; # shared object as lib.so file only 13757 yes,svr4,*) ;; # shared object as lib.so archive member only 13758 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13759 esac 13760 fi 13761 ;; 13762 esac 13763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13764printf "%s\n" "$enable_shared" >&6; } 13765 13766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13767printf %s "checking whether to build static libraries... " >&6; } 13768 # Make sure either enable_shared or enable_static is yes. 13769 test yes = "$enable_shared" || enable_static=yes 13770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13771printf "%s\n" "$enable_static" >&6; } 13772 13773 13774 13775 13776fi 13777ac_ext=c 13778ac_cpp='$CPP $CPPFLAGS' 13779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13781ac_compiler_gnu=$ac_cv_c_compiler_gnu 13782 13783CC=$lt_save_CC 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798 13799 ac_config_commands="$ac_config_commands libtool" 13800 13801 13802 13803 13804# Only expand once: 13805 13806 13807 13808 13809 13810 13811# Some awk implementations crash when confronted with pnglibconf.dfa. 13812# Run a test now, to make sure this doesn't happen. 13813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if awk ($AWK) works" >&5 13814printf %s "checking if awk ($AWK) works... " >&6; } 13815if ${AWK} -f ${srcdir}/scripts/options.awk out="/dev/null" version=search\ 13816 ${srcdir}/pngconf.h ${srcdir}/scripts/pnglibconf.dfa\ 13817 ${srcdir}/pngusr.dfa 1>&2 13818then 13819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13820printf "%s\n" "yes" >&6; } 13821else 13822 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13823printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13824as_fn_error 1 "no 13825See 'config.log' for more details" "$LINENO" 5; } 13826fi 13827 13828# This is a remnant of the old cc -E validation, where it may have been 13829# necessary to use a different preprocessor for .dfn files 13830DFNCPP="$CPP" 13831 13832 13833# Check whether --enable-tests was given. 13834if test ${enable_tests+y} 13835then : 13836 enableval=$enable_tests; enable_tests="$enableval" 13837else case e in #( 13838 e) enable_tests=yes ;; 13839esac 13840fi 13841 13842 13843 if test "$enable_tests" != "no"; then 13844 ENABLE_TESTS_TRUE= 13845 ENABLE_TESTS_FALSE='#' 13846else 13847 ENABLE_TESTS_TRUE='#' 13848 ENABLE_TESTS_FALSE= 13849fi 13850 13851 13852# Check whether --enable-tools was given. 13853if test ${enable_tools+y} 13854then : 13855 enableval=$enable_tools; enable_tools="$enableval" 13856else case e in #( 13857 e) enable_tools=yes ;; 13858esac 13859fi 13860 13861 13862 if test "$enable_tools" != "no"; then 13863 ENABLE_TOOLS_TRUE= 13864 ENABLE_TOOLS_FALSE='#' 13865else 13866 ENABLE_TOOLS_TRUE='#' 13867 ENABLE_TOOLS_FALSE= 13868fi 13869 13870 13871# -Werror cannot be passed to GCC in CFLAGS because configure will fail 13872# (it checks the compiler with a program that generates a warning). 13873# Add the following option to deal with this: 13874 13875# Check whether --enable-werror was given. 13876if test ${enable_werror+y} 13877then : 13878 enableval=$enable_werror; test "$enable_werror" = "yes" && enable_werror="-Werror" 13879 if test "$enable_werror" != "no"; then 13880 sav_CFLAGS="$CFLAGS" 13881 CFLAGS="$enable_werror $CFLAGS" 13882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler allows $enable_werror" >&5 13883printf %s "checking if the compiler allows $enable_werror... " >&6; } 13884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13885/* end confdefs.h. */ 13886 13887 int main(int argc, char **argv){ 13888 return argv[argc-1][0]; 13889 } 13890_ACEOF 13891if ac_fn_c_try_compile "$LINENO" 13892then : 13893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13894printf "%s\n" "yes" >&6; } 13895 PNG_COPTS="$PNG_COPTS $enable_werror" 13896else case e in #( 13897 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13898printf "%s\n" "no" >&6; } ;; 13899esac 13900fi 13901rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13902 CFLAGS="$sav_CFLAGS" 13903 fi 13904fi 13905 13906 13907# For GCC 5 the default mode for C is -std=gnu11 instead of -std=gnu89. 13908# In pngpriv.h we request just the POSIX 1003.1 and C89 APIs by defining 13909# _POSIX_SOURCE to 1. This is incompatible with the new default mode, so 13910# we test for that and force the "-std=c89" compiler option: 13911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we need to force back C standard to C89" >&5 13912printf %s "checking if we need to force back C standard to C89... " >&6; } 13913cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13914/* end confdefs.h. */ 13915 13916 #define _POSIX_SOURCE 1 13917 #include <stdio.h> 13918 13919int 13920main (void) 13921{ 13922 13923 ; 13924 return 0; 13925} 13926_ACEOF 13927if ac_fn_c_try_compile "$LINENO" 13928then : 13929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13930printf "%s\n" "no" >&6; } 13931else case e in #( 13932 e) 13933 if test "x$GCC" != "xyes"; then 13934 as_fn_error $? "Forcing back to C89 is required but the flags are only known for GCC" "$LINENO" 5 13935 fi 13936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13937printf "%s\n" "yes" >&6; } 13938 CFLAGS="$CFLAGS -std=c89" 13939 ;; 13940esac 13941fi 13942rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13943 13944# Checks for structures and compiler characteristics. 13945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 13946printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; } 13947if test ${ac_cv_struct_tm+y} 13948then : 13949 printf %s "(cached) " >&6 13950else case e in #( 13951 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13952/* end confdefs.h. */ 13953#include <sys/types.h> 13954#include <time.h> 13955 13956int 13957main (void) 13958{ 13959struct tm tm; 13960 int *p = &tm.tm_sec; 13961 return !p; 13962 ; 13963 return 0; 13964} 13965_ACEOF 13966if ac_fn_c_try_compile "$LINENO" 13967then : 13968 ac_cv_struct_tm=time.h 13969else case e in #( 13970 e) ac_cv_struct_tm=sys/time.h ;; 13971esac 13972fi 13973rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13974esac 13975fi 13976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 13977printf "%s\n" "$ac_cv_struct_tm" >&6; } 13978if test $ac_cv_struct_tm = sys/time.h; then 13979 13980printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h 13981 13982fi 13983 13984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 13985printf %s "checking for C/C++ restrict keyword... " >&6; } 13986if test ${ac_cv_c_restrict+y} 13987then : 13988 printf %s "(cached) " >&6 13989else case e in #( 13990 e) ac_cv_c_restrict=no 13991 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see: 13992 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html 13993 # Put 'restrict' last, because C++ lacks it. 13994 for ac_kw in __restrict__ __restrict _Restrict restrict; do 13995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13996/* end confdefs.h. */ 13997typedef int *int_ptr; 13998 int foo (int_ptr $ac_kw ip) { return ip[0]; } 13999 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */ 14000 int bar (int ip[$ac_kw]) { return ip[0]; } 14001 14002int 14003main (void) 14004{ 14005int s[1]; 14006 int *$ac_kw t = s; 14007 t[0] = 0; 14008 return foo (t) + bar (t); 14009 14010 ; 14011 return 0; 14012} 14013_ACEOF 14014if ac_fn_c_try_compile "$LINENO" 14015then : 14016 ac_cv_c_restrict=$ac_kw 14017fi 14018rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14019 test "$ac_cv_c_restrict" != no && break 14020 done 14021 ;; 14022esac 14023fi 14024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 14025printf "%s\n" "$ac_cv_c_restrict" >&6; } 14026 14027 case $ac_cv_c_restrict in 14028 restrict) ;; 14029 no) printf "%s\n" "#define restrict /**/" >>confdefs.h 14030 ;; 14031 *) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h 14032 ;; 14033 esac 14034 14035 14036# Checks for library functions. 14037 14038 for ac_func in pow 14039do : 14040 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" 14041if test "x$ac_cv_func_pow" = xyes 14042then : 14043 printf "%s\n" "#define HAVE_POW 1" >>confdefs.h 14044 14045else case e in #( 14046 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 14047printf %s "checking for pow in -lm... " >&6; } 14048if test ${ac_cv_lib_m_pow+y} 14049then : 14050 printf %s "(cached) " >&6 14051else case e in #( 14052 e) ac_check_lib_save_LIBS=$LIBS 14053LIBS="-lm $LIBS" 14054cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14055/* end confdefs.h. */ 14056 14057/* Override any GCC internal prototype to avoid an error. 14058 Use char because int might match the return type of a GCC 14059 builtin and then its argument prototype would still apply. 14060 The 'extern "C"' is for builds by C++ compilers; 14061 although this is not generally supported in C code supporting it here 14062 has little cost and some practical benefit (sr 110532). */ 14063#ifdef __cplusplus 14064extern "C" 14065#endif 14066char pow (void); 14067int 14068main (void) 14069{ 14070return pow (); 14071 ; 14072 return 0; 14073} 14074_ACEOF 14075if ac_fn_c_try_link "$LINENO" 14076then : 14077 ac_cv_lib_m_pow=yes 14078else case e in #( 14079 e) ac_cv_lib_m_pow=no ;; 14080esac 14081fi 14082rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14083 conftest$ac_exeext conftest.$ac_ext 14084LIBS=$ac_check_lib_save_LIBS ;; 14085esac 14086fi 14087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 14088printf "%s\n" "$ac_cv_lib_m_pow" >&6; } 14089if test "x$ac_cv_lib_m_pow" = xyes 14090then : 14091 printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h 14092 14093 LIBS="-lm $LIBS" 14094 14095else case e in #( 14096 e) as_fn_error $? "cannot find pow" "$LINENO" 5 ;; 14097esac 14098fi 14099 ;; 14100esac 14101fi 14102 14103done 14104 14105# Some later POSIX 1003.1 functions are required for test programs, failure 14106# here is soft (the corresponding test program is not built). 14107ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 14108if test "x$ac_cv_func_clock_gettime" = xyes 14109then : 14110 14111else case e in #( 14112 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: not building timepng" >&5 14113printf "%s\n" "$as_me: WARNING: not building timepng" >&2;} ;; 14114esac 14115fi 14116 14117 if test "$ac_cv_func_clock_gettime" = "yes"; then 14118 HAVE_CLOCK_GETTIME_TRUE= 14119 HAVE_CLOCK_GETTIME_FALSE='#' 14120else 14121 HAVE_CLOCK_GETTIME_TRUE='#' 14122 HAVE_CLOCK_GETTIME_FALSE= 14123fi 14124 14125 14126 14127# Check whether --with-zlib-prefix was given. 14128if test ${with_zlib_prefix+y} 14129then : 14130 withval=$with_zlib_prefix; ZPREFIX=${withval} 14131else case e in #( 14132 e) ZPREFIX='z_' ;; 14133esac 14134fi 14135 14136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5 14137printf %s "checking for zlibVersion in -lz... " >&6; } 14138if test ${ac_cv_lib_z_zlibVersion+y} 14139then : 14140 printf %s "(cached) " >&6 14141else case e in #( 14142 e) ac_check_lib_save_LIBS=$LIBS 14143LIBS="-lz $LIBS" 14144cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14145/* end confdefs.h. */ 14146 14147/* Override any GCC internal prototype to avoid an error. 14148 Use char because int might match the return type of a GCC 14149 builtin and then its argument prototype would still apply. 14150 The 'extern "C"' is for builds by C++ compilers; 14151 although this is not generally supported in C code supporting it here 14152 has little cost and some practical benefit (sr 110532). */ 14153#ifdef __cplusplus 14154extern "C" 14155#endif 14156char zlibVersion (void); 14157int 14158main (void) 14159{ 14160return zlibVersion (); 14161 ; 14162 return 0; 14163} 14164_ACEOF 14165if ac_fn_c_try_link "$LINENO" 14166then : 14167 ac_cv_lib_z_zlibVersion=yes 14168else case e in #( 14169 e) ac_cv_lib_z_zlibVersion=no ;; 14170esac 14171fi 14172rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14173 conftest$ac_exeext conftest.$ac_ext 14174LIBS=$ac_check_lib_save_LIBS ;; 14175esac 14176fi 14177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5 14178printf "%s\n" "$ac_cv_lib_z_zlibVersion" >&6; } 14179if test "x$ac_cv_lib_z_zlibVersion" = xyes 14180then : 14181 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h 14182 14183 LIBS="-lz $LIBS" 14184 14185else case e in #( 14186 e) as_ac_Lib=`printf "%s\n" "ac_cv_lib_z_${ZPREFIX}zlibVersion" | sed "$as_sed_sh"` 14187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ZPREFIX}zlibVersion in -lz" >&5 14188printf %s "checking for ${ZPREFIX}zlibVersion in -lz... " >&6; } 14189if eval test \${$as_ac_Lib+y} 14190then : 14191 printf %s "(cached) " >&6 14192else case e in #( 14193 e) ac_check_lib_save_LIBS=$LIBS 14194LIBS="-lz $LIBS" 14195cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14196/* end confdefs.h. */ 14197 14198/* Override any GCC internal prototype to avoid an error. 14199 Use char because int might match the return type of a GCC 14200 builtin and then its argument prototype would still apply. 14201 The 'extern "C"' is for builds by C++ compilers; 14202 although this is not generally supported in C code supporting it here 14203 has little cost and some practical benefit (sr 110532). */ 14204#ifdef __cplusplus 14205extern "C" 14206#endif 14207char ${ZPREFIX}zlibVersion (void); 14208int 14209main (void) 14210{ 14211return ${ZPREFIX}zlibVersion (); 14212 ; 14213 return 0; 14214} 14215_ACEOF 14216if ac_fn_c_try_link "$LINENO" 14217then : 14218 eval "$as_ac_Lib=yes" 14219else case e in #( 14220 e) eval "$as_ac_Lib=no" ;; 14221esac 14222fi 14223rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14224 conftest$ac_exeext conftest.$ac_ext 14225LIBS=$ac_check_lib_save_LIBS ;; 14226esac 14227fi 14228eval ac_res=\$$as_ac_Lib 14229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14230printf "%s\n" "$ac_res" >&6; } 14231if eval test \"x\$"$as_ac_Lib"\" = x"yes" 14232then : 14233 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h 14234 14235 LIBS="-lz $LIBS" 14236 14237else case e in #( 14238 e) as_fn_error $? "zlib not installed" "$LINENO" 5 ;; 14239esac 14240fi 14241 ;; 14242esac 14243fi 14244 14245 14246# The following is for pngvalid, to ensure it catches FP errors even on 14247# platforms that don't enable FP exceptions, the function appears in the math 14248# library (typically), it's not an error if it is not found. 14249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5 14250printf %s "checking for feenableexcept in -lm... " >&6; } 14251if test ${ac_cv_lib_m_feenableexcept+y} 14252then : 14253 printf %s "(cached) " >&6 14254else case e in #( 14255 e) ac_check_lib_save_LIBS=$LIBS 14256LIBS="-lm $LIBS" 14257cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14258/* end confdefs.h. */ 14259 14260/* Override any GCC internal prototype to avoid an error. 14261 Use char because int might match the return type of a GCC 14262 builtin and then its argument prototype would still apply. 14263 The 'extern "C"' is for builds by C++ compilers; 14264 although this is not generally supported in C code supporting it here 14265 has little cost and some practical benefit (sr 110532). */ 14266#ifdef __cplusplus 14267extern "C" 14268#endif 14269char feenableexcept (void); 14270int 14271main (void) 14272{ 14273return feenableexcept (); 14274 ; 14275 return 0; 14276} 14277_ACEOF 14278if ac_fn_c_try_link "$LINENO" 14279then : 14280 ac_cv_lib_m_feenableexcept=yes 14281else case e in #( 14282 e) ac_cv_lib_m_feenableexcept=no ;; 14283esac 14284fi 14285rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14286 conftest$ac_exeext conftest.$ac_ext 14287LIBS=$ac_check_lib_save_LIBS ;; 14288esac 14289fi 14290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5 14291printf "%s\n" "$ac_cv_lib_m_feenableexcept" >&6; } 14292if test "x$ac_cv_lib_m_feenableexcept" = xyes 14293then : 14294 printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h 14295 14296 LIBS="-lm $LIBS" 14297 14298fi 14299 14300ac_fn_c_check_func "$LINENO" "feenableexcept" "ac_cv_func_feenableexcept" 14301if test "x$ac_cv_func_feenableexcept" = xyes 14302then : 14303 printf "%s\n" "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h 14304 14305fi 14306 14307 14308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if using Solaris linker" >&5 14309printf %s "checking if using Solaris linker... " >&6; } 14310SLD=`$LD --version 2>&1 | grep Solaris` 14311if test "$SLD"; then 14312 have_solaris_ld=yes 14313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14314printf "%s\n" "yes" >&6; } 14315else 14316 have_solaris_ld=no 14317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14318printf "%s\n" "no" >&6; } 14319fi 14320 if test "$have_solaris_ld" = "yes"; then 14321 HAVE_SOLARIS_LD_TRUE= 14322 HAVE_SOLARIS_LD_FALSE='#' 14323else 14324 HAVE_SOLARIS_LD_TRUE='#' 14325 HAVE_SOLARIS_LD_FALSE= 14326fi 14327 14328 14329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5 14330printf %s "checking if libraries can be versioned... " >&6; } 14331# Special case for PE/COFF platforms: ld reports 14332# support for version-script, but doesn't actually 14333# DO anything with it. 14334case $host in 14335*cygwin* | *mingw32* | *interix* ) 14336 have_ld_version_script=no 14337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14338printf "%s\n" "no" >&6; } 14339;; 14340* ) 14341 14342if test "$have_solaris_ld" = "yes"; then 14343 GLD=`$LD --help < /dev/null 2>&1 | grep 'M mapfile'` 14344else 14345 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script` 14346fi 14347 14348if test "$GLD"; then 14349 have_ld_version_script=yes 14350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14351printf "%s\n" "yes" >&6; } 14352else 14353 have_ld_version_script=no 14354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14355printf "%s\n" "no" >&6; } 14356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** You have not enabled versioned symbols." >&5 14357printf "%s\n" "$as_me: WARNING: *** You have not enabled versioned symbols." >&2;} 14358fi 14359;; 14360esac 14361 14362 if test "$have_ld_version_script" = "yes"; then 14363 HAVE_LD_VERSION_SCRIPT_TRUE= 14364 HAVE_LD_VERSION_SCRIPT_FALSE='#' 14365else 14366 HAVE_LD_VERSION_SCRIPT_TRUE='#' 14367 HAVE_LD_VERSION_SCRIPT_FALSE= 14368fi 14369 14370 14371if test "$have_ld_version_script" = "yes"; then 14372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for symbol prefix" >&5 14373printf %s "checking for symbol prefix... " >&6; } 14374 SYMBOL_PREFIX=`echo "PREFIX=__USER_LABEL_PREFIX__" \ 14375 | ${CPP:-${CC:-gcc} -E} - 2>&1 \ 14376 | ${EGREP:-grep} "^PREFIX=" \ 14377 | ${SED:-sed} -e "s:^PREFIX=::" -e "s:__USER_LABEL_PREFIX__::"` 14378 14379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&5 14380printf "%s\n" "$SYMBOL_PREFIX" >&6; } 14381fi 14382 14383# Substitutions for .in files 14384 14385 14386 14387 14388 14389# Additional arguments (and substitutions) 14390# Allow the pkg-config directory to be set 14391 14392# Check whether --with-pkgconfigdir was given. 14393if test ${with_pkgconfigdir+y} 14394then : 14395 withval=$with_pkgconfigdir; pkgconfigdir=${withval} 14396else case e in #( 14397 e) pkgconfigdir='${libdir}/pkgconfig' ;; 14398esac 14399fi 14400 14401 14402 14403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkgconfig directory is ${pkgconfigdir}" >&5 14404printf "%s\n" "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;} 14405 14406# Make the *-config binary config scripts optional 14407 14408# Check whether --with-binconfigs was given. 14409if test ${with_binconfigs+y} 14410then : 14411 withval=$with_binconfigs; if test "${withval}" = no; then 14412 binconfigs= 14413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libpng-config scripts will not be built" >&5 14414printf "%s\n" "$as_me: libpng-config scripts will not be built" >&6;} 14415 else 14416 binconfigs='${binconfigs}' 14417 fi 14418else case e in #( 14419 e) binconfigs='${binconfigs}' ;; 14420esac 14421fi 14422 14423 14424 14425# Support for prefixes to the API function names; this will generate defines 14426# at the start of the build to rename exported library functions 14427 14428# Check whether --with-libpng-prefix was given. 14429if test ${with_libpng_prefix+y} 14430then : 14431 withval=$with_libpng_prefix; if test "${withval:-no}" != "no"; then 14432 PNG_PREFIX=${withval} 14433 14434 fi 14435fi 14436 14437 if test "${with_libpng_prefix:-no}" != "no"; then 14438 DO_PNG_PREFIX_TRUE= 14439 DO_PNG_PREFIX_FALSE='#' 14440else 14441 DO_PNG_PREFIX_TRUE='#' 14442 DO_PNG_PREFIX_FALSE= 14443fi 14444 14445 14446# Control over what links are made for installed files. Versioned files are 14447# always installed, when the following options are turned on corresponding 14448# unversioned links are also created (normally as symbolic links): 14449# Check whether --enable-unversioned-links was given. 14450if test ${enable_unversioned_links+y} 14451then : 14452 enableval=$enable_unversioned_links; 14453fi 14454 14455 14456# The AM_CONDITIONAL test is written so that the default is enabled; 14457# --disable-unversioned-links must be given to turn the option off. 14458 if test "$enable_unversioned_links" != "no"; then 14459 DO_INSTALL_LINKS_TRUE= 14460 DO_INSTALL_LINKS_FALSE='#' 14461else 14462 DO_INSTALL_LINKS_TRUE='#' 14463 DO_INSTALL_LINKS_FALSE= 14464fi 14465 14466 14467# Check whether --enable-unversioned-libpng-pc was given. 14468if test ${enable_unversioned_libpng_pc+y} 14469then : 14470 enableval=$enable_unversioned_libpng_pc; 14471fi 14472 14473 if test "$enable_unversioned_libpng_pc" != "no"; then 14474 DO_INSTALL_LIBPNG_PC_TRUE= 14475 DO_INSTALL_LIBPNG_PC_FALSE='#' 14476else 14477 DO_INSTALL_LIBPNG_PC_TRUE='#' 14478 DO_INSTALL_LIBPNG_PC_FALSE= 14479fi 14480 14481 14482# Check whether --enable-unversioned-libpng-config was given. 14483if test ${enable_unversioned_libpng_config+y} 14484then : 14485 enableval=$enable_unversioned_libpng_config; 14486fi 14487 14488 if test "$enable_unversioned_libpng_config" != "no"; then 14489 DO_INSTALL_LIBPNG_CONFIG_TRUE= 14490 DO_INSTALL_LIBPNG_CONFIG_FALSE='#' 14491else 14492 DO_INSTALL_LIBPNG_CONFIG_TRUE='#' 14493 DO_INSTALL_LIBPNG_CONFIG_FALSE= 14494fi 14495 14496 14497# HOST-SPECIFIC OPTIONS 14498# ===================== 14499# 14500# DEFAULT 14501# ======= 14502# 14503# Check whether --enable-hardware-optimizations was given. 14504if test ${enable_hardware_optimizations+y} 14505then : 14506 enableval=$enable_hardware_optimizations; case "$enableval" in 14507 no|off) 14508 # disable hardware optimization on all systems: 14509 enable_arm_neon=no 14510 14511printf "%s\n" "#define PNG_ARM_NEON_OPT 0" >>confdefs.h 14512 14513 enable_mips_msa=no 14514 14515printf "%s\n" "#define PNG_MIPS_MSA_OPT 0" >>confdefs.h 14516 14517 enable_mips_mmi=no 14518 14519printf "%s\n" "#define PNG_MIPS_MMI_OPT 0" >>confdefs.h 14520 14521 enable_powerpc_vsx=no 14522 14523printf "%s\n" "#define PNG_POWERPC_VSX_OPT 0" >>confdefs.h 14524 14525 enable_intel_sse=no 14526 14527printf "%s\n" "#define PNG_INTEL_SSE_OPT 0" >>confdefs.h 14528 14529 enable_loongarch_lsx=no 14530 14531printf "%s\n" "#define PNG_LOONGARCH_LSX_OPT 0" >>confdefs.h 14532 14533 ;; 14534 *) 14535 # allow enabling hardware optimization on any system: 14536 case "$host_cpu" in 14537 arm*|aarch64*) 14538 enable_arm_neon=yes 14539 14540printf "%s\n" "#define PNG_ARM_NEON_OPT 2" >>confdefs.h 14541 14542 ;; 14543 mipsel*|mips64el*) 14544 enable_mips_mmi=yes 14545 enable_mips_msa=yes 14546 14547printf "%s\n" "#define PNG_MIPS_MMI_OPT 1" >>confdefs.h 14548 14549 14550printf "%s\n" "#define PNG_MIPS_MSA_OPT 2" >>confdefs.h 14551 14552 ;; 14553 i?86|x86_64) 14554 enable_intel_sse=yes 14555 14556printf "%s\n" "#define PNG_INTEL_SSE_OPT 1" >>confdefs.h 14557 14558 ;; 14559 powerpc*|ppc64*) 14560 enable_powerpc_vsx=yes 14561 14562printf "%s\n" "#define PNG_POWERPC_VSX_OPT 2" >>confdefs.h 14563 14564 ;; 14565 loongarch*) 14566 enable_loongarch_lsx=yes 14567 14568printf "%s\n" "#define PNG_LOONGARCH_LSX_OPT 1" >>confdefs.h 14569 14570 ;; 14571 esac 14572 ;; 14573 esac 14574fi 14575 14576 14577# ARM NEON 14578# ======== 14579 14580# Check whether --enable-arm-neon was given. 14581if test ${enable_arm_neon+y} 14582then : 14583 enableval=$enable_arm_neon; case "$enableval" in 14584 no|off) 14585 # disable the default enabling on __ARM_NEON__ systems: 14586 14587printf "%s\n" "#define PNG_ARM_NEON_OPT 0" >>confdefs.h 14588 14589 # Prevent inclusion of the assembler files below: 14590 enable_arm_neon=no ;; 14591 check) 14592 14593printf "%s\n" "#define PNG_ARM_NEON_CHECK_SUPPORTED /**/" >>confdefs.h 14594;; 14595 api) 14596 14597printf "%s\n" "#define PNG_ARM_NEON_API_SUPPORTED /**/" >>confdefs.h 14598;; 14599 yes|on) 14600 14601printf "%s\n" "#define PNG_ARM_NEON_OPT 2" >>confdefs.h 14602 14603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-arm-neon: please specify 'check' or 'api'; 14604 if you want the optimizations unconditionally, 14605 pass '-mfpu=neon' to the compiler." >&5 14606printf "%s\n" "$as_me: WARNING: --enable-arm-neon: please specify 'check' or 'api'; 14607 if you want the optimizations unconditionally, 14608 pass '-mfpu=neon' to the compiler." >&2;};; 14609 *) 14610 as_fn_error $? "--enable-arm-neon=${enable_arm_neon}: 14611 invalid argument" "$LINENO" 5 14612 esac 14613fi 14614 14615 14616# Add ARM-specific files to all builds where $host_cpu is arm ('arm*') or 14617# where ARM optimizations were explicitly requested. (This allows a fallback 14618# if a future host CPU does not match 'arm*'.) 14619 14620 if test "$enable_arm_neon" != 'no' && 14621 case "$host_cpu" in 14622 arm*|aarch64*) : ;; 14623 *) test "$enable_arm_neon" != '' ;; 14624 esac; then 14625 PNG_ARM_NEON_TRUE= 14626 PNG_ARM_NEON_FALSE='#' 14627else 14628 PNG_ARM_NEON_TRUE='#' 14629 PNG_ARM_NEON_FALSE= 14630fi 14631 14632 14633# MIPS MSA 14634# ======== 14635 14636# Check whether --enable-mips-msa was given. 14637if test ${enable_mips_msa+y} 14638then : 14639 enableval=$enable_mips_msa; case "$enableval" in 14640 no|off) 14641 # disable the default enabling on __mips_msa systems: 14642 14643printf "%s\n" "#define PNG_MIPS_MSA_OPT 0" >>confdefs.h 14644 14645 # Prevent inclusion of the assembler files below: 14646 enable_mips_msa=no ;; 14647 check) 14648 14649printf "%s\n" "#define PNG_MIPS_MSA_CHECK_SUPPORTED /**/" >>confdefs.h 14650;; 14651 api) 14652 14653printf "%s\n" "#define PNG_MIPS_MSA_API_SUPPORTED /**/" >>confdefs.h 14654;; 14655 yes|on) 14656 14657printf "%s\n" "#define PNG_MIPS_MSA_OPT 2" >>confdefs.h 14658 14659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-mips-msa: please specify 'check' or 'api'; 14660 if you want the optimizations unconditionally, 14661 pass '-mmsa -mfp64' to the compiler." >&5 14662printf "%s\n" "$as_me: WARNING: --enable-mips-msa: please specify 'check' or 'api'; 14663 if you want the optimizations unconditionally, 14664 pass '-mmsa -mfp64' to the compiler." >&2;};; 14665 *) 14666 as_fn_error $? "--enable-mips-msa=${enable_mips_msa}: 14667 invalid argument" "$LINENO" 5 14668 esac 14669fi 14670 14671 14672# Add MIPS-specific files to all builds where $host_cpu is mips ('mips*') or 14673# where MIPS optimizations were explicitly requested. (This allows a fallback 14674# if a future host CPU does not match 'mips*'.) 14675 14676 if test "$enable_mips_msa" != 'no' && 14677 case "$host_cpu" in 14678 mipsel*|mips64el*) : ;; 14679 esac; then 14680 PNG_MIPS_MSA_TRUE= 14681 PNG_MIPS_MSA_FALSE='#' 14682else 14683 PNG_MIPS_MSA_TRUE='#' 14684 PNG_MIPS_MSA_FALSE= 14685fi 14686 14687 14688# MIPS MMI 14689# ======== 14690 14691# Check whether --enable-mips-mmi was given. 14692if test ${enable_mips_mmi+y} 14693then : 14694 enableval=$enable_mips_mmi; case "$enableval" in 14695 no|off) 14696 # disable the default enabling on __mips_mmi systems: 14697 14698printf "%s\n" "#define PNG_MIPS_MMI_OPT 0" >>confdefs.h 14699 14700 # Prevent inclusion of the assembler files below: 14701 enable_mips_mmi=no;; 14702 check) 14703 14704printf "%s\n" "#define PNG_MIPS_MMI_CHECK_SUPPORTED /**/" >>confdefs.h 14705;; 14706 api) 14707 14708printf "%s\n" "#define PNG_MIPS_MMI_API_SUPPORTED /**/" >>confdefs.h 14709;; 14710 yes|on) 14711 14712printf "%s\n" "#define PNG_MIPS_MMI_OPT 1" >>confdefs.h 14713 14714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-mips-mmi: please specify 'check' or 'api'; 14715 if you want the optimizations unconditionally 14716 pass '-mloongson-mmi -march=loongson3a' to the compiler." >&5 14717printf "%s\n" "$as_me: WARNING: --enable-mips-mmi: please specify 'check' or 'api'; 14718 if you want the optimizations unconditionally 14719 pass '-mloongson-mmi -march=loongson3a' to the compiler." >&2;};; 14720 *) 14721 as_fn_error $? "--enable-mips-mmi=${enable_mips_mmi}: 14722 invalid argument" "$LINENO" 5 14723 esac 14724fi 14725 14726 14727# Add MIPS specific files to all builds where the host_cpu is mips ('mips*') or 14728# where MIPS optimizations were explicitly requested. (This allows a fallback 14729# if a future host CPU does not match 'mips*'.) 14730 14731 if test "$enable_mips_mmi" != 'no' && 14732 case "$host_cpu" in 14733 mipsel*|mips64el*) : ;; 14734 esac; then 14735 PNG_MIPS_MMI_TRUE= 14736 PNG_MIPS_MMI_FALSE='#' 14737else 14738 PNG_MIPS_MMI_TRUE='#' 14739 PNG_MIPS_MMI_FALSE= 14740fi 14741 14742 14743# INTEL SSE 14744# ========= 14745 14746# Check whether --enable-intel-sse was given. 14747if test ${enable_intel_sse+y} 14748then : 14749 enableval=$enable_intel_sse; case "$enableval" in 14750 no|off) 14751 # disable the default enabling: 14752 14753printf "%s\n" "#define PNG_INTEL_SSE_OPT 0" >>confdefs.h 14754 14755 # Prevent inclusion of the assembler files below: 14756 enable_intel_sse=no ;; 14757 yes|on) 14758 14759printf "%s\n" "#define PNG_INTEL_SSE_OPT 1" >>confdefs.h 14760;; 14761 *) 14762 as_fn_error $? "--enable-intel-sse=${enable_intel_sse}: 14763 invalid argument" "$LINENO" 5 14764 esac 14765fi 14766 14767 14768# Add Intel-specific files to all builds where $host_cpu is Intel ('x86*') or 14769# where Intel optimizations were explicitly requested. (This allows a fallback 14770# if a future host CPU does not match 'x86*'.) 14771 if test "$enable_intel_sse" != 'no' && 14772 case "$host_cpu" in 14773 i?86|x86_64) : ;; 14774 *) test "$enable_intel_sse" != '' ;; 14775 esac; then 14776 PNG_INTEL_SSE_TRUE= 14777 PNG_INTEL_SSE_FALSE='#' 14778else 14779 PNG_INTEL_SSE_TRUE='#' 14780 PNG_INTEL_SSE_FALSE= 14781fi 14782 14783 14784# POWERPC VSX 14785# =========== 14786 14787# Check whether --enable-powerpc-vsx was given. 14788if test ${enable_powerpc_vsx+y} 14789then : 14790 enableval=$enable_powerpc_vsx; case "$enableval" in 14791 no|off) 14792 # disable the default enabling on __ppc64__ systems: 14793 14794printf "%s\n" "#define PNG_POWERPC_VSX_OPT 0" >>confdefs.h 14795 14796 # Prevent inclusion of the platform-specific files below: 14797 enable_powerpc_vsx=no ;; 14798 check) 14799 14800printf "%s\n" "#define PNG_POWERPC_VSX_CHECK_SUPPORTED /**/" >>confdefs.h 14801 14802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-powerpc-vsx: please see contrib/powerpc/README 14803 for the list of supported systems." >&5 14804printf "%s\n" "$as_me: WARNING: --enable-powerpc-vsx: please see contrib/powerpc/README 14805 for the list of supported systems." >&2;};; 14806 api) 14807 14808printf "%s\n" "#define PNG_POWERPC_VSX_API_SUPPORTED /**/" >>confdefs.h 14809;; 14810 yes|on) 14811 14812printf "%s\n" "#define PNG_POWERPC_VSX_OPT 2" >>confdefs.h 14813 14814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-powerpc-vsx: please specify 'check' or 'api'; 14815 if you want the optimizations unconditionally, 14816 pass '-maltivec -mvsx' or '-mcpu=power8' to the compiler." >&5 14817printf "%s\n" "$as_me: WARNING: --enable-powerpc-vsx: please specify 'check' or 'api'; 14818 if you want the optimizations unconditionally, 14819 pass '-maltivec -mvsx' or '-mcpu=power8' to the compiler." >&2;};; 14820 *) 14821 as_fn_error $? "--enable-powerpc-vsx=${enable_powerpc_vsx}: 14822 invalid argument" "$LINENO" 5 14823 esac 14824fi 14825 14826 14827# Add PowerPC-specific files to all builds where $host_cpu is powerpc 14828# ('powerpc*') or where PowerPC optimizations were explicitly requested. 14829# (This allows a fallback if a future host CPU does not match 'powerpc*'.) 14830 14831 if test "$enable_powerpc_vsx" != 'no' && 14832 case "$host_cpu" in 14833 powerpc*|ppc64*) : ;; 14834 esac; then 14835 PNG_POWERPC_VSX_TRUE= 14836 PNG_POWERPC_VSX_FALSE='#' 14837else 14838 PNG_POWERPC_VSX_TRUE='#' 14839 PNG_POWERPC_VSX_FALSE= 14840fi 14841 14842 14843# LOONGARCH LSX 14844# ============= 14845 14846# Check whether --enable-loongarch-lsx was given. 14847if test ${enable_loongarch_lsx+y} 14848then : 14849 enableval=$enable_loongarch_lsx; case "$enableval" in 14850 no|off) 14851 # disable the default enabling on __loongarch_simd systems: 14852 14853printf "%s\n" "#define PNG_LOONGARCH_LSX_OPT 0" >>confdefs.h 14854 14855 # Prevent inclusion of the assembler files below: 14856 enable_loongarch_lsx=no;; 14857 yes|on) 14858 14859printf "%s\n" "#define PNG_LOONGARCH_LSX_OPT 1" >>confdefs.h 14860 14861 ;; 14862 *) 14863 as_fn_error $? "--enable-loongarch-lsx=${enable_loongarch_lsx}: 14864 invalid argument" "$LINENO" 5 14865 esac 14866fi 14867 14868 14869if test "$enable_loongarch_lsx" != "no" && 14870 case "$host_cpu" in 14871 loongarch*) : ;; 14872 *) test "$enable_loongarch_lsx" != '' ;; 14873 esac 14874then 14875 compiler_support_loongarch_lsx=no 14876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use LoongArch LSX intrinsics" >&5 14877printf %s "checking whether to use LoongArch LSX intrinsics... " >&6; } 14878 save_CFLAGS="$CFLAGS" 14879 LSX_CFLAGS="${LSX_CFLAGS:-"-mlsx"}" 14880 CFLAGS="$CFLAGS $LSX_CFLAGS" 14881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14882/* end confdefs.h. */ 14883 14884#include <lsxintrin.h> 14885int main(){ 14886 __m128i a, b, c; 14887 a = __lsx_vadd_w(b, c); 14888 return 0; 14889} 14890_ACEOF 14891if ac_fn_c_try_compile "$LINENO" 14892then : 14893 compiler_support_loongarch_lsx=yes 14894fi 14895rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14896 CFLAGS="$save_CFLAGS" 14897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $compiler_support_loongarch_lsx" >&5 14898printf "%s\n" "$compiler_support_loongarch_lsx" >&6; } 14899 if test "$compiler_support_loongarch_lsx" = "yes"; then 14900 14901printf "%s\n" "#define PNG_LOONGARCH_LSX_OPT 1" >>confdefs.h 14902 14903 else 14904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support loongarch LSX." >&5 14905printf "%s\n" "$as_me: WARNING: Compiler does not support loongarch LSX." >&2;} 14906 fi 14907fi 14908 14909# Add LoongArch specific files to all builds where the host_cpu is loongarch 14910# ('loongarch*') or where LoongArch optimizations were explicitly requested. 14911# (This allows a fallback if a future host CPU does not match 'loongarch*'.) 14912 14913 if test "$enable_loongarch_lsx" != "no" && 14914 test "$compiler_support_loongarch_lsx" = "yes" && 14915 case "$host_cpu" in 14916 loongarch*) : ;; 14917 *) test "$enable_loongarch_lsx" != '' ;; 14918 esac; then 14919 PNG_LOONGARCH_LSX_TRUE= 14920 PNG_LOONGARCH_LSX_FALSE='#' 14921else 14922 PNG_LOONGARCH_LSX_TRUE='#' 14923 PNG_LOONGARCH_LSX_FALSE= 14924fi 14925 14926 14927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Extra options for compiler: $PNG_COPTS" >&5 14928printf "%s\n" "$as_me: Extra options for compiler: $PNG_COPTS" >&6;} 14929 14930# Config files, substituting as above 14931ac_config_files="$ac_config_files Makefile libpng.pc:libpng.pc.in" 14932 14933ac_config_files="$ac_config_files libpng-config:libpng-config.in" 14934 14935 14936cat >confcache <<\_ACEOF 14937# This file is a shell script that caches the results of configure 14938# tests run on this system so they can be shared between configure 14939# scripts and configure runs, see configure's option --config-cache. 14940# It is not useful on other systems. If it contains results you don't 14941# want to keep, you may remove or edit it. 14942# 14943# config.status only pays attention to the cache file if you give it 14944# the --recheck option to rerun configure. 14945# 14946# 'ac_cv_env_foo' variables (set or unset) will be overridden when 14947# loading this file, other *unset* 'ac_cv_foo' will be assigned the 14948# following values. 14949 14950_ACEOF 14951 14952# The following way of writing the cache mishandles newlines in values, 14953# but we know of no workaround that is simple, portable, and efficient. 14954# So, we kill variables containing newlines. 14955# Ultrix sh set writes to stderr and can't be redirected directly, 14956# and sets the high bit in the cache file unless we assign to the vars. 14957( 14958 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14959 eval ac_val=\$$ac_var 14960 case $ac_val in #( 14961 *${as_nl}*) 14962 case $ac_var in #( 14963 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14964printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14965 esac 14966 case $ac_var in #( 14967 _ | IFS | as_nl) ;; #( 14968 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14969 *) { eval $ac_var=; unset $ac_var;} ;; 14970 esac ;; 14971 esac 14972 done 14973 14974 (set) 2>&1 | 14975 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14976 *${as_nl}ac_space=\ *) 14977 # 'set' does not quote correctly, so add quotes: double-quote 14978 # substitution turns \\\\ into \\, and sed turns \\ into \. 14979 sed -n \ 14980 "s/'/'\\\\''/g; 14981 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14982 ;; #( 14983 *) 14984 # 'set' quotes correctly as required by POSIX, so do not add quotes. 14985 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14986 ;; 14987 esac | 14988 sort 14989) | 14990 sed ' 14991 /^ac_cv_env_/b end 14992 t clear 14993 :clear 14994 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 14995 t end 14996 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14997 :end' >>confcache 14998if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14999 if test -w "$cache_file"; then 15000 if test "x$cache_file" != "x/dev/null"; then 15001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15002printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 15003 if test ! -f "$cache_file" || test -h "$cache_file"; then 15004 cat confcache >"$cache_file" 15005 else 15006 case $cache_file in #( 15007 */* | ?:*) 15008 mv -f confcache "$cache_file"$$ && 15009 mv -f "$cache_file"$$ "$cache_file" ;; #( 15010 *) 15011 mv -f confcache "$cache_file" ;; 15012 esac 15013 fi 15014 fi 15015 else 15016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15017printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 15018 fi 15019fi 15020rm -f confcache 15021 15022test "x$prefix" = xNONE && prefix=$ac_default_prefix 15023# Let make expand exec_prefix. 15024test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15025 15026DEFS=-DHAVE_CONFIG_H 15027 15028ac_libobjs= 15029ac_ltlibobjs= 15030U= 15031for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15032 # 1. Remove the extension, and $U if already installed. 15033 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15034 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 15035 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15036 # will be set to the directory where LIBOBJS objects are built. 15037 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15038 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15039done 15040LIBOBJS=$ac_libobjs 15041 15042LTLIBOBJS=$ac_ltlibobjs 15043 15044 15045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 15046printf %s "checking that generated files are newer than configure... " >&6; } 15047 if test -n "$am_sleep_pid"; then 15048 # Hide warnings about reused PIDs. 15049 wait $am_sleep_pid 2>/dev/null 15050 fi 15051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 15052printf "%s\n" "done" >&6; } 15053case $enable_silent_rules in # ((( 15054 yes) AM_DEFAULT_VERBOSITY=0;; 15055 no) AM_DEFAULT_VERBOSITY=1;; 15056esac 15057if test $am_cv_make_support_nested_variables = yes; then 15058 AM_V='$(V)' 15059 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 15060else 15061 AM_V=$AM_DEFAULT_VERBOSITY 15062 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 15063fi 15064 15065 if test -n "$EXEEXT"; then 15066 am__EXEEXT_TRUE= 15067 am__EXEEXT_FALSE='#' 15068else 15069 am__EXEEXT_TRUE='#' 15070 am__EXEEXT_FALSE= 15071fi 15072 15073if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 15074 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 15075Usually this means the macro was only invoked conditionally." "$LINENO" 5 15076fi 15077if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 15078 as_fn_error $? "conditional \"AMDEP\" was never defined. 15079Usually this means the macro was only invoked conditionally." "$LINENO" 5 15080fi 15081if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15082 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 15083Usually this means the macro was only invoked conditionally." "$LINENO" 5 15084fi 15085if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then 15086 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. 15087Usually this means the macro was only invoked conditionally." "$LINENO" 5 15088fi 15089if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then 15090 as_fn_error $? "conditional \"ENABLE_TESTS\" was never defined. 15091Usually this means the macro was only invoked conditionally." "$LINENO" 5 15092fi 15093if test -z "${ENABLE_TOOLS_TRUE}" && test -z "${ENABLE_TOOLS_FALSE}"; then 15094 as_fn_error $? "conditional \"ENABLE_TOOLS\" was never defined. 15095Usually this means the macro was only invoked conditionally." "$LINENO" 5 15096fi 15097if test -z "${HAVE_CLOCK_GETTIME_TRUE}" && test -z "${HAVE_CLOCK_GETTIME_FALSE}"; then 15098 as_fn_error $? "conditional \"HAVE_CLOCK_GETTIME\" was never defined. 15099Usually this means the macro was only invoked conditionally." "$LINENO" 5 15100fi 15101if test -z "${HAVE_SOLARIS_LD_TRUE}" && test -z "${HAVE_SOLARIS_LD_FALSE}"; then 15102 as_fn_error $? "conditional \"HAVE_SOLARIS_LD\" was never defined. 15103Usually this means the macro was only invoked conditionally." "$LINENO" 5 15104fi 15105if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then 15106 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined. 15107Usually this means the macro was only invoked conditionally." "$LINENO" 5 15108fi 15109if test -z "${DO_PNG_PREFIX_TRUE}" && test -z "${DO_PNG_PREFIX_FALSE}"; then 15110 as_fn_error $? "conditional \"DO_PNG_PREFIX\" was never defined. 15111Usually this means the macro was only invoked conditionally." "$LINENO" 5 15112fi 15113if test -z "${DO_INSTALL_LINKS_TRUE}" && test -z "${DO_INSTALL_LINKS_FALSE}"; then 15114 as_fn_error $? "conditional \"DO_INSTALL_LINKS\" was never defined. 15115Usually this means the macro was only invoked conditionally." "$LINENO" 5 15116fi 15117if test -z "${DO_INSTALL_LIBPNG_PC_TRUE}" && test -z "${DO_INSTALL_LIBPNG_PC_FALSE}"; then 15118 as_fn_error $? "conditional \"DO_INSTALL_LIBPNG_PC\" was never defined. 15119Usually this means the macro was only invoked conditionally." "$LINENO" 5 15120fi 15121if test -z "${DO_INSTALL_LIBPNG_CONFIG_TRUE}" && test -z "${DO_INSTALL_LIBPNG_CONFIG_FALSE}"; then 15122 as_fn_error $? "conditional \"DO_INSTALL_LIBPNG_CONFIG\" was never defined. 15123Usually this means the macro was only invoked conditionally." "$LINENO" 5 15124fi 15125if test -z "${PNG_ARM_NEON_TRUE}" && test -z "${PNG_ARM_NEON_FALSE}"; then 15126 as_fn_error $? "conditional \"PNG_ARM_NEON\" was never defined. 15127Usually this means the macro was only invoked conditionally." "$LINENO" 5 15128fi 15129if test -z "${PNG_MIPS_MSA_TRUE}" && test -z "${PNG_MIPS_MSA_FALSE}"; then 15130 as_fn_error $? "conditional \"PNG_MIPS_MSA\" was never defined. 15131Usually this means the macro was only invoked conditionally." "$LINENO" 5 15132fi 15133if test -z "${PNG_MIPS_MMI_TRUE}" && test -z "${PNG_MIPS_MMI_FALSE}"; then 15134 as_fn_error $? "conditional \"PNG_MIPS_MMI\" was never defined. 15135Usually this means the macro was only invoked conditionally." "$LINENO" 5 15136fi 15137if test -z "${PNG_INTEL_SSE_TRUE}" && test -z "${PNG_INTEL_SSE_FALSE}"; then 15138 as_fn_error $? "conditional \"PNG_INTEL_SSE\" was never defined. 15139Usually this means the macro was only invoked conditionally." "$LINENO" 5 15140fi 15141if test -z "${PNG_POWERPC_VSX_TRUE}" && test -z "${PNG_POWERPC_VSX_FALSE}"; then 15142 as_fn_error $? "conditional \"PNG_POWERPC_VSX\" was never defined. 15143Usually this means the macro was only invoked conditionally." "$LINENO" 5 15144fi 15145if test -z "${PNG_LOONGARCH_LSX_TRUE}" && test -z "${PNG_LOONGARCH_LSX_FALSE}"; then 15146 as_fn_error $? "conditional \"PNG_LOONGARCH_LSX\" was never defined. 15147Usually this means the macro was only invoked conditionally." "$LINENO" 5 15148fi 15149 15150: "${CONFIG_STATUS=./config.status}" 15151ac_write_fail=0 15152ac_clean_files_save=$ac_clean_files 15153ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15155printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 15156as_write_fail=0 15157cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15158#! $SHELL 15159# Generated by $as_me. 15160# Run this file to recreate the current configuration. 15161# Compiler output produced by configure, useful for debugging 15162# configure, is in config.log if it exists. 15163 15164debug=false 15165ac_cs_recheck=false 15166ac_cs_silent=false 15167 15168SHELL=\${CONFIG_SHELL-$SHELL} 15169export SHELL 15170_ASEOF 15171cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15172## -------------------- ## 15173## M4sh Initialization. ## 15174## -------------------- ## 15175 15176# Be more Bourne compatible 15177DUALCASE=1; export DUALCASE # for MKS sh 15178if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 15179then : 15180 emulate sh 15181 NULLCMD=: 15182 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15183 # is contrary to our usage. Disable this feature. 15184 alias -g '${1+"$@"}'='"$@"' 15185 setopt NO_GLOB_SUBST 15186else case e in #( 15187 e) case `(set -o) 2>/dev/null` in #( 15188 *posix*) : 15189 set -o posix ;; #( 15190 *) : 15191 ;; 15192esac ;; 15193esac 15194fi 15195 15196 15197 15198# Reset variables that may have inherited troublesome values from 15199# the environment. 15200 15201# IFS needs to be set, to space, tab, and newline, in precisely that order. 15202# (If _AS_PATH_WALK were called with IFS unset, it would have the 15203# side effect of setting IFS to empty, thus disabling word splitting.) 15204# Quoting is to prevent editors from complaining about space-tab. 15205as_nl=' 15206' 15207export as_nl 15208IFS=" "" $as_nl" 15209 15210PS1='$ ' 15211PS2='> ' 15212PS4='+ ' 15213 15214# Ensure predictable behavior from utilities with locale-dependent output. 15215LC_ALL=C 15216export LC_ALL 15217LANGUAGE=C 15218export LANGUAGE 15219 15220# We cannot yet rely on "unset" to work, but we need these variables 15221# to be unset--not just set to an empty or harmless value--now, to 15222# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 15223# also avoids known problems related to "unset" and subshell syntax 15224# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 15225for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 15226do eval test \${$as_var+y} \ 15227 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15228done 15229 15230# Ensure that fds 0, 1, and 2 are open. 15231if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 15232if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 15233if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 15234 15235# The user is always right. 15236if ${PATH_SEPARATOR+false} :; then 15237 PATH_SEPARATOR=: 15238 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15239 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15240 PATH_SEPARATOR=';' 15241 } 15242fi 15243 15244 15245# Find who we are. Look in the path if we contain no directory separator. 15246as_myself= 15247case $0 in #(( 15248 *[\\/]* ) as_myself=$0 ;; 15249 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15250for as_dir in $PATH 15251do 15252 IFS=$as_save_IFS 15253 case $as_dir in #((( 15254 '') as_dir=./ ;; 15255 */) ;; 15256 *) as_dir=$as_dir/ ;; 15257 esac 15258 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 15259 done 15260IFS=$as_save_IFS 15261 15262 ;; 15263esac 15264# We did not find ourselves, most probably we were run as 'sh COMMAND' 15265# in which case we are not to be found in the path. 15266if test "x$as_myself" = x; then 15267 as_myself=$0 15268fi 15269if test ! -f "$as_myself"; then 15270 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15271 exit 1 15272fi 15273 15274 15275 15276# as_fn_error STATUS ERROR [LINENO LOG_FD] 15277# ---------------------------------------- 15278# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15279# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15280# script with STATUS, using 1 if that was 0. 15281as_fn_error () 15282{ 15283 as_status=$1; test $as_status -eq 0 && as_status=1 15284 if test "$4"; then 15285 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15286 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 15287 fi 15288 printf "%s\n" "$as_me: error: $2" >&2 15289 as_fn_exit $as_status 15290} # as_fn_error 15291 15292 15293# as_fn_set_status STATUS 15294# ----------------------- 15295# Set $? to STATUS, without forking. 15296as_fn_set_status () 15297{ 15298 return $1 15299} # as_fn_set_status 15300 15301# as_fn_exit STATUS 15302# ----------------- 15303# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15304as_fn_exit () 15305{ 15306 set +e 15307 as_fn_set_status $1 15308 exit $1 15309} # as_fn_exit 15310 15311# as_fn_unset VAR 15312# --------------- 15313# Portably unset VAR. 15314as_fn_unset () 15315{ 15316 { eval $1=; unset $1;} 15317} 15318as_unset=as_fn_unset 15319 15320# as_fn_append VAR VALUE 15321# ---------------------- 15322# Append the text in VALUE to the end of the definition contained in VAR. Take 15323# advantage of any shell optimizations that allow amortized linear growth over 15324# repeated appends, instead of the typical quadratic growth present in naive 15325# implementations. 15326if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 15327then : 15328 eval 'as_fn_append () 15329 { 15330 eval $1+=\$2 15331 }' 15332else case e in #( 15333 e) as_fn_append () 15334 { 15335 eval $1=\$$1\$2 15336 } ;; 15337esac 15338fi # as_fn_append 15339 15340# as_fn_arith ARG... 15341# ------------------ 15342# Perform arithmetic evaluation on the ARGs, and store the result in the 15343# global $as_val. Take advantage of shells that can avoid forks. The arguments 15344# must be portable across $(()) and expr. 15345if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 15346then : 15347 eval 'as_fn_arith () 15348 { 15349 as_val=$(( $* )) 15350 }' 15351else case e in #( 15352 e) as_fn_arith () 15353 { 15354 as_val=`expr "$@" || test $? -eq 1` 15355 } ;; 15356esac 15357fi # as_fn_arith 15358 15359 15360if expr a : '\(a\)' >/dev/null 2>&1 && 15361 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15362 as_expr=expr 15363else 15364 as_expr=false 15365fi 15366 15367if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15368 as_basename=basename 15369else 15370 as_basename=false 15371fi 15372 15373if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15374 as_dirname=dirname 15375else 15376 as_dirname=false 15377fi 15378 15379as_me=`$as_basename -- "$0" || 15380$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15381 X"$0" : 'X\(//\)$' \| \ 15382 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15383printf "%s\n" X/"$0" | 15384 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15385 s//\1/ 15386 q 15387 } 15388 /^X\/\(\/\/\)$/{ 15389 s//\1/ 15390 q 15391 } 15392 /^X\/\(\/\).*/{ 15393 s//\1/ 15394 q 15395 } 15396 s/.*/./; q'` 15397 15398# Avoid depending upon Character Ranges. 15399as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15400as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15401as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15402as_cr_digits='0123456789' 15403as_cr_alnum=$as_cr_Letters$as_cr_digits 15404 15405 15406# Determine whether it's possible to make 'echo' print without a newline. 15407# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 15408# for compatibility with existing Makefiles. 15409ECHO_C= ECHO_N= ECHO_T= 15410case `echo -n x` in #((((( 15411-n*) 15412 case `echo 'xy\c'` in 15413 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15414 xy) ECHO_C='\c';; 15415 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15416 ECHO_T=' ';; 15417 esac;; 15418*) 15419 ECHO_N='-n';; 15420esac 15421 15422# For backward compatibility with old third-party macros, we provide 15423# the shell variables $as_echo and $as_echo_n. New code should use 15424# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 15425as_echo='printf %s\n' 15426as_echo_n='printf %s' 15427 15428rm -f conf$$ conf$$.exe conf$$.file 15429if test -d conf$$.dir; then 15430 rm -f conf$$.dir/conf$$.file 15431else 15432 rm -f conf$$.dir 15433 mkdir conf$$.dir 2>/dev/null 15434fi 15435if (echo >conf$$.file) 2>/dev/null; then 15436 if ln -s conf$$.file conf$$ 2>/dev/null; then 15437 as_ln_s='ln -s' 15438 # ... but there are two gotchas: 15439 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 15440 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 15441 # In both cases, we have to default to 'cp -pR'. 15442 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15443 as_ln_s='cp -pR' 15444 elif ln conf$$.file conf$$ 2>/dev/null; then 15445 as_ln_s=ln 15446 else 15447 as_ln_s='cp -pR' 15448 fi 15449else 15450 as_ln_s='cp -pR' 15451fi 15452rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15453rmdir conf$$.dir 2>/dev/null 15454 15455 15456# as_fn_mkdir_p 15457# ------------- 15458# Create "$as_dir" as a directory, including parents if necessary. 15459as_fn_mkdir_p () 15460{ 15461 15462 case $as_dir in #( 15463 -*) as_dir=./$as_dir;; 15464 esac 15465 test -d "$as_dir" || eval $as_mkdir_p || { 15466 as_dirs= 15467 while :; do 15468 case $as_dir in #( 15469 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15470 *) as_qdir=$as_dir;; 15471 esac 15472 as_dirs="'$as_qdir' $as_dirs" 15473 as_dir=`$as_dirname -- "$as_dir" || 15474$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15475 X"$as_dir" : 'X\(//\)[^/]' \| \ 15476 X"$as_dir" : 'X\(//\)$' \| \ 15477 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15478printf "%s\n" X"$as_dir" | 15479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15480 s//\1/ 15481 q 15482 } 15483 /^X\(\/\/\)[^/].*/{ 15484 s//\1/ 15485 q 15486 } 15487 /^X\(\/\/\)$/{ 15488 s//\1/ 15489 q 15490 } 15491 /^X\(\/\).*/{ 15492 s//\1/ 15493 q 15494 } 15495 s/.*/./; q'` 15496 test -d "$as_dir" && break 15497 done 15498 test -z "$as_dirs" || eval "mkdir $as_dirs" 15499 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 15500 15501 15502} # as_fn_mkdir_p 15503if mkdir -p . 2>/dev/null; then 15504 as_mkdir_p='mkdir -p "$as_dir"' 15505else 15506 test -d ./-p && rmdir ./-p 15507 as_mkdir_p=false 15508fi 15509 15510 15511# as_fn_executable_p FILE 15512# ----------------------- 15513# Test if FILE is an executable regular file. 15514as_fn_executable_p () 15515{ 15516 test -f "$1" && test -x "$1" 15517} # as_fn_executable_p 15518as_test_x='test -x' 15519as_executable_p=as_fn_executable_p 15520 15521# Sed expression to map a string onto a valid CPP name. 15522as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 15523as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 15524 15525# Sed expression to map a string onto a valid variable name. 15526as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 15527as_tr_sh="eval sed '$as_sed_sh'" # deprecated 15528 15529 15530exec 6>&1 15531## ----------------------------------- ## 15532## Main body of $CONFIG_STATUS script. ## 15533## ----------------------------------- ## 15534_ASEOF 15535test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15536 15537cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15538# Save the log message, to keep $0 and so on meaningful, and to 15539# report actual input values of CONFIG_FILES etc. instead of their 15540# values after options handling. 15541ac_log=" 15542This file was extended by libpng $as_me 1.6.44, which was 15543generated by GNU Autoconf 2.72. Invocation command line was 15544 15545 CONFIG_FILES = $CONFIG_FILES 15546 CONFIG_HEADERS = $CONFIG_HEADERS 15547 CONFIG_LINKS = $CONFIG_LINKS 15548 CONFIG_COMMANDS = $CONFIG_COMMANDS 15549 $ $0 $@ 15550 15551on `(hostname || uname -n) 2>/dev/null | sed 1q` 15552" 15553 15554_ACEOF 15555 15556case $ac_config_files in *" 15557"*) set x $ac_config_files; shift; ac_config_files=$*;; 15558esac 15559 15560case $ac_config_headers in *" 15561"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15562esac 15563 15564 15565cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15566# Files that config.status was made for. 15567config_files="$ac_config_files" 15568config_headers="$ac_config_headers" 15569config_commands="$ac_config_commands" 15570 15571_ACEOF 15572 15573cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15574ac_cs_usage="\ 15575'$as_me' instantiates files and other configuration actions 15576from templates according to the current configuration. Unless the files 15577and actions are specified as TAGs, all are instantiated by default. 15578 15579Usage: $0 [OPTION]... [TAG]... 15580 15581 -h, --help print this help, then exit 15582 -V, --version print version number and configuration settings, then exit 15583 --config print configuration, then exit 15584 -q, --quiet, --silent 15585 do not print progress messages 15586 -d, --debug don't remove temporary files 15587 --recheck update $as_me by reconfiguring in the same conditions 15588 --file=FILE[:TEMPLATE] 15589 instantiate the configuration file FILE 15590 --header=FILE[:TEMPLATE] 15591 instantiate the configuration header FILE 15592 15593Configuration files: 15594$config_files 15595 15596Configuration headers: 15597$config_headers 15598 15599Configuration commands: 15600$config_commands 15601 15602Report bugs to <[email protected]>." 15603 15604_ACEOF 15605ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 15606ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 15607cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15608ac_cs_config='$ac_cs_config_escaped' 15609ac_cs_version="\\ 15610libpng config.status 1.6.44 15611configured by $0, generated by GNU Autoconf 2.72, 15612 with options \\"\$ac_cs_config\\" 15613 15614Copyright (C) 2023 Free Software Foundation, Inc. 15615This config.status script is free software; the Free Software Foundation 15616gives unlimited permission to copy, distribute and modify it." 15617 15618ac_pwd='$ac_pwd' 15619srcdir='$srcdir' 15620INSTALL='$INSTALL' 15621MKDIR_P='$MKDIR_P' 15622AWK='$AWK' 15623test -n "\$AWK" || AWK=awk 15624_ACEOF 15625 15626cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15627# The default lists apply if the user does not specify any file. 15628ac_need_defaults=: 15629while test $# != 0 15630do 15631 case $1 in 15632 --*=?*) 15633 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15634 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15635 ac_shift=: 15636 ;; 15637 --*=) 15638 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15639 ac_optarg= 15640 ac_shift=: 15641 ;; 15642 *) 15643 ac_option=$1 15644 ac_optarg=$2 15645 ac_shift=shift 15646 ;; 15647 esac 15648 15649 case $ac_option in 15650 # Handling of the options. 15651 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15652 ac_cs_recheck=: ;; 15653 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15654 printf "%s\n" "$ac_cs_version"; exit ;; 15655 --config | --confi | --conf | --con | --co | --c ) 15656 printf "%s\n" "$ac_cs_config"; exit ;; 15657 --debug | --debu | --deb | --de | --d | -d ) 15658 debug=: ;; 15659 --file | --fil | --fi | --f ) 15660 $ac_shift 15661 case $ac_optarg in 15662 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15663 '') as_fn_error $? "missing file argument" ;; 15664 esac 15665 as_fn_append CONFIG_FILES " '$ac_optarg'" 15666 ac_need_defaults=false;; 15667 --header | --heade | --head | --hea ) 15668 $ac_shift 15669 case $ac_optarg in 15670 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15671 esac 15672 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 15673 ac_need_defaults=false;; 15674 --he | --h) 15675 # Conflict between --help and --header 15676 as_fn_error $? "ambiguous option: '$1' 15677Try '$0 --help' for more information.";; 15678 --help | --hel | -h ) 15679 printf "%s\n" "$ac_cs_usage"; exit ;; 15680 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15681 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15682 ac_cs_silent=: ;; 15683 15684 # This is an error. 15685 -*) as_fn_error $? "unrecognized option: '$1' 15686Try '$0 --help' for more information." ;; 15687 15688 *) as_fn_append ac_config_targets " $1" 15689 ac_need_defaults=false ;; 15690 15691 esac 15692 shift 15693done 15694 15695ac_configure_extra_args= 15696 15697if $ac_cs_silent; then 15698 exec 6>/dev/null 15699 ac_configure_extra_args="$ac_configure_extra_args --silent" 15700fi 15701 15702_ACEOF 15703cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15704if \$ac_cs_recheck; then 15705 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15706 shift 15707 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 15708 CONFIG_SHELL='$SHELL' 15709 export CONFIG_SHELL 15710 exec "\$@" 15711fi 15712 15713_ACEOF 15714cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15715exec 5>>config.log 15716{ 15717 echo 15718 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15719## Running $as_me. ## 15720_ASBOX 15721 printf "%s\n" "$ac_log" 15722} >&5 15723 15724_ACEOF 15725cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15726# 15727# INIT-COMMANDS 15728# 15729AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 15730 15731 15732# The HP-UX ksh and POSIX shell print the target directory to stdout 15733# if CDPATH is set. 15734(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15735 15736sed_quote_subst='$sed_quote_subst' 15737double_quote_subst='$double_quote_subst' 15738delay_variable_subst='$delay_variable_subst' 15739SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 15740Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 15741GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 15742EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 15743FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 15744SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 15745ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 15746LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 15747macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 15748macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 15749AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 15750DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 15751OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 15752enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 15753enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 15754pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 15755enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 15756shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 15757PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 15758host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 15759host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 15760host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 15761build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 15762build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 15763build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 15764NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 15765LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 15766max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 15767ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 15768exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 15769lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 15770lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 15771lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 15772lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 15773lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 15774reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 15775reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 15776FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 15777deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 15778file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 15779file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 15780want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 15781sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 15782AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 15783lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 15784AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 15785archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 15786STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 15787RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 15788old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15789old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15790old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 15791lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 15792CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 15793CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 15794compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 15795GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 15796lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 15797lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 15798lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 15799lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 15800lt_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"`' 15801lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 15802nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 15803lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 15804lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 15805objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 15806MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 15807lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 15808lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 15809lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 15810lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 15811lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 15812need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 15813MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 15814DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 15815NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 15816LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 15817OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 15818OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 15819libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 15820shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 15821extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15822archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 15823enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 15824export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 15825whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 15826compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 15827old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 15828old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15829archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 15830archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15831module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 15832module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15833with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 15834allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 15835no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 15836hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 15837hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 15838hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 15839hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 15840hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 15841hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 15842hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 15843inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 15844link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 15845always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 15846export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 15847exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 15848include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 15849prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 15850postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 15851file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 15852variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 15853need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 15854need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 15855version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 15856runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 15857shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 15858shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 15859libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 15860library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 15861soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 15862install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 15863postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15864postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15865finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 15866finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 15867hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 15868sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 15869configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 15870configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 15871hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 15872enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 15873enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 15874enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 15875old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 15876striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 15877 15878LTCC='$LTCC' 15879LTCFLAGS='$LTCFLAGS' 15880compiler='$compiler_DEFAULT' 15881 15882# A function that is used when there is no print builtin or printf. 15883func_fallback_echo () 15884{ 15885 eval 'cat <<_LTECHO_EOF 15886\$1 15887_LTECHO_EOF' 15888} 15889 15890# Quote evaled strings. 15891for var in SED \ 15892GREP \ 15893EGREP \ 15894FGREP \ 15895SHELL \ 15896ECHO \ 15897LD \ 15898AS \ 15899DLLTOOL \ 15900OBJDUMP \ 15901PATH_SEPARATOR \ 15902NM \ 15903LN_S \ 15904lt_SP2NL \ 15905lt_NL2SP \ 15906reload_flag \ 15907FILECMD \ 15908deplibs_check_method \ 15909file_magic_cmd \ 15910file_magic_glob \ 15911want_nocaseglob \ 15912sharedlib_from_linklib_cmd \ 15913AR \ 15914archiver_list_spec \ 15915STRIP \ 15916RANLIB \ 15917CC \ 15918CFLAGS \ 15919compiler \ 15920lt_cv_sys_global_symbol_pipe \ 15921lt_cv_sys_global_symbol_to_cdecl \ 15922lt_cv_sys_global_symbol_to_import \ 15923lt_cv_sys_global_symbol_to_c_name_address \ 15924lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 15925lt_cv_nm_interface \ 15926nm_file_list_spec \ 15927lt_cv_truncate_bin \ 15928lt_prog_compiler_no_builtin_flag \ 15929lt_prog_compiler_pic \ 15930lt_prog_compiler_wl \ 15931lt_prog_compiler_static \ 15932lt_cv_prog_compiler_c_o \ 15933need_locks \ 15934MANIFEST_TOOL \ 15935DSYMUTIL \ 15936NMEDIT \ 15937LIPO \ 15938OTOOL \ 15939OTOOL64 \ 15940shrext_cmds \ 15941export_dynamic_flag_spec \ 15942whole_archive_flag_spec \ 15943compiler_needs_object \ 15944with_gnu_ld \ 15945allow_undefined_flag \ 15946no_undefined_flag \ 15947hardcode_libdir_flag_spec \ 15948hardcode_libdir_separator \ 15949exclude_expsyms \ 15950include_expsyms \ 15951file_list_spec \ 15952variables_saved_for_relink \ 15953libname_spec \ 15954library_names_spec \ 15955soname_spec \ 15956install_override_mode \ 15957finish_eval \ 15958old_striplib \ 15959striplib; do 15960 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15961 *[\\\\\\\`\\"\\\$]*) 15962 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 15963 ;; 15964 *) 15965 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15966 ;; 15967 esac 15968done 15969 15970# Double-quote double-evaled strings. 15971for var in reload_cmds \ 15972old_postinstall_cmds \ 15973old_postuninstall_cmds \ 15974old_archive_cmds \ 15975extract_expsyms_cmds \ 15976old_archive_from_new_cmds \ 15977old_archive_from_expsyms_cmds \ 15978archive_cmds \ 15979archive_expsym_cmds \ 15980module_cmds \ 15981module_expsym_cmds \ 15982export_symbols_cmds \ 15983prelink_cmds \ 15984postlink_cmds \ 15985postinstall_cmds \ 15986postuninstall_cmds \ 15987finish_cmds \ 15988sys_lib_search_path_spec \ 15989configure_time_dlsearch_path \ 15990configure_time_lt_sys_library_path; do 15991 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15992 *[\\\\\\\`\\"\\\$]*) 15993 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 15994 ;; 15995 *) 15996 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15997 ;; 15998 esac 15999done 16000 16001ac_aux_dir='$ac_aux_dir' 16002 16003# See if we are running on zsh, and set the options that allow our 16004# commands through without removal of \ escapes INIT. 16005if test -n "\${ZSH_VERSION+set}"; then 16006 setopt NO_GLOB_SUBST 16007fi 16008 16009 16010 PACKAGE='$PACKAGE' 16011 VERSION='$VERSION' 16012 RM='$RM' 16013 ofile='$ofile' 16014 16015 16016 16017 16018_ACEOF 16019 16020cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16021 16022# Handling of arguments. 16023for ac_config_target in $ac_config_targets 16024do 16025 case $ac_config_target in 16026 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 16027 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16028 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16029 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16030 "libpng.pc") CONFIG_FILES="$CONFIG_FILES libpng.pc:libpng.pc.in" ;; 16031 "libpng-config") CONFIG_FILES="$CONFIG_FILES libpng-config:libpng-config.in" ;; 16032 16033 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 16034 esac 16035done 16036 16037 16038# If the user did not use the arguments to specify the items to instantiate, 16039# then the envvar interface is used. Set only those that are not. 16040# We use the long form for the default assignment because of an extremely 16041# bizarre bug on SunOS 4.1.3. 16042if $ac_need_defaults; then 16043 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 16044 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 16045 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 16046fi 16047 16048# Have a temporary directory for convenience. Make it in the build tree 16049# simply because there is no reason against having it here, and in addition, 16050# creating and moving files from /tmp can sometimes cause problems. 16051# Hook for its removal unless debugging. 16052# Note that there is a small window in which the directory will not be cleaned: 16053# after its creation but before its name has been assigned to '$tmp'. 16054$debug || 16055{ 16056 tmp= ac_tmp= 16057 trap 'exit_status=$? 16058 : "${ac_tmp:=$tmp}" 16059 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 16060' 0 16061 trap 'as_fn_exit 1' 1 2 13 15 16062} 16063# Create a (secure) tmp directory for tmp files. 16064 16065{ 16066 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16067 test -d "$tmp" 16068} || 16069{ 16070 tmp=./conf$$-$RANDOM 16071 (umask 077 && mkdir "$tmp") 16072} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 16073ac_tmp=$tmp 16074 16075# Set up the scripts for CONFIG_FILES section. 16076# No need to generate them if there are no CONFIG_FILES. 16077# This happens for instance with './config.status config.h'. 16078if test -n "$CONFIG_FILES"; then 16079 16080 16081ac_cr=`echo X | tr X '\015'` 16082# On cygwin, bash can eat \r inside `` if the user requested igncr. 16083# But we know of no other shell where ac_cr would be empty at this 16084# point, so we can use a bashism as a fallback. 16085if test "x$ac_cr" = x; then 16086 eval ac_cr=\$\'\\r\' 16087fi 16088ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16089if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16090 ac_cs_awk_cr='\\r' 16091else 16092 ac_cs_awk_cr=$ac_cr 16093fi 16094 16095echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 16096_ACEOF 16097 16098 16099{ 16100 echo "cat >conf$$subs.awk <<_ACEOF" && 16101 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16102 echo "_ACEOF" 16103} >conf$$subs.sh || 16104 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16105ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 16106ac_delim='%!_!# ' 16107for ac_last_try in false false false false false :; do 16108 . ./conf$$subs.sh || 16109 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16110 16111 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16112 if test $ac_delim_n = $ac_delim_num; then 16113 break 16114 elif $ac_last_try; then 16115 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16116 else 16117 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16118 fi 16119done 16120rm -f conf$$subs.sh 16121 16122cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16123cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 16124_ACEOF 16125sed -n ' 16126h 16127s/^/S["/; s/!.*/"]=/ 16128p 16129g 16130s/^[^!]*!// 16131:repl 16132t repl 16133s/'"$ac_delim"'$// 16134t delim 16135:nl 16136h 16137s/\(.\{148\}\)..*/\1/ 16138t more1 16139s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16140p 16141n 16142b repl 16143:more1 16144s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16145p 16146g 16147s/.\{148\}// 16148t nl 16149:delim 16150h 16151s/\(.\{148\}\)..*/\1/ 16152t more2 16153s/["\\]/\\&/g; s/^/"/; s/$/"/ 16154p 16155b 16156:more2 16157s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16158p 16159g 16160s/.\{148\}// 16161t delim 16162' <conf$$subs.awk | sed ' 16163/^[^""]/{ 16164 N 16165 s/\n// 16166} 16167' >>$CONFIG_STATUS || ac_write_fail=1 16168rm -f conf$$subs.awk 16169cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16170_ACAWK 16171cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 16172 for (key in S) S_is_set[key] = 1 16173 FS = "" 16174 16175} 16176{ 16177 line = $ 0 16178 nfields = split(line, field, "@") 16179 substed = 0 16180 len = length(field[1]) 16181 for (i = 2; i < nfields; i++) { 16182 key = field[i] 16183 keylen = length(key) 16184 if (S_is_set[key]) { 16185 value = S[key] 16186 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16187 len += length(value) + length(field[++i]) 16188 substed = 1 16189 } else 16190 len += 1 + keylen 16191 } 16192 16193 print line 16194} 16195 16196_ACAWK 16197_ACEOF 16198cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16199if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16200 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16201else 16202 cat 16203fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 16204 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 16205_ACEOF 16206 16207# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 16208# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 16209# trailing colons and then remove the whole line if VPATH becomes empty 16210# (actually we leave an empty line to preserve line numbers). 16211if test "x$srcdir" = x.; then 16212 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 16213h 16214s/// 16215s/^/:/ 16216s/[ ]*$/:/ 16217s/:\$(srcdir):/:/g 16218s/:\${srcdir}:/:/g 16219s/:@srcdir@:/:/g 16220s/^:*// 16221s/:*$// 16222x 16223s/\(=[ ]*\).*/\1/ 16224G 16225s/\n// 16226s/^[^=]*=[ ]*$// 16227}' 16228fi 16229 16230cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16231fi # test -n "$CONFIG_FILES" 16232 16233# Set up the scripts for CONFIG_HEADERS section. 16234# No need to generate them if there are no CONFIG_HEADERS. 16235# This happens for instance with './config.status Makefile'. 16236if test -n "$CONFIG_HEADERS"; then 16237cat >"$ac_tmp/defines.awk" <<\_ACAWK || 16238BEGIN { 16239_ACEOF 16240 16241# Transform confdefs.h into an awk script 'defines.awk', embedded as 16242# here-document in config.status, that substitutes the proper values into 16243# config.h.in to produce config.h. 16244 16245# Create a delimiter string that does not exist in confdefs.h, to ease 16246# handling of long lines. 16247ac_delim='%!_!# ' 16248for ac_last_try in false false :; do 16249 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 16250 if test -z "$ac_tt"; then 16251 break 16252 elif $ac_last_try; then 16253 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 16254 else 16255 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16256 fi 16257done 16258 16259# For the awk script, D is an array of macro values keyed by name, 16260# likewise P contains macro parameters if any. Preserve backslash 16261# newline sequences. 16262 16263ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16264sed -n ' 16265s/.\{148\}/&'"$ac_delim"'/g 16266t rset 16267:rset 16268s/^[ ]*#[ ]*define[ ][ ]*/ / 16269t def 16270d 16271:def 16272s/\\$// 16273t bsnl 16274s/["\\]/\\&/g 16275s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16276D["\1"]=" \3"/p 16277s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16278d 16279:bsnl 16280s/["\\]/\\&/g 16281s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16282D["\1"]=" \3\\\\\\n"\\/p 16283t cont 16284s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16285t cont 16286d 16287:cont 16288n 16289s/.\{148\}/&'"$ac_delim"'/g 16290t clear 16291:clear 16292s/\\$// 16293t bsnlc 16294s/["\\]/\\&/g; s/^/"/; s/$/"/p 16295d 16296:bsnlc 16297s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16298b cont 16299' <confdefs.h | sed ' 16300s/'"$ac_delim"'/"\\\ 16301"/g' >>$CONFIG_STATUS || ac_write_fail=1 16302 16303cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16304 for (key in D) D_is_set[key] = 1 16305 FS = "" 16306} 16307/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16308 line = \$ 0 16309 split(line, arg, " ") 16310 if (arg[1] == "#") { 16311 defundef = arg[2] 16312 mac1 = arg[3] 16313 } else { 16314 defundef = substr(arg[1], 2) 16315 mac1 = arg[2] 16316 } 16317 split(mac1, mac2, "(") #) 16318 macro = mac2[1] 16319 prefix = substr(line, 1, index(line, defundef) - 1) 16320 if (D_is_set[macro]) { 16321 # Preserve the white space surrounding the "#". 16322 print prefix "define", macro P[macro] D[macro] 16323 next 16324 } else { 16325 # Replace #undef with comments. This is necessary, for example, 16326 # in the case of _POSIX_SOURCE, which is predefined and required 16327 # on some systems where configure will not decide to define it. 16328 if (defundef == "undef") { 16329 print "/*", prefix defundef, macro, "*/" 16330 next 16331 } 16332 } 16333} 16334{ print } 16335_ACAWK 16336_ACEOF 16337cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16338 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 16339fi # test -n "$CONFIG_HEADERS" 16340 16341 16342eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 16343shift 16344for ac_tag 16345do 16346 case $ac_tag in 16347 :[FHLC]) ac_mode=$ac_tag; continue;; 16348 esac 16349 case $ac_mode$ac_tag in 16350 :[FHL]*:*);; 16351 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 16352 :[FH]-) ac_tag=-:-;; 16353 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16354 esac 16355 ac_save_IFS=$IFS 16356 IFS=: 16357 set x $ac_tag 16358 IFS=$ac_save_IFS 16359 shift 16360 ac_file=$1 16361 shift 16362 16363 case $ac_mode in 16364 :L) ac_source=$1;; 16365 :[FH]) 16366 ac_file_inputs= 16367 for ac_f 16368 do 16369 case $ac_f in 16370 -) ac_f="$ac_tmp/stdin";; 16371 *) # Look for the file first in the build tree, then in the source tree 16372 # (if the path is not absolute). The absolute path cannot be DOS-style, 16373 # because $ac_f cannot contain ':'. 16374 test -f "$ac_f" || 16375 case $ac_f in 16376 [\\/$]*) false;; 16377 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16378 esac || 16379 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 16380 esac 16381 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16382 as_fn_append ac_file_inputs " '$ac_f'" 16383 done 16384 16385 # Let's still pretend it is 'configure' which instantiates (i.e., don't 16386 # use $as_me), people would be surprised to read: 16387 # /* config.h. Generated by config.status. */ 16388 configure_input='Generated from '` 16389 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16390 `' by configure.' 16391 if test x"$ac_file" != x-; then 16392 configure_input="$ac_file. $configure_input" 16393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16394printf "%s\n" "$as_me: creating $ac_file" >&6;} 16395 fi 16396 # Neutralize special characters interpreted by sed in replacement strings. 16397 case $configure_input in #( 16398 *\&* | *\|* | *\\* ) 16399 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 16400 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16401 *) ac_sed_conf_input=$configure_input;; 16402 esac 16403 16404 case $ac_tag in 16405 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 16406 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 16407 esac 16408 ;; 16409 esac 16410 16411 ac_dir=`$as_dirname -- "$ac_file" || 16412$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16413 X"$ac_file" : 'X\(//\)[^/]' \| \ 16414 X"$ac_file" : 'X\(//\)$' \| \ 16415 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16416printf "%s\n" X"$ac_file" | 16417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16418 s//\1/ 16419 q 16420 } 16421 /^X\(\/\/\)[^/].*/{ 16422 s//\1/ 16423 q 16424 } 16425 /^X\(\/\/\)$/{ 16426 s//\1/ 16427 q 16428 } 16429 /^X\(\/\).*/{ 16430 s//\1/ 16431 q 16432 } 16433 s/.*/./; q'` 16434 as_dir="$ac_dir"; as_fn_mkdir_p 16435 ac_builddir=. 16436 16437case "$ac_dir" in 16438.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16439*) 16440 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 16441 # A ".." for each directory in $ac_dir_suffix. 16442 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16443 case $ac_top_builddir_sub in 16444 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16445 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16446 esac ;; 16447esac 16448ac_abs_top_builddir=$ac_pwd 16449ac_abs_builddir=$ac_pwd$ac_dir_suffix 16450# for backward compatibility: 16451ac_top_builddir=$ac_top_build_prefix 16452 16453case $srcdir in 16454 .) # We are building in place. 16455 ac_srcdir=. 16456 ac_top_srcdir=$ac_top_builddir_sub 16457 ac_abs_top_srcdir=$ac_pwd ;; 16458 [\\/]* | ?:[\\/]* ) # Absolute name. 16459 ac_srcdir=$srcdir$ac_dir_suffix; 16460 ac_top_srcdir=$srcdir 16461 ac_abs_top_srcdir=$srcdir ;; 16462 *) # Relative name. 16463 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16464 ac_top_srcdir=$ac_top_build_prefix$srcdir 16465 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16466esac 16467ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16468 16469 16470 case $ac_mode in 16471 :F) 16472 # 16473 # CONFIG_FILE 16474 # 16475 16476 case $INSTALL in 16477 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16478 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16479 esac 16480 ac_MKDIR_P=$MKDIR_P 16481 case $MKDIR_P in 16482 [\\/$]* | ?:[\\/]* ) ;; 16483 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 16484 esac 16485_ACEOF 16486 16487cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16488# If the template does not know about datarootdir, expand it. 16489# FIXME: This hack should be removed a few years after 2.60. 16490ac_datarootdir_hack=; ac_datarootdir_seen= 16491ac_sed_dataroot=' 16492/datarootdir/ { 16493 p 16494 q 16495} 16496/@datadir@/p 16497/@docdir@/p 16498/@infodir@/p 16499/@localedir@/p 16500/@mandir@/p' 16501case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16502*datarootdir*) ac_datarootdir_seen=yes;; 16503*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16505printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16506_ACEOF 16507cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16508 ac_datarootdir_hack=' 16509 s&@datadir@&$datadir&g 16510 s&@docdir@&$docdir&g 16511 s&@infodir@&$infodir&g 16512 s&@localedir@&$localedir&g 16513 s&@mandir@&$mandir&g 16514 s&\\\${datarootdir}&$datarootdir&g' ;; 16515esac 16516_ACEOF 16517 16518# Neutralize VPATH when '$srcdir' = '.'. 16519# Shell code in configure.ac might set extrasub. 16520# FIXME: do we really want to maintain this feature? 16521cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16522ac_sed_extra="$ac_vpsub 16523$extrasub 16524_ACEOF 16525cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16526:t 16527/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16528s|@configure_input@|$ac_sed_conf_input|;t t 16529s&@top_builddir@&$ac_top_builddir_sub&;t t 16530s&@top_build_prefix@&$ac_top_build_prefix&;t t 16531s&@srcdir@&$ac_srcdir&;t t 16532s&@abs_srcdir@&$ac_abs_srcdir&;t t 16533s&@top_srcdir@&$ac_top_srcdir&;t t 16534s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16535s&@builddir@&$ac_builddir&;t t 16536s&@abs_builddir@&$ac_abs_builddir&;t t 16537s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16538s&@INSTALL@&$ac_INSTALL&;t t 16539s&@MKDIR_P@&$ac_MKDIR_P&;t t 16540$ac_datarootdir_hack 16541" 16542eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 16543 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16544 16545test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16546 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 16547 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 16548 "$ac_tmp/out"`; test -z "$ac_out"; } && 16549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 16550which seems to be undefined. Please make sure it is defined" >&5 16551printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 16552which seems to be undefined. Please make sure it is defined" >&2;} 16553 16554 rm -f "$ac_tmp/stdin" 16555 case $ac_file in 16556 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 16557 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 16558 esac \ 16559 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16560 ;; 16561 :H) 16562 # 16563 # CONFIG_HEADER 16564 # 16565 if test x"$ac_file" != x-; then 16566 { 16567 printf "%s\n" "/* $configure_input */" >&1 \ 16568 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 16569 } >"$ac_tmp/config.h" \ 16570 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16571 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 16572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 16573printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 16574 else 16575 rm -f "$ac_file" 16576 mv "$ac_tmp/config.h" "$ac_file" \ 16577 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16578 fi 16579 else 16580 printf "%s\n" "/* $configure_input */" >&1 \ 16581 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 16582 || as_fn_error $? "could not create -" "$LINENO" 5 16583 fi 16584# Compute "$ac_file"'s index in $config_headers. 16585_am_arg="$ac_file" 16586_am_stamp_count=1 16587for _am_header in $config_headers :; do 16588 case $_am_header in 16589 $_am_arg | $_am_arg:* ) 16590 break ;; 16591 * ) 16592 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 16593 esac 16594done 16595echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 16596$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16597 X"$_am_arg" : 'X\(//\)[^/]' \| \ 16598 X"$_am_arg" : 'X\(//\)$' \| \ 16599 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 16600printf "%s\n" X"$_am_arg" | 16601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16602 s//\1/ 16603 q 16604 } 16605 /^X\(\/\/\)[^/].*/{ 16606 s//\1/ 16607 q 16608 } 16609 /^X\(\/\/\)$/{ 16610 s//\1/ 16611 q 16612 } 16613 /^X\(\/\).*/{ 16614 s//\1/ 16615 q 16616 } 16617 s/.*/./; q'`/stamp-h$_am_stamp_count 16618 ;; 16619 16620 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 16621printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 16622 ;; 16623 esac 16624 16625 16626 case $ac_file$ac_mode in 16627 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 16628 # Older Autoconf quotes --file arguments for eval, but not when files 16629 # are listed without --file. Let's play safe and only enable the eval 16630 # if we detect the quoting. 16631 # TODO: see whether this extra hack can be removed once we start 16632 # requiring Autoconf 2.70 or later. 16633 case $CONFIG_FILES in #( 16634 *\'*) : 16635 eval set x "$CONFIG_FILES" ;; #( 16636 *) : 16637 set x $CONFIG_FILES ;; #( 16638 *) : 16639 ;; 16640esac 16641 shift 16642 # Used to flag and report bootstrapping failures. 16643 am_rc=0 16644 for am_mf 16645 do 16646 # Strip MF so we end up with the name of the file. 16647 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 16648 # Check whether this is an Automake generated Makefile which includes 16649 # dependency-tracking related rules and includes. 16650 # Grep'ing the whole file directly is not great: AIX grep has a line 16651 # limit of 2048, but all sed's we know have understand at least 4000. 16652 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 16653 || continue 16654 am_dirpart=`$as_dirname -- "$am_mf" || 16655$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16656 X"$am_mf" : 'X\(//\)[^/]' \| \ 16657 X"$am_mf" : 'X\(//\)$' \| \ 16658 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 16659printf "%s\n" X"$am_mf" | 16660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16661 s//\1/ 16662 q 16663 } 16664 /^X\(\/\/\)[^/].*/{ 16665 s//\1/ 16666 q 16667 } 16668 /^X\(\/\/\)$/{ 16669 s//\1/ 16670 q 16671 } 16672 /^X\(\/\).*/{ 16673 s//\1/ 16674 q 16675 } 16676 s/.*/./; q'` 16677 am_filepart=`$as_basename -- "$am_mf" || 16678$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 16679 X"$am_mf" : 'X\(//\)$' \| \ 16680 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 16681printf "%s\n" X/"$am_mf" | 16682 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16683 s//\1/ 16684 q 16685 } 16686 /^X\/\(\/\/\)$/{ 16687 s//\1/ 16688 q 16689 } 16690 /^X\/\(\/\).*/{ 16691 s//\1/ 16692 q 16693 } 16694 s/.*/./; q'` 16695 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 16696 && sed -e '/# am--include-marker/d' "$am_filepart" \ 16697 | $MAKE -f - am--depfiles" >&5 16698 (cd "$am_dirpart" \ 16699 && sed -e '/# am--include-marker/d' "$am_filepart" \ 16700 | $MAKE -f - am--depfiles) >&5 2>&5 16701 ac_status=$? 16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16703 (exit $ac_status); } || am_rc=$? 16704 done 16705 if test $am_rc -ne 0; then 16706 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 16707printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 16708as_fn_error $? "Something went wrong bootstrapping makefile fragments 16709 for automatic dependency tracking. If GNU make was not used, consider 16710 re-running the configure script with MAKE=\"gmake\" (or whatever is 16711 necessary). You can also try re-running configure with the 16712 '--disable-dependency-tracking' option to at least be able to build 16713 the package (albeit without support for automatic dependency tracking). 16714See 'config.log' for more details" "$LINENO" 5; } 16715 fi 16716 { am_dirpart=; unset am_dirpart;} 16717 { am_filepart=; unset am_filepart;} 16718 { am_mf=; unset am_mf;} 16719 { am_rc=; unset am_rc;} 16720 rm -f conftest-deps.mk 16721} 16722 ;; 16723 "libtool":C) 16724 16725 # See if we are running on zsh, and set the options that allow our 16726 # commands through without removal of \ escapes. 16727 if test -n "${ZSH_VERSION+set}"; then 16728 setopt NO_GLOB_SUBST 16729 fi 16730 16731 cfgfile=${ofile}T 16732 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 16733 $RM "$cfgfile" 16734 16735 cat <<_LT_EOF >> "$cfgfile" 16736#! $SHELL 16737# Generated automatically by $as_me ($PACKAGE) $VERSION 16738# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16739# NOTE: Changes made to this file will be lost: look at ltmain.sh. 16740 16741# Provide generalized library-building support services. 16742# Written by Gordon Matzigkeit, 1996 16743 16744# Copyright (C) 2014 Free Software Foundation, Inc. 16745# This is free software; see the source for copying conditions. There is NO 16746# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 16747 16748# GNU Libtool is free software; you can redistribute it and/or modify 16749# it under the terms of the GNU General Public License as published by 16750# the Free Software Foundation; either version 2 of of the License, or 16751# (at your option) any later version. 16752# 16753# As a special exception to the GNU General Public License, if you 16754# distribute this file as part of a program or library that is built 16755# using GNU Libtool, you may include this file under the same 16756# distribution terms that you use for the rest of that program. 16757# 16758# GNU Libtool is distributed in the hope that it will be useful, but 16759# WITHOUT ANY WARRANTY; without even the implied warranty of 16760# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16761# GNU General Public License for more details. 16762# 16763# You should have received a copy of the GNU General Public License 16764# along with this program. If not, see <http://www.gnu.org/licenses/>. 16765 16766 16767# The names of the tagged configurations supported by this script. 16768available_tags='' 16769 16770# Configured defaults for sys_lib_dlsearch_path munging. 16771: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 16772 16773# ### BEGIN LIBTOOL CONFIG 16774 16775# A sed program that does not truncate output. 16776SED=$lt_SED 16777 16778# Sed that helps us avoid accidentally triggering echo(1) options like -n. 16779Xsed="\$SED -e 1s/^X//" 16780 16781# A grep program that handles long lines. 16782GREP=$lt_GREP 16783 16784# An ERE matcher. 16785EGREP=$lt_EGREP 16786 16787# A literal string matcher. 16788FGREP=$lt_FGREP 16789 16790# Shell to use when invoking shell scripts. 16791SHELL=$lt_SHELL 16792 16793# An echo program that protects backslashes. 16794ECHO=$lt_ECHO 16795 16796# Which release of libtool.m4 was used? 16797macro_version=$macro_version 16798macro_revision=$macro_revision 16799 16800# Assembler program. 16801AS=$lt_AS 16802 16803# DLL creation program. 16804DLLTOOL=$lt_DLLTOOL 16805 16806# Object dumper program. 16807OBJDUMP=$lt_OBJDUMP 16808 16809# Whether or not to build shared libraries. 16810build_libtool_libs=$enable_shared 16811 16812# Whether or not to build static libraries. 16813build_old_libs=$enable_static 16814 16815# What type of objects to build. 16816pic_mode=$pic_mode 16817 16818# Whether or not to optimize for fast installation. 16819fast_install=$enable_fast_install 16820 16821# Shared archive member basename,for filename based shared library versioning on AIX. 16822shared_archive_member_spec=$shared_archive_member_spec 16823 16824# The PATH separator for the build system. 16825PATH_SEPARATOR=$lt_PATH_SEPARATOR 16826 16827# The host system. 16828host_alias=$host_alias 16829host=$host 16830host_os=$host_os 16831 16832# The build system. 16833build_alias=$build_alias 16834build=$build 16835build_os=$build_os 16836 16837# A BSD- or MS-compatible name lister. 16838NM=$lt_NM 16839 16840# Whether we need soft or hard links. 16841LN_S=$lt_LN_S 16842 16843# What is the maximum length of a command? 16844max_cmd_len=$max_cmd_len 16845 16846# Object file suffix (normally "o"). 16847objext=$ac_objext 16848 16849# Executable file suffix (normally ""). 16850exeext=$exeext 16851 16852# whether the shell understands "unset". 16853lt_unset=$lt_unset 16854 16855# turn spaces into newlines. 16856SP2NL=$lt_lt_SP2NL 16857 16858# turn newlines into spaces. 16859NL2SP=$lt_lt_NL2SP 16860 16861# convert \$build file names to \$host format. 16862to_host_file_cmd=$lt_cv_to_host_file_cmd 16863 16864# convert \$build files to toolchain format. 16865to_tool_file_cmd=$lt_cv_to_tool_file_cmd 16866 16867# A file(cmd) program that detects file types. 16868FILECMD=$lt_FILECMD 16869 16870# Method to check whether dependent libraries are shared objects. 16871deplibs_check_method=$lt_deplibs_check_method 16872 16873# Command to use when deplibs_check_method = "file_magic". 16874file_magic_cmd=$lt_file_magic_cmd 16875 16876# How to find potential files when deplibs_check_method = "file_magic". 16877file_magic_glob=$lt_file_magic_glob 16878 16879# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 16880want_nocaseglob=$lt_want_nocaseglob 16881 16882# Command to associate shared and link libraries. 16883sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 16884 16885# The archiver. 16886AR=$lt_AR 16887 16888# Flags to create an archive (by configure). 16889lt_ar_flags=$lt_ar_flags 16890 16891# Flags to create an archive. 16892AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 16893 16894# How to feed a file listing to the archiver. 16895archiver_list_spec=$lt_archiver_list_spec 16896 16897# A symbol stripping program. 16898STRIP=$lt_STRIP 16899 16900# Commands used to install an old-style archive. 16901RANLIB=$lt_RANLIB 16902old_postinstall_cmds=$lt_old_postinstall_cmds 16903old_postuninstall_cmds=$lt_old_postuninstall_cmds 16904 16905# Whether to use a lock for old archive extraction. 16906lock_old_archive_extraction=$lock_old_archive_extraction 16907 16908# A C compiler. 16909LTCC=$lt_CC 16910 16911# LTCC compiler flags. 16912LTCFLAGS=$lt_CFLAGS 16913 16914# Take the output of nm and produce a listing of raw symbols and C names. 16915global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16916 16917# Transform the output of nm in a proper C declaration. 16918global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16919 16920# Transform the output of nm into a list of symbols to manually relocate. 16921global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 16922 16923# Transform the output of nm in a C name address pair. 16924global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16925 16926# Transform the output of nm in a C name address pair when lib prefix is needed. 16927global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 16928 16929# The name lister interface. 16930nm_interface=$lt_lt_cv_nm_interface 16931 16932# Specify filename containing input files for \$NM. 16933nm_file_list_spec=$lt_nm_file_list_spec 16934 16935# The root where to search for dependent libraries,and where our libraries should be installed. 16936lt_sysroot=$lt_sysroot 16937 16938# Command to truncate a binary pipe. 16939lt_truncate_bin=$lt_lt_cv_truncate_bin 16940 16941# The name of the directory that contains temporary libtool files. 16942objdir=$objdir 16943 16944# Used to examine libraries when file_magic_cmd begins with "file". 16945MAGIC_CMD=$MAGIC_CMD 16946 16947# Must we lock files when doing compilation? 16948need_locks=$lt_need_locks 16949 16950# Manifest tool. 16951MANIFEST_TOOL=$lt_MANIFEST_TOOL 16952 16953# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 16954DSYMUTIL=$lt_DSYMUTIL 16955 16956# Tool to change global to local symbols on Mac OS X. 16957NMEDIT=$lt_NMEDIT 16958 16959# Tool to manipulate fat objects and archives on Mac OS X. 16960LIPO=$lt_LIPO 16961 16962# ldd/readelf like tool for Mach-O binaries on Mac OS X. 16963OTOOL=$lt_OTOOL 16964 16965# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 16966OTOOL64=$lt_OTOOL64 16967 16968# Old archive suffix (normally "a"). 16969libext=$libext 16970 16971# Shared library suffix (normally ".so"). 16972shrext_cmds=$lt_shrext_cmds 16973 16974# The commands to extract the exported symbol list from a shared archive. 16975extract_expsyms_cmds=$lt_extract_expsyms_cmds 16976 16977# Variables whose values should be saved in libtool wrapper scripts and 16978# restored at link time. 16979variables_saved_for_relink=$lt_variables_saved_for_relink 16980 16981# Do we need the "lib" prefix for modules? 16982need_lib_prefix=$need_lib_prefix 16983 16984# Do we need a version for libraries? 16985need_version=$need_version 16986 16987# Library versioning type. 16988version_type=$version_type 16989 16990# Shared library runtime path variable. 16991runpath_var=$runpath_var 16992 16993# Shared library path variable. 16994shlibpath_var=$shlibpath_var 16995 16996# Is shlibpath searched before the hard-coded library search path? 16997shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16998 16999# Format of library name prefix. 17000libname_spec=$lt_libname_spec 17001 17002# List of archive names. First name is the real one, the rest are links. 17003# The last name is the one that the linker finds with -lNAME 17004library_names_spec=$lt_library_names_spec 17005 17006# The coded name of the library, if different from the real name. 17007soname_spec=$lt_soname_spec 17008 17009# Permission mode override for installation of shared libraries. 17010install_override_mode=$lt_install_override_mode 17011 17012# Command to use after installation of a shared archive. 17013postinstall_cmds=$lt_postinstall_cmds 17014 17015# Command to use after uninstallation of a shared archive. 17016postuninstall_cmds=$lt_postuninstall_cmds 17017 17018# Commands used to finish a libtool library installation in a directory. 17019finish_cmds=$lt_finish_cmds 17020 17021# As "finish_cmds", except a single script fragment to be evaled but 17022# not shown. 17023finish_eval=$lt_finish_eval 17024 17025# Whether we should hardcode library paths into libraries. 17026hardcode_into_libs=$hardcode_into_libs 17027 17028# Compile-time system search path for libraries. 17029sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17030 17031# Detected run-time system search path for libraries. 17032sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 17033 17034# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 17035configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 17036 17037# Whether dlopen is supported. 17038dlopen_support=$enable_dlopen 17039 17040# Whether dlopen of programs is supported. 17041dlopen_self=$enable_dlopen_self 17042 17043# Whether dlopen of statically linked programs is supported. 17044dlopen_self_static=$enable_dlopen_self_static 17045 17046# Commands to strip libraries. 17047old_striplib=$lt_old_striplib 17048striplib=$lt_striplib 17049 17050 17051# The linker used to build libraries. 17052LD=$lt_LD 17053 17054# How to create reloadable object files. 17055reload_flag=$lt_reload_flag 17056reload_cmds=$lt_reload_cmds 17057 17058# Commands used to build an old-style archive. 17059old_archive_cmds=$lt_old_archive_cmds 17060 17061# A language specific compiler. 17062CC=$lt_compiler 17063 17064# Is the compiler the GNU compiler? 17065with_gcc=$GCC 17066 17067# Compiler flag to turn off builtin functions. 17068no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17069 17070# Additional compiler flags for building library objects. 17071pic_flag=$lt_lt_prog_compiler_pic 17072 17073# How to pass a linker flag through the compiler. 17074wl=$lt_lt_prog_compiler_wl 17075 17076# Compiler flag to prevent dynamic linking. 17077link_static_flag=$lt_lt_prog_compiler_static 17078 17079# Does compiler simultaneously support -c and -o options? 17080compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17081 17082# Whether or not to add -lc for building shared libraries. 17083build_libtool_need_lc=$archive_cmds_need_lc 17084 17085# Whether or not to disallow shared libs when runtime libs are static. 17086allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 17087 17088# Compiler flag to allow reflexive dlopens. 17089export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 17090 17091# Compiler flag to generate shared objects directly from archives. 17092whole_archive_flag_spec=$lt_whole_archive_flag_spec 17093 17094# Whether the compiler copes with passing no objects directly. 17095compiler_needs_object=$lt_compiler_needs_object 17096 17097# Create an old-style archive from a shared archive. 17098old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17099 17100# Create a temporary old-style archive to link instead of a shared archive. 17101old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17102 17103# Commands used to build a shared archive. 17104archive_cmds=$lt_archive_cmds 17105archive_expsym_cmds=$lt_archive_expsym_cmds 17106 17107# Commands used to build a loadable module if different from building 17108# a shared archive. 17109module_cmds=$lt_module_cmds 17110module_expsym_cmds=$lt_module_expsym_cmds 17111 17112# Whether we are building with GNU ld or not. 17113with_gnu_ld=$lt_with_gnu_ld 17114 17115# Flag that allows shared libraries with undefined symbols to be built. 17116allow_undefined_flag=$lt_allow_undefined_flag 17117 17118# Flag that enforces no undefined symbols. 17119no_undefined_flag=$lt_no_undefined_flag 17120 17121# Flag to hardcode \$libdir into a binary during linking. 17122# This must work even if \$libdir does not exist 17123hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17124 17125# Whether we need a single "-rpath" flag with a separated argument. 17126hardcode_libdir_separator=$lt_hardcode_libdir_separator 17127 17128# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 17129# DIR into the resulting binary. 17130hardcode_direct=$hardcode_direct 17131 17132# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 17133# DIR into the resulting binary and the resulting library dependency is 17134# "absolute",i.e impossible to change by setting \$shlibpath_var if the 17135# library is relocated. 17136hardcode_direct_absolute=$hardcode_direct_absolute 17137 17138# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17139# into the resulting binary. 17140hardcode_minus_L=$hardcode_minus_L 17141 17142# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17143# into the resulting binary. 17144hardcode_shlibpath_var=$hardcode_shlibpath_var 17145 17146# Set to "yes" if building a shared library automatically hardcodes DIR 17147# into the library and all subsequent libraries and executables linked 17148# against it. 17149hardcode_automatic=$hardcode_automatic 17150 17151# Set to yes if linker adds runtime paths of dependent libraries 17152# to runtime path list. 17153inherit_rpath=$inherit_rpath 17154 17155# Whether libtool must link a program against all its dependency libraries. 17156link_all_deplibs=$link_all_deplibs 17157 17158# Set to "yes" if exported symbols are required. 17159always_export_symbols=$always_export_symbols 17160 17161# The commands to list exported symbols. 17162export_symbols_cmds=$lt_export_symbols_cmds 17163 17164# Symbols that should not be listed in the preloaded symbols. 17165exclude_expsyms=$lt_exclude_expsyms 17166 17167# Symbols that must always be exported. 17168include_expsyms=$lt_include_expsyms 17169 17170# Commands necessary for linking programs (against libraries) with templates. 17171prelink_cmds=$lt_prelink_cmds 17172 17173# Commands necessary for finishing linking programs. 17174postlink_cmds=$lt_postlink_cmds 17175 17176# Specify filename containing input files. 17177file_list_spec=$lt_file_list_spec 17178 17179# How to hardcode a shared library path into an executable. 17180hardcode_action=$hardcode_action 17181 17182# ### END LIBTOOL CONFIG 17183 17184_LT_EOF 17185 17186 cat <<'_LT_EOF' >> "$cfgfile" 17187 17188# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 17189 17190# func_munge_path_list VARIABLE PATH 17191# ----------------------------------- 17192# VARIABLE is name of variable containing _space_ separated list of 17193# directories to be munged by the contents of PATH, which is string 17194# having a format: 17195# "DIR[:DIR]:" 17196# string "DIR[ DIR]" will be prepended to VARIABLE 17197# ":DIR[:DIR]" 17198# string "DIR[ DIR]" will be appended to VARIABLE 17199# "DIRP[:DIRP]::[DIRA:]DIRA" 17200# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 17201# "DIRA[ DIRA]" will be appended to VARIABLE 17202# "DIR[:DIR]" 17203# VARIABLE will be replaced by "DIR[ DIR]" 17204func_munge_path_list () 17205{ 17206 case x$2 in 17207 x) 17208 ;; 17209 *:) 17210 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 17211 ;; 17212 x:*) 17213 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 17214 ;; 17215 *::*) 17216 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 17217 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 17218 ;; 17219 *) 17220 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 17221 ;; 17222 esac 17223} 17224 17225 17226# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 17227func_cc_basename () 17228{ 17229 for cc_temp in $*""; do 17230 case $cc_temp in 17231 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17232 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17233 \-*) ;; 17234 *) break;; 17235 esac 17236 done 17237 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 17238} 17239 17240 17241# ### END FUNCTIONS SHARED WITH CONFIGURE 17242 17243_LT_EOF 17244 17245 case $host_os in 17246 aix3*) 17247 cat <<\_LT_EOF >> "$cfgfile" 17248# AIX sometimes has problems with the GCC collect2 program. For some 17249# reason, if we set the COLLECT_NAMES environment variable, the problems 17250# vanish in a puff of smoke. 17251if test set != "${COLLECT_NAMES+set}"; then 17252 COLLECT_NAMES= 17253 export COLLECT_NAMES 17254fi 17255_LT_EOF 17256 ;; 17257 esac 17258 17259 17260 17261ltmain=$ac_aux_dir/ltmain.sh 17262 17263 17264 # We use sed instead of cat because bash on DJGPP gets confused if 17265 # if finds mixed CR/LF and LF-only lines. Since sed operates in 17266 # text mode, it properly converts lines to CR/LF. This bash problem 17267 # is reportedly fixed, but why not run on old versions too? 17268 $SED '$q' "$ltmain" >> "$cfgfile" \ 17269 || (rm -f "$cfgfile"; exit 1) 17270 17271 mv -f "$cfgfile" "$ofile" || 17272 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 17273 chmod +x "$ofile" 17274 17275 ;; 17276 "libpng-config":F) chmod +x libpng-config ;; 17277 17278 esac 17279done # for ac_tag 17280 17281 17282as_fn_exit 0 17283_ACEOF 17284ac_clean_files=$ac_clean_files_save 17285 17286test $ac_write_fail = 0 || 17287 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 17288 17289 17290# configure is writing to config.log, and then calls config.status. 17291# config.status does its own redirection, appending to config.log. 17292# Unfortunately, on DOS this fails, as config.log is still kept open 17293# by configure, so config.status won't be able to write to it; its 17294# output is simply discarded. So we exec the FD to /dev/null, 17295# effectively closing config.log, so it can be properly (re)opened and 17296# appended to by config.status. When coming back to configure, we 17297# need to make the FD available again. 17298if test "$no_create" != yes; then 17299 ac_cs_success=: 17300 ac_config_status_args= 17301 test "$silent" = yes && 17302 ac_config_status_args="$ac_config_status_args --quiet" 17303 exec 5>/dev/null 17304 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17305 exec 5>>config.log 17306 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17307 # would make configure fail if this is the last instruction. 17308 $ac_cs_success || as_fn_exit 1 17309fi 17310if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17312printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17313fi 17314 17315 17316