1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for LibTIFF Software 4.0.3. 4# 5# Report bugs to <[email protected]>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell [email protected] and 278$0: [email protected] about your system, including 279$0: any error possibly output before this message. Then 280$0: install a modern shell, or manually run the script 281$0: under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='LibTIFF Software' 592PACKAGE_TARNAME='tiff' 593PACKAGE_VERSION='4.0.3' 594PACKAGE_STRING='LibTIFF Software 4.0.3' 595PACKAGE_BUGREPORT='[email protected]' 596PACKAGE_URL='' 597 598# Factoring default headers for most tests. 599ac_includes_default="\ 600#include <stdio.h> 601#ifdef HAVE_SYS_TYPES_H 602# include <sys/types.h> 603#endif 604#ifdef HAVE_SYS_STAT_H 605# include <sys/stat.h> 606#endif 607#ifdef STDC_HEADERS 608# include <stdlib.h> 609# include <stddef.h> 610#else 611# ifdef HAVE_STDLIB_H 612# include <stdlib.h> 613# endif 614#endif 615#ifdef HAVE_STRING_H 616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617# include <memory.h> 618# endif 619# include <string.h> 620#endif 621#ifdef HAVE_STRINGS_H 622# include <strings.h> 623#endif 624#ifdef HAVE_INTTYPES_H 625# include <inttypes.h> 626#endif 627#ifdef HAVE_STDINT_H 628# include <stdint.h> 629#endif 630#ifdef HAVE_UNISTD_H 631# include <unistd.h> 632#endif" 633 634ac_subst_vars='am__EXEEXT_FALSE 635am__EXEEXT_TRUE 636LTLIBOBJS 637LIBDIR 638WIN32_IO_FALSE 639WIN32_IO_TRUE 640HAVE_OPENGL_FALSE 641HAVE_OPENGL_TRUE 642GLUT_LIBS 643GLUT_CFLAGS 644GLU_LIBS 645GLU_CFLAGS 646GL_LIBS 647GL_CFLAGS 648PTHREAD_CFLAGS 649PTHREAD_LIBS 650PTHREAD_CC 651ax_pthread_config 652X_EXTRA_LIBS 653X_LIBS 654X_PRE_LIBS 655X_CFLAGS 656XMKMF 657HAVE_CXX_FALSE 658HAVE_CXX_TRUE 659LIBTIFF_DOCDIR 660HAVE_RPATH_FALSE 661HAVE_RPATH_TRUE 662LIBOBJS 663tiff_libs_private 664CXXCPP 665am__fastdepCXX_FALSE 666am__fastdepCXX_TRUE 667CXXDEPMODE 668ac_ct_CXX 669CXXFLAGS 670CXX 671CPP 672LT_SYS_LIBRARY_PATH 673OTOOL64 674OTOOL 675LIPO 676NMEDIT 677DSYMUTIL 678MANIFEST_TOOL 679RANLIB 680ac_ct_AR 681AR 682NM 683ac_ct_DUMPBIN 684DUMPBIN 685LD 686FGREP 687EGREP 688GREP 689SED 690LIBTOOL 691OBJDUMP 692DLLTOOL 693AS 694HAVE_LD_VERSION_SCRIPT_FALSE 695HAVE_LD_VERSION_SCRIPT_TRUE 696LN_S 697am__fastdepCC_FALSE 698am__fastdepCC_TRUE 699CCDEPMODE 700am__nodep 701AMDEPBACKSLASH 702AMDEP_FALSE 703AMDEP_TRUE 704am__quote 705am__include 706DEPDIR 707OBJEXT 708EXEEXT 709ac_ct_CC 710CPPFLAGS 711LDFLAGS 712CFLAGS 713CC 714LIBTIFF_RELEASE_DATE 715LIBTIFF_VERSION_INFO 716LIBTIFF_VERSION 717LIBTIFF_ALPHA_VERSION 718LIBTIFF_MICRO_VERSION 719LIBTIFF_MINOR_VERSION 720LIBTIFF_MAJOR_VERSION 721MAINT 722MAINTAINER_MODE_FALSE 723MAINTAINER_MODE_TRUE 724AM_BACKSLASH 725AM_DEFAULT_VERBOSITY 726AM_DEFAULT_V 727AM_V 728am__untar 729am__tar 730AMTAR 731am__leading_dot 732SET_MAKE 733AWK 734mkdir_p 735MKDIR_P 736INSTALL_STRIP_PROGRAM 737STRIP 738install_sh 739MAKEINFO 740AUTOHEADER 741AUTOMAKE 742AUTOCONF 743ACLOCAL 744VERSION 745PACKAGE 746CYGPATH_W 747am__isrc 748INSTALL_DATA 749INSTALL_SCRIPT 750INSTALL_PROGRAM 751host_os 752host_vendor 753host_cpu 754host 755build_os 756build_vendor 757build_cpu 758build 759target_alias 760host_alias 761build_alias 762LIBS 763ECHO_T 764ECHO_N 765ECHO_C 766DEFS 767mandir 768localedir 769libdir 770psdir 771pdfdir 772dvidir 773htmldir 774infodir 775docdir 776oldincludedir 777includedir 778localstatedir 779sharedstatedir 780sysconfdir 781datadir 782datarootdir 783libexecdir 784sbindir 785bindir 786program_transform_name 787prefix 788exec_prefix 789PACKAGE_URL 790PACKAGE_BUGREPORT 791PACKAGE_STRING 792PACKAGE_VERSION 793PACKAGE_TARNAME 794PACKAGE_NAME 795PATH_SEPARATOR 796SHELL' 797ac_subst_files='' 798ac_user_opts=' 799enable_option_checking 800enable_silent_rules 801enable_maintainer_mode 802enable_dependency_tracking 803enable_ld_version_script 804enable_shared 805enable_static 806with_pic 807enable_fast_install 808with_aix_soname 809with_gnu_ld 810with_sysroot 811enable_libtool_lock 812enable_rpath 813enable_largefile 814with_docdir 815enable_ccitt 816enable_packbits 817enable_lzw 818enable_thunder 819enable_next 820enable_logluv 821enable_mdi 822enable_zlib 823with_zlib_include_dir 824with_zlib_lib_dir 825enable_pixarlog 826enable_jpeg 827with_jpeg_include_dir 828with_jpeg_lib_dir 829enable_old_jpeg 830enable_jbig 831with_jbig_include_dir 832with_jbig_lib_dir 833enable_lzma 834with_lzma_include_dir 835with_lzma_lib_dir 836enable_jpeg12 837with_jpeg12_include_dir 838with_jpeg12_lib 839enable_cxx 840with_x 841enable_strip_chopping 842with_default_strip_size 843enable_defer_strile_load 844enable_chunky_strip_read 845enable_extrasample_as_alpha 846enable_check_ycbcr_subsampling 847' 848 ac_precious_vars='build_alias 849host_alias 850target_alias 851CC 852CFLAGS 853LDFLAGS 854LIBS 855CPPFLAGS 856LT_SYS_LIBRARY_PATH 857CPP 858CXX 859CXXFLAGS 860CCC 861CXXCPP 862XMKMF' 863 864 865# Initialize some variables set by options. 866ac_init_help= 867ac_init_version=false 868ac_unrecognized_opts= 869ac_unrecognized_sep= 870# The variables have the same names as the options, with 871# dashes changed to underlines. 872cache_file=/dev/null 873exec_prefix=NONE 874no_create= 875no_recursion= 876prefix=NONE 877program_prefix=NONE 878program_suffix=NONE 879program_transform_name=s,x,x, 880silent= 881site= 882srcdir= 883verbose= 884x_includes=NONE 885x_libraries=NONE 886 887# Installation directory options. 888# These are left unexpanded so users can "make install exec_prefix=/foo" 889# and all the variables that are supposed to be based on exec_prefix 890# by default will actually change. 891# Use braces instead of parens because sh, perl, etc. also accept them. 892# (The list follows the same order as the GNU Coding Standards.) 893bindir='${exec_prefix}/bin' 894sbindir='${exec_prefix}/sbin' 895libexecdir='${exec_prefix}/libexec' 896datarootdir='${prefix}/share' 897datadir='${datarootdir}' 898sysconfdir='${prefix}/etc' 899sharedstatedir='${prefix}/com' 900localstatedir='${prefix}/var' 901includedir='${prefix}/include' 902oldincludedir='/usr/include' 903docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 904infodir='${datarootdir}/info' 905htmldir='${docdir}' 906dvidir='${docdir}' 907pdfdir='${docdir}' 908psdir='${docdir}' 909libdir='${exec_prefix}/lib' 910localedir='${datarootdir}/locale' 911mandir='${datarootdir}/man' 912 913ac_prev= 914ac_dashdash= 915for ac_option 916do 917 # If the previous option needs an argument, assign it. 918 if test -n "$ac_prev"; then 919 eval $ac_prev=\$ac_option 920 ac_prev= 921 continue 922 fi 923 924 case $ac_option in 925 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 926 *=) ac_optarg= ;; 927 *) ac_optarg=yes ;; 928 esac 929 930 # Accept the important Cygnus configure options, so we can diagnose typos. 931 932 case $ac_dashdash$ac_option in 933 --) 934 ac_dashdash=yes ;; 935 936 -bindir | --bindir | --bindi | --bind | --bin | --bi) 937 ac_prev=bindir ;; 938 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 939 bindir=$ac_optarg ;; 940 941 -build | --build | --buil | --bui | --bu) 942 ac_prev=build_alias ;; 943 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 944 build_alias=$ac_optarg ;; 945 946 -cache-file | --cache-file | --cache-fil | --cache-fi \ 947 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 948 ac_prev=cache_file ;; 949 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 950 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 951 cache_file=$ac_optarg ;; 952 953 --config-cache | -C) 954 cache_file=config.cache ;; 955 956 -datadir | --datadir | --datadi | --datad) 957 ac_prev=datadir ;; 958 -datadir=* | --datadir=* | --datadi=* | --datad=*) 959 datadir=$ac_optarg ;; 960 961 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 962 | --dataroo | --dataro | --datar) 963 ac_prev=datarootdir ;; 964 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 965 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 966 datarootdir=$ac_optarg ;; 967 968 -disable-* | --disable-*) 969 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 970 # Reject names that are not valid shell variable names. 971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 972 as_fn_error $? "invalid feature name: $ac_useropt" 973 ac_useropt_orig=$ac_useropt 974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 975 case $ac_user_opts in 976 *" 977"enable_$ac_useropt" 978"*) ;; 979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 980 ac_unrecognized_sep=', ';; 981 esac 982 eval enable_$ac_useropt=no ;; 983 984 -docdir | --docdir | --docdi | --doc | --do) 985 ac_prev=docdir ;; 986 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 987 docdir=$ac_optarg ;; 988 989 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 990 ac_prev=dvidir ;; 991 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 992 dvidir=$ac_optarg ;; 993 994 -enable-* | --enable-*) 995 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 996 # Reject names that are not valid shell variable names. 997 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 998 as_fn_error $? "invalid feature name: $ac_useropt" 999 ac_useropt_orig=$ac_useropt 1000 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1001 case $ac_user_opts in 1002 *" 1003"enable_$ac_useropt" 1004"*) ;; 1005 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1006 ac_unrecognized_sep=', ';; 1007 esac 1008 eval enable_$ac_useropt=\$ac_optarg ;; 1009 1010 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1011 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1012 | --exec | --exe | --ex) 1013 ac_prev=exec_prefix ;; 1014 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1015 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1016 | --exec=* | --exe=* | --ex=*) 1017 exec_prefix=$ac_optarg ;; 1018 1019 -gas | --gas | --ga | --g) 1020 # Obsolete; use --with-gas. 1021 with_gas=yes ;; 1022 1023 -help | --help | --hel | --he | -h) 1024 ac_init_help=long ;; 1025 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1026 ac_init_help=recursive ;; 1027 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1028 ac_init_help=short ;; 1029 1030 -host | --host | --hos | --ho) 1031 ac_prev=host_alias ;; 1032 -host=* | --host=* | --hos=* | --ho=*) 1033 host_alias=$ac_optarg ;; 1034 1035 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1036 ac_prev=htmldir ;; 1037 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1038 | --ht=*) 1039 htmldir=$ac_optarg ;; 1040 1041 -includedir | --includedir | --includedi | --included | --include \ 1042 | --includ | --inclu | --incl | --inc) 1043 ac_prev=includedir ;; 1044 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1045 | --includ=* | --inclu=* | --incl=* | --inc=*) 1046 includedir=$ac_optarg ;; 1047 1048 -infodir | --infodir | --infodi | --infod | --info | --inf) 1049 ac_prev=infodir ;; 1050 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1051 infodir=$ac_optarg ;; 1052 1053 -libdir | --libdir | --libdi | --libd) 1054 ac_prev=libdir ;; 1055 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1056 libdir=$ac_optarg ;; 1057 1058 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1059 | --libexe | --libex | --libe) 1060 ac_prev=libexecdir ;; 1061 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1062 | --libexe=* | --libex=* | --libe=*) 1063 libexecdir=$ac_optarg ;; 1064 1065 -localedir | --localedir | --localedi | --localed | --locale) 1066 ac_prev=localedir ;; 1067 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1068 localedir=$ac_optarg ;; 1069 1070 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1071 | --localstate | --localstat | --localsta | --localst | --locals) 1072 ac_prev=localstatedir ;; 1073 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1074 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1075 localstatedir=$ac_optarg ;; 1076 1077 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1078 ac_prev=mandir ;; 1079 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1080 mandir=$ac_optarg ;; 1081 1082 -nfp | --nfp | --nf) 1083 # Obsolete; use --without-fp. 1084 with_fp=no ;; 1085 1086 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1087 | --no-cr | --no-c | -n) 1088 no_create=yes ;; 1089 1090 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1091 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1092 no_recursion=yes ;; 1093 1094 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1095 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1096 | --oldin | --oldi | --old | --ol | --o) 1097 ac_prev=oldincludedir ;; 1098 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1099 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1100 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1101 oldincludedir=$ac_optarg ;; 1102 1103 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1104 ac_prev=prefix ;; 1105 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1106 prefix=$ac_optarg ;; 1107 1108 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1109 | --program-pre | --program-pr | --program-p) 1110 ac_prev=program_prefix ;; 1111 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1112 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1113 program_prefix=$ac_optarg ;; 1114 1115 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1116 | --program-suf | --program-su | --program-s) 1117 ac_prev=program_suffix ;; 1118 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1119 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1120 program_suffix=$ac_optarg ;; 1121 1122 -program-transform-name | --program-transform-name \ 1123 | --program-transform-nam | --program-transform-na \ 1124 | --program-transform-n | --program-transform- \ 1125 | --program-transform | --program-transfor \ 1126 | --program-transfo | --program-transf \ 1127 | --program-trans | --program-tran \ 1128 | --progr-tra | --program-tr | --program-t) 1129 ac_prev=program_transform_name ;; 1130 -program-transform-name=* | --program-transform-name=* \ 1131 | --program-transform-nam=* | --program-transform-na=* \ 1132 | --program-transform-n=* | --program-transform-=* \ 1133 | --program-transform=* | --program-transfor=* \ 1134 | --program-transfo=* | --program-transf=* \ 1135 | --program-trans=* | --program-tran=* \ 1136 | --progr-tra=* | --program-tr=* | --program-t=*) 1137 program_transform_name=$ac_optarg ;; 1138 1139 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1140 ac_prev=pdfdir ;; 1141 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1142 pdfdir=$ac_optarg ;; 1143 1144 -psdir | --psdir | --psdi | --psd | --ps) 1145 ac_prev=psdir ;; 1146 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1147 psdir=$ac_optarg ;; 1148 1149 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1150 | -silent | --silent | --silen | --sile | --sil) 1151 silent=yes ;; 1152 1153 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1154 ac_prev=sbindir ;; 1155 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1156 | --sbi=* | --sb=*) 1157 sbindir=$ac_optarg ;; 1158 1159 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1160 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1161 | --sharedst | --shareds | --shared | --share | --shar \ 1162 | --sha | --sh) 1163 ac_prev=sharedstatedir ;; 1164 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1165 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1166 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1167 | --sha=* | --sh=*) 1168 sharedstatedir=$ac_optarg ;; 1169 1170 -site | --site | --sit) 1171 ac_prev=site ;; 1172 -site=* | --site=* | --sit=*) 1173 site=$ac_optarg ;; 1174 1175 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1176 ac_prev=srcdir ;; 1177 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1178 srcdir=$ac_optarg ;; 1179 1180 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1181 | --syscon | --sysco | --sysc | --sys | --sy) 1182 ac_prev=sysconfdir ;; 1183 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1184 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1185 sysconfdir=$ac_optarg ;; 1186 1187 -target | --target | --targe | --targ | --tar | --ta | --t) 1188 ac_prev=target_alias ;; 1189 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1190 target_alias=$ac_optarg ;; 1191 1192 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1193 verbose=yes ;; 1194 1195 -version | --version | --versio | --versi | --vers | -V) 1196 ac_init_version=: ;; 1197 1198 -with-* | --with-*) 1199 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1200 # Reject names that are not valid shell variable names. 1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1202 as_fn_error $? "invalid package name: $ac_useropt" 1203 ac_useropt_orig=$ac_useropt 1204 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1205 case $ac_user_opts in 1206 *" 1207"with_$ac_useropt" 1208"*) ;; 1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1210 ac_unrecognized_sep=', ';; 1211 esac 1212 eval with_$ac_useropt=\$ac_optarg ;; 1213 1214 -without-* | --without-*) 1215 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1216 # Reject names that are not valid shell variable names. 1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1218 as_fn_error $? "invalid package name: $ac_useropt" 1219 ac_useropt_orig=$ac_useropt 1220 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1221 case $ac_user_opts in 1222 *" 1223"with_$ac_useropt" 1224"*) ;; 1225 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1226 ac_unrecognized_sep=', ';; 1227 esac 1228 eval with_$ac_useropt=no ;; 1229 1230 --x) 1231 # Obsolete; use --with-x. 1232 with_x=yes ;; 1233 1234 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1235 | --x-incl | --x-inc | --x-in | --x-i) 1236 ac_prev=x_includes ;; 1237 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1238 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1239 x_includes=$ac_optarg ;; 1240 1241 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1242 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1243 ac_prev=x_libraries ;; 1244 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1245 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1246 x_libraries=$ac_optarg ;; 1247 1248 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1249Try \`$0 --help' for more information" 1250 ;; 1251 1252 *=*) 1253 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1254 # Reject names that are not valid shell variable names. 1255 case $ac_envvar in #( 1256 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1257 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1258 esac 1259 eval $ac_envvar=\$ac_optarg 1260 export $ac_envvar ;; 1261 1262 *) 1263 # FIXME: should be removed in autoconf 3.0. 1264 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1265 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1266 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1267 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1268 ;; 1269 1270 esac 1271done 1272 1273if test -n "$ac_prev"; then 1274 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1275 as_fn_error $? "missing argument to $ac_option" 1276fi 1277 1278if test -n "$ac_unrecognized_opts"; then 1279 case $enable_option_checking in 1280 no) ;; 1281 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1282 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1283 esac 1284fi 1285 1286# Check all directory arguments for consistency. 1287for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1288 datadir sysconfdir sharedstatedir localstatedir includedir \ 1289 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1290 libdir localedir mandir 1291do 1292 eval ac_val=\$$ac_var 1293 # Remove trailing slashes. 1294 case $ac_val in 1295 */ ) 1296 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1297 eval $ac_var=\$ac_val;; 1298 esac 1299 # Be sure to have absolute directory names. 1300 case $ac_val in 1301 [\\/$]* | ?:[\\/]* ) continue;; 1302 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1303 esac 1304 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1305done 1306 1307# There might be people who depend on the old broken behavior: `$host' 1308# used to hold the argument of --host etc. 1309# FIXME: To remove some day. 1310build=$build_alias 1311host=$host_alias 1312target=$target_alias 1313 1314# FIXME: To remove some day. 1315if test "x$host_alias" != x; then 1316 if test "x$build_alias" = x; then 1317 cross_compiling=maybe 1318 elif test "x$build_alias" != "x$host_alias"; then 1319 cross_compiling=yes 1320 fi 1321fi 1322 1323ac_tool_prefix= 1324test -n "$host_alias" && ac_tool_prefix=$host_alias- 1325 1326test "$silent" = yes && exec 6>/dev/null 1327 1328 1329ac_pwd=`pwd` && test -n "$ac_pwd" && 1330ac_ls_di=`ls -di .` && 1331ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1332 as_fn_error $? "working directory cannot be determined" 1333test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1334 as_fn_error $? "pwd does not report name of working directory" 1335 1336 1337# Find the source files, if location was not specified. 1338if test -z "$srcdir"; then 1339 ac_srcdir_defaulted=yes 1340 # Try the directory containing this script, then the parent directory. 1341 ac_confdir=`$as_dirname -- "$as_myself" || 1342$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1343 X"$as_myself" : 'X\(//\)[^/]' \| \ 1344 X"$as_myself" : 'X\(//\)$' \| \ 1345 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1346$as_echo X"$as_myself" | 1347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1348 s//\1/ 1349 q 1350 } 1351 /^X\(\/\/\)[^/].*/{ 1352 s//\1/ 1353 q 1354 } 1355 /^X\(\/\/\)$/{ 1356 s//\1/ 1357 q 1358 } 1359 /^X\(\/\).*/{ 1360 s//\1/ 1361 q 1362 } 1363 s/.*/./; q'` 1364 srcdir=$ac_confdir 1365 if test ! -r "$srcdir/$ac_unique_file"; then 1366 srcdir=.. 1367 fi 1368else 1369 ac_srcdir_defaulted=no 1370fi 1371if test ! -r "$srcdir/$ac_unique_file"; then 1372 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1373 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1374fi 1375ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1376ac_abs_confdir=`( 1377 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1378 pwd)` 1379# When building in place, set srcdir=. 1380if test "$ac_abs_confdir" = "$ac_pwd"; then 1381 srcdir=. 1382fi 1383# Remove unnecessary trailing slashes from srcdir. 1384# Double slashes in file names in object file debugging info 1385# mess up M-x gdb in Emacs. 1386case $srcdir in 1387*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1388esac 1389for ac_var in $ac_precious_vars; do 1390 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1391 eval ac_env_${ac_var}_value=\$${ac_var} 1392 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1393 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1394done 1395 1396# 1397# Report the --help message. 1398# 1399if test "$ac_init_help" = "long"; then 1400 # Omit some internal or obsolete options to make the list less imposing. 1401 # This message is too long to be a string in the A/UX 3.1 sh. 1402 cat <<_ACEOF 1403\`configure' configures LibTIFF Software 4.0.3 to adapt to many kinds of systems. 1404 1405Usage: $0 [OPTION]... [VAR=VALUE]... 1406 1407To assign environment variables (e.g., CC, CFLAGS...), specify them as 1408VAR=VALUE. See below for descriptions of some of the useful variables. 1409 1410Defaults for the options are specified in brackets. 1411 1412Configuration: 1413 -h, --help display this help and exit 1414 --help=short display options specific to this package 1415 --help=recursive display the short help of all the included packages 1416 -V, --version display version information and exit 1417 -q, --quiet, --silent do not print \`checking ...' messages 1418 --cache-file=FILE cache test results in FILE [disabled] 1419 -C, --config-cache alias for \`--cache-file=config.cache' 1420 -n, --no-create do not create output files 1421 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1422 1423Installation directories: 1424 --prefix=PREFIX install architecture-independent files in PREFIX 1425 [$ac_default_prefix] 1426 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1427 [PREFIX] 1428 1429By default, \`make install' will install all the files in 1430\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1431an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1432for instance \`--prefix=\$HOME'. 1433 1434For better control, use the options below. 1435 1436Fine tuning of the installation directories: 1437 --bindir=DIR user executables [EPREFIX/bin] 1438 --sbindir=DIR system admin executables [EPREFIX/sbin] 1439 --libexecdir=DIR program executables [EPREFIX/libexec] 1440 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1441 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1442 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1443 --libdir=DIR object code libraries [EPREFIX/lib] 1444 --includedir=DIR C header files [PREFIX/include] 1445 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1446 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1447 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1448 --infodir=DIR info documentation [DATAROOTDIR/info] 1449 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1450 --mandir=DIR man documentation [DATAROOTDIR/man] 1451 --docdir=DIR documentation root [DATAROOTDIR/doc/tiff] 1452 --htmldir=DIR html documentation [DOCDIR] 1453 --dvidir=DIR dvi documentation [DOCDIR] 1454 --pdfdir=DIR pdf documentation [DOCDIR] 1455 --psdir=DIR ps documentation [DOCDIR] 1456_ACEOF 1457 1458 cat <<\_ACEOF 1459 1460Program names: 1461 --program-prefix=PREFIX prepend PREFIX to installed program names 1462 --program-suffix=SUFFIX append SUFFIX to installed program names 1463 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1464 1465X features: 1466 --x-includes=DIR X include files are in DIR 1467 --x-libraries=DIR X library files are in DIR 1468 1469System types: 1470 --build=BUILD configure for building on BUILD [guessed] 1471 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1472_ACEOF 1473fi 1474 1475if test -n "$ac_init_help"; then 1476 case $ac_init_help in 1477 short | recursive ) echo "Configuration of LibTIFF Software 4.0.3:";; 1478 esac 1479 cat <<\_ACEOF 1480 1481Optional Features: 1482 --disable-option-checking ignore unrecognized --enable/--with options 1483 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1484 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1485 --enable-silent-rules less verbose build output (undo: "make V=1") 1486 --disable-silent-rules verbose build output (undo: "make V=0") 1487 --enable-maintainer-mode 1488 enable make rules and dependencies not useful (and 1489 sometimes confusing) to the casual installer 1490 --enable-dependency-tracking 1491 do not reject slow dependency extractors 1492 --disable-dependency-tracking 1493 speeds up one-time build 1494 --enable-ld-version-script 1495 enable linker version script (default is disabled) 1496 --enable-shared[=PKGS] build shared libraries [default=yes] 1497 --enable-static[=PKGS] build static libraries [default=yes] 1498 --enable-fast-install[=PKGS] 1499 optimize for fast installation [default=yes] 1500 --disable-libtool-lock avoid locking (might break parallel builds) 1501 --enable-rpath Enable runtime linker paths (-R libtool option) 1502 --disable-largefile omit support for large files 1503 --disable-ccitt disable support for CCITT Group 3 & 4 algorithms 1504 --disable-packbits disable support for Macintosh PackBits algorithm 1505 --disable-lzw disable support for LZW algorithm 1506 --disable-thunder disable support for ThunderScan 4-bit RLE algorithm 1507 --disable-next disable support for NeXT 2-bit RLE algorithm 1508 --disable-logluv disable support for LogLuv high dynamic range 1509 encoding 1510 --disable-mdi disable support for Microsoft Document Imaging 1511 --disable-zlib disable Zlib usage (required for Deflate 1512 compression, enabled by default) 1513 --disable-pixarlog disable support for Pixar log-format algorithm 1514 (requires Zlib) 1515 --disable-jpeg disable IJG JPEG library usage (required for JPEG 1516 compression, enabled by default) 1517 --disable-old-jpeg disable support for Old JPEG compresson (read-only, 1518 enabled by default) 1519 --disable-jbig disable JBIG-KIT usage (required for ISO JBIG 1520 compression, enabled by default) 1521 --disable-lzma disable liblzma usage (required for LZMA2 1522 compression, enabled by default) 1523 --enable-jpeg12 enable libjpeg 8/12bit dual mode 1524 --enable-cxx enable C++ stream API building (requires C++ 1525 compiler) 1526 --disable-strip-chopping 1527 disable support for strip chopping (whether or not 1528 to convert single-strip uncompressed images to 1529 mutiple strips of specified size to reduce memory 1530 usage) 1531 --enable-defer-strile-load 1532 enable deferred strip/tile offset/size loading 1533 (experimental) 1534 --enable-chunky-strip-read 1535 enable reading large strips in chunks for 1536 TIFFReadScanline() (experimental) 1537 --disable-extrasample-as-alpha 1538 the RGBA interface will treat a fourth sample with 1539 no EXTRASAMPLE_ value as being ASSOCALPHA. Many 1540 packages produce RGBA files but don't mark the alpha 1541 properly 1542 --disable-check-ycbcr-subsampling 1543 disable picking up YCbCr subsampling info from the 1544 JPEG data stream to support files lacking the tag 1545 1546Optional Packages: 1547 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1548 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1549 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1550 both] 1551 --with-aix-soname=aix|svr4|both 1552 shared library versioning (aka "SONAME") variant to 1553 provide on AIX, [default=aix]. 1554 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1555 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1556 compiler's sysroot if not specified). 1557 --with-docdir=DIR directory where documentation should be installed 1558 --with-zlib-include-dir=DIR 1559 location of Zlib headers 1560 --with-zlib-lib-dir=DIR location of Zlib library binary 1561 --with-jpeg-include-dir=DIR 1562 location of IJG JPEG library headers 1563 --with-jpeg-lib-dir=DIR location of IJG JPEG library binary 1564 --with-jbig-include-dir=DIR 1565 location of JBIG-KIT headers 1566 --with-jbig-lib-dir=DIR location of JBIG-KIT library binary 1567 --with-lzma-include-dir=DIR 1568 location of liblzma headers 1569 --with-lzma-lib-dir=DIR location of liblzma library binary 1570 --with-jpeg12-include-dir=DIR 1571 location of libjpeg 12bit headers 1572 --with-jpeg12-lib=LIBRARY 1573 path to libjpeg 12bit library 1574 --with-x use the X Window System 1575 --with-default-strip-size=SIZE 1576 default size of the strip in bytes (when strip 1577 chopping enabled) [[default=8192]] 1578 1579Some influential environment variables: 1580 CC C compiler command 1581 CFLAGS C compiler flags 1582 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1583 nonstandard directory <lib dir> 1584 LIBS libraries to pass to the linker, e.g. -l<library> 1585 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1586 you have headers in a nonstandard directory <include dir> 1587 LT_SYS_LIBRARY_PATH 1588 User-defined run-time library search path. 1589 CPP C preprocessor 1590 CXX C++ compiler command 1591 CXXFLAGS C++ compiler flags 1592 CXXCPP C++ preprocessor 1593 XMKMF Path to xmkmf, Makefile generator for X Window System 1594 1595Use these variables to override the choices made by `configure' or to help 1596it to find libraries and programs with nonstandard names/locations. 1597 1598Report bugs to <[email protected]>. 1599_ACEOF 1600ac_status=$? 1601fi 1602 1603if test "$ac_init_help" = "recursive"; then 1604 # If there are subdirs, report their specific --help. 1605 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1606 test -d "$ac_dir" || 1607 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1608 continue 1609 ac_builddir=. 1610 1611case "$ac_dir" in 1612.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1613*) 1614 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1615 # A ".." for each directory in $ac_dir_suffix. 1616 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1617 case $ac_top_builddir_sub in 1618 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1619 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1620 esac ;; 1621esac 1622ac_abs_top_builddir=$ac_pwd 1623ac_abs_builddir=$ac_pwd$ac_dir_suffix 1624# for backward compatibility: 1625ac_top_builddir=$ac_top_build_prefix 1626 1627case $srcdir in 1628 .) # We are building in place. 1629 ac_srcdir=. 1630 ac_top_srcdir=$ac_top_builddir_sub 1631 ac_abs_top_srcdir=$ac_pwd ;; 1632 [\\/]* | ?:[\\/]* ) # Absolute name. 1633 ac_srcdir=$srcdir$ac_dir_suffix; 1634 ac_top_srcdir=$srcdir 1635 ac_abs_top_srcdir=$srcdir ;; 1636 *) # Relative name. 1637 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1638 ac_top_srcdir=$ac_top_build_prefix$srcdir 1639 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1640esac 1641ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1642 1643 cd "$ac_dir" || { ac_status=$?; continue; } 1644 # Check for guested configure. 1645 if test -f "$ac_srcdir/configure.gnu"; then 1646 echo && 1647 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1648 elif test -f "$ac_srcdir/configure"; then 1649 echo && 1650 $SHELL "$ac_srcdir/configure" --help=recursive 1651 else 1652 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1653 fi || ac_status=$? 1654 cd "$ac_pwd" || { ac_status=$?; break; } 1655 done 1656fi 1657 1658test -n "$ac_init_help" && exit $ac_status 1659if $ac_init_version; then 1660 cat <<\_ACEOF 1661LibTIFF Software configure 4.0.3 1662generated by GNU Autoconf 2.69 1663 1664Copyright (C) 2012 Free Software Foundation, Inc. 1665This configure script is free software; the Free Software Foundation 1666gives unlimited permission to copy, distribute and modify it. 1667_ACEOF 1668 exit 1669fi 1670 1671## ------------------------ ## 1672## Autoconf initialization. ## 1673## ------------------------ ## 1674 1675# ac_fn_c_try_compile LINENO 1676# -------------------------- 1677# Try to compile conftest.$ac_ext, and return whether this succeeded. 1678ac_fn_c_try_compile () 1679{ 1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1681 rm -f conftest.$ac_objext 1682 if { { ac_try="$ac_compile" 1683case "(($ac_try" in 1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1685 *) ac_try_echo=$ac_try;; 1686esac 1687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1688$as_echo "$ac_try_echo"; } >&5 1689 (eval "$ac_compile") 2>conftest.err 1690 ac_status=$? 1691 if test -s conftest.err; then 1692 grep -v '^ *+' conftest.err >conftest.er1 1693 cat conftest.er1 >&5 1694 mv -f conftest.er1 conftest.err 1695 fi 1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1697 test $ac_status = 0; } && { 1698 test -z "$ac_c_werror_flag" || 1699 test ! -s conftest.err 1700 } && test -s conftest.$ac_objext; then : 1701 ac_retval=0 1702else 1703 $as_echo "$as_me: failed program was:" >&5 1704sed 's/^/| /' conftest.$ac_ext >&5 1705 1706 ac_retval=1 1707fi 1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1709 as_fn_set_status $ac_retval 1710 1711} # ac_fn_c_try_compile 1712 1713# ac_fn_c_try_link LINENO 1714# ----------------------- 1715# Try to link conftest.$ac_ext, and return whether this succeeded. 1716ac_fn_c_try_link () 1717{ 1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1719 rm -f conftest.$ac_objext conftest$ac_exeext 1720 if { { ac_try="$ac_link" 1721case "(($ac_try" in 1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1723 *) ac_try_echo=$ac_try;; 1724esac 1725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1726$as_echo "$ac_try_echo"; } >&5 1727 (eval "$ac_link") 2>conftest.err 1728 ac_status=$? 1729 if test -s conftest.err; then 1730 grep -v '^ *+' conftest.err >conftest.er1 1731 cat conftest.er1 >&5 1732 mv -f conftest.er1 conftest.err 1733 fi 1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1735 test $ac_status = 0; } && { 1736 test -z "$ac_c_werror_flag" || 1737 test ! -s conftest.err 1738 } && test -s conftest$ac_exeext && { 1739 test "$cross_compiling" = yes || 1740 test -x conftest$ac_exeext 1741 }; then : 1742 ac_retval=0 1743else 1744 $as_echo "$as_me: failed program was:" >&5 1745sed 's/^/| /' conftest.$ac_ext >&5 1746 1747 ac_retval=1 1748fi 1749 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1750 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1751 # interfere with the next link command; also delete a directory that is 1752 # left behind by Apple's compiler. We do this before executing the actions. 1753 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1755 as_fn_set_status $ac_retval 1756 1757} # ac_fn_c_try_link 1758 1759# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1760# ------------------------------------------------------- 1761# Tests whether HEADER exists and can be compiled using the include files in 1762# INCLUDES, setting the cache variable VAR accordingly. 1763ac_fn_c_check_header_compile () 1764{ 1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1767$as_echo_n "checking for $2... " >&6; } 1768if eval \${$3+:} false; then : 1769 $as_echo_n "(cached) " >&6 1770else 1771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1772/* end confdefs.h. */ 1773$4 1774#include <$2> 1775_ACEOF 1776if ac_fn_c_try_compile "$LINENO"; then : 1777 eval "$3=yes" 1778else 1779 eval "$3=no" 1780fi 1781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1782fi 1783eval ac_res=\$$3 1784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1785$as_echo "$ac_res" >&6; } 1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1787 1788} # ac_fn_c_check_header_compile 1789 1790# ac_fn_c_try_cpp LINENO 1791# ---------------------- 1792# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1793ac_fn_c_try_cpp () 1794{ 1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1796 if { { ac_try="$ac_cpp conftest.$ac_ext" 1797case "(($ac_try" in 1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1799 *) ac_try_echo=$ac_try;; 1800esac 1801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1802$as_echo "$ac_try_echo"; } >&5 1803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1804 ac_status=$? 1805 if test -s conftest.err; then 1806 grep -v '^ *+' conftest.err >conftest.er1 1807 cat conftest.er1 >&5 1808 mv -f conftest.er1 conftest.err 1809 fi 1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1811 test $ac_status = 0; } > conftest.i && { 1812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1813 test ! -s conftest.err 1814 }; then : 1815 ac_retval=0 1816else 1817 $as_echo "$as_me: failed program was:" >&5 1818sed 's/^/| /' conftest.$ac_ext >&5 1819 1820 ac_retval=1 1821fi 1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1823 as_fn_set_status $ac_retval 1824 1825} # ac_fn_c_try_cpp 1826 1827# ac_fn_c_try_run LINENO 1828# ---------------------- 1829# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1830# that executables *can* be run. 1831ac_fn_c_try_run () 1832{ 1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1834 if { { ac_try="$ac_link" 1835case "(($ac_try" in 1836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1837 *) ac_try_echo=$ac_try;; 1838esac 1839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1840$as_echo "$ac_try_echo"; } >&5 1841 (eval "$ac_link") 2>&5 1842 ac_status=$? 1843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1844 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1845 { { case "(($ac_try" in 1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1847 *) ac_try_echo=$ac_try;; 1848esac 1849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1850$as_echo "$ac_try_echo"; } >&5 1851 (eval "$ac_try") 2>&5 1852 ac_status=$? 1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1854 test $ac_status = 0; }; }; then : 1855 ac_retval=0 1856else 1857 $as_echo "$as_me: program exited with status $ac_status" >&5 1858 $as_echo "$as_me: failed program was:" >&5 1859sed 's/^/| /' conftest.$ac_ext >&5 1860 1861 ac_retval=$ac_status 1862fi 1863 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1865 as_fn_set_status $ac_retval 1866 1867} # ac_fn_c_try_run 1868 1869# ac_fn_c_check_func LINENO FUNC VAR 1870# ---------------------------------- 1871# Tests whether FUNC exists, setting the cache variable VAR accordingly 1872ac_fn_c_check_func () 1873{ 1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1876$as_echo_n "checking for $2... " >&6; } 1877if eval \${$3+:} false; then : 1878 $as_echo_n "(cached) " >&6 1879else 1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1881/* end confdefs.h. */ 1882/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1883 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1884#define $2 innocuous_$2 1885 1886/* System header to define __stub macros and hopefully few prototypes, 1887 which can conflict with char $2 (); below. 1888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1889 <limits.h> exists even on freestanding compilers. */ 1890 1891#ifdef __STDC__ 1892# include <limits.h> 1893#else 1894# include <assert.h> 1895#endif 1896 1897#undef $2 1898 1899/* Override any GCC internal prototype to avoid an error. 1900 Use char because int might match the return type of a GCC 1901 builtin and then its argument prototype would still apply. */ 1902#ifdef __cplusplus 1903extern "C" 1904#endif 1905char $2 (); 1906/* The GNU C library defines this for functions which it implements 1907 to always fail with ENOSYS. Some functions are actually named 1908 something starting with __ and the normal name is an alias. */ 1909#if defined __stub_$2 || defined __stub___$2 1910choke me 1911#endif 1912 1913int 1914main () 1915{ 1916return $2 (); 1917 ; 1918 return 0; 1919} 1920_ACEOF 1921if ac_fn_c_try_link "$LINENO"; then : 1922 eval "$3=yes" 1923else 1924 eval "$3=no" 1925fi 1926rm -f core conftest.err conftest.$ac_objext \ 1927 conftest$ac_exeext conftest.$ac_ext 1928fi 1929eval ac_res=\$$3 1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1931$as_echo "$ac_res" >&6; } 1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1933 1934} # ac_fn_c_check_func 1935 1936# ac_fn_cxx_try_compile LINENO 1937# ---------------------------- 1938# Try to compile conftest.$ac_ext, and return whether this succeeded. 1939ac_fn_cxx_try_compile () 1940{ 1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1942 rm -f conftest.$ac_objext 1943 if { { ac_try="$ac_compile" 1944case "(($ac_try" in 1945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1946 *) ac_try_echo=$ac_try;; 1947esac 1948eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1949$as_echo "$ac_try_echo"; } >&5 1950 (eval "$ac_compile") 2>conftest.err 1951 ac_status=$? 1952 if test -s conftest.err; then 1953 grep -v '^ *+' conftest.err >conftest.er1 1954 cat conftest.er1 >&5 1955 mv -f conftest.er1 conftest.err 1956 fi 1957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1958 test $ac_status = 0; } && { 1959 test -z "$ac_cxx_werror_flag" || 1960 test ! -s conftest.err 1961 } && test -s conftest.$ac_objext; then : 1962 ac_retval=0 1963else 1964 $as_echo "$as_me: failed program was:" >&5 1965sed 's/^/| /' conftest.$ac_ext >&5 1966 1967 ac_retval=1 1968fi 1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1970 as_fn_set_status $ac_retval 1971 1972} # ac_fn_cxx_try_compile 1973 1974# ac_fn_cxx_try_cpp LINENO 1975# ------------------------ 1976# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1977ac_fn_cxx_try_cpp () 1978{ 1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1980 if { { ac_try="$ac_cpp conftest.$ac_ext" 1981case "(($ac_try" in 1982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1983 *) ac_try_echo=$ac_try;; 1984esac 1985eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1986$as_echo "$ac_try_echo"; } >&5 1987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1988 ac_status=$? 1989 if test -s conftest.err; then 1990 grep -v '^ *+' conftest.err >conftest.er1 1991 cat conftest.er1 >&5 1992 mv -f conftest.er1 conftest.err 1993 fi 1994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1995 test $ac_status = 0; } > conftest.i && { 1996 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1997 test ! -s conftest.err 1998 }; then : 1999 ac_retval=0 2000else 2001 $as_echo "$as_me: failed program was:" >&5 2002sed 's/^/| /' conftest.$ac_ext >&5 2003 2004 ac_retval=1 2005fi 2006 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2007 as_fn_set_status $ac_retval 2008 2009} # ac_fn_cxx_try_cpp 2010 2011# ac_fn_cxx_try_link LINENO 2012# ------------------------- 2013# Try to link conftest.$ac_ext, and return whether this succeeded. 2014ac_fn_cxx_try_link () 2015{ 2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2017 rm -f conftest.$ac_objext conftest$ac_exeext 2018 if { { ac_try="$ac_link" 2019case "(($ac_try" in 2020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2021 *) ac_try_echo=$ac_try;; 2022esac 2023eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2024$as_echo "$ac_try_echo"; } >&5 2025 (eval "$ac_link") 2>conftest.err 2026 ac_status=$? 2027 if test -s conftest.err; then 2028 grep -v '^ *+' conftest.err >conftest.er1 2029 cat conftest.er1 >&5 2030 mv -f conftest.er1 conftest.err 2031 fi 2032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2033 test $ac_status = 0; } && { 2034 test -z "$ac_cxx_werror_flag" || 2035 test ! -s conftest.err 2036 } && test -s conftest$ac_exeext && { 2037 test "$cross_compiling" = yes || 2038 test -x conftest$ac_exeext 2039 }; then : 2040 ac_retval=0 2041else 2042 $as_echo "$as_me: failed program was:" >&5 2043sed 's/^/| /' conftest.$ac_ext >&5 2044 2045 ac_retval=1 2046fi 2047 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2048 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2049 # interfere with the next link command; also delete a directory that is 2050 # left behind by Apple's compiler. We do this before executing the actions. 2051 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2052 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2053 as_fn_set_status $ac_retval 2054 2055} # ac_fn_cxx_try_link 2056 2057# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2058# ------------------------------------------------------- 2059# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2060# the include files in INCLUDES and setting the cache variable VAR 2061# accordingly. 2062ac_fn_c_check_header_mongrel () 2063{ 2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2065 if eval \${$3+:} false; then : 2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2067$as_echo_n "checking for $2... " >&6; } 2068if eval \${$3+:} false; then : 2069 $as_echo_n "(cached) " >&6 2070fi 2071eval ac_res=\$$3 2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2073$as_echo "$ac_res" >&6; } 2074else 2075 # Is the header compilable? 2076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2077$as_echo_n "checking $2 usability... " >&6; } 2078cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2079/* end confdefs.h. */ 2080$4 2081#include <$2> 2082_ACEOF 2083if ac_fn_c_try_compile "$LINENO"; then : 2084 ac_header_compiler=yes 2085else 2086 ac_header_compiler=no 2087fi 2088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2090$as_echo "$ac_header_compiler" >&6; } 2091 2092# Is the header present? 2093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2094$as_echo_n "checking $2 presence... " >&6; } 2095cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2096/* end confdefs.h. */ 2097#include <$2> 2098_ACEOF 2099if ac_fn_c_try_cpp "$LINENO"; then : 2100 ac_header_preproc=yes 2101else 2102 ac_header_preproc=no 2103fi 2104rm -f conftest.err conftest.i conftest.$ac_ext 2105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2106$as_echo "$ac_header_preproc" >&6; } 2107 2108# So? What about this header? 2109case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2110 yes:no: ) 2111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2112$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2114$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2115 ;; 2116 no:yes:* ) 2117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2118$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2120$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2122$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2124$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2126$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2127( $as_echo "## -------------------------------------- ## 2128## Report this to [email protected] ## 2129## -------------------------------------- ##" 2130 ) | sed "s/^/$as_me: WARNING: /" >&2 2131 ;; 2132esac 2133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2134$as_echo_n "checking for $2... " >&6; } 2135if eval \${$3+:} false; then : 2136 $as_echo_n "(cached) " >&6 2137else 2138 eval "$3=\$ac_header_compiler" 2139fi 2140eval ac_res=\$$3 2141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2142$as_echo "$ac_res" >&6; } 2143fi 2144 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2145 2146} # ac_fn_c_check_header_mongrel 2147 2148# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2149# ------------------------------------------- 2150# Tests whether TYPE exists after having included INCLUDES, setting cache 2151# variable VAR accordingly. 2152ac_fn_c_check_type () 2153{ 2154 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2156$as_echo_n "checking for $2... " >&6; } 2157if eval \${$3+:} false; then : 2158 $as_echo_n "(cached) " >&6 2159else 2160 eval "$3=no" 2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2162/* end confdefs.h. */ 2163$4 2164int 2165main () 2166{ 2167if (sizeof ($2)) 2168 return 0; 2169 ; 2170 return 0; 2171} 2172_ACEOF 2173if ac_fn_c_try_compile "$LINENO"; then : 2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2175/* end confdefs.h. */ 2176$4 2177int 2178main () 2179{ 2180if (sizeof (($2))) 2181 return 0; 2182 ; 2183 return 0; 2184} 2185_ACEOF 2186if ac_fn_c_try_compile "$LINENO"; then : 2187 2188else 2189 eval "$3=yes" 2190fi 2191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2192fi 2193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2194fi 2195eval ac_res=\$$3 2196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2197$as_echo "$ac_res" >&6; } 2198 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2199 2200} # ac_fn_c_check_type 2201 2202# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2203# -------------------------------------------- 2204# Tries to find the compile-time value of EXPR in a program that includes 2205# INCLUDES, setting VAR accordingly. Returns whether the value could be 2206# computed 2207ac_fn_c_compute_int () 2208{ 2209 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2210 if test "$cross_compiling" = yes; then 2211 # Depending upon the size, compute the lo and hi bounds. 2212cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2213/* end confdefs.h. */ 2214$4 2215int 2216main () 2217{ 2218static int test_array [1 - 2 * !(($2) >= 0)]; 2219test_array [0] = 0; 2220return test_array [0]; 2221 2222 ; 2223 return 0; 2224} 2225_ACEOF 2226if ac_fn_c_try_compile "$LINENO"; then : 2227 ac_lo=0 ac_mid=0 2228 while :; do 2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2230/* end confdefs.h. */ 2231$4 2232int 2233main () 2234{ 2235static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2236test_array [0] = 0; 2237return test_array [0]; 2238 2239 ; 2240 return 0; 2241} 2242_ACEOF 2243if ac_fn_c_try_compile "$LINENO"; then : 2244 ac_hi=$ac_mid; break 2245else 2246 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2247 if test $ac_lo -le $ac_mid; then 2248 ac_lo= ac_hi= 2249 break 2250 fi 2251 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2252fi 2253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2254 done 2255else 2256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2257/* end confdefs.h. */ 2258$4 2259int 2260main () 2261{ 2262static int test_array [1 - 2 * !(($2) < 0)]; 2263test_array [0] = 0; 2264return test_array [0]; 2265 2266 ; 2267 return 0; 2268} 2269_ACEOF 2270if ac_fn_c_try_compile "$LINENO"; then : 2271 ac_hi=-1 ac_mid=-1 2272 while :; do 2273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2274/* end confdefs.h. */ 2275$4 2276int 2277main () 2278{ 2279static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2280test_array [0] = 0; 2281return test_array [0]; 2282 2283 ; 2284 return 0; 2285} 2286_ACEOF 2287if ac_fn_c_try_compile "$LINENO"; then : 2288 ac_lo=$ac_mid; break 2289else 2290 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2291 if test $ac_mid -le $ac_hi; then 2292 ac_lo= ac_hi= 2293 break 2294 fi 2295 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2296fi 2297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2298 done 2299else 2300 ac_lo= ac_hi= 2301fi 2302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2303fi 2304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2305# Binary search between lo and hi bounds. 2306while test "x$ac_lo" != "x$ac_hi"; do 2307 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2309/* end confdefs.h. */ 2310$4 2311int 2312main () 2313{ 2314static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2315test_array [0] = 0; 2316return test_array [0]; 2317 2318 ; 2319 return 0; 2320} 2321_ACEOF 2322if ac_fn_c_try_compile "$LINENO"; then : 2323 ac_hi=$ac_mid 2324else 2325 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2326fi 2327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2328done 2329case $ac_lo in #(( 2330?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2331'') ac_retval=1 ;; 2332esac 2333 else 2334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2335/* end confdefs.h. */ 2336$4 2337static long int longval () { return $2; } 2338static unsigned long int ulongval () { return $2; } 2339#include <stdio.h> 2340#include <stdlib.h> 2341int 2342main () 2343{ 2344 2345 FILE *f = fopen ("conftest.val", "w"); 2346 if (! f) 2347 return 1; 2348 if (($2) < 0) 2349 { 2350 long int i = longval (); 2351 if (i != ($2)) 2352 return 1; 2353 fprintf (f, "%ld", i); 2354 } 2355 else 2356 { 2357 unsigned long int i = ulongval (); 2358 if (i != ($2)) 2359 return 1; 2360 fprintf (f, "%lu", i); 2361 } 2362 /* Do not output a trailing newline, as this causes \r\n confusion 2363 on some platforms. */ 2364 return ferror (f) || fclose (f) != 0; 2365 2366 ; 2367 return 0; 2368} 2369_ACEOF 2370if ac_fn_c_try_run "$LINENO"; then : 2371 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2372else 2373 ac_retval=1 2374fi 2375rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2376 conftest.$ac_objext conftest.beam conftest.$ac_ext 2377rm -f conftest.val 2378 2379 fi 2380 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2381 as_fn_set_status $ac_retval 2382 2383} # ac_fn_c_compute_int 2384cat >config.log <<_ACEOF 2385This file contains any messages produced by compilers while 2386running configure, to aid debugging if configure makes a mistake. 2387 2388It was created by LibTIFF Software $as_me 4.0.3, which was 2389generated by GNU Autoconf 2.69. Invocation command line was 2390 2391 $ $0 $@ 2392 2393_ACEOF 2394exec 5>>config.log 2395{ 2396cat <<_ASUNAME 2397## --------- ## 2398## Platform. ## 2399## --------- ## 2400 2401hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2402uname -m = `(uname -m) 2>/dev/null || echo unknown` 2403uname -r = `(uname -r) 2>/dev/null || echo unknown` 2404uname -s = `(uname -s) 2>/dev/null || echo unknown` 2405uname -v = `(uname -v) 2>/dev/null || echo unknown` 2406 2407/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2408/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2409 2410/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2411/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2412/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2413/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2414/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2415/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2416/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2417 2418_ASUNAME 2419 2420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2421for as_dir in $PATH 2422do 2423 IFS=$as_save_IFS 2424 test -z "$as_dir" && as_dir=. 2425 $as_echo "PATH: $as_dir" 2426 done 2427IFS=$as_save_IFS 2428 2429} >&5 2430 2431cat >&5 <<_ACEOF 2432 2433 2434## ----------- ## 2435## Core tests. ## 2436## ----------- ## 2437 2438_ACEOF 2439 2440 2441# Keep a trace of the command line. 2442# Strip out --no-create and --no-recursion so they do not pile up. 2443# Strip out --silent because we don't want to record it for future runs. 2444# Also quote any args containing shell meta-characters. 2445# Make two passes to allow for proper duplicate-argument suppression. 2446ac_configure_args= 2447ac_configure_args0= 2448ac_configure_args1= 2449ac_must_keep_next=false 2450for ac_pass in 1 2 2451do 2452 for ac_arg 2453 do 2454 case $ac_arg in 2455 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2456 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2457 | -silent | --silent | --silen | --sile | --sil) 2458 continue ;; 2459 *\'*) 2460 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2461 esac 2462 case $ac_pass in 2463 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2464 2) 2465 as_fn_append ac_configure_args1 " '$ac_arg'" 2466 if test $ac_must_keep_next = true; then 2467 ac_must_keep_next=false # Got value, back to normal. 2468 else 2469 case $ac_arg in 2470 *=* | --config-cache | -C | -disable-* | --disable-* \ 2471 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2472 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2473 | -with-* | --with-* | -without-* | --without-* | --x) 2474 case "$ac_configure_args0 " in 2475 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2476 esac 2477 ;; 2478 -* ) ac_must_keep_next=true ;; 2479 esac 2480 fi 2481 as_fn_append ac_configure_args " '$ac_arg'" 2482 ;; 2483 esac 2484 done 2485done 2486{ ac_configure_args0=; unset ac_configure_args0;} 2487{ ac_configure_args1=; unset ac_configure_args1;} 2488 2489# When interrupted or exit'd, cleanup temporary files, and complete 2490# config.log. We remove comments because anyway the quotes in there 2491# would cause problems or look ugly. 2492# WARNING: Use '\'' to represent an apostrophe within the trap. 2493# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2494trap 'exit_status=$? 2495 # Save into config.log some information that might help in debugging. 2496 { 2497 echo 2498 2499 $as_echo "## ---------------- ## 2500## Cache variables. ## 2501## ---------------- ##" 2502 echo 2503 # The following way of writing the cache mishandles newlines in values, 2504( 2505 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2506 eval ac_val=\$$ac_var 2507 case $ac_val in #( 2508 *${as_nl}*) 2509 case $ac_var in #( 2510 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2511$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2512 esac 2513 case $ac_var in #( 2514 _ | IFS | as_nl) ;; #( 2515 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2516 *) { eval $ac_var=; unset $ac_var;} ;; 2517 esac ;; 2518 esac 2519 done 2520 (set) 2>&1 | 2521 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2522 *${as_nl}ac_space=\ *) 2523 sed -n \ 2524 "s/'\''/'\''\\\\'\'''\''/g; 2525 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2526 ;; #( 2527 *) 2528 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2529 ;; 2530 esac | 2531 sort 2532) 2533 echo 2534 2535 $as_echo "## ----------------- ## 2536## Output variables. ## 2537## ----------------- ##" 2538 echo 2539 for ac_var in $ac_subst_vars 2540 do 2541 eval ac_val=\$$ac_var 2542 case $ac_val in 2543 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2544 esac 2545 $as_echo "$ac_var='\''$ac_val'\''" 2546 done | sort 2547 echo 2548 2549 if test -n "$ac_subst_files"; then 2550 $as_echo "## ------------------- ## 2551## File substitutions. ## 2552## ------------------- ##" 2553 echo 2554 for ac_var in $ac_subst_files 2555 do 2556 eval ac_val=\$$ac_var 2557 case $ac_val in 2558 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2559 esac 2560 $as_echo "$ac_var='\''$ac_val'\''" 2561 done | sort 2562 echo 2563 fi 2564 2565 if test -s confdefs.h; then 2566 $as_echo "## ----------- ## 2567## confdefs.h. ## 2568## ----------- ##" 2569 echo 2570 cat confdefs.h 2571 echo 2572 fi 2573 test "$ac_signal" != 0 && 2574 $as_echo "$as_me: caught signal $ac_signal" 2575 $as_echo "$as_me: exit $exit_status" 2576 } >&5 2577 rm -f core *.core core.conftest.* && 2578 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2579 exit $exit_status 2580' 0 2581for ac_signal in 1 2 13 15; do 2582 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2583done 2584ac_signal=0 2585 2586# confdefs.h avoids OS command line length limits that DEFS can exceed. 2587rm -f -r conftest* confdefs.h 2588 2589$as_echo "/* confdefs.h */" > confdefs.h 2590 2591# Predefined preprocessor variables. 2592 2593cat >>confdefs.h <<_ACEOF 2594#define PACKAGE_NAME "$PACKAGE_NAME" 2595_ACEOF 2596 2597cat >>confdefs.h <<_ACEOF 2598#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2599_ACEOF 2600 2601cat >>confdefs.h <<_ACEOF 2602#define PACKAGE_VERSION "$PACKAGE_VERSION" 2603_ACEOF 2604 2605cat >>confdefs.h <<_ACEOF 2606#define PACKAGE_STRING "$PACKAGE_STRING" 2607_ACEOF 2608 2609cat >>confdefs.h <<_ACEOF 2610#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2611_ACEOF 2612 2613cat >>confdefs.h <<_ACEOF 2614#define PACKAGE_URL "$PACKAGE_URL" 2615_ACEOF 2616 2617 2618# Let the site file select an alternate cache file if it wants to. 2619# Prefer an explicitly selected file to automatically selected ones. 2620ac_site_file1=NONE 2621ac_site_file2=NONE 2622if test -n "$CONFIG_SITE"; then 2623 # We do not want a PATH search for config.site. 2624 case $CONFIG_SITE in #(( 2625 -*) ac_site_file1=./$CONFIG_SITE;; 2626 */*) ac_site_file1=$CONFIG_SITE;; 2627 *) ac_site_file1=./$CONFIG_SITE;; 2628 esac 2629elif test "x$prefix" != xNONE; then 2630 ac_site_file1=$prefix/share/config.site 2631 ac_site_file2=$prefix/etc/config.site 2632else 2633 ac_site_file1=$ac_default_prefix/share/config.site 2634 ac_site_file2=$ac_default_prefix/etc/config.site 2635fi 2636for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2637do 2638 test "x$ac_site_file" = xNONE && continue 2639 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2640 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2641$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2642 sed 's/^/| /' "$ac_site_file" >&5 2643 . "$ac_site_file" \ 2644 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2645$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2646as_fn_error $? "failed to load site script $ac_site_file 2647See \`config.log' for more details" "$LINENO" 5; } 2648 fi 2649done 2650 2651if test -r "$cache_file"; then 2652 # Some versions of bash will fail to source /dev/null (special files 2653 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2654 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2655 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2656$as_echo "$as_me: loading cache $cache_file" >&6;} 2657 case $cache_file in 2658 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2659 *) . "./$cache_file";; 2660 esac 2661 fi 2662else 2663 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2664$as_echo "$as_me: creating cache $cache_file" >&6;} 2665 >$cache_file 2666fi 2667 2668# Check that the precious variables saved in the cache have kept the same 2669# value. 2670ac_cache_corrupted=false 2671for ac_var in $ac_precious_vars; do 2672 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2673 eval ac_new_set=\$ac_env_${ac_var}_set 2674 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2675 eval ac_new_val=\$ac_env_${ac_var}_value 2676 case $ac_old_set,$ac_new_set in 2677 set,) 2678 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2679$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2680 ac_cache_corrupted=: ;; 2681 ,set) 2682 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2683$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2684 ac_cache_corrupted=: ;; 2685 ,);; 2686 *) 2687 if test "x$ac_old_val" != "x$ac_new_val"; then 2688 # differences in whitespace do not lead to failure. 2689 ac_old_val_w=`echo x $ac_old_val` 2690 ac_new_val_w=`echo x $ac_new_val` 2691 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2692 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2693$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2694 ac_cache_corrupted=: 2695 else 2696 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2697$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2698 eval $ac_var=\$ac_old_val 2699 fi 2700 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2701$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2702 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2703$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2704 fi;; 2705 esac 2706 # Pass precious variables to config.status. 2707 if test "$ac_new_set" = set; then 2708 case $ac_new_val in 2709 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2710 *) ac_arg=$ac_var=$ac_new_val ;; 2711 esac 2712 case " $ac_configure_args " in 2713 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2714 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2715 esac 2716 fi 2717done 2718if $ac_cache_corrupted; then 2719 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2720$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2721 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2722$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2723 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2724fi 2725## -------------------- ## 2726## Main body of script. ## 2727## -------------------- ## 2728 2729ac_ext=c 2730ac_cpp='$CPP $CPPFLAGS' 2731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2733ac_compiler_gnu=$ac_cv_c_compiler_gnu 2734 2735 2736ac_aux_dir= 2737for ac_dir in config "$srcdir"/config; do 2738 if test -f "$ac_dir/install-sh"; then 2739 ac_aux_dir=$ac_dir 2740 ac_install_sh="$ac_aux_dir/install-sh -c" 2741 break 2742 elif test -f "$ac_dir/install.sh"; then 2743 ac_aux_dir=$ac_dir 2744 ac_install_sh="$ac_aux_dir/install.sh -c" 2745 break 2746 elif test -f "$ac_dir/shtool"; then 2747 ac_aux_dir=$ac_dir 2748 ac_install_sh="$ac_aux_dir/shtool install -c" 2749 break 2750 fi 2751done 2752if test -z "$ac_aux_dir"; then 2753 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 2754fi 2755 2756# These three variables are undocumented and unsupported, 2757# and are intended to be withdrawn in a future Autoconf release. 2758# They can cause serious problems if a builder's source tree is in a directory 2759# whose full name contains unusual characters. 2760ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2761ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2762ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2763 2764 2765 2766ac_ext=c 2767ac_cpp='$CPP $CPPFLAGS' 2768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2770ac_compiler_gnu=$ac_cv_c_compiler_gnu 2771 2772 2773# Make sure we can run config.sub. 2774$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2775 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2776 2777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2778$as_echo_n "checking build system type... " >&6; } 2779if ${ac_cv_build+:} false; then : 2780 $as_echo_n "(cached) " >&6 2781else 2782 ac_build_alias=$build_alias 2783test "x$ac_build_alias" = x && 2784 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2785test "x$ac_build_alias" = x && 2786 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2787ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2788 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2789 2790fi 2791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2792$as_echo "$ac_cv_build" >&6; } 2793case $ac_cv_build in 2794*-*-*) ;; 2795*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2796esac 2797build=$ac_cv_build 2798ac_save_IFS=$IFS; IFS='-' 2799set x $ac_cv_build 2800shift 2801build_cpu=$1 2802build_vendor=$2 2803shift; shift 2804# Remember, the first character of IFS is used to create $*, 2805# except with old shells: 2806build_os=$* 2807IFS=$ac_save_IFS 2808case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2809 2810 2811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2812$as_echo_n "checking host system type... " >&6; } 2813if ${ac_cv_host+:} false; then : 2814 $as_echo_n "(cached) " >&6 2815else 2816 if test "x$host_alias" = x; then 2817 ac_cv_host=$ac_cv_build 2818else 2819 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2820 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2821fi 2822 2823fi 2824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2825$as_echo "$ac_cv_host" >&6; } 2826case $ac_cv_host in 2827*-*-*) ;; 2828*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2829esac 2830host=$ac_cv_host 2831ac_save_IFS=$IFS; IFS='-' 2832set x $ac_cv_host 2833shift 2834host_cpu=$1 2835host_vendor=$2 2836shift; shift 2837# Remember, the first character of IFS is used to create $*, 2838# except with old shells: 2839host_os=$* 2840IFS=$ac_save_IFS 2841case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2842 2843 2844 2845am__api_version='1.15' 2846 2847# Find a good install program. We prefer a C program (faster), 2848# so one script is as good as another. But avoid the broken or 2849# incompatible versions: 2850# SysV /etc/install, /usr/sbin/install 2851# SunOS /usr/etc/install 2852# IRIX /sbin/install 2853# AIX /bin/install 2854# AmigaOS /C/install, which installs bootblocks on floppy discs 2855# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2856# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2857# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2858# OS/2's system install, which has a completely different semantic 2859# ./install, which can be erroneously created by make from ./install.sh. 2860# Reject install programs that cannot install multiple files. 2861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2862$as_echo_n "checking for a BSD-compatible install... " >&6; } 2863if test -z "$INSTALL"; then 2864if ${ac_cv_path_install+:} false; then : 2865 $as_echo_n "(cached) " >&6 2866else 2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2868for as_dir in $PATH 2869do 2870 IFS=$as_save_IFS 2871 test -z "$as_dir" && as_dir=. 2872 # Account for people who put trailing slashes in PATH elements. 2873case $as_dir/ in #(( 2874 ./ | .// | /[cC]/* | \ 2875 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2876 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2877 /usr/ucb/* ) ;; 2878 *) 2879 # OSF1 and SCO ODT 3.0 have their own names for install. 2880 # Don't use installbsd from OSF since it installs stuff as root 2881 # by default. 2882 for ac_prog in ginstall scoinst install; do 2883 for ac_exec_ext in '' $ac_executable_extensions; do 2884 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2885 if test $ac_prog = install && 2886 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2887 # AIX install. It has an incompatible calling convention. 2888 : 2889 elif test $ac_prog = install && 2890 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2891 # program-specific install script used by HP pwplus--don't use. 2892 : 2893 else 2894 rm -rf conftest.one conftest.two conftest.dir 2895 echo one > conftest.one 2896 echo two > conftest.two 2897 mkdir conftest.dir 2898 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2899 test -s conftest.one && test -s conftest.two && 2900 test -s conftest.dir/conftest.one && 2901 test -s conftest.dir/conftest.two 2902 then 2903 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2904 break 3 2905 fi 2906 fi 2907 fi 2908 done 2909 done 2910 ;; 2911esac 2912 2913 done 2914IFS=$as_save_IFS 2915 2916rm -rf conftest.one conftest.two conftest.dir 2917 2918fi 2919 if test "${ac_cv_path_install+set}" = set; then 2920 INSTALL=$ac_cv_path_install 2921 else 2922 # As a last resort, use the slow shell script. Don't cache a 2923 # value for INSTALL within a source directory, because that will 2924 # break other packages using the cache if that directory is 2925 # removed, or if the value is a relative name. 2926 INSTALL=$ac_install_sh 2927 fi 2928fi 2929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2930$as_echo "$INSTALL" >&6; } 2931 2932# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2933# It thinks the first close brace ends the variable substitution. 2934test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2935 2936test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2937 2938test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2939 2940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2941$as_echo_n "checking whether build environment is sane... " >&6; } 2942# Reject unsafe characters in $srcdir or the absolute working directory 2943# name. Accept space and tab only in the latter. 2944am_lf=' 2945' 2946case `pwd` in 2947 *[\\\"\#\$\&\'\`$am_lf]*) 2948 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2949esac 2950case $srcdir in 2951 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2952 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2953esac 2954 2955# Do 'set' in a subshell so we don't clobber the current shell's 2956# arguments. Must try -L first in case configure is actually a 2957# symlink; some systems play weird games with the mod time of symlinks 2958# (eg FreeBSD returns the mod time of the symlink's containing 2959# directory). 2960if ( 2961 am_has_slept=no 2962 for am_try in 1 2; do 2963 echo "timestamp, slept: $am_has_slept" > conftest.file 2964 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2965 if test "$*" = "X"; then 2966 # -L didn't work. 2967 set X `ls -t "$srcdir/configure" conftest.file` 2968 fi 2969 if test "$*" != "X $srcdir/configure conftest.file" \ 2970 && test "$*" != "X conftest.file $srcdir/configure"; then 2971 2972 # If neither matched, then we have a broken ls. This can happen 2973 # if, for instance, CONFIG_SHELL is bash and it inherits a 2974 # broken ls alias from the environment. This has actually 2975 # happened. Such a system could not be considered "sane". 2976 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2977 alias in your environment" "$LINENO" 5 2978 fi 2979 if test "$2" = conftest.file || test $am_try -eq 2; then 2980 break 2981 fi 2982 # Just in case. 2983 sleep 1 2984 am_has_slept=yes 2985 done 2986 test "$2" = conftest.file 2987 ) 2988then 2989 # Ok. 2990 : 2991else 2992 as_fn_error $? "newly created file is older than distributed files! 2993Check your system clock" "$LINENO" 5 2994fi 2995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2996$as_echo "yes" >&6; } 2997# If we didn't sleep, we still need to ensure time stamps of config.status and 2998# generated files are strictly newer. 2999am_sleep_pid= 3000if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3001 ( sleep 1 ) & 3002 am_sleep_pid=$! 3003fi 3004 3005rm -f conftest.file 3006 3007test "$program_prefix" != NONE && 3008 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3009# Use a double $ so make ignores it. 3010test "$program_suffix" != NONE && 3011 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3012# Double any \ or $. 3013# By default was `s,x,x', remove it if useless. 3014ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3015program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3016 3017# Expand $ac_aux_dir to an absolute path. 3018am_aux_dir=`cd "$ac_aux_dir" && pwd` 3019 3020if test x"${MISSING+set}" != xset; then 3021 case $am_aux_dir in 3022 *\ * | *\ *) 3023 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3024 *) 3025 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3026 esac 3027fi 3028# Use eval to expand $SHELL 3029if eval "$MISSING --is-lightweight"; then 3030 am_missing_run="$MISSING " 3031else 3032 am_missing_run= 3033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3034$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3035fi 3036 3037if test x"${install_sh+set}" != xset; then 3038 case $am_aux_dir in 3039 *\ * | *\ *) 3040 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3041 *) 3042 install_sh="\${SHELL} $am_aux_dir/install-sh" 3043 esac 3044fi 3045 3046# Installed binaries are usually stripped using 'strip' when the user 3047# run "make install-strip". However 'strip' might not be the right 3048# tool to use in cross-compilation environments, therefore Automake 3049# will honor the 'STRIP' environment variable to overrule this program. 3050if test "$cross_compiling" != no; then 3051 if test -n "$ac_tool_prefix"; then 3052 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3053set dummy ${ac_tool_prefix}strip; ac_word=$2 3054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3055$as_echo_n "checking for $ac_word... " >&6; } 3056if ${ac_cv_prog_STRIP+:} false; then : 3057 $as_echo_n "(cached) " >&6 3058else 3059 if test -n "$STRIP"; then 3060 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3061else 3062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3063for as_dir in $PATH 3064do 3065 IFS=$as_save_IFS 3066 test -z "$as_dir" && as_dir=. 3067 for ac_exec_ext in '' $ac_executable_extensions; do 3068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3069 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3071 break 2 3072 fi 3073done 3074 done 3075IFS=$as_save_IFS 3076 3077fi 3078fi 3079STRIP=$ac_cv_prog_STRIP 3080if test -n "$STRIP"; then 3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3082$as_echo "$STRIP" >&6; } 3083else 3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3085$as_echo "no" >&6; } 3086fi 3087 3088 3089fi 3090if test -z "$ac_cv_prog_STRIP"; then 3091 ac_ct_STRIP=$STRIP 3092 # Extract the first word of "strip", so it can be a program name with args. 3093set dummy strip; ac_word=$2 3094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3095$as_echo_n "checking for $ac_word... " >&6; } 3096if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3097 $as_echo_n "(cached) " >&6 3098else 3099 if test -n "$ac_ct_STRIP"; then 3100 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3101else 3102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3103for as_dir in $PATH 3104do 3105 IFS=$as_save_IFS 3106 test -z "$as_dir" && as_dir=. 3107 for ac_exec_ext in '' $ac_executable_extensions; do 3108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3109 ac_cv_prog_ac_ct_STRIP="strip" 3110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3111 break 2 3112 fi 3113done 3114 done 3115IFS=$as_save_IFS 3116 3117fi 3118fi 3119ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3120if test -n "$ac_ct_STRIP"; then 3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3122$as_echo "$ac_ct_STRIP" >&6; } 3123else 3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3125$as_echo "no" >&6; } 3126fi 3127 3128 if test "x$ac_ct_STRIP" = x; then 3129 STRIP=":" 3130 else 3131 case $cross_compiling:$ac_tool_warned in 3132yes:) 3133{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3134$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3135ac_tool_warned=yes ;; 3136esac 3137 STRIP=$ac_ct_STRIP 3138 fi 3139else 3140 STRIP="$ac_cv_prog_STRIP" 3141fi 3142 3143fi 3144INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3145 3146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3147$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3148if test -z "$MKDIR_P"; then 3149 if ${ac_cv_path_mkdir+:} false; then : 3150 $as_echo_n "(cached) " >&6 3151else 3152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3153for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3154do 3155 IFS=$as_save_IFS 3156 test -z "$as_dir" && as_dir=. 3157 for ac_prog in mkdir gmkdir; do 3158 for ac_exec_ext in '' $ac_executable_extensions; do 3159 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3160 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3161 'mkdir (GNU coreutils) '* | \ 3162 'mkdir (coreutils) '* | \ 3163 'mkdir (fileutils) '4.1*) 3164 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3165 break 3;; 3166 esac 3167 done 3168 done 3169 done 3170IFS=$as_save_IFS 3171 3172fi 3173 3174 test -d ./--version && rmdir ./--version 3175 if test "${ac_cv_path_mkdir+set}" = set; then 3176 MKDIR_P="$ac_cv_path_mkdir -p" 3177 else 3178 # As a last resort, use the slow shell script. Don't cache a 3179 # value for MKDIR_P within a source directory, because that will 3180 # break other packages using the cache if that directory is 3181 # removed, or if the value is a relative name. 3182 MKDIR_P="$ac_install_sh -d" 3183 fi 3184fi 3185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3186$as_echo "$MKDIR_P" >&6; } 3187 3188for ac_prog in gawk mawk nawk awk 3189do 3190 # Extract the first word of "$ac_prog", so it can be a program name with args. 3191set dummy $ac_prog; ac_word=$2 3192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3193$as_echo_n "checking for $ac_word... " >&6; } 3194if ${ac_cv_prog_AWK+:} false; then : 3195 $as_echo_n "(cached) " >&6 3196else 3197 if test -n "$AWK"; then 3198 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3199else 3200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3201for as_dir in $PATH 3202do 3203 IFS=$as_save_IFS 3204 test -z "$as_dir" && as_dir=. 3205 for ac_exec_ext in '' $ac_executable_extensions; do 3206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3207 ac_cv_prog_AWK="$ac_prog" 3208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3209 break 2 3210 fi 3211done 3212 done 3213IFS=$as_save_IFS 3214 3215fi 3216fi 3217AWK=$ac_cv_prog_AWK 3218if test -n "$AWK"; then 3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3220$as_echo "$AWK" >&6; } 3221else 3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3223$as_echo "no" >&6; } 3224fi 3225 3226 3227 test -n "$AWK" && break 3228done 3229 3230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3231$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3232set x ${MAKE-make} 3233ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3234if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3235 $as_echo_n "(cached) " >&6 3236else 3237 cat >conftest.make <<\_ACEOF 3238SHELL = /bin/sh 3239all: 3240 @echo '@@@%%%=$(MAKE)=@@@%%%' 3241_ACEOF 3242# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3243case `${MAKE-make} -f conftest.make 2>/dev/null` in 3244 *@@@%%%=?*=@@@%%%*) 3245 eval ac_cv_prog_make_${ac_make}_set=yes;; 3246 *) 3247 eval ac_cv_prog_make_${ac_make}_set=no;; 3248esac 3249rm -f conftest.make 3250fi 3251if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3253$as_echo "yes" >&6; } 3254 SET_MAKE= 3255else 3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3257$as_echo "no" >&6; } 3258 SET_MAKE="MAKE=${MAKE-make}" 3259fi 3260 3261rm -rf .tst 2>/dev/null 3262mkdir .tst 2>/dev/null 3263if test -d .tst; then 3264 am__leading_dot=. 3265else 3266 am__leading_dot=_ 3267fi 3268rmdir .tst 2>/dev/null 3269 3270# Check whether --enable-silent-rules was given. 3271if test "${enable_silent_rules+set}" = set; then : 3272 enableval=$enable_silent_rules; 3273fi 3274 3275case $enable_silent_rules in # ((( 3276 yes) AM_DEFAULT_VERBOSITY=0;; 3277 no) AM_DEFAULT_VERBOSITY=1;; 3278 *) AM_DEFAULT_VERBOSITY=1;; 3279esac 3280am_make=${MAKE-make} 3281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3282$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3283if ${am_cv_make_support_nested_variables+:} false; then : 3284 $as_echo_n "(cached) " >&6 3285else 3286 if $as_echo 'TRUE=$(BAR$(V)) 3287BAR0=false 3288BAR1=true 3289V=1 3290am__doit: 3291 @$(TRUE) 3292.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3293 am_cv_make_support_nested_variables=yes 3294else 3295 am_cv_make_support_nested_variables=no 3296fi 3297fi 3298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3299$as_echo "$am_cv_make_support_nested_variables" >&6; } 3300if test $am_cv_make_support_nested_variables = yes; then 3301 AM_V='$(V)' 3302 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3303else 3304 AM_V=$AM_DEFAULT_VERBOSITY 3305 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3306fi 3307AM_BACKSLASH='\' 3308 3309if test "`cd $srcdir && pwd`" != "`pwd`"; then 3310 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3311 # is not polluted with repeated "-I." 3312 am__isrc=' -I$(srcdir)' 3313 # test to see if srcdir already configured 3314 if test -f $srcdir/config.status; then 3315 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3316 fi 3317fi 3318 3319# test whether we have cygpath 3320if test -z "$CYGPATH_W"; then 3321 if (cygpath --version) >/dev/null 2>/dev/null; then 3322 CYGPATH_W='cygpath -w' 3323 else 3324 CYGPATH_W=echo 3325 fi 3326fi 3327 3328 3329# Define the identity of the package. 3330 PACKAGE='tiff' 3331 VERSION='4.0.3' 3332 3333 3334cat >>confdefs.h <<_ACEOF 3335#define PACKAGE "$PACKAGE" 3336_ACEOF 3337 3338 3339cat >>confdefs.h <<_ACEOF 3340#define VERSION "$VERSION" 3341_ACEOF 3342 3343# Some tools Automake needs. 3344 3345ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3346 3347 3348AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3349 3350 3351AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3352 3353 3354AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3355 3356 3357MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3358 3359# For better backward compatibility. To be removed once Automake 1.9.x 3360# dies out for good. For more background, see: 3361# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3362# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3363mkdir_p='$(MKDIR_P)' 3364 3365# We need awk for the "check" target (and possibly the TAP driver). The 3366# system "awk" is bad on some platforms. 3367# Always define AMTAR for backward compatibility. Yes, it's still used 3368# in the wild :-( We should find a proper way to deprecate it ... 3369AMTAR='$${TAR-tar}' 3370 3371 3372# We'll loop over all known methods to create a tar archive until one works. 3373_am_tools='gnutar pax cpio none' 3374 3375am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3376 3377 3378 3379 3380 3381 3382# POSIX will say in a future version that running "rm -f" with no argument 3383# is OK; and we want to be able to make that assumption in our Makefile 3384# recipes. So use an aggressive probe to check that the usage we want is 3385# actually supported "in the wild" to an acceptable degree. 3386# See automake bug#10828. 3387# To make any issue more visible, cause the running configure to be aborted 3388# by default if the 'rm' program in use doesn't match our expectations; the 3389# user can still override this though. 3390if rm -f && rm -fr && rm -rf; then : OK; else 3391 cat >&2 <<'END' 3392Oops! 3393 3394Your 'rm' program seems unable to run without file operands specified 3395on the command line, even when the '-f' option is present. This is contrary 3396to the behaviour of most rm programs out there, and not conforming with 3397the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3398 3399Please tell bug-automake@gnu.org about your system, including the value 3400of your $PATH and any error possibly output before this message. This 3401can help us improve future automake versions. 3402 3403END 3404 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3405 echo 'Configuration will proceed anyway, since you have set the' >&2 3406 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3407 echo >&2 3408 else 3409 cat >&2 <<'END' 3410Aborting the configuration process, to ensure you take notice of the issue. 3411 3412You can download and install GNU coreutils to get an 'rm' implementation 3413that behaves properly: <http://www.gnu.org/software/coreutils/>. 3414 3415If you want to complete the configuration process using your problematic 3416'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3417to "yes", and re-run configure. 3418 3419END 3420 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3421 fi 3422fi 3423 3424 3425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3426$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3427 # Check whether --enable-maintainer-mode was given. 3428if test "${enable_maintainer_mode+set}" = set; then : 3429 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3430else 3431 USE_MAINTAINER_MODE=no 3432fi 3433 3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3435$as_echo "$USE_MAINTAINER_MODE" >&6; } 3436 if test $USE_MAINTAINER_MODE = yes; then 3437 MAINTAINER_MODE_TRUE= 3438 MAINTAINER_MODE_FALSE='#' 3439else 3440 MAINTAINER_MODE_TRUE='#' 3441 MAINTAINER_MODE_FALSE= 3442fi 3443 3444 MAINT=$MAINTAINER_MODE_TRUE 3445 3446 3447 3448LIBTIFF_MAJOR_VERSION=4 3449LIBTIFF_MINOR_VERSION=0 3450LIBTIFF_MICRO_VERSION=3 3451LIBTIFF_ALPHA_VERSION= 3452LIBTIFF_VERSION=$LIBTIFF_MAJOR_VERSION.$LIBTIFF_MINOR_VERSION.$LIBTIFF_MICRO_VERSION$LIBTIFF_ALPHA_VERSION 3453LIBTIFF_RELEASE_DATE=`date +"%Y%m%d"` 3454 3455LIBTIFF_CURRENT=7 3456LIBTIFF_REVISION=0 3457LIBTIFF_AGE=2 3458LIBTIFF_VERSION_INFO=$LIBTIFF_CURRENT:$LIBTIFF_REVISION:$LIBTIFF_AGE 3459 3460# This is a special hack for OpenBSD and MirOS systems. The dynamic linker 3461# in OpenBSD uses some special semantics for shared libraries. Their soname 3462# contains only two numbers, major and minor. 3463# See http://bugzilla.remotesensing.org/show_bug.cgi?id=838 for details. 3464#case "$host_os" in 3465# openbsd* | mirbsd*) 3466# LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION:0 3467# ;; 3468# *) 3469# LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION:$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION 3470# ;; 3471#esac 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481ac_ext=c 3482ac_cpp='$CPP $CPPFLAGS' 3483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3485ac_compiler_gnu=$ac_cv_c_compiler_gnu 3486if test -n "$ac_tool_prefix"; then 3487 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3488set dummy ${ac_tool_prefix}gcc; ac_word=$2 3489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3490$as_echo_n "checking for $ac_word... " >&6; } 3491if ${ac_cv_prog_CC+:} false; then : 3492 $as_echo_n "(cached) " >&6 3493else 3494 if test -n "$CC"; then 3495 ac_cv_prog_CC="$CC" # Let the user override the test. 3496else 3497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3498for as_dir in $PATH 3499do 3500 IFS=$as_save_IFS 3501 test -z "$as_dir" && as_dir=. 3502 for ac_exec_ext in '' $ac_executable_extensions; do 3503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3504 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3506 break 2 3507 fi 3508done 3509 done 3510IFS=$as_save_IFS 3511 3512fi 3513fi 3514CC=$ac_cv_prog_CC 3515if test -n "$CC"; then 3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3517$as_echo "$CC" >&6; } 3518else 3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3520$as_echo "no" >&6; } 3521fi 3522 3523 3524fi 3525if test -z "$ac_cv_prog_CC"; then 3526 ac_ct_CC=$CC 3527 # Extract the first word of "gcc", so it can be a program name with args. 3528set dummy gcc; ac_word=$2 3529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3530$as_echo_n "checking for $ac_word... " >&6; } 3531if ${ac_cv_prog_ac_ct_CC+:} false; then : 3532 $as_echo_n "(cached) " >&6 3533else 3534 if test -n "$ac_ct_CC"; then 3535 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3536else 3537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3538for as_dir in $PATH 3539do 3540 IFS=$as_save_IFS 3541 test -z "$as_dir" && as_dir=. 3542 for ac_exec_ext in '' $ac_executable_extensions; do 3543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3544 ac_cv_prog_ac_ct_CC="gcc" 3545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3546 break 2 3547 fi 3548done 3549 done 3550IFS=$as_save_IFS 3551 3552fi 3553fi 3554ac_ct_CC=$ac_cv_prog_ac_ct_CC 3555if test -n "$ac_ct_CC"; then 3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3557$as_echo "$ac_ct_CC" >&6; } 3558else 3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3560$as_echo "no" >&6; } 3561fi 3562 3563 if test "x$ac_ct_CC" = x; then 3564 CC="" 3565 else 3566 case $cross_compiling:$ac_tool_warned in 3567yes:) 3568{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3569$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3570ac_tool_warned=yes ;; 3571esac 3572 CC=$ac_ct_CC 3573 fi 3574else 3575 CC="$ac_cv_prog_CC" 3576fi 3577 3578if test -z "$CC"; then 3579 if test -n "$ac_tool_prefix"; then 3580 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3581set dummy ${ac_tool_prefix}cc; ac_word=$2 3582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3583$as_echo_n "checking for $ac_word... " >&6; } 3584if ${ac_cv_prog_CC+:} false; then : 3585 $as_echo_n "(cached) " >&6 3586else 3587 if test -n "$CC"; then 3588 ac_cv_prog_CC="$CC" # Let the user override the test. 3589else 3590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3591for as_dir in $PATH 3592do 3593 IFS=$as_save_IFS 3594 test -z "$as_dir" && as_dir=. 3595 for ac_exec_ext in '' $ac_executable_extensions; do 3596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3597 ac_cv_prog_CC="${ac_tool_prefix}cc" 3598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3599 break 2 3600 fi 3601done 3602 done 3603IFS=$as_save_IFS 3604 3605fi 3606fi 3607CC=$ac_cv_prog_CC 3608if test -n "$CC"; then 3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3610$as_echo "$CC" >&6; } 3611else 3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3613$as_echo "no" >&6; } 3614fi 3615 3616 3617 fi 3618fi 3619if test -z "$CC"; then 3620 # Extract the first word of "cc", so it can be a program name with args. 3621set dummy cc; ac_word=$2 3622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3623$as_echo_n "checking for $ac_word... " >&6; } 3624if ${ac_cv_prog_CC+:} false; then : 3625 $as_echo_n "(cached) " >&6 3626else 3627 if test -n "$CC"; then 3628 ac_cv_prog_CC="$CC" # Let the user override the test. 3629else 3630 ac_prog_rejected=no 3631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3632for as_dir in $PATH 3633do 3634 IFS=$as_save_IFS 3635 test -z "$as_dir" && as_dir=. 3636 for ac_exec_ext in '' $ac_executable_extensions; do 3637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3638 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3639 ac_prog_rejected=yes 3640 continue 3641 fi 3642 ac_cv_prog_CC="cc" 3643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3644 break 2 3645 fi 3646done 3647 done 3648IFS=$as_save_IFS 3649 3650if test $ac_prog_rejected = yes; then 3651 # We found a bogon in the path, so make sure we never use it. 3652 set dummy $ac_cv_prog_CC 3653 shift 3654 if test $# != 0; then 3655 # We chose a different compiler from the bogus one. 3656 # However, it has the same basename, so the bogon will be chosen 3657 # first if we set CC to just the basename; use the full file name. 3658 shift 3659 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3660 fi 3661fi 3662fi 3663fi 3664CC=$ac_cv_prog_CC 3665if test -n "$CC"; then 3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3667$as_echo "$CC" >&6; } 3668else 3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3670$as_echo "no" >&6; } 3671fi 3672 3673 3674fi 3675if test -z "$CC"; then 3676 if test -n "$ac_tool_prefix"; then 3677 for ac_prog in cl.exe 3678 do 3679 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3680set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3682$as_echo_n "checking for $ac_word... " >&6; } 3683if ${ac_cv_prog_CC+:} false; then : 3684 $as_echo_n "(cached) " >&6 3685else 3686 if test -n "$CC"; then 3687 ac_cv_prog_CC="$CC" # Let the user override the test. 3688else 3689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3690for as_dir in $PATH 3691do 3692 IFS=$as_save_IFS 3693 test -z "$as_dir" && as_dir=. 3694 for ac_exec_ext in '' $ac_executable_extensions; do 3695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3696 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3698 break 2 3699 fi 3700done 3701 done 3702IFS=$as_save_IFS 3703 3704fi 3705fi 3706CC=$ac_cv_prog_CC 3707if test -n "$CC"; then 3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3709$as_echo "$CC" >&6; } 3710else 3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3712$as_echo "no" >&6; } 3713fi 3714 3715 3716 test -n "$CC" && break 3717 done 3718fi 3719if test -z "$CC"; then 3720 ac_ct_CC=$CC 3721 for ac_prog in cl.exe 3722do 3723 # Extract the first word of "$ac_prog", so it can be a program name with args. 3724set dummy $ac_prog; ac_word=$2 3725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3726$as_echo_n "checking for $ac_word... " >&6; } 3727if ${ac_cv_prog_ac_ct_CC+:} false; then : 3728 $as_echo_n "(cached) " >&6 3729else 3730 if test -n "$ac_ct_CC"; then 3731 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3732else 3733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3734for as_dir in $PATH 3735do 3736 IFS=$as_save_IFS 3737 test -z "$as_dir" && as_dir=. 3738 for ac_exec_ext in '' $ac_executable_extensions; do 3739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3740 ac_cv_prog_ac_ct_CC="$ac_prog" 3741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3742 break 2 3743 fi 3744done 3745 done 3746IFS=$as_save_IFS 3747 3748fi 3749fi 3750ac_ct_CC=$ac_cv_prog_ac_ct_CC 3751if test -n "$ac_ct_CC"; then 3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3753$as_echo "$ac_ct_CC" >&6; } 3754else 3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3756$as_echo "no" >&6; } 3757fi 3758 3759 3760 test -n "$ac_ct_CC" && break 3761done 3762 3763 if test "x$ac_ct_CC" = x; then 3764 CC="" 3765 else 3766 case $cross_compiling:$ac_tool_warned in 3767yes:) 3768{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3769$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3770ac_tool_warned=yes ;; 3771esac 3772 CC=$ac_ct_CC 3773 fi 3774fi 3775 3776fi 3777 3778 3779test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3780$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3781as_fn_error $? "no acceptable C compiler found in \$PATH 3782See \`config.log' for more details" "$LINENO" 5; } 3783 3784# Provide some information about the compiler. 3785$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3786set X $ac_compile 3787ac_compiler=$2 3788for ac_option in --version -v -V -qversion; do 3789 { { ac_try="$ac_compiler $ac_option >&5" 3790case "(($ac_try" in 3791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3792 *) ac_try_echo=$ac_try;; 3793esac 3794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3795$as_echo "$ac_try_echo"; } >&5 3796 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3797 ac_status=$? 3798 if test -s conftest.err; then 3799 sed '10a\ 3800... rest of stderr output deleted ... 3801 10q' conftest.err >conftest.er1 3802 cat conftest.er1 >&5 3803 fi 3804 rm -f conftest.er1 conftest.err 3805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3806 test $ac_status = 0; } 3807done 3808 3809cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3810/* end confdefs.h. */ 3811 3812int 3813main () 3814{ 3815 3816 ; 3817 return 0; 3818} 3819_ACEOF 3820ac_clean_files_save=$ac_clean_files 3821ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3822# Try to create an executable without -o first, disregard a.out. 3823# It will help us diagnose broken compilers, and finding out an intuition 3824# of exeext. 3825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3826$as_echo_n "checking whether the C compiler works... " >&6; } 3827ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3828 3829# The possible output files: 3830ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3831 3832ac_rmfiles= 3833for ac_file in $ac_files 3834do 3835 case $ac_file in 3836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3837 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3838 esac 3839done 3840rm -f $ac_rmfiles 3841 3842if { { ac_try="$ac_link_default" 3843case "(($ac_try" in 3844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3845 *) ac_try_echo=$ac_try;; 3846esac 3847eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3848$as_echo "$ac_try_echo"; } >&5 3849 (eval "$ac_link_default") 2>&5 3850 ac_status=$? 3851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3852 test $ac_status = 0; }; then : 3853 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3854# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3855# in a Makefile. We should not override ac_cv_exeext if it was cached, 3856# so that the user can short-circuit this test for compilers unknown to 3857# Autoconf. 3858for ac_file in $ac_files '' 3859do 3860 test -f "$ac_file" || continue 3861 case $ac_file in 3862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3863 ;; 3864 [ab].out ) 3865 # We found the default executable, but exeext='' is most 3866 # certainly right. 3867 break;; 3868 *.* ) 3869 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3870 then :; else 3871 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3872 fi 3873 # We set ac_cv_exeext here because the later test for it is not 3874 # safe: cross compilers may not add the suffix if given an `-o' 3875 # argument, so we may need to know it at that point already. 3876 # Even if this section looks crufty: it has the advantage of 3877 # actually working. 3878 break;; 3879 * ) 3880 break;; 3881 esac 3882done 3883test "$ac_cv_exeext" = no && ac_cv_exeext= 3884 3885else 3886 ac_file='' 3887fi 3888if test -z "$ac_file"; then : 3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3890$as_echo "no" >&6; } 3891$as_echo "$as_me: failed program was:" >&5 3892sed 's/^/| /' conftest.$ac_ext >&5 3893 3894{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3895$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3896as_fn_error 77 "C compiler cannot create executables 3897See \`config.log' for more details" "$LINENO" 5; } 3898else 3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3900$as_echo "yes" >&6; } 3901fi 3902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3903$as_echo_n "checking for C compiler default output file name... " >&6; } 3904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3905$as_echo "$ac_file" >&6; } 3906ac_exeext=$ac_cv_exeext 3907 3908rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3909ac_clean_files=$ac_clean_files_save 3910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3911$as_echo_n "checking for suffix of executables... " >&6; } 3912if { { ac_try="$ac_link" 3913case "(($ac_try" in 3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3915 *) ac_try_echo=$ac_try;; 3916esac 3917eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3918$as_echo "$ac_try_echo"; } >&5 3919 (eval "$ac_link") 2>&5 3920 ac_status=$? 3921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3922 test $ac_status = 0; }; then : 3923 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3924# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3925# work properly (i.e., refer to `conftest.exe'), while it won't with 3926# `rm'. 3927for ac_file in conftest.exe conftest conftest.*; do 3928 test -f "$ac_file" || continue 3929 case $ac_file in 3930 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3931 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3932 break;; 3933 * ) break;; 3934 esac 3935done 3936else 3937 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3938$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3939as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3940See \`config.log' for more details" "$LINENO" 5; } 3941fi 3942rm -f conftest conftest$ac_cv_exeext 3943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3944$as_echo "$ac_cv_exeext" >&6; } 3945 3946rm -f conftest.$ac_ext 3947EXEEXT=$ac_cv_exeext 3948ac_exeext=$EXEEXT 3949cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3950/* end confdefs.h. */ 3951#include <stdio.h> 3952int 3953main () 3954{ 3955FILE *f = fopen ("conftest.out", "w"); 3956 return ferror (f) || fclose (f) != 0; 3957 3958 ; 3959 return 0; 3960} 3961_ACEOF 3962ac_clean_files="$ac_clean_files conftest.out" 3963# Check that the compiler produces executables we can run. If not, either 3964# the compiler is broken, or we cross compile. 3965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3966$as_echo_n "checking whether we are cross compiling... " >&6; } 3967if test "$cross_compiling" != yes; then 3968 { { ac_try="$ac_link" 3969case "(($ac_try" in 3970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3971 *) ac_try_echo=$ac_try;; 3972esac 3973eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3974$as_echo "$ac_try_echo"; } >&5 3975 (eval "$ac_link") 2>&5 3976 ac_status=$? 3977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3978 test $ac_status = 0; } 3979 if { ac_try='./conftest$ac_cv_exeext' 3980 { { case "(($ac_try" in 3981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3982 *) ac_try_echo=$ac_try;; 3983esac 3984eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3985$as_echo "$ac_try_echo"; } >&5 3986 (eval "$ac_try") 2>&5 3987 ac_status=$? 3988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3989 test $ac_status = 0; }; }; then 3990 cross_compiling=no 3991 else 3992 if test "$cross_compiling" = maybe; then 3993 cross_compiling=yes 3994 else 3995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3996$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3997as_fn_error $? "cannot run C compiled programs. 3998If you meant to cross compile, use \`--host'. 3999See \`config.log' for more details" "$LINENO" 5; } 4000 fi 4001 fi 4002fi 4003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4004$as_echo "$cross_compiling" >&6; } 4005 4006rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4007ac_clean_files=$ac_clean_files_save 4008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4009$as_echo_n "checking for suffix of object files... " >&6; } 4010if ${ac_cv_objext+:} false; then : 4011 $as_echo_n "(cached) " >&6 4012else 4013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4014/* end confdefs.h. */ 4015 4016int 4017main () 4018{ 4019 4020 ; 4021 return 0; 4022} 4023_ACEOF 4024rm -f conftest.o conftest.obj 4025if { { ac_try="$ac_compile" 4026case "(($ac_try" in 4027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4028 *) ac_try_echo=$ac_try;; 4029esac 4030eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4031$as_echo "$ac_try_echo"; } >&5 4032 (eval "$ac_compile") 2>&5 4033 ac_status=$? 4034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4035 test $ac_status = 0; }; then : 4036 for ac_file in conftest.o conftest.obj conftest.*; do 4037 test -f "$ac_file" || continue; 4038 case $ac_file in 4039 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4040 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4041 break;; 4042 esac 4043done 4044else 4045 $as_echo "$as_me: failed program was:" >&5 4046sed 's/^/| /' conftest.$ac_ext >&5 4047 4048{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4049$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4050as_fn_error $? "cannot compute suffix of object files: cannot compile 4051See \`config.log' for more details" "$LINENO" 5; } 4052fi 4053rm -f conftest.$ac_cv_objext conftest.$ac_ext 4054fi 4055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4056$as_echo "$ac_cv_objext" >&6; } 4057OBJEXT=$ac_cv_objext 4058ac_objext=$OBJEXT 4059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4060$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4061if ${ac_cv_c_compiler_gnu+:} false; then : 4062 $as_echo_n "(cached) " >&6 4063else 4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4065/* end confdefs.h. */ 4066 4067int 4068main () 4069{ 4070#ifndef __GNUC__ 4071 choke me 4072#endif 4073 4074 ; 4075 return 0; 4076} 4077_ACEOF 4078if ac_fn_c_try_compile "$LINENO"; then : 4079 ac_compiler_gnu=yes 4080else 4081 ac_compiler_gnu=no 4082fi 4083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4084ac_cv_c_compiler_gnu=$ac_compiler_gnu 4085 4086fi 4087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4088$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4089if test $ac_compiler_gnu = yes; then 4090 GCC=yes 4091else 4092 GCC= 4093fi 4094ac_test_CFLAGS=${CFLAGS+set} 4095ac_save_CFLAGS=$CFLAGS 4096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4097$as_echo_n "checking whether $CC accepts -g... " >&6; } 4098if ${ac_cv_prog_cc_g+:} false; then : 4099 $as_echo_n "(cached) " >&6 4100else 4101 ac_save_c_werror_flag=$ac_c_werror_flag 4102 ac_c_werror_flag=yes 4103 ac_cv_prog_cc_g=no 4104 CFLAGS="-g" 4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4106/* end confdefs.h. */ 4107 4108int 4109main () 4110{ 4111 4112 ; 4113 return 0; 4114} 4115_ACEOF 4116if ac_fn_c_try_compile "$LINENO"; then : 4117 ac_cv_prog_cc_g=yes 4118else 4119 CFLAGS="" 4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4121/* end confdefs.h. */ 4122 4123int 4124main () 4125{ 4126 4127 ; 4128 return 0; 4129} 4130_ACEOF 4131if ac_fn_c_try_compile "$LINENO"; then : 4132 4133else 4134 ac_c_werror_flag=$ac_save_c_werror_flag 4135 CFLAGS="-g" 4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4137/* end confdefs.h. */ 4138 4139int 4140main () 4141{ 4142 4143 ; 4144 return 0; 4145} 4146_ACEOF 4147if ac_fn_c_try_compile "$LINENO"; then : 4148 ac_cv_prog_cc_g=yes 4149fi 4150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4151fi 4152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4153fi 4154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4155 ac_c_werror_flag=$ac_save_c_werror_flag 4156fi 4157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4158$as_echo "$ac_cv_prog_cc_g" >&6; } 4159if test "$ac_test_CFLAGS" = set; then 4160 CFLAGS=$ac_save_CFLAGS 4161elif test $ac_cv_prog_cc_g = yes; then 4162 if test "$GCC" = yes; then 4163 CFLAGS="-g -O2" 4164 else 4165 CFLAGS="-g" 4166 fi 4167else 4168 if test "$GCC" = yes; then 4169 CFLAGS="-O2" 4170 else 4171 CFLAGS= 4172 fi 4173fi 4174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4175$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4176if ${ac_cv_prog_cc_c89+:} false; then : 4177 $as_echo_n "(cached) " >&6 4178else 4179 ac_cv_prog_cc_c89=no 4180ac_save_CC=$CC 4181cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4182/* end confdefs.h. */ 4183#include <stdarg.h> 4184#include <stdio.h> 4185struct stat; 4186/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4187struct buf { int x; }; 4188FILE * (*rcsopen) (struct buf *, struct stat *, int); 4189static char *e (p, i) 4190 char **p; 4191 int i; 4192{ 4193 return p[i]; 4194} 4195static char *f (char * (*g) (char **, int), char **p, ...) 4196{ 4197 char *s; 4198 va_list v; 4199 va_start (v,p); 4200 s = g (p, va_arg (v,int)); 4201 va_end (v); 4202 return s; 4203} 4204 4205/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4206 function prototypes and stuff, but not '\xHH' hex character constants. 4207 These don't provoke an error unfortunately, instead are silently treated 4208 as 'x'. The following induces an error, until -std is added to get 4209 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4210 array size at least. It's necessary to write '\x00'==0 to get something 4211 that's true only with -std. */ 4212int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4213 4214/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4215 inside strings and character constants. */ 4216#define FOO(x) 'x' 4217int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4218 4219int test (int i, double x); 4220struct s1 {int (*f) (int a);}; 4221struct s2 {int (*f) (double a);}; 4222int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4223int argc; 4224char **argv; 4225int 4226main () 4227{ 4228return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4229 ; 4230 return 0; 4231} 4232_ACEOF 4233for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4234 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4235do 4236 CC="$ac_save_CC $ac_arg" 4237 if ac_fn_c_try_compile "$LINENO"; then : 4238 ac_cv_prog_cc_c89=$ac_arg 4239fi 4240rm -f core conftest.err conftest.$ac_objext 4241 test "x$ac_cv_prog_cc_c89" != "xno" && break 4242done 4243rm -f conftest.$ac_ext 4244CC=$ac_save_CC 4245 4246fi 4247# AC_CACHE_VAL 4248case "x$ac_cv_prog_cc_c89" in 4249 x) 4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4251$as_echo "none needed" >&6; } ;; 4252 xno) 4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4254$as_echo "unsupported" >&6; } ;; 4255 *) 4256 CC="$CC $ac_cv_prog_cc_c89" 4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4258$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4259esac 4260if test "x$ac_cv_prog_cc_c89" != xno; then : 4261 4262fi 4263 4264ac_ext=c 4265ac_cpp='$CPP $CPPFLAGS' 4266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4268ac_compiler_gnu=$ac_cv_c_compiler_gnu 4269 4270ac_ext=c 4271ac_cpp='$CPP $CPPFLAGS' 4272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4274ac_compiler_gnu=$ac_cv_c_compiler_gnu 4275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4276$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4277if ${am_cv_prog_cc_c_o+:} false; then : 4278 $as_echo_n "(cached) " >&6 4279else 4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4281/* end confdefs.h. */ 4282 4283int 4284main () 4285{ 4286 4287 ; 4288 return 0; 4289} 4290_ACEOF 4291 # Make sure it works both with $CC and with simple cc. 4292 # Following AC_PROG_CC_C_O, we do the test twice because some 4293 # compilers refuse to overwrite an existing .o file with -o, 4294 # though they will create one. 4295 am_cv_prog_cc_c_o=yes 4296 for am_i in 1 2; do 4297 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4298 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4299 ac_status=$? 4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4301 (exit $ac_status); } \ 4302 && test -f conftest2.$ac_objext; then 4303 : OK 4304 else 4305 am_cv_prog_cc_c_o=no 4306 break 4307 fi 4308 done 4309 rm -f core conftest* 4310 unset am_i 4311fi 4312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4313$as_echo "$am_cv_prog_cc_c_o" >&6; } 4314if test "$am_cv_prog_cc_c_o" != yes; then 4315 # Losing compiler, so override with the script. 4316 # FIXME: It is wrong to rewrite CC. 4317 # But if we don't then we get into trouble of one sort or another. 4318 # A longer-term fix would be to have automake use am__CC in this case, 4319 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4320 CC="$am_aux_dir/compile $CC" 4321fi 4322ac_ext=c 4323ac_cpp='$CPP $CPPFLAGS' 4324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4326ac_compiler_gnu=$ac_cv_c_compiler_gnu 4327 4328DEPDIR="${am__leading_dot}deps" 4329 4330ac_config_commands="$ac_config_commands depfiles" 4331 4332 4333am_make=${MAKE-make} 4334cat > confinc << 'END' 4335am__doit: 4336 @echo this is the am__doit target 4337.PHONY: am__doit 4338END 4339# If we don't find an include directive, just comment out the code. 4340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4341$as_echo_n "checking for style of include used by $am_make... " >&6; } 4342am__include="#" 4343am__quote= 4344_am_result=none 4345# First try GNU make style include. 4346echo "include confinc" > confmf 4347# Ignore all kinds of additional output from 'make'. 4348case `$am_make -s -f confmf 2> /dev/null` in #( 4349*the\ am__doit\ target*) 4350 am__include=include 4351 am__quote= 4352 _am_result=GNU 4353 ;; 4354esac 4355# Now try BSD make style include. 4356if test "$am__include" = "#"; then 4357 echo '.include "confinc"' > confmf 4358 case `$am_make -s -f confmf 2> /dev/null` in #( 4359 *the\ am__doit\ target*) 4360 am__include=.include 4361 am__quote="\"" 4362 _am_result=BSD 4363 ;; 4364 esac 4365fi 4366 4367 4368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4369$as_echo "$_am_result" >&6; } 4370rm -f confinc confmf 4371 4372# Check whether --enable-dependency-tracking was given. 4373if test "${enable_dependency_tracking+set}" = set; then : 4374 enableval=$enable_dependency_tracking; 4375fi 4376 4377if test "x$enable_dependency_tracking" != xno; then 4378 am_depcomp="$ac_aux_dir/depcomp" 4379 AMDEPBACKSLASH='\' 4380 am__nodep='_no' 4381fi 4382 if test "x$enable_dependency_tracking" != xno; then 4383 AMDEP_TRUE= 4384 AMDEP_FALSE='#' 4385else 4386 AMDEP_TRUE='#' 4387 AMDEP_FALSE= 4388fi 4389 4390 4391 4392depcc="$CC" am_compiler_list= 4393 4394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4395$as_echo_n "checking dependency style of $depcc... " >&6; } 4396if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4397 $as_echo_n "(cached) " >&6 4398else 4399 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4400 # We make a subdir and do the tests there. Otherwise we can end up 4401 # making bogus files that we don't know about and never remove. For 4402 # instance it was reported that on HP-UX the gcc test will end up 4403 # making a dummy file named 'D' -- because '-MD' means "put the output 4404 # in D". 4405 rm -rf conftest.dir 4406 mkdir conftest.dir 4407 # Copy depcomp to subdir because otherwise we won't find it if we're 4408 # using a relative directory. 4409 cp "$am_depcomp" conftest.dir 4410 cd conftest.dir 4411 # We will build objects and dependencies in a subdirectory because 4412 # it helps to detect inapplicable dependency modes. For instance 4413 # both Tru64's cc and ICC support -MD to output dependencies as a 4414 # side effect of compilation, but ICC will put the dependencies in 4415 # the current directory while Tru64 will put them in the object 4416 # directory. 4417 mkdir sub 4418 4419 am_cv_CC_dependencies_compiler_type=none 4420 if test "$am_compiler_list" = ""; then 4421 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4422 fi 4423 am__universal=false 4424 case " $depcc " in #( 4425 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4426 esac 4427 4428 for depmode in $am_compiler_list; do 4429 # Setup a source with many dependencies, because some compilers 4430 # like to wrap large dependency lists on column 80 (with \), and 4431 # we should not choose a depcomp mode which is confused by this. 4432 # 4433 # We need to recreate these files for each test, as the compiler may 4434 # overwrite some of them when testing with obscure command lines. 4435 # This happens at least with the AIX C compiler. 4436 : > sub/conftest.c 4437 for i in 1 2 3 4 5 6; do 4438 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4439 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4440 # Solaris 10 /bin/sh. 4441 echo '/* dummy */' > sub/conftst$i.h 4442 done 4443 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4444 4445 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4446 # mode. It turns out that the SunPro C++ compiler does not properly 4447 # handle '-M -o', and we need to detect this. Also, some Intel 4448 # versions had trouble with output in subdirs. 4449 am__obj=sub/conftest.${OBJEXT-o} 4450 am__minus_obj="-o $am__obj" 4451 case $depmode in 4452 gcc) 4453 # This depmode causes a compiler race in universal mode. 4454 test "$am__universal" = false || continue 4455 ;; 4456 nosideeffect) 4457 # After this tag, mechanisms are not by side-effect, so they'll 4458 # only be used when explicitly requested. 4459 if test "x$enable_dependency_tracking" = xyes; then 4460 continue 4461 else 4462 break 4463 fi 4464 ;; 4465 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4466 # This compiler won't grok '-c -o', but also, the minuso test has 4467 # not run yet. These depmodes are late enough in the game, and 4468 # so weak that their functioning should not be impacted. 4469 am__obj=conftest.${OBJEXT-o} 4470 am__minus_obj= 4471 ;; 4472 none) break ;; 4473 esac 4474 if depmode=$depmode \ 4475 source=sub/conftest.c object=$am__obj \ 4476 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4477 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4478 >/dev/null 2>conftest.err && 4479 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4480 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4481 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4482 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4483 # icc doesn't choke on unknown options, it will just issue warnings 4484 # or remarks (even with -Werror). So we grep stderr for any message 4485 # that says an option was ignored or not supported. 4486 # When given -MP, icc 7.0 and 7.1 complain thusly: 4487 # icc: Command line warning: ignoring option '-M'; no argument required 4488 # The diagnosis changed in icc 8.0: 4489 # icc: Command line remark: option '-MP' not supported 4490 if (grep 'ignoring option' conftest.err || 4491 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4492 am_cv_CC_dependencies_compiler_type=$depmode 4493 break 4494 fi 4495 fi 4496 done 4497 4498 cd .. 4499 rm -rf conftest.dir 4500else 4501 am_cv_CC_dependencies_compiler_type=none 4502fi 4503 4504fi 4505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4506$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4507CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4508 4509 if 4510 test "x$enable_dependency_tracking" != xno \ 4511 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4512 am__fastdepCC_TRUE= 4513 am__fastdepCC_FALSE='#' 4514else 4515 am__fastdepCC_TRUE='#' 4516 am__fastdepCC_FALSE= 4517fi 4518 4519 4520 4521 4522 4523 ansi= 4524 if test -z "$ansi"; then 4525 msg="for C compiler warning flags" 4526 else 4527 msg="for C compiler warning and ANSI conformance flags" 4528 fi 4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $msg" >&5 4530$as_echo_n "checking $msg... " >&6; } 4531if ${vl_cv_prog_cc_warnings+:} false; then : 4532 $as_echo_n "(cached) " >&6 4533else 4534 4535 if test -n "$CC"; then 4536 cat > conftest.c <<EOF 4537int main(int argc, char **argv) { return 0; } 4538EOF 4539 4540 if test "$GCC" = "yes"; then 4541 if test -z "$ansi"; then 4542 vl_cv_prog_cc_warnings="-Wall -W" 4543 else 4544 vl_cv_prog_cc_warnings="-Wall -W -ansi -pedantic" 4545 fi 4546 4547 4548 elif $CC -V 2>&1 | grep -i "WorkShop" > /dev/null 2>&1 && 4549 $CC -c -v -Xc conftest.c > /dev/null 2>&1 && 4550 test -f conftest.o; then 4551 if test -z "$ansi"; then 4552 vl_cv_prog_cc_warnings="-v" 4553 else 4554 vl_cv_prog_cc_warnings="-v -Xc" 4555 fi 4556 4557 elif $CC -V 2>&1 | grep -i "Digital UNIX Compiler" > /dev/null 2>&1 && 4558 $CC -c -verbose -w0 -warnprotos -std1 conftest.c > /dev/null 2>&1 && 4559 test -f conftest.o; then 4560 if test -z "$ansi"; then 4561 vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos" 4562 else 4563 vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos -std1" 4564 fi 4565 4566 elif $CC 2>&1 | grep -i "C for AIX Compiler" > /dev/null 2>&1 && 4567 $CC -c -qlanglvl=ansi -qinfo=all conftest.c > /dev/null 2>&1 && 4568 test -f conftest.o; then 4569 if test -z "$ansi"; then 4570 vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" 4571 else 4572 vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd -qlanglvl=ansi" 4573 fi 4574 4575 elif $CC -version 2>&1 | grep -i "MIPSpro Compilers" > /dev/null 2>&1 && 4576 $CC -c -fullwarn -ansi -ansiE conftest.c > /dev/null 2>&1 && 4577 test -f conftest.o; then 4578 if test -z "$ansi"; then 4579 vl_cv_prog_cc_warnings="-fullwarn" 4580 else 4581 vl_cv_prog_cc_warnings="-fullwarn -ansi -ansiE" 4582 fi 4583 4584 elif what $CC 2>&1 | grep -i "HP C Compiler" > /dev/null 2>&1 && 4585 $CC -c -Aa +w1 conftest.c > /dev/null 2>&1 && 4586 test -f conftest.o; then 4587 if test -z "$ansi"; then 4588 vl_cv_prog_cc_warnings="+w1" 4589 else 4590 vl_cv_prog_cc_warnings="+w1 -Aa" 4591 fi 4592 4593 elif $CC -V 2>&1 | grep "/SX" > /dev/null 2>&1 && 4594 $CC -c -pvctl,fullmsg -Xc conftest.c > /dev/null 2>&1 && 4595 test -f conftest.o; then 4596 if test -z "$ansi"; then 4597 vl_cv_prog_cc_warnings="-pvctl,fullmsg" 4598 else 4599 vl_cv_prog_cc_warnings="-pvctl,fullmsg -Xc" 4600 fi 4601 4602 elif $CC -V 2>&1 | grep -i "Cray" > /dev/null 2>&1 && 4603 $CC -c -h msglevel 2 conftest.c > /dev/null 2>&1 && 4604 test -f conftest.o; then 4605 if test -z "$ansi"; then 4606 vl_cv_prog_cc_warnings="-h msglevel 2" 4607 else 4608 vl_cv_prog_cc_warnings="-h msglevel 2 -h conform" 4609 fi 4610 4611 fi 4612 rm -f conftest.* 4613 fi 4614 if test -n "$vl_cv_prog_cc_warnings"; then 4615 CFLAGS="$CFLAGS $vl_cv_prog_cc_warnings" 4616 else 4617 vl_cv_prog_cc_warnings="unknown" 4618 fi 4619 4620fi 4621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_prog_cc_warnings" >&5 4622$as_echo "$vl_cv_prog_cc_warnings" >&6; } 4623 4624 4625 4626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4627$as_echo_n "checking whether ln -s works... " >&6; } 4628LN_S=$as_ln_s 4629if test "$LN_S" = "ln -s"; then 4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4631$as_echo "yes" >&6; } 4632else 4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4634$as_echo "no, using $LN_S" >&6; } 4635fi 4636 4637 4638 4639# Check if LD supports linker scripts, and define automake conditional 4640# HAVE_LD_VERSION_SCRIPT if so. This functionality is currently 4641# constrained to compilers using GNU ld on ELF systems or systems 4642# which provide an adequate emulation thereof. 4643# Check whether --enable-ld-version-script was given. 4644if test "${enable_ld_version_script+set}" = set; then : 4645 enableval=$enable_ld_version_script; have_ld_version_script=$enableval 4646else 4647 have_ld_version_script=no 4648fi 4649 4650if test "$have_ld_version_script" != no; then 4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5 4652$as_echo_n "checking if LD -Wl,--version-script works... " >&6; } 4653 save_LDFLAGS="$LDFLAGS" 4654 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map" 4655 cat > conftest.map <<EOF 4656VERS_1 { 4657 global: sym; 4658}; 4659 4660VERS_2 { 4661 global: sym; 4662} VERS_1; 4663EOF 4664 4665cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4666/* end confdefs.h. */ 4667 4668int 4669main () 4670{ 4671 4672 ; 4673 return 0; 4674} 4675_ACEOF 4676if ac_fn_c_try_link "$LINENO"; then : 4677 have_ld_version_script=yes 4678else 4679 have_ld_version_script=no 4680fi 4681rm -f core conftest.err conftest.$ac_objext \ 4682 conftest$ac_exeext conftest.$ac_ext 4683 rm -f conftest.map 4684 LDFLAGS="$save_LDFLAGS" 4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5 4686$as_echo "$have_ld_version_script" >&6; } 4687fi 4688 if test "$have_ld_version_script" = "yes"; then 4689 HAVE_LD_VERSION_SCRIPT_TRUE= 4690 HAVE_LD_VERSION_SCRIPT_FALSE='#' 4691else 4692 HAVE_LD_VERSION_SCRIPT_TRUE='#' 4693 HAVE_LD_VERSION_SCRIPT_FALSE= 4694fi 4695 4696 4697 4698 4699 4700 4701case `pwd` in 4702 *\ * | *\ *) 4703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4704$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4705esac 4706 4707 4708 4709macro_version='2.4.5' 4710macro_revision='2.4.5' 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724ltmain=$ac_aux_dir/ltmain.sh 4725 4726# Backslashify metacharacters that are still active within 4727# double-quoted strings. 4728sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4729 4730# Same as above, but do not quote variable references. 4731double_quote_subst='s/\(["`\\]\)/\\\1/g' 4732 4733# Sed substitution to delay expansion of an escaped shell variable in a 4734# double_quote_subst'ed string. 4735delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4736 4737# Sed substitution to delay expansion of an escaped single quote. 4738delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4739 4740# Sed substitution to avoid accidental globbing in evaled expressions 4741no_glob_subst='s/\*/\\\*/g' 4742 4743ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4744ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4745ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4746 4747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4748$as_echo_n "checking how to print strings... " >&6; } 4749# Test print first, because it will be a builtin if present. 4750if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4751 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4752 ECHO='print -r --' 4753elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4754 ECHO='printf %s\n' 4755else 4756 # Use this function as a fallback that always works. 4757 func_fallback_echo () 4758 { 4759 eval 'cat <<_LTECHO_EOF 4760$1 4761_LTECHO_EOF' 4762 } 4763 ECHO='func_fallback_echo' 4764fi 4765 4766# func_echo_all arg... 4767# Invoke $ECHO with all args, space-separated. 4768func_echo_all () 4769{ 4770 $ECHO "" 4771} 4772 4773case $ECHO in 4774 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4775$as_echo "printf" >&6; } ;; 4776 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4777$as_echo "print -r" >&6; } ;; 4778 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4779$as_echo "cat" >&6; } ;; 4780esac 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4796$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4797if ${ac_cv_path_SED+:} false; then : 4798 $as_echo_n "(cached) " >&6 4799else 4800 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4801 for ac_i in 1 2 3 4 5 6 7; do 4802 ac_script="$ac_script$as_nl$ac_script" 4803 done 4804 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4805 { ac_script=; unset ac_script;} 4806 if test -z "$SED"; then 4807 ac_path_SED_found=false 4808 # Loop through the user's path and test for each of PROGNAME-LIST 4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4810for as_dir in $PATH 4811do 4812 IFS=$as_save_IFS 4813 test -z "$as_dir" && as_dir=. 4814 for ac_prog in sed gsed; do 4815 for ac_exec_ext in '' $ac_executable_extensions; do 4816 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4817 as_fn_executable_p "$ac_path_SED" || continue 4818# Check for GNU ac_path_SED and select it if it is found. 4819 # Check for GNU $ac_path_SED 4820case `"$ac_path_SED" --version 2>&1` in 4821*GNU*) 4822 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4823*) 4824 ac_count=0 4825 $as_echo_n 0123456789 >"conftest.in" 4826 while : 4827 do 4828 cat "conftest.in" "conftest.in" >"conftest.tmp" 4829 mv "conftest.tmp" "conftest.in" 4830 cp "conftest.in" "conftest.nl" 4831 $as_echo '' >> "conftest.nl" 4832 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4833 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4834 as_fn_arith $ac_count + 1 && ac_count=$as_val 4835 if test $ac_count -gt ${ac_path_SED_max-0}; then 4836 # Best one so far, save it but keep looking for a better one 4837 ac_cv_path_SED="$ac_path_SED" 4838 ac_path_SED_max=$ac_count 4839 fi 4840 # 10*(2^10) chars as input seems more than enough 4841 test $ac_count -gt 10 && break 4842 done 4843 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4844esac 4845 4846 $ac_path_SED_found && break 3 4847 done 4848 done 4849 done 4850IFS=$as_save_IFS 4851 if test -z "$ac_cv_path_SED"; then 4852 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4853 fi 4854else 4855 ac_cv_path_SED=$SED 4856fi 4857 4858fi 4859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4860$as_echo "$ac_cv_path_SED" >&6; } 4861 SED="$ac_cv_path_SED" 4862 rm -f conftest.sed 4863 4864test -z "$SED" && SED=sed 4865Xsed="$SED -e 1s/^X//" 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4878$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4879if ${ac_cv_path_GREP+:} false; then : 4880 $as_echo_n "(cached) " >&6 4881else 4882 if test -z "$GREP"; then 4883 ac_path_GREP_found=false 4884 # Loop through the user's path and test for each of PROGNAME-LIST 4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4886for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4887do 4888 IFS=$as_save_IFS 4889 test -z "$as_dir" && as_dir=. 4890 for ac_prog in grep ggrep; do 4891 for ac_exec_ext in '' $ac_executable_extensions; do 4892 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4893 as_fn_executable_p "$ac_path_GREP" || continue 4894# Check for GNU ac_path_GREP and select it if it is found. 4895 # Check for GNU $ac_path_GREP 4896case `"$ac_path_GREP" --version 2>&1` in 4897*GNU*) 4898 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4899*) 4900 ac_count=0 4901 $as_echo_n 0123456789 >"conftest.in" 4902 while : 4903 do 4904 cat "conftest.in" "conftest.in" >"conftest.tmp" 4905 mv "conftest.tmp" "conftest.in" 4906 cp "conftest.in" "conftest.nl" 4907 $as_echo 'GREP' >> "conftest.nl" 4908 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4909 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4910 as_fn_arith $ac_count + 1 && ac_count=$as_val 4911 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4912 # Best one so far, save it but keep looking for a better one 4913 ac_cv_path_GREP="$ac_path_GREP" 4914 ac_path_GREP_max=$ac_count 4915 fi 4916 # 10*(2^10) chars as input seems more than enough 4917 test $ac_count -gt 10 && break 4918 done 4919 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4920esac 4921 4922 $ac_path_GREP_found && break 3 4923 done 4924 done 4925 done 4926IFS=$as_save_IFS 4927 if test -z "$ac_cv_path_GREP"; then 4928 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4929 fi 4930else 4931 ac_cv_path_GREP=$GREP 4932fi 4933 4934fi 4935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4936$as_echo "$ac_cv_path_GREP" >&6; } 4937 GREP="$ac_cv_path_GREP" 4938 4939 4940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4941$as_echo_n "checking for egrep... " >&6; } 4942if ${ac_cv_path_EGREP+:} false; then : 4943 $as_echo_n "(cached) " >&6 4944else 4945 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4946 then ac_cv_path_EGREP="$GREP -E" 4947 else 4948 if test -z "$EGREP"; then 4949 ac_path_EGREP_found=false 4950 # Loop through the user's path and test for each of PROGNAME-LIST 4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4952for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4953do 4954 IFS=$as_save_IFS 4955 test -z "$as_dir" && as_dir=. 4956 for ac_prog in egrep; do 4957 for ac_exec_ext in '' $ac_executable_extensions; do 4958 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4959 as_fn_executable_p "$ac_path_EGREP" || continue 4960# Check for GNU ac_path_EGREP and select it if it is found. 4961 # Check for GNU $ac_path_EGREP 4962case `"$ac_path_EGREP" --version 2>&1` in 4963*GNU*) 4964 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4965*) 4966 ac_count=0 4967 $as_echo_n 0123456789 >"conftest.in" 4968 while : 4969 do 4970 cat "conftest.in" "conftest.in" >"conftest.tmp" 4971 mv "conftest.tmp" "conftest.in" 4972 cp "conftest.in" "conftest.nl" 4973 $as_echo 'EGREP' >> "conftest.nl" 4974 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4975 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4976 as_fn_arith $ac_count + 1 && ac_count=$as_val 4977 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4978 # Best one so far, save it but keep looking for a better one 4979 ac_cv_path_EGREP="$ac_path_EGREP" 4980 ac_path_EGREP_max=$ac_count 4981 fi 4982 # 10*(2^10) chars as input seems more than enough 4983 test $ac_count -gt 10 && break 4984 done 4985 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4986esac 4987 4988 $ac_path_EGREP_found && break 3 4989 done 4990 done 4991 done 4992IFS=$as_save_IFS 4993 if test -z "$ac_cv_path_EGREP"; then 4994 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4995 fi 4996else 4997 ac_cv_path_EGREP=$EGREP 4998fi 4999 5000 fi 5001fi 5002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5003$as_echo "$ac_cv_path_EGREP" >&6; } 5004 EGREP="$ac_cv_path_EGREP" 5005 5006 5007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5008$as_echo_n "checking for fgrep... " >&6; } 5009if ${ac_cv_path_FGREP+:} false; then : 5010 $as_echo_n "(cached) " >&6 5011else 5012 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5013 then ac_cv_path_FGREP="$GREP -F" 5014 else 5015 if test -z "$FGREP"; then 5016 ac_path_FGREP_found=false 5017 # Loop through the user's path and test for each of PROGNAME-LIST 5018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5019for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5020do 5021 IFS=$as_save_IFS 5022 test -z "$as_dir" && as_dir=. 5023 for ac_prog in fgrep; do 5024 for ac_exec_ext in '' $ac_executable_extensions; do 5025 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5026 as_fn_executable_p "$ac_path_FGREP" || continue 5027# Check for GNU ac_path_FGREP and select it if it is found. 5028 # Check for GNU $ac_path_FGREP 5029case `"$ac_path_FGREP" --version 2>&1` in 5030*GNU*) 5031 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5032*) 5033 ac_count=0 5034 $as_echo_n 0123456789 >"conftest.in" 5035 while : 5036 do 5037 cat "conftest.in" "conftest.in" >"conftest.tmp" 5038 mv "conftest.tmp" "conftest.in" 5039 cp "conftest.in" "conftest.nl" 5040 $as_echo 'FGREP' >> "conftest.nl" 5041 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5042 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5043 as_fn_arith $ac_count + 1 && ac_count=$as_val 5044 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5045 # Best one so far, save it but keep looking for a better one 5046 ac_cv_path_FGREP="$ac_path_FGREP" 5047 ac_path_FGREP_max=$ac_count 5048 fi 5049 # 10*(2^10) chars as input seems more than enough 5050 test $ac_count -gt 10 && break 5051 done 5052 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5053esac 5054 5055 $ac_path_FGREP_found && break 3 5056 done 5057 done 5058 done 5059IFS=$as_save_IFS 5060 if test -z "$ac_cv_path_FGREP"; then 5061 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5062 fi 5063else 5064 ac_cv_path_FGREP=$FGREP 5065fi 5066 5067 fi 5068fi 5069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5070$as_echo "$ac_cv_path_FGREP" >&6; } 5071 FGREP="$ac_cv_path_FGREP" 5072 5073 5074test -z "$GREP" && GREP=grep 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094# Check whether --with-gnu-ld was given. 5095if test "${with_gnu_ld+set}" = set; then : 5096 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5097else 5098 with_gnu_ld=no 5099fi 5100 5101ac_prog=ld 5102if test yes = "$GCC"; then 5103 # Check if gcc -print-prog-name=ld gives a path. 5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5105$as_echo_n "checking for ld used by $CC... " >&6; } 5106 case $host in 5107 *-*-mingw*) 5108 # gcc leaves a trailing carriage return, which upsets mingw 5109 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5110 *) 5111 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5112 esac 5113 case $ac_prog in 5114 # Accept absolute paths. 5115 [\\/]* | ?:[\\/]*) 5116 re_direlt='/[^/][^/]*/\.\./' 5117 # Canonicalize the pathname of ld 5118 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5119 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5120 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5121 done 5122 test -z "$LD" && LD=$ac_prog 5123 ;; 5124 "") 5125 # If it fails, then pretend we aren't using GCC. 5126 ac_prog=ld 5127 ;; 5128 *) 5129 # If it is relative, then search for the first ld in PATH. 5130 with_gnu_ld=unknown 5131 ;; 5132 esac 5133elif test yes = "$with_gnu_ld"; then 5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5135$as_echo_n "checking for GNU ld... " >&6; } 5136else 5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5138$as_echo_n "checking for non-GNU ld... " >&6; } 5139fi 5140if ${lt_cv_path_LD+:} false; then : 5141 $as_echo_n "(cached) " >&6 5142else 5143 if test -z "$LD"; then 5144 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5145 for ac_dir in $PATH; do 5146 IFS=$lt_save_ifs 5147 test -z "$ac_dir" && ac_dir=. 5148 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5149 lt_cv_path_LD=$ac_dir/$ac_prog 5150 # Check to see if the program is GNU ld. I'd rather use --version, 5151 # but apparently some variants of GNU ld only accept -v. 5152 # Break only if it was the GNU/non-GNU ld that we prefer. 5153 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5154 *GNU* | *'with BFD'*) 5155 test no != "$with_gnu_ld" && break 5156 ;; 5157 *) 5158 test yes != "$with_gnu_ld" && break 5159 ;; 5160 esac 5161 fi 5162 done 5163 IFS=$lt_save_ifs 5164else 5165 lt_cv_path_LD=$LD # Let the user override the test with a path. 5166fi 5167fi 5168 5169LD=$lt_cv_path_LD 5170if test -n "$LD"; then 5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5172$as_echo "$LD" >&6; } 5173else 5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5175$as_echo "no" >&6; } 5176fi 5177test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5179$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5180if ${lt_cv_prog_gnu_ld+:} false; then : 5181 $as_echo_n "(cached) " >&6 5182else 5183 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5184case `$LD -v 2>&1 </dev/null` in 5185*GNU* | *'with BFD'*) 5186 lt_cv_prog_gnu_ld=yes 5187 ;; 5188*) 5189 lt_cv_prog_gnu_ld=no 5190 ;; 5191esac 5192fi 5193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5194$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5195with_gnu_ld=$lt_cv_prog_gnu_ld 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5206$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5207if ${lt_cv_path_NM+:} false; then : 5208 $as_echo_n "(cached) " >&6 5209else 5210 if test -n "$NM"; then 5211 # Let the user override the test. 5212 lt_cv_path_NM=$NM 5213else 5214 lt_nm_to_check=${ac_tool_prefix}nm 5215 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5216 lt_nm_to_check="$lt_nm_to_check nm" 5217 fi 5218 for lt_tmp_nm in $lt_nm_to_check; do 5219 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5220 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5221 IFS=$lt_save_ifs 5222 test -z "$ac_dir" && ac_dir=. 5223 tmp_nm=$ac_dir/$lt_tmp_nm 5224 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5225 # Check to see if the nm accepts a BSD-compat flag. 5226 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5227 # nm: unknown option "B" ignored 5228 # Tru64's nm complains that /dev/null is an invalid object file 5229 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5230 case $build_os in 5231 mingw*) lt_bad_file=conftest.nm/nofile ;; 5232 *) lt_bad_file=/dev/null ;; 5233 esac 5234 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5235 *$lt_bad_file* | *'Invalid file or object type'*) 5236 lt_cv_path_NM="$tmp_nm -B" 5237 break 2 5238 ;; 5239 *) 5240 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5241 */dev/null*) 5242 lt_cv_path_NM="$tmp_nm -p" 5243 break 2 5244 ;; 5245 *) 5246 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5247 continue # so that we can try to find one that supports BSD flags 5248 ;; 5249 esac 5250 ;; 5251 esac 5252 fi 5253 done 5254 IFS=$lt_save_ifs 5255 done 5256 : ${lt_cv_path_NM=no} 5257fi 5258fi 5259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5260$as_echo "$lt_cv_path_NM" >&6; } 5261if test no != "$lt_cv_path_NM"; then 5262 NM=$lt_cv_path_NM 5263else 5264 # Didn't find any BSD compatible name lister, look for dumpbin. 5265 if test -n "$DUMPBIN"; then : 5266 # Let the user override the test. 5267 else 5268 if test -n "$ac_tool_prefix"; then 5269 for ac_prog in dumpbin "link -dump" 5270 do 5271 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5272set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5274$as_echo_n "checking for $ac_word... " >&6; } 5275if ${ac_cv_prog_DUMPBIN+:} false; then : 5276 $as_echo_n "(cached) " >&6 5277else 5278 if test -n "$DUMPBIN"; then 5279 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5280else 5281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5282for as_dir in $PATH 5283do 5284 IFS=$as_save_IFS 5285 test -z "$as_dir" && as_dir=. 5286 for ac_exec_ext in '' $ac_executable_extensions; do 5287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5288 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5290 break 2 5291 fi 5292done 5293 done 5294IFS=$as_save_IFS 5295 5296fi 5297fi 5298DUMPBIN=$ac_cv_prog_DUMPBIN 5299if test -n "$DUMPBIN"; then 5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5301$as_echo "$DUMPBIN" >&6; } 5302else 5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5304$as_echo "no" >&6; } 5305fi 5306 5307 5308 test -n "$DUMPBIN" && break 5309 done 5310fi 5311if test -z "$DUMPBIN"; then 5312 ac_ct_DUMPBIN=$DUMPBIN 5313 for ac_prog in dumpbin "link -dump" 5314do 5315 # Extract the first word of "$ac_prog", so it can be a program name with args. 5316set dummy $ac_prog; ac_word=$2 5317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5318$as_echo_n "checking for $ac_word... " >&6; } 5319if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5320 $as_echo_n "(cached) " >&6 5321else 5322 if test -n "$ac_ct_DUMPBIN"; then 5323 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5324else 5325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5326for as_dir in $PATH 5327do 5328 IFS=$as_save_IFS 5329 test -z "$as_dir" && as_dir=. 5330 for ac_exec_ext in '' $ac_executable_extensions; do 5331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5332 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5334 break 2 5335 fi 5336done 5337 done 5338IFS=$as_save_IFS 5339 5340fi 5341fi 5342ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5343if test -n "$ac_ct_DUMPBIN"; then 5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5345$as_echo "$ac_ct_DUMPBIN" >&6; } 5346else 5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5348$as_echo "no" >&6; } 5349fi 5350 5351 5352 test -n "$ac_ct_DUMPBIN" && break 5353done 5354 5355 if test "x$ac_ct_DUMPBIN" = x; then 5356 DUMPBIN=":" 5357 else 5358 case $cross_compiling:$ac_tool_warned in 5359yes:) 5360{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5361$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5362ac_tool_warned=yes ;; 5363esac 5364 DUMPBIN=$ac_ct_DUMPBIN 5365 fi 5366fi 5367 5368 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5369 *COFF*) 5370 DUMPBIN="$DUMPBIN -symbols -headers" 5371 ;; 5372 *) 5373 DUMPBIN=: 5374 ;; 5375 esac 5376 fi 5377 5378 if test : != "$DUMPBIN"; then 5379 NM=$DUMPBIN 5380 fi 5381fi 5382test -z "$NM" && NM=nm 5383 5384 5385 5386 5387 5388 5389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5390$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5391if ${lt_cv_nm_interface+:} false; then : 5392 $as_echo_n "(cached) " >&6 5393else 5394 lt_cv_nm_interface="BSD nm" 5395 echo "int some_variable = 0;" > conftest.$ac_ext 5396 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5397 (eval "$ac_compile" 2>conftest.err) 5398 cat conftest.err >&5 5399 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5400 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5401 cat conftest.err >&5 5402 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5403 cat conftest.out >&5 5404 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5405 lt_cv_nm_interface="MS dumpbin" 5406 fi 5407 rm -f conftest* 5408fi 5409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5410$as_echo "$lt_cv_nm_interface" >&6; } 5411 5412# find the maximum length of command line arguments 5413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5414$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5415if ${lt_cv_sys_max_cmd_len+:} false; then : 5416 $as_echo_n "(cached) " >&6 5417else 5418 i=0 5419 teststring=ABCD 5420 5421 case $build_os in 5422 msdosdjgpp*) 5423 # On DJGPP, this test can blow up pretty badly due to problems in libc 5424 # (any single argument exceeding 2000 bytes causes a buffer overrun 5425 # during glob expansion). Even if it were fixed, the result of this 5426 # check would be larger than it should be. 5427 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5428 ;; 5429 5430 gnu*) 5431 # Under GNU Hurd, this test is not required because there is 5432 # no limit to the length of command line arguments. 5433 # Libtool will interpret -1 as no limit whatsoever 5434 lt_cv_sys_max_cmd_len=-1; 5435 ;; 5436 5437 cygwin* | mingw* | cegcc*) 5438 # On Win9x/ME, this test blows up -- it succeeds, but takes 5439 # about 5 minutes as the teststring grows exponentially. 5440 # Worse, since 9x/ME are not pre-emptively multitasking, 5441 # you end up with a "frozen" computer, even though with patience 5442 # the test eventually succeeds (with a max line length of 256k). 5443 # Instead, let's just punt: use the minimum linelength reported by 5444 # all of the supported platforms: 8192 (on NT/2K/XP). 5445 lt_cv_sys_max_cmd_len=8192; 5446 ;; 5447 5448 mint*) 5449 # On MiNT this can take a long time and run out of memory. 5450 lt_cv_sys_max_cmd_len=8192; 5451 ;; 5452 5453 amigaos*) 5454 # On AmigaOS with pdksh, this test takes hours, literally. 5455 # So we just punt and use a minimum line length of 8192. 5456 lt_cv_sys_max_cmd_len=8192; 5457 ;; 5458 5459 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5460 # This has been around since 386BSD, at least. Likely further. 5461 if test -x /sbin/sysctl; then 5462 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5463 elif test -x /usr/sbin/sysctl; then 5464 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5465 else 5466 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5467 fi 5468 # And add a safety zone 5469 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5470 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5471 ;; 5472 5473 interix*) 5474 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5475 lt_cv_sys_max_cmd_len=196608 5476 ;; 5477 5478 os2*) 5479 # The test takes a long time on OS/2. 5480 lt_cv_sys_max_cmd_len=8192 5481 ;; 5482 5483 osf*) 5484 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5485 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5486 # nice to cause kernel panics so lets avoid the loop below. 5487 # First set a reasonable default. 5488 lt_cv_sys_max_cmd_len=16384 5489 # 5490 if test -x /sbin/sysconfig; then 5491 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5492 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5493 esac 5494 fi 5495 ;; 5496 sco3.2v5*) 5497 lt_cv_sys_max_cmd_len=102400 5498 ;; 5499 sysv5* | sco5v6* | sysv4.2uw2*) 5500 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5501 if test -n "$kargmax"; then 5502 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5503 else 5504 lt_cv_sys_max_cmd_len=32768 5505 fi 5506 ;; 5507 *) 5508 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5509 if test -n "$lt_cv_sys_max_cmd_len" && \ 5510 test undefined != "$lt_cv_sys_max_cmd_len"; then 5511 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5512 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5513 else 5514 # Make teststring a little bigger before we do anything with it. 5515 # a 1K string should be a reasonable start. 5516 for i in 1 2 3 4 5 6 7 8; do 5517 teststring=$teststring$teststring 5518 done 5519 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5520 # If test is not a shell built-in, we'll probably end up computing a 5521 # maximum length that is only half of the actual maximum length, but 5522 # we can't tell. 5523 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5524 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5525 test 17 != "$i" # 1/2 MB should be enough 5526 do 5527 i=`expr $i + 1` 5528 teststring=$teststring$teststring 5529 done 5530 # Only check the string length outside the loop. 5531 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5532 teststring= 5533 # Add a significant safety factor because C++ compilers can tack on 5534 # massive amounts of additional arguments before passing them to the 5535 # linker. It appears as though 1/2 is a usable value. 5536 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5537 fi 5538 ;; 5539 esac 5540 5541fi 5542 5543if test -n "$lt_cv_sys_max_cmd_len"; then 5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5545$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5546else 5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5548$as_echo "none" >&6; } 5549fi 5550max_cmd_len=$lt_cv_sys_max_cmd_len 5551 5552 5553 5554 5555 5556 5557: ${CP="cp -f"} 5558: ${MV="mv -f"} 5559: ${RM="rm -f"} 5560 5561if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5562 lt_unset=unset 5563else 5564 lt_unset=false 5565fi 5566 5567 5568 5569 5570 5571# test EBCDIC or ASCII 5572case `echo X|tr X '\101'` in 5573 A) # ASCII based system 5574 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5575 lt_SP2NL='tr \040 \012' 5576 lt_NL2SP='tr \015\012 \040\040' 5577 ;; 5578 *) # EBCDIC based system 5579 lt_SP2NL='tr \100 \n' 5580 lt_NL2SP='tr \r\n \100\100' 5581 ;; 5582esac 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5593$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5594if ${lt_cv_to_host_file_cmd+:} false; then : 5595 $as_echo_n "(cached) " >&6 5596else 5597 case $host in 5598 *-*-mingw* ) 5599 case $build in 5600 *-*-mingw* ) # actually msys 5601 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5602 ;; 5603 *-*-cygwin* ) 5604 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5605 ;; 5606 * ) # otherwise, assume *nix 5607 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5608 ;; 5609 esac 5610 ;; 5611 *-*-cygwin* ) 5612 case $build in 5613 *-*-mingw* ) # actually msys 5614 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5615 ;; 5616 *-*-cygwin* ) 5617 lt_cv_to_host_file_cmd=func_convert_file_noop 5618 ;; 5619 * ) # otherwise, assume *nix 5620 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5621 ;; 5622 esac 5623 ;; 5624 * ) # unhandled hosts (and "normal" native builds) 5625 lt_cv_to_host_file_cmd=func_convert_file_noop 5626 ;; 5627esac 5628 5629fi 5630 5631to_host_file_cmd=$lt_cv_to_host_file_cmd 5632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5633$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5634 5635 5636 5637 5638 5639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5640$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5641if ${lt_cv_to_tool_file_cmd+:} false; then : 5642 $as_echo_n "(cached) " >&6 5643else 5644 #assume ordinary cross tools, or native build. 5645lt_cv_to_tool_file_cmd=func_convert_file_noop 5646case $host in 5647 *-*-mingw* ) 5648 case $build in 5649 *-*-mingw* ) # actually msys 5650 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5651 ;; 5652 esac 5653 ;; 5654esac 5655 5656fi 5657 5658to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5660$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5661 5662 5663 5664 5665 5666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5667$as_echo_n "checking for $LD option to reload object files... " >&6; } 5668if ${lt_cv_ld_reload_flag+:} false; then : 5669 $as_echo_n "(cached) " >&6 5670else 5671 lt_cv_ld_reload_flag='-r' 5672fi 5673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5674$as_echo "$lt_cv_ld_reload_flag" >&6; } 5675reload_flag=$lt_cv_ld_reload_flag 5676case $reload_flag in 5677"" | " "*) ;; 5678*) reload_flag=" $reload_flag" ;; 5679esac 5680reload_cmds='$LD$reload_flag -o $output$reload_objs' 5681case $host_os in 5682 cygwin* | mingw* | pw32* | cegcc*) 5683 if test yes != "$GCC"; then 5684 reload_cmds=false 5685 fi 5686 ;; 5687 darwin*) 5688 if test yes = "$GCC"; then 5689 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5690 else 5691 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5692 fi 5693 ;; 5694esac 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704if test -n "$ac_tool_prefix"; then 5705 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5706set dummy ${ac_tool_prefix}objdump; ac_word=$2 5707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5708$as_echo_n "checking for $ac_word... " >&6; } 5709if ${ac_cv_prog_OBJDUMP+:} false; then : 5710 $as_echo_n "(cached) " >&6 5711else 5712 if test -n "$OBJDUMP"; then 5713 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5714else 5715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5716for as_dir in $PATH 5717do 5718 IFS=$as_save_IFS 5719 test -z "$as_dir" && as_dir=. 5720 for ac_exec_ext in '' $ac_executable_extensions; do 5721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5722 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5724 break 2 5725 fi 5726done 5727 done 5728IFS=$as_save_IFS 5729 5730fi 5731fi 5732OBJDUMP=$ac_cv_prog_OBJDUMP 5733if test -n "$OBJDUMP"; then 5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5735$as_echo "$OBJDUMP" >&6; } 5736else 5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5738$as_echo "no" >&6; } 5739fi 5740 5741 5742fi 5743if test -z "$ac_cv_prog_OBJDUMP"; then 5744 ac_ct_OBJDUMP=$OBJDUMP 5745 # Extract the first word of "objdump", so it can be a program name with args. 5746set dummy objdump; ac_word=$2 5747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5748$as_echo_n "checking for $ac_word... " >&6; } 5749if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5750 $as_echo_n "(cached) " >&6 5751else 5752 if test -n "$ac_ct_OBJDUMP"; then 5753 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5754else 5755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5756for as_dir in $PATH 5757do 5758 IFS=$as_save_IFS 5759 test -z "$as_dir" && as_dir=. 5760 for ac_exec_ext in '' $ac_executable_extensions; do 5761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5762 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5764 break 2 5765 fi 5766done 5767 done 5768IFS=$as_save_IFS 5769 5770fi 5771fi 5772ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5773if test -n "$ac_ct_OBJDUMP"; then 5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5775$as_echo "$ac_ct_OBJDUMP" >&6; } 5776else 5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5778$as_echo "no" >&6; } 5779fi 5780 5781 if test "x$ac_ct_OBJDUMP" = x; then 5782 OBJDUMP="false" 5783 else 5784 case $cross_compiling:$ac_tool_warned in 5785yes:) 5786{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5787$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5788ac_tool_warned=yes ;; 5789esac 5790 OBJDUMP=$ac_ct_OBJDUMP 5791 fi 5792else 5793 OBJDUMP="$ac_cv_prog_OBJDUMP" 5794fi 5795 5796test -z "$OBJDUMP" && OBJDUMP=objdump 5797 5798 5799 5800 5801 5802 5803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5804$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5805if ${lt_cv_deplibs_check_method+:} false; then : 5806 $as_echo_n "(cached) " >&6 5807else 5808 lt_cv_file_magic_cmd='$MAGIC_CMD' 5809lt_cv_file_magic_test_file= 5810lt_cv_deplibs_check_method='unknown' 5811# Need to set the preceding variable on all platforms that support 5812# interlibrary dependencies. 5813# 'none' -- dependencies not supported. 5814# 'unknown' -- same as none, but documents that we really don't know. 5815# 'pass_all' -- all dependencies passed with no checks. 5816# 'test_compile' -- check by making test program. 5817# 'file_magic [[regex]]' -- check by looking for files in library path 5818# that responds to the $file_magic_cmd with a given extended regex. 5819# If you have 'file' or equivalent on your system and you're not sure 5820# whether 'pass_all' will *always* work, you probably want this one. 5821 5822case $host_os in 5823aix[4-9]*) 5824 lt_cv_deplibs_check_method=pass_all 5825 ;; 5826 5827beos*) 5828 lt_cv_deplibs_check_method=pass_all 5829 ;; 5830 5831bsdi[45]*) 5832 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5833 lt_cv_file_magic_cmd='/usr/bin/file -L' 5834 lt_cv_file_magic_test_file=/shlib/libc.so 5835 ;; 5836 5837cygwin*) 5838 # func_win32_libid is a shell function defined in ltmain.sh 5839 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5840 lt_cv_file_magic_cmd='func_win32_libid' 5841 ;; 5842 5843mingw* | pw32*) 5844 # Base MSYS/MinGW do not provide the 'file' command needed by 5845 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5846 # unless we find 'file', for example because we are cross-compiling. 5847 if ( file / ) >/dev/null 2>&1; then 5848 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5849 lt_cv_file_magic_cmd='func_win32_libid' 5850 else 5851 # Keep this pattern in sync with the one in func_win32_libid. 5852 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5853 lt_cv_file_magic_cmd='$OBJDUMP -f' 5854 fi 5855 ;; 5856 5857cegcc*) 5858 # use the weaker test based on 'objdump'. See mingw*. 5859 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5860 lt_cv_file_magic_cmd='$OBJDUMP -f' 5861 ;; 5862 5863darwin* | rhapsody*) 5864 lt_cv_deplibs_check_method=pass_all 5865 ;; 5866 5867freebsd* | dragonfly*) 5868 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5869 case $host_cpu in 5870 i*86 ) 5871 # Not sure whether the presence of OpenBSD here was a mistake. 5872 # Let's accept both of them until this is cleared up. 5873 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5874 lt_cv_file_magic_cmd=/usr/bin/file 5875 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5876 ;; 5877 esac 5878 else 5879 lt_cv_deplibs_check_method=pass_all 5880 fi 5881 ;; 5882 5883haiku*) 5884 lt_cv_deplibs_check_method=pass_all 5885 ;; 5886 5887hpux10.20* | hpux11*) 5888 lt_cv_file_magic_cmd=/usr/bin/file 5889 case $host_cpu in 5890 ia64*) 5891 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5892 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5893 ;; 5894 hppa*64*) 5895 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]' 5896 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5897 ;; 5898 *) 5899 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5900 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5901 ;; 5902 esac 5903 ;; 5904 5905interix[3-9]*) 5906 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5907 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5908 ;; 5909 5910irix5* | irix6* | nonstopux*) 5911 case $LD in 5912 *-32|*"-32 ") libmagic=32-bit;; 5913 *-n32|*"-n32 ") libmagic=N32;; 5914 *-64|*"-64 ") libmagic=64-bit;; 5915 *) libmagic=never-match;; 5916 esac 5917 lt_cv_deplibs_check_method=pass_all 5918 ;; 5919 5920# This must be glibc/ELF. 5921linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5922 lt_cv_deplibs_check_method=pass_all 5923 ;; 5924 5925netbsd*) 5926 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5927 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5928 else 5929 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5930 fi 5931 ;; 5932 5933newos6*) 5934 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5935 lt_cv_file_magic_cmd=/usr/bin/file 5936 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5937 ;; 5938 5939*nto* | *qnx*) 5940 lt_cv_deplibs_check_method=pass_all 5941 ;; 5942 5943openbsd* | bitrig*) 5944 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5945 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5946 else 5947 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5948 fi 5949 ;; 5950 5951osf3* | osf4* | osf5*) 5952 lt_cv_deplibs_check_method=pass_all 5953 ;; 5954 5955rdos*) 5956 lt_cv_deplibs_check_method=pass_all 5957 ;; 5958 5959solaris*) 5960 lt_cv_deplibs_check_method=pass_all 5961 ;; 5962 5963sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5964 lt_cv_deplibs_check_method=pass_all 5965 ;; 5966 5967sysv4 | sysv4.3*) 5968 case $host_vendor in 5969 motorola) 5970 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]' 5971 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5972 ;; 5973 ncr) 5974 lt_cv_deplibs_check_method=pass_all 5975 ;; 5976 sequent) 5977 lt_cv_file_magic_cmd='/bin/file' 5978 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5979 ;; 5980 sni) 5981 lt_cv_file_magic_cmd='/bin/file' 5982 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5983 lt_cv_file_magic_test_file=/lib/libc.so 5984 ;; 5985 siemens) 5986 lt_cv_deplibs_check_method=pass_all 5987 ;; 5988 pc) 5989 lt_cv_deplibs_check_method=pass_all 5990 ;; 5991 esac 5992 ;; 5993 5994tpf*) 5995 lt_cv_deplibs_check_method=pass_all 5996 ;; 5997os2*) 5998 lt_cv_deplibs_check_method=pass_all 5999 ;; 6000esac 6001 6002fi 6003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6004$as_echo "$lt_cv_deplibs_check_method" >&6; } 6005 6006file_magic_glob= 6007want_nocaseglob=no 6008if test "$build" = "$host"; then 6009 case $host_os in 6010 mingw* | pw32*) 6011 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6012 want_nocaseglob=yes 6013 else 6014 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6015 fi 6016 ;; 6017 esac 6018fi 6019 6020file_magic_cmd=$lt_cv_file_magic_cmd 6021deplibs_check_method=$lt_cv_deplibs_check_method 6022test -z "$deplibs_check_method" && deplibs_check_method=unknown 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045if test -n "$ac_tool_prefix"; then 6046 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6047set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6049$as_echo_n "checking for $ac_word... " >&6; } 6050if ${ac_cv_prog_DLLTOOL+:} false; then : 6051 $as_echo_n "(cached) " >&6 6052else 6053 if test -n "$DLLTOOL"; then 6054 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6055else 6056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6057for as_dir in $PATH 6058do 6059 IFS=$as_save_IFS 6060 test -z "$as_dir" && as_dir=. 6061 for ac_exec_ext in '' $ac_executable_extensions; do 6062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6063 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6065 break 2 6066 fi 6067done 6068 done 6069IFS=$as_save_IFS 6070 6071fi 6072fi 6073DLLTOOL=$ac_cv_prog_DLLTOOL 6074if test -n "$DLLTOOL"; then 6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6076$as_echo "$DLLTOOL" >&6; } 6077else 6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6079$as_echo "no" >&6; } 6080fi 6081 6082 6083fi 6084if test -z "$ac_cv_prog_DLLTOOL"; then 6085 ac_ct_DLLTOOL=$DLLTOOL 6086 # Extract the first word of "dlltool", so it can be a program name with args. 6087set dummy dlltool; ac_word=$2 6088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6089$as_echo_n "checking for $ac_word... " >&6; } 6090if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6091 $as_echo_n "(cached) " >&6 6092else 6093 if test -n "$ac_ct_DLLTOOL"; then 6094 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6095else 6096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6097for as_dir in $PATH 6098do 6099 IFS=$as_save_IFS 6100 test -z "$as_dir" && as_dir=. 6101 for ac_exec_ext in '' $ac_executable_extensions; do 6102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6103 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6105 break 2 6106 fi 6107done 6108 done 6109IFS=$as_save_IFS 6110 6111fi 6112fi 6113ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6114if test -n "$ac_ct_DLLTOOL"; then 6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6116$as_echo "$ac_ct_DLLTOOL" >&6; } 6117else 6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6119$as_echo "no" >&6; } 6120fi 6121 6122 if test "x$ac_ct_DLLTOOL" = x; then 6123 DLLTOOL="false" 6124 else 6125 case $cross_compiling:$ac_tool_warned in 6126yes:) 6127{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6128$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6129ac_tool_warned=yes ;; 6130esac 6131 DLLTOOL=$ac_ct_DLLTOOL 6132 fi 6133else 6134 DLLTOOL="$ac_cv_prog_DLLTOOL" 6135fi 6136 6137test -z "$DLLTOOL" && DLLTOOL=dlltool 6138 6139 6140 6141 6142 6143 6144 6145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6146$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6147if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6148 $as_echo_n "(cached) " >&6 6149else 6150 lt_cv_sharedlib_from_linklib_cmd='unknown' 6151 6152case $host_os in 6153cygwin* | mingw* | pw32* | cegcc*) 6154 # two different shell functions defined in ltmain.sh; 6155 # decide which one to use based on capabilities of $DLLTOOL 6156 case `$DLLTOOL --help 2>&1` in 6157 *--identify-strict*) 6158 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6159 ;; 6160 *) 6161 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6162 ;; 6163 esac 6164 ;; 6165*) 6166 # fallback: assume linklib IS sharedlib 6167 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6168 ;; 6169esac 6170 6171fi 6172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6173$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6174sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6175test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6176 6177 6178 6179 6180 6181 6182 6183if test -n "$ac_tool_prefix"; then 6184 for ac_prog in ar 6185 do 6186 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6187set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6189$as_echo_n "checking for $ac_word... " >&6; } 6190if ${ac_cv_prog_AR+:} false; then : 6191 $as_echo_n "(cached) " >&6 6192else 6193 if test -n "$AR"; then 6194 ac_cv_prog_AR="$AR" # Let the user override the test. 6195else 6196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6197for as_dir in $PATH 6198do 6199 IFS=$as_save_IFS 6200 test -z "$as_dir" && as_dir=. 6201 for ac_exec_ext in '' $ac_executable_extensions; do 6202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6203 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6205 break 2 6206 fi 6207done 6208 done 6209IFS=$as_save_IFS 6210 6211fi 6212fi 6213AR=$ac_cv_prog_AR 6214if test -n "$AR"; then 6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6216$as_echo "$AR" >&6; } 6217else 6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6219$as_echo "no" >&6; } 6220fi 6221 6222 6223 test -n "$AR" && break 6224 done 6225fi 6226if test -z "$AR"; then 6227 ac_ct_AR=$AR 6228 for ac_prog in ar 6229do 6230 # Extract the first word of "$ac_prog", so it can be a program name with args. 6231set dummy $ac_prog; ac_word=$2 6232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6233$as_echo_n "checking for $ac_word... " >&6; } 6234if ${ac_cv_prog_ac_ct_AR+:} false; then : 6235 $as_echo_n "(cached) " >&6 6236else 6237 if test -n "$ac_ct_AR"; then 6238 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6239else 6240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6241for as_dir in $PATH 6242do 6243 IFS=$as_save_IFS 6244 test -z "$as_dir" && as_dir=. 6245 for ac_exec_ext in '' $ac_executable_extensions; do 6246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6247 ac_cv_prog_ac_ct_AR="$ac_prog" 6248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6249 break 2 6250 fi 6251done 6252 done 6253IFS=$as_save_IFS 6254 6255fi 6256fi 6257ac_ct_AR=$ac_cv_prog_ac_ct_AR 6258if test -n "$ac_ct_AR"; then 6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6260$as_echo "$ac_ct_AR" >&6; } 6261else 6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6263$as_echo "no" >&6; } 6264fi 6265 6266 6267 test -n "$ac_ct_AR" && break 6268done 6269 6270 if test "x$ac_ct_AR" = x; then 6271 AR="false" 6272 else 6273 case $cross_compiling:$ac_tool_warned in 6274yes:) 6275{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6276$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6277ac_tool_warned=yes ;; 6278esac 6279 AR=$ac_ct_AR 6280 fi 6281fi 6282 6283: ${AR=ar} 6284: ${AR_FLAGS=cru} 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6297$as_echo_n "checking for archiver @FILE support... " >&6; } 6298if ${lt_cv_ar_at_file+:} false; then : 6299 $as_echo_n "(cached) " >&6 6300else 6301 lt_cv_ar_at_file=no 6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6303/* end confdefs.h. */ 6304 6305int 6306main () 6307{ 6308 6309 ; 6310 return 0; 6311} 6312_ACEOF 6313if ac_fn_c_try_compile "$LINENO"; then : 6314 echo conftest.$ac_objext > conftest.lst 6315 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6317 (eval $lt_ar_try) 2>&5 6318 ac_status=$? 6319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6320 test $ac_status = 0; } 6321 if test 0 -eq "$ac_status"; then 6322 # Ensure the archiver fails upon bogus file names. 6323 rm -f conftest.$ac_objext libconftest.a 6324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6325 (eval $lt_ar_try) 2>&5 6326 ac_status=$? 6327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6328 test $ac_status = 0; } 6329 if test 0 -ne "$ac_status"; then 6330 lt_cv_ar_at_file=@ 6331 fi 6332 fi 6333 rm -f conftest.* libconftest.a 6334 6335fi 6336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6337 6338fi 6339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6340$as_echo "$lt_cv_ar_at_file" >&6; } 6341 6342if test no = "$lt_cv_ar_at_file"; then 6343 archiver_list_spec= 6344else 6345 archiver_list_spec=$lt_cv_ar_at_file 6346fi 6347 6348 6349 6350 6351 6352 6353 6354if test -n "$ac_tool_prefix"; then 6355 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6356set dummy ${ac_tool_prefix}strip; ac_word=$2 6357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6358$as_echo_n "checking for $ac_word... " >&6; } 6359if ${ac_cv_prog_STRIP+:} false; then : 6360 $as_echo_n "(cached) " >&6 6361else 6362 if test -n "$STRIP"; then 6363 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6364else 6365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6366for as_dir in $PATH 6367do 6368 IFS=$as_save_IFS 6369 test -z "$as_dir" && as_dir=. 6370 for ac_exec_ext in '' $ac_executable_extensions; do 6371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6372 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6374 break 2 6375 fi 6376done 6377 done 6378IFS=$as_save_IFS 6379 6380fi 6381fi 6382STRIP=$ac_cv_prog_STRIP 6383if test -n "$STRIP"; then 6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6385$as_echo "$STRIP" >&6; } 6386else 6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6388$as_echo "no" >&6; } 6389fi 6390 6391 6392fi 6393if test -z "$ac_cv_prog_STRIP"; then 6394 ac_ct_STRIP=$STRIP 6395 # Extract the first word of "strip", so it can be a program name with args. 6396set dummy strip; ac_word=$2 6397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6398$as_echo_n "checking for $ac_word... " >&6; } 6399if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6400 $as_echo_n "(cached) " >&6 6401else 6402 if test -n "$ac_ct_STRIP"; then 6403 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6404else 6405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6406for as_dir in $PATH 6407do 6408 IFS=$as_save_IFS 6409 test -z "$as_dir" && as_dir=. 6410 for ac_exec_ext in '' $ac_executable_extensions; do 6411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6412 ac_cv_prog_ac_ct_STRIP="strip" 6413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6414 break 2 6415 fi 6416done 6417 done 6418IFS=$as_save_IFS 6419 6420fi 6421fi 6422ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6423if test -n "$ac_ct_STRIP"; then 6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6425$as_echo "$ac_ct_STRIP" >&6; } 6426else 6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6428$as_echo "no" >&6; } 6429fi 6430 6431 if test "x$ac_ct_STRIP" = x; then 6432 STRIP=":" 6433 else 6434 case $cross_compiling:$ac_tool_warned in 6435yes:) 6436{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6437$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6438ac_tool_warned=yes ;; 6439esac 6440 STRIP=$ac_ct_STRIP 6441 fi 6442else 6443 STRIP="$ac_cv_prog_STRIP" 6444fi 6445 6446test -z "$STRIP" && STRIP=: 6447 6448 6449 6450 6451 6452 6453if test -n "$ac_tool_prefix"; then 6454 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6455set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6457$as_echo_n "checking for $ac_word... " >&6; } 6458if ${ac_cv_prog_RANLIB+:} false; then : 6459 $as_echo_n "(cached) " >&6 6460else 6461 if test -n "$RANLIB"; then 6462 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6463else 6464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6465for as_dir in $PATH 6466do 6467 IFS=$as_save_IFS 6468 test -z "$as_dir" && as_dir=. 6469 for ac_exec_ext in '' $ac_executable_extensions; do 6470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6471 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6473 break 2 6474 fi 6475done 6476 done 6477IFS=$as_save_IFS 6478 6479fi 6480fi 6481RANLIB=$ac_cv_prog_RANLIB 6482if test -n "$RANLIB"; then 6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6484$as_echo "$RANLIB" >&6; } 6485else 6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6487$as_echo "no" >&6; } 6488fi 6489 6490 6491fi 6492if test -z "$ac_cv_prog_RANLIB"; then 6493 ac_ct_RANLIB=$RANLIB 6494 # Extract the first word of "ranlib", so it can be a program name with args. 6495set dummy ranlib; ac_word=$2 6496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6497$as_echo_n "checking for $ac_word... " >&6; } 6498if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6499 $as_echo_n "(cached) " >&6 6500else 6501 if test -n "$ac_ct_RANLIB"; then 6502 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6503else 6504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6505for as_dir in $PATH 6506do 6507 IFS=$as_save_IFS 6508 test -z "$as_dir" && as_dir=. 6509 for ac_exec_ext in '' $ac_executable_extensions; do 6510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6511 ac_cv_prog_ac_ct_RANLIB="ranlib" 6512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6513 break 2 6514 fi 6515done 6516 done 6517IFS=$as_save_IFS 6518 6519fi 6520fi 6521ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6522if test -n "$ac_ct_RANLIB"; then 6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6524$as_echo "$ac_ct_RANLIB" >&6; } 6525else 6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6527$as_echo "no" >&6; } 6528fi 6529 6530 if test "x$ac_ct_RANLIB" = x; then 6531 RANLIB=":" 6532 else 6533 case $cross_compiling:$ac_tool_warned in 6534yes:) 6535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6537ac_tool_warned=yes ;; 6538esac 6539 RANLIB=$ac_ct_RANLIB 6540 fi 6541else 6542 RANLIB="$ac_cv_prog_RANLIB" 6543fi 6544 6545test -z "$RANLIB" && RANLIB=: 6546 6547 6548 6549 6550 6551 6552# Determine commands to create old-style static archives. 6553old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6554old_postinstall_cmds='chmod 644 $oldlib' 6555old_postuninstall_cmds= 6556 6557if test -n "$RANLIB"; then 6558 case $host_os in 6559 bitrig* | openbsd*) 6560 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6561 ;; 6562 *) 6563 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6564 ;; 6565 esac 6566 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6567fi 6568 6569case $host_os in 6570 darwin*) 6571 lock_old_archive_extraction=yes ;; 6572 *) 6573 lock_old_archive_extraction=no ;; 6574esac 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614# If no C compiler was specified, use CC. 6615LTCC=${LTCC-"$CC"} 6616 6617# If no C compiler flags were specified, use CFLAGS. 6618LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6619 6620# Allow CC to be a program name with arguments. 6621compiler=$CC 6622 6623 6624# Check for command to grab the raw symbol name followed by C symbol from nm. 6625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6626$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6627if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6628 $as_echo_n "(cached) " >&6 6629else 6630 6631# These are sane defaults that work on at least a few old systems. 6632# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6633 6634# Character class describing NM global symbol codes. 6635symcode='[BCDEGRST]' 6636 6637# Regexp to match symbols that can be accessed directly from C. 6638sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6639 6640# Define system-specific variables. 6641case $host_os in 6642aix*) 6643 symcode='[BCDT]' 6644 ;; 6645cygwin* | mingw* | pw32* | cegcc*) 6646 symcode='[ABCDGISTW]' 6647 ;; 6648hpux*) 6649 if test ia64 = "$host_cpu"; then 6650 symcode='[ABCDEGRST]' 6651 fi 6652 ;; 6653irix* | nonstopux*) 6654 symcode='[BCDEGRST]' 6655 ;; 6656osf*) 6657 symcode='[BCDEGQRST]' 6658 ;; 6659solaris*) 6660 symcode='[BDRT]' 6661 ;; 6662sco3.2v5*) 6663 symcode='[DT]' 6664 ;; 6665sysv4.2uw2*) 6666 symcode='[DT]' 6667 ;; 6668sysv5* | sco5v6* | unixware* | OpenUNIX*) 6669 symcode='[ABDT]' 6670 ;; 6671sysv4) 6672 symcode='[DFNSTU]' 6673 ;; 6674esac 6675 6676# If we're using GNU nm, then use its standard symbol codes. 6677case `$NM -V 2>&1` in 6678*GNU* | *'with BFD'*) 6679 symcode='[ABCDGIRSTW]' ;; 6680esac 6681 6682if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6683 # Gets list of data symbols to import. 6684 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6685 # Adjust the below global symbol transforms to fixup imported variables. 6686 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6687 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6688 lt_c_name_lib_hook="\ 6689 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6690 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6691else 6692 # Disable hooks by default. 6693 lt_cv_sys_global_symbol_to_import= 6694 lt_cdecl_hook= 6695 lt_c_name_hook= 6696 lt_c_name_lib_hook= 6697fi 6698 6699# Transform an extracted symbol line into a proper C declaration. 6700# Some systems (esp. on ia64) link data and code symbols differently, 6701# so use this general approach. 6702lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6703$lt_cdecl_hook\ 6704" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6705" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6706 6707# Transform an extracted symbol line into symbol name and symbol address 6708lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6709$lt_c_name_hook\ 6710" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6711" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6712 6713# Transform an extracted symbol line into symbol name with lib prefix and 6714# symbol address. 6715lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6716$lt_c_name_lib_hook\ 6717" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6718" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6719" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6720 6721# Handle CRLF in mingw tool chain 6722opt_cr= 6723case $build_os in 6724mingw*) 6725 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6726 ;; 6727esac 6728 6729# Try without a prefix underscore, then with it. 6730for ac_symprfx in "" "_"; do 6731 6732 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6733 symxfrm="\\1 $ac_symprfx\\2 \\2" 6734 6735 # Write the raw and C identifiers. 6736 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6737 # Fake it for dumpbin and say T for any non-static function, 6738 # D for any global variable and I for any imported variable. 6739 # Also find C++ and __fastcall symbols from MSVC++, 6740 # which start with @ or ?. 6741 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6742" {last_section=section; section=\$ 3};"\ 6743" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6744" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6745" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6746" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6747" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6748" \$ 0!~/External *\|/{next};"\ 6749" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6750" {if(hide[section]) next};"\ 6751" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6752" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6753" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6754" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6755" ' prfx=^$ac_symprfx" 6756 else 6757 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6758 fi 6759 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6760 6761 # Check to see that the pipe works correctly. 6762 pipe_works=no 6763 6764 rm -f conftest* 6765 cat > conftest.$ac_ext <<_LT_EOF 6766#ifdef __cplusplus 6767extern "C" { 6768#endif 6769char nm_test_var; 6770void nm_test_func(void); 6771void nm_test_func(void){} 6772#ifdef __cplusplus 6773} 6774#endif 6775int main(){nm_test_var='a';nm_test_func();return(0);} 6776_LT_EOF 6777 6778 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6779 (eval $ac_compile) 2>&5 6780 ac_status=$? 6781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6782 test $ac_status = 0; }; then 6783 # Now try to grab the symbols. 6784 nlist=conftest.nm 6785 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6786 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6787 ac_status=$? 6788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6789 test $ac_status = 0; } && test -s "$nlist"; then 6790 # Try sorting and uniquifying the output. 6791 if sort "$nlist" | uniq > "$nlist"T; then 6792 mv -f "$nlist"T "$nlist" 6793 else 6794 rm -f "$nlist"T 6795 fi 6796 6797 # Make sure that we snagged all the symbols we need. 6798 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6799 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6800 cat <<_LT_EOF > conftest.$ac_ext 6801/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6802#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6803/* DATA imports from DLLs on WIN32 can't be const, because runtime 6804 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6805# define LT_DLSYM_CONST 6806#elif defined __osf__ 6807/* This system does not cope well with relocations in const data. */ 6808# define LT_DLSYM_CONST 6809#else 6810# define LT_DLSYM_CONST const 6811#endif 6812 6813#ifdef __cplusplus 6814extern "C" { 6815#endif 6816 6817_LT_EOF 6818 # Now generate the symbol file. 6819 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6820 6821 cat <<_LT_EOF >> conftest.$ac_ext 6822 6823/* The mapping between symbol names and symbols. */ 6824LT_DLSYM_CONST struct { 6825 const char *name; 6826 void *address; 6827} 6828lt__PROGRAM__LTX_preloaded_symbols[] = 6829{ 6830 { "@PROGRAM@", (void *) 0 }, 6831_LT_EOF 6832 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6833 cat <<\_LT_EOF >> conftest.$ac_ext 6834 {0, (void *) 0} 6835}; 6836 6837/* This works around a problem in FreeBSD linker */ 6838#ifdef FREEBSD_WORKAROUND 6839static const void *lt_preloaded_setup() { 6840 return lt__PROGRAM__LTX_preloaded_symbols; 6841} 6842#endif 6843 6844#ifdef __cplusplus 6845} 6846#endif 6847_LT_EOF 6848 # Now try linking the two files. 6849 mv conftest.$ac_objext conftstm.$ac_objext 6850 lt_globsym_save_LIBS=$LIBS 6851 lt_globsym_save_CFLAGS=$CFLAGS 6852 LIBS=conftstm.$ac_objext 6853 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6854 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6855 (eval $ac_link) 2>&5 6856 ac_status=$? 6857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6858 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6859 pipe_works=yes 6860 fi 6861 LIBS=$lt_globsym_save_LIBS 6862 CFLAGS=$lt_globsym_save_CFLAGS 6863 else 6864 echo "cannot find nm_test_func in $nlist" >&5 6865 fi 6866 else 6867 echo "cannot find nm_test_var in $nlist" >&5 6868 fi 6869 else 6870 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6871 fi 6872 else 6873 echo "$progname: failed program was:" >&5 6874 cat conftest.$ac_ext >&5 6875 fi 6876 rm -rf conftest* conftst* 6877 6878 # Do not use the global_symbol_pipe unless it works. 6879 if test yes = "$pipe_works"; then 6880 break 6881 else 6882 lt_cv_sys_global_symbol_pipe= 6883 fi 6884done 6885 6886fi 6887 6888if test -z "$lt_cv_sys_global_symbol_pipe"; then 6889 lt_cv_sys_global_symbol_to_cdecl= 6890fi 6891if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6893$as_echo "failed" >&6; } 6894else 6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6896$as_echo "ok" >&6; } 6897fi 6898 6899# Response file support. 6900if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6901 nm_file_list_spec='@' 6902elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6903 nm_file_list_spec='@' 6904fi 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6943$as_echo_n "checking for sysroot... " >&6; } 6944 6945# Check whether --with-sysroot was given. 6946if test "${with_sysroot+set}" = set; then : 6947 withval=$with_sysroot; 6948else 6949 with_sysroot=no 6950fi 6951 6952 6953lt_sysroot= 6954case $with_sysroot in #( 6955 yes) 6956 if test yes = "$GCC"; then 6957 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6958 fi 6959 ;; #( 6960 /*) 6961 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6962 ;; #( 6963 no|'') 6964 ;; #( 6965 *) 6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6967$as_echo "$with_sysroot" >&6; } 6968 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6969 ;; 6970esac 6971 6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6973$as_echo "${lt_sysroot:-no}" >&6; } 6974 6975 6976 6977 6978 6979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6980$as_echo_n "checking for a working dd... " >&6; } 6981if ${ac_cv_path_lt_DD+:} false; then : 6982 $as_echo_n "(cached) " >&6 6983else 6984 printf 0123456789abcdef0123456789abcdef >conftest.i 6985cat conftest.i conftest.i >conftest2.i 6986: ${lt_DD:=$DD} 6987if test -z "$lt_DD"; then 6988 ac_path_lt_DD_found=false 6989 # Loop through the user's path and test for each of PROGNAME-LIST 6990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6991for as_dir in $PATH 6992do 6993 IFS=$as_save_IFS 6994 test -z "$as_dir" && as_dir=. 6995 for ac_prog in dd; do 6996 for ac_exec_ext in '' $ac_executable_extensions; do 6997 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6998 as_fn_executable_p "$ac_path_lt_DD" || continue 6999if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7000 cmp -s conftest.i conftest.out \ 7001 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7002fi 7003 $ac_path_lt_DD_found && break 3 7004 done 7005 done 7006 done 7007IFS=$as_save_IFS 7008 if test -z "$ac_cv_path_lt_DD"; then 7009 : 7010 fi 7011else 7012 ac_cv_path_lt_DD=$lt_DD 7013fi 7014 7015rm -f conftest.i conftest2.i conftest.out 7016fi 7017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7018$as_echo "$ac_cv_path_lt_DD" >&6; } 7019 7020 7021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7022$as_echo_n "checking how to truncate binary pipes... " >&6; } 7023if ${lt_cv_truncate_bin+:} false; then : 7024 $as_echo_n "(cached) " >&6 7025else 7026 printf 0123456789abcdef0123456789abcdef >conftest.i 7027cat conftest.i conftest.i >conftest2.i 7028lt_cv_truncate_bin= 7029if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7030 cmp -s conftest.i conftest.out \ 7031 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7032fi 7033rm -f conftest.i conftest2.i conftest.out 7034test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7035fi 7036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7037$as_echo "$lt_cv_truncate_bin" >&6; } 7038 7039 7040 7041 7042 7043 7044 7045# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7046func_cc_basename () 7047{ 7048 for cc_temp in $*""; do 7049 case $cc_temp in 7050 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7051 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7052 \-*) ;; 7053 *) break;; 7054 esac 7055 done 7056 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7057} 7058 7059# Check whether --enable-libtool-lock was given. 7060if test "${enable_libtool_lock+set}" = set; then : 7061 enableval=$enable_libtool_lock; 7062fi 7063 7064test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7065 7066# Some flags need to be propagated to the compiler or linker for good 7067# libtool support. 7068case $host in 7069ia64-*-hpux*) 7070 # Find out what ABI is being produced by ac_compile, and set mode 7071 # options accordingly. 7072 echo 'int i;' > conftest.$ac_ext 7073 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7074 (eval $ac_compile) 2>&5 7075 ac_status=$? 7076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7077 test $ac_status = 0; }; then 7078 case `/usr/bin/file conftest.$ac_objext` in 7079 *ELF-32*) 7080 HPUX_IA64_MODE=32 7081 ;; 7082 *ELF-64*) 7083 HPUX_IA64_MODE=64 7084 ;; 7085 esac 7086 fi 7087 rm -rf conftest* 7088 ;; 7089*-*-irix6*) 7090 # Find out what ABI is being produced by ac_compile, and set linker 7091 # options accordingly. 7092 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7093 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7094 (eval $ac_compile) 2>&5 7095 ac_status=$? 7096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7097 test $ac_status = 0; }; then 7098 if test yes = "$lt_cv_prog_gnu_ld"; then 7099 case `/usr/bin/file conftest.$ac_objext` in 7100 *32-bit*) 7101 LD="${LD-ld} -melf32bsmip" 7102 ;; 7103 *N32*) 7104 LD="${LD-ld} -melf32bmipn32" 7105 ;; 7106 *64-bit*) 7107 LD="${LD-ld} -melf64bmip" 7108 ;; 7109 esac 7110 else 7111 case `/usr/bin/file conftest.$ac_objext` in 7112 *32-bit*) 7113 LD="${LD-ld} -32" 7114 ;; 7115 *N32*) 7116 LD="${LD-ld} -n32" 7117 ;; 7118 *64-bit*) 7119 LD="${LD-ld} -64" 7120 ;; 7121 esac 7122 fi 7123 fi 7124 rm -rf conftest* 7125 ;; 7126 7127mips64*-*linux*) 7128 # Find out what ABI is being produced by ac_compile, and set linker 7129 # options accordingly. 7130 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7132 (eval $ac_compile) 2>&5 7133 ac_status=$? 7134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7135 test $ac_status = 0; }; then 7136 emul=elf 7137 case `/usr/bin/file conftest.$ac_objext` in 7138 *32-bit*) 7139 emul="${emul}32" 7140 ;; 7141 *64-bit*) 7142 emul="${emul}64" 7143 ;; 7144 esac 7145 case `/usr/bin/file conftest.$ac_objext` in 7146 *MSB*) 7147 emul="${emul}btsmip" 7148 ;; 7149 *LSB*) 7150 emul="${emul}ltsmip" 7151 ;; 7152 esac 7153 case `/usr/bin/file conftest.$ac_objext` in 7154 *N32*) 7155 emul="${emul}n32" 7156 ;; 7157 esac 7158 LD="${LD-ld} -m $emul" 7159 fi 7160 rm -rf conftest* 7161 ;; 7162 7163x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7164s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7165 # Find out what ABI is being produced by ac_compile, and set linker 7166 # options accordingly. Note that the listed cases only cover the 7167 # situations where additional linker options are needed (such as when 7168 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7169 # vice versa); the common cases where no linker options are needed do 7170 # not appear in the list. 7171 echo 'int i;' > conftest.$ac_ext 7172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7173 (eval $ac_compile) 2>&5 7174 ac_status=$? 7175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7176 test $ac_status = 0; }; then 7177 case `/usr/bin/file conftest.o` in 7178 *32-bit*) 7179 case $host in 7180 x86_64-*kfreebsd*-gnu) 7181 LD="${LD-ld} -m elf_i386_fbsd" 7182 ;; 7183 x86_64-*linux*) 7184 case `/usr/bin/file conftest.o` in 7185 *x86-64*) 7186 LD="${LD-ld} -m elf32_x86_64" 7187 ;; 7188 *) 7189 LD="${LD-ld} -m elf_i386" 7190 ;; 7191 esac 7192 ;; 7193 powerpc64le-*linux*) 7194 LD="${LD-ld} -m elf32lppclinux" 7195 ;; 7196 powerpc64-*linux*) 7197 LD="${LD-ld} -m elf32ppclinux" 7198 ;; 7199 s390x-*linux*) 7200 LD="${LD-ld} -m elf_s390" 7201 ;; 7202 sparc64-*linux*) 7203 LD="${LD-ld} -m elf32_sparc" 7204 ;; 7205 esac 7206 ;; 7207 *64-bit*) 7208 case $host in 7209 x86_64-*kfreebsd*-gnu) 7210 LD="${LD-ld} -m elf_x86_64_fbsd" 7211 ;; 7212 x86_64-*linux*) 7213 LD="${LD-ld} -m elf_x86_64" 7214 ;; 7215 powerpcle-*linux*) 7216 LD="${LD-ld} -m elf64lppc" 7217 ;; 7218 powerpc-*linux*) 7219 LD="${LD-ld} -m elf64ppc" 7220 ;; 7221 s390*-*linux*|s390*-*tpf*) 7222 LD="${LD-ld} -m elf64_s390" 7223 ;; 7224 sparc*-*linux*) 7225 LD="${LD-ld} -m elf64_sparc" 7226 ;; 7227 esac 7228 ;; 7229 esac 7230 fi 7231 rm -rf conftest* 7232 ;; 7233 7234*-*-sco3.2v5*) 7235 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7236 SAVE_CFLAGS=$CFLAGS 7237 CFLAGS="$CFLAGS -belf" 7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7239$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7240if ${lt_cv_cc_needs_belf+:} false; then : 7241 $as_echo_n "(cached) " >&6 7242else 7243 ac_ext=c 7244ac_cpp='$CPP $CPPFLAGS' 7245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7247ac_compiler_gnu=$ac_cv_c_compiler_gnu 7248 7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7250/* end confdefs.h. */ 7251 7252int 7253main () 7254{ 7255 7256 ; 7257 return 0; 7258} 7259_ACEOF 7260if ac_fn_c_try_link "$LINENO"; then : 7261 lt_cv_cc_needs_belf=yes 7262else 7263 lt_cv_cc_needs_belf=no 7264fi 7265rm -f core conftest.err conftest.$ac_objext \ 7266 conftest$ac_exeext conftest.$ac_ext 7267 ac_ext=c 7268ac_cpp='$CPP $CPPFLAGS' 7269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7271ac_compiler_gnu=$ac_cv_c_compiler_gnu 7272 7273fi 7274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7275$as_echo "$lt_cv_cc_needs_belf" >&6; } 7276 if test yes != "$lt_cv_cc_needs_belf"; then 7277 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7278 CFLAGS=$SAVE_CFLAGS 7279 fi 7280 ;; 7281*-*solaris*) 7282 # Find out what ABI is being produced by ac_compile, and set linker 7283 # options accordingly. 7284 echo 'int i;' > conftest.$ac_ext 7285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7286 (eval $ac_compile) 2>&5 7287 ac_status=$? 7288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7289 test $ac_status = 0; }; then 7290 case `/usr/bin/file conftest.o` in 7291 *64-bit*) 7292 case $lt_cv_prog_gnu_ld in 7293 yes*) 7294 case $host in 7295 i?86-*-solaris*|x86_64-*-solaris*) 7296 LD="${LD-ld} -m elf_x86_64" 7297 ;; 7298 sparc*-*-solaris*) 7299 LD="${LD-ld} -m elf64_sparc" 7300 ;; 7301 esac 7302 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7303 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7304 LD=${LD-ld}_sol2 7305 fi 7306 ;; 7307 *) 7308 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7309 LD="${LD-ld} -64" 7310 fi 7311 ;; 7312 esac 7313 ;; 7314 esac 7315 fi 7316 rm -rf conftest* 7317 ;; 7318esac 7319 7320need_locks=$enable_libtool_lock 7321 7322if test -n "$ac_tool_prefix"; then 7323 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7324set dummy ${ac_tool_prefix}mt; ac_word=$2 7325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7326$as_echo_n "checking for $ac_word... " >&6; } 7327if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7328 $as_echo_n "(cached) " >&6 7329else 7330 if test -n "$MANIFEST_TOOL"; then 7331 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7332else 7333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7334for as_dir in $PATH 7335do 7336 IFS=$as_save_IFS 7337 test -z "$as_dir" && as_dir=. 7338 for ac_exec_ext in '' $ac_executable_extensions; do 7339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7340 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7342 break 2 7343 fi 7344done 7345 done 7346IFS=$as_save_IFS 7347 7348fi 7349fi 7350MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7351if test -n "$MANIFEST_TOOL"; then 7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7353$as_echo "$MANIFEST_TOOL" >&6; } 7354else 7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7356$as_echo "no" >&6; } 7357fi 7358 7359 7360fi 7361if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7362 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7363 # Extract the first word of "mt", so it can be a program name with args. 7364set dummy mt; ac_word=$2 7365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7366$as_echo_n "checking for $ac_word... " >&6; } 7367if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7368 $as_echo_n "(cached) " >&6 7369else 7370 if test -n "$ac_ct_MANIFEST_TOOL"; then 7371 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7372else 7373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7374for as_dir in $PATH 7375do 7376 IFS=$as_save_IFS 7377 test -z "$as_dir" && as_dir=. 7378 for ac_exec_ext in '' $ac_executable_extensions; do 7379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7380 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7382 break 2 7383 fi 7384done 7385 done 7386IFS=$as_save_IFS 7387 7388fi 7389fi 7390ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7391if test -n "$ac_ct_MANIFEST_TOOL"; then 7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7393$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7394else 7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7396$as_echo "no" >&6; } 7397fi 7398 7399 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7400 MANIFEST_TOOL=":" 7401 else 7402 case $cross_compiling:$ac_tool_warned in 7403yes:) 7404{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7405$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7406ac_tool_warned=yes ;; 7407esac 7408 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7409 fi 7410else 7411 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7412fi 7413 7414test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7416$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7417if ${lt_cv_path_mainfest_tool+:} false; then : 7418 $as_echo_n "(cached) " >&6 7419else 7420 lt_cv_path_mainfest_tool=no 7421 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7422 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7423 cat conftest.err >&5 7424 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7425 lt_cv_path_mainfest_tool=yes 7426 fi 7427 rm -f conftest* 7428fi 7429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7430$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7431if test yes != "$lt_cv_path_mainfest_tool"; then 7432 MANIFEST_TOOL=: 7433fi 7434 7435 7436 7437 7438 7439 7440 case $host_os in 7441 rhapsody* | darwin*) 7442 if test -n "$ac_tool_prefix"; then 7443 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7444set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7446$as_echo_n "checking for $ac_word... " >&6; } 7447if ${ac_cv_prog_DSYMUTIL+:} false; then : 7448 $as_echo_n "(cached) " >&6 7449else 7450 if test -n "$DSYMUTIL"; then 7451 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7452else 7453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7454for as_dir in $PATH 7455do 7456 IFS=$as_save_IFS 7457 test -z "$as_dir" && as_dir=. 7458 for ac_exec_ext in '' $ac_executable_extensions; do 7459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7460 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7462 break 2 7463 fi 7464done 7465 done 7466IFS=$as_save_IFS 7467 7468fi 7469fi 7470DSYMUTIL=$ac_cv_prog_DSYMUTIL 7471if test -n "$DSYMUTIL"; then 7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7473$as_echo "$DSYMUTIL" >&6; } 7474else 7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7476$as_echo "no" >&6; } 7477fi 7478 7479 7480fi 7481if test -z "$ac_cv_prog_DSYMUTIL"; then 7482 ac_ct_DSYMUTIL=$DSYMUTIL 7483 # Extract the first word of "dsymutil", so it can be a program name with args. 7484set dummy dsymutil; ac_word=$2 7485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7486$as_echo_n "checking for $ac_word... " >&6; } 7487if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7488 $as_echo_n "(cached) " >&6 7489else 7490 if test -n "$ac_ct_DSYMUTIL"; then 7491 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7492else 7493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7494for as_dir in $PATH 7495do 7496 IFS=$as_save_IFS 7497 test -z "$as_dir" && as_dir=. 7498 for ac_exec_ext in '' $ac_executable_extensions; do 7499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7500 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7502 break 2 7503 fi 7504done 7505 done 7506IFS=$as_save_IFS 7507 7508fi 7509fi 7510ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7511if test -n "$ac_ct_DSYMUTIL"; then 7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7513$as_echo "$ac_ct_DSYMUTIL" >&6; } 7514else 7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7516$as_echo "no" >&6; } 7517fi 7518 7519 if test "x$ac_ct_DSYMUTIL" = x; then 7520 DSYMUTIL=":" 7521 else 7522 case $cross_compiling:$ac_tool_warned in 7523yes:) 7524{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7525$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7526ac_tool_warned=yes ;; 7527esac 7528 DSYMUTIL=$ac_ct_DSYMUTIL 7529 fi 7530else 7531 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7532fi 7533 7534 if test -n "$ac_tool_prefix"; then 7535 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7536set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7538$as_echo_n "checking for $ac_word... " >&6; } 7539if ${ac_cv_prog_NMEDIT+:} false; then : 7540 $as_echo_n "(cached) " >&6 7541else 7542 if test -n "$NMEDIT"; then 7543 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7544else 7545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7546for as_dir in $PATH 7547do 7548 IFS=$as_save_IFS 7549 test -z "$as_dir" && as_dir=. 7550 for ac_exec_ext in '' $ac_executable_extensions; do 7551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7552 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7554 break 2 7555 fi 7556done 7557 done 7558IFS=$as_save_IFS 7559 7560fi 7561fi 7562NMEDIT=$ac_cv_prog_NMEDIT 7563if test -n "$NMEDIT"; then 7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7565$as_echo "$NMEDIT" >&6; } 7566else 7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7568$as_echo "no" >&6; } 7569fi 7570 7571 7572fi 7573if test -z "$ac_cv_prog_NMEDIT"; then 7574 ac_ct_NMEDIT=$NMEDIT 7575 # Extract the first word of "nmedit", so it can be a program name with args. 7576set dummy nmedit; ac_word=$2 7577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7578$as_echo_n "checking for $ac_word... " >&6; } 7579if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7580 $as_echo_n "(cached) " >&6 7581else 7582 if test -n "$ac_ct_NMEDIT"; then 7583 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7584else 7585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7586for as_dir in $PATH 7587do 7588 IFS=$as_save_IFS 7589 test -z "$as_dir" && as_dir=. 7590 for ac_exec_ext in '' $ac_executable_extensions; do 7591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7592 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7594 break 2 7595 fi 7596done 7597 done 7598IFS=$as_save_IFS 7599 7600fi 7601fi 7602ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7603if test -n "$ac_ct_NMEDIT"; then 7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7605$as_echo "$ac_ct_NMEDIT" >&6; } 7606else 7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7608$as_echo "no" >&6; } 7609fi 7610 7611 if test "x$ac_ct_NMEDIT" = x; then 7612 NMEDIT=":" 7613 else 7614 case $cross_compiling:$ac_tool_warned in 7615yes:) 7616{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7617$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7618ac_tool_warned=yes ;; 7619esac 7620 NMEDIT=$ac_ct_NMEDIT 7621 fi 7622else 7623 NMEDIT="$ac_cv_prog_NMEDIT" 7624fi 7625 7626 if test -n "$ac_tool_prefix"; then 7627 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7628set dummy ${ac_tool_prefix}lipo; ac_word=$2 7629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7630$as_echo_n "checking for $ac_word... " >&6; } 7631if ${ac_cv_prog_LIPO+:} false; then : 7632 $as_echo_n "(cached) " >&6 7633else 7634 if test -n "$LIPO"; then 7635 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7636else 7637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7638for as_dir in $PATH 7639do 7640 IFS=$as_save_IFS 7641 test -z "$as_dir" && as_dir=. 7642 for ac_exec_ext in '' $ac_executable_extensions; do 7643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7644 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7646 break 2 7647 fi 7648done 7649 done 7650IFS=$as_save_IFS 7651 7652fi 7653fi 7654LIPO=$ac_cv_prog_LIPO 7655if test -n "$LIPO"; then 7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7657$as_echo "$LIPO" >&6; } 7658else 7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7660$as_echo "no" >&6; } 7661fi 7662 7663 7664fi 7665if test -z "$ac_cv_prog_LIPO"; then 7666 ac_ct_LIPO=$LIPO 7667 # Extract the first word of "lipo", so it can be a program name with args. 7668set dummy lipo; ac_word=$2 7669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7670$as_echo_n "checking for $ac_word... " >&6; } 7671if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7672 $as_echo_n "(cached) " >&6 7673else 7674 if test -n "$ac_ct_LIPO"; then 7675 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7676else 7677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7678for as_dir in $PATH 7679do 7680 IFS=$as_save_IFS 7681 test -z "$as_dir" && as_dir=. 7682 for ac_exec_ext in '' $ac_executable_extensions; do 7683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7684 ac_cv_prog_ac_ct_LIPO="lipo" 7685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7686 break 2 7687 fi 7688done 7689 done 7690IFS=$as_save_IFS 7691 7692fi 7693fi 7694ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7695if test -n "$ac_ct_LIPO"; then 7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7697$as_echo "$ac_ct_LIPO" >&6; } 7698else 7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7700$as_echo "no" >&6; } 7701fi 7702 7703 if test "x$ac_ct_LIPO" = x; then 7704 LIPO=":" 7705 else 7706 case $cross_compiling:$ac_tool_warned in 7707yes:) 7708{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7709$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7710ac_tool_warned=yes ;; 7711esac 7712 LIPO=$ac_ct_LIPO 7713 fi 7714else 7715 LIPO="$ac_cv_prog_LIPO" 7716fi 7717 7718 if test -n "$ac_tool_prefix"; then 7719 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7720set dummy ${ac_tool_prefix}otool; ac_word=$2 7721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7722$as_echo_n "checking for $ac_word... " >&6; } 7723if ${ac_cv_prog_OTOOL+:} false; then : 7724 $as_echo_n "(cached) " >&6 7725else 7726 if test -n "$OTOOL"; then 7727 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7728else 7729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7730for as_dir in $PATH 7731do 7732 IFS=$as_save_IFS 7733 test -z "$as_dir" && as_dir=. 7734 for ac_exec_ext in '' $ac_executable_extensions; do 7735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7736 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7738 break 2 7739 fi 7740done 7741 done 7742IFS=$as_save_IFS 7743 7744fi 7745fi 7746OTOOL=$ac_cv_prog_OTOOL 7747if test -n "$OTOOL"; then 7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7749$as_echo "$OTOOL" >&6; } 7750else 7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7752$as_echo "no" >&6; } 7753fi 7754 7755 7756fi 7757if test -z "$ac_cv_prog_OTOOL"; then 7758 ac_ct_OTOOL=$OTOOL 7759 # Extract the first word of "otool", so it can be a program name with args. 7760set dummy otool; ac_word=$2 7761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7762$as_echo_n "checking for $ac_word... " >&6; } 7763if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7764 $as_echo_n "(cached) " >&6 7765else 7766 if test -n "$ac_ct_OTOOL"; then 7767 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7768else 7769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7770for as_dir in $PATH 7771do 7772 IFS=$as_save_IFS 7773 test -z "$as_dir" && as_dir=. 7774 for ac_exec_ext in '' $ac_executable_extensions; do 7775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7776 ac_cv_prog_ac_ct_OTOOL="otool" 7777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7778 break 2 7779 fi 7780done 7781 done 7782IFS=$as_save_IFS 7783 7784fi 7785fi 7786ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7787if test -n "$ac_ct_OTOOL"; then 7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7789$as_echo "$ac_ct_OTOOL" >&6; } 7790else 7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7792$as_echo "no" >&6; } 7793fi 7794 7795 if test "x$ac_ct_OTOOL" = x; then 7796 OTOOL=":" 7797 else 7798 case $cross_compiling:$ac_tool_warned in 7799yes:) 7800{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7801$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7802ac_tool_warned=yes ;; 7803esac 7804 OTOOL=$ac_ct_OTOOL 7805 fi 7806else 7807 OTOOL="$ac_cv_prog_OTOOL" 7808fi 7809 7810 if test -n "$ac_tool_prefix"; then 7811 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7812set dummy ${ac_tool_prefix}otool64; ac_word=$2 7813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7814$as_echo_n "checking for $ac_word... " >&6; } 7815if ${ac_cv_prog_OTOOL64+:} false; then : 7816 $as_echo_n "(cached) " >&6 7817else 7818 if test -n "$OTOOL64"; then 7819 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7820else 7821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7822for as_dir in $PATH 7823do 7824 IFS=$as_save_IFS 7825 test -z "$as_dir" && as_dir=. 7826 for ac_exec_ext in '' $ac_executable_extensions; do 7827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7828 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7830 break 2 7831 fi 7832done 7833 done 7834IFS=$as_save_IFS 7835 7836fi 7837fi 7838OTOOL64=$ac_cv_prog_OTOOL64 7839if test -n "$OTOOL64"; then 7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7841$as_echo "$OTOOL64" >&6; } 7842else 7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7844$as_echo "no" >&6; } 7845fi 7846 7847 7848fi 7849if test -z "$ac_cv_prog_OTOOL64"; then 7850 ac_ct_OTOOL64=$OTOOL64 7851 # Extract the first word of "otool64", so it can be a program name with args. 7852set dummy otool64; ac_word=$2 7853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7854$as_echo_n "checking for $ac_word... " >&6; } 7855if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7856 $as_echo_n "(cached) " >&6 7857else 7858 if test -n "$ac_ct_OTOOL64"; then 7859 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7860else 7861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7862for as_dir in $PATH 7863do 7864 IFS=$as_save_IFS 7865 test -z "$as_dir" && as_dir=. 7866 for ac_exec_ext in '' $ac_executable_extensions; do 7867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7868 ac_cv_prog_ac_ct_OTOOL64="otool64" 7869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7870 break 2 7871 fi 7872done 7873 done 7874IFS=$as_save_IFS 7875 7876fi 7877fi 7878ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7879if test -n "$ac_ct_OTOOL64"; then 7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7881$as_echo "$ac_ct_OTOOL64" >&6; } 7882else 7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7884$as_echo "no" >&6; } 7885fi 7886 7887 if test "x$ac_ct_OTOOL64" = x; then 7888 OTOOL64=":" 7889 else 7890 case $cross_compiling:$ac_tool_warned in 7891yes:) 7892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7894ac_tool_warned=yes ;; 7895esac 7896 OTOOL64=$ac_ct_OTOOL64 7897 fi 7898else 7899 OTOOL64="$ac_cv_prog_OTOOL64" 7900fi 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7929$as_echo_n "checking for -single_module linker flag... " >&6; } 7930if ${lt_cv_apple_cc_single_mod+:} false; then : 7931 $as_echo_n "(cached) " >&6 7932else 7933 lt_cv_apple_cc_single_mod=no 7934 if test -z "$LT_MULTI_MODULE"; then 7935 # By default we will add the -single_module flag. You can override 7936 # by either setting the environment variable LT_MULTI_MODULE 7937 # non-empty at configure time, or by adding -multi_module to the 7938 # link flags. 7939 rm -rf libconftest.dylib* 7940 echo "int foo(void){return 1;}" > conftest.c 7941 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7942-dynamiclib -Wl,-single_module conftest.c" >&5 7943 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7944 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7945 _lt_result=$? 7946 # If there is a non-empty error log, and "single_module" 7947 # appears in it, assume the flag caused a linker warning 7948 if test -s conftest.err && $GREP single_module conftest.err; then 7949 cat conftest.err >&5 7950 # Otherwise, if the output was created with a 0 exit code from 7951 # the compiler, it worked. 7952 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7953 lt_cv_apple_cc_single_mod=yes 7954 else 7955 cat conftest.err >&5 7956 fi 7957 rm -rf libconftest.dylib* 7958 rm -f conftest.* 7959 fi 7960fi 7961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7962$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7963 7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7965$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7966if ${lt_cv_ld_exported_symbols_list+:} false; then : 7967 $as_echo_n "(cached) " >&6 7968else 7969 lt_cv_ld_exported_symbols_list=no 7970 save_LDFLAGS=$LDFLAGS 7971 echo "_main" > conftest.sym 7972 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7974/* end confdefs.h. */ 7975 7976int 7977main () 7978{ 7979 7980 ; 7981 return 0; 7982} 7983_ACEOF 7984if ac_fn_c_try_link "$LINENO"; then : 7985 lt_cv_ld_exported_symbols_list=yes 7986else 7987 lt_cv_ld_exported_symbols_list=no 7988fi 7989rm -f core conftest.err conftest.$ac_objext \ 7990 conftest$ac_exeext conftest.$ac_ext 7991 LDFLAGS=$save_LDFLAGS 7992 7993fi 7994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7995$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7996 7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7998$as_echo_n "checking for -force_load linker flag... " >&6; } 7999if ${lt_cv_ld_force_load+:} false; then : 8000 $as_echo_n "(cached) " >&6 8001else 8002 lt_cv_ld_force_load=no 8003 cat > conftest.c << _LT_EOF 8004int forced_loaded() { return 2;} 8005_LT_EOF 8006 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8007 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8008 echo "$AR cru libconftest.a conftest.o" >&5 8009 $AR cru libconftest.a conftest.o 2>&5 8010 echo "$RANLIB libconftest.a" >&5 8011 $RANLIB libconftest.a 2>&5 8012 cat > conftest.c << _LT_EOF 8013int main() { return 0;} 8014_LT_EOF 8015 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8016 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8017 _lt_result=$? 8018 if test -s conftest.err && $GREP force_load conftest.err; then 8019 cat conftest.err >&5 8020 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8021 lt_cv_ld_force_load=yes 8022 else 8023 cat conftest.err >&5 8024 fi 8025 rm -f conftest.err libconftest.a conftest conftest.c 8026 rm -rf conftest.dSYM 8027 8028fi 8029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8030$as_echo "$lt_cv_ld_force_load" >&6; } 8031 case $host_os in 8032 rhapsody* | darwin1.[012]) 8033 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8034 darwin1.*) 8035 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8036 darwin*) # darwin 5.x on 8037 # if running on 10.5 or later, the deployment target defaults 8038 # to the OS version, if on x86, and 10.4, the deployment 8039 # target defaults to 10.4. Don't you love it? 8040 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8041 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8042 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8043 10.[012][,.]*) 8044 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8045 10.*) 8046 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8047 esac 8048 ;; 8049 esac 8050 if test yes = "$lt_cv_apple_cc_single_mod"; then 8051 _lt_dar_single_mod='$single_module' 8052 fi 8053 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8054 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8055 else 8056 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8057 fi 8058 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8059 _lt_dsymutil='~$DSYMUTIL $lib || :' 8060 else 8061 _lt_dsymutil= 8062 fi 8063 ;; 8064 esac 8065 8066# func_munge_path_list VARIABLE PATH 8067# ----------------------------------- 8068# VARIABLE is name of variable containing _space_ separated list of 8069# directories to be munged by the contents of PATH, which is string 8070# having a format: 8071# "DIR[:DIR]:" 8072# string "DIR[ DIR]" will be prepended to VARIABLE 8073# ":DIR[:DIR]" 8074# string "DIR[ DIR]" will be appended to VARIABLE 8075# "DIRP[:DIRP]::[DIRA:]DIRA" 8076# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8077# "DIRA[ DIRA]" will be appended to VARIABLE 8078# "DIR[:DIR]" 8079# VARIABLE will be replaced by "DIR[ DIR]" 8080func_munge_path_list () 8081{ 8082 case x$2 in 8083 x) 8084 ;; 8085 *:) 8086 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \S|@1\" 8087 ;; 8088 x:*) 8089 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8090 ;; 8091 *::*) 8092 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8093 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8094 ;; 8095 *) 8096 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8097 ;; 8098 esac 8099} 8100 8101ac_ext=c 8102ac_cpp='$CPP $CPPFLAGS' 8103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8105ac_compiler_gnu=$ac_cv_c_compiler_gnu 8106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 8107$as_echo_n "checking how to run the C preprocessor... " >&6; } 8108# On Suns, sometimes $CPP names a directory. 8109if test -n "$CPP" && test -d "$CPP"; then 8110 CPP= 8111fi 8112if test -z "$CPP"; then 8113 if ${ac_cv_prog_CPP+:} false; then : 8114 $as_echo_n "(cached) " >&6 8115else 8116 # Double quotes because CPP needs to be expanded 8117 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 8118 do 8119 ac_preproc_ok=false 8120for ac_c_preproc_warn_flag in '' yes 8121do 8122 # Use a header file that comes with gcc, so configuring glibc 8123 # with a fresh cross-compiler works. 8124 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8125 # <limits.h> exists even on freestanding compilers. 8126 # On the NeXT, cc -E runs the code through the compiler's parser, 8127 # not just through cpp. "Syntax error" is here to catch this case. 8128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8129/* end confdefs.h. */ 8130#ifdef __STDC__ 8131# include <limits.h> 8132#else 8133# include <assert.h> 8134#endif 8135 Syntax error 8136_ACEOF 8137if ac_fn_c_try_cpp "$LINENO"; then : 8138 8139else 8140 # Broken: fails on valid input. 8141continue 8142fi 8143rm -f conftest.err conftest.i conftest.$ac_ext 8144 8145 # OK, works on sane cases. Now check whether nonexistent headers 8146 # can be detected and how. 8147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8148/* end confdefs.h. */ 8149#include <ac_nonexistent.h> 8150_ACEOF 8151if ac_fn_c_try_cpp "$LINENO"; then : 8152 # Broken: success on invalid input. 8153continue 8154else 8155 # Passes both tests. 8156ac_preproc_ok=: 8157break 8158fi 8159rm -f conftest.err conftest.i conftest.$ac_ext 8160 8161done 8162# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8163rm -f conftest.i conftest.err conftest.$ac_ext 8164if $ac_preproc_ok; then : 8165 break 8166fi 8167 8168 done 8169 ac_cv_prog_CPP=$CPP 8170 8171fi 8172 CPP=$ac_cv_prog_CPP 8173else 8174 ac_cv_prog_CPP=$CPP 8175fi 8176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 8177$as_echo "$CPP" >&6; } 8178ac_preproc_ok=false 8179for ac_c_preproc_warn_flag in '' yes 8180do 8181 # Use a header file that comes with gcc, so configuring glibc 8182 # with a fresh cross-compiler works. 8183 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8184 # <limits.h> exists even on freestanding compilers. 8185 # On the NeXT, cc -E runs the code through the compiler's parser, 8186 # not just through cpp. "Syntax error" is here to catch this case. 8187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8188/* end confdefs.h. */ 8189#ifdef __STDC__ 8190# include <limits.h> 8191#else 8192# include <assert.h> 8193#endif 8194 Syntax error 8195_ACEOF 8196if ac_fn_c_try_cpp "$LINENO"; then : 8197 8198else 8199 # Broken: fails on valid input. 8200continue 8201fi 8202rm -f conftest.err conftest.i conftest.$ac_ext 8203 8204 # OK, works on sane cases. Now check whether nonexistent headers 8205 # can be detected and how. 8206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8207/* end confdefs.h. */ 8208#include <ac_nonexistent.h> 8209_ACEOF 8210if ac_fn_c_try_cpp "$LINENO"; then : 8211 # Broken: success on invalid input. 8212continue 8213else 8214 # Passes both tests. 8215ac_preproc_ok=: 8216break 8217fi 8218rm -f conftest.err conftest.i conftest.$ac_ext 8219 8220done 8221# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8222rm -f conftest.i conftest.err conftest.$ac_ext 8223if $ac_preproc_ok; then : 8224 8225else 8226 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8227$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8228as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 8229See \`config.log' for more details" "$LINENO" 5; } 8230fi 8231 8232ac_ext=c 8233ac_cpp='$CPP $CPPFLAGS' 8234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8236ac_compiler_gnu=$ac_cv_c_compiler_gnu 8237 8238 8239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8240$as_echo_n "checking for ANSI C header files... " >&6; } 8241if ${ac_cv_header_stdc+:} false; then : 8242 $as_echo_n "(cached) " >&6 8243else 8244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8245/* end confdefs.h. */ 8246#include <stdlib.h> 8247#include <stdarg.h> 8248#include <string.h> 8249#include <float.h> 8250 8251int 8252main () 8253{ 8254 8255 ; 8256 return 0; 8257} 8258_ACEOF 8259if ac_fn_c_try_compile "$LINENO"; then : 8260 ac_cv_header_stdc=yes 8261else 8262 ac_cv_header_stdc=no 8263fi 8264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8265 8266if test $ac_cv_header_stdc = yes; then 8267 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8269/* end confdefs.h. */ 8270#include <string.h> 8271 8272_ACEOF 8273if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8274 $EGREP "memchr" >/dev/null 2>&1; then : 8275 8276else 8277 ac_cv_header_stdc=no 8278fi 8279rm -f conftest* 8280 8281fi 8282 8283if test $ac_cv_header_stdc = yes; then 8284 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8286/* end confdefs.h. */ 8287#include <stdlib.h> 8288 8289_ACEOF 8290if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8291 $EGREP "free" >/dev/null 2>&1; then : 8292 8293else 8294 ac_cv_header_stdc=no 8295fi 8296rm -f conftest* 8297 8298fi 8299 8300if test $ac_cv_header_stdc = yes; then 8301 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8302 if test "$cross_compiling" = yes; then : 8303 : 8304else 8305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8306/* end confdefs.h. */ 8307#include <ctype.h> 8308#include <stdlib.h> 8309#if ((' ' & 0x0FF) == 0x020) 8310# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8311# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8312#else 8313# define ISLOWER(c) \ 8314 (('a' <= (c) && (c) <= 'i') \ 8315 || ('j' <= (c) && (c) <= 'r') \ 8316 || ('s' <= (c) && (c) <= 'z')) 8317# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8318#endif 8319 8320#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8321int 8322main () 8323{ 8324 int i; 8325 for (i = 0; i < 256; i++) 8326 if (XOR (islower (i), ISLOWER (i)) 8327 || toupper (i) != TOUPPER (i)) 8328 return 2; 8329 return 0; 8330} 8331_ACEOF 8332if ac_fn_c_try_run "$LINENO"; then : 8333 8334else 8335 ac_cv_header_stdc=no 8336fi 8337rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8338 conftest.$ac_objext conftest.beam conftest.$ac_ext 8339fi 8340 8341fi 8342fi 8343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8344$as_echo "$ac_cv_header_stdc" >&6; } 8345if test $ac_cv_header_stdc = yes; then 8346 8347$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8348 8349fi 8350 8351# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8352for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8353 inttypes.h stdint.h unistd.h 8354do : 8355 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8356ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8357" 8358if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8359 cat >>confdefs.h <<_ACEOF 8360#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8361_ACEOF 8362 8363fi 8364 8365done 8366 8367 8368for ac_header in dlfcn.h 8369do : 8370 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8371" 8372if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8373 cat >>confdefs.h <<_ACEOF 8374#define HAVE_DLFCN_H 1 8375_ACEOF 8376 8377fi 8378 8379done 8380 8381 8382 8383 8384 8385# Set options 8386enable_win32_dll=yes 8387 8388case $host in 8389*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 8390 if test -n "$ac_tool_prefix"; then 8391 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 8392set dummy ${ac_tool_prefix}as; ac_word=$2 8393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8394$as_echo_n "checking for $ac_word... " >&6; } 8395if ${ac_cv_prog_AS+:} false; then : 8396 $as_echo_n "(cached) " >&6 8397else 8398 if test -n "$AS"; then 8399 ac_cv_prog_AS="$AS" # Let the user override the test. 8400else 8401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8402for as_dir in $PATH 8403do 8404 IFS=$as_save_IFS 8405 test -z "$as_dir" && as_dir=. 8406 for ac_exec_ext in '' $ac_executable_extensions; do 8407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8408 ac_cv_prog_AS="${ac_tool_prefix}as" 8409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8410 break 2 8411 fi 8412done 8413 done 8414IFS=$as_save_IFS 8415 8416fi 8417fi 8418AS=$ac_cv_prog_AS 8419if test -n "$AS"; then 8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8421$as_echo "$AS" >&6; } 8422else 8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8424$as_echo "no" >&6; } 8425fi 8426 8427 8428fi 8429if test -z "$ac_cv_prog_AS"; then 8430 ac_ct_AS=$AS 8431 # Extract the first word of "as", so it can be a program name with args. 8432set dummy as; ac_word=$2 8433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8434$as_echo_n "checking for $ac_word... " >&6; } 8435if ${ac_cv_prog_ac_ct_AS+:} false; then : 8436 $as_echo_n "(cached) " >&6 8437else 8438 if test -n "$ac_ct_AS"; then 8439 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 8440else 8441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8442for as_dir in $PATH 8443do 8444 IFS=$as_save_IFS 8445 test -z "$as_dir" && as_dir=. 8446 for ac_exec_ext in '' $ac_executable_extensions; do 8447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8448 ac_cv_prog_ac_ct_AS="as" 8449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8450 break 2 8451 fi 8452done 8453 done 8454IFS=$as_save_IFS 8455 8456fi 8457fi 8458ac_ct_AS=$ac_cv_prog_ac_ct_AS 8459if test -n "$ac_ct_AS"; then 8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 8461$as_echo "$ac_ct_AS" >&6; } 8462else 8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8464$as_echo "no" >&6; } 8465fi 8466 8467 if test "x$ac_ct_AS" = x; then 8468 AS="false" 8469 else 8470 case $cross_compiling:$ac_tool_warned in 8471yes:) 8472{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8473$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8474ac_tool_warned=yes ;; 8475esac 8476 AS=$ac_ct_AS 8477 fi 8478else 8479 AS="$ac_cv_prog_AS" 8480fi 8481 8482 if test -n "$ac_tool_prefix"; then 8483 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8484set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8486$as_echo_n "checking for $ac_word... " >&6; } 8487if ${ac_cv_prog_DLLTOOL+:} false; then : 8488 $as_echo_n "(cached) " >&6 8489else 8490 if test -n "$DLLTOOL"; then 8491 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8492else 8493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8494for as_dir in $PATH 8495do 8496 IFS=$as_save_IFS 8497 test -z "$as_dir" && as_dir=. 8498 for ac_exec_ext in '' $ac_executable_extensions; do 8499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8500 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8502 break 2 8503 fi 8504done 8505 done 8506IFS=$as_save_IFS 8507 8508fi 8509fi 8510DLLTOOL=$ac_cv_prog_DLLTOOL 8511if test -n "$DLLTOOL"; then 8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8513$as_echo "$DLLTOOL" >&6; } 8514else 8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8516$as_echo "no" >&6; } 8517fi 8518 8519 8520fi 8521if test -z "$ac_cv_prog_DLLTOOL"; then 8522 ac_ct_DLLTOOL=$DLLTOOL 8523 # Extract the first word of "dlltool", so it can be a program name with args. 8524set dummy dlltool; ac_word=$2 8525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8526$as_echo_n "checking for $ac_word... " >&6; } 8527if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8528 $as_echo_n "(cached) " >&6 8529else 8530 if test -n "$ac_ct_DLLTOOL"; then 8531 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8532else 8533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8534for as_dir in $PATH 8535do 8536 IFS=$as_save_IFS 8537 test -z "$as_dir" && as_dir=. 8538 for ac_exec_ext in '' $ac_executable_extensions; do 8539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8540 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8542 break 2 8543 fi 8544done 8545 done 8546IFS=$as_save_IFS 8547 8548fi 8549fi 8550ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8551if test -n "$ac_ct_DLLTOOL"; then 8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8553$as_echo "$ac_ct_DLLTOOL" >&6; } 8554else 8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8556$as_echo "no" >&6; } 8557fi 8558 8559 if test "x$ac_ct_DLLTOOL" = x; then 8560 DLLTOOL="false" 8561 else 8562 case $cross_compiling:$ac_tool_warned in 8563yes:) 8564{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8565$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8566ac_tool_warned=yes ;; 8567esac 8568 DLLTOOL=$ac_ct_DLLTOOL 8569 fi 8570else 8571 DLLTOOL="$ac_cv_prog_DLLTOOL" 8572fi 8573 8574 if test -n "$ac_tool_prefix"; then 8575 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8576set dummy ${ac_tool_prefix}objdump; ac_word=$2 8577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8578$as_echo_n "checking for $ac_word... " >&6; } 8579if ${ac_cv_prog_OBJDUMP+:} false; then : 8580 $as_echo_n "(cached) " >&6 8581else 8582 if test -n "$OBJDUMP"; then 8583 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8584else 8585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8586for as_dir in $PATH 8587do 8588 IFS=$as_save_IFS 8589 test -z "$as_dir" && as_dir=. 8590 for ac_exec_ext in '' $ac_executable_extensions; do 8591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8592 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8594 break 2 8595 fi 8596done 8597 done 8598IFS=$as_save_IFS 8599 8600fi 8601fi 8602OBJDUMP=$ac_cv_prog_OBJDUMP 8603if test -n "$OBJDUMP"; then 8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8605$as_echo "$OBJDUMP" >&6; } 8606else 8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8608$as_echo "no" >&6; } 8609fi 8610 8611 8612fi 8613if test -z "$ac_cv_prog_OBJDUMP"; then 8614 ac_ct_OBJDUMP=$OBJDUMP 8615 # Extract the first word of "objdump", so it can be a program name with args. 8616set dummy objdump; ac_word=$2 8617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8618$as_echo_n "checking for $ac_word... " >&6; } 8619if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8620 $as_echo_n "(cached) " >&6 8621else 8622 if test -n "$ac_ct_OBJDUMP"; then 8623 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8624else 8625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8626for as_dir in $PATH 8627do 8628 IFS=$as_save_IFS 8629 test -z "$as_dir" && as_dir=. 8630 for ac_exec_ext in '' $ac_executable_extensions; do 8631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8632 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8634 break 2 8635 fi 8636done 8637 done 8638IFS=$as_save_IFS 8639 8640fi 8641fi 8642ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8643if test -n "$ac_ct_OBJDUMP"; then 8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8645$as_echo "$ac_ct_OBJDUMP" >&6; } 8646else 8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8648$as_echo "no" >&6; } 8649fi 8650 8651 if test "x$ac_ct_OBJDUMP" = x; then 8652 OBJDUMP="false" 8653 else 8654 case $cross_compiling:$ac_tool_warned in 8655yes:) 8656{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8657$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8658ac_tool_warned=yes ;; 8659esac 8660 OBJDUMP=$ac_ct_OBJDUMP 8661 fi 8662else 8663 OBJDUMP="$ac_cv_prog_OBJDUMP" 8664fi 8665 8666 ;; 8667esac 8668 8669test -z "$AS" && AS=as 8670 8671 8672 8673 8674 8675test -z "$DLLTOOL" && DLLTOOL=dlltool 8676 8677 8678 8679 8680 8681test -z "$OBJDUMP" && OBJDUMP=objdump 8682 8683 8684 8685 8686 8687 8688 8689 enable_dlopen=no 8690 8691 8692 8693 # Check whether --enable-shared was given. 8694if test "${enable_shared+set}" = set; then : 8695 enableval=$enable_shared; p=${PACKAGE-default} 8696 case $enableval in 8697 yes) enable_shared=yes ;; 8698 no) enable_shared=no ;; 8699 *) 8700 enable_shared=no 8701 # Look at the argument we got. We use all the common list separators. 8702 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8703 for pkg in $enableval; do 8704 IFS=$lt_save_ifs 8705 if test "X$pkg" = "X$p"; then 8706 enable_shared=yes 8707 fi 8708 done 8709 IFS=$lt_save_ifs 8710 ;; 8711 esac 8712else 8713 enable_shared=yes 8714fi 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 # Check whether --enable-static was given. 8725if test "${enable_static+set}" = set; then : 8726 enableval=$enable_static; p=${PACKAGE-default} 8727 case $enableval in 8728 yes) enable_static=yes ;; 8729 no) enable_static=no ;; 8730 *) 8731 enable_static=no 8732 # Look at the argument we got. We use all the common list separators. 8733 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8734 for pkg in $enableval; do 8735 IFS=$lt_save_ifs 8736 if test "X$pkg" = "X$p"; then 8737 enable_static=yes 8738 fi 8739 done 8740 IFS=$lt_save_ifs 8741 ;; 8742 esac 8743else 8744 enable_static=yes 8745fi 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756# Check whether --with-pic was given. 8757if test "${with_pic+set}" = set; then : 8758 withval=$with_pic; lt_p=${PACKAGE-default} 8759 case $withval in 8760 yes|no) pic_mode=$withval ;; 8761 *) 8762 pic_mode=default 8763 # Look at the argument we got. We use all the common list separators. 8764 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8765 for lt_pkg in $withval; do 8766 IFS=$lt_save_ifs 8767 if test "X$lt_pkg" = "X$lt_p"; then 8768 pic_mode=yes 8769 fi 8770 done 8771 IFS=$lt_save_ifs 8772 ;; 8773 esac 8774else 8775 pic_mode=default 8776fi 8777 8778 8779 8780 8781 8782 8783 8784 8785 # Check whether --enable-fast-install was given. 8786if test "${enable_fast_install+set}" = set; then : 8787 enableval=$enable_fast_install; p=${PACKAGE-default} 8788 case $enableval in 8789 yes) enable_fast_install=yes ;; 8790 no) enable_fast_install=no ;; 8791 *) 8792 enable_fast_install=no 8793 # Look at the argument we got. We use all the common list separators. 8794 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8795 for pkg in $enableval; do 8796 IFS=$lt_save_ifs 8797 if test "X$pkg" = "X$p"; then 8798 enable_fast_install=yes 8799 fi 8800 done 8801 IFS=$lt_save_ifs 8802 ;; 8803 esac 8804else 8805 enable_fast_install=yes 8806fi 8807 8808 8809 8810 8811 8812 8813 8814 8815 shared_archive_member_spec= 8816case $host,$enable_shared in 8817power*-*-aix[5-9]*,yes) 8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8819$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8820 8821# Check whether --with-aix-soname was given. 8822if test "${with_aix_soname+set}" = set; then : 8823 withval=$with_aix_soname; case $withval in 8824 aix|svr4|both) 8825 ;; 8826 *) 8827 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8828 ;; 8829 esac 8830 lt_cv_with_aix_soname=$with_aix_soname 8831else 8832 if ${lt_cv_with_aix_soname+:} false; then : 8833 $as_echo_n "(cached) " >&6 8834else 8835 lt_cv_with_aix_soname=aix 8836fi 8837 8838 with_aix_soname=$lt_cv_with_aix_soname 8839fi 8840 8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8842$as_echo "$with_aix_soname" >&6; } 8843 if test aix != "$with_aix_soname"; then 8844 # For the AIX way of multilib, we name the shared archive member 8845 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8846 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8847 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8848 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8849 if test 64 = "${OBJECT_MODE-32}"; then 8850 shared_archive_member_spec=shr_64 8851 else 8852 shared_archive_member_spec=shr 8853 fi 8854 fi 8855 ;; 8856*) 8857 with_aix_soname=aix 8858 ;; 8859esac 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870# This can be used to rebuild libtool when needed 8871LIBTOOL_DEPS=$ltmain 8872 8873# Always use our own libtool. 8874LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905test -z "$LN_S" && LN_S="ln -s" 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920if test -n "${ZSH_VERSION+set}"; then 8921 setopt NO_GLOB_SUBST 8922fi 8923 8924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8925$as_echo_n "checking for objdir... " >&6; } 8926if ${lt_cv_objdir+:} false; then : 8927 $as_echo_n "(cached) " >&6 8928else 8929 rm -f .libs 2>/dev/null 8930mkdir .libs 2>/dev/null 8931if test -d .libs; then 8932 lt_cv_objdir=.libs 8933else 8934 # MS-DOS does not allow filenames that begin with a dot. 8935 lt_cv_objdir=_libs 8936fi 8937rmdir .libs 2>/dev/null 8938fi 8939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8940$as_echo "$lt_cv_objdir" >&6; } 8941objdir=$lt_cv_objdir 8942 8943 8944 8945 8946 8947cat >>confdefs.h <<_ACEOF 8948#define LT_OBJDIR "$lt_cv_objdir/" 8949_ACEOF 8950 8951 8952 8953 8954case $host_os in 8955aix3*) 8956 # AIX sometimes has problems with the GCC collect2 program. For some 8957 # reason, if we set the COLLECT_NAMES environment variable, the problems 8958 # vanish in a puff of smoke. 8959 if test set != "${COLLECT_NAMES+set}"; then 8960 COLLECT_NAMES= 8961 export COLLECT_NAMES 8962 fi 8963 ;; 8964esac 8965 8966# Global variables: 8967ofile=libtool 8968can_build_shared=yes 8969 8970# All known linkers require a '.a' archive for static linking (except MSVC, 8971# which needs '.lib'). 8972libext=a 8973 8974with_gnu_ld=$lt_cv_prog_gnu_ld 8975 8976old_CC=$CC 8977old_CFLAGS=$CFLAGS 8978 8979# Set sane defaults for various variables 8980test -z "$CC" && CC=cc 8981test -z "$LTCC" && LTCC=$CC 8982test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8983test -z "$LD" && LD=ld 8984test -z "$ac_objext" && ac_objext=o 8985 8986func_cc_basename $compiler 8987cc_basename=$func_cc_basename_result 8988 8989 8990# Only perform the check for file, if the check method requires it 8991test -z "$MAGIC_CMD" && MAGIC_CMD=file 8992case $deplibs_check_method in 8993file_magic*) 8994 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8996$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8997if ${lt_cv_path_MAGIC_CMD+:} false; then : 8998 $as_echo_n "(cached) " >&6 8999else 9000 case $MAGIC_CMD in 9001[\\/*] | ?:[\\/]*) 9002 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9003 ;; 9004*) 9005 lt_save_MAGIC_CMD=$MAGIC_CMD 9006 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9007 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9008 for ac_dir in $ac_dummy; do 9009 IFS=$lt_save_ifs 9010 test -z "$ac_dir" && ac_dir=. 9011 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9012 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9013 if test -n "$file_magic_test_file"; then 9014 case $deplibs_check_method in 9015 "file_magic "*) 9016 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9017 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9018 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9019 $EGREP "$file_magic_regex" > /dev/null; then 9020 : 9021 else 9022 cat <<_LT_EOF 1>&2 9023 9024*** Warning: the command libtool uses to detect shared libraries, 9025*** $file_magic_cmd, produces output that libtool cannot recognize. 9026*** The result is that libtool may fail to recognize shared libraries 9027*** as such. This will affect the creation of libtool libraries that 9028*** depend on shared libraries, but programs linked with such libtool 9029*** libraries will work regardless of this problem. Nevertheless, you 9030*** may want to report the problem to your system manager and/or to 9031*** [email protected] 9032 9033_LT_EOF 9034 fi ;; 9035 esac 9036 fi 9037 break 9038 fi 9039 done 9040 IFS=$lt_save_ifs 9041 MAGIC_CMD=$lt_save_MAGIC_CMD 9042 ;; 9043esac 9044fi 9045 9046MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9047if test -n "$MAGIC_CMD"; then 9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9049$as_echo "$MAGIC_CMD" >&6; } 9050else 9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9052$as_echo "no" >&6; } 9053fi 9054 9055 9056 9057 9058 9059if test -z "$lt_cv_path_MAGIC_CMD"; then 9060 if test -n "$ac_tool_prefix"; then 9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9062$as_echo_n "checking for file... " >&6; } 9063if ${lt_cv_path_MAGIC_CMD+:} false; then : 9064 $as_echo_n "(cached) " >&6 9065else 9066 case $MAGIC_CMD in 9067[\\/*] | ?:[\\/]*) 9068 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9069 ;; 9070*) 9071 lt_save_MAGIC_CMD=$MAGIC_CMD 9072 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9073 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9074 for ac_dir in $ac_dummy; do 9075 IFS=$lt_save_ifs 9076 test -z "$ac_dir" && ac_dir=. 9077 if test -f "$ac_dir/file"; then 9078 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9079 if test -n "$file_magic_test_file"; then 9080 case $deplibs_check_method in 9081 "file_magic "*) 9082 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9083 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9084 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9085 $EGREP "$file_magic_regex" > /dev/null; then 9086 : 9087 else 9088 cat <<_LT_EOF 1>&2 9089 9090*** Warning: the command libtool uses to detect shared libraries, 9091*** $file_magic_cmd, produces output that libtool cannot recognize. 9092*** The result is that libtool may fail to recognize shared libraries 9093*** as such. This will affect the creation of libtool libraries that 9094*** depend on shared libraries, but programs linked with such libtool 9095*** libraries will work regardless of this problem. Nevertheless, you 9096*** may want to report the problem to your system manager and/or to 9097*** [email protected] 9098 9099_LT_EOF 9100 fi ;; 9101 esac 9102 fi 9103 break 9104 fi 9105 done 9106 IFS=$lt_save_ifs 9107 MAGIC_CMD=$lt_save_MAGIC_CMD 9108 ;; 9109esac 9110fi 9111 9112MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9113if test -n "$MAGIC_CMD"; then 9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9115$as_echo "$MAGIC_CMD" >&6; } 9116else 9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9118$as_echo "no" >&6; } 9119fi 9120 9121 9122 else 9123 MAGIC_CMD=: 9124 fi 9125fi 9126 9127 fi 9128 ;; 9129esac 9130 9131# Use C for the default configuration in the libtool script 9132 9133lt_save_CC=$CC 9134ac_ext=c 9135ac_cpp='$CPP $CPPFLAGS' 9136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9138ac_compiler_gnu=$ac_cv_c_compiler_gnu 9139 9140 9141# Source file extension for C test sources. 9142ac_ext=c 9143 9144# Object file extension for compiled C test sources. 9145objext=o 9146objext=$objext 9147 9148# Code to be used in simple compile tests 9149lt_simple_compile_test_code="int some_variable = 0;" 9150 9151# Code to be used in simple link tests 9152lt_simple_link_test_code='int main(){return(0);}' 9153 9154 9155 9156 9157 9158 9159 9160# If no C compiler was specified, use CC. 9161LTCC=${LTCC-"$CC"} 9162 9163# If no C compiler flags were specified, use CFLAGS. 9164LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9165 9166# Allow CC to be a program name with arguments. 9167compiler=$CC 9168 9169# Save the default compiler, since it gets overwritten when the other 9170# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9171compiler_DEFAULT=$CC 9172 9173# save warnings/boilerplate of simple test code 9174ac_outfile=conftest.$ac_objext 9175echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9176eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9177_lt_compiler_boilerplate=`cat conftest.err` 9178$RM conftest* 9179 9180ac_outfile=conftest.$ac_objext 9181echo "$lt_simple_link_test_code" >conftest.$ac_ext 9182eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9183_lt_linker_boilerplate=`cat conftest.err` 9184$RM -r conftest* 9185 9186 9187## CAVEAT EMPTOR: 9188## There is no encapsulation within the following macros, do not change 9189## the running order or otherwise move them around unless you know exactly 9190## what you are doing... 9191if test -n "$compiler"; then 9192 9193lt_prog_compiler_no_builtin_flag= 9194 9195if test yes = "$GCC"; then 9196 case $cc_basename in 9197 nvcc*) 9198 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9199 *) 9200 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9201 esac 9202 9203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9204$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9205if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9206 $as_echo_n "(cached) " >&6 9207else 9208 lt_cv_prog_compiler_rtti_exceptions=no 9209 ac_outfile=conftest.$ac_objext 9210 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9211 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9212 # Insert the option either (1) after the last *FLAGS variable, or 9213 # (2) before a word containing "conftest.", or (3) at the end. 9214 # Note that $ac_compile itself does not contain backslashes and begins 9215 # with a dollar sign (not a hyphen), so the echo should work correctly. 9216 # The option is referenced via a variable to avoid confusing sed. 9217 lt_compile=`echo "$ac_compile" | $SED \ 9218 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9219 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9220 -e 's:$: $lt_compiler_flag:'` 9221 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9222 (eval "$lt_compile" 2>conftest.err) 9223 ac_status=$? 9224 cat conftest.err >&5 9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9226 if (exit $ac_status) && test -s "$ac_outfile"; then 9227 # The compiler can only warn and ignore the option if not recognized 9228 # So say no if there are warnings other than the usual output. 9229 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9230 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9231 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9232 lt_cv_prog_compiler_rtti_exceptions=yes 9233 fi 9234 fi 9235 $RM conftest* 9236 9237fi 9238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9239$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9240 9241if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9242 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9243else 9244 : 9245fi 9246 9247fi 9248 9249 9250 9251 9252 9253 9254 lt_prog_compiler_wl= 9255lt_prog_compiler_pic= 9256lt_prog_compiler_static= 9257 9258 9259 if test yes = "$GCC"; then 9260 lt_prog_compiler_wl='-Wl,' 9261 lt_prog_compiler_static='-static' 9262 9263 case $host_os in 9264 aix*) 9265 # All AIX code is PIC. 9266 if test ia64 = "$host_cpu"; then 9267 # AIX 5 now supports IA64 processor 9268 lt_prog_compiler_static='-Bstatic' 9269 fi 9270 lt_prog_compiler_pic='-fPIC' 9271 ;; 9272 9273 amigaos*) 9274 case $host_cpu in 9275 powerpc) 9276 # see comment about AmigaOS4 .so support 9277 lt_prog_compiler_pic='-fPIC' 9278 ;; 9279 m68k) 9280 # FIXME: we need at least 68020 code to build shared libraries, but 9281 # adding the '-m68020' flag to GCC prevents building anything better, 9282 # like '-m68040'. 9283 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9284 ;; 9285 esac 9286 ;; 9287 9288 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9289 # PIC is the default for these OSes. 9290 ;; 9291 9292 mingw* | cygwin* | pw32* | os2* | cegcc*) 9293 # This hack is so that the source file can tell whether it is being 9294 # built for inclusion in a dll (and should export symbols for example). 9295 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9296 # (--disable-auto-import) libraries 9297 lt_prog_compiler_pic='-DDLL_EXPORT' 9298 case $host_os in 9299 os2*) 9300 lt_prog_compiler_static='$wl-static' 9301 ;; 9302 esac 9303 ;; 9304 9305 darwin* | rhapsody*) 9306 # PIC is the default on this platform 9307 # Common symbols not allowed in MH_DYLIB files 9308 lt_prog_compiler_pic='-fno-common' 9309 ;; 9310 9311 haiku*) 9312 # PIC is the default for Haiku. 9313 # The "-static" flag exists, but is broken. 9314 lt_prog_compiler_static= 9315 ;; 9316 9317 hpux*) 9318 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9319 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9320 # sets the default TLS model and affects inlining. 9321 case $host_cpu in 9322 hppa*64*) 9323 # +Z the default 9324 ;; 9325 *) 9326 lt_prog_compiler_pic='-fPIC' 9327 ;; 9328 esac 9329 ;; 9330 9331 interix[3-9]*) 9332 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9333 # Instead, we relocate shared libraries at runtime. 9334 ;; 9335 9336 msdosdjgpp*) 9337 # Just because we use GCC doesn't mean we suddenly get shared libraries 9338 # on systems that don't support them. 9339 lt_prog_compiler_can_build_shared=no 9340 enable_shared=no 9341 ;; 9342 9343 *nto* | *qnx*) 9344 # QNX uses GNU C++, but need to define -shared option too, otherwise 9345 # it will coredump. 9346 lt_prog_compiler_pic='-fPIC -shared' 9347 ;; 9348 9349 sysv4*MP*) 9350 if test -d /usr/nec; then 9351 lt_prog_compiler_pic=-Kconform_pic 9352 fi 9353 ;; 9354 9355 *) 9356 lt_prog_compiler_pic='-fPIC' 9357 ;; 9358 esac 9359 9360 case $cc_basename in 9361 nvcc*) # Cuda Compiler Driver 2.2 9362 lt_prog_compiler_wl='-Xlinker ' 9363 if test -n "$lt_prog_compiler_pic"; then 9364 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9365 fi 9366 ;; 9367 esac 9368 else 9369 # PORTME Check for flag to pass linker flags through the system compiler. 9370 case $host_os in 9371 aix*) 9372 lt_prog_compiler_wl='-Wl,' 9373 if test ia64 = "$host_cpu"; then 9374 # AIX 5 now supports IA64 processor 9375 lt_prog_compiler_static='-Bstatic' 9376 else 9377 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9378 fi 9379 ;; 9380 9381 darwin* | rhapsody*) 9382 # PIC is the default on this platform 9383 # Common symbols not allowed in MH_DYLIB files 9384 lt_prog_compiler_pic='-fno-common' 9385 case $cc_basename in 9386 nagfor*) 9387 # NAG Fortran compiler 9388 lt_prog_compiler_wl='-Wl,-Wl,,' 9389 lt_prog_compiler_pic='-PIC' 9390 lt_prog_compiler_static='-Bstatic' 9391 ;; 9392 esac 9393 ;; 9394 9395 mingw* | cygwin* | pw32* | os2* | cegcc*) 9396 # This hack is so that the source file can tell whether it is being 9397 # built for inclusion in a dll (and should export symbols for example). 9398 lt_prog_compiler_pic='-DDLL_EXPORT' 9399 case $host_os in 9400 os2*) 9401 lt_prog_compiler_static='$wl-static' 9402 ;; 9403 esac 9404 ;; 9405 9406 hpux9* | hpux10* | hpux11*) 9407 lt_prog_compiler_wl='-Wl,' 9408 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9409 # not for PA HP-UX. 9410 case $host_cpu in 9411 hppa*64*|ia64*) 9412 # +Z the default 9413 ;; 9414 *) 9415 lt_prog_compiler_pic='+Z' 9416 ;; 9417 esac 9418 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9419 lt_prog_compiler_static='$wl-a ${wl}archive' 9420 ;; 9421 9422 irix5* | irix6* | nonstopux*) 9423 lt_prog_compiler_wl='-Wl,' 9424 # PIC (with -KPIC) is the default. 9425 lt_prog_compiler_static='-non_shared' 9426 ;; 9427 9428 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9429 case $cc_basename in 9430 # old Intel for x86_64, which still supported -KPIC. 9431 ecc*) 9432 lt_prog_compiler_wl='-Wl,' 9433 lt_prog_compiler_pic='-KPIC' 9434 lt_prog_compiler_static='-static' 9435 ;; 9436 # icc used to be incompatible with GCC. 9437 # ICC 10 doesn't accept -KPIC any more. 9438 icc* | ifort*) 9439 lt_prog_compiler_wl='-Wl,' 9440 lt_prog_compiler_pic='-fPIC' 9441 lt_prog_compiler_static='-static' 9442 ;; 9443 # Lahey Fortran 8.1. 9444 lf95*) 9445 lt_prog_compiler_wl='-Wl,' 9446 lt_prog_compiler_pic='--shared' 9447 lt_prog_compiler_static='--static' 9448 ;; 9449 nagfor*) 9450 # NAG Fortran compiler 9451 lt_prog_compiler_wl='-Wl,-Wl,,' 9452 lt_prog_compiler_pic='-PIC' 9453 lt_prog_compiler_static='-Bstatic' 9454 ;; 9455 tcc*) 9456 # Fabrice Bellard et al's Tiny C Compiler 9457 lt_prog_compiler_wl='-Wl,' 9458 lt_prog_compiler_pic='-fPIC' 9459 lt_prog_compiler_static='-static' 9460 ;; 9461 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9462 # Portland Group compilers (*not* the Pentium gcc compiler, 9463 # which looks to be a dead project) 9464 lt_prog_compiler_wl='-Wl,' 9465 lt_prog_compiler_pic='-fpic' 9466 lt_prog_compiler_static='-Bstatic' 9467 ;; 9468 ccc*) 9469 lt_prog_compiler_wl='-Wl,' 9470 # All Alpha code is PIC. 9471 lt_prog_compiler_static='-non_shared' 9472 ;; 9473 xl* | bgxl* | bgf* | mpixl*) 9474 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9475 lt_prog_compiler_wl='-Wl,' 9476 lt_prog_compiler_pic='-qpic' 9477 lt_prog_compiler_static='-qstaticlink' 9478 ;; 9479 *) 9480 case `$CC -V 2>&1 | sed 5q` in 9481 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9482 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9483 lt_prog_compiler_pic='-KPIC' 9484 lt_prog_compiler_static='-Bstatic' 9485 lt_prog_compiler_wl='' 9486 ;; 9487 *Sun\ F* | *Sun*Fortran*) 9488 lt_prog_compiler_pic='-KPIC' 9489 lt_prog_compiler_static='-Bstatic' 9490 lt_prog_compiler_wl='-Qoption ld ' 9491 ;; 9492 *Sun\ C*) 9493 # Sun C 5.9 9494 lt_prog_compiler_pic='-KPIC' 9495 lt_prog_compiler_static='-Bstatic' 9496 lt_prog_compiler_wl='-Wl,' 9497 ;; 9498 *Intel*\ [CF]*Compiler*) 9499 lt_prog_compiler_wl='-Wl,' 9500 lt_prog_compiler_pic='-fPIC' 9501 lt_prog_compiler_static='-static' 9502 ;; 9503 *Portland\ Group*) 9504 lt_prog_compiler_wl='-Wl,' 9505 lt_prog_compiler_pic='-fpic' 9506 lt_prog_compiler_static='-Bstatic' 9507 ;; 9508 esac 9509 ;; 9510 esac 9511 ;; 9512 9513 newsos6) 9514 lt_prog_compiler_pic='-KPIC' 9515 lt_prog_compiler_static='-Bstatic' 9516 ;; 9517 9518 *nto* | *qnx*) 9519 # QNX uses GNU C++, but need to define -shared option too, otherwise 9520 # it will coredump. 9521 lt_prog_compiler_pic='-fPIC -shared' 9522 ;; 9523 9524 osf3* | osf4* | osf5*) 9525 lt_prog_compiler_wl='-Wl,' 9526 # All OSF/1 code is PIC. 9527 lt_prog_compiler_static='-non_shared' 9528 ;; 9529 9530 rdos*) 9531 lt_prog_compiler_static='-non_shared' 9532 ;; 9533 9534 solaris*) 9535 lt_prog_compiler_pic='-KPIC' 9536 lt_prog_compiler_static='-Bstatic' 9537 case $cc_basename in 9538 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9539 lt_prog_compiler_wl='-Qoption ld ';; 9540 *) 9541 lt_prog_compiler_wl='-Wl,';; 9542 esac 9543 ;; 9544 9545 sunos4*) 9546 lt_prog_compiler_wl='-Qoption ld ' 9547 lt_prog_compiler_pic='-PIC' 9548 lt_prog_compiler_static='-Bstatic' 9549 ;; 9550 9551 sysv4 | sysv4.2uw2* | sysv4.3*) 9552 lt_prog_compiler_wl='-Wl,' 9553 lt_prog_compiler_pic='-KPIC' 9554 lt_prog_compiler_static='-Bstatic' 9555 ;; 9556 9557 sysv4*MP*) 9558 if test -d /usr/nec; then 9559 lt_prog_compiler_pic='-Kconform_pic' 9560 lt_prog_compiler_static='-Bstatic' 9561 fi 9562 ;; 9563 9564 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9565 lt_prog_compiler_wl='-Wl,' 9566 lt_prog_compiler_pic='-KPIC' 9567 lt_prog_compiler_static='-Bstatic' 9568 ;; 9569 9570 unicos*) 9571 lt_prog_compiler_wl='-Wl,' 9572 lt_prog_compiler_can_build_shared=no 9573 ;; 9574 9575 uts4*) 9576 lt_prog_compiler_pic='-pic' 9577 lt_prog_compiler_static='-Bstatic' 9578 ;; 9579 9580 *) 9581 lt_prog_compiler_can_build_shared=no 9582 ;; 9583 esac 9584 fi 9585 9586case $host_os in 9587 # For platforms that do not support PIC, -DPIC is meaningless: 9588 *djgpp*) 9589 lt_prog_compiler_pic= 9590 ;; 9591 *) 9592 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9593 ;; 9594esac 9595 9596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9597$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9598if ${lt_cv_prog_compiler_pic+:} false; then : 9599 $as_echo_n "(cached) " >&6 9600else 9601 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9602fi 9603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9604$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9605lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9606 9607# 9608# Check to make sure the PIC flag actually works. 9609# 9610if test -n "$lt_prog_compiler_pic"; then 9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9612$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9613if ${lt_cv_prog_compiler_pic_works+:} false; then : 9614 $as_echo_n "(cached) " >&6 9615else 9616 lt_cv_prog_compiler_pic_works=no 9617 ac_outfile=conftest.$ac_objext 9618 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9619 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9620 # Insert the option either (1) after the last *FLAGS variable, or 9621 # (2) before a word containing "conftest.", or (3) at the end. 9622 # Note that $ac_compile itself does not contain backslashes and begins 9623 # with a dollar sign (not a hyphen), so the echo should work correctly. 9624 # The option is referenced via a variable to avoid confusing sed. 9625 lt_compile=`echo "$ac_compile" | $SED \ 9626 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9627 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9628 -e 's:$: $lt_compiler_flag:'` 9629 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9630 (eval "$lt_compile" 2>conftest.err) 9631 ac_status=$? 9632 cat conftest.err >&5 9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9634 if (exit $ac_status) && test -s "$ac_outfile"; then 9635 # The compiler can only warn and ignore the option if not recognized 9636 # So say no if there are warnings other than the usual output. 9637 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9638 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9639 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9640 lt_cv_prog_compiler_pic_works=yes 9641 fi 9642 fi 9643 $RM conftest* 9644 9645fi 9646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9647$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9648 9649if test yes = "$lt_cv_prog_compiler_pic_works"; then 9650 case $lt_prog_compiler_pic in 9651 "" | " "*) ;; 9652 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9653 esac 9654else 9655 lt_prog_compiler_pic= 9656 lt_prog_compiler_can_build_shared=no 9657fi 9658 9659fi 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671# 9672# Check to make sure the static flag actually works. 9673# 9674wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9676$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9677if ${lt_cv_prog_compiler_static_works+:} false; then : 9678 $as_echo_n "(cached) " >&6 9679else 9680 lt_cv_prog_compiler_static_works=no 9681 save_LDFLAGS=$LDFLAGS 9682 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9683 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9684 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9685 # The linker can only warn and ignore the option if not recognized 9686 # So say no if there are warnings 9687 if test -s conftest.err; then 9688 # Append any errors to the config.log. 9689 cat conftest.err 1>&5 9690 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9691 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9692 if diff conftest.exp conftest.er2 >/dev/null; then 9693 lt_cv_prog_compiler_static_works=yes 9694 fi 9695 else 9696 lt_cv_prog_compiler_static_works=yes 9697 fi 9698 fi 9699 $RM -r conftest* 9700 LDFLAGS=$save_LDFLAGS 9701 9702fi 9703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9704$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9705 9706if test yes = "$lt_cv_prog_compiler_static_works"; then 9707 : 9708else 9709 lt_prog_compiler_static= 9710fi 9711 9712 9713 9714 9715 9716 9717 9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9719$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9720if ${lt_cv_prog_compiler_c_o+:} false; then : 9721 $as_echo_n "(cached) " >&6 9722else 9723 lt_cv_prog_compiler_c_o=no 9724 $RM -r conftest 2>/dev/null 9725 mkdir conftest 9726 cd conftest 9727 mkdir out 9728 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9729 9730 lt_compiler_flag="-o out/conftest2.$ac_objext" 9731 # Insert the option either (1) after the last *FLAGS variable, or 9732 # (2) before a word containing "conftest.", or (3) at the end. 9733 # Note that $ac_compile itself does not contain backslashes and begins 9734 # with a dollar sign (not a hyphen), so the echo should work correctly. 9735 lt_compile=`echo "$ac_compile" | $SED \ 9736 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9737 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9738 -e 's:$: $lt_compiler_flag:'` 9739 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9740 (eval "$lt_compile" 2>out/conftest.err) 9741 ac_status=$? 9742 cat out/conftest.err >&5 9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9744 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9745 then 9746 # The compiler can only warn and ignore the option if not recognized 9747 # So say no if there are warnings 9748 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9749 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9750 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9751 lt_cv_prog_compiler_c_o=yes 9752 fi 9753 fi 9754 chmod u+w . 2>&5 9755 $RM conftest* 9756 # SGI C++ compiler will create directory out/ii_files/ for 9757 # template instantiation 9758 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9759 $RM out/* && rmdir out 9760 cd .. 9761 $RM -r conftest 9762 $RM conftest* 9763 9764fi 9765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9766$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9767 9768 9769 9770 9771 9772 9773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9774$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9775if ${lt_cv_prog_compiler_c_o+:} false; then : 9776 $as_echo_n "(cached) " >&6 9777else 9778 lt_cv_prog_compiler_c_o=no 9779 $RM -r conftest 2>/dev/null 9780 mkdir conftest 9781 cd conftest 9782 mkdir out 9783 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9784 9785 lt_compiler_flag="-o out/conftest2.$ac_objext" 9786 # Insert the option either (1) after the last *FLAGS variable, or 9787 # (2) before a word containing "conftest.", or (3) at the end. 9788 # Note that $ac_compile itself does not contain backslashes and begins 9789 # with a dollar sign (not a hyphen), so the echo should work correctly. 9790 lt_compile=`echo "$ac_compile" | $SED \ 9791 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9792 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9793 -e 's:$: $lt_compiler_flag:'` 9794 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9795 (eval "$lt_compile" 2>out/conftest.err) 9796 ac_status=$? 9797 cat out/conftest.err >&5 9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9799 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9800 then 9801 # The compiler can only warn and ignore the option if not recognized 9802 # So say no if there are warnings 9803 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9804 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9805 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9806 lt_cv_prog_compiler_c_o=yes 9807 fi 9808 fi 9809 chmod u+w . 2>&5 9810 $RM conftest* 9811 # SGI C++ compiler will create directory out/ii_files/ for 9812 # template instantiation 9813 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9814 $RM out/* && rmdir out 9815 cd .. 9816 $RM -r conftest 9817 $RM conftest* 9818 9819fi 9820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9821$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9822 9823 9824 9825 9826hard_links=nottested 9827if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9828 # do not overwrite the value of need_locks provided by the user 9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9830$as_echo_n "checking if we can lock with hard links... " >&6; } 9831 hard_links=yes 9832 $RM conftest* 9833 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9834 touch conftest.a 9835 ln conftest.a conftest.b 2>&5 || hard_links=no 9836 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9838$as_echo "$hard_links" >&6; } 9839 if test no = "$hard_links"; then 9840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9841$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9842 need_locks=warn 9843 fi 9844else 9845 need_locks=no 9846fi 9847 9848 9849 9850 9851 9852 9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9854$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9855 9856 runpath_var= 9857 allow_undefined_flag= 9858 always_export_symbols=no 9859 archive_cmds= 9860 archive_expsym_cmds= 9861 compiler_needs_object=no 9862 enable_shared_with_static_runtimes=no 9863 export_dynamic_flag_spec= 9864 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9865 hardcode_automatic=no 9866 hardcode_direct=no 9867 hardcode_direct_absolute=no 9868 hardcode_libdir_flag_spec= 9869 hardcode_libdir_separator= 9870 hardcode_minus_L=no 9871 hardcode_shlibpath_var=unsupported 9872 inherit_rpath=no 9873 link_all_deplibs=unknown 9874 module_cmds= 9875 module_expsym_cmds= 9876 old_archive_from_new_cmds= 9877 old_archive_from_expsyms_cmds= 9878 thread_safe_flag_spec= 9879 whole_archive_flag_spec= 9880 # include_expsyms should be a list of space-separated symbols to be *always* 9881 # included in the symbol list 9882 include_expsyms= 9883 # exclude_expsyms can be an extended regexp of symbols to exclude 9884 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9885 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9886 # as well as any symbol that contains 'd'. 9887 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9888 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9889 # platforms (ab)use it in PIC code, but their linkers get confused if 9890 # the symbol is explicitly referenced. Since portable code cannot 9891 # rely on this symbol name, it's probably fine to never include it in 9892 # preloaded symbol tables. 9893 # Exclude shared library initialization/finalization symbols. 9894 extract_expsyms_cmds= 9895 9896 case $host_os in 9897 cygwin* | mingw* | pw32* | cegcc*) 9898 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9899 # When not using gcc, we currently assume that we are using 9900 # Microsoft Visual C++. 9901 if test yes != "$GCC"; then 9902 with_gnu_ld=no 9903 fi 9904 ;; 9905 interix*) 9906 # we just hope/assume this is gcc and not c89 (= MSVC++) 9907 with_gnu_ld=yes 9908 ;; 9909 openbsd* | bitrig*) 9910 with_gnu_ld=no 9911 ;; 9912 esac 9913 9914 ld_shlibs=yes 9915 9916 # On some targets, GNU ld is compatible enough with the native linker 9917 # that we're better off using the native interface for both. 9918 lt_use_gnu_ld_interface=no 9919 if test yes = "$with_gnu_ld"; then 9920 case $host_os in 9921 aix*) 9922 # The AIX port of GNU ld has always aspired to compatibility 9923 # with the native linker. However, as the warning in the GNU ld 9924 # block says, versions before 2.19.5* couldn't really create working 9925 # shared libraries, regardless of the interface used. 9926 case `$LD -v 2>&1` in 9927 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9928 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9929 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9930 *) 9931 lt_use_gnu_ld_interface=yes 9932 ;; 9933 esac 9934 ;; 9935 *) 9936 lt_use_gnu_ld_interface=yes 9937 ;; 9938 esac 9939 fi 9940 9941 if test yes = "$lt_use_gnu_ld_interface"; then 9942 # If archive_cmds runs LD, not CC, wlarc should be empty 9943 wlarc='$wl' 9944 9945 # Set some defaults for GNU ld with shared library support. These 9946 # are reset later if shared libraries are not supported. Putting them 9947 # here allows them to be overridden if necessary. 9948 runpath_var=LD_RUN_PATH 9949 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9950 export_dynamic_flag_spec='$wl--export-dynamic' 9951 # ancient GNU ld didn't support --whole-archive et. al. 9952 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9953 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9954 else 9955 whole_archive_flag_spec= 9956 fi 9957 supports_anon_versioning=no 9958 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9959 *GNU\ gold*) supports_anon_versioning=yes ;; 9960 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9961 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9962 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9963 *\ 2.11.*) ;; # other 2.11 versions 9964 *) supports_anon_versioning=yes ;; 9965 esac 9966 9967 # See if GNU ld supports shared libraries. 9968 case $host_os in 9969 aix[3-9]*) 9970 # On AIX/PPC, the GNU linker is very broken 9971 if test ia64 != "$host_cpu"; then 9972 ld_shlibs=no 9973 cat <<_LT_EOF 1>&2 9974 9975*** Warning: the GNU linker, at least up to release 2.19, is reported 9976*** to be unable to reliably create shared libraries on AIX. 9977*** Therefore, libtool is disabling shared libraries support. If you 9978*** really care for shared libraries, you may want to install binutils 9979*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9980*** You will then need to restart the configuration process. 9981 9982_LT_EOF 9983 fi 9984 ;; 9985 9986 amigaos*) 9987 case $host_cpu in 9988 powerpc) 9989 # see comment about AmigaOS4 .so support 9990 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9991 archive_expsym_cmds='' 9992 ;; 9993 m68k) 9994 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)' 9995 hardcode_libdir_flag_spec='-L$libdir' 9996 hardcode_minus_L=yes 9997 ;; 9998 esac 9999 ;; 10000 10001 beos*) 10002 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10003 allow_undefined_flag=unsupported 10004 # Joseph Beckenbach <[email protected]> says some releases of gcc 10005 # support --undefined. This deserves some investigation. FIXME 10006 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10007 else 10008 ld_shlibs=no 10009 fi 10010 ;; 10011 10012 cygwin* | mingw* | pw32* | cegcc*) 10013 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10014 # as there is no search path for DLLs. 10015 hardcode_libdir_flag_spec='-L$libdir' 10016 export_dynamic_flag_spec='$wl--export-all-symbols' 10017 allow_undefined_flag=unsupported 10018 always_export_symbols=no 10019 enable_shared_with_static_runtimes=yes 10020 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' 10021 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10022 10023 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10024 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10025 # If the export-symbols file already is a .def file, use it as 10026 # is; otherwise, prepend EXPORTS... 10027 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10028 cp $export_symbols $output_objdir/$soname.def; 10029 else 10030 echo EXPORTS > $output_objdir/$soname.def; 10031 cat $export_symbols >> $output_objdir/$soname.def; 10032 fi~ 10033 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10034 else 10035 ld_shlibs=no 10036 fi 10037 ;; 10038 10039 haiku*) 10040 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10041 link_all_deplibs=yes 10042 ;; 10043 10044 os2*) 10045 hardcode_libdir_flag_spec='-L$libdir' 10046 hardcode_minus_L=yes 10047 allow_undefined_flag=unsupported 10048 shrext_cmds=.dll 10049 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10050 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10051 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10052 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10053 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10054 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10055 emximp -o $lib $output_objdir/$libname.def' 10056 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10057 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10058 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10059 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10060 prefix_cmds="$SED"~ 10061 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10062 prefix_cmds="$prefix_cmds -e 1d"; 10063 fi~ 10064 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10065 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10066 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10067 emximp -o $lib $output_objdir/$libname.def' 10068 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10069 enable_shared_with_static_runtimes=yes 10070 ;; 10071 10072 interix[3-9]*) 10073 hardcode_direct=no 10074 hardcode_shlibpath_var=no 10075 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10076 export_dynamic_flag_spec='$wl-E' 10077 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10078 # Instead, shared libraries are loaded at an image base (0x10000000 by 10079 # default) and relocated if they conflict, which is a slow very memory 10080 # consuming and fragmenting process. To avoid this, we pick a random, 10081 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10082 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10083 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10084 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' 10085 ;; 10086 10087 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10088 tmp_diet=no 10089 if test linux-dietlibc = "$host_os"; then 10090 case $cc_basename in 10091 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10092 esac 10093 fi 10094 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10095 && test no = "$tmp_diet" 10096 then 10097 tmp_addflag=' $pic_flag' 10098 tmp_sharedflag='-shared' 10099 case $cc_basename,$host_cpu in 10100 pgcc*) # Portland Group C compiler 10101 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' 10102 tmp_addflag=' $pic_flag' 10103 ;; 10104 pgf77* | pgf90* | pgf95* | pgfortran*) 10105 # Portland Group f77 and f90 compilers 10106 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' 10107 tmp_addflag=' $pic_flag -Mnomain' ;; 10108 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10109 tmp_addflag=' -i_dynamic' ;; 10110 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10111 tmp_addflag=' -i_dynamic -nofor_main' ;; 10112 ifc* | ifort*) # Intel Fortran compiler 10113 tmp_addflag=' -nofor_main' ;; 10114 lf95*) # Lahey Fortran 8.1 10115 whole_archive_flag_spec= 10116 tmp_sharedflag='--shared' ;; 10117 nagfor*) # NAGFOR 5.3 10118 tmp_sharedflag='-Wl,-shared' ;; 10119 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10120 tmp_sharedflag='-qmkshrobj' 10121 tmp_addflag= ;; 10122 nvcc*) # Cuda Compiler Driver 2.2 10123 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' 10124 compiler_needs_object=yes 10125 ;; 10126 esac 10127 case `$CC -V 2>&1 | sed 5q` in 10128 *Sun\ C*) # Sun C 5.9 10129 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' 10130 compiler_needs_object=yes 10131 tmp_sharedflag='-G' ;; 10132 *Sun\ F*) # Sun Fortran 8.3 10133 tmp_sharedflag='-G' ;; 10134 esac 10135 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10136 10137 if test yes = "$supports_anon_versioning"; then 10138 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10139 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10140 echo "local: *; };" >> $output_objdir/$libname.ver~ 10141 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10142 fi 10143 10144 case $cc_basename in 10145 tcc*) 10146 export_dynamic_flag_spec='-rdynamic' 10147 ;; 10148 xlf* | bgf* | bgxlf* | mpixlf*) 10149 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10150 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10151 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10152 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10153 if test yes = "$supports_anon_versioning"; then 10154 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10155 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10156 echo "local: *; };" >> $output_objdir/$libname.ver~ 10157 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10158 fi 10159 ;; 10160 esac 10161 else 10162 ld_shlibs=no 10163 fi 10164 ;; 10165 10166 netbsd*) 10167 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10168 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10169 wlarc= 10170 else 10171 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10172 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10173 fi 10174 ;; 10175 10176 solaris*) 10177 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10178 ld_shlibs=no 10179 cat <<_LT_EOF 1>&2 10180 10181*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10182*** create shared libraries on Solaris systems. Therefore, libtool 10183*** is disabling shared libraries support. We urge you to upgrade GNU 10184*** binutils to release 2.9.1 or newer. Another option is to modify 10185*** your PATH or compiler configuration so that the native linker is 10186*** used, and then restart. 10187 10188_LT_EOF 10189 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10190 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10191 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10192 else 10193 ld_shlibs=no 10194 fi 10195 ;; 10196 10197 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10198 case `$LD -v 2>&1` in 10199 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10200 ld_shlibs=no 10201 cat <<_LT_EOF 1>&2 10202 10203*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10204*** reliably create shared libraries on SCO systems. Therefore, libtool 10205*** is disabling shared libraries support. We urge you to upgrade GNU 10206*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10207*** your PATH or compiler configuration so that the native linker is 10208*** used, and then restart. 10209 10210_LT_EOF 10211 ;; 10212 *) 10213 # For security reasons, it is highly recommended that you always 10214 # use absolute paths for naming shared libraries, and exclude the 10215 # DT_RUNPATH tag from executables and libraries. But doing so 10216 # requires that you compile everything twice, which is a pain. 10217 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10218 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10219 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10220 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10221 else 10222 ld_shlibs=no 10223 fi 10224 ;; 10225 esac 10226 ;; 10227 10228 sunos4*) 10229 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10230 wlarc= 10231 hardcode_direct=yes 10232 hardcode_shlibpath_var=no 10233 ;; 10234 10235 *) 10236 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10237 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10238 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10239 else 10240 ld_shlibs=no 10241 fi 10242 ;; 10243 esac 10244 10245 if test no = "$ld_shlibs"; then 10246 runpath_var= 10247 hardcode_libdir_flag_spec= 10248 export_dynamic_flag_spec= 10249 whole_archive_flag_spec= 10250 fi 10251 else 10252 # PORTME fill in a description of your system's linker (not GNU ld) 10253 case $host_os in 10254 aix3*) 10255 allow_undefined_flag=unsupported 10256 always_export_symbols=yes 10257 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' 10258 # Note: this linker hardcodes the directories in LIBPATH if there 10259 # are no directories specified by -L. 10260 hardcode_minus_L=yes 10261 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10262 # Neither direct hardcoding nor static linking is supported with a 10263 # broken collect2. 10264 hardcode_direct=unsupported 10265 fi 10266 ;; 10267 10268 aix[4-9]*) 10269 if test ia64 = "$host_cpu"; then 10270 # On IA64, the linker does run time linking by default, so we don't 10271 # have to do anything special. 10272 aix_use_runtimelinking=no 10273 exp_sym_flag='-Bexport' 10274 no_entry_flag= 10275 else 10276 # If we're using GNU nm, then we don't want the "-C" option. 10277 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10278 # Without the "-l" option, or with the "-B" option, AIX nm treats 10279 # weak defined symbols like other global defined symbols, whereas 10280 # GNU nm marks them as "W". 10281 # While the 'weak' keyword is ignored in the Export File, we need 10282 # it in the Import File for the 'aix-soname' feature, so we have 10283 # to replace the "-B" option with "-P" for AIX nm. 10284 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10285 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' 10286 else 10287 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 10288 fi 10289 aix_use_runtimelinking=no 10290 10291 # Test if we are trying to use run time linking or normal 10292 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10293 # have runtime linking enabled, and use it for executables. 10294 # For shared libraries, we enable/disable runtime linking 10295 # depending on the kind of the shared library created - 10296 # when "with_aix_soname,aix_use_runtimelinking" is: 10297 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10298 # "aix,yes" lib.so shared, rtl:yes, for executables 10299 # lib.a static archive 10300 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10301 # lib.a(lib.so.V) shared, rtl:no, for executables 10302 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10303 # lib.a(lib.so.V) shared, rtl:no 10304 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10305 # lib.a static archive 10306 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10307 for ld_flag in $LDFLAGS; do 10308 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10309 aix_use_runtimelinking=yes 10310 break 10311 fi 10312 done 10313 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10314 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10315 # so we don't have lib.a shared libs to link our executables. 10316 # We have to force runtime linking in this case. 10317 aix_use_runtimelinking=yes 10318 LDFLAGS="$LDFLAGS -Wl,-brtl" 10319 fi 10320 ;; 10321 esac 10322 10323 exp_sym_flag='-bexport' 10324 no_entry_flag='-bnoentry' 10325 fi 10326 10327 # When large executables or shared objects are built, AIX ld can 10328 # have problems creating the table of contents. If linking a library 10329 # or program results in "error TOC overflow" add -mminimal-toc to 10330 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10331 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10332 10333 archive_cmds='' 10334 hardcode_direct=yes 10335 hardcode_direct_absolute=yes 10336 hardcode_libdir_separator=':' 10337 link_all_deplibs=yes 10338 file_list_spec='$wl-f,' 10339 case $with_aix_soname,$aix_use_runtimelinking in 10340 aix,*) ;; # traditional, no import file 10341 svr4,* | *,yes) # use import file 10342 # The Import File defines what to hardcode. 10343 hardcode_direct=no 10344 hardcode_direct_absolute=no 10345 ;; 10346 esac 10347 10348 if test yes = "$GCC"; then 10349 case $host_os in aix4.[012]|aix4.[012].*) 10350 # We only want to do this on AIX 4.2 and lower, the check 10351 # below for broken collect2 doesn't work under 4.3+ 10352 collect2name=`$CC -print-prog-name=collect2` 10353 if test -f "$collect2name" && 10354 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10355 then 10356 # We have reworked collect2 10357 : 10358 else 10359 # We have old collect2 10360 hardcode_direct=unsupported 10361 # It fails to find uninstalled libraries when the uninstalled 10362 # path is not listed in the libpath. Setting hardcode_minus_L 10363 # to unsupported forces relinking 10364 hardcode_minus_L=yes 10365 hardcode_libdir_flag_spec='-L$libdir' 10366 hardcode_libdir_separator= 10367 fi 10368 ;; 10369 esac 10370 shared_flag='-shared' 10371 if test yes = "$aix_use_runtimelinking"; then 10372 shared_flag="$shared_flag "'$wl-G' 10373 fi 10374 # Need to ensure runtime linking is disabled for the traditional 10375 # shared library, or the linker may eventually find shared libraries 10376 # /with/ Import File - we do not want to mix them. 10377 shared_flag_aix='-shared' 10378 shared_flag_svr4='-shared $wl-G' 10379 else 10380 # not using gcc 10381 if test ia64 = "$host_cpu"; then 10382 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10383 # chokes on -Wl,-G. The following line is correct: 10384 shared_flag='-G' 10385 else 10386 if test yes = "$aix_use_runtimelinking"; then 10387 shared_flag='$wl-G' 10388 else 10389 shared_flag='$wl-bM:SRE' 10390 fi 10391 shared_flag_aix='$wl-bM:SRE' 10392 shared_flag_svr4='$wl-G' 10393 fi 10394 fi 10395 10396 export_dynamic_flag_spec='$wl-bexpall' 10397 # It seems that -bexpall does not export symbols beginning with 10398 # underscore (_), so it is better to generate a list of symbols to export. 10399 always_export_symbols=yes 10400 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10401 # Warning - without using the other runtime loading flags (-brtl), 10402 # -berok will link without error, but may produce a broken library. 10403 allow_undefined_flag='-berok' 10404 # Determine the default libpath from the value encoded in an 10405 # empty executable. 10406 if test set = "${lt_cv_aix_libpath+set}"; then 10407 aix_libpath=$lt_cv_aix_libpath 10408else 10409 if ${lt_cv_aix_libpath_+:} false; then : 10410 $as_echo_n "(cached) " >&6 10411else 10412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10413/* end confdefs.h. */ 10414 10415int 10416main () 10417{ 10418 10419 ; 10420 return 0; 10421} 10422_ACEOF 10423if ac_fn_c_try_link "$LINENO"; then : 10424 10425 lt_aix_libpath_sed=' 10426 /Import File Strings/,/^$/ { 10427 /^0/ { 10428 s/^0 *\([^ ]*\) *$/\1/ 10429 p 10430 } 10431 }' 10432 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10433 # Check for a 64-bit object if we didn't find anything. 10434 if test -z "$lt_cv_aix_libpath_"; then 10435 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10436 fi 10437fi 10438rm -f core conftest.err conftest.$ac_objext \ 10439 conftest$ac_exeext conftest.$ac_ext 10440 if test -z "$lt_cv_aix_libpath_"; then 10441 lt_cv_aix_libpath_=/usr/lib:/lib 10442 fi 10443 10444fi 10445 10446 aix_libpath=$lt_cv_aix_libpath_ 10447fi 10448 10449 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10450 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 10451 else 10452 if test ia64 = "$host_cpu"; then 10453 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10454 allow_undefined_flag="-z nodefs" 10455 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" 10456 else 10457 # Determine the default libpath from the value encoded in an 10458 # empty executable. 10459 if test set = "${lt_cv_aix_libpath+set}"; then 10460 aix_libpath=$lt_cv_aix_libpath 10461else 10462 if ${lt_cv_aix_libpath_+:} false; then : 10463 $as_echo_n "(cached) " >&6 10464else 10465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10466/* end confdefs.h. */ 10467 10468int 10469main () 10470{ 10471 10472 ; 10473 return 0; 10474} 10475_ACEOF 10476if ac_fn_c_try_link "$LINENO"; then : 10477 10478 lt_aix_libpath_sed=' 10479 /Import File Strings/,/^$/ { 10480 /^0/ { 10481 s/^0 *\([^ ]*\) *$/\1/ 10482 p 10483 } 10484 }' 10485 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10486 # Check for a 64-bit object if we didn't find anything. 10487 if test -z "$lt_cv_aix_libpath_"; then 10488 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10489 fi 10490fi 10491rm -f core conftest.err conftest.$ac_objext \ 10492 conftest$ac_exeext conftest.$ac_ext 10493 if test -z "$lt_cv_aix_libpath_"; then 10494 lt_cv_aix_libpath_=/usr/lib:/lib 10495 fi 10496 10497fi 10498 10499 aix_libpath=$lt_cv_aix_libpath_ 10500fi 10501 10502 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10503 # Warning - without using the other run time loading flags, 10504 # -berok will link without error, but may produce a broken library. 10505 no_undefined_flag=' $wl-bernotok' 10506 allow_undefined_flag=' $wl-berok' 10507 if test yes = "$with_gnu_ld"; then 10508 # We only use this code for GNU lds that support --whole-archive. 10509 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10510 else 10511 # Exported symbols can be pulled into shared objects from archives 10512 whole_archive_flag_spec='$convenience' 10513 fi 10514 archive_cmds_need_lc=yes 10515 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10516 # -brtl affects multiple linker settings, -berok does not and is overridden later 10517 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10518 if test svr4 != "$with_aix_soname"; then 10519 # This is similar to how AIX traditionally builds its shared libraries. 10520 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' 10521 fi 10522 if test aix != "$with_aix_soname"; then 10523 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' 10524 else 10525 # used by -dlpreopen to get the symbols 10526 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10527 fi 10528 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10529 fi 10530 fi 10531 ;; 10532 10533 amigaos*) 10534 case $host_cpu in 10535 powerpc) 10536 # see comment about AmigaOS4 .so support 10537 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10538 archive_expsym_cmds='' 10539 ;; 10540 m68k) 10541 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)' 10542 hardcode_libdir_flag_spec='-L$libdir' 10543 hardcode_minus_L=yes 10544 ;; 10545 esac 10546 ;; 10547 10548 bsdi[45]*) 10549 export_dynamic_flag_spec=-rdynamic 10550 ;; 10551 10552 cygwin* | mingw* | pw32* | cegcc*) 10553 # When not using gcc, we currently assume that we are using 10554 # Microsoft Visual C++. 10555 # hardcode_libdir_flag_spec is actually meaningless, as there is 10556 # no search path for DLLs. 10557 case $cc_basename in 10558 cl*) 10559 # Native MSVC 10560 hardcode_libdir_flag_spec=' ' 10561 allow_undefined_flag=unsupported 10562 always_export_symbols=yes 10563 file_list_spec='@' 10564 # Tell ltmain to make .lib files, not .a files. 10565 libext=lib 10566 # Tell ltmain to make .dll files, not .so files. 10567 shrext_cmds=.dll 10568 # FIXME: Setting linknames here is a bad hack. 10569 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10570 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10571 cp "$export_symbols" "$output_objdir/$soname.def"; 10572 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10573 else 10574 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10575 fi~ 10576 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10577 linknames=' 10578 # The linker will not automatically build a static lib if we build a DLL. 10579 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10580 enable_shared_with_static_runtimes=yes 10581 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10582 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10583 # Don't use ranlib 10584 old_postinstall_cmds='chmod 644 $oldlib' 10585 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10586 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10587 case $lt_outputfile in 10588 *.exe|*.EXE) ;; 10589 *) 10590 lt_outputfile=$lt_outputfile.exe 10591 lt_tool_outputfile=$lt_tool_outputfile.exe 10592 ;; 10593 esac~ 10594 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10595 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10596 $RM "$lt_outputfile.manifest"; 10597 fi' 10598 ;; 10599 *) 10600 # Assume MSVC wrapper 10601 hardcode_libdir_flag_spec=' ' 10602 allow_undefined_flag=unsupported 10603 # Tell ltmain to make .lib files, not .a files. 10604 libext=lib 10605 # Tell ltmain to make .dll files, not .so files. 10606 shrext_cmds=.dll 10607 # FIXME: Setting linknames here is a bad hack. 10608 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10609 # The linker will automatically build a .lib file if we build a DLL. 10610 old_archive_from_new_cmds='true' 10611 # FIXME: Should let the user specify the lib program. 10612 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10613 enable_shared_with_static_runtimes=yes 10614 ;; 10615 esac 10616 ;; 10617 10618 darwin* | rhapsody*) 10619 10620 10621 archive_cmds_need_lc=no 10622 hardcode_direct=no 10623 hardcode_automatic=yes 10624 hardcode_shlibpath_var=unsupported 10625 if test yes = "$lt_cv_ld_force_load"; then 10626 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\"`' 10627 10628 else 10629 whole_archive_flag_spec='' 10630 fi 10631 link_all_deplibs=yes 10632 allow_undefined_flag=$_lt_dar_allow_undefined 10633 case $cc_basename in 10634 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10635 *) _lt_dar_can_shared=$GCC ;; 10636 esac 10637 if test yes = "$_lt_dar_can_shared"; then 10638 output_verbose_link_cmd=func_echo_all 10639 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10640 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10641 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" 10642 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" 10643 10644 else 10645 ld_shlibs=no 10646 fi 10647 10648 ;; 10649 10650 dgux*) 10651 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10652 hardcode_libdir_flag_spec='-L$libdir' 10653 hardcode_shlibpath_var=no 10654 ;; 10655 10656 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10657 # support. Future versions do this automatically, but an explicit c++rt0.o 10658 # does not break anything, and helps significantly (at the cost of a little 10659 # extra space). 10660 freebsd2.2*) 10661 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10662 hardcode_libdir_flag_spec='-R$libdir' 10663 hardcode_direct=yes 10664 hardcode_shlibpath_var=no 10665 ;; 10666 10667 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10668 freebsd2.*) 10669 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10670 hardcode_direct=yes 10671 hardcode_minus_L=yes 10672 hardcode_shlibpath_var=no 10673 ;; 10674 10675 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10676 freebsd* | dragonfly*) 10677 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10678 hardcode_libdir_flag_spec='-R$libdir' 10679 hardcode_direct=yes 10680 hardcode_shlibpath_var=no 10681 ;; 10682 10683 hpux9*) 10684 if test yes = "$GCC"; then 10685 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' 10686 else 10687 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' 10688 fi 10689 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10690 hardcode_libdir_separator=: 10691 hardcode_direct=yes 10692 10693 # hardcode_minus_L: Not really in the search PATH, 10694 # but as the default location of the library. 10695 hardcode_minus_L=yes 10696 export_dynamic_flag_spec='$wl-E' 10697 ;; 10698 10699 hpux10*) 10700 if test yes,no = "$GCC,$with_gnu_ld"; then 10701 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10702 else 10703 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10704 fi 10705 if test no = "$with_gnu_ld"; then 10706 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10707 hardcode_libdir_separator=: 10708 hardcode_direct=yes 10709 hardcode_direct_absolute=yes 10710 export_dynamic_flag_spec='$wl-E' 10711 # hardcode_minus_L: Not really in the search PATH, 10712 # but as the default location of the library. 10713 hardcode_minus_L=yes 10714 fi 10715 ;; 10716 10717 hpux11*) 10718 if test yes,no = "$GCC,$with_gnu_ld"; then 10719 case $host_cpu in 10720 hppa*64*) 10721 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10722 ;; 10723 ia64*) 10724 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10725 ;; 10726 *) 10727 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10728 ;; 10729 esac 10730 else 10731 case $host_cpu in 10732 hppa*64*) 10733 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10734 ;; 10735 ia64*) 10736 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10737 ;; 10738 *) 10739 10740 # Older versions of the 11.00 compiler do not understand -b yet 10741 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10743$as_echo_n "checking if $CC understands -b... " >&6; } 10744if ${lt_cv_prog_compiler__b+:} false; then : 10745 $as_echo_n "(cached) " >&6 10746else 10747 lt_cv_prog_compiler__b=no 10748 save_LDFLAGS=$LDFLAGS 10749 LDFLAGS="$LDFLAGS -b" 10750 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10751 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10752 # The linker can only warn and ignore the option if not recognized 10753 # So say no if there are warnings 10754 if test -s conftest.err; then 10755 # Append any errors to the config.log. 10756 cat conftest.err 1>&5 10757 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10758 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10759 if diff conftest.exp conftest.er2 >/dev/null; then 10760 lt_cv_prog_compiler__b=yes 10761 fi 10762 else 10763 lt_cv_prog_compiler__b=yes 10764 fi 10765 fi 10766 $RM -r conftest* 10767 LDFLAGS=$save_LDFLAGS 10768 10769fi 10770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10771$as_echo "$lt_cv_prog_compiler__b" >&6; } 10772 10773if test yes = "$lt_cv_prog_compiler__b"; then 10774 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10775else 10776 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10777fi 10778 10779 ;; 10780 esac 10781 fi 10782 if test no = "$with_gnu_ld"; then 10783 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10784 hardcode_libdir_separator=: 10785 10786 case $host_cpu in 10787 hppa*64*|ia64*) 10788 hardcode_direct=no 10789 hardcode_shlibpath_var=no 10790 ;; 10791 *) 10792 hardcode_direct=yes 10793 hardcode_direct_absolute=yes 10794 export_dynamic_flag_spec='$wl-E' 10795 10796 # hardcode_minus_L: Not really in the search PATH, 10797 # but as the default location of the library. 10798 hardcode_minus_L=yes 10799 ;; 10800 esac 10801 fi 10802 ;; 10803 10804 irix5* | irix6* | nonstopux*) 10805 if test yes = "$GCC"; then 10806 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' 10807 # Try to use the -exported_symbol ld option, if it does not 10808 # work, assume that -exports_file does not work either and 10809 # implicitly export all symbols. 10810 # This should be the same for all languages, so no per-tag cache variable. 10811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10812$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10813if ${lt_cv_irix_exported_symbol+:} false; then : 10814 $as_echo_n "(cached) " >&6 10815else 10816 save_LDFLAGS=$LDFLAGS 10817 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10819/* end confdefs.h. */ 10820int foo (void) { return 0; } 10821_ACEOF 10822if ac_fn_c_try_link "$LINENO"; then : 10823 lt_cv_irix_exported_symbol=yes 10824else 10825 lt_cv_irix_exported_symbol=no 10826fi 10827rm -f core conftest.err conftest.$ac_objext \ 10828 conftest$ac_exeext conftest.$ac_ext 10829 LDFLAGS=$save_LDFLAGS 10830fi 10831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10832$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10833 if test yes = "$lt_cv_irix_exported_symbol"; then 10834 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' 10835 fi 10836 else 10837 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' 10838 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' 10839 fi 10840 archive_cmds_need_lc='no' 10841 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10842 hardcode_libdir_separator=: 10843 inherit_rpath=yes 10844 link_all_deplibs=yes 10845 ;; 10846 10847 linux*) 10848 case $cc_basename in 10849 tcc*) 10850 # Fabrice Bellard et al's Tiny C Compiler 10851 ld_shlibs=yes 10852 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10853 ;; 10854 esac 10855 ;; 10856 10857 netbsd*) 10858 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10859 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10860 else 10861 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10862 fi 10863 hardcode_libdir_flag_spec='-R$libdir' 10864 hardcode_direct=yes 10865 hardcode_shlibpath_var=no 10866 ;; 10867 10868 newsos6) 10869 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10870 hardcode_direct=yes 10871 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10872 hardcode_libdir_separator=: 10873 hardcode_shlibpath_var=no 10874 ;; 10875 10876 *nto* | *qnx*) 10877 ;; 10878 10879 openbsd* | bitrig*) 10880 if test -f /usr/libexec/ld.so; then 10881 hardcode_direct=yes 10882 hardcode_shlibpath_var=no 10883 hardcode_direct_absolute=yes 10884 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10885 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10886 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10887 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10888 export_dynamic_flag_spec='$wl-E' 10889 else 10890 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10891 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10892 fi 10893 else 10894 ld_shlibs=no 10895 fi 10896 ;; 10897 10898 os2*) 10899 hardcode_libdir_flag_spec='-L$libdir' 10900 hardcode_minus_L=yes 10901 allow_undefined_flag=unsupported 10902 shrext_cmds=.dll 10903 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10904 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10905 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10906 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10907 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10908 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10909 emximp -o $lib $output_objdir/$libname.def' 10910 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10911 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10912 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10913 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10914 prefix_cmds="$SED"~ 10915 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10916 prefix_cmds="$prefix_cmds -e 1d"; 10917 fi~ 10918 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10919 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10920 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10921 emximp -o $lib $output_objdir/$libname.def' 10922 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10923 enable_shared_with_static_runtimes=yes 10924 ;; 10925 10926 osf3*) 10927 if test yes = "$GCC"; then 10928 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10929 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' 10930 else 10931 allow_undefined_flag=' -expect_unresolved \*' 10932 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' 10933 fi 10934 archive_cmds_need_lc='no' 10935 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10936 hardcode_libdir_separator=: 10937 ;; 10938 10939 osf4* | osf5*) # as osf3* with the addition of -msym flag 10940 if test yes = "$GCC"; then 10941 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10942 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' 10943 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10944 else 10945 allow_undefined_flag=' -expect_unresolved \*' 10946 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' 10947 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~ 10948 $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' 10949 10950 # Both c and cxx compiler support -rpath directly 10951 hardcode_libdir_flag_spec='-rpath $libdir' 10952 fi 10953 archive_cmds_need_lc='no' 10954 hardcode_libdir_separator=: 10955 ;; 10956 10957 solaris*) 10958 no_undefined_flag=' -z defs' 10959 if test yes = "$GCC"; then 10960 wlarc='$wl' 10961 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10962 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10963 $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' 10964 else 10965 case `$CC -V 2>&1` in 10966 *"Compilers 5.0"*) 10967 wlarc='' 10968 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10969 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10970 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10971 ;; 10972 *) 10973 wlarc='$wl' 10974 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10975 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10976 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10977 ;; 10978 esac 10979 fi 10980 hardcode_libdir_flag_spec='-R$libdir' 10981 hardcode_shlibpath_var=no 10982 case $host_os in 10983 solaris2.[0-5] | solaris2.[0-5].*) ;; 10984 *) 10985 # The compiler driver will combine and reorder linker options, 10986 # but understands '-z linker_flag'. GCC discards it without '$wl', 10987 # but is careful enough not to reorder. 10988 # Supported since Solaris 2.6 (maybe 2.5.1?) 10989 if test yes = "$GCC"; then 10990 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10991 else 10992 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10993 fi 10994 ;; 10995 esac 10996 link_all_deplibs=yes 10997 ;; 10998 10999 sunos4*) 11000 if test sequent = "$host_vendor"; then 11001 # Use $CC to link under sequent, because it throws in some extra .o 11002 # files that make .init and .fini sections work. 11003 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11004 else 11005 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11006 fi 11007 hardcode_libdir_flag_spec='-L$libdir' 11008 hardcode_direct=yes 11009 hardcode_minus_L=yes 11010 hardcode_shlibpath_var=no 11011 ;; 11012 11013 sysv4) 11014 case $host_vendor in 11015 sni) 11016 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11017 hardcode_direct=yes # is this really true??? 11018 ;; 11019 siemens) 11020 ## LD is ld it makes a PLAMLIB 11021 ## CC just makes a GrossModule. 11022 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11023 reload_cmds='$CC -r -o $output$reload_objs' 11024 hardcode_direct=no 11025 ;; 11026 motorola) 11027 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11028 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11029 ;; 11030 esac 11031 runpath_var='LD_RUN_PATH' 11032 hardcode_shlibpath_var=no 11033 ;; 11034 11035 sysv4.3*) 11036 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11037 hardcode_shlibpath_var=no 11038 export_dynamic_flag_spec='-Bexport' 11039 ;; 11040 11041 sysv4*MP*) 11042 if test -d /usr/nec; then 11043 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11044 hardcode_shlibpath_var=no 11045 runpath_var=LD_RUN_PATH 11046 hardcode_runpath_var=yes 11047 ld_shlibs=yes 11048 fi 11049 ;; 11050 11051 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11052 no_undefined_flag='$wl-z,text' 11053 archive_cmds_need_lc=no 11054 hardcode_shlibpath_var=no 11055 runpath_var='LD_RUN_PATH' 11056 11057 if test yes = "$GCC"; then 11058 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11059 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11060 else 11061 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11062 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11063 fi 11064 ;; 11065 11066 sysv5* | sco3.2v5* | sco5v6*) 11067 # Note: We CANNOT use -z defs as we might desire, because we do not 11068 # link with -lc, and that would cause any symbols used from libc to 11069 # always be unresolved, which means just about no library would 11070 # ever link correctly. If we're not using GNU ld we use -z text 11071 # though, which does catch some bad symbols but isn't as heavy-handed 11072 # as -z defs. 11073 no_undefined_flag='$wl-z,text' 11074 allow_undefined_flag='$wl-z,nodefs' 11075 archive_cmds_need_lc=no 11076 hardcode_shlibpath_var=no 11077 hardcode_libdir_flag_spec='$wl-R,$libdir' 11078 hardcode_libdir_separator=':' 11079 link_all_deplibs=yes 11080 export_dynamic_flag_spec='$wl-Bexport' 11081 runpath_var='LD_RUN_PATH' 11082 11083 if test yes = "$GCC"; then 11084 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11085 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11086 else 11087 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11088 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11089 fi 11090 ;; 11091 11092 uts4*) 11093 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11094 hardcode_libdir_flag_spec='-L$libdir' 11095 hardcode_shlibpath_var=no 11096 ;; 11097 11098 *) 11099 ld_shlibs=no 11100 ;; 11101 esac 11102 11103 if test sni = "$host_vendor"; then 11104 case $host in 11105 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11106 export_dynamic_flag_spec='$wl-Blargedynsym' 11107 ;; 11108 esac 11109 fi 11110 fi 11111 11112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11113$as_echo "$ld_shlibs" >&6; } 11114test no = "$ld_shlibs" && can_build_shared=no 11115 11116with_gnu_ld=$with_gnu_ld 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132# 11133# Do we need to explicitly link libc? 11134# 11135case "x$archive_cmds_need_lc" in 11136x|xyes) 11137 # Assume -lc should be added 11138 archive_cmds_need_lc=yes 11139 11140 if test yes,yes = "$GCC,$enable_shared"; then 11141 case $archive_cmds in 11142 *'~'*) 11143 # FIXME: we may have to deal with multi-command sequences. 11144 ;; 11145 '$CC '*) 11146 # Test whether the compiler implicitly links with -lc since on some 11147 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11148 # to ld, don't add -lc before -lgcc. 11149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11150$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11151if ${lt_cv_archive_cmds_need_lc+:} false; then : 11152 $as_echo_n "(cached) " >&6 11153else 11154 $RM conftest* 11155 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11156 11157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11158 (eval $ac_compile) 2>&5 11159 ac_status=$? 11160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11161 test $ac_status = 0; } 2>conftest.err; then 11162 soname=conftest 11163 lib=conftest 11164 libobjs=conftest.$ac_objext 11165 deplibs= 11166 wl=$lt_prog_compiler_wl 11167 pic_flag=$lt_prog_compiler_pic 11168 compiler_flags=-v 11169 linker_flags=-v 11170 verstring= 11171 output_objdir=. 11172 libname=conftest 11173 lt_save_allow_undefined_flag=$allow_undefined_flag 11174 allow_undefined_flag= 11175 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11176 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11177 ac_status=$? 11178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11179 test $ac_status = 0; } 11180 then 11181 lt_cv_archive_cmds_need_lc=no 11182 else 11183 lt_cv_archive_cmds_need_lc=yes 11184 fi 11185 allow_undefined_flag=$lt_save_allow_undefined_flag 11186 else 11187 cat conftest.err 1>&5 11188 fi 11189 $RM conftest* 11190 11191fi 11192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11193$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11194 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11195 ;; 11196 esac 11197 fi 11198 ;; 11199esac 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11353$as_echo_n "checking dynamic linker characteristics... " >&6; } 11354 11355if test yes = "$GCC"; then 11356 case $host_os in 11357 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11358 *) lt_awk_arg='/^libraries:/' ;; 11359 esac 11360 case $host_os in 11361 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11362 *) lt_sed_strip_eq='s|=/|/|g' ;; 11363 esac 11364 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11365 case $lt_search_path_spec in 11366 *\;*) 11367 # if the path contains ";" then we assume it to be the separator 11368 # otherwise default to the standard path separator (i.e. ":") - it is 11369 # assumed that no part of a normal pathname contains ";" but that should 11370 # okay in the real world where ";" in dirpaths is itself problematic. 11371 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11372 ;; 11373 *) 11374 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11375 ;; 11376 esac 11377 # Ok, now we have the path, separated by spaces, we can step through it 11378 # and add multilib dir if necessary... 11379 lt_tmp_lt_search_path_spec= 11380 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11381 # ...but if some path component already ends with the multilib dir we assume 11382 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11383 case "$lt_multi_os_dir; $lt_search_path_spec " in 11384 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11385 lt_multi_os_dir= 11386 ;; 11387 esac 11388 for lt_sys_path in $lt_search_path_spec; do 11389 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11390 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11391 elif test -n "$lt_multi_os_dir"; then 11392 test -d "$lt_sys_path" && \ 11393 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11394 fi 11395 done 11396 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11397BEGIN {RS = " "; FS = "/|\n";} { 11398 lt_foo = ""; 11399 lt_count = 0; 11400 for (lt_i = NF; lt_i > 0; lt_i--) { 11401 if ($lt_i != "" && $lt_i != ".") { 11402 if ($lt_i == "..") { 11403 lt_count++; 11404 } else { 11405 if (lt_count == 0) { 11406 lt_foo = "/" $lt_i lt_foo; 11407 } else { 11408 lt_count--; 11409 } 11410 } 11411 } 11412 } 11413 if (lt_foo != "") { lt_freq[lt_foo]++; } 11414 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11415}'` 11416 # AWK program above erroneously prepends '/' to C:/dos/paths 11417 # for these hosts. 11418 case $host_os in 11419 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11420 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11421 esac 11422 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11423else 11424 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11425fi 11426library_names_spec= 11427libname_spec='lib$name' 11428soname_spec= 11429shrext_cmds=.so 11430postinstall_cmds= 11431postuninstall_cmds= 11432finish_cmds= 11433finish_eval= 11434shlibpath_var= 11435shlibpath_overrides_runpath=unknown 11436version_type=none 11437dynamic_linker="$host_os ld.so" 11438sys_lib_dlsearch_path_spec="/lib /usr/lib" 11439need_lib_prefix=unknown 11440hardcode_into_libs=no 11441 11442# when you set need_version to no, make sure it does not cause -set_version 11443# flags to be left without arguments 11444need_version=unknown 11445 11446 11447 11448case $host_os in 11449aix3*) 11450 version_type=linux # correct to gnu/linux during the next big refactor 11451 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11452 shlibpath_var=LIBPATH 11453 11454 # AIX 3 has no versioning support, so we append a major version to the name. 11455 soname_spec='$libname$release$shared_ext$major' 11456 ;; 11457 11458aix[4-9]*) 11459 version_type=linux # correct to gnu/linux during the next big refactor 11460 need_lib_prefix=no 11461 need_version=no 11462 hardcode_into_libs=yes 11463 if test ia64 = "$host_cpu"; then 11464 # AIX 5 supports IA64 11465 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11466 shlibpath_var=LD_LIBRARY_PATH 11467 else 11468 # With GCC up to 2.95.x, collect2 would create an import file 11469 # for dependence libraries. The import file would start with 11470 # the line '#! .'. This would cause the generated library to 11471 # depend on '.', always an invalid library. This was fixed in 11472 # development snapshots of GCC prior to 3.0. 11473 case $host_os in 11474 aix4 | aix4.[01] | aix4.[01].*) 11475 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11476 echo ' yes ' 11477 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11478 : 11479 else 11480 can_build_shared=no 11481 fi 11482 ;; 11483 esac 11484 # Using Import Files as archive members, it is possible to support 11485 # filename-based versioning of shared library archives on AIX. While 11486 # this would work for both with and without runtime linking, it will 11487 # prevent static linking of such archives. So we do filename-based 11488 # shared library versioning with .so extension only, which is used 11489 # when both runtime linking and shared linking is enabled. 11490 # Unfortunately, runtime linking may impact performance, so we do 11491 # not want this to be the default eventually. Also, we use the 11492 # versioned .so libs for executables only if there is the -brtl 11493 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11494 # To allow for filename-based versioning support, we need to create 11495 # libNAME.so.V as an archive file, containing: 11496 # *) an Import File, referring to the versioned filename of the 11497 # archive as well as the shared archive member, telling the 11498 # bitwidth (32 or 64) of that shared object, and providing the 11499 # list of exported symbols of that shared object, eventually 11500 # decorated with the 'weak' keyword 11501 # *) the shared object with the F_LOADONLY flag set, to really avoid 11502 # it being seen by the linker. 11503 # At run time we better use the real file rather than another symlink, 11504 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11505 11506 case $with_aix_soname,$aix_use_runtimelinking in 11507 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11508 # soname into executable. Probably we can add versioning support to 11509 # collect2, so additional links can be useful in future. 11510 aix,yes) # traditional libtool 11511 dynamic_linker='AIX unversionable lib.so' 11512 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11513 # instead of lib<name>.a to let people know that these are not 11514 # typical AIX shared libraries. 11515 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11516 ;; 11517 aix,no) # traditional AIX only 11518 dynamic_linker='AIX lib.a(lib.so.V)' 11519 # We preserve .a as extension for shared libraries through AIX4.2 11520 # and later when we are not doing run time linking. 11521 library_names_spec='$libname$release.a $libname.a' 11522 soname_spec='$libname$release$shared_ext$major' 11523 ;; 11524 svr4,*) # full svr4 only 11525 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11526 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11527 # We do not specify a path in Import Files, so LIBPATH fires. 11528 shlibpath_overrides_runpath=yes 11529 ;; 11530 *,yes) # both, prefer svr4 11531 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11532 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11533 # unpreferred sharedlib libNAME.a needs extra handling 11534 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"' 11535 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"' 11536 # We do not specify a path in Import Files, so LIBPATH fires. 11537 shlibpath_overrides_runpath=yes 11538 ;; 11539 *,no) # both, prefer aix 11540 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11541 library_names_spec='$libname$release.a $libname.a' 11542 soname_spec='$libname$release$shared_ext$major' 11543 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11544 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)' 11545 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"' 11546 ;; 11547 esac 11548 shlibpath_var=LIBPATH 11549 fi 11550 ;; 11551 11552amigaos*) 11553 case $host_cpu in 11554 powerpc) 11555 # Since July 2007 AmigaOS4 officially supports .so libraries. 11556 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11557 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11558 ;; 11559 m68k) 11560 library_names_spec='$libname.ixlibrary $libname.a' 11561 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11562 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' 11563 ;; 11564 esac 11565 ;; 11566 11567beos*) 11568 library_names_spec='$libname$shared_ext' 11569 dynamic_linker="$host_os ld.so" 11570 shlibpath_var=LIBRARY_PATH 11571 ;; 11572 11573bsdi[45]*) 11574 version_type=linux # correct to gnu/linux during the next big refactor 11575 need_version=no 11576 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11577 soname_spec='$libname$release$shared_ext$major' 11578 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11579 shlibpath_var=LD_LIBRARY_PATH 11580 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11581 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11582 # the default ld.so.conf also contains /usr/contrib/lib and 11583 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11584 # libtool to hard-code these into programs 11585 ;; 11586 11587cygwin* | mingw* | pw32* | cegcc*) 11588 version_type=windows 11589 shrext_cmds=.dll 11590 need_version=no 11591 need_lib_prefix=no 11592 11593 case $GCC,$cc_basename in 11594 yes,*) 11595 # gcc 11596 library_names_spec='$libname.dll.a' 11597 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11598 postinstall_cmds='base_file=`basename \$file`~ 11599 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11600 dldir=$destdir/`dirname \$dlpath`~ 11601 test -d \$dldir || mkdir -p \$dldir~ 11602 $install_prog $dir/$dlname \$dldir/$dlname~ 11603 chmod a+x \$dldir/$dlname~ 11604 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11605 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11606 fi' 11607 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11608 dlpath=$dir/\$dldll~ 11609 $RM \$dlpath' 11610 shlibpath_overrides_runpath=yes 11611 11612 case $host_os in 11613 cygwin*) 11614 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11615 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11616 11617 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11618 ;; 11619 mingw* | cegcc*) 11620 # MinGW DLLs use traditional 'lib' prefix 11621 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11622 ;; 11623 pw32*) 11624 # pw32 DLLs use 'pw' prefix rather than 'lib' 11625 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11626 ;; 11627 esac 11628 dynamic_linker='Win32 ld.exe' 11629 ;; 11630 11631 *,cl*) 11632 # Native MSVC 11633 libname_spec='$name' 11634 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11635 library_names_spec='$libname.dll.lib' 11636 11637 case $build_os in 11638 mingw*) 11639 sys_lib_search_path_spec= 11640 lt_save_ifs=$IFS 11641 IFS=';' 11642 for lt_path in $LIB 11643 do 11644 IFS=$lt_save_ifs 11645 # Let DOS variable expansion print the short 8.3 style file name. 11646 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11647 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11648 done 11649 IFS=$lt_save_ifs 11650 # Convert to MSYS style. 11651 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11652 ;; 11653 cygwin*) 11654 # Convert to unix form, then to dos form, then back to unix form 11655 # but this time dos style (no spaces!) so that the unix form looks 11656 # like /cygdrive/c/PROGRA~1:/cygdr... 11657 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11658 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11659 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11660 ;; 11661 *) 11662 sys_lib_search_path_spec=$LIB 11663 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11664 # It is most probably a Windows format PATH. 11665 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11666 else 11667 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11668 fi 11669 # FIXME: find the short name or the path components, as spaces are 11670 # common. (e.g. "Program Files" -> "PROGRA~1") 11671 ;; 11672 esac 11673 11674 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11675 postinstall_cmds='base_file=`basename \$file`~ 11676 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11677 dldir=$destdir/`dirname \$dlpath`~ 11678 test -d \$dldir || mkdir -p \$dldir~ 11679 $install_prog $dir/$dlname \$dldir/$dlname' 11680 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11681 dlpath=$dir/\$dldll~ 11682 $RM \$dlpath' 11683 shlibpath_overrides_runpath=yes 11684 dynamic_linker='Win32 link.exe' 11685 ;; 11686 11687 *) 11688 # Assume MSVC wrapper 11689 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11690 dynamic_linker='Win32 ld.exe' 11691 ;; 11692 esac 11693 # FIXME: first we should search . and the directory the executable is in 11694 shlibpath_var=PATH 11695 ;; 11696 11697darwin* | rhapsody*) 11698 dynamic_linker="$host_os dyld" 11699 version_type=darwin 11700 need_lib_prefix=no 11701 need_version=no 11702 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11703 soname_spec='$libname$release$major$shared_ext' 11704 shlibpath_overrides_runpath=yes 11705 shlibpath_var=DYLD_LIBRARY_PATH 11706 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11707 11708 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11709 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11710 ;; 11711 11712dgux*) 11713 version_type=linux # correct to gnu/linux during the next big refactor 11714 need_lib_prefix=no 11715 need_version=no 11716 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11717 soname_spec='$libname$release$shared_ext$major' 11718 shlibpath_var=LD_LIBRARY_PATH 11719 ;; 11720 11721freebsd* | dragonfly*) 11722 # DragonFly does not have aout. When/if they implement a new 11723 # versioning mechanism, adjust this. 11724 if test -x /usr/bin/objformat; then 11725 objformat=`/usr/bin/objformat` 11726 else 11727 case $host_os in 11728 freebsd[23].*) objformat=aout ;; 11729 *) objformat=elf ;; 11730 esac 11731 fi 11732 version_type=freebsd-$objformat 11733 case $version_type in 11734 freebsd-elf*) 11735 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11736 soname_spec='$libname$release$shared_ext$major' 11737 need_version=no 11738 need_lib_prefix=no 11739 ;; 11740 freebsd-*) 11741 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11742 need_version=yes 11743 ;; 11744 esac 11745 shlibpath_var=LD_LIBRARY_PATH 11746 case $host_os in 11747 freebsd2.*) 11748 shlibpath_overrides_runpath=yes 11749 ;; 11750 freebsd3.[01]* | freebsdelf3.[01]*) 11751 shlibpath_overrides_runpath=yes 11752 hardcode_into_libs=yes 11753 ;; 11754 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11755 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11756 shlibpath_overrides_runpath=no 11757 hardcode_into_libs=yes 11758 ;; 11759 *) # from 4.6 on, and DragonFly 11760 shlibpath_overrides_runpath=yes 11761 hardcode_into_libs=yes 11762 ;; 11763 esac 11764 ;; 11765 11766haiku*) 11767 version_type=linux # correct to gnu/linux during the next big refactor 11768 need_lib_prefix=no 11769 need_version=no 11770 dynamic_linker="$host_os runtime_loader" 11771 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11772 soname_spec='$libname$release$shared_ext$major' 11773 shlibpath_var=LIBRARY_PATH 11774 shlibpath_overrides_runpath=no 11775 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11776 hardcode_into_libs=yes 11777 ;; 11778 11779hpux9* | hpux10* | hpux11*) 11780 # Give a soname corresponding to the major version so that dld.sl refuses to 11781 # link against other versions. 11782 version_type=sunos 11783 need_lib_prefix=no 11784 need_version=no 11785 case $host_cpu in 11786 ia64*) 11787 shrext_cmds='.so' 11788 hardcode_into_libs=yes 11789 dynamic_linker="$host_os dld.so" 11790 shlibpath_var=LD_LIBRARY_PATH 11791 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11792 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11793 soname_spec='$libname$release$shared_ext$major' 11794 if test 32 = "$HPUX_IA64_MODE"; then 11795 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11796 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11797 else 11798 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11799 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11800 fi 11801 ;; 11802 hppa*64*) 11803 shrext_cmds='.sl' 11804 hardcode_into_libs=yes 11805 dynamic_linker="$host_os dld.sl" 11806 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11807 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11808 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11809 soname_spec='$libname$release$shared_ext$major' 11810 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11811 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11812 ;; 11813 *) 11814 shrext_cmds='.sl' 11815 dynamic_linker="$host_os dld.sl" 11816 shlibpath_var=SHLIB_PATH 11817 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11818 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11819 soname_spec='$libname$release$shared_ext$major' 11820 ;; 11821 esac 11822 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11823 postinstall_cmds='chmod 555 $lib' 11824 # or fails outright, so override atomically: 11825 install_override_mode=555 11826 ;; 11827 11828interix[3-9]*) 11829 version_type=linux # correct to gnu/linux during the next big refactor 11830 need_lib_prefix=no 11831 need_version=no 11832 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11833 soname_spec='$libname$release$shared_ext$major' 11834 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11835 shlibpath_var=LD_LIBRARY_PATH 11836 shlibpath_overrides_runpath=no 11837 hardcode_into_libs=yes 11838 ;; 11839 11840irix5* | irix6* | nonstopux*) 11841 case $host_os in 11842 nonstopux*) version_type=nonstopux ;; 11843 *) 11844 if test yes = "$lt_cv_prog_gnu_ld"; then 11845 version_type=linux # correct to gnu/linux during the next big refactor 11846 else 11847 version_type=irix 11848 fi ;; 11849 esac 11850 need_lib_prefix=no 11851 need_version=no 11852 soname_spec='$libname$release$shared_ext$major' 11853 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11854 case $host_os in 11855 irix5* | nonstopux*) 11856 libsuff= shlibsuff= 11857 ;; 11858 *) 11859 case $LD in # libtool.m4 will add one of these switches to LD 11860 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11861 libsuff= shlibsuff= libmagic=32-bit;; 11862 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11863 libsuff=32 shlibsuff=N32 libmagic=N32;; 11864 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11865 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11866 *) libsuff= shlibsuff= libmagic=never-match;; 11867 esac 11868 ;; 11869 esac 11870 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11871 shlibpath_overrides_runpath=no 11872 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11873 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11874 hardcode_into_libs=yes 11875 ;; 11876 11877# No shared lib support for Linux oldld, aout, or coff. 11878linux*oldld* | linux*aout* | linux*coff*) 11879 dynamic_linker=no 11880 ;; 11881 11882linux*android*) 11883 version_type=none # Android doesn't support versioned libraries. 11884 need_lib_prefix=no 11885 need_version=no 11886 library_names_spec='$libname$release$shared_ext' 11887 soname_spec='$libname$release$shared_ext' 11888 finish_cmds= 11889 shlibpath_var=LD_LIBRARY_PATH 11890 shlibpath_overrides_runpath=yes 11891 11892 # This implies no fast_install, which is unacceptable. 11893 # Some rework will be needed to allow for fast_install 11894 # before this can be enabled. 11895 hardcode_into_libs=yes 11896 11897 dynamic_linker='Android linker' 11898 # Don't embed -rpath directories since the linker doesn't support them. 11899 hardcode_libdir_flag_spec='-L$libdir' 11900 ;; 11901 11902# This must be glibc/ELF. 11903linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11904 version_type=linux # correct to gnu/linux during the next big refactor 11905 need_lib_prefix=no 11906 need_version=no 11907 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11908 soname_spec='$libname$release$shared_ext$major' 11909 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11910 shlibpath_var=LD_LIBRARY_PATH 11911 shlibpath_overrides_runpath=no 11912 11913 # Some binutils ld are patched to set DT_RUNPATH 11914 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11915 $as_echo_n "(cached) " >&6 11916else 11917 lt_cv_shlibpath_overrides_runpath=no 11918 save_LDFLAGS=$LDFLAGS 11919 save_libdir=$libdir 11920 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11921 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11923/* end confdefs.h. */ 11924 11925int 11926main () 11927{ 11928 11929 ; 11930 return 0; 11931} 11932_ACEOF 11933if ac_fn_c_try_link "$LINENO"; then : 11934 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11935 lt_cv_shlibpath_overrides_runpath=yes 11936fi 11937fi 11938rm -f core conftest.err conftest.$ac_objext \ 11939 conftest$ac_exeext conftest.$ac_ext 11940 LDFLAGS=$save_LDFLAGS 11941 libdir=$save_libdir 11942 11943fi 11944 11945 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11946 11947 # This implies no fast_install, which is unacceptable. 11948 # Some rework will be needed to allow for fast_install 11949 # before this can be enabled. 11950 hardcode_into_libs=yes 11951 11952 # Ideally, we could use ldconfig to report *all* directores which are 11953 # searched for libraries, however this is still not possible. Aside from not 11954 # being certain /sbin/ldconfig is available, command 11955 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11956 # even though it is searched at run-time. Try to do the best guess by 11957 # appending ld.so.conf contents (and includes) to the search path. 11958 if test -f /etc/ld.so.conf; then 11959 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' ' '` 11960 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11961 fi 11962 11963 # We used to test for /lib/ld.so.1 and disable shared libraries on 11964 # powerpc, because MkLinux only supported shared libraries with the 11965 # GNU dynamic linker. Since this was broken with cross compilers, 11966 # most powerpc-linux boxes support dynamic linking these days and 11967 # people can always --disable-shared, the test was removed, and we 11968 # assume the GNU/Linux dynamic linker is in use. 11969 dynamic_linker='GNU/Linux ld.so' 11970 ;; 11971 11972netbsd*) 11973 version_type=sunos 11974 need_lib_prefix=no 11975 need_version=no 11976 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11977 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11978 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11979 dynamic_linker='NetBSD (a.out) ld.so' 11980 else 11981 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11982 soname_spec='$libname$release$shared_ext$major' 11983 dynamic_linker='NetBSD ld.elf_so' 11984 fi 11985 shlibpath_var=LD_LIBRARY_PATH 11986 shlibpath_overrides_runpath=yes 11987 hardcode_into_libs=yes 11988 ;; 11989 11990newsos6) 11991 version_type=linux # correct to gnu/linux during the next big refactor 11992 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11993 shlibpath_var=LD_LIBRARY_PATH 11994 shlibpath_overrides_runpath=yes 11995 ;; 11996 11997*nto* | *qnx*) 11998 version_type=qnx 11999 need_lib_prefix=no 12000 need_version=no 12001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12002 soname_spec='$libname$release$shared_ext$major' 12003 shlibpath_var=LD_LIBRARY_PATH 12004 shlibpath_overrides_runpath=no 12005 hardcode_into_libs=yes 12006 dynamic_linker='ldqnx.so' 12007 ;; 12008 12009openbsd* | bitrig*) 12010 version_type=sunos 12011 sys_lib_dlsearch_path_spec=/usr/lib 12012 need_lib_prefix=no 12013 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12014 need_version=no 12015 else 12016 need_version=yes 12017 fi 12018 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12019 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12020 shlibpath_var=LD_LIBRARY_PATH 12021 shlibpath_overrides_runpath=yes 12022 ;; 12023 12024os2*) 12025 libname_spec='$name' 12026 version_type=windows 12027 shrext_cmds=.dll 12028 need_version=no 12029 need_lib_prefix=no 12030 # OS/2 can only load a DLL with a base name of 8 characters or less. 12031 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12032 v=$($ECHO $release$versuffix | tr -d .-); 12033 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12034 $ECHO $n$v`$shared_ext' 12035 library_names_spec='${libname}_dll.$libext' 12036 dynamic_linker='OS/2 ld.exe' 12037 shlibpath_var=BEGINLIBPATH 12038 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12039 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12040 postinstall_cmds='base_file=`basename \$file`~ 12041 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12042 dldir=$destdir/`dirname \$dlpath`~ 12043 test -d \$dldir || mkdir -p \$dldir~ 12044 $install_prog $dir/$dlname \$dldir/$dlname~ 12045 chmod a+x \$dldir/$dlname~ 12046 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12047 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12048 fi' 12049 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12050 dlpath=$dir/\$dldll~ 12051 $RM \$dlpath' 12052 ;; 12053 12054osf3* | osf4* | osf5*) 12055 version_type=osf 12056 need_lib_prefix=no 12057 need_version=no 12058 soname_spec='$libname$release$shared_ext$major' 12059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12060 shlibpath_var=LD_LIBRARY_PATH 12061 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12062 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12063 ;; 12064 12065rdos*) 12066 dynamic_linker=no 12067 ;; 12068 12069solaris*) 12070 version_type=linux # correct to gnu/linux during the next big refactor 12071 need_lib_prefix=no 12072 need_version=no 12073 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12074 soname_spec='$libname$release$shared_ext$major' 12075 shlibpath_var=LD_LIBRARY_PATH 12076 shlibpath_overrides_runpath=yes 12077 hardcode_into_libs=yes 12078 # ldd complains unless libraries are executable 12079 postinstall_cmds='chmod +x $lib' 12080 ;; 12081 12082sunos4*) 12083 version_type=sunos 12084 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12085 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12086 shlibpath_var=LD_LIBRARY_PATH 12087 shlibpath_overrides_runpath=yes 12088 if test yes = "$with_gnu_ld"; then 12089 need_lib_prefix=no 12090 fi 12091 need_version=yes 12092 ;; 12093 12094sysv4 | sysv4.3*) 12095 version_type=linux # correct to gnu/linux during the next big refactor 12096 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12097 soname_spec='$libname$release$shared_ext$major' 12098 shlibpath_var=LD_LIBRARY_PATH 12099 case $host_vendor in 12100 sni) 12101 shlibpath_overrides_runpath=no 12102 need_lib_prefix=no 12103 runpath_var=LD_RUN_PATH 12104 ;; 12105 siemens) 12106 need_lib_prefix=no 12107 ;; 12108 motorola) 12109 need_lib_prefix=no 12110 need_version=no 12111 shlibpath_overrides_runpath=no 12112 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12113 ;; 12114 esac 12115 ;; 12116 12117sysv4*MP*) 12118 if test -d /usr/nec; then 12119 version_type=linux # correct to gnu/linux during the next big refactor 12120 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12121 soname_spec='$libname$shared_ext.$major' 12122 shlibpath_var=LD_LIBRARY_PATH 12123 fi 12124 ;; 12125 12126sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12127 version_type=sco 12128 need_lib_prefix=no 12129 need_version=no 12130 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12131 soname_spec='$libname$release$shared_ext$major' 12132 shlibpath_var=LD_LIBRARY_PATH 12133 shlibpath_overrides_runpath=yes 12134 hardcode_into_libs=yes 12135 if test yes = "$with_gnu_ld"; then 12136 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12137 else 12138 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12139 case $host_os in 12140 sco3.2v5*) 12141 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12142 ;; 12143 esac 12144 fi 12145 sys_lib_dlsearch_path_spec='/usr/lib' 12146 ;; 12147 12148tpf*) 12149 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12150 version_type=linux # correct to gnu/linux during the next big refactor 12151 need_lib_prefix=no 12152 need_version=no 12153 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12154 shlibpath_var=LD_LIBRARY_PATH 12155 shlibpath_overrides_runpath=no 12156 hardcode_into_libs=yes 12157 ;; 12158 12159uts4*) 12160 version_type=linux # correct to gnu/linux during the next big refactor 12161 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12162 soname_spec='$libname$release$shared_ext$major' 12163 shlibpath_var=LD_LIBRARY_PATH 12164 ;; 12165 12166*) 12167 dynamic_linker=no 12168 ;; 12169esac 12170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12171$as_echo "$dynamic_linker" >&6; } 12172test no = "$dynamic_linker" && can_build_shared=no 12173 12174variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12175if test yes = "$GCC"; then 12176 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12177fi 12178 12179if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12180 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12181fi 12182 12183if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12184 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12185fi 12186 12187# lt_cv_sys_lib... is unaugmented for libtool script decls... 12188lt_cv_sys_lib_dlsearch_path_spec=$sys_lib_dlsearch_path_spec 12189 12190# ..but sys_lib_... needs LT_SYS_LIBRARY_PATH munging for 12191# LT_SYS_DLSEARCH_PATH macro in ltdl.m4 to work with the correct paths: 12192func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12286$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12287hardcode_action= 12288if test -n "$hardcode_libdir_flag_spec" || 12289 test -n "$runpath_var" || 12290 test yes = "$hardcode_automatic"; then 12291 12292 # We can hardcode non-existent directories. 12293 if test no != "$hardcode_direct" && 12294 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12295 # have to relink, otherwise we might link with an installed library 12296 # when we should be linking with a yet-to-be-installed one 12297 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12298 test no != "$hardcode_minus_L"; then 12299 # Linking always hardcodes the temporary library directory. 12300 hardcode_action=relink 12301 else 12302 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12303 hardcode_action=immediate 12304 fi 12305else 12306 # We cannot hardcode anything, or else we can only hardcode existing 12307 # directories. 12308 hardcode_action=unsupported 12309fi 12310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12311$as_echo "$hardcode_action" >&6; } 12312 12313if test relink = "$hardcode_action" || 12314 test yes = "$inherit_rpath"; then 12315 # Fast installation is not supported 12316 enable_fast_install=no 12317elif test yes = "$shlibpath_overrides_runpath" || 12318 test no = "$enable_shared"; then 12319 # Fast installation is not necessary 12320 enable_fast_install=needless 12321fi 12322 12323 12324 12325 12326 12327 12328 if test yes != "$enable_dlopen"; then 12329 enable_dlopen=unknown 12330 enable_dlopen_self=unknown 12331 enable_dlopen_self_static=unknown 12332else 12333 lt_cv_dlopen=no 12334 lt_cv_dlopen_libs= 12335 12336 case $host_os in 12337 beos*) 12338 lt_cv_dlopen=load_add_on 12339 lt_cv_dlopen_libs= 12340 lt_cv_dlopen_self=yes 12341 ;; 12342 12343 mingw* | pw32* | cegcc*) 12344 lt_cv_dlopen=LoadLibrary 12345 lt_cv_dlopen_libs= 12346 ;; 12347 12348 cygwin*) 12349 lt_cv_dlopen=dlopen 12350 lt_cv_dlopen_libs= 12351 ;; 12352 12353 darwin*) 12354 # if libdl is installed we need to link against it 12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12356$as_echo_n "checking for dlopen in -ldl... " >&6; } 12357if ${ac_cv_lib_dl_dlopen+:} false; then : 12358 $as_echo_n "(cached) " >&6 12359else 12360 ac_check_lib_save_LIBS=$LIBS 12361LIBS="-ldl $LIBS" 12362cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12363/* end confdefs.h. */ 12364 12365/* Override any GCC internal prototype to avoid an error. 12366 Use char because int might match the return type of a GCC 12367 builtin and then its argument prototype would still apply. */ 12368#ifdef __cplusplus 12369extern "C" 12370#endif 12371char dlopen (); 12372int 12373main () 12374{ 12375return dlopen (); 12376 ; 12377 return 0; 12378} 12379_ACEOF 12380if ac_fn_c_try_link "$LINENO"; then : 12381 ac_cv_lib_dl_dlopen=yes 12382else 12383 ac_cv_lib_dl_dlopen=no 12384fi 12385rm -f core conftest.err conftest.$ac_objext \ 12386 conftest$ac_exeext conftest.$ac_ext 12387LIBS=$ac_check_lib_save_LIBS 12388fi 12389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12390$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12391if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12392 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12393else 12394 12395 lt_cv_dlopen=dyld 12396 lt_cv_dlopen_libs= 12397 lt_cv_dlopen_self=yes 12398 12399fi 12400 12401 ;; 12402 12403 tpf*) 12404 # Don't try to run any link tests for TPF. We know it's impossible 12405 # because TPF is a cross-compiler, and we know how we open DSOs. 12406 lt_cv_dlopen=dlopen 12407 lt_cv_dlopen_libs= 12408 lt_cv_dlopen_self=no 12409 ;; 12410 12411 *) 12412 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12413if test "x$ac_cv_func_shl_load" = xyes; then : 12414 lt_cv_dlopen=shl_load 12415else 12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12417$as_echo_n "checking for shl_load in -ldld... " >&6; } 12418if ${ac_cv_lib_dld_shl_load+:} false; then : 12419 $as_echo_n "(cached) " >&6 12420else 12421 ac_check_lib_save_LIBS=$LIBS 12422LIBS="-ldld $LIBS" 12423cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12424/* end confdefs.h. */ 12425 12426/* Override any GCC internal prototype to avoid an error. 12427 Use char because int might match the return type of a GCC 12428 builtin and then its argument prototype would still apply. */ 12429#ifdef __cplusplus 12430extern "C" 12431#endif 12432char shl_load (); 12433int 12434main () 12435{ 12436return shl_load (); 12437 ; 12438 return 0; 12439} 12440_ACEOF 12441if ac_fn_c_try_link "$LINENO"; then : 12442 ac_cv_lib_dld_shl_load=yes 12443else 12444 ac_cv_lib_dld_shl_load=no 12445fi 12446rm -f core conftest.err conftest.$ac_objext \ 12447 conftest$ac_exeext conftest.$ac_ext 12448LIBS=$ac_check_lib_save_LIBS 12449fi 12450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12451$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12452if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12453 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12454else 12455 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12456if test "x$ac_cv_func_dlopen" = xyes; then : 12457 lt_cv_dlopen=dlopen 12458else 12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12460$as_echo_n "checking for dlopen in -ldl... " >&6; } 12461if ${ac_cv_lib_dl_dlopen+:} false; then : 12462 $as_echo_n "(cached) " >&6 12463else 12464 ac_check_lib_save_LIBS=$LIBS 12465LIBS="-ldl $LIBS" 12466cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12467/* end confdefs.h. */ 12468 12469/* Override any GCC internal prototype to avoid an error. 12470 Use char because int might match the return type of a GCC 12471 builtin and then its argument prototype would still apply. */ 12472#ifdef __cplusplus 12473extern "C" 12474#endif 12475char dlopen (); 12476int 12477main () 12478{ 12479return dlopen (); 12480 ; 12481 return 0; 12482} 12483_ACEOF 12484if ac_fn_c_try_link "$LINENO"; then : 12485 ac_cv_lib_dl_dlopen=yes 12486else 12487 ac_cv_lib_dl_dlopen=no 12488fi 12489rm -f core conftest.err conftest.$ac_objext \ 12490 conftest$ac_exeext conftest.$ac_ext 12491LIBS=$ac_check_lib_save_LIBS 12492fi 12493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12494$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12495if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12496 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12497else 12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12499$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12500if ${ac_cv_lib_svld_dlopen+:} false; then : 12501 $as_echo_n "(cached) " >&6 12502else 12503 ac_check_lib_save_LIBS=$LIBS 12504LIBS="-lsvld $LIBS" 12505cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12506/* end confdefs.h. */ 12507 12508/* Override any GCC internal prototype to avoid an error. 12509 Use char because int might match the return type of a GCC 12510 builtin and then its argument prototype would still apply. */ 12511#ifdef __cplusplus 12512extern "C" 12513#endif 12514char dlopen (); 12515int 12516main () 12517{ 12518return dlopen (); 12519 ; 12520 return 0; 12521} 12522_ACEOF 12523if ac_fn_c_try_link "$LINENO"; then : 12524 ac_cv_lib_svld_dlopen=yes 12525else 12526 ac_cv_lib_svld_dlopen=no 12527fi 12528rm -f core conftest.err conftest.$ac_objext \ 12529 conftest$ac_exeext conftest.$ac_ext 12530LIBS=$ac_check_lib_save_LIBS 12531fi 12532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12533$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12534if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12535 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12536else 12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12538$as_echo_n "checking for dld_link in -ldld... " >&6; } 12539if ${ac_cv_lib_dld_dld_link+:} false; then : 12540 $as_echo_n "(cached) " >&6 12541else 12542 ac_check_lib_save_LIBS=$LIBS 12543LIBS="-ldld $LIBS" 12544cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12545/* end confdefs.h. */ 12546 12547/* Override any GCC internal prototype to avoid an error. 12548 Use char because int might match the return type of a GCC 12549 builtin and then its argument prototype would still apply. */ 12550#ifdef __cplusplus 12551extern "C" 12552#endif 12553char dld_link (); 12554int 12555main () 12556{ 12557return dld_link (); 12558 ; 12559 return 0; 12560} 12561_ACEOF 12562if ac_fn_c_try_link "$LINENO"; then : 12563 ac_cv_lib_dld_dld_link=yes 12564else 12565 ac_cv_lib_dld_dld_link=no 12566fi 12567rm -f core conftest.err conftest.$ac_objext \ 12568 conftest$ac_exeext conftest.$ac_ext 12569LIBS=$ac_check_lib_save_LIBS 12570fi 12571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12572$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12573if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12574 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12575fi 12576 12577 12578fi 12579 12580 12581fi 12582 12583 12584fi 12585 12586 12587fi 12588 12589 12590fi 12591 12592 ;; 12593 esac 12594 12595 if test no = "$lt_cv_dlopen"; then 12596 enable_dlopen=no 12597 else 12598 enable_dlopen=yes 12599 fi 12600 12601 case $lt_cv_dlopen in 12602 dlopen) 12603 save_CPPFLAGS=$CPPFLAGS 12604 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12605 12606 save_LDFLAGS=$LDFLAGS 12607 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12608 12609 save_LIBS=$LIBS 12610 LIBS="$lt_cv_dlopen_libs $LIBS" 12611 12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12613$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12614if ${lt_cv_dlopen_self+:} false; then : 12615 $as_echo_n "(cached) " >&6 12616else 12617 if test yes = "$cross_compiling"; then : 12618 lt_cv_dlopen_self=cross 12619else 12620 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12621 lt_status=$lt_dlunknown 12622 cat > conftest.$ac_ext <<_LT_EOF 12623#line $LINENO "configure" 12624#include "confdefs.h" 12625 12626#if HAVE_DLFCN_H 12627#include <dlfcn.h> 12628#endif 12629 12630#include <stdio.h> 12631 12632#ifdef RTLD_GLOBAL 12633# define LT_DLGLOBAL RTLD_GLOBAL 12634#else 12635# ifdef DL_GLOBAL 12636# define LT_DLGLOBAL DL_GLOBAL 12637# else 12638# define LT_DLGLOBAL 0 12639# endif 12640#endif 12641 12642/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12643 find out it does not work in some platform. */ 12644#ifndef LT_DLLAZY_OR_NOW 12645# ifdef RTLD_LAZY 12646# define LT_DLLAZY_OR_NOW RTLD_LAZY 12647# else 12648# ifdef DL_LAZY 12649# define LT_DLLAZY_OR_NOW DL_LAZY 12650# else 12651# ifdef RTLD_NOW 12652# define LT_DLLAZY_OR_NOW RTLD_NOW 12653# else 12654# ifdef DL_NOW 12655# define LT_DLLAZY_OR_NOW DL_NOW 12656# else 12657# define LT_DLLAZY_OR_NOW 0 12658# endif 12659# endif 12660# endif 12661# endif 12662#endif 12663 12664/* When -fvisibility=hidden is used, assume the code has been annotated 12665 correspondingly for the symbols needed. */ 12666#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12667int fnord () __attribute__((visibility("default"))); 12668#endif 12669 12670int fnord () { return 42; } 12671int main () 12672{ 12673 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12674 int status = $lt_dlunknown; 12675 12676 if (self) 12677 { 12678 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12679 else 12680 { 12681 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12682 else puts (dlerror ()); 12683 } 12684 /* dlclose (self); */ 12685 } 12686 else 12687 puts (dlerror ()); 12688 12689 return status; 12690} 12691_LT_EOF 12692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12693 (eval $ac_link) 2>&5 12694 ac_status=$? 12695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12696 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12697 (./conftest; exit; ) >&5 2>/dev/null 12698 lt_status=$? 12699 case x$lt_status in 12700 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12701 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12702 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12703 esac 12704 else : 12705 # compilation failed 12706 lt_cv_dlopen_self=no 12707 fi 12708fi 12709rm -fr conftest* 12710 12711 12712fi 12713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12714$as_echo "$lt_cv_dlopen_self" >&6; } 12715 12716 if test yes = "$lt_cv_dlopen_self"; then 12717 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12719$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12720if ${lt_cv_dlopen_self_static+:} false; then : 12721 $as_echo_n "(cached) " >&6 12722else 12723 if test yes = "$cross_compiling"; then : 12724 lt_cv_dlopen_self_static=cross 12725else 12726 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12727 lt_status=$lt_dlunknown 12728 cat > conftest.$ac_ext <<_LT_EOF 12729#line $LINENO "configure" 12730#include "confdefs.h" 12731 12732#if HAVE_DLFCN_H 12733#include <dlfcn.h> 12734#endif 12735 12736#include <stdio.h> 12737 12738#ifdef RTLD_GLOBAL 12739# define LT_DLGLOBAL RTLD_GLOBAL 12740#else 12741# ifdef DL_GLOBAL 12742# define LT_DLGLOBAL DL_GLOBAL 12743# else 12744# define LT_DLGLOBAL 0 12745# endif 12746#endif 12747 12748/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12749 find out it does not work in some platform. */ 12750#ifndef LT_DLLAZY_OR_NOW 12751# ifdef RTLD_LAZY 12752# define LT_DLLAZY_OR_NOW RTLD_LAZY 12753# else 12754# ifdef DL_LAZY 12755# define LT_DLLAZY_OR_NOW DL_LAZY 12756# else 12757# ifdef RTLD_NOW 12758# define LT_DLLAZY_OR_NOW RTLD_NOW 12759# else 12760# ifdef DL_NOW 12761# define LT_DLLAZY_OR_NOW DL_NOW 12762# else 12763# define LT_DLLAZY_OR_NOW 0 12764# endif 12765# endif 12766# endif 12767# endif 12768#endif 12769 12770/* When -fvisibility=hidden is used, assume the code has been annotated 12771 correspondingly for the symbols needed. */ 12772#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12773int fnord () __attribute__((visibility("default"))); 12774#endif 12775 12776int fnord () { return 42; } 12777int main () 12778{ 12779 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12780 int status = $lt_dlunknown; 12781 12782 if (self) 12783 { 12784 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12785 else 12786 { 12787 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12788 else puts (dlerror ()); 12789 } 12790 /* dlclose (self); */ 12791 } 12792 else 12793 puts (dlerror ()); 12794 12795 return status; 12796} 12797_LT_EOF 12798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12799 (eval $ac_link) 2>&5 12800 ac_status=$? 12801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12802 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12803 (./conftest; exit; ) >&5 2>/dev/null 12804 lt_status=$? 12805 case x$lt_status in 12806 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12807 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12808 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12809 esac 12810 else : 12811 # compilation failed 12812 lt_cv_dlopen_self_static=no 12813 fi 12814fi 12815rm -fr conftest* 12816 12817 12818fi 12819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12820$as_echo "$lt_cv_dlopen_self_static" >&6; } 12821 fi 12822 12823 CPPFLAGS=$save_CPPFLAGS 12824 LDFLAGS=$save_LDFLAGS 12825 LIBS=$save_LIBS 12826 ;; 12827 esac 12828 12829 case $lt_cv_dlopen_self in 12830 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12831 *) enable_dlopen_self=unknown ;; 12832 esac 12833 12834 case $lt_cv_dlopen_self_static in 12835 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12836 *) enable_dlopen_self_static=unknown ;; 12837 esac 12838fi 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856striplib= 12857old_striplib= 12858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12859$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12860if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12861 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12862 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12864$as_echo "yes" >&6; } 12865else 12866# FIXME - insert some real tests, host_os isn't really good enough 12867 case $host_os in 12868 darwin*) 12869 if test -n "$STRIP"; then 12870 striplib="$STRIP -x" 12871 old_striplib="$STRIP -S" 12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12873$as_echo "yes" >&6; } 12874 else 12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12876$as_echo "no" >&6; } 12877 fi 12878 ;; 12879 *) 12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12881$as_echo "no" >&6; } 12882 ;; 12883 esac 12884fi 12885 12886 12887 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 # Report what library types will actually be built 12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12899$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12901$as_echo "$can_build_shared" >&6; } 12902 12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12904$as_echo_n "checking whether to build shared libraries... " >&6; } 12905 test no = "$can_build_shared" && enable_shared=no 12906 12907 # On AIX, shared libraries and static libraries use the same namespace, and 12908 # are all built from PIC. 12909 case $host_os in 12910 aix3*) 12911 test yes = "$enable_shared" && enable_static=no 12912 if test -n "$RANLIB"; then 12913 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12914 postinstall_cmds='$RANLIB $lib' 12915 fi 12916 ;; 12917 12918 aix[4-9]*) 12919 if test ia64 != "$host_cpu"; then 12920 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12921 yes,aix,yes) ;; # shared object as lib.so file only 12922 yes,svr4,*) ;; # shared object as lib.so archive member only 12923 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12924 esac 12925 fi 12926 ;; 12927 esac 12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12929$as_echo "$enable_shared" >&6; } 12930 12931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12932$as_echo_n "checking whether to build static libraries... " >&6; } 12933 # Make sure either enable_shared or enable_static is yes. 12934 test yes = "$enable_shared" || enable_static=yes 12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12936$as_echo "$enable_static" >&6; } 12937 12938 12939 12940 12941fi 12942ac_ext=c 12943ac_cpp='$CPP $CPPFLAGS' 12944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12946ac_compiler_gnu=$ac_cv_c_compiler_gnu 12947 12948CC=$lt_save_CC 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 ac_config_commands="$ac_config_commands libtool" 12965 12966 12967 12968 12969# Only expand once: 12970 12971 12972ac_ext=cpp 12973ac_cpp='$CXXCPP $CPPFLAGS' 12974ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12975ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12976ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12977if test -z "$CXX"; then 12978 if test -n "$CCC"; then 12979 CXX=$CCC 12980 else 12981 if test -n "$ac_tool_prefix"; then 12982 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12983 do 12984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12985set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12987$as_echo_n "checking for $ac_word... " >&6; } 12988if ${ac_cv_prog_CXX+:} false; then : 12989 $as_echo_n "(cached) " >&6 12990else 12991 if test -n "$CXX"; then 12992 ac_cv_prog_CXX="$CXX" # Let the user override the test. 12993else 12994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12995for as_dir in $PATH 12996do 12997 IFS=$as_save_IFS 12998 test -z "$as_dir" && as_dir=. 12999 for ac_exec_ext in '' $ac_executable_extensions; do 13000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13001 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 13002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13003 break 2 13004 fi 13005done 13006 done 13007IFS=$as_save_IFS 13008 13009fi 13010fi 13011CXX=$ac_cv_prog_CXX 13012if test -n "$CXX"; then 13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 13014$as_echo "$CXX" >&6; } 13015else 13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13017$as_echo "no" >&6; } 13018fi 13019 13020 13021 test -n "$CXX" && break 13022 done 13023fi 13024if test -z "$CXX"; then 13025 ac_ct_CXX=$CXX 13026 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 13027do 13028 # Extract the first word of "$ac_prog", so it can be a program name with args. 13029set dummy $ac_prog; ac_word=$2 13030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13031$as_echo_n "checking for $ac_word... " >&6; } 13032if ${ac_cv_prog_ac_ct_CXX+:} false; then : 13033 $as_echo_n "(cached) " >&6 13034else 13035 if test -n "$ac_ct_CXX"; then 13036 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 13037else 13038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13039for as_dir in $PATH 13040do 13041 IFS=$as_save_IFS 13042 test -z "$as_dir" && as_dir=. 13043 for ac_exec_ext in '' $ac_executable_extensions; do 13044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13045 ac_cv_prog_ac_ct_CXX="$ac_prog" 13046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13047 break 2 13048 fi 13049done 13050 done 13051IFS=$as_save_IFS 13052 13053fi 13054fi 13055ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 13056if test -n "$ac_ct_CXX"; then 13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 13058$as_echo "$ac_ct_CXX" >&6; } 13059else 13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13061$as_echo "no" >&6; } 13062fi 13063 13064 13065 test -n "$ac_ct_CXX" && break 13066done 13067 13068 if test "x$ac_ct_CXX" = x; then 13069 CXX="g++" 13070 else 13071 case $cross_compiling:$ac_tool_warned in 13072yes:) 13073{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13075ac_tool_warned=yes ;; 13076esac 13077 CXX=$ac_ct_CXX 13078 fi 13079fi 13080 13081 fi 13082fi 13083# Provide some information about the compiler. 13084$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 13085set X $ac_compile 13086ac_compiler=$2 13087for ac_option in --version -v -V -qversion; do 13088 { { ac_try="$ac_compiler $ac_option >&5" 13089case "(($ac_try" in 13090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13091 *) ac_try_echo=$ac_try;; 13092esac 13093eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 13094$as_echo "$ac_try_echo"; } >&5 13095 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 13096 ac_status=$? 13097 if test -s conftest.err; then 13098 sed '10a\ 13099... rest of stderr output deleted ... 13100 10q' conftest.err >conftest.er1 13101 cat conftest.er1 >&5 13102 fi 13103 rm -f conftest.er1 conftest.err 13104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13105 test $ac_status = 0; } 13106done 13107 13108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 13109$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 13110if ${ac_cv_cxx_compiler_gnu+:} false; then : 13111 $as_echo_n "(cached) " >&6 13112else 13113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13114/* end confdefs.h. */ 13115 13116int 13117main () 13118{ 13119#ifndef __GNUC__ 13120 choke me 13121#endif 13122 13123 ; 13124 return 0; 13125} 13126_ACEOF 13127if ac_fn_cxx_try_compile "$LINENO"; then : 13128 ac_compiler_gnu=yes 13129else 13130 ac_compiler_gnu=no 13131fi 13132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13133ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 13134 13135fi 13136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 13137$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 13138if test $ac_compiler_gnu = yes; then 13139 GXX=yes 13140else 13141 GXX= 13142fi 13143ac_test_CXXFLAGS=${CXXFLAGS+set} 13144ac_save_CXXFLAGS=$CXXFLAGS 13145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 13146$as_echo_n "checking whether $CXX accepts -g... " >&6; } 13147if ${ac_cv_prog_cxx_g+:} false; then : 13148 $as_echo_n "(cached) " >&6 13149else 13150 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 13151 ac_cxx_werror_flag=yes 13152 ac_cv_prog_cxx_g=no 13153 CXXFLAGS="-g" 13154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13155/* end confdefs.h. */ 13156 13157int 13158main () 13159{ 13160 13161 ; 13162 return 0; 13163} 13164_ACEOF 13165if ac_fn_cxx_try_compile "$LINENO"; then : 13166 ac_cv_prog_cxx_g=yes 13167else 13168 CXXFLAGS="" 13169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13170/* end confdefs.h. */ 13171 13172int 13173main () 13174{ 13175 13176 ; 13177 return 0; 13178} 13179_ACEOF 13180if ac_fn_cxx_try_compile "$LINENO"; then : 13181 13182else 13183 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 13184 CXXFLAGS="-g" 13185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13186/* end confdefs.h. */ 13187 13188int 13189main () 13190{ 13191 13192 ; 13193 return 0; 13194} 13195_ACEOF 13196if ac_fn_cxx_try_compile "$LINENO"; then : 13197 ac_cv_prog_cxx_g=yes 13198fi 13199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13200fi 13201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13202fi 13203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13204 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 13205fi 13206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 13207$as_echo "$ac_cv_prog_cxx_g" >&6; } 13208if test "$ac_test_CXXFLAGS" = set; then 13209 CXXFLAGS=$ac_save_CXXFLAGS 13210elif test $ac_cv_prog_cxx_g = yes; then 13211 if test "$GXX" = yes; then 13212 CXXFLAGS="-g -O2" 13213 else 13214 CXXFLAGS="-g" 13215 fi 13216else 13217 if test "$GXX" = yes; then 13218 CXXFLAGS="-O2" 13219 else 13220 CXXFLAGS= 13221 fi 13222fi 13223ac_ext=c 13224ac_cpp='$CPP $CPPFLAGS' 13225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13227ac_compiler_gnu=$ac_cv_c_compiler_gnu 13228 13229depcc="$CXX" am_compiler_list= 13230 13231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 13232$as_echo_n "checking dependency style of $depcc... " >&6; } 13233if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 13234 $as_echo_n "(cached) " >&6 13235else 13236 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 13237 # We make a subdir and do the tests there. Otherwise we can end up 13238 # making bogus files that we don't know about and never remove. For 13239 # instance it was reported that on HP-UX the gcc test will end up 13240 # making a dummy file named 'D' -- because '-MD' means "put the output 13241 # in D". 13242 rm -rf conftest.dir 13243 mkdir conftest.dir 13244 # Copy depcomp to subdir because otherwise we won't find it if we're 13245 # using a relative directory. 13246 cp "$am_depcomp" conftest.dir 13247 cd conftest.dir 13248 # We will build objects and dependencies in a subdirectory because 13249 # it helps to detect inapplicable dependency modes. For instance 13250 # both Tru64's cc and ICC support -MD to output dependencies as a 13251 # side effect of compilation, but ICC will put the dependencies in 13252 # the current directory while Tru64 will put them in the object 13253 # directory. 13254 mkdir sub 13255 13256 am_cv_CXX_dependencies_compiler_type=none 13257 if test "$am_compiler_list" = ""; then 13258 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 13259 fi 13260 am__universal=false 13261 case " $depcc " in #( 13262 *\ -arch\ *\ -arch\ *) am__universal=true ;; 13263 esac 13264 13265 for depmode in $am_compiler_list; do 13266 # Setup a source with many dependencies, because some compilers 13267 # like to wrap large dependency lists on column 80 (with \), and 13268 # we should not choose a depcomp mode which is confused by this. 13269 # 13270 # We need to recreate these files for each test, as the compiler may 13271 # overwrite some of them when testing with obscure command lines. 13272 # This happens at least with the AIX C compiler. 13273 : > sub/conftest.c 13274 for i in 1 2 3 4 5 6; do 13275 echo '#include "conftst'$i'.h"' >> sub/conftest.c 13276 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 13277 # Solaris 10 /bin/sh. 13278 echo '/* dummy */' > sub/conftst$i.h 13279 done 13280 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 13281 13282 # We check with '-c' and '-o' for the sake of the "dashmstdout" 13283 # mode. It turns out that the SunPro C++ compiler does not properly 13284 # handle '-M -o', and we need to detect this. Also, some Intel 13285 # versions had trouble with output in subdirs. 13286 am__obj=sub/conftest.${OBJEXT-o} 13287 am__minus_obj="-o $am__obj" 13288 case $depmode in 13289 gcc) 13290 # This depmode causes a compiler race in universal mode. 13291 test "$am__universal" = false || continue 13292 ;; 13293 nosideeffect) 13294 # After this tag, mechanisms are not by side-effect, so they'll 13295 # only be used when explicitly requested. 13296 if test "x$enable_dependency_tracking" = xyes; then 13297 continue 13298 else 13299 break 13300 fi 13301 ;; 13302 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 13303 # This compiler won't grok '-c -o', but also, the minuso test has 13304 # not run yet. These depmodes are late enough in the game, and 13305 # so weak that their functioning should not be impacted. 13306 am__obj=conftest.${OBJEXT-o} 13307 am__minus_obj= 13308 ;; 13309 none) break ;; 13310 esac 13311 if depmode=$depmode \ 13312 source=sub/conftest.c object=$am__obj \ 13313 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 13314 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 13315 >/dev/null 2>conftest.err && 13316 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 13317 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 13318 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 13319 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 13320 # icc doesn't choke on unknown options, it will just issue warnings 13321 # or remarks (even with -Werror). So we grep stderr for any message 13322 # that says an option was ignored or not supported. 13323 # When given -MP, icc 7.0 and 7.1 complain thusly: 13324 # icc: Command line warning: ignoring option '-M'; no argument required 13325 # The diagnosis changed in icc 8.0: 13326 # icc: Command line remark: option '-MP' not supported 13327 if (grep 'ignoring option' conftest.err || 13328 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13329 am_cv_CXX_dependencies_compiler_type=$depmode 13330 break 13331 fi 13332 fi 13333 done 13334 13335 cd .. 13336 rm -rf conftest.dir 13337else 13338 am_cv_CXX_dependencies_compiler_type=none 13339fi 13340 13341fi 13342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 13343$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 13344CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 13345 13346 if 13347 test "x$enable_dependency_tracking" != xno \ 13348 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 13349 am__fastdepCXX_TRUE= 13350 am__fastdepCXX_FALSE='#' 13351else 13352 am__fastdepCXX_TRUE='#' 13353 am__fastdepCXX_FALSE= 13354fi 13355 13356 13357 13358 13359 13360func_stripname_cnf () 13361{ 13362 case $2 in 13363 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 13364 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 13365 esac 13366} # func_stripname_cnf 13367 13368 if test -n "$CXX" && ( test no != "$CXX" && 13369 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 13370 (test g++ != "$CXX"))); then 13371 ac_ext=cpp 13372ac_cpp='$CXXCPP $CPPFLAGS' 13373ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13374ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13375ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13377$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 13378if test -z "$CXXCPP"; then 13379 if ${ac_cv_prog_CXXCPP+:} false; then : 13380 $as_echo_n "(cached) " >&6 13381else 13382 # Double quotes because CXXCPP needs to be expanded 13383 for CXXCPP in "$CXX -E" "/lib/cpp" 13384 do 13385 ac_preproc_ok=false 13386for ac_cxx_preproc_warn_flag in '' yes 13387do 13388 # Use a header file that comes with gcc, so configuring glibc 13389 # with a fresh cross-compiler works. 13390 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13391 # <limits.h> exists even on freestanding compilers. 13392 # On the NeXT, cc -E runs the code through the compiler's parser, 13393 # not just through cpp. "Syntax error" is here to catch this case. 13394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13395/* end confdefs.h. */ 13396#ifdef __STDC__ 13397# include <limits.h> 13398#else 13399# include <assert.h> 13400#endif 13401 Syntax error 13402_ACEOF 13403if ac_fn_cxx_try_cpp "$LINENO"; then : 13404 13405else 13406 # Broken: fails on valid input. 13407continue 13408fi 13409rm -f conftest.err conftest.i conftest.$ac_ext 13410 13411 # OK, works on sane cases. Now check whether nonexistent headers 13412 # can be detected and how. 13413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13414/* end confdefs.h. */ 13415#include <ac_nonexistent.h> 13416_ACEOF 13417if ac_fn_cxx_try_cpp "$LINENO"; then : 13418 # Broken: success on invalid input. 13419continue 13420else 13421 # Passes both tests. 13422ac_preproc_ok=: 13423break 13424fi 13425rm -f conftest.err conftest.i conftest.$ac_ext 13426 13427done 13428# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13429rm -f conftest.i conftest.err conftest.$ac_ext 13430if $ac_preproc_ok; then : 13431 break 13432fi 13433 13434 done 13435 ac_cv_prog_CXXCPP=$CXXCPP 13436 13437fi 13438 CXXCPP=$ac_cv_prog_CXXCPP 13439else 13440 ac_cv_prog_CXXCPP=$CXXCPP 13441fi 13442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13443$as_echo "$CXXCPP" >&6; } 13444ac_preproc_ok=false 13445for ac_cxx_preproc_warn_flag in '' yes 13446do 13447 # Use a header file that comes with gcc, so configuring glibc 13448 # with a fresh cross-compiler works. 13449 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13450 # <limits.h> exists even on freestanding compilers. 13451 # On the NeXT, cc -E runs the code through the compiler's parser, 13452 # not just through cpp. "Syntax error" is here to catch this case. 13453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13454/* end confdefs.h. */ 13455#ifdef __STDC__ 13456# include <limits.h> 13457#else 13458# include <assert.h> 13459#endif 13460 Syntax error 13461_ACEOF 13462if ac_fn_cxx_try_cpp "$LINENO"; then : 13463 13464else 13465 # Broken: fails on valid input. 13466continue 13467fi 13468rm -f conftest.err conftest.i conftest.$ac_ext 13469 13470 # OK, works on sane cases. Now check whether nonexistent headers 13471 # can be detected and how. 13472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13473/* end confdefs.h. */ 13474#include <ac_nonexistent.h> 13475_ACEOF 13476if ac_fn_cxx_try_cpp "$LINENO"; then : 13477 # Broken: success on invalid input. 13478continue 13479else 13480 # Passes both tests. 13481ac_preproc_ok=: 13482break 13483fi 13484rm -f conftest.err conftest.i conftest.$ac_ext 13485 13486done 13487# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13488rm -f conftest.i conftest.err conftest.$ac_ext 13489if $ac_preproc_ok; then : 13490 13491else 13492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13493$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13494as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13495See \`config.log' for more details" "$LINENO" 5; } 13496fi 13497 13498ac_ext=c 13499ac_cpp='$CPP $CPPFLAGS' 13500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13502ac_compiler_gnu=$ac_cv_c_compiler_gnu 13503 13504else 13505 _lt_caught_CXX_error=yes 13506fi 13507 13508ac_ext=cpp 13509ac_cpp='$CXXCPP $CPPFLAGS' 13510ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13511ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13512ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13513 13514archive_cmds_need_lc_CXX=no 13515allow_undefined_flag_CXX= 13516always_export_symbols_CXX=no 13517archive_expsym_cmds_CXX= 13518compiler_needs_object_CXX=no 13519export_dynamic_flag_spec_CXX= 13520hardcode_direct_CXX=no 13521hardcode_direct_absolute_CXX=no 13522hardcode_libdir_flag_spec_CXX= 13523hardcode_libdir_separator_CXX= 13524hardcode_minus_L_CXX=no 13525hardcode_shlibpath_var_CXX=unsupported 13526hardcode_automatic_CXX=no 13527inherit_rpath_CXX=no 13528module_cmds_CXX= 13529module_expsym_cmds_CXX= 13530link_all_deplibs_CXX=unknown 13531old_archive_cmds_CXX=$old_archive_cmds 13532reload_flag_CXX=$reload_flag 13533reload_cmds_CXX=$reload_cmds 13534no_undefined_flag_CXX= 13535whole_archive_flag_spec_CXX= 13536enable_shared_with_static_runtimes_CXX=no 13537 13538# Source file extension for C++ test sources. 13539ac_ext=cpp 13540 13541# Object file extension for compiled C++ test sources. 13542objext=o 13543objext_CXX=$objext 13544 13545# No sense in running all these tests if we already determined that 13546# the CXX compiler isn't working. Some variables (like enable_shared) 13547# are currently assumed to apply to all compilers on this platform, 13548# and will be corrupted by setting them based on a non-working compiler. 13549if test yes != "$_lt_caught_CXX_error"; then 13550 # Code to be used in simple compile tests 13551 lt_simple_compile_test_code="int some_variable = 0;" 13552 13553 # Code to be used in simple link tests 13554 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13555 13556 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13557 13558 13559 13560 13561 13562 13563# If no C compiler was specified, use CC. 13564LTCC=${LTCC-"$CC"} 13565 13566# If no C compiler flags were specified, use CFLAGS. 13567LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13568 13569# Allow CC to be a program name with arguments. 13570compiler=$CC 13571 13572 13573 # save warnings/boilerplate of simple test code 13574 ac_outfile=conftest.$ac_objext 13575echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13576eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13577_lt_compiler_boilerplate=`cat conftest.err` 13578$RM conftest* 13579 13580 ac_outfile=conftest.$ac_objext 13581echo "$lt_simple_link_test_code" >conftest.$ac_ext 13582eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13583_lt_linker_boilerplate=`cat conftest.err` 13584$RM -r conftest* 13585 13586 13587 # Allow CC to be a program name with arguments. 13588 lt_save_CC=$CC 13589 lt_save_CFLAGS=$CFLAGS 13590 lt_save_LD=$LD 13591 lt_save_GCC=$GCC 13592 GCC=$GXX 13593 lt_save_with_gnu_ld=$with_gnu_ld 13594 lt_save_path_LD=$lt_cv_path_LD 13595 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13596 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13597 else 13598 $as_unset lt_cv_prog_gnu_ld 13599 fi 13600 if test -n "${lt_cv_path_LDCXX+set}"; then 13601 lt_cv_path_LD=$lt_cv_path_LDCXX 13602 else 13603 $as_unset lt_cv_path_LD 13604 fi 13605 test -z "${LDCXX+set}" || LD=$LDCXX 13606 CC=${CXX-"c++"} 13607 CFLAGS=$CXXFLAGS 13608 compiler=$CC 13609 compiler_CXX=$CC 13610 func_cc_basename $compiler 13611cc_basename=$func_cc_basename_result 13612 13613 13614 if test -n "$compiler"; then 13615 # We don't want -fno-exception when compiling C++ code, so set the 13616 # no_builtin_flag separately 13617 if test yes = "$GXX"; then 13618 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13619 else 13620 lt_prog_compiler_no_builtin_flag_CXX= 13621 fi 13622 13623 if test yes = "$GXX"; then 13624 # Set up default GNU C++ configuration 13625 13626 13627 13628# Check whether --with-gnu-ld was given. 13629if test "${with_gnu_ld+set}" = set; then : 13630 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 13631else 13632 with_gnu_ld=no 13633fi 13634 13635ac_prog=ld 13636if test yes = "$GCC"; then 13637 # Check if gcc -print-prog-name=ld gives a path. 13638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13639$as_echo_n "checking for ld used by $CC... " >&6; } 13640 case $host in 13641 *-*-mingw*) 13642 # gcc leaves a trailing carriage return, which upsets mingw 13643 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13644 *) 13645 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13646 esac 13647 case $ac_prog in 13648 # Accept absolute paths. 13649 [\\/]* | ?:[\\/]*) 13650 re_direlt='/[^/][^/]*/\.\./' 13651 # Canonicalize the pathname of ld 13652 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13653 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13654 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13655 done 13656 test -z "$LD" && LD=$ac_prog 13657 ;; 13658 "") 13659 # If it fails, then pretend we aren't using GCC. 13660 ac_prog=ld 13661 ;; 13662 *) 13663 # If it is relative, then search for the first ld in PATH. 13664 with_gnu_ld=unknown 13665 ;; 13666 esac 13667elif test yes = "$with_gnu_ld"; then 13668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13669$as_echo_n "checking for GNU ld... " >&6; } 13670else 13671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13672$as_echo_n "checking for non-GNU ld... " >&6; } 13673fi 13674if ${lt_cv_path_LD+:} false; then : 13675 $as_echo_n "(cached) " >&6 13676else 13677 if test -z "$LD"; then 13678 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13679 for ac_dir in $PATH; do 13680 IFS=$lt_save_ifs 13681 test -z "$ac_dir" && ac_dir=. 13682 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13683 lt_cv_path_LD=$ac_dir/$ac_prog 13684 # Check to see if the program is GNU ld. I'd rather use --version, 13685 # but apparently some variants of GNU ld only accept -v. 13686 # Break only if it was the GNU/non-GNU ld that we prefer. 13687 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13688 *GNU* | *'with BFD'*) 13689 test no != "$with_gnu_ld" && break 13690 ;; 13691 *) 13692 test yes != "$with_gnu_ld" && break 13693 ;; 13694 esac 13695 fi 13696 done 13697 IFS=$lt_save_ifs 13698else 13699 lt_cv_path_LD=$LD # Let the user override the test with a path. 13700fi 13701fi 13702 13703LD=$lt_cv_path_LD 13704if test -n "$LD"; then 13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13706$as_echo "$LD" >&6; } 13707else 13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13709$as_echo "no" >&6; } 13710fi 13711test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13713$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13714if ${lt_cv_prog_gnu_ld+:} false; then : 13715 $as_echo_n "(cached) " >&6 13716else 13717 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13718case `$LD -v 2>&1 </dev/null` in 13719*GNU* | *'with BFD'*) 13720 lt_cv_prog_gnu_ld=yes 13721 ;; 13722*) 13723 lt_cv_prog_gnu_ld=no 13724 ;; 13725esac 13726fi 13727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13728$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13729with_gnu_ld=$lt_cv_prog_gnu_ld 13730 13731 13732 13733 13734 13735 13736 13737 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13738 # archiving commands below assume that GNU ld is being used. 13739 if test yes = "$with_gnu_ld"; then 13740 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13741 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13742 13743 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13744 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13745 13746 # If archive_cmds runs LD, not CC, wlarc should be empty 13747 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13748 # investigate it a little bit more. (MM) 13749 wlarc='$wl' 13750 13751 # ancient GNU ld didn't support --whole-archive et. al. 13752 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13753 $GREP 'no-whole-archive' > /dev/null; then 13754 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13755 else 13756 whole_archive_flag_spec_CXX= 13757 fi 13758 else 13759 with_gnu_ld=no 13760 wlarc= 13761 13762 # A generic and very simple default shared library creation 13763 # command for GNU C++ for the case where it uses the native 13764 # linker, instead of GNU ld. If possible, this setting should 13765 # overridden to take advantage of the native linker features on 13766 # the platform it is being used on. 13767 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13768 fi 13769 13770 # Commands to make compiler produce verbose output that lists 13771 # what "hidden" libraries, object files and flags are used when 13772 # linking a shared library. 13773 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13774 13775 else 13776 GXX=no 13777 with_gnu_ld=no 13778 wlarc= 13779 fi 13780 13781 # PORTME: fill in a description of your system's C++ link characteristics 13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13783$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13784 ld_shlibs_CXX=yes 13785 case $host_os in 13786 aix3*) 13787 # FIXME: insert proper C++ library support 13788 ld_shlibs_CXX=no 13789 ;; 13790 aix[4-9]*) 13791 if test ia64 = "$host_cpu"; then 13792 # On IA64, the linker does run time linking by default, so we don't 13793 # have to do anything special. 13794 aix_use_runtimelinking=no 13795 exp_sym_flag='-Bexport' 13796 no_entry_flag= 13797 else 13798 aix_use_runtimelinking=no 13799 13800 # Test if we are trying to use run time linking or normal 13801 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13802 # have runtime linking enabled, and use it for executables. 13803 # For shared libraries, we enable/disable runtime linking 13804 # depending on the kind of the shared library created - 13805 # when "with_aix_soname,aix_use_runtimelinking" is: 13806 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 13807 # "aix,yes" lib.so shared, rtl:yes, for executables 13808 # lib.a static archive 13809 # "both,no" lib.so.V(shr.o) shared, rtl:yes 13810 # lib.a(lib.so.V) shared, rtl:no, for executables 13811 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 13812 # lib.a(lib.so.V) shared, rtl:no 13813 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 13814 # lib.a static archive 13815 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13816 for ld_flag in $LDFLAGS; do 13817 case $ld_flag in 13818 *-brtl*) 13819 aix_use_runtimelinking=yes 13820 break 13821 ;; 13822 esac 13823 done 13824 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 13825 # With aix-soname=svr4, we create the lib.so.V shared archives only, 13826 # so we don't have lib.a shared libs to link our executables. 13827 # We have to force runtime linking in this case. 13828 aix_use_runtimelinking=yes 13829 LDFLAGS="$LDFLAGS -Wl,-brtl" 13830 fi 13831 ;; 13832 esac 13833 13834 exp_sym_flag='-bexport' 13835 no_entry_flag='-bnoentry' 13836 fi 13837 13838 # When large executables or shared objects are built, AIX ld can 13839 # have problems creating the table of contents. If linking a library 13840 # or program results in "error TOC overflow" add -mminimal-toc to 13841 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13842 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13843 13844 archive_cmds_CXX='' 13845 hardcode_direct_CXX=yes 13846 hardcode_direct_absolute_CXX=yes 13847 hardcode_libdir_separator_CXX=':' 13848 link_all_deplibs_CXX=yes 13849 file_list_spec_CXX='$wl-f,' 13850 case $with_aix_soname,$aix_use_runtimelinking in 13851 aix,*) ;; # no import file 13852 svr4,* | *,yes) # use import file 13853 # The Import File defines what to hardcode. 13854 hardcode_direct_CXX=no 13855 hardcode_direct_absolute_CXX=no 13856 ;; 13857 esac 13858 13859 if test yes = "$GXX"; then 13860 case $host_os in aix4.[012]|aix4.[012].*) 13861 # We only want to do this on AIX 4.2 and lower, the check 13862 # below for broken collect2 doesn't work under 4.3+ 13863 collect2name=`$CC -print-prog-name=collect2` 13864 if test -f "$collect2name" && 13865 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13866 then 13867 # We have reworked collect2 13868 : 13869 else 13870 # We have old collect2 13871 hardcode_direct_CXX=unsupported 13872 # It fails to find uninstalled libraries when the uninstalled 13873 # path is not listed in the libpath. Setting hardcode_minus_L 13874 # to unsupported forces relinking 13875 hardcode_minus_L_CXX=yes 13876 hardcode_libdir_flag_spec_CXX='-L$libdir' 13877 hardcode_libdir_separator_CXX= 13878 fi 13879 esac 13880 shared_flag='-shared' 13881 if test yes = "$aix_use_runtimelinking"; then 13882 shared_flag=$shared_flag' $wl-G' 13883 fi 13884 # Need to ensure runtime linking is disabled for the traditional 13885 # shared library, or the linker may eventually find shared libraries 13886 # /with/ Import File - we do not want to mix them. 13887 shared_flag_aix='-shared' 13888 shared_flag_svr4='-shared $wl-G' 13889 else 13890 # not using gcc 13891 if test ia64 = "$host_cpu"; then 13892 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13893 # chokes on -Wl,-G. The following line is correct: 13894 shared_flag='-G' 13895 else 13896 if test yes = "$aix_use_runtimelinking"; then 13897 shared_flag='$wl-G' 13898 else 13899 shared_flag='$wl-bM:SRE' 13900 fi 13901 shared_flag_aix='$wl-bM:SRE' 13902 shared_flag_svr4='$wl-G' 13903 fi 13904 fi 13905 13906 export_dynamic_flag_spec_CXX='$wl-bexpall' 13907 # It seems that -bexpall does not export symbols beginning with 13908 # underscore (_), so it is better to generate a list of symbols to 13909 # export. 13910 always_export_symbols_CXX=yes 13911 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 13912 # Warning - without using the other runtime loading flags (-brtl), 13913 # -berok will link without error, but may produce a broken library. 13914 # The "-G" linker flag allows undefined symbols. 13915 no_undefined_flag_CXX='-bernotok' 13916 # Determine the default libpath from the value encoded in an empty 13917 # executable. 13918 if test set = "${lt_cv_aix_libpath+set}"; then 13919 aix_libpath=$lt_cv_aix_libpath 13920else 13921 if ${lt_cv_aix_libpath__CXX+:} false; then : 13922 $as_echo_n "(cached) " >&6 13923else 13924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13925/* end confdefs.h. */ 13926 13927int 13928main () 13929{ 13930 13931 ; 13932 return 0; 13933} 13934_ACEOF 13935if ac_fn_cxx_try_link "$LINENO"; then : 13936 13937 lt_aix_libpath_sed=' 13938 /Import File Strings/,/^$/ { 13939 /^0/ { 13940 s/^0 *\([^ ]*\) *$/\1/ 13941 p 13942 } 13943 }' 13944 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13945 # Check for a 64-bit object if we didn't find anything. 13946 if test -z "$lt_cv_aix_libpath__CXX"; then 13947 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13948 fi 13949fi 13950rm -f core conftest.err conftest.$ac_objext \ 13951 conftest$ac_exeext conftest.$ac_ext 13952 if test -z "$lt_cv_aix_libpath__CXX"; then 13953 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13954 fi 13955 13956fi 13957 13958 aix_libpath=$lt_cv_aix_libpath__CXX 13959fi 13960 13961 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13962 13963 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 13964 else 13965 if test ia64 = "$host_cpu"; then 13966 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 13967 allow_undefined_flag_CXX="-z nodefs" 13968 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" 13969 else 13970 # Determine the default libpath from the value encoded in an 13971 # empty executable. 13972 if test set = "${lt_cv_aix_libpath+set}"; then 13973 aix_libpath=$lt_cv_aix_libpath 13974else 13975 if ${lt_cv_aix_libpath__CXX+:} false; then : 13976 $as_echo_n "(cached) " >&6 13977else 13978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13979/* end confdefs.h. */ 13980 13981int 13982main () 13983{ 13984 13985 ; 13986 return 0; 13987} 13988_ACEOF 13989if ac_fn_cxx_try_link "$LINENO"; then : 13990 13991 lt_aix_libpath_sed=' 13992 /Import File Strings/,/^$/ { 13993 /^0/ { 13994 s/^0 *\([^ ]*\) *$/\1/ 13995 p 13996 } 13997 }' 13998 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13999 # Check for a 64-bit object if we didn't find anything. 14000 if test -z "$lt_cv_aix_libpath__CXX"; then 14001 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14002 fi 14003fi 14004rm -f core conftest.err conftest.$ac_objext \ 14005 conftest$ac_exeext conftest.$ac_ext 14006 if test -z "$lt_cv_aix_libpath__CXX"; then 14007 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14008 fi 14009 14010fi 14011 14012 aix_libpath=$lt_cv_aix_libpath__CXX 14013fi 14014 14015 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14016 # Warning - without using the other run time loading flags, 14017 # -berok will link without error, but may produce a broken library. 14018 no_undefined_flag_CXX=' $wl-bernotok' 14019 allow_undefined_flag_CXX=' $wl-berok' 14020 if test yes = "$with_gnu_ld"; then 14021 # We only use this code for GNU lds that support --whole-archive. 14022 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14023 else 14024 # Exported symbols can be pulled into shared objects from archives 14025 whole_archive_flag_spec_CXX='$convenience' 14026 fi 14027 archive_cmds_need_lc_CXX=yes 14028 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 14029 # -brtl affects multiple linker settings, -berok does not and is overridden later 14030 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 14031 if test svr4 != "$with_aix_soname"; then 14032 # This is similar to how AIX traditionally builds its shared 14033 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 14034 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 14035 fi 14036 if test aix != "$with_aix_soname"; then 14037 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 14038 else 14039 # used by -dlpreopen to get the symbols 14040 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 14041 fi 14042 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 14043 fi 14044 fi 14045 ;; 14046 14047 beos*) 14048 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14049 allow_undefined_flag_CXX=unsupported 14050 # Joseph Beckenbach <[email protected]> says some releases of gcc 14051 # support --undefined. This deserves some investigation. FIXME 14052 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14053 else 14054 ld_shlibs_CXX=no 14055 fi 14056 ;; 14057 14058 chorus*) 14059 case $cc_basename in 14060 *) 14061 # FIXME: insert proper C++ library support 14062 ld_shlibs_CXX=no 14063 ;; 14064 esac 14065 ;; 14066 14067 cygwin* | mingw* | pw32* | cegcc*) 14068 case $GXX,$cc_basename in 14069 ,cl* | no,cl*) 14070 # Native MSVC 14071 # hardcode_libdir_flag_spec is actually meaningless, as there is 14072 # no search path for DLLs. 14073 hardcode_libdir_flag_spec_CXX=' ' 14074 allow_undefined_flag_CXX=unsupported 14075 always_export_symbols_CXX=yes 14076 file_list_spec_CXX='@' 14077 # Tell ltmain to make .lib files, not .a files. 14078 libext=lib 14079 # Tell ltmain to make .dll files, not .so files. 14080 shrext_cmds=.dll 14081 # FIXME: Setting linknames here is a bad hack. 14082 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 14083 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14084 cp "$export_symbols" "$output_objdir/$soname.def"; 14085 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 14086 else 14087 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 14088 fi~ 14089 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14090 linknames=' 14091 # The linker will not automatically build a static lib if we build a DLL. 14092 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 14093 enable_shared_with_static_runtimes_CXX=yes 14094 # Don't use ranlib 14095 old_postinstall_cmds_CXX='chmod 644 $oldlib' 14096 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 14097 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14098 case $lt_outputfile in 14099 *.exe|*.EXE) ;; 14100 *) 14101 lt_outputfile=$lt_outputfile.exe 14102 lt_tool_outputfile=$lt_tool_outputfile.exe 14103 ;; 14104 esac~ 14105 func_to_tool_file "$lt_outputfile"~ 14106 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 14107 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14108 $RM "$lt_outputfile.manifest"; 14109 fi' 14110 ;; 14111 *) 14112 # g++ 14113 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 14114 # as there is no search path for DLLs. 14115 hardcode_libdir_flag_spec_CXX='-L$libdir' 14116 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 14117 allow_undefined_flag_CXX=unsupported 14118 always_export_symbols_CXX=no 14119 enable_shared_with_static_runtimes_CXX=yes 14120 14121 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14122 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14123 # If the export-symbols file already is a .def file, use it as 14124 # is; otherwise, prepend EXPORTS... 14125 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14126 cp $export_symbols $output_objdir/$soname.def; 14127 else 14128 echo EXPORTS > $output_objdir/$soname.def; 14129 cat $export_symbols >> $output_objdir/$soname.def; 14130 fi~ 14131 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14132 else 14133 ld_shlibs_CXX=no 14134 fi 14135 ;; 14136 esac 14137 ;; 14138 darwin* | rhapsody*) 14139 14140 14141 archive_cmds_need_lc_CXX=no 14142 hardcode_direct_CXX=no 14143 hardcode_automatic_CXX=yes 14144 hardcode_shlibpath_var_CXX=unsupported 14145 if test yes = "$lt_cv_ld_force_load"; then 14146 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 14147 14148 else 14149 whole_archive_flag_spec_CXX='' 14150 fi 14151 link_all_deplibs_CXX=yes 14152 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 14153 case $cc_basename in 14154 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 14155 *) _lt_dar_can_shared=$GCC ;; 14156 esac 14157 if test yes = "$_lt_dar_can_shared"; then 14158 output_verbose_link_cmd=func_echo_all 14159 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 14160 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 14161 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 14162 module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 14163 if test yes != "$lt_cv_apple_cc_single_mod"; then 14164 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" 14165 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" 14166 fi 14167 14168 else 14169 ld_shlibs_CXX=no 14170 fi 14171 14172 ;; 14173 14174 os2*) 14175 hardcode_libdir_flag_spec_CXX='-L$libdir' 14176 hardcode_minus_L_CXX=yes 14177 allow_undefined_flag_CXX=unsupported 14178 shrext_cmds=.dll 14179 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14180 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14181 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14182 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14183 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 14184 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14185 emximp -o $lib $output_objdir/$libname.def' 14186 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14187 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14188 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14189 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14190 prefix_cmds="$SED"~ 14191 if test EXPORTS = "`$SED 1q $export_symbols`"; then 14192 prefix_cmds="$prefix_cmds -e 1d"; 14193 fi~ 14194 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 14195 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 14196 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14197 emximp -o $lib $output_objdir/$libname.def' 14198 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 14199 enable_shared_with_static_runtimes_CXX=yes 14200 ;; 14201 14202 dgux*) 14203 case $cc_basename in 14204 ec++*) 14205 # FIXME: insert proper C++ library support 14206 ld_shlibs_CXX=no 14207 ;; 14208 ghcx*) 14209 # Green Hills C++ Compiler 14210 # FIXME: insert proper C++ library support 14211 ld_shlibs_CXX=no 14212 ;; 14213 *) 14214 # FIXME: insert proper C++ library support 14215 ld_shlibs_CXX=no 14216 ;; 14217 esac 14218 ;; 14219 14220 freebsd2.*) 14221 # C++ shared libraries reported to be fairly broken before 14222 # switch to ELF 14223 ld_shlibs_CXX=no 14224 ;; 14225 14226 freebsd-elf*) 14227 archive_cmds_need_lc_CXX=no 14228 ;; 14229 14230 freebsd* | dragonfly*) 14231 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14232 # conventions 14233 ld_shlibs_CXX=yes 14234 ;; 14235 14236 haiku*) 14237 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14238 link_all_deplibs_CXX=yes 14239 ;; 14240 14241 hpux9*) 14242 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14243 hardcode_libdir_separator_CXX=: 14244 export_dynamic_flag_spec_CXX='$wl-E' 14245 hardcode_direct_CXX=yes 14246 hardcode_minus_L_CXX=yes # Not in the search PATH, 14247 # but as the default 14248 # location of the library. 14249 14250 case $cc_basename in 14251 CC*) 14252 # FIXME: insert proper C++ library support 14253 ld_shlibs_CXX=no 14254 ;; 14255 aCC*) 14256 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 14257 # Commands to make compiler produce verbose output that lists 14258 # what "hidden" libraries, object files and flags are used when 14259 # linking a shared library. 14260 # 14261 # There doesn't appear to be a way to prevent this compiler from 14262 # explicitly linking system object files so we need to strip them 14263 # from the output so that they don't get included in the library 14264 # dependencies. 14265 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14266 ;; 14267 *) 14268 if test yes = "$GXX"; then 14269 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 14270 else 14271 # FIXME: insert proper C++ library support 14272 ld_shlibs_CXX=no 14273 fi 14274 ;; 14275 esac 14276 ;; 14277 14278 hpux10*|hpux11*) 14279 if test no = "$with_gnu_ld"; then 14280 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14281 hardcode_libdir_separator_CXX=: 14282 14283 case $host_cpu in 14284 hppa*64*|ia64*) 14285 ;; 14286 *) 14287 export_dynamic_flag_spec_CXX='$wl-E' 14288 ;; 14289 esac 14290 fi 14291 case $host_cpu in 14292 hppa*64*|ia64*) 14293 hardcode_direct_CXX=no 14294 hardcode_shlibpath_var_CXX=no 14295 ;; 14296 *) 14297 hardcode_direct_CXX=yes 14298 hardcode_direct_absolute_CXX=yes 14299 hardcode_minus_L_CXX=yes # Not in the search PATH, 14300 # but as the default 14301 # location of the library. 14302 ;; 14303 esac 14304 14305 case $cc_basename in 14306 CC*) 14307 # FIXME: insert proper C++ library support 14308 ld_shlibs_CXX=no 14309 ;; 14310 aCC*) 14311 case $host_cpu in 14312 hppa*64*) 14313 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14314 ;; 14315 ia64*) 14316 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14317 ;; 14318 *) 14319 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14320 ;; 14321 esac 14322 # Commands to make compiler produce verbose output that lists 14323 # what "hidden" libraries, object files and flags are used when 14324 # linking a shared library. 14325 # 14326 # There doesn't appear to be a way to prevent this compiler from 14327 # explicitly linking system object files so we need to strip them 14328 # from the output so that they don't get included in the library 14329 # dependencies. 14330 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14331 ;; 14332 *) 14333 if test yes = "$GXX"; then 14334 if test no = "$with_gnu_ld"; then 14335 case $host_cpu in 14336 hppa*64*) 14337 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14338 ;; 14339 ia64*) 14340 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14341 ;; 14342 *) 14343 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14344 ;; 14345 esac 14346 fi 14347 else 14348 # FIXME: insert proper C++ library support 14349 ld_shlibs_CXX=no 14350 fi 14351 ;; 14352 esac 14353 ;; 14354 14355 interix[3-9]*) 14356 hardcode_direct_CXX=no 14357 hardcode_shlibpath_var_CXX=no 14358 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14359 export_dynamic_flag_spec_CXX='$wl-E' 14360 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14361 # Instead, shared libraries are loaded at an image base (0x10000000 by 14362 # default) and relocated if they conflict, which is a slow very memory 14363 # consuming and fragmenting process. To avoid this, we pick a random, 14364 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14365 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14366 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14367 archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14368 ;; 14369 irix5* | irix6*) 14370 case $cc_basename in 14371 CC*) 14372 # SGI C++ 14373 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 14374 14375 # Archives containing C++ object files must be created using 14376 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14377 # necessary to make sure instantiated templates are included 14378 # in the archive. 14379 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14380 ;; 14381 *) 14382 if test yes = "$GXX"; then 14383 if test no = "$with_gnu_ld"; then 14384 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 14385 else 14386 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' 14387 fi 14388 fi 14389 link_all_deplibs_CXX=yes 14390 ;; 14391 esac 14392 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14393 hardcode_libdir_separator_CXX=: 14394 inherit_rpath_CXX=yes 14395 ;; 14396 14397 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14398 case $cc_basename in 14399 KCC*) 14400 # Kuck and Associates, Inc. (KAI) C++ Compiler 14401 14402 # KCC will only create a shared library if the output file 14403 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14404 # to its proper name (with version) after linking. 14405 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 14406 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' 14407 # Commands to make compiler produce verbose output that lists 14408 # what "hidden" libraries, object files and flags are used when 14409 # linking a shared library. 14410 # 14411 # There doesn't appear to be a way to prevent this compiler from 14412 # explicitly linking system object files so we need to strip them 14413 # from the output so that they don't get included in the library 14414 # dependencies. 14415 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14416 14417 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14418 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14419 14420 # Archives containing C++ object files must be created using 14421 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14422 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14423 ;; 14424 icpc* | ecpc* ) 14425 # Intel C++ 14426 with_gnu_ld=yes 14427 # version 8.0 and above of icpc choke on multiply defined symbols 14428 # if we add $predep_objects and $postdep_objects, however 7.1 and 14429 # earlier do not add the objects themselves. 14430 case `$CC -V 2>&1` in 14431 *"Version 7."*) 14432 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14433 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14434 ;; 14435 *) # Version 8.0 or newer 14436 tmp_idyn= 14437 case $host_cpu in 14438 ia64*) tmp_idyn=' -i_dynamic';; 14439 esac 14440 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14441 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14442 ;; 14443 esac 14444 archive_cmds_need_lc_CXX=no 14445 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14446 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14447 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14448 ;; 14449 pgCC* | pgcpp*) 14450 # Portland Group C++ compiler 14451 case `$CC -V` in 14452 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14453 prelink_cmds_CXX='tpldir=Template.dir~ 14454 rm -rf $tpldir~ 14455 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14456 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14457 old_archive_cmds_CXX='tpldir=Template.dir~ 14458 rm -rf $tpldir~ 14459 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14460 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14461 $RANLIB $oldlib' 14462 archive_cmds_CXX='tpldir=Template.dir~ 14463 rm -rf $tpldir~ 14464 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14465 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14466 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14467 rm -rf $tpldir~ 14468 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14469 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14470 ;; 14471 *) # Version 6 and above use weak symbols 14472 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14473 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14474 ;; 14475 esac 14476 14477 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 14478 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14479 whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 14480 ;; 14481 cxx*) 14482 # Compaq C++ 14483 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14484 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' 14485 14486 runpath_var=LD_RUN_PATH 14487 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14488 hardcode_libdir_separator_CXX=: 14489 14490 # Commands to make compiler produce verbose output that lists 14491 # what "hidden" libraries, object files and flags are used when 14492 # linking a shared library. 14493 # 14494 # There doesn't appear to be a way to prevent this compiler from 14495 # explicitly linking system object files so we need to strip them 14496 # from the output so that they don't get included in the library 14497 # dependencies. 14498 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 14499 ;; 14500 xl* | mpixl* | bgxl*) 14501 # IBM XL 8.0 on PPC, with GNU ld 14502 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14503 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14504 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14505 if test yes = "$supports_anon_versioning"; then 14506 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14507 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14508 echo "local: *; };" >> $output_objdir/$libname.ver~ 14509 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 14510 fi 14511 ;; 14512 *) 14513 case `$CC -V 2>&1 | sed 5q` in 14514 *Sun\ C*) 14515 # Sun C++ 5.9 14516 no_undefined_flag_CXX=' -zdefs' 14517 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14518 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' 14519 hardcode_libdir_flag_spec_CXX='-R$libdir' 14520 whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 14521 compiler_needs_object_CXX=yes 14522 14523 # Not sure whether something based on 14524 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14525 # would be better. 14526 output_verbose_link_cmd='func_echo_all' 14527 14528 # Archives containing C++ object files must be created using 14529 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14530 # necessary to make sure instantiated templates are included 14531 # in the archive. 14532 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14533 ;; 14534 esac 14535 ;; 14536 esac 14537 ;; 14538 14539 lynxos*) 14540 # FIXME: insert proper C++ library support 14541 ld_shlibs_CXX=no 14542 ;; 14543 14544 m88k*) 14545 # FIXME: insert proper C++ library support 14546 ld_shlibs_CXX=no 14547 ;; 14548 14549 mvs*) 14550 case $cc_basename in 14551 cxx*) 14552 # FIXME: insert proper C++ library support 14553 ld_shlibs_CXX=no 14554 ;; 14555 *) 14556 # FIXME: insert proper C++ library support 14557 ld_shlibs_CXX=no 14558 ;; 14559 esac 14560 ;; 14561 14562 netbsd*) 14563 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14564 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14565 wlarc= 14566 hardcode_libdir_flag_spec_CXX='-R$libdir' 14567 hardcode_direct_CXX=yes 14568 hardcode_shlibpath_var_CXX=no 14569 fi 14570 # Workaround some broken pre-1.5 toolchains 14571 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14572 ;; 14573 14574 *nto* | *qnx*) 14575 ld_shlibs_CXX=yes 14576 ;; 14577 14578 openbsd* | bitrig*) 14579 if test -f /usr/libexec/ld.so; then 14580 hardcode_direct_CXX=yes 14581 hardcode_shlibpath_var_CXX=no 14582 hardcode_direct_absolute_CXX=yes 14583 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14584 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14585 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 14586 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 14587 export_dynamic_flag_spec_CXX='$wl-E' 14588 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14589 fi 14590 output_verbose_link_cmd=func_echo_all 14591 else 14592 ld_shlibs_CXX=no 14593 fi 14594 ;; 14595 14596 osf3* | osf4* | osf5*) 14597 case $cc_basename in 14598 KCC*) 14599 # Kuck and Associates, Inc. (KAI) C++ Compiler 14600 14601 # KCC will only create a shared library if the output file 14602 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14603 # to its proper name (with version) after linking. 14604 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 14605 14606 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14607 hardcode_libdir_separator_CXX=: 14608 14609 # Archives containing C++ object files must be created using 14610 # the KAI C++ compiler. 14611 case $host in 14612 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14613 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14614 esac 14615 ;; 14616 RCC*) 14617 # Rational C++ 2.4.1 14618 # FIXME: insert proper C++ library support 14619 ld_shlibs_CXX=no 14620 ;; 14621 cxx*) 14622 case $host in 14623 osf3*) 14624 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14625 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 14626 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14627 ;; 14628 *) 14629 allow_undefined_flag_CXX=' -expect_unresolved \*' 14630 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 14631 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14632 echo "-hidden">> $lib.exp~ 14633 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ 14634 $RM $lib.exp' 14635 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14636 ;; 14637 esac 14638 14639 hardcode_libdir_separator_CXX=: 14640 14641 # Commands to make compiler produce verbose output that lists 14642 # what "hidden" libraries, object files and flags are used when 14643 # linking a shared library. 14644 # 14645 # There doesn't appear to be a way to prevent this compiler from 14646 # explicitly linking system object files so we need to strip them 14647 # from the output so that they don't get included in the library 14648 # dependencies. 14649 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14650 ;; 14651 *) 14652 if test yes,no = "$GXX,$with_gnu_ld"; then 14653 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14654 case $host in 14655 osf3*) 14656 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 14657 ;; 14658 *) 14659 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 14660 ;; 14661 esac 14662 14663 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14664 hardcode_libdir_separator_CXX=: 14665 14666 # Commands to make compiler produce verbose output that lists 14667 # what "hidden" libraries, object files and flags are used when 14668 # linking a shared library. 14669 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14670 14671 else 14672 # FIXME: insert proper C++ library support 14673 ld_shlibs_CXX=no 14674 fi 14675 ;; 14676 esac 14677 ;; 14678 14679 psos*) 14680 # FIXME: insert proper C++ library support 14681 ld_shlibs_CXX=no 14682 ;; 14683 14684 sunos4*) 14685 case $cc_basename in 14686 CC*) 14687 # Sun C++ 4.x 14688 # FIXME: insert proper C++ library support 14689 ld_shlibs_CXX=no 14690 ;; 14691 lcc*) 14692 # Lucid 14693 # FIXME: insert proper C++ library support 14694 ld_shlibs_CXX=no 14695 ;; 14696 *) 14697 # FIXME: insert proper C++ library support 14698 ld_shlibs_CXX=no 14699 ;; 14700 esac 14701 ;; 14702 14703 solaris*) 14704 case $cc_basename in 14705 CC* | sunCC*) 14706 # Sun C++ 4.2, 5.x and Centerline C++ 14707 archive_cmds_need_lc_CXX=yes 14708 no_undefined_flag_CXX=' -zdefs' 14709 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14710 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14711 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14712 14713 hardcode_libdir_flag_spec_CXX='-R$libdir' 14714 hardcode_shlibpath_var_CXX=no 14715 case $host_os in 14716 solaris2.[0-5] | solaris2.[0-5].*) ;; 14717 *) 14718 # The compiler driver will combine and reorder linker options, 14719 # but understands '-z linker_flag'. 14720 # Supported since Solaris 2.6 (maybe 2.5.1?) 14721 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 14722 ;; 14723 esac 14724 link_all_deplibs_CXX=yes 14725 14726 output_verbose_link_cmd='func_echo_all' 14727 14728 # Archives containing C++ object files must be created using 14729 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14730 # necessary to make sure instantiated templates are included 14731 # in the archive. 14732 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14733 ;; 14734 gcx*) 14735 # Green Hills C++ Compiler 14736 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14737 14738 # The C++ compiler must be used to create the archive. 14739 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14740 ;; 14741 *) 14742 # GNU C++ compiler with Solaris linker 14743 if test yes,no = "$GXX,$with_gnu_ld"; then 14744 no_undefined_flag_CXX=' $wl-z ${wl}defs' 14745 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14746 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14747 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14748 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14749 14750 # Commands to make compiler produce verbose output that lists 14751 # what "hidden" libraries, object files and flags are used when 14752 # linking a shared library. 14753 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14754 else 14755 # g++ 2.7 appears to require '-G' NOT '-shared' on this 14756 # platform. 14757 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14758 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14759 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14760 14761 # Commands to make compiler produce verbose output that lists 14762 # what "hidden" libraries, object files and flags are used when 14763 # linking a shared library. 14764 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14765 fi 14766 14767 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 14768 case $host_os in 14769 solaris2.[0-5] | solaris2.[0-5].*) ;; 14770 *) 14771 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 14772 ;; 14773 esac 14774 fi 14775 ;; 14776 esac 14777 ;; 14778 14779 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14780 no_undefined_flag_CXX='$wl-z,text' 14781 archive_cmds_need_lc_CXX=no 14782 hardcode_shlibpath_var_CXX=no 14783 runpath_var='LD_RUN_PATH' 14784 14785 case $cc_basename in 14786 CC*) 14787 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14788 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14789 ;; 14790 *) 14791 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14792 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14793 ;; 14794 esac 14795 ;; 14796 14797 sysv5* | sco3.2v5* | sco5v6*) 14798 # Note: We CANNOT use -z defs as we might desire, because we do not 14799 # link with -lc, and that would cause any symbols used from libc to 14800 # always be unresolved, which means just about no library would 14801 # ever link correctly. If we're not using GNU ld we use -z text 14802 # though, which does catch some bad symbols but isn't as heavy-handed 14803 # as -z defs. 14804 no_undefined_flag_CXX='$wl-z,text' 14805 allow_undefined_flag_CXX='$wl-z,nodefs' 14806 archive_cmds_need_lc_CXX=no 14807 hardcode_shlibpath_var_CXX=no 14808 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 14809 hardcode_libdir_separator_CXX=':' 14810 link_all_deplibs_CXX=yes 14811 export_dynamic_flag_spec_CXX='$wl-Bexport' 14812 runpath_var='LD_RUN_PATH' 14813 14814 case $cc_basename in 14815 CC*) 14816 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14817 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14818 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14819 '"$old_archive_cmds_CXX" 14820 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14821 '"$reload_cmds_CXX" 14822 ;; 14823 *) 14824 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14825 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14826 ;; 14827 esac 14828 ;; 14829 14830 tandem*) 14831 case $cc_basename in 14832 NCC*) 14833 # NonStop-UX NCC 3.20 14834 # FIXME: insert proper C++ library support 14835 ld_shlibs_CXX=no 14836 ;; 14837 *) 14838 # FIXME: insert proper C++ library support 14839 ld_shlibs_CXX=no 14840 ;; 14841 esac 14842 ;; 14843 14844 vxworks*) 14845 # FIXME: insert proper C++ library support 14846 ld_shlibs_CXX=no 14847 ;; 14848 14849 *) 14850 # FIXME: insert proper C++ library support 14851 ld_shlibs_CXX=no 14852 ;; 14853 esac 14854 14855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14856$as_echo "$ld_shlibs_CXX" >&6; } 14857 test no = "$ld_shlibs_CXX" && can_build_shared=no 14858 14859 GCC_CXX=$GXX 14860 LD_CXX=$LD 14861 14862 ## CAVEAT EMPTOR: 14863 ## There is no encapsulation within the following macros, do not change 14864 ## the running order or otherwise move them around unless you know exactly 14865 ## what you are doing... 14866 # Dependencies to place before and after the object being linked: 14867predep_objects_CXX= 14868postdep_objects_CXX= 14869predeps_CXX= 14870postdeps_CXX= 14871compiler_lib_search_path_CXX= 14872 14873cat > conftest.$ac_ext <<_LT_EOF 14874class Foo 14875{ 14876public: 14877 Foo (void) { a = 0; } 14878private: 14879 int a; 14880}; 14881_LT_EOF 14882 14883 14884_lt_libdeps_save_CFLAGS=$CFLAGS 14885case "$CC $CFLAGS " in #( 14886*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14887*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14888*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 14889esac 14890 14891if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14892 (eval $ac_compile) 2>&5 14893 ac_status=$? 14894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14895 test $ac_status = 0; }; then 14896 # Parse the compiler output and extract the necessary 14897 # objects, libraries and library flags. 14898 14899 # Sentinel used to keep track of whether or not we are before 14900 # the conftest object file. 14901 pre_test_object_deps_done=no 14902 14903 for p in `eval "$output_verbose_link_cmd"`; do 14904 case $prev$p in 14905 14906 -L* | -R* | -l*) 14907 # Some compilers place space between "-{L,R}" and the path. 14908 # Remove the space. 14909 if test x-L = "$p" || 14910 test x-R = "$p"; then 14911 prev=$p 14912 continue 14913 fi 14914 14915 # Expand the sysroot to ease extracting the directories later. 14916 if test -z "$prev"; then 14917 case $p in 14918 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14919 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14920 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14921 esac 14922 fi 14923 case $p in 14924 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14925 esac 14926 if test no = "$pre_test_object_deps_done"; then 14927 case $prev in 14928 -L | -R) 14929 # Internal compiler library paths should come after those 14930 # provided the user. The postdeps already come after the 14931 # user supplied libs so there is no need to process them. 14932 if test -z "$compiler_lib_search_path_CXX"; then 14933 compiler_lib_search_path_CXX=$prev$p 14934 else 14935 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 14936 fi 14937 ;; 14938 # The "-l" case would never come before the object being 14939 # linked, so don't bother handling this case. 14940 esac 14941 else 14942 if test -z "$postdeps_CXX"; then 14943 postdeps_CXX=$prev$p 14944 else 14945 postdeps_CXX="${postdeps_CXX} $prev$p" 14946 fi 14947 fi 14948 prev= 14949 ;; 14950 14951 *.lto.$objext) ;; # Ignore GCC LTO objects 14952 *.$objext) 14953 # This assumes that the test object file only shows up 14954 # once in the compiler output. 14955 if test "$p" = "conftest.$objext"; then 14956 pre_test_object_deps_done=yes 14957 continue 14958 fi 14959 14960 if test no = "$pre_test_object_deps_done"; then 14961 if test -z "$predep_objects_CXX"; then 14962 predep_objects_CXX=$p 14963 else 14964 predep_objects_CXX="$predep_objects_CXX $p" 14965 fi 14966 else 14967 if test -z "$postdep_objects_CXX"; then 14968 postdep_objects_CXX=$p 14969 else 14970 postdep_objects_CXX="$postdep_objects_CXX $p" 14971 fi 14972 fi 14973 ;; 14974 14975 *) ;; # Ignore the rest. 14976 14977 esac 14978 done 14979 14980 # Clean up. 14981 rm -f a.out a.exe 14982else 14983 echo "libtool.m4: error: problem compiling CXX test program" 14984fi 14985 14986$RM -f confest.$objext 14987CFLAGS=$_lt_libdeps_save_CFLAGS 14988 14989# PORTME: override above test on systems where it is broken 14990case $host_os in 14991interix[3-9]*) 14992 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14993 # hack all around it, let's just trust "g++" to DTRT. 14994 predep_objects_CXX= 14995 postdep_objects_CXX= 14996 postdeps_CXX= 14997 ;; 14998esac 14999 15000 15001case " $postdeps_CXX " in 15002*" -lc "*) archive_cmds_need_lc_CXX=no ;; 15003esac 15004 compiler_lib_search_dirs_CXX= 15005if test -n "${compiler_lib_search_path_CXX}"; then 15006 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 15007fi 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019 15020 15021 15022 15023 15024 15025 15026 15027 15028 15029 15030 15031 15032 15033 15034 15035 15036 15037 15038 15039 lt_prog_compiler_wl_CXX= 15040lt_prog_compiler_pic_CXX= 15041lt_prog_compiler_static_CXX= 15042 15043 15044 # C++ specific cases for pic, static, wl, etc. 15045 if test yes = "$GXX"; then 15046 lt_prog_compiler_wl_CXX='-Wl,' 15047 lt_prog_compiler_static_CXX='-static' 15048 15049 case $host_os in 15050 aix*) 15051 # All AIX code is PIC. 15052 if test ia64 = "$host_cpu"; then 15053 # AIX 5 now supports IA64 processor 15054 lt_prog_compiler_static_CXX='-Bstatic' 15055 fi 15056 lt_prog_compiler_pic_CXX='-fPIC' 15057 ;; 15058 15059 amigaos*) 15060 case $host_cpu in 15061 powerpc) 15062 # see comment about AmigaOS4 .so support 15063 lt_prog_compiler_pic_CXX='-fPIC' 15064 ;; 15065 m68k) 15066 # FIXME: we need at least 68020 code to build shared libraries, but 15067 # adding the '-m68020' flag to GCC prevents building anything better, 15068 # like '-m68040'. 15069 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 15070 ;; 15071 esac 15072 ;; 15073 15074 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15075 # PIC is the default for these OSes. 15076 ;; 15077 mingw* | cygwin* | os2* | pw32* | cegcc*) 15078 # This hack is so that the source file can tell whether it is being 15079 # built for inclusion in a dll (and should export symbols for example). 15080 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15081 # (--disable-auto-import) libraries 15082 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15083 case $host_os in 15084 os2*) 15085 lt_prog_compiler_static_CXX='$wl-static' 15086 ;; 15087 esac 15088 ;; 15089 darwin* | rhapsody*) 15090 # PIC is the default on this platform 15091 # Common symbols not allowed in MH_DYLIB files 15092 lt_prog_compiler_pic_CXX='-fno-common' 15093 ;; 15094 *djgpp*) 15095 # DJGPP does not support shared libraries at all 15096 lt_prog_compiler_pic_CXX= 15097 ;; 15098 haiku*) 15099 # PIC is the default for Haiku. 15100 # The "-static" flag exists, but is broken. 15101 lt_prog_compiler_static_CXX= 15102 ;; 15103 interix[3-9]*) 15104 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15105 # Instead, we relocate shared libraries at runtime. 15106 ;; 15107 sysv4*MP*) 15108 if test -d /usr/nec; then 15109 lt_prog_compiler_pic_CXX=-Kconform_pic 15110 fi 15111 ;; 15112 hpux*) 15113 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15114 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15115 # sets the default TLS model and affects inlining. 15116 case $host_cpu in 15117 hppa*64*) 15118 ;; 15119 *) 15120 lt_prog_compiler_pic_CXX='-fPIC' 15121 ;; 15122 esac 15123 ;; 15124 *qnx* | *nto*) 15125 # QNX uses GNU C++, but need to define -shared option too, otherwise 15126 # it will coredump. 15127 lt_prog_compiler_pic_CXX='-fPIC -shared' 15128 ;; 15129 *) 15130 lt_prog_compiler_pic_CXX='-fPIC' 15131 ;; 15132 esac 15133 else 15134 case $host_os in 15135 aix[4-9]*) 15136 # All AIX code is PIC. 15137 if test ia64 = "$host_cpu"; then 15138 # AIX 5 now supports IA64 processor 15139 lt_prog_compiler_static_CXX='-Bstatic' 15140 else 15141 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 15142 fi 15143 ;; 15144 chorus*) 15145 case $cc_basename in 15146 cxch68*) 15147 # Green Hills C++ Compiler 15148 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 15149 ;; 15150 esac 15151 ;; 15152 mingw* | cygwin* | os2* | pw32* | cegcc*) 15153 # This hack is so that the source file can tell whether it is being 15154 # built for inclusion in a dll (and should export symbols for example). 15155 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15156 ;; 15157 dgux*) 15158 case $cc_basename in 15159 ec++*) 15160 lt_prog_compiler_pic_CXX='-KPIC' 15161 ;; 15162 ghcx*) 15163 # Green Hills C++ Compiler 15164 lt_prog_compiler_pic_CXX='-pic' 15165 ;; 15166 *) 15167 ;; 15168 esac 15169 ;; 15170 freebsd* | dragonfly*) 15171 # FreeBSD uses GNU C++ 15172 ;; 15173 hpux9* | hpux10* | hpux11*) 15174 case $cc_basename in 15175 CC*) 15176 lt_prog_compiler_wl_CXX='-Wl,' 15177 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15178 if test ia64 != "$host_cpu"; then 15179 lt_prog_compiler_pic_CXX='+Z' 15180 fi 15181 ;; 15182 aCC*) 15183 lt_prog_compiler_wl_CXX='-Wl,' 15184 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15185 case $host_cpu in 15186 hppa*64*|ia64*) 15187 # +Z the default 15188 ;; 15189 *) 15190 lt_prog_compiler_pic_CXX='+Z' 15191 ;; 15192 esac 15193 ;; 15194 *) 15195 ;; 15196 esac 15197 ;; 15198 interix*) 15199 # This is c89, which is MS Visual C++ (no shared libs) 15200 # Anyone wants to do a port? 15201 ;; 15202 irix5* | irix6* | nonstopux*) 15203 case $cc_basename in 15204 CC*) 15205 lt_prog_compiler_wl_CXX='-Wl,' 15206 lt_prog_compiler_static_CXX='-non_shared' 15207 # CC pic flag -KPIC is the default. 15208 ;; 15209 *) 15210 ;; 15211 esac 15212 ;; 15213 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15214 case $cc_basename in 15215 KCC*) 15216 # KAI C++ Compiler 15217 lt_prog_compiler_wl_CXX='--backend -Wl,' 15218 lt_prog_compiler_pic_CXX='-fPIC' 15219 ;; 15220 ecpc* ) 15221 # old Intel C++ for x86_64, which still supported -KPIC. 15222 lt_prog_compiler_wl_CXX='-Wl,' 15223 lt_prog_compiler_pic_CXX='-KPIC' 15224 lt_prog_compiler_static_CXX='-static' 15225 ;; 15226 icpc* ) 15227 # Intel C++, used to be incompatible with GCC. 15228 # ICC 10 doesn't accept -KPIC any more. 15229 lt_prog_compiler_wl_CXX='-Wl,' 15230 lt_prog_compiler_pic_CXX='-fPIC' 15231 lt_prog_compiler_static_CXX='-static' 15232 ;; 15233 pgCC* | pgcpp*) 15234 # Portland Group C++ compiler 15235 lt_prog_compiler_wl_CXX='-Wl,' 15236 lt_prog_compiler_pic_CXX='-fpic' 15237 lt_prog_compiler_static_CXX='-Bstatic' 15238 ;; 15239 cxx*) 15240 # Compaq C++ 15241 # Make sure the PIC flag is empty. It appears that all Alpha 15242 # Linux and Compaq Tru64 Unix objects are PIC. 15243 lt_prog_compiler_pic_CXX= 15244 lt_prog_compiler_static_CXX='-non_shared' 15245 ;; 15246 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 15247 # IBM XL 8.0, 9.0 on PPC and BlueGene 15248 lt_prog_compiler_wl_CXX='-Wl,' 15249 lt_prog_compiler_pic_CXX='-qpic' 15250 lt_prog_compiler_static_CXX='-qstaticlink' 15251 ;; 15252 *) 15253 case `$CC -V 2>&1 | sed 5q` in 15254 *Sun\ C*) 15255 # Sun C++ 5.9 15256 lt_prog_compiler_pic_CXX='-KPIC' 15257 lt_prog_compiler_static_CXX='-Bstatic' 15258 lt_prog_compiler_wl_CXX='-Qoption ld ' 15259 ;; 15260 esac 15261 ;; 15262 esac 15263 ;; 15264 lynxos*) 15265 ;; 15266 m88k*) 15267 ;; 15268 mvs*) 15269 case $cc_basename in 15270 cxx*) 15271 lt_prog_compiler_pic_CXX='-W c,exportall' 15272 ;; 15273 *) 15274 ;; 15275 esac 15276 ;; 15277 netbsd*) 15278 ;; 15279 *qnx* | *nto*) 15280 # QNX uses GNU C++, but need to define -shared option too, otherwise 15281 # it will coredump. 15282 lt_prog_compiler_pic_CXX='-fPIC -shared' 15283 ;; 15284 osf3* | osf4* | osf5*) 15285 case $cc_basename in 15286 KCC*) 15287 lt_prog_compiler_wl_CXX='--backend -Wl,' 15288 ;; 15289 RCC*) 15290 # Rational C++ 2.4.1 15291 lt_prog_compiler_pic_CXX='-pic' 15292 ;; 15293 cxx*) 15294 # Digital/Compaq C++ 15295 lt_prog_compiler_wl_CXX='-Wl,' 15296 # Make sure the PIC flag is empty. It appears that all Alpha 15297 # Linux and Compaq Tru64 Unix objects are PIC. 15298 lt_prog_compiler_pic_CXX= 15299 lt_prog_compiler_static_CXX='-non_shared' 15300 ;; 15301 *) 15302 ;; 15303 esac 15304 ;; 15305 psos*) 15306 ;; 15307 solaris*) 15308 case $cc_basename in 15309 CC* | sunCC*) 15310 # Sun C++ 4.2, 5.x and Centerline C++ 15311 lt_prog_compiler_pic_CXX='-KPIC' 15312 lt_prog_compiler_static_CXX='-Bstatic' 15313 lt_prog_compiler_wl_CXX='-Qoption ld ' 15314 ;; 15315 gcx*) 15316 # Green Hills C++ Compiler 15317 lt_prog_compiler_pic_CXX='-PIC' 15318 ;; 15319 *) 15320 ;; 15321 esac 15322 ;; 15323 sunos4*) 15324 case $cc_basename in 15325 CC*) 15326 # Sun C++ 4.x 15327 lt_prog_compiler_pic_CXX='-pic' 15328 lt_prog_compiler_static_CXX='-Bstatic' 15329 ;; 15330 lcc*) 15331 # Lucid 15332 lt_prog_compiler_pic_CXX='-pic' 15333 ;; 15334 *) 15335 ;; 15336 esac 15337 ;; 15338 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15339 case $cc_basename in 15340 CC*) 15341 lt_prog_compiler_wl_CXX='-Wl,' 15342 lt_prog_compiler_pic_CXX='-KPIC' 15343 lt_prog_compiler_static_CXX='-Bstatic' 15344 ;; 15345 esac 15346 ;; 15347 tandem*) 15348 case $cc_basename in 15349 NCC*) 15350 # NonStop-UX NCC 3.20 15351 lt_prog_compiler_pic_CXX='-KPIC' 15352 ;; 15353 *) 15354 ;; 15355 esac 15356 ;; 15357 vxworks*) 15358 ;; 15359 *) 15360 lt_prog_compiler_can_build_shared_CXX=no 15361 ;; 15362 esac 15363 fi 15364 15365case $host_os in 15366 # For platforms that do not support PIC, -DPIC is meaningless: 15367 *djgpp*) 15368 lt_prog_compiler_pic_CXX= 15369 ;; 15370 *) 15371 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15372 ;; 15373esac 15374 15375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15376$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15377if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 15378 $as_echo_n "(cached) " >&6 15379else 15380 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15381fi 15382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15383$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 15384lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15385 15386# 15387# Check to make sure the PIC flag actually works. 15388# 15389if test -n "$lt_prog_compiler_pic_CXX"; then 15390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15391$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15392if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 15393 $as_echo_n "(cached) " >&6 15394else 15395 lt_cv_prog_compiler_pic_works_CXX=no 15396 ac_outfile=conftest.$ac_objext 15397 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15398 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 15399 # Insert the option either (1) after the last *FLAGS variable, or 15400 # (2) before a word containing "conftest.", or (3) at the end. 15401 # Note that $ac_compile itself does not contain backslashes and begins 15402 # with a dollar sign (not a hyphen), so the echo should work correctly. 15403 # The option is referenced via a variable to avoid confusing sed. 15404 lt_compile=`echo "$ac_compile" | $SED \ 15405 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15406 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15407 -e 's:$: $lt_compiler_flag:'` 15408 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15409 (eval "$lt_compile" 2>conftest.err) 15410 ac_status=$? 15411 cat conftest.err >&5 15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15413 if (exit $ac_status) && test -s "$ac_outfile"; then 15414 # The compiler can only warn and ignore the option if not recognized 15415 # So say no if there are warnings other than the usual output. 15416 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15417 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15418 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15419 lt_cv_prog_compiler_pic_works_CXX=yes 15420 fi 15421 fi 15422 $RM conftest* 15423 15424fi 15425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15426$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15427 15428if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 15429 case $lt_prog_compiler_pic_CXX in 15430 "" | " "*) ;; 15431 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15432 esac 15433else 15434 lt_prog_compiler_pic_CXX= 15435 lt_prog_compiler_can_build_shared_CXX=no 15436fi 15437 15438fi 15439 15440 15441 15442 15443 15444# 15445# Check to make sure the static flag actually works. 15446# 15447wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15449$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15450if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 15451 $as_echo_n "(cached) " >&6 15452else 15453 lt_cv_prog_compiler_static_works_CXX=no 15454 save_LDFLAGS=$LDFLAGS 15455 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15456 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15457 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15458 # The linker can only warn and ignore the option if not recognized 15459 # So say no if there are warnings 15460 if test -s conftest.err; then 15461 # Append any errors to the config.log. 15462 cat conftest.err 1>&5 15463 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15464 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15465 if diff conftest.exp conftest.er2 >/dev/null; then 15466 lt_cv_prog_compiler_static_works_CXX=yes 15467 fi 15468 else 15469 lt_cv_prog_compiler_static_works_CXX=yes 15470 fi 15471 fi 15472 $RM -r conftest* 15473 LDFLAGS=$save_LDFLAGS 15474 15475fi 15476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15477$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15478 15479if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 15480 : 15481else 15482 lt_prog_compiler_static_CXX= 15483fi 15484 15485 15486 15487 15488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15489$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15490if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15491 $as_echo_n "(cached) " >&6 15492else 15493 lt_cv_prog_compiler_c_o_CXX=no 15494 $RM -r conftest 2>/dev/null 15495 mkdir conftest 15496 cd conftest 15497 mkdir out 15498 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15499 15500 lt_compiler_flag="-o out/conftest2.$ac_objext" 15501 # Insert the option either (1) after the last *FLAGS variable, or 15502 # (2) before a word containing "conftest.", or (3) at the end. 15503 # Note that $ac_compile itself does not contain backslashes and begins 15504 # with a dollar sign (not a hyphen), so the echo should work correctly. 15505 lt_compile=`echo "$ac_compile" | $SED \ 15506 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15507 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15508 -e 's:$: $lt_compiler_flag:'` 15509 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15510 (eval "$lt_compile" 2>out/conftest.err) 15511 ac_status=$? 15512 cat out/conftest.err >&5 15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15514 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15515 then 15516 # The compiler can only warn and ignore the option if not recognized 15517 # So say no if there are warnings 15518 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15519 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15520 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15521 lt_cv_prog_compiler_c_o_CXX=yes 15522 fi 15523 fi 15524 chmod u+w . 2>&5 15525 $RM conftest* 15526 # SGI C++ compiler will create directory out/ii_files/ for 15527 # template instantiation 15528 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15529 $RM out/* && rmdir out 15530 cd .. 15531 $RM -r conftest 15532 $RM conftest* 15533 15534fi 15535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15536$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15537 15538 15539 15540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15541$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15542if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15543 $as_echo_n "(cached) " >&6 15544else 15545 lt_cv_prog_compiler_c_o_CXX=no 15546 $RM -r conftest 2>/dev/null 15547 mkdir conftest 15548 cd conftest 15549 mkdir out 15550 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15551 15552 lt_compiler_flag="-o out/conftest2.$ac_objext" 15553 # Insert the option either (1) after the last *FLAGS variable, or 15554 # (2) before a word containing "conftest.", or (3) at the end. 15555 # Note that $ac_compile itself does not contain backslashes and begins 15556 # with a dollar sign (not a hyphen), so the echo should work correctly. 15557 lt_compile=`echo "$ac_compile" | $SED \ 15558 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15559 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15560 -e 's:$: $lt_compiler_flag:'` 15561 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15562 (eval "$lt_compile" 2>out/conftest.err) 15563 ac_status=$? 15564 cat out/conftest.err >&5 15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15566 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15567 then 15568 # The compiler can only warn and ignore the option if not recognized 15569 # So say no if there are warnings 15570 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15571 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15572 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15573 lt_cv_prog_compiler_c_o_CXX=yes 15574 fi 15575 fi 15576 chmod u+w . 2>&5 15577 $RM conftest* 15578 # SGI C++ compiler will create directory out/ii_files/ for 15579 # template instantiation 15580 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15581 $RM out/* && rmdir out 15582 cd .. 15583 $RM -r conftest 15584 $RM conftest* 15585 15586fi 15587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15588$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15589 15590 15591 15592 15593hard_links=nottested 15594if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 15595 # do not overwrite the value of need_locks provided by the user 15596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15597$as_echo_n "checking if we can lock with hard links... " >&6; } 15598 hard_links=yes 15599 $RM conftest* 15600 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15601 touch conftest.a 15602 ln conftest.a conftest.b 2>&5 || hard_links=no 15603 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15605$as_echo "$hard_links" >&6; } 15606 if test no = "$hard_links"; then 15607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15608$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15609 need_locks=warn 15610 fi 15611else 15612 need_locks=no 15613fi 15614 15615 15616 15617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15618$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15619 15620 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15621 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15622 case $host_os in 15623 aix[4-9]*) 15624 # If we're using GNU nm, then we don't want the "-C" option. 15625 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15626 # Without the "-l" option, or with the "-B" option, AIX nm treats 15627 # weak defined symbols like other global defined symbols, whereas 15628 # GNU nm marks them as "W". 15629 # While the 'weak' keyword is ignored in the Export File, we need 15630 # it in the Import File for the 'aix-soname' feature, so we have 15631 # to replace the "-B" option with "-P" for AIX nm. 15632 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15633 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 15634 else 15635 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 15636 fi 15637 ;; 15638 pw32*) 15639 export_symbols_cmds_CXX=$ltdll_cmds 15640 ;; 15641 cygwin* | mingw* | cegcc*) 15642 case $cc_basename in 15643 cl*) 15644 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15645 ;; 15646 *) 15647 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 15648 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15649 ;; 15650 esac 15651 ;; 15652 *) 15653 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15654 ;; 15655 esac 15656 15657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15658$as_echo "$ld_shlibs_CXX" >&6; } 15659test no = "$ld_shlibs_CXX" && can_build_shared=no 15660 15661with_gnu_ld_CXX=$with_gnu_ld 15662 15663 15664 15665 15666 15667 15668# 15669# Do we need to explicitly link libc? 15670# 15671case "x$archive_cmds_need_lc_CXX" in 15672x|xyes) 15673 # Assume -lc should be added 15674 archive_cmds_need_lc_CXX=yes 15675 15676 if test yes,yes = "$GCC,$enable_shared"; then 15677 case $archive_cmds_CXX in 15678 *'~'*) 15679 # FIXME: we may have to deal with multi-command sequences. 15680 ;; 15681 '$CC '*) 15682 # Test whether the compiler implicitly links with -lc since on some 15683 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15684 # to ld, don't add -lc before -lgcc. 15685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15686$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15687if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 15688 $as_echo_n "(cached) " >&6 15689else 15690 $RM conftest* 15691 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15692 15693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15694 (eval $ac_compile) 2>&5 15695 ac_status=$? 15696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15697 test $ac_status = 0; } 2>conftest.err; then 15698 soname=conftest 15699 lib=conftest 15700 libobjs=conftest.$ac_objext 15701 deplibs= 15702 wl=$lt_prog_compiler_wl_CXX 15703 pic_flag=$lt_prog_compiler_pic_CXX 15704 compiler_flags=-v 15705 linker_flags=-v 15706 verstring= 15707 output_objdir=. 15708 libname=conftest 15709 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15710 allow_undefined_flag_CXX= 15711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15712 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15713 ac_status=$? 15714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15715 test $ac_status = 0; } 15716 then 15717 lt_cv_archive_cmds_need_lc_CXX=no 15718 else 15719 lt_cv_archive_cmds_need_lc_CXX=yes 15720 fi 15721 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15722 else 15723 cat conftest.err 1>&5 15724 fi 15725 $RM conftest* 15726 15727fi 15728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 15729$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 15730 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 15731 ;; 15732 esac 15733 fi 15734 ;; 15735esac 15736 15737 15738 15739 15740 15741 15742 15743 15744 15745 15746 15747 15748 15749 15750 15751 15752 15753 15754 15755 15756 15757 15758 15759 15760 15761 15762 15763 15764 15765 15766 15767 15768 15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780 15781 15782 15783 15784 15785 15786 15787 15788 15789 15790 15791 15792 15793 15794 15795 15796 15797 15798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15799$as_echo_n "checking dynamic linker characteristics... " >&6; } 15800 15801library_names_spec= 15802libname_spec='lib$name' 15803soname_spec= 15804shrext_cmds=.so 15805postinstall_cmds= 15806postuninstall_cmds= 15807finish_cmds= 15808finish_eval= 15809shlibpath_var= 15810shlibpath_overrides_runpath=unknown 15811version_type=none 15812dynamic_linker="$host_os ld.so" 15813sys_lib_dlsearch_path_spec="/lib /usr/lib" 15814need_lib_prefix=unknown 15815hardcode_into_libs=no 15816 15817# when you set need_version to no, make sure it does not cause -set_version 15818# flags to be left without arguments 15819need_version=unknown 15820 15821 15822 15823case $host_os in 15824aix3*) 15825 version_type=linux # correct to gnu/linux during the next big refactor 15826 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 15827 shlibpath_var=LIBPATH 15828 15829 # AIX 3 has no versioning support, so we append a major version to the name. 15830 soname_spec='$libname$release$shared_ext$major' 15831 ;; 15832 15833aix[4-9]*) 15834 version_type=linux # correct to gnu/linux during the next big refactor 15835 need_lib_prefix=no 15836 need_version=no 15837 hardcode_into_libs=yes 15838 if test ia64 = "$host_cpu"; then 15839 # AIX 5 supports IA64 15840 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 15841 shlibpath_var=LD_LIBRARY_PATH 15842 else 15843 # With GCC up to 2.95.x, collect2 would create an import file 15844 # for dependence libraries. The import file would start with 15845 # the line '#! .'. This would cause the generated library to 15846 # depend on '.', always an invalid library. This was fixed in 15847 # development snapshots of GCC prior to 3.0. 15848 case $host_os in 15849 aix4 | aix4.[01] | aix4.[01].*) 15850 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15851 echo ' yes ' 15852 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 15853 : 15854 else 15855 can_build_shared=no 15856 fi 15857 ;; 15858 esac 15859 # Using Import Files as archive members, it is possible to support 15860 # filename-based versioning of shared library archives on AIX. While 15861 # this would work for both with and without runtime linking, it will 15862 # prevent static linking of such archives. So we do filename-based 15863 # shared library versioning with .so extension only, which is used 15864 # when both runtime linking and shared linking is enabled. 15865 # Unfortunately, runtime linking may impact performance, so we do 15866 # not want this to be the default eventually. Also, we use the 15867 # versioned .so libs for executables only if there is the -brtl 15868 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 15869 # To allow for filename-based versioning support, we need to create 15870 # libNAME.so.V as an archive file, containing: 15871 # *) an Import File, referring to the versioned filename of the 15872 # archive as well as the shared archive member, telling the 15873 # bitwidth (32 or 64) of that shared object, and providing the 15874 # list of exported symbols of that shared object, eventually 15875 # decorated with the 'weak' keyword 15876 # *) the shared object with the F_LOADONLY flag set, to really avoid 15877 # it being seen by the linker. 15878 # At run time we better use the real file rather than another symlink, 15879 # but for link time we create the symlink libNAME.so -> libNAME.so.V 15880 15881 case $with_aix_soname,$aix_use_runtimelinking in 15882 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 15883 # soname into executable. Probably we can add versioning support to 15884 # collect2, so additional links can be useful in future. 15885 aix,yes) # traditional libtool 15886 dynamic_linker='AIX unversionable lib.so' 15887 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15888 # instead of lib<name>.a to let people know that these are not 15889 # typical AIX shared libraries. 15890 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15891 ;; 15892 aix,no) # traditional AIX only 15893 dynamic_linker='AIX lib.a(lib.so.V)' 15894 # We preserve .a as extension for shared libraries through AIX4.2 15895 # and later when we are not doing run time linking. 15896 library_names_spec='$libname$release.a $libname.a' 15897 soname_spec='$libname$release$shared_ext$major' 15898 ;; 15899 svr4,*) # full svr4 only 15900 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 15901 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15902 # We do not specify a path in Import Files, so LIBPATH fires. 15903 shlibpath_overrides_runpath=yes 15904 ;; 15905 *,yes) # both, prefer svr4 15906 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 15907 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15908 # unpreferred sharedlib libNAME.a needs extra handling 15909 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"' 15910 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"' 15911 # We do not specify a path in Import Files, so LIBPATH fires. 15912 shlibpath_overrides_runpath=yes 15913 ;; 15914 *,no) # both, prefer aix 15915 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 15916 library_names_spec='$libname$release.a $libname.a' 15917 soname_spec='$libname$release$shared_ext$major' 15918 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 15919 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)' 15920 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"' 15921 ;; 15922 esac 15923 shlibpath_var=LIBPATH 15924 fi 15925 ;; 15926 15927amigaos*) 15928 case $host_cpu in 15929 powerpc) 15930 # Since July 2007 AmigaOS4 officially supports .so libraries. 15931 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15932 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15933 ;; 15934 m68k) 15935 library_names_spec='$libname.ixlibrary $libname.a' 15936 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15937 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' 15938 ;; 15939 esac 15940 ;; 15941 15942beos*) 15943 library_names_spec='$libname$shared_ext' 15944 dynamic_linker="$host_os ld.so" 15945 shlibpath_var=LIBRARY_PATH 15946 ;; 15947 15948bsdi[45]*) 15949 version_type=linux # correct to gnu/linux during the next big refactor 15950 need_version=no 15951 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15952 soname_spec='$libname$release$shared_ext$major' 15953 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15954 shlibpath_var=LD_LIBRARY_PATH 15955 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15956 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15957 # the default ld.so.conf also contains /usr/contrib/lib and 15958 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15959 # libtool to hard-code these into programs 15960 ;; 15961 15962cygwin* | mingw* | pw32* | cegcc*) 15963 version_type=windows 15964 shrext_cmds=.dll 15965 need_version=no 15966 need_lib_prefix=no 15967 15968 case $GCC,$cc_basename in 15969 yes,*) 15970 # gcc 15971 library_names_spec='$libname.dll.a' 15972 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15973 postinstall_cmds='base_file=`basename \$file`~ 15974 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15975 dldir=$destdir/`dirname \$dlpath`~ 15976 test -d \$dldir || mkdir -p \$dldir~ 15977 $install_prog $dir/$dlname \$dldir/$dlname~ 15978 chmod a+x \$dldir/$dlname~ 15979 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15980 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15981 fi' 15982 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15983 dlpath=$dir/\$dldll~ 15984 $RM \$dlpath' 15985 shlibpath_overrides_runpath=yes 15986 15987 case $host_os in 15988 cygwin*) 15989 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15990 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15991 15992 ;; 15993 mingw* | cegcc*) 15994 # MinGW DLLs use traditional 'lib' prefix 15995 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15996 ;; 15997 pw32*) 15998 # pw32 DLLs use 'pw' prefix rather than 'lib' 15999 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16000 ;; 16001 esac 16002 dynamic_linker='Win32 ld.exe' 16003 ;; 16004 16005 *,cl*) 16006 # Native MSVC 16007 libname_spec='$name' 16008 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16009 library_names_spec='$libname.dll.lib' 16010 16011 case $build_os in 16012 mingw*) 16013 sys_lib_search_path_spec= 16014 lt_save_ifs=$IFS 16015 IFS=';' 16016 for lt_path in $LIB 16017 do 16018 IFS=$lt_save_ifs 16019 # Let DOS variable expansion print the short 8.3 style file name. 16020 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16021 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16022 done 16023 IFS=$lt_save_ifs 16024 # Convert to MSYS style. 16025 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16026 ;; 16027 cygwin*) 16028 # Convert to unix form, then to dos form, then back to unix form 16029 # but this time dos style (no spaces!) so that the unix form looks 16030 # like /cygdrive/c/PROGRA~1:/cygdr... 16031 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16032 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16033 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16034 ;; 16035 *) 16036 sys_lib_search_path_spec=$LIB 16037 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16038 # It is most probably a Windows format PATH. 16039 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16040 else 16041 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16042 fi 16043 # FIXME: find the short name or the path components, as spaces are 16044 # common. (e.g. "Program Files" -> "PROGRA~1") 16045 ;; 16046 esac 16047 16048 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16049 postinstall_cmds='base_file=`basename \$file`~ 16050 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16051 dldir=$destdir/`dirname \$dlpath`~ 16052 test -d \$dldir || mkdir -p \$dldir~ 16053 $install_prog $dir/$dlname \$dldir/$dlname' 16054 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16055 dlpath=$dir/\$dldll~ 16056 $RM \$dlpath' 16057 shlibpath_overrides_runpath=yes 16058 dynamic_linker='Win32 link.exe' 16059 ;; 16060 16061 *) 16062 # Assume MSVC wrapper 16063 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 16064 dynamic_linker='Win32 ld.exe' 16065 ;; 16066 esac 16067 # FIXME: first we should search . and the directory the executable is in 16068 shlibpath_var=PATH 16069 ;; 16070 16071darwin* | rhapsody*) 16072 dynamic_linker="$host_os dyld" 16073 version_type=darwin 16074 need_lib_prefix=no 16075 need_version=no 16076 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 16077 soname_spec='$libname$release$major$shared_ext' 16078 shlibpath_overrides_runpath=yes 16079 shlibpath_var=DYLD_LIBRARY_PATH 16080 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16081 16082 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16083 ;; 16084 16085dgux*) 16086 version_type=linux # correct to gnu/linux during the next big refactor 16087 need_lib_prefix=no 16088 need_version=no 16089 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16090 soname_spec='$libname$release$shared_ext$major' 16091 shlibpath_var=LD_LIBRARY_PATH 16092 ;; 16093 16094freebsd* | dragonfly*) 16095 # DragonFly does not have aout. When/if they implement a new 16096 # versioning mechanism, adjust this. 16097 if test -x /usr/bin/objformat; then 16098 objformat=`/usr/bin/objformat` 16099 else 16100 case $host_os in 16101 freebsd[23].*) objformat=aout ;; 16102 *) objformat=elf ;; 16103 esac 16104 fi 16105 version_type=freebsd-$objformat 16106 case $version_type in 16107 freebsd-elf*) 16108 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16109 soname_spec='$libname$release$shared_ext$major' 16110 need_version=no 16111 need_lib_prefix=no 16112 ;; 16113 freebsd-*) 16114 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16115 need_version=yes 16116 ;; 16117 esac 16118 shlibpath_var=LD_LIBRARY_PATH 16119 case $host_os in 16120 freebsd2.*) 16121 shlibpath_overrides_runpath=yes 16122 ;; 16123 freebsd3.[01]* | freebsdelf3.[01]*) 16124 shlibpath_overrides_runpath=yes 16125 hardcode_into_libs=yes 16126 ;; 16127 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16128 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16129 shlibpath_overrides_runpath=no 16130 hardcode_into_libs=yes 16131 ;; 16132 *) # from 4.6 on, and DragonFly 16133 shlibpath_overrides_runpath=yes 16134 hardcode_into_libs=yes 16135 ;; 16136 esac 16137 ;; 16138 16139haiku*) 16140 version_type=linux # correct to gnu/linux during the next big refactor 16141 need_lib_prefix=no 16142 need_version=no 16143 dynamic_linker="$host_os runtime_loader" 16144 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16145 soname_spec='$libname$release$shared_ext$major' 16146 shlibpath_var=LIBRARY_PATH 16147 shlibpath_overrides_runpath=no 16148 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16149 hardcode_into_libs=yes 16150 ;; 16151 16152hpux9* | hpux10* | hpux11*) 16153 # Give a soname corresponding to the major version so that dld.sl refuses to 16154 # link against other versions. 16155 version_type=sunos 16156 need_lib_prefix=no 16157 need_version=no 16158 case $host_cpu in 16159 ia64*) 16160 shrext_cmds='.so' 16161 hardcode_into_libs=yes 16162 dynamic_linker="$host_os dld.so" 16163 shlibpath_var=LD_LIBRARY_PATH 16164 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16165 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16166 soname_spec='$libname$release$shared_ext$major' 16167 if test 32 = "$HPUX_IA64_MODE"; then 16168 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16169 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 16170 else 16171 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16172 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 16173 fi 16174 ;; 16175 hppa*64*) 16176 shrext_cmds='.sl' 16177 hardcode_into_libs=yes 16178 dynamic_linker="$host_os dld.sl" 16179 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16180 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16181 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16182 soname_spec='$libname$release$shared_ext$major' 16183 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16184 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16185 ;; 16186 *) 16187 shrext_cmds='.sl' 16188 dynamic_linker="$host_os dld.sl" 16189 shlibpath_var=SHLIB_PATH 16190 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16191 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16192 soname_spec='$libname$release$shared_ext$major' 16193 ;; 16194 esac 16195 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16196 postinstall_cmds='chmod 555 $lib' 16197 # or fails outright, so override atomically: 16198 install_override_mode=555 16199 ;; 16200 16201interix[3-9]*) 16202 version_type=linux # correct to gnu/linux during the next big refactor 16203 need_lib_prefix=no 16204 need_version=no 16205 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16206 soname_spec='$libname$release$shared_ext$major' 16207 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16208 shlibpath_var=LD_LIBRARY_PATH 16209 shlibpath_overrides_runpath=no 16210 hardcode_into_libs=yes 16211 ;; 16212 16213irix5* | irix6* | nonstopux*) 16214 case $host_os in 16215 nonstopux*) version_type=nonstopux ;; 16216 *) 16217 if test yes = "$lt_cv_prog_gnu_ld"; then 16218 version_type=linux # correct to gnu/linux during the next big refactor 16219 else 16220 version_type=irix 16221 fi ;; 16222 esac 16223 need_lib_prefix=no 16224 need_version=no 16225 soname_spec='$libname$release$shared_ext$major' 16226 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 16227 case $host_os in 16228 irix5* | nonstopux*) 16229 libsuff= shlibsuff= 16230 ;; 16231 *) 16232 case $LD in # libtool.m4 will add one of these switches to LD 16233 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16234 libsuff= shlibsuff= libmagic=32-bit;; 16235 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16236 libsuff=32 shlibsuff=N32 libmagic=N32;; 16237 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16238 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16239 *) libsuff= shlibsuff= libmagic=never-match;; 16240 esac 16241 ;; 16242 esac 16243 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16244 shlibpath_overrides_runpath=no 16245 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 16246 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 16247 hardcode_into_libs=yes 16248 ;; 16249 16250# No shared lib support for Linux oldld, aout, or coff. 16251linux*oldld* | linux*aout* | linux*coff*) 16252 dynamic_linker=no 16253 ;; 16254 16255linux*android*) 16256 version_type=none # Android doesn't support versioned libraries. 16257 need_lib_prefix=no 16258 need_version=no 16259 library_names_spec='$libname$release$shared_ext' 16260 soname_spec='$libname$release$shared_ext' 16261 finish_cmds= 16262 shlibpath_var=LD_LIBRARY_PATH 16263 shlibpath_overrides_runpath=yes 16264 16265 # This implies no fast_install, which is unacceptable. 16266 # Some rework will be needed to allow for fast_install 16267 # before this can be enabled. 16268 hardcode_into_libs=yes 16269 16270 dynamic_linker='Android linker' 16271 # Don't embed -rpath directories since the linker doesn't support them. 16272 hardcode_libdir_flag_spec_CXX='-L$libdir' 16273 ;; 16274 16275# This must be glibc/ELF. 16276linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16277 version_type=linux # correct to gnu/linux during the next big refactor 16278 need_lib_prefix=no 16279 need_version=no 16280 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16281 soname_spec='$libname$release$shared_ext$major' 16282 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16283 shlibpath_var=LD_LIBRARY_PATH 16284 shlibpath_overrides_runpath=no 16285 16286 # Some binutils ld are patched to set DT_RUNPATH 16287 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16288 $as_echo_n "(cached) " >&6 16289else 16290 lt_cv_shlibpath_overrides_runpath=no 16291 save_LDFLAGS=$LDFLAGS 16292 save_libdir=$libdir 16293 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 16294 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 16295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16296/* end confdefs.h. */ 16297 16298int 16299main () 16300{ 16301 16302 ; 16303 return 0; 16304} 16305_ACEOF 16306if ac_fn_cxx_try_link "$LINENO"; then : 16307 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16308 lt_cv_shlibpath_overrides_runpath=yes 16309fi 16310fi 16311rm -f core conftest.err conftest.$ac_objext \ 16312 conftest$ac_exeext conftest.$ac_ext 16313 LDFLAGS=$save_LDFLAGS 16314 libdir=$save_libdir 16315 16316fi 16317 16318 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16319 16320 # This implies no fast_install, which is unacceptable. 16321 # Some rework will be needed to allow for fast_install 16322 # before this can be enabled. 16323 hardcode_into_libs=yes 16324 16325 # Ideally, we could use ldconfig to report *all* directores which are 16326 # searched for libraries, however this is still not possible. Aside from not 16327 # being certain /sbin/ldconfig is available, command 16328 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 16329 # even though it is searched at run-time. Try to do the best guess by 16330 # appending ld.so.conf contents (and includes) to the search path. 16331 if test -f /etc/ld.so.conf; then 16332 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' ' '` 16333 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16334 fi 16335 16336 # We used to test for /lib/ld.so.1 and disable shared libraries on 16337 # powerpc, because MkLinux only supported shared libraries with the 16338 # GNU dynamic linker. Since this was broken with cross compilers, 16339 # most powerpc-linux boxes support dynamic linking these days and 16340 # people can always --disable-shared, the test was removed, and we 16341 # assume the GNU/Linux dynamic linker is in use. 16342 dynamic_linker='GNU/Linux ld.so' 16343 ;; 16344 16345netbsd*) 16346 version_type=sunos 16347 need_lib_prefix=no 16348 need_version=no 16349 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16350 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16351 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16352 dynamic_linker='NetBSD (a.out) ld.so' 16353 else 16354 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16355 soname_spec='$libname$release$shared_ext$major' 16356 dynamic_linker='NetBSD ld.elf_so' 16357 fi 16358 shlibpath_var=LD_LIBRARY_PATH 16359 shlibpath_overrides_runpath=yes 16360 hardcode_into_libs=yes 16361 ;; 16362 16363newsos6) 16364 version_type=linux # correct to gnu/linux during the next big refactor 16365 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16366 shlibpath_var=LD_LIBRARY_PATH 16367 shlibpath_overrides_runpath=yes 16368 ;; 16369 16370*nto* | *qnx*) 16371 version_type=qnx 16372 need_lib_prefix=no 16373 need_version=no 16374 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16375 soname_spec='$libname$release$shared_ext$major' 16376 shlibpath_var=LD_LIBRARY_PATH 16377 shlibpath_overrides_runpath=no 16378 hardcode_into_libs=yes 16379 dynamic_linker='ldqnx.so' 16380 ;; 16381 16382openbsd* | bitrig*) 16383 version_type=sunos 16384 sys_lib_dlsearch_path_spec=/usr/lib 16385 need_lib_prefix=no 16386 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16387 need_version=no 16388 else 16389 need_version=yes 16390 fi 16391 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16392 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16393 shlibpath_var=LD_LIBRARY_PATH 16394 shlibpath_overrides_runpath=yes 16395 ;; 16396 16397os2*) 16398 libname_spec='$name' 16399 version_type=windows 16400 shrext_cmds=.dll 16401 need_version=no 16402 need_lib_prefix=no 16403 # OS/2 can only load a DLL with a base name of 8 characters or less. 16404 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 16405 v=$($ECHO $release$versuffix | tr -d .-); 16406 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 16407 $ECHO $n$v`$shared_ext' 16408 library_names_spec='${libname}_dll.$libext' 16409 dynamic_linker='OS/2 ld.exe' 16410 shlibpath_var=BEGINLIBPATH 16411 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16412 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16413 postinstall_cmds='base_file=`basename \$file`~ 16414 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 16415 dldir=$destdir/`dirname \$dlpath`~ 16416 test -d \$dldir || mkdir -p \$dldir~ 16417 $install_prog $dir/$dlname \$dldir/$dlname~ 16418 chmod a+x \$dldir/$dlname~ 16419 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16420 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16421 fi' 16422 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 16423 dlpath=$dir/\$dldll~ 16424 $RM \$dlpath' 16425 ;; 16426 16427osf3* | osf4* | osf5*) 16428 version_type=osf 16429 need_lib_prefix=no 16430 need_version=no 16431 soname_spec='$libname$release$shared_ext$major' 16432 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16433 shlibpath_var=LD_LIBRARY_PATH 16434 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16435 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16436 ;; 16437 16438rdos*) 16439 dynamic_linker=no 16440 ;; 16441 16442solaris*) 16443 version_type=linux # correct to gnu/linux during the next big refactor 16444 need_lib_prefix=no 16445 need_version=no 16446 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16447 soname_spec='$libname$release$shared_ext$major' 16448 shlibpath_var=LD_LIBRARY_PATH 16449 shlibpath_overrides_runpath=yes 16450 hardcode_into_libs=yes 16451 # ldd complains unless libraries are executable 16452 postinstall_cmds='chmod +x $lib' 16453 ;; 16454 16455sunos4*) 16456 version_type=sunos 16457 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16458 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16459 shlibpath_var=LD_LIBRARY_PATH 16460 shlibpath_overrides_runpath=yes 16461 if test yes = "$with_gnu_ld"; then 16462 need_lib_prefix=no 16463 fi 16464 need_version=yes 16465 ;; 16466 16467sysv4 | sysv4.3*) 16468 version_type=linux # correct to gnu/linux during the next big refactor 16469 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16470 soname_spec='$libname$release$shared_ext$major' 16471 shlibpath_var=LD_LIBRARY_PATH 16472 case $host_vendor in 16473 sni) 16474 shlibpath_overrides_runpath=no 16475 need_lib_prefix=no 16476 runpath_var=LD_RUN_PATH 16477 ;; 16478 siemens) 16479 need_lib_prefix=no 16480 ;; 16481 motorola) 16482 need_lib_prefix=no 16483 need_version=no 16484 shlibpath_overrides_runpath=no 16485 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16486 ;; 16487 esac 16488 ;; 16489 16490sysv4*MP*) 16491 if test -d /usr/nec; then 16492 version_type=linux # correct to gnu/linux during the next big refactor 16493 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16494 soname_spec='$libname$shared_ext.$major' 16495 shlibpath_var=LD_LIBRARY_PATH 16496 fi 16497 ;; 16498 16499sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16500 version_type=sco 16501 need_lib_prefix=no 16502 need_version=no 16503 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16504 soname_spec='$libname$release$shared_ext$major' 16505 shlibpath_var=LD_LIBRARY_PATH 16506 shlibpath_overrides_runpath=yes 16507 hardcode_into_libs=yes 16508 if test yes = "$with_gnu_ld"; then 16509 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16510 else 16511 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16512 case $host_os in 16513 sco3.2v5*) 16514 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16515 ;; 16516 esac 16517 fi 16518 sys_lib_dlsearch_path_spec='/usr/lib' 16519 ;; 16520 16521tpf*) 16522 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16523 version_type=linux # correct to gnu/linux during the next big refactor 16524 need_lib_prefix=no 16525 need_version=no 16526 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16527 shlibpath_var=LD_LIBRARY_PATH 16528 shlibpath_overrides_runpath=no 16529 hardcode_into_libs=yes 16530 ;; 16531 16532uts4*) 16533 version_type=linux # correct to gnu/linux during the next big refactor 16534 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16535 soname_spec='$libname$release$shared_ext$major' 16536 shlibpath_var=LD_LIBRARY_PATH 16537 ;; 16538 16539*) 16540 dynamic_linker=no 16541 ;; 16542esac 16543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16544$as_echo "$dynamic_linker" >&6; } 16545test no = "$dynamic_linker" && can_build_shared=no 16546 16547variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16548if test yes = "$GCC"; then 16549 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16550fi 16551 16552if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 16553 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 16554fi 16555 16556if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16557 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16558fi 16559 16560# lt_cv_sys_lib... is unaugmented for libtool script decls... 16561lt_cv_sys_lib_dlsearch_path_spec=$sys_lib_dlsearch_path_spec 16562 16563# ..but sys_lib_... needs LT_SYS_LIBRARY_PATH munging for 16564# LT_SYS_DLSEARCH_PATH macro in ltdl.m4 to work with the correct paths: 16565func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 16566 16567 16568 16569 16570 16571 16572 16573 16574 16575 16576 16577 16578 16579 16580 16581 16582 16583 16584 16585 16586 16587 16588 16589 16590 16591 16592 16593 16594 16595 16596 16597 16598 16599 16600 16601 16602 16603 16604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16605$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16606hardcode_action_CXX= 16607if test -n "$hardcode_libdir_flag_spec_CXX" || 16608 test -n "$runpath_var_CXX" || 16609 test yes = "$hardcode_automatic_CXX"; then 16610 16611 # We can hardcode non-existent directories. 16612 if test no != "$hardcode_direct_CXX" && 16613 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16614 # have to relink, otherwise we might link with an installed library 16615 # when we should be linking with a yet-to-be-installed one 16616 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 16617 test no != "$hardcode_minus_L_CXX"; then 16618 # Linking always hardcodes the temporary library directory. 16619 hardcode_action_CXX=relink 16620 else 16621 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16622 hardcode_action_CXX=immediate 16623 fi 16624else 16625 # We cannot hardcode anything, or else we can only hardcode existing 16626 # directories. 16627 hardcode_action_CXX=unsupported 16628fi 16629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16630$as_echo "$hardcode_action_CXX" >&6; } 16631 16632if test relink = "$hardcode_action_CXX" || 16633 test yes = "$inherit_rpath_CXX"; then 16634 # Fast installation is not supported 16635 enable_fast_install=no 16636elif test yes = "$shlibpath_overrides_runpath" || 16637 test no = "$enable_shared"; then 16638 # Fast installation is not necessary 16639 enable_fast_install=needless 16640fi 16641 16642 16643 16644 16645 16646 16647 16648 fi # test -n "$compiler" 16649 16650 CC=$lt_save_CC 16651 CFLAGS=$lt_save_CFLAGS 16652 LDCXX=$LD 16653 LD=$lt_save_LD 16654 GCC=$lt_save_GCC 16655 with_gnu_ld=$lt_save_with_gnu_ld 16656 lt_cv_path_LDCXX=$lt_cv_path_LD 16657 lt_cv_path_LD=$lt_save_path_LD 16658 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16659 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16660fi # test yes != "$_lt_caught_CXX_error" 16661 16662ac_ext=c 16663ac_cpp='$CPP $CPPFLAGS' 16664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16666ac_compiler_gnu=$ac_cv_c_compiler_gnu 16667 16668 16669 16670# Enable support for silent build rules 16671# Check whether --enable-silent-rules was given. 16672if test "${enable_silent_rules+set}" = set; then : 16673 enableval=$enable_silent_rules; 16674fi 16675 16676case $enable_silent_rules in # ((( 16677 yes) AM_DEFAULT_VERBOSITY=0;; 16678 no) AM_DEFAULT_VERBOSITY=1;; 16679 *) AM_DEFAULT_VERBOSITY=1;; 16680esac 16681am_make=${MAKE-make} 16682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 16683$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 16684if ${am_cv_make_support_nested_variables+:} false; then : 16685 $as_echo_n "(cached) " >&6 16686else 16687 if $as_echo 'TRUE=$(BAR$(V)) 16688BAR0=false 16689BAR1=true 16690V=1 16691am__doit: 16692 @$(TRUE) 16693.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 16694 am_cv_make_support_nested_variables=yes 16695else 16696 am_cv_make_support_nested_variables=no 16697fi 16698fi 16699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 16700$as_echo "$am_cv_make_support_nested_variables" >&6; } 16701if test $am_cv_make_support_nested_variables = yes; then 16702 AM_V='$(V)' 16703 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 16704else 16705 AM_V=$AM_DEFAULT_VERBOSITY 16706 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 16707fi 16708AM_BACKSLASH='\' 16709 16710 16711tiff_libs_private= 16712 16713 16714case "${host_os}" in 16715 cygwin* | mingw32* | beos* | darwin*) 16716 ;; 16717 *) 16718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 16719$as_echo_n "checking for sin in -lm... " >&6; } 16720if ${ac_cv_lib_m_sin+:} false; then : 16721 $as_echo_n "(cached) " >&6 16722else 16723 ac_check_lib_save_LIBS=$LIBS 16724LIBS="-lm $LIBS" 16725cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16726/* end confdefs.h. */ 16727 16728/* Override any GCC internal prototype to avoid an error. 16729 Use char because int might match the return type of a GCC 16730 builtin and then its argument prototype would still apply. */ 16731#ifdef __cplusplus 16732extern "C" 16733#endif 16734char sin (); 16735int 16736main () 16737{ 16738return sin (); 16739 ; 16740 return 0; 16741} 16742_ACEOF 16743if ac_fn_c_try_link "$LINENO"; then : 16744 ac_cv_lib_m_sin=yes 16745else 16746 ac_cv_lib_m_sin=no 16747fi 16748rm -f core conftest.err conftest.$ac_objext \ 16749 conftest$ac_exeext conftest.$ac_ext 16750LIBS=$ac_check_lib_save_LIBS 16751fi 16752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 16753$as_echo "$ac_cv_lib_m_sin" >&6; } 16754if test "x$ac_cv_lib_m_sin" = xyes; then : 16755 libm_lib=yes 16756else 16757 libm_lib=no 16758fi 16759 16760 if test "x$libm_lib" = "xyes" ; then 16761 LIBS="-lm $LIBS" 16762 tiff_libs_private="-lm ${tiff_libs_private}" 16763 fi 16764 ;; 16765esac 16766 16767for ac_header in assert.h fcntl.h io.h limits.h malloc.h search.h sys/time.h unistd.h 16768do : 16769 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16770ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16771if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16772 cat >>confdefs.h <<_ACEOF 16773#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16774_ACEOF 16775 16776fi 16777 16778done 16779 16780 16781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 16782$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 16783if ${ac_cv_c_const+:} false; then : 16784 $as_echo_n "(cached) " >&6 16785else 16786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16787/* end confdefs.h. */ 16788 16789int 16790main () 16791{ 16792 16793#ifndef __cplusplus 16794 /* Ultrix mips cc rejects this sort of thing. */ 16795 typedef int charset[2]; 16796 const charset cs = { 0, 0 }; 16797 /* SunOS 4.1.1 cc rejects this. */ 16798 char const *const *pcpcc; 16799 char **ppc; 16800 /* NEC SVR4.0.2 mips cc rejects this. */ 16801 struct point {int x, y;}; 16802 static struct point const zero = {0,0}; 16803 /* AIX XL C 1.02.0.0 rejects this. 16804 It does not let you subtract one const X* pointer from another in 16805 an arm of an if-expression whose if-part is not a constant 16806 expression */ 16807 const char *g = "string"; 16808 pcpcc = &g + (g ? g-g : 0); 16809 /* HPUX 7.0 cc rejects these. */ 16810 ++pcpcc; 16811 ppc = (char**) pcpcc; 16812 pcpcc = (char const *const *) ppc; 16813 { /* SCO 3.2v4 cc rejects this sort of thing. */ 16814 char tx; 16815 char *t = &tx; 16816 char const *s = 0 ? (char *) 0 : (char const *) 0; 16817 16818 *t++ = 0; 16819 if (s) return 0; 16820 } 16821 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 16822 int x[] = {25, 17}; 16823 const int *foo = &x[0]; 16824 ++foo; 16825 } 16826 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 16827 typedef const int *iptr; 16828 iptr p = 0; 16829 ++p; 16830 } 16831 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 16832 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 16833 struct s { int j; const int *ap[3]; } bx; 16834 struct s *b = &bx; b->j = 5; 16835 } 16836 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 16837 const int foo = 10; 16838 if (!foo) return 0; 16839 } 16840 return !cs[0] && !zero.x; 16841#endif 16842 16843 ; 16844 return 0; 16845} 16846_ACEOF 16847if ac_fn_c_try_compile "$LINENO"; then : 16848 ac_cv_c_const=yes 16849else 16850 ac_cv_c_const=no 16851fi 16852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16853fi 16854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 16855$as_echo "$ac_cv_c_const" >&6; } 16856if test $ac_cv_c_const = no; then 16857 16858$as_echo "#define const /**/" >>confdefs.h 16859 16860fi 16861 16862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 16863$as_echo_n "checking for inline... " >&6; } 16864if ${ac_cv_c_inline+:} false; then : 16865 $as_echo_n "(cached) " >&6 16866else 16867 ac_cv_c_inline=no 16868for ac_kw in inline __inline__ __inline; do 16869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16870/* end confdefs.h. */ 16871#ifndef __cplusplus 16872typedef int foo_t; 16873static $ac_kw foo_t static_foo () {return 0; } 16874$ac_kw foo_t foo () {return 0; } 16875#endif 16876 16877_ACEOF 16878if ac_fn_c_try_compile "$LINENO"; then : 16879 ac_cv_c_inline=$ac_kw 16880fi 16881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16882 test "$ac_cv_c_inline" != no && break 16883done 16884 16885fi 16886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 16887$as_echo "$ac_cv_c_inline" >&6; } 16888 16889case $ac_cv_c_inline in 16890 inline | yes) ;; 16891 *) 16892 case $ac_cv_c_inline in 16893 no) ac_val=;; 16894 *) ac_val=$ac_cv_c_inline;; 16895 esac 16896 cat >>confdefs.h <<_ACEOF 16897#ifndef __cplusplus 16898#define inline $ac_val 16899#endif 16900_ACEOF 16901 ;; 16902esac 16903 16904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 16905$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 16906if ${ac_cv_c_bigendian+:} false; then : 16907 $as_echo_n "(cached) " >&6 16908else 16909 ac_cv_c_bigendian=unknown 16910 # See if we're dealing with a universal compiler. 16911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16912/* end confdefs.h. */ 16913#ifndef __APPLE_CC__ 16914 not a universal capable compiler 16915 #endif 16916 typedef int dummy; 16917 16918_ACEOF 16919if ac_fn_c_try_compile "$LINENO"; then : 16920 16921 # Check for potential -arch flags. It is not universal unless 16922 # there are at least two -arch flags with different values. 16923 ac_arch= 16924 ac_prev= 16925 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 16926 if test -n "$ac_prev"; then 16927 case $ac_word in 16928 i?86 | x86_64 | ppc | ppc64) 16929 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 16930 ac_arch=$ac_word 16931 else 16932 ac_cv_c_bigendian=universal 16933 break 16934 fi 16935 ;; 16936 esac 16937 ac_prev= 16938 elif test "x$ac_word" = "x-arch"; then 16939 ac_prev=arch 16940 fi 16941 done 16942fi 16943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16944 if test $ac_cv_c_bigendian = unknown; then 16945 # See if sys/param.h defines the BYTE_ORDER macro. 16946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16947/* end confdefs.h. */ 16948#include <sys/types.h> 16949 #include <sys/param.h> 16950 16951int 16952main () 16953{ 16954#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 16955 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 16956 && LITTLE_ENDIAN) 16957 bogus endian macros 16958 #endif 16959 16960 ; 16961 return 0; 16962} 16963_ACEOF 16964if ac_fn_c_try_compile "$LINENO"; then : 16965 # It does; now see whether it defined to BIG_ENDIAN or not. 16966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16967/* end confdefs.h. */ 16968#include <sys/types.h> 16969 #include <sys/param.h> 16970 16971int 16972main () 16973{ 16974#if BYTE_ORDER != BIG_ENDIAN 16975 not big endian 16976 #endif 16977 16978 ; 16979 return 0; 16980} 16981_ACEOF 16982if ac_fn_c_try_compile "$LINENO"; then : 16983 ac_cv_c_bigendian=yes 16984else 16985 ac_cv_c_bigendian=no 16986fi 16987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16988fi 16989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16990 fi 16991 if test $ac_cv_c_bigendian = unknown; then 16992 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 16993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16994/* end confdefs.h. */ 16995#include <limits.h> 16996 16997int 16998main () 16999{ 17000#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 17001 bogus endian macros 17002 #endif 17003 17004 ; 17005 return 0; 17006} 17007_ACEOF 17008if ac_fn_c_try_compile "$LINENO"; then : 17009 # It does; now see whether it defined to _BIG_ENDIAN or not. 17010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17011/* end confdefs.h. */ 17012#include <limits.h> 17013 17014int 17015main () 17016{ 17017#ifndef _BIG_ENDIAN 17018 not big endian 17019 #endif 17020 17021 ; 17022 return 0; 17023} 17024_ACEOF 17025if ac_fn_c_try_compile "$LINENO"; then : 17026 ac_cv_c_bigendian=yes 17027else 17028 ac_cv_c_bigendian=no 17029fi 17030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17031fi 17032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17033 fi 17034 if test $ac_cv_c_bigendian = unknown; then 17035 # Compile a test program. 17036 if test "$cross_compiling" = yes; then : 17037 # Try to guess by grepping values from an object file. 17038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17039/* end confdefs.h. */ 17040short int ascii_mm[] = 17041 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 17042 short int ascii_ii[] = 17043 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 17044 int use_ascii (int i) { 17045 return ascii_mm[i] + ascii_ii[i]; 17046 } 17047 short int ebcdic_ii[] = 17048 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 17049 short int ebcdic_mm[] = 17050 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 17051 int use_ebcdic (int i) { 17052 return ebcdic_mm[i] + ebcdic_ii[i]; 17053 } 17054 extern int foo; 17055 17056int 17057main () 17058{ 17059return use_ascii (foo) == use_ebcdic (foo); 17060 ; 17061 return 0; 17062} 17063_ACEOF 17064if ac_fn_c_try_compile "$LINENO"; then : 17065 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 17066 ac_cv_c_bigendian=yes 17067 fi 17068 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 17069 if test "$ac_cv_c_bigendian" = unknown; then 17070 ac_cv_c_bigendian=no 17071 else 17072 # finding both strings is unlikely to happen, but who knows? 17073 ac_cv_c_bigendian=unknown 17074 fi 17075 fi 17076fi 17077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17078else 17079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17080/* end confdefs.h. */ 17081$ac_includes_default 17082int 17083main () 17084{ 17085 17086 /* Are we little or big endian? From Harbison&Steele. */ 17087 union 17088 { 17089 long int l; 17090 char c[sizeof (long int)]; 17091 } u; 17092 u.l = 1; 17093 return u.c[sizeof (long int) - 1] == 1; 17094 17095 ; 17096 return 0; 17097} 17098_ACEOF 17099if ac_fn_c_try_run "$LINENO"; then : 17100 ac_cv_c_bigendian=no 17101else 17102 ac_cv_c_bigendian=yes 17103fi 17104rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17105 conftest.$ac_objext conftest.beam conftest.$ac_ext 17106fi 17107 17108 fi 17109fi 17110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 17111$as_echo "$ac_cv_c_bigendian" >&6; } 17112 case $ac_cv_c_bigendian in #( 17113 yes) 17114 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 17115;; #( 17116 no) 17117 ;; #( 17118 universal) 17119 17120$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 17121 17122 ;; #( 17123 *) 17124 as_fn_error $? "unknown endianness 17125 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 17126 esac 17127 17128ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 17129if test "x$ac_cv_type_off_t" = xyes; then : 17130 17131else 17132 17133cat >>confdefs.h <<_ACEOF 17134#define off_t long int 17135_ACEOF 17136 17137fi 17138 17139ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 17140if test "x$ac_cv_type_size_t" = xyes; then : 17141 17142else 17143 17144cat >>confdefs.h <<_ACEOF 17145#define size_t unsigned int 17146_ACEOF 17147 17148fi 17149 17150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 17151$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 17152if ${ac_cv_header_time+:} false; then : 17153 $as_echo_n "(cached) " >&6 17154else 17155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17156/* end confdefs.h. */ 17157#include <sys/types.h> 17158#include <sys/time.h> 17159#include <time.h> 17160 17161int 17162main () 17163{ 17164if ((struct tm *) 0) 17165return 0; 17166 ; 17167 return 0; 17168} 17169_ACEOF 17170if ac_fn_c_try_compile "$LINENO"; then : 17171 ac_cv_header_time=yes 17172else 17173 ac_cv_header_time=no 17174fi 17175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17176fi 17177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 17178$as_echo "$ac_cv_header_time" >&6; } 17179if test $ac_cv_header_time = yes; then 17180 17181$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 17182 17183fi 17184 17185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 17186$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 17187if ${ac_cv_struct_tm+:} false; then : 17188 $as_echo_n "(cached) " >&6 17189else 17190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17191/* end confdefs.h. */ 17192#include <sys/types.h> 17193#include <time.h> 17194 17195int 17196main () 17197{ 17198struct tm tm; 17199 int *p = &tm.tm_sec; 17200 return !p; 17201 ; 17202 return 0; 17203} 17204_ACEOF 17205if ac_fn_c_try_compile "$LINENO"; then : 17206 ac_cv_struct_tm=time.h 17207else 17208 ac_cv_struct_tm=sys/time.h 17209fi 17210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17211fi 17212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 17213$as_echo "$ac_cv_struct_tm" >&6; } 17214if test $ac_cv_struct_tm = sys/time.h; then 17215 17216$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 17217 17218fi 17219 17220 17221 17222# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT 17223# The cast to long int works around a bug in the HP C Compiler 17224# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17225# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17226# This bug is HP SR number 8606223364. 17227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5 17228$as_echo_n "checking size of signed short... " >&6; } 17229if ${ac_cv_sizeof_signed_short+:} false; then : 17230 $as_echo_n "(cached) " >&6 17231else 17232 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then : 17233 17234else 17235 if test "$ac_cv_type_signed_short" = yes; then 17236 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17238as_fn_error 77 "cannot compute sizeof (signed short) 17239See \`config.log' for more details" "$LINENO" 5; } 17240 else 17241 ac_cv_sizeof_signed_short=0 17242 fi 17243fi 17244 17245fi 17246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5 17247$as_echo "$ac_cv_sizeof_signed_short" >&6; } 17248 17249 17250 17251cat >>confdefs.h <<_ACEOF 17252#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short 17253_ACEOF 17254 17255 17256 17257# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT 17258# The cast to long int works around a bug in the HP C Compiler 17259# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17260# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17261# This bug is HP SR number 8606223364. 17262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5 17263$as_echo_n "checking size of unsigned short... " >&6; } 17264if ${ac_cv_sizeof_unsigned_short+:} false; then : 17265 $as_echo_n "(cached) " >&6 17266else 17267 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then : 17268 17269else 17270 if test "$ac_cv_type_unsigned_short" = yes; then 17271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17273as_fn_error 77 "cannot compute sizeof (unsigned short) 17274See \`config.log' for more details" "$LINENO" 5; } 17275 else 17276 ac_cv_sizeof_unsigned_short=0 17277 fi 17278fi 17279 17280fi 17281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5 17282$as_echo "$ac_cv_sizeof_unsigned_short" >&6; } 17283 17284 17285 17286cat >>confdefs.h <<_ACEOF 17287#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short 17288_ACEOF 17289 17290 17291 17292# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT 17293# The cast to long int works around a bug in the HP C Compiler 17294# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17295# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17296# This bug is HP SR number 8606223364. 17297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5 17298$as_echo_n "checking size of signed int... " >&6; } 17299if ${ac_cv_sizeof_signed_int+:} false; then : 17300 $as_echo_n "(cached) " >&6 17301else 17302 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int" "$ac_includes_default"; then : 17303 17304else 17305 if test "$ac_cv_type_signed_int" = yes; then 17306 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17308as_fn_error 77 "cannot compute sizeof (signed int) 17309See \`config.log' for more details" "$LINENO" 5; } 17310 else 17311 ac_cv_sizeof_signed_int=0 17312 fi 17313fi 17314 17315fi 17316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5 17317$as_echo "$ac_cv_sizeof_signed_int" >&6; } 17318 17319 17320 17321cat >>confdefs.h <<_ACEOF 17322#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int 17323_ACEOF 17324 17325 17326 17327# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT 17328# The cast to long int works around a bug in the HP C Compiler 17329# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17330# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17331# This bug is HP SR number 8606223364. 17332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 17333$as_echo_n "checking size of unsigned int... " >&6; } 17334if ${ac_cv_sizeof_unsigned_int+:} false; then : 17335 $as_echo_n "(cached) " >&6 17336else 17337 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then : 17338 17339else 17340 if test "$ac_cv_type_unsigned_int" = yes; then 17341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17343as_fn_error 77 "cannot compute sizeof (unsigned int) 17344See \`config.log' for more details" "$LINENO" 5; } 17345 else 17346 ac_cv_sizeof_unsigned_int=0 17347 fi 17348fi 17349 17350fi 17351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 17352$as_echo "$ac_cv_sizeof_unsigned_int" >&6; } 17353 17354 17355 17356cat >>confdefs.h <<_ACEOF 17357#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int 17358_ACEOF 17359 17360 17361 17362# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG 17363# The cast to long int works around a bug in the HP C Compiler 17364# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17365# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17366# This bug is HP SR number 8606223364. 17367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5 17368$as_echo_n "checking size of signed long... " >&6; } 17369if ${ac_cv_sizeof_signed_long+:} false; then : 17370 $as_echo_n "(cached) " >&6 17371else 17372 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then : 17373 17374else 17375 if test "$ac_cv_type_signed_long" = yes; then 17376 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17377$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17378as_fn_error 77 "cannot compute sizeof (signed long) 17379See \`config.log' for more details" "$LINENO" 5; } 17380 else 17381 ac_cv_sizeof_signed_long=0 17382 fi 17383fi 17384 17385fi 17386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5 17387$as_echo "$ac_cv_sizeof_signed_long" >&6; } 17388 17389 17390 17391cat >>confdefs.h <<_ACEOF 17392#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long 17393_ACEOF 17394 17395 17396 17397# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG 17398# The cast to long int works around a bug in the HP C Compiler 17399# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17400# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17401# This bug is HP SR number 8606223364. 17402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 17403$as_echo_n "checking size of unsigned long... " >&6; } 17404if ${ac_cv_sizeof_unsigned_long+:} false; then : 17405 $as_echo_n "(cached) " >&6 17406else 17407 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : 17408 17409else 17410 if test "$ac_cv_type_unsigned_long" = yes; then 17411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17412$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17413as_fn_error 77 "cannot compute sizeof (unsigned long) 17414See \`config.log' for more details" "$LINENO" 5; } 17415 else 17416 ac_cv_sizeof_unsigned_long=0 17417 fi 17418fi 17419 17420fi 17421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 17422$as_echo "$ac_cv_sizeof_unsigned_long" >&6; } 17423 17424 17425 17426cat >>confdefs.h <<_ACEOF 17427#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 17428_ACEOF 17429 17430 17431 17432# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. 17433# If 'long long' is not supported then the value defined is zero. 17434# The cast to long int works around a bug in the HP C Compiler 17435# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17436# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17437# This bug is HP SR number 8606223364. 17438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5 17439$as_echo_n "checking size of signed long long... " >&6; } 17440if ${ac_cv_sizeof_signed_long_long+:} false; then : 17441 $as_echo_n "(cached) " >&6 17442else 17443 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then : 17444 17445else 17446 if test "$ac_cv_type_signed_long_long" = yes; then 17447 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17448$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17449as_fn_error 77 "cannot compute sizeof (signed long long) 17450See \`config.log' for more details" "$LINENO" 5; } 17451 else 17452 ac_cv_sizeof_signed_long_long=0 17453 fi 17454fi 17455 17456fi 17457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5 17458$as_echo "$ac_cv_sizeof_signed_long_long" >&6; } 17459 17460 17461 17462cat >>confdefs.h <<_ACEOF 17463#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long 17464_ACEOF 17465 17466 17467 17468# Obtain size of a 'unsigned long long' and define as 17469# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not 17470# supported then the value defined is zero. 17471# The cast to long int works around a bug in the HP C Compiler 17472# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17473# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17474# This bug is HP SR number 8606223364. 17475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5 17476$as_echo_n "checking size of unsigned long long... " >&6; } 17477if ${ac_cv_sizeof_unsigned_long_long+:} false; then : 17478 $as_echo_n "(cached) " >&6 17479else 17480 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then : 17481 17482else 17483 if test "$ac_cv_type_unsigned_long_long" = yes; then 17484 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17485$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17486as_fn_error 77 "cannot compute sizeof (unsigned long long) 17487See \`config.log' for more details" "$LINENO" 5; } 17488 else 17489 ac_cv_sizeof_unsigned_long_long=0 17490 fi 17491fi 17492 17493fi 17494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5 17495$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } 17496 17497 17498 17499cat >>confdefs.h <<_ACEOF 17500#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long 17501_ACEOF 17502 17503 17504 17505# Obtain the size of an 'unsigned char *' and define as 17506# SIZEOF_UNSIGNED_CHAR_P. Result is available in 17507# ac_cv_sizeof_unsigned_char_p. 17508# The cast to long int works around a bug in the HP C Compiler 17509# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17510# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17511# This bug is HP SR number 8606223364. 17512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned char *" >&5 17513$as_echo_n "checking size of unsigned char *... " >&6; } 17514if ${ac_cv_sizeof_unsigned_char_p+:} false; then : 17515 $as_echo_n "(cached) " >&6 17516else 17517 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned char *))" "ac_cv_sizeof_unsigned_char_p" "$ac_includes_default"; then : 17518 17519else 17520 if test "$ac_cv_type_unsigned_char_p" = yes; then 17521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17522$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17523as_fn_error 77 "cannot compute sizeof (unsigned char *) 17524See \`config.log' for more details" "$LINENO" 5; } 17525 else 17526 ac_cv_sizeof_unsigned_char_p=0 17527 fi 17528fi 17529 17530fi 17531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_char_p" >&5 17532$as_echo "$ac_cv_sizeof_unsigned_char_p" >&6; } 17533 17534 17535 17536cat >>confdefs.h <<_ACEOF 17537#define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p 17538_ACEOF 17539 17540 17541 17542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5 17543$as_echo_n "checking for signed 8-bit type... " >&6; } 17544INT8_T='signed char' 17545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5 17546$as_echo "$INT8_T" >&6; } 17547 17548cat >>confdefs.h <<_ACEOF 17549#define TIFF_INT8_T $INT8_T 17550_ACEOF 17551 17552 17553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5 17554$as_echo_n "checking for unsigned 8-bit type... " >&6; } 17555UINT8_T='unsigned char' 17556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5 17557$as_echo "$UINT8_T" >&6; } 17558 17559cat >>confdefs.h <<_ACEOF 17560#define TIFF_UINT8_T $UINT8_T 17561_ACEOF 17562 17563 17564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5 17565$as_echo_n "checking for signed 16-bit type... " >&6; } 17566INT16_T='signed short' 17567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5 17568$as_echo "$INT16_T" >&6; } 17569 17570cat >>confdefs.h <<_ACEOF 17571#define TIFF_INT16_T $INT16_T 17572_ACEOF 17573 17574 17575 17576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5 17577$as_echo_n "checking for unsigned 16-bit type... " >&6; } 17578UINT16_T='unsigned short' 17579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5 17580$as_echo "$UINT16_T" >&6; } 17581 17582cat >>confdefs.h <<_ACEOF 17583#define TIFF_UINT16_T $UINT16_T 17584_ACEOF 17585 17586 17587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5 17588$as_echo_n "checking for signed 32-bit type... " >&6; } 17589INT32_T='none' 17590INT32_FORMAT='none' 17591if test $ac_cv_sizeof_signed_int -eq 4 17592then 17593 INT32_T='signed int' 17594 INT32_FORMAT='"%d"' 17595elif test $ac_cv_sizeof_signed_long -eq 4 17596then 17597 INT32_T='signed long' 17598 INT32_FORMAT='"%ld"' 17599fi 17600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5 17601$as_echo "$INT32_T" >&6; } 17602 17603cat >>confdefs.h <<_ACEOF 17604#define TIFF_INT32_T $INT32_T 17605_ACEOF 17606 17607 17608cat >>confdefs.h <<_ACEOF 17609#define TIFF_INT32_FORMAT $INT32_FORMAT 17610_ACEOF 17611 17612 17613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5 17614$as_echo_n "checking for unsigned 32-bit type... " >&6; } 17615UINT32_T='none' 17616UINT32_FORMAT='none' 17617if test $ac_cv_sizeof_unsigned_int -eq 4 17618then 17619 UINT32_T='unsigned int' 17620 UINT32_FORMAT='"%u"' 17621elif test $ac_cv_sizeof_unsigned_long -eq 4 17622then 17623 UINT32_T='unsigned long' 17624 UINT32_FORMAT='"%lu"' 17625fi 17626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5 17627$as_echo "$UINT32_T" >&6; } 17628 17629cat >>confdefs.h <<_ACEOF 17630#define TIFF_UINT32_T $UINT32_T 17631_ACEOF 17632 17633 17634cat >>confdefs.h <<_ACEOF 17635#define TIFF_UINT32_FORMAT $UINT32_FORMAT 17636_ACEOF 17637 17638 17639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5 17640$as_echo_n "checking for signed 64-bit type... " >&6; } 17641INT64_T='none' 17642INT64_FORMAT='none' 17643if test $ac_cv_sizeof_signed_long -eq 8 17644then 17645 INT64_T='signed long' 17646 INT64_FORMAT='"%ld"' 17647elif test $ac_cv_sizeof_signed_long_long -eq 8 17648then 17649 INT64_T='signed long long' 17650 case "${host_os}" in 17651 mingw32*) 17652 # MinGW32 understands 'long long', but uses printf from WIN32 CRT 17653 INT64_FORMAT='"%I64d"' 17654 ;; 17655 *) 17656 INT64_FORMAT='"%lld"' 17657 ;; 17658 esac 17659fi 17660 17661 17662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5 17663$as_echo "$INT64_T" >&6; } 17664 17665cat >>confdefs.h <<_ACEOF 17666#define TIFF_INT64_T $INT64_T 17667_ACEOF 17668 17669 17670cat >>confdefs.h <<_ACEOF 17671#define TIFF_INT64_FORMAT $INT64_FORMAT 17672_ACEOF 17673 17674 17675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5 17676$as_echo_n "checking for unsigned 64-bit type... " >&6; } 17677UINT64_T='none' 17678UINT64_FORMAT='none' 17679if test $ac_cv_sizeof_unsigned_long -eq 8 17680then 17681 UINT64_T='unsigned long' 17682 UINT64_FORMAT='"%lu"' 17683elif test $ac_cv_sizeof_unsigned_long_long -eq 8 17684then 17685 UINT64_T='unsigned long long' 17686 case "${host_os}" in 17687 mingw32*) 17688 # MinGW32 understands 'unsigned long long', but uses printf from WIN32 CRT 17689 UINT64_FORMAT='"%I64u"' 17690 ;; 17691 *) 17692 UINT64_FORMAT='"%llu"' 17693 ;; 17694 esac 17695fi 17696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5 17697$as_echo "$UINT64_T" >&6; } 17698 17699cat >>confdefs.h <<_ACEOF 17700#define TIFF_UINT64_T $UINT64_T 17701_ACEOF 17702 17703 17704cat >>confdefs.h <<_ACEOF 17705#define TIFF_UINT64_FORMAT $UINT64_FORMAT 17706_ACEOF 17707 17708 17709# Determine TIFF equivalent of ssize_t 17710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed size type" >&5 17711$as_echo_n "checking for signed size type... " >&6; } 17712SSIZE_T='unknown' 17713SSIZE_FORMAT='unknown' 17714if test $ac_cv_sizeof_signed_long -eq $ac_cv_sizeof_unsigned_char_p 17715then 17716 SSIZE_T='signed long' 17717 SSIZE_FORMAT='"%ld"' 17718elif test $ac_cv_sizeof_signed_long_long -eq $ac_cv_sizeof_unsigned_char_p 17719then 17720 SSIZE_T='signed long long' 17721 SSIZE_FORMAT='"%lld"' 17722fi 17723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSIZE_T" >&5 17724$as_echo "$SSIZE_T" >&6; } 17725 17726cat >>confdefs.h <<_ACEOF 17727#define TIFF_SSIZE_T $SSIZE_T 17728_ACEOF 17729 17730 17731cat >>confdefs.h <<_ACEOF 17732#define TIFF_SSIZE_FORMAT $SSIZE_FORMAT 17733_ACEOF 17734 17735 17736# Determine the type to use for the difference between two pointers. 17737# We will default to the POSIX ptrdiff_t if it is available, but will 17738# be prepared for the case when it is not. 17739PTRDIFF_T='unknown' 17740PTRDIFF_FORMAT='"%ld"' 17741ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 17742if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 17743 PTRDIFF_T=ptrdiff_t 17744fi 17745 17746if test $PTRDIFF_T = unknown 17747then 17748 PTRDIFF_T=$SSIZE_T 17749 PTRDIFF_FORMAT=$SSIZE_FORMAT 17750fi 17751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5 17752$as_echo_n "checking for pointer difference type... " >&6; } 17753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTRDIFF_T" >&5 17754$as_echo "$PTRDIFF_T" >&6; } 17755 17756cat >>confdefs.h <<_ACEOF 17757#define TIFF_PTRDIFF_T $PTRDIFF_T 17758_ACEOF 17759 17760 17761cat >>confdefs.h <<_ACEOF 17762#define TIFF_PTRDIFF_FORMAT $PTRDIFF_FORMAT 17763_ACEOF 17764 17765 17766ac_fn_c_check_type "$LINENO" "int8" "ac_cv_type_int8" " 17767#if HAVE_INTTYPES_H 17768# include <inttypes.h> 17769#endif 17770 17771" 17772if test "x$ac_cv_type_int8" = xyes; then : 17773 17774cat >>confdefs.h <<_ACEOF 17775#define HAVE_INT8 1 17776_ACEOF 17777 17778 17779fi 17780ac_fn_c_check_type "$LINENO" "int16" "ac_cv_type_int16" " 17781#if HAVE_INTTYPES_H 17782# include <inttypes.h> 17783#endif 17784 17785" 17786if test "x$ac_cv_type_int16" = xyes; then : 17787 17788cat >>confdefs.h <<_ACEOF 17789#define HAVE_INT16 1 17790_ACEOF 17791 17792 17793fi 17794ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" " 17795#if HAVE_INTTYPES_H 17796# include <inttypes.h> 17797#endif 17798 17799" 17800if test "x$ac_cv_type_int32" = xyes; then : 17801 17802cat >>confdefs.h <<_ACEOF 17803#define HAVE_INT32 1 17804_ACEOF 17805 17806 17807fi 17808 17809 17810for ac_func in floor isascii memmove memset mmap pow setmode sqrt strchr strrchr strstr strtol strtoull 17811do : 17812 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17813ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17814if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17815 cat >>confdefs.h <<_ACEOF 17816#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17817_ACEOF 17818 17819fi 17820done 17821 17822 17823ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt" 17824if test "x$ac_cv_func_getopt" = xyes; then : 17825 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h 17826 17827else 17828 case " $LIBOBJS " in 17829 *" getopt.$ac_objext "* ) ;; 17830 *) LIBOBJS="$LIBOBJS getopt.$ac_objext" 17831 ;; 17832esac 17833 17834fi 17835 17836 17837ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 17838if test "x$ac_cv_func_strcasecmp" = xyes; then : 17839 $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h 17840 17841else 17842 case " $LIBOBJS " in 17843 *" strcasecmp.$ac_objext "* ) ;; 17844 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" 17845 ;; 17846esac 17847 17848fi 17849 17850 17851ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul" 17852if test "x$ac_cv_func_strtoul" = xyes; then : 17853 $as_echo "#define HAVE_STRTOUL 1" >>confdefs.h 17854 17855else 17856 case " $LIBOBJS " in 17857 *" strtoul.$ac_objext "* ) ;; 17858 *) LIBOBJS="$LIBOBJS strtoul.$ac_objext" 17859 ;; 17860esac 17861 17862fi 17863 17864 17865ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull" 17866if test "x$ac_cv_func_strtoull" = xyes; then : 17867 $as_echo "#define HAVE_STRTOULL 1" >>confdefs.h 17868 17869else 17870 case " $LIBOBJS " in 17871 *" strtoull.$ac_objext "* ) ;; 17872 *) LIBOBJS="$LIBOBJS strtoull.$ac_objext" 17873 ;; 17874esac 17875 17876fi 17877 17878 17879ac_fn_c_check_func "$LINENO" "lfind" "ac_cv_func_lfind" 17880if test "x$ac_cv_func_lfind" = xyes; then : 17881 $as_echo "#define HAVE_LFIND 1" >>confdefs.h 17882 17883else 17884 case " $LIBOBJS " in 17885 *" lfind.$ac_objext "* ) ;; 17886 *) LIBOBJS="$LIBOBJS lfind.$ac_objext" 17887 ;; 17888esac 17889 17890fi 17891 17892 17893 17894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking native cpu bit order" >&5 17895$as_echo_n "checking native cpu bit order... " >&6; } 17896case "$host_cpu" in 17897 i*86*|x86_64*) 17898 HOST_FILLORDER=FILLORDER_LSB2MSB 17899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lsb2msb" >&5 17900$as_echo "lsb2msb" >&6; } 17901 ;; 17902 *) 17903 HOST_FILLORDER=FILLORDER_MSB2LSB 17904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: msb2lsb" >&5 17905$as_echo "msb2lsb" >&6; } 17906 ;; 17907esac 17908 17909cat >>confdefs.h <<_ACEOF 17910#define HOST_FILLORDER $HOST_FILLORDER 17911_ACEOF 17912 17913 17914if test "$ac_cv_c_bigendian" = yes ; then 17915 HOST_BIGENDIAN=1 17916else 17917 HOST_BIGENDIAN=0 17918fi 17919 17920cat >>confdefs.h <<_ACEOF 17921#define HOST_BIGENDIAN $HOST_BIGENDIAN 17922_ACEOF 17923 17924 17925#_POSIX_C_SOURCE=2 17926#AC_DEFINE_UNQUOTED(_POSIX_C_SOURCE, $_POSIX_C_SOURCE, [Define this macro to a positive integer to control which POSIX functionality is made available.]) 17927 17928HAVE_IEEEFP=1 17929 17930cat >>confdefs.h <<_ACEOF 17931#define HAVE_IEEEFP $HAVE_IEEEFP 17932_ACEOF 17933 17934 17935 17936# Check whether --enable-rpath was given. 17937if test "${enable_rpath+set}" = set; then : 17938 enableval=$enable_rpath; HAVE_RPATH=$enableval 17939else 17940 HAVE_RPATH=no 17941fi 17942 17943 if test "$HAVE_RPATH" = "yes"; then 17944 HAVE_RPATH_TRUE= 17945 HAVE_RPATH_FALSE='#' 17946else 17947 HAVE_RPATH_TRUE='#' 17948 HAVE_RPATH_FALSE= 17949fi 17950 17951 17952 17953# Check whether --enable-largefile was given. 17954if test "${enable_largefile+set}" = set; then : 17955 enableval=$enable_largefile; 17956fi 17957 17958if test "$enable_largefile" != no; then 17959 17960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 17961$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 17962if ${ac_cv_sys_largefile_CC+:} false; then : 17963 $as_echo_n "(cached) " >&6 17964else 17965 ac_cv_sys_largefile_CC=no 17966 if test "$GCC" != yes; then 17967 ac_save_CC=$CC 17968 while :; do 17969 # IRIX 6.2 and later do not support large files by default, 17970 # so use the C compiler's -n32 option if that helps. 17971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17972/* end confdefs.h. */ 17973#include <sys/types.h> 17974 /* Check that off_t can represent 2**63 - 1 correctly. 17975 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17976 since some C++ compilers masquerading as C compilers 17977 incorrectly reject 9223372036854775807. */ 17978#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 17979 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17980 && LARGE_OFF_T % 2147483647 == 1) 17981 ? 1 : -1]; 17982int 17983main () 17984{ 17985 17986 ; 17987 return 0; 17988} 17989_ACEOF 17990 if ac_fn_c_try_compile "$LINENO"; then : 17991 break 17992fi 17993rm -f core conftest.err conftest.$ac_objext 17994 CC="$CC -n32" 17995 if ac_fn_c_try_compile "$LINENO"; then : 17996 ac_cv_sys_largefile_CC=' -n32'; break 17997fi 17998rm -f core conftest.err conftest.$ac_objext 17999 break 18000 done 18001 CC=$ac_save_CC 18002 rm -f conftest.$ac_ext 18003 fi 18004fi 18005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 18006$as_echo "$ac_cv_sys_largefile_CC" >&6; } 18007 if test "$ac_cv_sys_largefile_CC" != no; then 18008 CC=$CC$ac_cv_sys_largefile_CC 18009 fi 18010 18011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 18012$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 18013if ${ac_cv_sys_file_offset_bits+:} false; then : 18014 $as_echo_n "(cached) " >&6 18015else 18016 while :; do 18017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18018/* end confdefs.h. */ 18019#include <sys/types.h> 18020 /* Check that off_t can represent 2**63 - 1 correctly. 18021 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18022 since some C++ compilers masquerading as C compilers 18023 incorrectly reject 9223372036854775807. */ 18024#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 18025 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18026 && LARGE_OFF_T % 2147483647 == 1) 18027 ? 1 : -1]; 18028int 18029main () 18030{ 18031 18032 ; 18033 return 0; 18034} 18035_ACEOF 18036if ac_fn_c_try_compile "$LINENO"; then : 18037 ac_cv_sys_file_offset_bits=no; break 18038fi 18039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18041/* end confdefs.h. */ 18042#define _FILE_OFFSET_BITS 64 18043#include <sys/types.h> 18044 /* Check that off_t can represent 2**63 - 1 correctly. 18045 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18046 since some C++ compilers masquerading as C compilers 18047 incorrectly reject 9223372036854775807. */ 18048#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 18049 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18050 && LARGE_OFF_T % 2147483647 == 1) 18051 ? 1 : -1]; 18052int 18053main () 18054{ 18055 18056 ; 18057 return 0; 18058} 18059_ACEOF 18060if ac_fn_c_try_compile "$LINENO"; then : 18061 ac_cv_sys_file_offset_bits=64; break 18062fi 18063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18064 ac_cv_sys_file_offset_bits=unknown 18065 break 18066done 18067fi 18068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 18069$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 18070case $ac_cv_sys_file_offset_bits in #( 18071 no | unknown) ;; 18072 *) 18073cat >>confdefs.h <<_ACEOF 18074#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 18075_ACEOF 18076;; 18077esac 18078rm -rf conftest* 18079 if test $ac_cv_sys_file_offset_bits = unknown; then 18080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 18081$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 18082if ${ac_cv_sys_large_files+:} false; then : 18083 $as_echo_n "(cached) " >&6 18084else 18085 while :; do 18086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18087/* end confdefs.h. */ 18088#include <sys/types.h> 18089 /* Check that off_t can represent 2**63 - 1 correctly. 18090 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18091 since some C++ compilers masquerading as C compilers 18092 incorrectly reject 9223372036854775807. */ 18093#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 18094 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18095 && LARGE_OFF_T % 2147483647 == 1) 18096 ? 1 : -1]; 18097int 18098main () 18099{ 18100 18101 ; 18102 return 0; 18103} 18104_ACEOF 18105if ac_fn_c_try_compile "$LINENO"; then : 18106 ac_cv_sys_large_files=no; break 18107fi 18108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18110/* end confdefs.h. */ 18111#define _LARGE_FILES 1 18112#include <sys/types.h> 18113 /* Check that off_t can represent 2**63 - 1 correctly. 18114 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18115 since some C++ compilers masquerading as C compilers 18116 incorrectly reject 9223372036854775807. */ 18117#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 18118 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18119 && LARGE_OFF_T % 2147483647 == 1) 18120 ? 1 : -1]; 18121int 18122main () 18123{ 18124 18125 ; 18126 return 0; 18127} 18128_ACEOF 18129if ac_fn_c_try_compile "$LINENO"; then : 18130 ac_cv_sys_large_files=1; break 18131fi 18132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18133 ac_cv_sys_large_files=unknown 18134 break 18135done 18136fi 18137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 18138$as_echo "$ac_cv_sys_large_files" >&6; } 18139case $ac_cv_sys_large_files in #( 18140 no | unknown) ;; 18141 *) 18142cat >>confdefs.h <<_ACEOF 18143#define _LARGE_FILES $ac_cv_sys_large_files 18144_ACEOF 18145;; 18146esac 18147rm -rf conftest* 18148 fi 18149 18150 18151fi 18152 18153 18154 18155LIBTIFF_DOCDIR=\${prefix}/share/doc/${PACKAGE}-${LIBTIFF_VERSION} 18156 18157 18158# Check whether --with-docdir was given. 18159if test "${with_docdir+set}" = set; then : 18160 withval=$with_docdir; 18161fi 18162 18163if test "x$with_docdir" != "x" ; then 18164 LIBTIFF_DOCDIR=$with_docdir 18165fi 18166 18167 18168 18169 18170# Check whether --enable-ccitt was given. 18171if test "${enable_ccitt+set}" = set; then : 18172 enableval=$enable_ccitt; HAVE_CCITT=$enableval 18173else 18174 HAVE_CCITT=yes 18175fi 18176 18177 18178if test "$HAVE_CCITT" = "yes" ; then 18179 18180$as_echo "#define CCITT_SUPPORT 1" >>confdefs.h 18181 18182fi 18183 18184# Check whether --enable-packbits was given. 18185if test "${enable_packbits+set}" = set; then : 18186 enableval=$enable_packbits; HAVE_PACKBITS=$enableval 18187else 18188 HAVE_PACKBITS=yes 18189fi 18190 18191 18192if test "$HAVE_PACKBITS" = "yes" ; then 18193 18194$as_echo "#define PACKBITS_SUPPORT 1" >>confdefs.h 18195 18196fi 18197 18198# Check whether --enable-lzw was given. 18199if test "${enable_lzw+set}" = set; then : 18200 enableval=$enable_lzw; HAVE_LZW=$enableval 18201else 18202 HAVE_LZW=yes 18203fi 18204 18205 18206if test "$HAVE_LZW" = "yes" ; then 18207 18208$as_echo "#define LZW_SUPPORT 1" >>confdefs.h 18209 18210fi 18211 18212# Check whether --enable-thunder was given. 18213if test "${enable_thunder+set}" = set; then : 18214 enableval=$enable_thunder; HAVE_THUNDER=$enableval 18215else 18216 HAVE_THUNDER=yes 18217fi 18218 18219 18220if test "$HAVE_THUNDER" = "yes" ; then 18221 18222$as_echo "#define THUNDER_SUPPORT 1" >>confdefs.h 18223 18224fi 18225 18226HAVE_NEXT=yes 18227 18228# Check whether --enable-next was given. 18229if test "${enable_next+set}" = set; then : 18230 enableval=$enable_next; HAVE_NEXT=$enableval 18231else 18232 HAVE_NEXT=yes 18233fi 18234 18235 18236if test "$HAVE_NEXT" = "yes" ; then 18237 18238$as_echo "#define NEXT_SUPPORT 1" >>confdefs.h 18239 18240fi 18241 18242# Check whether --enable-logluv was given. 18243if test "${enable_logluv+set}" = set; then : 18244 enableval=$enable_logluv; HAVE_LOGLUV=$enableval 18245else 18246 HAVE_LOGLUV=yes 18247fi 18248 18249 18250if test "$HAVE_LOGLUV" = "yes" ; then 18251 18252$as_echo "#define LOGLUV_SUPPORT 1" >>confdefs.h 18253 18254fi 18255 18256 18257# Check whether --enable-mdi was given. 18258if test "${enable_mdi+set}" = set; then : 18259 enableval=$enable_mdi; HAVE_MDI=$enableval 18260else 18261 HAVE_MDI=yes 18262fi 18263 18264 18265if test "$HAVE_MDI" = "yes" ; then 18266 18267$as_echo "#define MDI_SUPPORT 1" >>confdefs.h 18268 18269fi 18270 18271 18272HAVE_ZLIB=no 18273 18274# Check whether --enable-zlib was given. 18275if test "${enable_zlib+set}" = set; then : 18276 enableval=$enable_zlib; 18277fi 18278 18279 18280# Check whether --with-zlib-include-dir was given. 18281if test "${with_zlib_include_dir+set}" = set; then : 18282 withval=$with_zlib_include_dir; 18283fi 18284 18285 18286# Check whether --with-zlib-lib-dir was given. 18287if test "${with_zlib_lib_dir+set}" = set; then : 18288 withval=$with_zlib_lib_dir; 18289fi 18290 18291 18292if test "x$enable_zlib" != "xno" ; then 18293 18294 if test "x$with_zlib_lib_dir" != "x" ; then 18295 LDFLAGS="-L$with_zlib_lib_dir $LDFLAGS" 18296 fi 18297 18298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5 18299$as_echo_n "checking for inflateEnd in -lz... " >&6; } 18300if ${ac_cv_lib_z_inflateEnd+:} false; then : 18301 $as_echo_n "(cached) " >&6 18302else 18303 ac_check_lib_save_LIBS=$LIBS 18304LIBS="-lz $LIBS" 18305cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18306/* end confdefs.h. */ 18307 18308/* Override any GCC internal prototype to avoid an error. 18309 Use char because int might match the return type of a GCC 18310 builtin and then its argument prototype would still apply. */ 18311#ifdef __cplusplus 18312extern "C" 18313#endif 18314char inflateEnd (); 18315int 18316main () 18317{ 18318return inflateEnd (); 18319 ; 18320 return 0; 18321} 18322_ACEOF 18323if ac_fn_c_try_link "$LINENO"; then : 18324 ac_cv_lib_z_inflateEnd=yes 18325else 18326 ac_cv_lib_z_inflateEnd=no 18327fi 18328rm -f core conftest.err conftest.$ac_objext \ 18329 conftest$ac_exeext conftest.$ac_ext 18330LIBS=$ac_check_lib_save_LIBS 18331fi 18332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5 18333$as_echo "$ac_cv_lib_z_inflateEnd" >&6; } 18334if test "x$ac_cv_lib_z_inflateEnd" = xyes; then : 18335 zlib_lib=yes 18336else 18337 zlib_lib=no 18338fi 18339 18340 if test "$zlib_lib" = "no" -a "x$with_zlib_lib_dir" != "x"; then 18341 as_fn_error $? "Zlib library not found at $with_zlib_lib_dir" "$LINENO" 5 18342 fi 18343 18344 if test "x$with_zlib_include_dir" != "x" ; then 18345 CPPFLAGS="-I$with_zlib_include_dir $CPPFLAGS" 18346 fi 18347 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 18348if test "x$ac_cv_header_zlib_h" = xyes; then : 18349 zlib_h=yes 18350else 18351 zlib_h=no 18352fi 18353 18354 18355 if test "$zlib_h" = "no" -a "x$with_zlib_include_dir" != "x" ; then 18356 as_fn_error $? "Zlib headers not found at $with_zlib_include_dir" "$LINENO" 5 18357 fi 18358 18359 if test "$zlib_lib" = "yes" -a "$zlib_h" = "yes" ; then 18360 HAVE_ZLIB=yes 18361 fi 18362 18363fi 18364 18365if test "$HAVE_ZLIB" = "yes" ; then 18366 18367$as_echo "#define ZIP_SUPPORT 1" >>confdefs.h 18368 18369 LIBS="-lz $LIBS" 18370 tiff_libs_private="-lz ${tiff_libs_private}" 18371 18372 if test "$HAVE_RPATH" = "yes" -a "x$with_zlib_lib_dir" != "x" ; then 18373 LIBDIR="-R $with_zlib_lib_dir $LIBDIR" 18374 fi 18375 18376fi 18377 18378 18379# Check whether --enable-pixarlog was given. 18380if test "${enable_pixarlog+set}" = set; then : 18381 enableval=$enable_pixarlog; HAVE_PIXARLOG=$enableval 18382else 18383 HAVE_PIXARLOG=yes 18384fi 18385 18386 18387if test "$HAVE_ZLIB" = "yes" -a "$HAVE_PIXARLOG" = "yes" ; then 18388 18389$as_echo "#define PIXARLOG_SUPPORT 1" >>confdefs.h 18390 18391else 18392 HAVE_PIXARLOG=no 18393fi 18394 18395 18396HAVE_JPEG=no 18397 18398# Check whether --enable-jpeg was given. 18399if test "${enable_jpeg+set}" = set; then : 18400 enableval=$enable_jpeg; 18401fi 18402 18403 18404# Check whether --with-jpeg-include-dir was given. 18405if test "${with_jpeg_include_dir+set}" = set; then : 18406 withval=$with_jpeg_include_dir; 18407fi 18408 18409 18410# Check whether --with-jpeg-lib-dir was given. 18411if test "${with_jpeg_lib_dir+set}" = set; then : 18412 withval=$with_jpeg_lib_dir; 18413fi 18414 18415 18416if test "x$enable_jpeg" != "xno" ; then 18417 18418 if test "x$with_jpeg_lib_dir" != "x" ; then 18419 LDFLAGS="-L$with_jpeg_lib_dir $LDFLAGS" 18420 18421 fi 18422 18423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_scanlines in -ljpeg" >&5 18424$as_echo_n "checking for jpeg_read_scanlines in -ljpeg... " >&6; } 18425if ${ac_cv_lib_jpeg_jpeg_read_scanlines+:} false; then : 18426 $as_echo_n "(cached) " >&6 18427else 18428 ac_check_lib_save_LIBS=$LIBS 18429LIBS="-ljpeg $LIBS" 18430cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18431/* end confdefs.h. */ 18432 18433/* Override any GCC internal prototype to avoid an error. 18434 Use char because int might match the return type of a GCC 18435 builtin and then its argument prototype would still apply. */ 18436#ifdef __cplusplus 18437extern "C" 18438#endif 18439char jpeg_read_scanlines (); 18440int 18441main () 18442{ 18443return jpeg_read_scanlines (); 18444 ; 18445 return 0; 18446} 18447_ACEOF 18448if ac_fn_c_try_link "$LINENO"; then : 18449 ac_cv_lib_jpeg_jpeg_read_scanlines=yes 18450else 18451 ac_cv_lib_jpeg_jpeg_read_scanlines=no 18452fi 18453rm -f core conftest.err conftest.$ac_objext \ 18454 conftest$ac_exeext conftest.$ac_ext 18455LIBS=$ac_check_lib_save_LIBS 18456fi 18457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_scanlines" >&5 18458$as_echo "$ac_cv_lib_jpeg_jpeg_read_scanlines" >&6; } 18459if test "x$ac_cv_lib_jpeg_jpeg_read_scanlines" = xyes; then : 18460 jpeg_lib=yes 18461else 18462 jpeg_lib=no 18463fi 18464 18465 if test "$jpeg_lib" = "no" -a "x$with_jpeg_lib_dir" != "x" ; then 18466 as_fn_error $? "IJG JPEG library not found at $with_jpeg_lib_dir" "$LINENO" 5 18467 fi 18468 18469 if test "x$with_jpeg_include_dir" != "x" ; then 18470 CPPFLAGS="-I$with_jpeg_include_dir $CPPFLAGS" 18471 fi 18472 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 18473if test "x$ac_cv_header_jpeglib_h" = xyes; then : 18474 jpeg_h=yes 18475else 18476 jpeg_h=no 18477fi 18478 18479 18480 if test "$jpeg_h" = "no" -a "x$with_jpeg_include_dir" != "x" ; then 18481 as_fn_error $? "IJG JPEG library headers not found at $with_jpeg_include_dir" "$LINENO" 5 18482 fi 18483 18484 if test "$jpeg_lib" = "yes" -a "$jpeg_h" = "yes" ; then 18485 HAVE_JPEG=yes 18486 fi 18487 18488fi 18489 18490if test "$HAVE_JPEG" = "yes" ; then 18491 18492$as_echo "#define JPEG_SUPPORT 1" >>confdefs.h 18493 18494 LIBS="-ljpeg $LIBS" 18495 tiff_libs_private="-ljpeg ${tiff_libs_private}" 18496 18497 if test "$HAVE_RPATH" = "yes" -a "x$with_jpeg_lib_dir" != "x" ; then 18498 LIBDIR="-R $with_jpeg_lib_dir $LIBDIR" 18499 fi 18500 18501fi 18502 18503 18504# Check whether --enable-old-jpeg was given. 18505if test "${enable_old_jpeg+set}" = set; then : 18506 enableval=$enable_old_jpeg; HAVE_OJPEG=${enableval} 18507else 18508 HAVE_OJPEG=yes 18509fi 18510 18511 18512if test "$HAVE_JPEG" = "yes" -a "$HAVE_OJPEG" = "yes" ; then 18513 18514$as_echo "#define OJPEG_SUPPORT 1" >>confdefs.h 18515 18516else 18517 HAVE_OJPEG=no 18518fi 18519 18520 18521HAVE_JBIG=no 18522 18523# Check whether --enable-jbig was given. 18524if test "${enable_jbig+set}" = set; then : 18525 enableval=$enable_jbig; 18526fi 18527 18528 18529# Check whether --with-jbig-include-dir was given. 18530if test "${with_jbig_include_dir+set}" = set; then : 18531 withval=$with_jbig_include_dir; 18532fi 18533 18534 18535# Check whether --with-jbig-lib-dir was given. 18536if test "${with_jbig_lib_dir+set}" = set; then : 18537 withval=$with_jbig_lib_dir; 18538fi 18539 18540 18541if test "x$enable_jbig" != "xno" ; then 18542 18543 if test "x$with_jbig_lib_dir" != "x" ; then 18544 LDFLAGS="-L$with_jbig_lib_dir $LDFLAGS" 18545 18546 fi 18547 18548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5 18549$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; } 18550if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then : 18551 $as_echo_n "(cached) " >&6 18552else 18553 ac_check_lib_save_LIBS=$LIBS 18554LIBS="-ljbig $LIBS" 18555cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18556/* end confdefs.h. */ 18557 18558/* Override any GCC internal prototype to avoid an error. 18559 Use char because int might match the return type of a GCC 18560 builtin and then its argument prototype would still apply. */ 18561#ifdef __cplusplus 18562extern "C" 18563#endif 18564char jbg_dec_init (); 18565int 18566main () 18567{ 18568return jbg_dec_init (); 18569 ; 18570 return 0; 18571} 18572_ACEOF 18573if ac_fn_c_try_link "$LINENO"; then : 18574 ac_cv_lib_jbig_jbg_dec_init=yes 18575else 18576 ac_cv_lib_jbig_jbg_dec_init=no 18577fi 18578rm -f core conftest.err conftest.$ac_objext \ 18579 conftest$ac_exeext conftest.$ac_ext 18580LIBS=$ac_check_lib_save_LIBS 18581fi 18582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5 18583$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; } 18584if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then : 18585 jbig_lib=yes 18586else 18587 jbig_lib=no 18588fi 18589 18590 if test "$jbig_lib" = "no" -a "x$with_jbig_lib_dir" != "x" ; then 18591 as_fn_error $? "JBIG-KIT library not found at $with_jbig_lib_dir" "$LINENO" 5 18592 fi 18593 18594 if test "x$with_jbig_include_dir" != "x" ; then 18595 CPPFLAGS="-I$with_jbig_include_dir $CPPFLAGS" 18596 fi 18597 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default" 18598if test "x$ac_cv_header_jbig_h" = xyes; then : 18599 jbig_h=yes 18600else 18601 jbig_h=no 18602fi 18603 18604 18605 if test "$jbig_h" = "no" -a "x$with_jbig_include_dir" != "x" ; then 18606 as_fn_error $? "JBIG-KIT library headers not found at $with_jbig_include_dir" "$LINENO" 5 18607 fi 18608 18609 if test "$jbig_lib" = "yes" -a "$jbig_h" = "yes" ; then 18610 HAVE_JBIG=yes 18611 fi 18612 18613fi 18614 18615if test "$HAVE_JBIG" = "yes" ; then 18616 18617$as_echo "#define JBIG_SUPPORT 1" >>confdefs.h 18618 18619 LIBS="-ljbig $LIBS" 18620 tiff_libs_private="-ljbig ${tiff_libs_private}" 18621 18622 if test "$HAVE_RPATH" = "yes" -a "x$with_jbig_lib_dir" != "x" ; then 18623 LIBDIR="-R $with_jbig_lib_dir $LIBDIR" 18624 fi 18625 18626 # Older versions of jbigkit lack jbg_newlen 18627 for ac_func in jbg_newlen 18628do : 18629 ac_fn_c_check_func "$LINENO" "jbg_newlen" "ac_cv_func_jbg_newlen" 18630if test "x$ac_cv_func_jbg_newlen" = xyes; then : 18631 cat >>confdefs.h <<_ACEOF 18632#define HAVE_JBG_NEWLEN 1 18633_ACEOF 18634 18635fi 18636done 18637 18638 18639fi 18640 18641 18642HAVE_LZMA=no 18643 18644# Check whether --enable-lzma was given. 18645if test "${enable_lzma+set}" = set; then : 18646 enableval=$enable_lzma; 18647fi 18648 18649 18650# Check whether --with-lzma-include-dir was given. 18651if test "${with_lzma_include_dir+set}" = set; then : 18652 withval=$with_lzma_include_dir; 18653fi 18654 18655 18656# Check whether --with-lzma-lib-dir was given. 18657if test "${with_lzma_lib_dir+set}" = set; then : 18658 withval=$with_lzma_lib_dir; 18659fi 18660 18661 18662if test "x$enable_lzma" != "xno" ; then 18663 18664 if test "x$with_lzma_lib_dir" != "x" ; then 18665 LDFLAGS="-L$with_lzma_lib_dir $LDFLAGS" 18666 fi 18667 18668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5 18669$as_echo_n "checking for lzma_code in -llzma... " >&6; } 18670if ${ac_cv_lib_lzma_lzma_code+:} false; then : 18671 $as_echo_n "(cached) " >&6 18672else 18673 ac_check_lib_save_LIBS=$LIBS 18674LIBS="-llzma $LIBS" 18675cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18676/* end confdefs.h. */ 18677 18678/* Override any GCC internal prototype to avoid an error. 18679 Use char because int might match the return type of a GCC 18680 builtin and then its argument prototype would still apply. */ 18681#ifdef __cplusplus 18682extern "C" 18683#endif 18684char lzma_code (); 18685int 18686main () 18687{ 18688return lzma_code (); 18689 ; 18690 return 0; 18691} 18692_ACEOF 18693if ac_fn_c_try_link "$LINENO"; then : 18694 ac_cv_lib_lzma_lzma_code=yes 18695else 18696 ac_cv_lib_lzma_lzma_code=no 18697fi 18698rm -f core conftest.err conftest.$ac_objext \ 18699 conftest$ac_exeext conftest.$ac_ext 18700LIBS=$ac_check_lib_save_LIBS 18701fi 18702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5 18703$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; } 18704if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then : 18705 lzma_lib=yes 18706else 18707 lzma_lib=no 18708fi 18709 18710 if test "$lzma_lib" = "no" -a "x$with_lzma_lib_dir" != "x"; then 18711 as_fn_error $? "lzma library not found at $with_lzma_lib_dir" "$LINENO" 5 18712 fi 18713 18714 if test "x$with_lzma_include_dir" != "x" ; then 18715 CPPFLAGS="-I$with_lzma_include_dir $CPPFLAGS" 18716 fi 18717 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default" 18718if test "x$ac_cv_header_lzma_h" = xyes; then : 18719 lzma_h=yes 18720else 18721 lzma_h=no 18722fi 18723 18724 18725 if test "$lzma_h" = "no" -a "x$with_lzma_include_dir" != "x" ; then 18726 as_fn_error $? "Liblzma headers not found at $with_lzma_include_dir" "$LINENO" 5 18727 fi 18728 18729 if test "$lzma_lib" = "yes" -a "$lzma_h" = "yes" ; then 18730 HAVE_LZMA=yes 18731 fi 18732 18733fi 18734 18735if test "$HAVE_LZMA" = "yes" ; then 18736 18737$as_echo "#define LZMA_SUPPORT 1" >>confdefs.h 18738 18739 LIBS="-llzma $LIBS" 18740 tiff_libs_private="-llzma ${tiff_libs_private}" 18741 18742 if test "$HAVE_RPATH" = "yes" -a "x$with_lzma_lib_dir" != "x" ; then 18743 LIBDIR="-R $with_lzma_lib_dir $LIBDIR" 18744 fi 18745 18746fi 18747 18748 18749HAVE_JPEG12=no 18750 18751# Check whether --enable-jpeg12 was given. 18752if test "${enable_jpeg12+set}" = set; then : 18753 enableval=$enable_jpeg12; 18754fi 18755 18756 18757# Check whether --with-jpeg12-include-dir was given. 18758if test "${with_jpeg12_include_dir+set}" = set; then : 18759 withval=$with_jpeg12_include_dir; 18760fi 18761 18762 18763# Check whether --with-jpeg12-lib was given. 18764if test "${with_jpeg12_lib+set}" = set; then : 18765 withval=$with_jpeg12_lib; 18766fi 18767 18768 18769if test "x$enable_jpeg12" == "xyes" ; then 18770 18771 if test "x$with_jpeg12_lib" != "x" ; then 18772 LIBS="$with_jpeg12_lib $LIBS" 18773 fi 18774 18775 HAVE_JPEG12=yes 18776 18777 18778$as_echo "#define JPEG_DUAL_MODE_8_12 1" >>confdefs.h 18779 18780 if test "x$with_jpeg12_include_dir" != "x" ; then 18781 18782cat >>confdefs.h <<_ACEOF 18783#define LIBJPEG_12_PATH "$with_jpeg12_include_dir/jpeglib.h" 18784_ACEOF 18785 18786 fi 18787fi 18788 18789 18790 18791# Check whether --enable-cxx was given. 18792if test "${enable_cxx+set}" = set; then : 18793 enableval=$enable_cxx; HAVE_CXX=$enableval 18794else 18795 HAVE_CXX=yes 18796fi 18797 18798 18799if test "$HAVE_CXX" = "yes" ; then 18800 18801$as_echo "#define CXX_SUPPORT 1" >>confdefs.h 18802 18803else 18804 HAVE_CXX=no 18805fi 18806 18807 if test "$HAVE_CXX" = "yes"; then 18808 HAVE_CXX_TRUE= 18809 HAVE_CXX_FALSE='#' 18810else 18811 HAVE_CXX_TRUE='#' 18812 HAVE_CXX_FALSE= 18813fi 18814 18815 18816 18817HAVE_OPENGL=no 18818 18819 18820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 18821$as_echo_n "checking for X... " >&6; } 18822 18823 18824# Check whether --with-x was given. 18825if test "${with_x+set}" = set; then : 18826 withval=$with_x; 18827fi 18828 18829# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 18830if test "x$with_x" = xno; then 18831 # The user explicitly disabled X. 18832 have_x=disabled 18833else 18834 case $x_includes,$x_libraries in #( 18835 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 18836 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 18837 $as_echo_n "(cached) " >&6 18838else 18839 # One or both of the vars are not set, and there is no cached value. 18840ac_x_includes=no ac_x_libraries=no 18841rm -f -r conftest.dir 18842if mkdir conftest.dir; then 18843 cd conftest.dir 18844 cat >Imakefile <<'_ACEOF' 18845incroot: 18846 @echo incroot='${INCROOT}' 18847usrlibdir: 18848 @echo usrlibdir='${USRLIBDIR}' 18849libdir: 18850 @echo libdir='${LIBDIR}' 18851_ACEOF 18852 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 18853 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 18854 for ac_var in incroot usrlibdir libdir; do 18855 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 18856 done 18857 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 18858 for ac_extension in a so sl dylib la dll; do 18859 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 18860 test -f "$ac_im_libdir/libX11.$ac_extension"; then 18861 ac_im_usrlibdir=$ac_im_libdir; break 18862 fi 18863 done 18864 # Screen out bogus values from the imake configuration. They are 18865 # bogus both because they are the default anyway, and because 18866 # using them would break gcc on systems where it needs fixed includes. 18867 case $ac_im_incroot in 18868 /usr/include) ac_x_includes= ;; 18869 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 18870 esac 18871 case $ac_im_usrlibdir in 18872 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 18873 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 18874 esac 18875 fi 18876 cd .. 18877 rm -f -r conftest.dir 18878fi 18879 18880# Standard set of common directories for X headers. 18881# Check X11 before X11Rn because it is often a symlink to the current release. 18882ac_x_header_dirs=' 18883/usr/X11/include 18884/usr/X11R7/include 18885/usr/X11R6/include 18886/usr/X11R5/include 18887/usr/X11R4/include 18888 18889/usr/include/X11 18890/usr/include/X11R7 18891/usr/include/X11R6 18892/usr/include/X11R5 18893/usr/include/X11R4 18894 18895/usr/local/X11/include 18896/usr/local/X11R7/include 18897/usr/local/X11R6/include 18898/usr/local/X11R5/include 18899/usr/local/X11R4/include 18900 18901/usr/local/include/X11 18902/usr/local/include/X11R7 18903/usr/local/include/X11R6 18904/usr/local/include/X11R5 18905/usr/local/include/X11R4 18906 18907/usr/X386/include 18908/usr/x386/include 18909/usr/XFree86/include/X11 18910 18911/usr/include 18912/usr/local/include 18913/usr/unsupported/include 18914/usr/athena/include 18915/usr/local/x11r5/include 18916/usr/lpp/Xamples/include 18917 18918/usr/openwin/include 18919/usr/openwin/share/include' 18920 18921if test "$ac_x_includes" = no; then 18922 # Guess where to find include files, by looking for Xlib.h. 18923 # First, try using that file with no special directory specified. 18924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18925/* end confdefs.h. */ 18926#include <X11/Xlib.h> 18927_ACEOF 18928if ac_fn_c_try_cpp "$LINENO"; then : 18929 # We can compile using X headers with no special include directory. 18930ac_x_includes= 18931else 18932 for ac_dir in $ac_x_header_dirs; do 18933 if test -r "$ac_dir/X11/Xlib.h"; then 18934 ac_x_includes=$ac_dir 18935 break 18936 fi 18937done 18938fi 18939rm -f conftest.err conftest.i conftest.$ac_ext 18940fi # $ac_x_includes = no 18941 18942if test "$ac_x_libraries" = no; then 18943 # Check for the libraries. 18944 # See if we find them without any special options. 18945 # Don't add to $LIBS permanently. 18946 ac_save_LIBS=$LIBS 18947 LIBS="-lX11 $LIBS" 18948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18949/* end confdefs.h. */ 18950#include <X11/Xlib.h> 18951int 18952main () 18953{ 18954XrmInitialize () 18955 ; 18956 return 0; 18957} 18958_ACEOF 18959if ac_fn_c_try_link "$LINENO"; then : 18960 LIBS=$ac_save_LIBS 18961# We can link X programs with no special library path. 18962ac_x_libraries= 18963else 18964 LIBS=$ac_save_LIBS 18965for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 18966do 18967 # Don't even attempt the hair of trying to link an X program! 18968 for ac_extension in a so sl dylib la dll; do 18969 if test -r "$ac_dir/libX11.$ac_extension"; then 18970 ac_x_libraries=$ac_dir 18971 break 2 18972 fi 18973 done 18974done 18975fi 18976rm -f core conftest.err conftest.$ac_objext \ 18977 conftest$ac_exeext conftest.$ac_ext 18978fi # $ac_x_libraries = no 18979 18980case $ac_x_includes,$ac_x_libraries in #( 18981 no,* | *,no | *\'*) 18982 # Didn't find X, or a directory has "'" in its name. 18983 ac_cv_have_x="have_x=no";; #( 18984 *) 18985 # Record where we found X for the cache. 18986 ac_cv_have_x="have_x=yes\ 18987 ac_x_includes='$ac_x_includes'\ 18988 ac_x_libraries='$ac_x_libraries'" 18989esac 18990fi 18991;; #( 18992 *) have_x=yes;; 18993 esac 18994 eval "$ac_cv_have_x" 18995fi # $with_x != no 18996 18997if test "$have_x" != yes; then 18998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 18999$as_echo "$have_x" >&6; } 19000 no_x=yes 19001else 19002 # If each of the values was on the command line, it overrides each guess. 19003 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 19004 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 19005 # Update the cache value to reflect the command line values. 19006 ac_cv_have_x="have_x=yes\ 19007 ac_x_includes='$x_includes'\ 19008 ac_x_libraries='$x_libraries'" 19009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 19010$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 19011fi 19012 19013if test "$no_x" = yes; then 19014 # Not all programs may use this symbol, but it does not hurt to define it. 19015 19016$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 19017 19018 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 19019else 19020 if test -n "$x_includes"; then 19021 X_CFLAGS="$X_CFLAGS -I$x_includes" 19022 fi 19023 19024 # It would also be nice to do this for all -L options, not just this one. 19025 if test -n "$x_libraries"; then 19026 X_LIBS="$X_LIBS -L$x_libraries" 19027 # For Solaris; some versions of Sun CC require a space after -R and 19028 # others require no space. Words are not sufficient . . . . 19029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 19030$as_echo_n "checking whether -R must be followed by a space... " >&6; } 19031 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 19032 ac_xsave_c_werror_flag=$ac_c_werror_flag 19033 ac_c_werror_flag=yes 19034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19035/* end confdefs.h. */ 19036 19037int 19038main () 19039{ 19040 19041 ; 19042 return 0; 19043} 19044_ACEOF 19045if ac_fn_c_try_link "$LINENO"; then : 19046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19047$as_echo "no" >&6; } 19048 X_LIBS="$X_LIBS -R$x_libraries" 19049else 19050 LIBS="$ac_xsave_LIBS -R $x_libraries" 19051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19052/* end confdefs.h. */ 19053 19054int 19055main () 19056{ 19057 19058 ; 19059 return 0; 19060} 19061_ACEOF 19062if ac_fn_c_try_link "$LINENO"; then : 19063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19064$as_echo "yes" >&6; } 19065 X_LIBS="$X_LIBS -R $x_libraries" 19066else 19067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 19068$as_echo "neither works" >&6; } 19069fi 19070rm -f core conftest.err conftest.$ac_objext \ 19071 conftest$ac_exeext conftest.$ac_ext 19072fi 19073rm -f core conftest.err conftest.$ac_objext \ 19074 conftest$ac_exeext conftest.$ac_ext 19075 ac_c_werror_flag=$ac_xsave_c_werror_flag 19076 LIBS=$ac_xsave_LIBS 19077 fi 19078 19079 # Check for system-dependent libraries X programs must link with. 19080 # Do this before checking for the system-independent R6 libraries 19081 # (-lICE), since we may need -lsocket or whatever for X linking. 19082 19083 if test "$ISC" = yes; then 19084 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 19085 else 19086 # Martyn Johnson says this is needed for Ultrix, if the X 19087 # libraries were built with DECnet support. And Karl Berry says 19088 # the Alpha needs dnet_stub (dnet does not exist). 19089 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 19090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19091/* end confdefs.h. */ 19092 19093/* Override any GCC internal prototype to avoid an error. 19094 Use char because int might match the return type of a GCC 19095 builtin and then its argument prototype would still apply. */ 19096#ifdef __cplusplus 19097extern "C" 19098#endif 19099char XOpenDisplay (); 19100int 19101main () 19102{ 19103return XOpenDisplay (); 19104 ; 19105 return 0; 19106} 19107_ACEOF 19108if ac_fn_c_try_link "$LINENO"; then : 19109 19110else 19111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 19112$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 19113if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 19114 $as_echo_n "(cached) " >&6 19115else 19116 ac_check_lib_save_LIBS=$LIBS 19117LIBS="-ldnet $LIBS" 19118cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19119/* end confdefs.h. */ 19120 19121/* Override any GCC internal prototype to avoid an error. 19122 Use char because int might match the return type of a GCC 19123 builtin and then its argument prototype would still apply. */ 19124#ifdef __cplusplus 19125extern "C" 19126#endif 19127char dnet_ntoa (); 19128int 19129main () 19130{ 19131return dnet_ntoa (); 19132 ; 19133 return 0; 19134} 19135_ACEOF 19136if ac_fn_c_try_link "$LINENO"; then : 19137 ac_cv_lib_dnet_dnet_ntoa=yes 19138else 19139 ac_cv_lib_dnet_dnet_ntoa=no 19140fi 19141rm -f core conftest.err conftest.$ac_objext \ 19142 conftest$ac_exeext conftest.$ac_ext 19143LIBS=$ac_check_lib_save_LIBS 19144fi 19145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 19146$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 19147if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 19148 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 19149fi 19150 19151 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 19152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 19153$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 19154if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 19155 $as_echo_n "(cached) " >&6 19156else 19157 ac_check_lib_save_LIBS=$LIBS 19158LIBS="-ldnet_stub $LIBS" 19159cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19160/* end confdefs.h. */ 19161 19162/* Override any GCC internal prototype to avoid an error. 19163 Use char because int might match the return type of a GCC 19164 builtin and then its argument prototype would still apply. */ 19165#ifdef __cplusplus 19166extern "C" 19167#endif 19168char dnet_ntoa (); 19169int 19170main () 19171{ 19172return dnet_ntoa (); 19173 ; 19174 return 0; 19175} 19176_ACEOF 19177if ac_fn_c_try_link "$LINENO"; then : 19178 ac_cv_lib_dnet_stub_dnet_ntoa=yes 19179else 19180 ac_cv_lib_dnet_stub_dnet_ntoa=no 19181fi 19182rm -f core conftest.err conftest.$ac_objext \ 19183 conftest$ac_exeext conftest.$ac_ext 19184LIBS=$ac_check_lib_save_LIBS 19185fi 19186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 19187$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 19188if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 19189 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 19190fi 19191 19192 fi 19193fi 19194rm -f core conftest.err conftest.$ac_objext \ 19195 conftest$ac_exeext conftest.$ac_ext 19196 LIBS="$ac_xsave_LIBS" 19197 19198 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT, 19199 # to get the SysV transport functions. 19200 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 19201 # needs -lnsl. 19202 # The nsl library prevents programs from opening the X display 19203 # on Irix 5.2, according to T.E. Dickey. 19204 # The functions gethostbyname, getservbyname, and inet_addr are 19205 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 19206 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 19207if test "x$ac_cv_func_gethostbyname" = xyes; then : 19208 19209fi 19210 19211 if test $ac_cv_func_gethostbyname = no; then 19212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 19213$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 19214if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 19215 $as_echo_n "(cached) " >&6 19216else 19217 ac_check_lib_save_LIBS=$LIBS 19218LIBS="-lnsl $LIBS" 19219cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19220/* end confdefs.h. */ 19221 19222/* Override any GCC internal prototype to avoid an error. 19223 Use char because int might match the return type of a GCC 19224 builtin and then its argument prototype would still apply. */ 19225#ifdef __cplusplus 19226extern "C" 19227#endif 19228char gethostbyname (); 19229int 19230main () 19231{ 19232return gethostbyname (); 19233 ; 19234 return 0; 19235} 19236_ACEOF 19237if ac_fn_c_try_link "$LINENO"; then : 19238 ac_cv_lib_nsl_gethostbyname=yes 19239else 19240 ac_cv_lib_nsl_gethostbyname=no 19241fi 19242rm -f core conftest.err conftest.$ac_objext \ 19243 conftest$ac_exeext conftest.$ac_ext 19244LIBS=$ac_check_lib_save_LIBS 19245fi 19246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 19247$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 19248if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 19249 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 19250fi 19251 19252 if test $ac_cv_lib_nsl_gethostbyname = no; then 19253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 19254$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 19255if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 19256 $as_echo_n "(cached) " >&6 19257else 19258 ac_check_lib_save_LIBS=$LIBS 19259LIBS="-lbsd $LIBS" 19260cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19261/* end confdefs.h. */ 19262 19263/* Override any GCC internal prototype to avoid an error. 19264 Use char because int might match the return type of a GCC 19265 builtin and then its argument prototype would still apply. */ 19266#ifdef __cplusplus 19267extern "C" 19268#endif 19269char gethostbyname (); 19270int 19271main () 19272{ 19273return gethostbyname (); 19274 ; 19275 return 0; 19276} 19277_ACEOF 19278if ac_fn_c_try_link "$LINENO"; then : 19279 ac_cv_lib_bsd_gethostbyname=yes 19280else 19281 ac_cv_lib_bsd_gethostbyname=no 19282fi 19283rm -f core conftest.err conftest.$ac_objext \ 19284 conftest$ac_exeext conftest.$ac_ext 19285LIBS=$ac_check_lib_save_LIBS 19286fi 19287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 19288$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 19289if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 19290 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 19291fi 19292 19293 fi 19294 fi 19295 19296 # [email protected] says without -lsocket, 19297 # socket/setsockopt and other routines are undefined under SCO ODT 19298 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 19299 # on later versions), says Simon Leinen: it contains gethostby* 19300 # variants that don't use the name server (or something). -lsocket 19301 # must be given before -lnsl if both are needed. We assume that 19302 # if connect needs -lnsl, so does gethostbyname. 19303 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 19304if test "x$ac_cv_func_connect" = xyes; then : 19305 19306fi 19307 19308 if test $ac_cv_func_connect = no; then 19309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 19310$as_echo_n "checking for connect in -lsocket... " >&6; } 19311if ${ac_cv_lib_socket_connect+:} false; then : 19312 $as_echo_n "(cached) " >&6 19313else 19314 ac_check_lib_save_LIBS=$LIBS 19315LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 19316cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19317/* end confdefs.h. */ 19318 19319/* Override any GCC internal prototype to avoid an error. 19320 Use char because int might match the return type of a GCC 19321 builtin and then its argument prototype would still apply. */ 19322#ifdef __cplusplus 19323extern "C" 19324#endif 19325char connect (); 19326int 19327main () 19328{ 19329return connect (); 19330 ; 19331 return 0; 19332} 19333_ACEOF 19334if ac_fn_c_try_link "$LINENO"; then : 19335 ac_cv_lib_socket_connect=yes 19336else 19337 ac_cv_lib_socket_connect=no 19338fi 19339rm -f core conftest.err conftest.$ac_objext \ 19340 conftest$ac_exeext conftest.$ac_ext 19341LIBS=$ac_check_lib_save_LIBS 19342fi 19343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 19344$as_echo "$ac_cv_lib_socket_connect" >&6; } 19345if test "x$ac_cv_lib_socket_connect" = xyes; then : 19346 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 19347fi 19348 19349 fi 19350 19351 # Guillermo Gomez says -lposix is necessary on A/UX. 19352 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 19353if test "x$ac_cv_func_remove" = xyes; then : 19354 19355fi 19356 19357 if test $ac_cv_func_remove = no; then 19358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 19359$as_echo_n "checking for remove in -lposix... " >&6; } 19360if ${ac_cv_lib_posix_remove+:} false; then : 19361 $as_echo_n "(cached) " >&6 19362else 19363 ac_check_lib_save_LIBS=$LIBS 19364LIBS="-lposix $LIBS" 19365cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19366/* end confdefs.h. */ 19367 19368/* Override any GCC internal prototype to avoid an error. 19369 Use char because int might match the return type of a GCC 19370 builtin and then its argument prototype would still apply. */ 19371#ifdef __cplusplus 19372extern "C" 19373#endif 19374char remove (); 19375int 19376main () 19377{ 19378return remove (); 19379 ; 19380 return 0; 19381} 19382_ACEOF 19383if ac_fn_c_try_link "$LINENO"; then : 19384 ac_cv_lib_posix_remove=yes 19385else 19386 ac_cv_lib_posix_remove=no 19387fi 19388rm -f core conftest.err conftest.$ac_objext \ 19389 conftest$ac_exeext conftest.$ac_ext 19390LIBS=$ac_check_lib_save_LIBS 19391fi 19392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 19393$as_echo "$ac_cv_lib_posix_remove" >&6; } 19394if test "x$ac_cv_lib_posix_remove" = xyes; then : 19395 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 19396fi 19397 19398 fi 19399 19400 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 19401 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 19402if test "x$ac_cv_func_shmat" = xyes; then : 19403 19404fi 19405 19406 if test $ac_cv_func_shmat = no; then 19407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 19408$as_echo_n "checking for shmat in -lipc... " >&6; } 19409if ${ac_cv_lib_ipc_shmat+:} false; then : 19410 $as_echo_n "(cached) " >&6 19411else 19412 ac_check_lib_save_LIBS=$LIBS 19413LIBS="-lipc $LIBS" 19414cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19415/* end confdefs.h. */ 19416 19417/* Override any GCC internal prototype to avoid an error. 19418 Use char because int might match the return type of a GCC 19419 builtin and then its argument prototype would still apply. */ 19420#ifdef __cplusplus 19421extern "C" 19422#endif 19423char shmat (); 19424int 19425main () 19426{ 19427return shmat (); 19428 ; 19429 return 0; 19430} 19431_ACEOF 19432if ac_fn_c_try_link "$LINENO"; then : 19433 ac_cv_lib_ipc_shmat=yes 19434else 19435 ac_cv_lib_ipc_shmat=no 19436fi 19437rm -f core conftest.err conftest.$ac_objext \ 19438 conftest$ac_exeext conftest.$ac_ext 19439LIBS=$ac_check_lib_save_LIBS 19440fi 19441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 19442$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 19443if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 19444 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 19445fi 19446 19447 fi 19448 fi 19449 19450 # Check for libraries that X11R6 Xt/Xaw programs need. 19451 ac_save_LDFLAGS=$LDFLAGS 19452 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 19453 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 19454 # check for ICE first), but we must link in the order -lSM -lICE or 19455 # we get undefined symbols. So assume we have SM if we have ICE. 19456 # These have to be linked with before -lX11, unlike the other 19457 # libraries we check for below, so use a different variable. 19458 # John Interrante, Karl Berry 19459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 19460$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 19461if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 19462 $as_echo_n "(cached) " >&6 19463else 19464 ac_check_lib_save_LIBS=$LIBS 19465LIBS="-lICE $X_EXTRA_LIBS $LIBS" 19466cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19467/* end confdefs.h. */ 19468 19469/* Override any GCC internal prototype to avoid an error. 19470 Use char because int might match the return type of a GCC 19471 builtin and then its argument prototype would still apply. */ 19472#ifdef __cplusplus 19473extern "C" 19474#endif 19475char IceConnectionNumber (); 19476int 19477main () 19478{ 19479return IceConnectionNumber (); 19480 ; 19481 return 0; 19482} 19483_ACEOF 19484if ac_fn_c_try_link "$LINENO"; then : 19485 ac_cv_lib_ICE_IceConnectionNumber=yes 19486else 19487 ac_cv_lib_ICE_IceConnectionNumber=no 19488fi 19489rm -f core conftest.err conftest.$ac_objext \ 19490 conftest$ac_exeext conftest.$ac_ext 19491LIBS=$ac_check_lib_save_LIBS 19492fi 19493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 19494$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 19495if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 19496 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 19497fi 19498 19499 LDFLAGS=$ac_save_LDFLAGS 19500 19501fi 19502 19503 19504 19505 19506 19507ac_ext=c 19508ac_cpp='$CPP $CPPFLAGS' 19509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19511ac_compiler_gnu=$ac_cv_c_compiler_gnu 19512 19513ax_pthread_ok=no 19514 19515 19516if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 19517 save_CFLAGS="$CFLAGS" 19518 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 19519 save_LIBS="$LIBS" 19520 LIBS="$PTHREAD_LIBS $LIBS" 19521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 19522$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 19523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19524/* end confdefs.h. */ 19525 19526/* Override any GCC internal prototype to avoid an error. 19527 Use char because int might match the return type of a GCC 19528 builtin and then its argument prototype would still apply. */ 19529#ifdef __cplusplus 19530extern "C" 19531#endif 19532char pthread_join (); 19533int 19534main () 19535{ 19536return pthread_join (); 19537 ; 19538 return 0; 19539} 19540_ACEOF 19541if ac_fn_c_try_link "$LINENO"; then : 19542 ax_pthread_ok=yes 19543fi 19544rm -f core conftest.err conftest.$ac_objext \ 19545 conftest$ac_exeext conftest.$ac_ext 19546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 19547$as_echo "$ax_pthread_ok" >&6; } 19548 if test x"$ax_pthread_ok" = xno; then 19549 PTHREAD_LIBS="" 19550 PTHREAD_CFLAGS="" 19551 fi 19552 LIBS="$save_LIBS" 19553 CFLAGS="$save_CFLAGS" 19554fi 19555 19556 19557 19558ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 19559 19560 19561 19562case "${host_cpu}-${host_os}" in 19563 *solaris*) 19564 19565 19566 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 19567 ;; 19568 19569 *-darwin*) 19570 ax_pthread_flags="-pthread $ax_pthread_flags" 19571 ;; 19572esac 19573 19574if test x"$ax_pthread_ok" = xno; then 19575for flag in $ax_pthread_flags; do 19576 19577 case $flag in 19578 none) 19579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 19580$as_echo_n "checking whether pthreads work without any flags... " >&6; } 19581 ;; 19582 19583 -*) 19584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 19585$as_echo_n "checking whether pthreads work with $flag... " >&6; } 19586 PTHREAD_CFLAGS="$flag" 19587 ;; 19588 19589 pthread-config) 19590 # Extract the first word of "pthread-config", so it can be a program name with args. 19591set dummy pthread-config; ac_word=$2 19592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19593$as_echo_n "checking for $ac_word... " >&6; } 19594if ${ac_cv_prog_ax_pthread_config+:} false; then : 19595 $as_echo_n "(cached) " >&6 19596else 19597 if test -n "$ax_pthread_config"; then 19598 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 19599else 19600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19601for as_dir in $PATH 19602do 19603 IFS=$as_save_IFS 19604 test -z "$as_dir" && as_dir=. 19605 for ac_exec_ext in '' $ac_executable_extensions; do 19606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19607 ac_cv_prog_ax_pthread_config="yes" 19608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19609 break 2 19610 fi 19611done 19612 done 19613IFS=$as_save_IFS 19614 19615 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 19616fi 19617fi 19618ax_pthread_config=$ac_cv_prog_ax_pthread_config 19619if test -n "$ax_pthread_config"; then 19620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 19621$as_echo "$ax_pthread_config" >&6; } 19622else 19623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19624$as_echo "no" >&6; } 19625fi 19626 19627 19628 if test x"$ax_pthread_config" = xno; then continue; fi 19629 PTHREAD_CFLAGS="`pthread-config --cflags`" 19630 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 19631 ;; 19632 19633 *) 19634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 19635$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 19636 PTHREAD_LIBS="-l$flag" 19637 ;; 19638 esac 19639 19640 save_LIBS="$LIBS" 19641 save_CFLAGS="$CFLAGS" 19642 LIBS="$PTHREAD_LIBS $LIBS" 19643 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 19644 19645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19646/* end confdefs.h. */ 19647#include <pthread.h> 19648 static void routine(void* a) {a=0;} 19649 static void* start_routine(void* a) {return a;} 19650int 19651main () 19652{ 19653pthread_t th; pthread_attr_t attr; 19654 pthread_create(&th,0,start_routine,0); 19655 pthread_join(th, 0); 19656 pthread_attr_init(&attr); 19657 pthread_cleanup_push(routine, 0); 19658 pthread_cleanup_pop(0); 19659 ; 19660 return 0; 19661} 19662_ACEOF 19663if ac_fn_c_try_link "$LINENO"; then : 19664 ax_pthread_ok=yes 19665fi 19666rm -f core conftest.err conftest.$ac_objext \ 19667 conftest$ac_exeext conftest.$ac_ext 19668 19669 LIBS="$save_LIBS" 19670 CFLAGS="$save_CFLAGS" 19671 19672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 19673$as_echo "$ax_pthread_ok" >&6; } 19674 if test "x$ax_pthread_ok" = xyes; then 19675 break; 19676 fi 19677 19678 PTHREAD_LIBS="" 19679 PTHREAD_CFLAGS="" 19680done 19681fi 19682 19683if test "x$ax_pthread_ok" = xyes; then 19684 save_LIBS="$LIBS" 19685 LIBS="$PTHREAD_LIBS $LIBS" 19686 save_CFLAGS="$CFLAGS" 19687 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 19688 19689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 19690$as_echo_n "checking for joinable pthread attribute... " >&6; } 19691 attr_name=unknown 19692 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 19693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19694/* end confdefs.h. */ 19695#include <pthread.h> 19696int 19697main () 19698{ 19699int attr=$attr; return attr; 19700 ; 19701 return 0; 19702} 19703_ACEOF 19704if ac_fn_c_try_link "$LINENO"; then : 19705 attr_name=$attr; break 19706fi 19707rm -f core conftest.err conftest.$ac_objext \ 19708 conftest$ac_exeext conftest.$ac_ext 19709 done 19710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 19711$as_echo "$attr_name" >&6; } 19712 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 19713 19714cat >>confdefs.h <<_ACEOF 19715#define PTHREAD_CREATE_JOINABLE $attr_name 19716_ACEOF 19717 19718 fi 19719 19720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 19721$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 19722 flag=no 19723 case "${host_cpu}-${host_os}" in 19724 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 19725 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 19726 esac 19727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 19728$as_echo "${flag}" >&6; } 19729 if test "x$flag" != xno; then 19730 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 19731 fi 19732 19733 LIBS="$save_LIBS" 19734 CFLAGS="$save_CFLAGS" 19735 19736 if test x"$GCC" != xyes; then 19737 for ac_prog in xlc_r cc_r 19738do 19739 # Extract the first word of "$ac_prog", so it can be a program name with args. 19740set dummy $ac_prog; ac_word=$2 19741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19742$as_echo_n "checking for $ac_word... " >&6; } 19743if ${ac_cv_prog_PTHREAD_CC+:} false; then : 19744 $as_echo_n "(cached) " >&6 19745else 19746 if test -n "$PTHREAD_CC"; then 19747 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 19748else 19749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19750for as_dir in $PATH 19751do 19752 IFS=$as_save_IFS 19753 test -z "$as_dir" && as_dir=. 19754 for ac_exec_ext in '' $ac_executable_extensions; do 19755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19756 ac_cv_prog_PTHREAD_CC="$ac_prog" 19757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19758 break 2 19759 fi 19760done 19761 done 19762IFS=$as_save_IFS 19763 19764fi 19765fi 19766PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 19767if test -n "$PTHREAD_CC"; then 19768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 19769$as_echo "$PTHREAD_CC" >&6; } 19770else 19771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19772$as_echo "no" >&6; } 19773fi 19774 19775 19776 test -n "$PTHREAD_CC" && break 19777done 19778test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 19779 19780 else 19781 PTHREAD_CC=$CC 19782 fi 19783else 19784 PTHREAD_CC="$CC" 19785fi 19786 19787 19788 19789 19790 19791if test x"$ax_pthread_ok" = xyes; then 19792 19793$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 19794 19795 : 19796else 19797 ax_pthread_ok=no 19798 19799fi 19800ac_ext=c 19801ac_cpp='$CPP $CPPFLAGS' 19802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19804ac_compiler_gnu=$ac_cv_c_compiler_gnu 19805 19806 19807 19808 19809ac_ext=c 19810ac_cpp='$CPP $CPPFLAGS' 19811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19813ac_compiler_gnu=$ac_cv_c_compiler_gnu 19814 19815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5 19816$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; } 19817if ${ax_cv_c_compiler_ms+:} false; then : 19818 $as_echo_n "(cached) " >&6 19819else 19820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19821/* end confdefs.h. */ 19822 19823int 19824main () 19825{ 19826#ifndef _MSC_VER 19827 choke me 19828#endif 19829 19830 ; 19831 return 0; 19832} 19833_ACEOF 19834if ac_fn_c_try_compile "$LINENO"; then : 19835 ax_compiler_ms=yes 19836else 19837 ax_compiler_ms=no 19838fi 19839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19840ax_cv_c_compiler_ms=$ax_compiler_ms 19841 19842fi 19843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5 19844$as_echo "$ax_cv_c_compiler_ms" >&6; } 19845if test X$ax_compiler_ms = Xno; then : 19846 GL_CFLAGS="${PTHREAD_CFLAGS}"; GL_LIBS="${PTHREAD_LIBS} -lm" 19847fi 19848 19849if test "X$no_x" != "Xyes"; then : 19850 if test -n "$x_includes"; then : 19851 GL_CFLAGS="-I${x_includes} ${GL_CFLAGS}" 19852fi 19853 if test -n "$x_libraries"; then : 19854 GL_LIBS="-L${x_libraries} -lX11 ${GL_LIBS}" 19855fi 19856fi 19857 19858ax_save_CPPFLAGS="${CPPFLAGS}" 19859CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 19860for ac_header in GL/gl.h OpenGL/gl.h 19861do : 19862 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19863ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19864if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19865 cat >>confdefs.h <<_ACEOF 19866#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19867_ACEOF 19868 19869fi 19870 19871done 19872 19873CPPFLAGS="${ax_save_CPPFLAGS}" 19874 19875for ac_header in windows.h 19876do : 19877 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" 19878if test "x$ac_cv_header_windows_h" = xyes; then : 19879 cat >>confdefs.h <<_ACEOF 19880#define HAVE_WINDOWS_H 1 19881_ACEOF 19882 19883fi 19884 19885done 19886 19887 19888 19889 19890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL library" >&5 19891$as_echo_n "checking for OpenGL library... " >&6; } 19892if ${ax_cv_check_gl_libgl+:} false; then : 19893 $as_echo_n "(cached) " >&6 19894else 19895 ax_cv_check_gl_libgl="no" 19896case $host_cpu in 19897 x86_64) ax_check_gl_libdir=lib64 ;; 19898 *) ax_check_gl_libdir=lib ;; 19899esac 19900ax_save_CPPFLAGS="${CPPFLAGS}" 19901CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 19902ax_save_LIBS="${LIBS}" 19903LIBS="" 19904ax_check_libs="-lopengl32 -lGL" 19905for ax_lib in ${ax_check_libs}; do 19906 if test X$ax_compiler_ms = Xyes; then : 19907 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` 19908else 19909 ax_try_lib="${ax_lib}" 19910fi 19911 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" 19912cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19913/* end confdefs.h. */ 19914 19915# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 19916# include <windows.h> 19917# endif 19918# ifdef HAVE_GL_GL_H 19919# include <GL/gl.h> 19920# elif defined(HAVE_OPENGL_GL_H) 19921# include <OpenGL/gl.h> 19922# else 19923# error no gl.h 19924# endif 19925int 19926main () 19927{ 19928glBegin(0) 19929 ; 19930 return 0; 19931} 19932_ACEOF 19933if ac_fn_c_try_link "$LINENO"; then : 19934 ax_cv_check_gl_libgl="${ax_try_lib}"; break 19935else 19936 ax_check_gl_nvidia_flags="-L/usr/${ax_check_gl_libdir}/nvidia" LIBS="${ax_try_lib} ${ax_check_gl_nvidia_flags} ${GL_LIBS} ${ax_save_LIBS}" 19937cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19938/* end confdefs.h. */ 19939 19940# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 19941# include <windows.h> 19942# endif 19943# ifdef HAVE_GL_GL_H 19944# include <GL/gl.h> 19945# elif defined(HAVE_OPENGL_GL_H) 19946# include <OpenGL/gl.h> 19947# else 19948# error no gl.h 19949# endif 19950int 19951main () 19952{ 19953glBegin(0) 19954 ; 19955 return 0; 19956} 19957_ACEOF 19958if ac_fn_c_try_link "$LINENO"; then : 19959 ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_nvidia_flags}"; break 19960else 19961 ax_check_gl_dylib_flag='-dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib' LIBS="${ax_try_lib} ${ax_check_gl_dylib_flag} ${GL_LIBS} ${ax_save_LIBS}" 19962cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19963/* end confdefs.h. */ 19964 19965# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 19966# include <windows.h> 19967# endif 19968# ifdef HAVE_GL_GL_H 19969# include <GL/gl.h> 19970# elif defined(HAVE_OPENGL_GL_H) 19971# include <OpenGL/gl.h> 19972# else 19973# error no gl.h 19974# endif 19975int 19976main () 19977{ 19978glBegin(0) 19979 ; 19980 return 0; 19981} 19982_ACEOF 19983if ac_fn_c_try_link "$LINENO"; then : 19984 ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_dylib_flag}"; break 19985fi 19986rm -f core conftest.err conftest.$ac_objext \ 19987 conftest$ac_exeext conftest.$ac_ext 19988fi 19989rm -f core conftest.err conftest.$ac_objext \ 19990 conftest$ac_exeext conftest.$ac_ext 19991fi 19992rm -f core conftest.err conftest.$ac_objext \ 19993 conftest$ac_exeext conftest.$ac_ext 19994done 19995 19996if test "X$ax_cv_check_gl_libgl" = Xno -a "X$no_x" = Xyes; then : 19997 LIBS='-framework OpenGL' 19998cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19999/* end confdefs.h. */ 20000 20001# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 20002# include <windows.h> 20003# endif 20004# ifdef HAVE_GL_GL_H 20005# include <GL/gl.h> 20006# elif defined(HAVE_OPENGL_GL_H) 20007# include <OpenGL/gl.h> 20008# else 20009# error no gl.h 20010# endif 20011int 20012main () 20013{ 20014glBegin(0) 20015 ; 20016 return 0; 20017} 20018_ACEOF 20019if ac_fn_c_try_link "$LINENO"; then : 20020 ax_cv_check_gl_libgl="$LIBS" 20021fi 20022rm -f core conftest.err conftest.$ac_objext \ 20023 conftest$ac_exeext conftest.$ac_ext 20024fi 20025 20026LIBS=${ax_save_LIBS} 20027CPPFLAGS=${ax_save_CPPFLAGS} 20028fi 20029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_libgl" >&5 20030$as_echo "$ax_cv_check_gl_libgl" >&6; } 20031 20032if test "X$ax_cv_check_gl_libgl" = Xno; then : 20033 no_gl=yes; GL_CFLAGS=""; GL_LIBS="" 20034else 20035 GL_LIBS="${ax_cv_check_gl_libgl} ${GL_LIBS}" 20036fi 20037ac_ext=c 20038ac_cpp='$CPP $CPPFLAGS' 20039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20041ac_compiler_gnu=$ac_cv_c_compiler_gnu 20042 20043 20044 20045 20046 20047 20048GLU_CFLAGS="${GL_CFLAGS}" 20049 20050ax_save_CPPFLAGS="${CPPFLAGS}" 20051CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 20052for ac_header in GL/glu.h OpenGL/glu.h 20053do : 20054 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20055ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 20056if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20057 cat >>confdefs.h <<_ACEOF 20058#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20059_ACEOF 20060 20061fi 20062 20063done 20064 20065CPPFLAGS="${ax_save_CPPFLAGS}" 20066 20067 20068 20069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL Utility library" >&5 20070$as_echo_n "checking for OpenGL Utility library... " >&6; } 20071if ${ax_cv_check_glu_libglu+:} false; then : 20072 $as_echo_n "(cached) " >&6 20073else 20074 ax_cv_check_glu_libglu="no" 20075ax_save_CPPFLAGS="${CPPFLAGS}" 20076CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 20077ax_save_LIBS="${LIBS}" 20078 20079LIBS="${GL_LIBS} ${ax_save_LIBS}" 20080ac_ext=cpp 20081ac_cpp='$CXXCPP $CPPFLAGS' 20082ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20083ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20084ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20085 20086if test X$ax_compiler_ms = Xyes; then : 20087 ac_ext=c 20088ac_cpp='$CPP $CPPFLAGS' 20089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20091ac_compiler_gnu=$ac_cv_c_compiler_gnu 20092 20093fi 20094cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20095/* end confdefs.h. */ 20096 20097# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 20098# include <windows.h> 20099# endif 20100# ifdef HAVE_GL_GLU_H 20101# include <GL/glu.h> 20102# elif defined(HAVE_OPENGL_GLU_H) 20103# include <OpenGL/glu.h> 20104# else 20105# error no glu.h 20106# endif 20107int 20108main () 20109{ 20110gluBeginCurve(0) 20111 ; 20112 return 0; 20113} 20114_ACEOF 20115if ac_fn_c_try_link "$LINENO"; then : 20116 ax_cv_check_glu_libglu=yes 20117else 20118 LIBS="" 20119ax_check_libs="-lglu32 -lGLU" 20120for ax_lib in ${ax_check_libs}; do 20121 if test X$ax_compiler_ms = Xyes; then : 20122 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` 20123else 20124 ax_try_lib="${ax_lib}" 20125fi 20126 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" 20127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20128/* end confdefs.h. */ 20129 20130# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 20131# include <windows.h> 20132# endif 20133# ifdef HAVE_GL_GLU_H 20134# include <GL/glu.h> 20135# elif defined(HAVE_OPENGL_GLU_H) 20136# include <OpenGL/glu.h> 20137# else 20138# error no glu.h 20139# endif 20140int 20141main () 20142{ 20143gluBeginCurve(0) 20144 ; 20145 return 0; 20146} 20147_ACEOF 20148if ac_fn_c_try_link "$LINENO"; then : 20149 ax_cv_check_glu_libglu="${ax_try_lib}"; break 20150fi 20151rm -f core conftest.err conftest.$ac_objext \ 20152 conftest$ac_exeext conftest.$ac_ext 20153done 20154 20155fi 20156rm -f core conftest.err conftest.$ac_objext \ 20157 conftest$ac_exeext conftest.$ac_ext 20158if test X$ax_compiler_ms = Xyes; then : 20159 ac_ext=cpp 20160ac_cpp='$CXXCPP $CPPFLAGS' 20161ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20162ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20163ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20164 20165fi 20166ac_ext=c 20167ac_cpp='$CPP $CPPFLAGS' 20168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20170ac_compiler_gnu=$ac_cv_c_compiler_gnu 20171 20172 20173LIBS=${ax_save_LIBS} 20174CPPFLAGS=${ax_save_CPPFLAGS} 20175fi 20176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_libglu" >&5 20177$as_echo "$ax_cv_check_glu_libglu" >&6; } 20178if test "X$ax_cv_check_glu_libglu" = Xno; then : 20179 no_glu=yes; GLU_CFLAGS=""; GLU_LIBS="" 20180else 20181 if test "X$ax_cv_check_glu_libglu" = Xyes; then : 20182 GLU_LIBS="$GL_LIBS" 20183else 20184 GLU_LIBS="${ax_cv_check_glu_libglu} ${GL_LIBS}" 20185fi 20186fi 20187 20188 20189 20190if test "X$ax_cv_check_glu_libglu" != Xno; then : 20191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for varargs GLU tesselator callback function type" >&5 20192$as_echo_n "checking for varargs GLU tesselator callback function type... " >&6; } 20193if ${ax_cv_varargs_glu_tesscb+:} false; then : 20194 $as_echo_n "(cached) " >&6 20195else 20196 ax_cv_varargs_glu_tesscb=no 20197ax_save_CFLAGS="$CFLAGS" 20198CFLAGS="$GL_CFLAGS $CFLAGS" 20199cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20200/* end confdefs.h. */ 20201 20202# ifdef HAVE_GL_GLU_H 20203# include <GL/glu.h> 20204# else 20205# include <OpenGL/glu.h> 20206# endif 20207int 20208main () 20209{ 20210GLvoid (*func)(...); gluTessCallback(0, 0, func) 20211 ; 20212 return 0; 20213} 20214_ACEOF 20215if ac_fn_c_try_compile "$LINENO"; then : 20216 ax_cv_varargs_glu_tesscb=yes 20217fi 20218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20219CFLAGS="$ax_save_CFLAGS" 20220fi 20221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_varargs_glu_tesscb" >&5 20222$as_echo "$ax_cv_varargs_glu_tesscb" >&6; } 20223if test X$ax_cv_varargs_glu_tesscb = Xyes; then : 20224 20225$as_echo "#define HAVE_VARARGS_GLU_TESSCB 1" >>confdefs.h 20226 20227fi 20228fi 20229 20230 20231 20232ax_save_CPPFLAGS="${CPPFLAGS}" 20233CPPFLAGS="${GLU_CFLAGS} ${CPPFLAGS}" 20234for ac_header in GL/glut.h GLUT/glut.h 20235do : 20236 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20237ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 20238if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20239 cat >>confdefs.h <<_ACEOF 20240#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20241_ACEOF 20242 20243fi 20244 20245done 20246 20247CPPFLAGS="${ax_save_CPPFLAGS}" 20248 20249GLUT_CFLAGS=${GLU_CFLAGS} 20250GLUT_LIBS=${GLU_LIBS} 20251 20252 20253 20254if test X$no_x != Xyes; then : 20255 GLUT_LIBS="${X_PRE_LIBS} -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}" 20256fi 20257 20258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLUT library" >&5 20259$as_echo_n "checking for GLUT library... " >&6; } 20260if ${ax_cv_check_glut_libglut+:} false; then : 20261 $as_echo_n "(cached) " >&6 20262else 20263 ax_cv_check_glut_libglut="no" 20264ac_ext=c 20265ac_cpp='$CPP $CPPFLAGS' 20266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20268ac_compiler_gnu=$ac_cv_c_compiler_gnu 20269 20270ax_save_CPPFLAGS="${CPPFLAGS}" 20271CPPFLAGS="${GLUT_CFLAGS} ${CPPFLAGS}" 20272ax_save_LIBS="${LIBS}" 20273LIBS="" 20274ax_check_libs="-lglut32 -lglut" 20275for ax_lib in ${ax_check_libs}; do 20276 if test X$ax_compiler_ms = Xyes; then : 20277 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` 20278else 20279 ax_try_lib="${ax_lib}" 20280fi 20281 LIBS="${ax_try_lib} ${GLUT_LIBS} ${ax_save_LIBS}" 20282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20283/* end confdefs.h. */ 20284 20285# if HAVE_WINDOWS_H && defined(_WIN32) 20286# include <windows.h> 20287# endif 20288# ifdef HAVE_GL_GLUT_H 20289# include <GL/glut.h> 20290# elif defined(HAVE_GLUT_GLUT_H) 20291# include <GLUT/glut.h> 20292# else 20293# error no glut.h 20294# endif 20295int 20296main () 20297{ 20298glutMainLoop() 20299 ; 20300 return 0; 20301} 20302_ACEOF 20303if ac_fn_c_try_link "$LINENO"; then : 20304 ax_cv_check_glut_libglut="${ax_try_lib}"; break 20305fi 20306rm -f core conftest.err conftest.$ac_objext \ 20307 conftest$ac_exeext conftest.$ac_ext 20308done 20309 20310if test "X$ax_cv_check_glut_libglut" = Xno -a "X$no_x" = Xyes; then : 20311 LIBS='-framework GLUT' 20312cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20313/* end confdefs.h. */ 20314 20315# if HAVE_WINDOWS_H && defined(_WIN32) 20316# include <windows.h> 20317# endif 20318# ifdef HAVE_GL_GLUT_H 20319# include <GL/glut.h> 20320# elif defined(HAVE_GLUT_GLUT_H) 20321# include <GLUT/glut.h> 20322# else 20323# error no glut.h 20324# endif 20325int 20326main () 20327{ 20328glutMainLoop() 20329 ; 20330 return 0; 20331} 20332_ACEOF 20333if ac_fn_c_try_link "$LINENO"; then : 20334 ax_cv_check_glut_libglut="$LIBS" 20335fi 20336rm -f core conftest.err conftest.$ac_objext \ 20337 conftest$ac_exeext conftest.$ac_ext 20338fi 20339 20340CPPFLAGS="${ax_save_CPPFLAGS}" 20341LIBS="${ax_save_LIBS}" 20342ac_ext=c 20343ac_cpp='$CPP $CPPFLAGS' 20344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20346ac_compiler_gnu=$ac_cv_c_compiler_gnu 20347 20348fi 20349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glut_libglut" >&5 20350$as_echo "$ax_cv_check_glut_libglut" >&6; } 20351 20352if test "X$ax_cv_check_glut_libglut" = Xno; then : 20353 no_glut="yes"; GLUT_CFLAGS=""; GLUT_LIBS="" 20354else 20355 GLUT_LIBS="${ax_cv_check_glut_libglut} ${GLUT_LIBS}" 20356fi 20357 20358 20359 20360 20361 20362if test "$no_x" != "yes" -a "$no_gl" != "yes" \ 20363 -a "$no_glu" != "yes" -a "$no_glut" != "yes" ; then 20364 HAVE_OPENGL=yes 20365fi 20366 20367 if test "$HAVE_OPENGL" = "yes"; then 20368 HAVE_OPENGL_TRUE= 20369 HAVE_OPENGL_FALSE='#' 20370else 20371 HAVE_OPENGL_TRUE='#' 20372 HAVE_OPENGL_FALSE= 20373fi 20374 20375 20376 20377win32_io_ok=no 20378case "${host_os}" in 20379 cygwin*) 20380 ;; 20381 *) 20382 if test x"$ac_cv_header_windows_h" = xyes; then 20383 win32_io_ok=yes 20384 20385$as_echo "#define USE_WIN32_FILEIO 1" >>confdefs.h 20386 20387 fi 20388 ;; 20389esac 20390 if test "$win32_io_ok" = yes; then 20391 WIN32_IO_TRUE= 20392 WIN32_IO_FALSE='#' 20393else 20394 WIN32_IO_TRUE='#' 20395 WIN32_IO_FALSE= 20396fi 20397 20398 20399 20400 20401 20402 20403 20404 20405 20406# Check whether --enable-strip-chopping was given. 20407if test "${enable_strip_chopping+set}" = set; then : 20408 enableval=$enable_strip_chopping; HAVE_STRIPCHOP=$enableval 20409else 20410 HAVE_STRIPCHOP=yes 20411fi 20412 20413 20414# Check whether --with-default-strip-size was given. 20415if test "${with_default_strip_size+set}" = set; then : 20416 withval=$with_default_strip_size; 20417fi 20418 20419 20420if test "$HAVE_STRIPCHOP" = "yes" \ 20421 -a "x$with_default_strip_size" != "xno"; then 20422 20423$as_echo "#define STRIPCHOP_DEFAULT TIFF_STRIPCHOP" >>confdefs.h 20424 20425 20426 if test "x$with_default_strip_size" = "x" \ 20427 -o "x$with_default_strip_size" = "xyes"; then 20428 with_default_strip_size="8192" 20429 fi 20430 20431 20432cat >>confdefs.h <<_ACEOF 20433#define STRIP_SIZE_DEFAULT $with_default_strip_size 20434_ACEOF 20435 20436 20437fi 20438 20439 20440# Check whether --enable-defer-strile-load was given. 20441if test "${enable_defer_strile_load+set}" = set; then : 20442 enableval=$enable_defer_strile_load; HAVE_DEFER_STRILE_LOAD=$enableval 20443else 20444 HAVE_DEFER_STRILE_LOAD=no 20445fi 20446 20447 20448if test "$HAVE_DEFER_STRILE_LOAD" = "yes" ; then 20449 20450$as_echo "#define DEFER_STRILE_LOAD 1" >>confdefs.h 20451 20452 20453fi 20454 20455 20456# Check whether --enable-chunky-strip-read was given. 20457if test "${enable_chunky_strip_read+set}" = set; then : 20458 enableval=$enable_chunky_strip_read; HAVE_CHUNKY_STRIP_READ=$enableval 20459else 20460 HAVE_CHUNKY_STRIP_READ=no 20461fi 20462 20463 20464if test "$HAVE_CHUNKY_STRIP_READ" = "yes" ; then 20465 20466$as_echo "#define CHUNKY_STRIP_READ_SUPPORT 1" >>confdefs.h 20467 20468 20469fi 20470 20471 20472$as_echo "#define SUBIFD_SUPPORT 1" >>confdefs.h 20473 20474 20475 20476# Check whether --enable-extrasample-as-alpha was given. 20477if test "${enable_extrasample_as_alpha+set}" = set; then : 20478 enableval=$enable_extrasample_as_alpha; HAVE_EXTRASAMPLE_AS_ALPHA=$enableval 20479else 20480 HAVE_EXTRASAMPLE_AS_ALPHA=yes 20481fi 20482 20483 20484if test "$HAVE_EXTRASAMPLE_AS_ALPHA" = "yes" ; then 20485 20486$as_echo "#define DEFAULT_EXTRASAMPLE_AS_ALPHA 1" >>confdefs.h 20487 20488fi 20489 20490 20491# Check whether --enable-check-ycbcr-subsampling was given. 20492if test "${enable_check_ycbcr_subsampling+set}" = set; then : 20493 enableval=$enable_check_ycbcr_subsampling; CHECK_JPEG_YCBCR_SUBSAMPLING=$enableval 20494else 20495 CHECK_JPEG_YCBCR_SUBSAMPLING=yes 20496fi 20497 20498 20499if test "$CHECK_JPEG_YCBCR_SUBSAMPLING" = "yes" ; then 20500 20501$as_echo "#define CHECK_JPEG_YCBCR_SUBSAMPLING 1" >>confdefs.h 20502 20503fi 20504 20505 20506 20507 20508ac_config_headers="$ac_config_headers libtiff/tif_config.h libtiff/tiffconf.h" 20509 20510 20511ac_config_files="$ac_config_files Makefile build/Makefile contrib/Makefile contrib/addtiffo/Makefile contrib/dbs/Makefile contrib/dbs/xtiff/Makefile contrib/iptcutil/Makefile contrib/mfs/Makefile contrib/pds/Makefile contrib/ras/Makefile contrib/stream/Makefile contrib/tags/Makefile contrib/win_dib/Makefile html/Makefile html/images/Makefile html/man/Makefile libtiff-4.pc libtiff/Makefile man/Makefile port/Makefile test/Makefile tools/Makefile" 20512 20513cat >confcache <<\_ACEOF 20514# This file is a shell script that caches the results of configure 20515# tests run on this system so they can be shared between configure 20516# scripts and configure runs, see configure's option --config-cache. 20517# It is not useful on other systems. If it contains results you don't 20518# want to keep, you may remove or edit it. 20519# 20520# config.status only pays attention to the cache file if you give it 20521# the --recheck option to rerun configure. 20522# 20523# `ac_cv_env_foo' variables (set or unset) will be overridden when 20524# loading this file, other *unset* `ac_cv_foo' will be assigned the 20525# following values. 20526 20527_ACEOF 20528 20529# The following way of writing the cache mishandles newlines in values, 20530# but we know of no workaround that is simple, portable, and efficient. 20531# So, we kill variables containing newlines. 20532# Ultrix sh set writes to stderr and can't be redirected directly, 20533# and sets the high bit in the cache file unless we assign to the vars. 20534( 20535 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20536 eval ac_val=\$$ac_var 20537 case $ac_val in #( 20538 *${as_nl}*) 20539 case $ac_var in #( 20540 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20541$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20542 esac 20543 case $ac_var in #( 20544 _ | IFS | as_nl) ;; #( 20545 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20546 *) { eval $ac_var=; unset $ac_var;} ;; 20547 esac ;; 20548 esac 20549 done 20550 20551 (set) 2>&1 | 20552 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20553 *${as_nl}ac_space=\ *) 20554 # `set' does not quote correctly, so add quotes: double-quote 20555 # substitution turns \\\\ into \\, and sed turns \\ into \. 20556 sed -n \ 20557 "s/'/'\\\\''/g; 20558 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20559 ;; #( 20560 *) 20561 # `set' quotes correctly as required by POSIX, so do not add quotes. 20562 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20563 ;; 20564 esac | 20565 sort 20566) | 20567 sed ' 20568 /^ac_cv_env_/b end 20569 t clear 20570 :clear 20571 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20572 t end 20573 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20574 :end' >>confcache 20575if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20576 if test -w "$cache_file"; then 20577 if test "x$cache_file" != "x/dev/null"; then 20578 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20579$as_echo "$as_me: updating cache $cache_file" >&6;} 20580 if test ! -f "$cache_file" || test -h "$cache_file"; then 20581 cat confcache >"$cache_file" 20582 else 20583 case $cache_file in #( 20584 */* | ?:*) 20585 mv -f confcache "$cache_file"$$ && 20586 mv -f "$cache_file"$$ "$cache_file" ;; #( 20587 *) 20588 mv -f confcache "$cache_file" ;; 20589 esac 20590 fi 20591 fi 20592 else 20593 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20594$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20595 fi 20596fi 20597rm -f confcache 20598 20599test "x$prefix" = xNONE && prefix=$ac_default_prefix 20600# Let make expand exec_prefix. 20601test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20602 20603DEFS=-DHAVE_CONFIG_H 20604 20605ac_libobjs= 20606ac_ltlibobjs= 20607U= 20608for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20609 # 1. Remove the extension, and $U if already installed. 20610 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20611 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 20612 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20613 # will be set to the directory where LIBOBJS objects are built. 20614 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20615 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20616done 20617LIBOBJS=$ac_libobjs 20618 20619LTLIBOBJS=$ac_ltlibobjs 20620 20621 20622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20623$as_echo_n "checking that generated files are newer than configure... " >&6; } 20624 if test -n "$am_sleep_pid"; then 20625 # Hide warnings about reused PIDs. 20626 wait $am_sleep_pid 2>/dev/null 20627 fi 20628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 20629$as_echo "done" >&6; } 20630 if test -n "$EXEEXT"; then 20631 am__EXEEXT_TRUE= 20632 am__EXEEXT_FALSE='#' 20633else 20634 am__EXEEXT_TRUE='#' 20635 am__EXEEXT_FALSE= 20636fi 20637 20638if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 20639 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 20640Usually this means the macro was only invoked conditionally." "$LINENO" 5 20641fi 20642if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20643 as_fn_error $? "conditional \"AMDEP\" was never defined. 20644Usually this means the macro was only invoked conditionally." "$LINENO" 5 20645fi 20646if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20647 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20648Usually this means the macro was only invoked conditionally." "$LINENO" 5 20649fi 20650if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then 20651 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined. 20652Usually this means the macro was only invoked conditionally." "$LINENO" 5 20653fi 20654if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20655 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 20656Usually this means the macro was only invoked conditionally." "$LINENO" 5 20657fi 20658 20659if test -z "${HAVE_RPATH_TRUE}" && test -z "${HAVE_RPATH_FALSE}"; then 20660 as_fn_error $? "conditional \"HAVE_RPATH\" was never defined. 20661Usually this means the macro was only invoked conditionally." "$LINENO" 5 20662fi 20663if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then 20664 as_fn_error $? "conditional \"HAVE_CXX\" was never defined. 20665Usually this means the macro was only invoked conditionally." "$LINENO" 5 20666fi 20667if test -z "${HAVE_OPENGL_TRUE}" && test -z "${HAVE_OPENGL_FALSE}"; then 20668 as_fn_error $? "conditional \"HAVE_OPENGL\" was never defined. 20669Usually this means the macro was only invoked conditionally." "$LINENO" 5 20670fi 20671if test -z "${WIN32_IO_TRUE}" && test -z "${WIN32_IO_FALSE}"; then 20672 as_fn_error $? "conditional \"WIN32_IO\" was never defined. 20673Usually this means the macro was only invoked conditionally." "$LINENO" 5 20674fi 20675 20676: "${CONFIG_STATUS=./config.status}" 20677ac_write_fail=0 20678ac_clean_files_save=$ac_clean_files 20679ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20680{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20681$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 20682as_write_fail=0 20683cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20684#! $SHELL 20685# Generated by $as_me. 20686# Run this file to recreate the current configuration. 20687# Compiler output produced by configure, useful for debugging 20688# configure, is in config.log if it exists. 20689 20690debug=false 20691ac_cs_recheck=false 20692ac_cs_silent=false 20693 20694SHELL=\${CONFIG_SHELL-$SHELL} 20695export SHELL 20696_ASEOF 20697cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20698## -------------------- ## 20699## M4sh Initialization. ## 20700## -------------------- ## 20701 20702# Be more Bourne compatible 20703DUALCASE=1; export DUALCASE # for MKS sh 20704if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20705 emulate sh 20706 NULLCMD=: 20707 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20708 # is contrary to our usage. Disable this feature. 20709 alias -g '${1+"$@"}'='"$@"' 20710 setopt NO_GLOB_SUBST 20711else 20712 case `(set -o) 2>/dev/null` in #( 20713 *posix*) : 20714 set -o posix ;; #( 20715 *) : 20716 ;; 20717esac 20718fi 20719 20720 20721as_nl=' 20722' 20723export as_nl 20724# Printing a long string crashes Solaris 7 /usr/bin/printf. 20725as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 20726as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 20727as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 20728# Prefer a ksh shell builtin over an external printf program on Solaris, 20729# but without wasting forks for bash or zsh. 20730if test -z "$BASH_VERSION$ZSH_VERSION" \ 20731 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 20732 as_echo='print -r --' 20733 as_echo_n='print -rn --' 20734elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 20735 as_echo='printf %s\n' 20736 as_echo_n='printf %s' 20737else 20738 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 20739 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 20740 as_echo_n='/usr/ucb/echo -n' 20741 else 20742 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 20743 as_echo_n_body='eval 20744 arg=$1; 20745 case $arg in #( 20746 *"$as_nl"*) 20747 expr "X$arg" : "X\\(.*\\)$as_nl"; 20748 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 20749 esac; 20750 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 20751 ' 20752 export as_echo_n_body 20753 as_echo_n='sh -c $as_echo_n_body as_echo' 20754 fi 20755 export as_echo_body 20756 as_echo='sh -c $as_echo_body as_echo' 20757fi 20758 20759# The user is always right. 20760if test "${PATH_SEPARATOR+set}" != set; then 20761 PATH_SEPARATOR=: 20762 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20763 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20764 PATH_SEPARATOR=';' 20765 } 20766fi 20767 20768 20769# IFS 20770# We need space, tab and new line, in precisely that order. Quoting is 20771# there to prevent editors from complaining about space-tab. 20772# (If _AS_PATH_WALK were called with IFS unset, it would disable word 20773# splitting by setting IFS to empty value.) 20774IFS=" "" $as_nl" 20775 20776# Find who we are. Look in the path if we contain no directory separator. 20777as_myself= 20778case $0 in #(( 20779 *[\\/]* ) as_myself=$0 ;; 20780 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20781for as_dir in $PATH 20782do 20783 IFS=$as_save_IFS 20784 test -z "$as_dir" && as_dir=. 20785 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20786 done 20787IFS=$as_save_IFS 20788 20789 ;; 20790esac 20791# We did not find ourselves, most probably we were run as `sh COMMAND' 20792# in which case we are not to be found in the path. 20793if test "x$as_myself" = x; then 20794 as_myself=$0 20795fi 20796if test ! -f "$as_myself"; then 20797 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20798 exit 1 20799fi 20800 20801# Unset variables that we do not need and which cause bugs (e.g. in 20802# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 20803# suppresses any "Segmentation fault" message there. '((' could 20804# trigger a bug in pdksh 5.2.14. 20805for as_var in BASH_ENV ENV MAIL MAILPATH 20806do eval test x\${$as_var+set} = xset \ 20807 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20808done 20809PS1='$ ' 20810PS2='> ' 20811PS4='+ ' 20812 20813# NLS nuisances. 20814LC_ALL=C 20815export LC_ALL 20816LANGUAGE=C 20817export LANGUAGE 20818 20819# CDPATH. 20820(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20821 20822 20823# as_fn_error STATUS ERROR [LINENO LOG_FD] 20824# ---------------------------------------- 20825# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20826# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20827# script with STATUS, using 1 if that was 0. 20828as_fn_error () 20829{ 20830 as_status=$1; test $as_status -eq 0 && as_status=1 20831 if test "$4"; then 20832 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20833 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20834 fi 20835 $as_echo "$as_me: error: $2" >&2 20836 as_fn_exit $as_status 20837} # as_fn_error 20838 20839 20840# as_fn_set_status STATUS 20841# ----------------------- 20842# Set $? to STATUS, without forking. 20843as_fn_set_status () 20844{ 20845 return $1 20846} # as_fn_set_status 20847 20848# as_fn_exit STATUS 20849# ----------------- 20850# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20851as_fn_exit () 20852{ 20853 set +e 20854 as_fn_set_status $1 20855 exit $1 20856} # as_fn_exit 20857 20858# as_fn_unset VAR 20859# --------------- 20860# Portably unset VAR. 20861as_fn_unset () 20862{ 20863 { eval $1=; unset $1;} 20864} 20865as_unset=as_fn_unset 20866# as_fn_append VAR VALUE 20867# ---------------------- 20868# Append the text in VALUE to the end of the definition contained in VAR. Take 20869# advantage of any shell optimizations that allow amortized linear growth over 20870# repeated appends, instead of the typical quadratic growth present in naive 20871# implementations. 20872if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 20873 eval 'as_fn_append () 20874 { 20875 eval $1+=\$2 20876 }' 20877else 20878 as_fn_append () 20879 { 20880 eval $1=\$$1\$2 20881 } 20882fi # as_fn_append 20883 20884# as_fn_arith ARG... 20885# ------------------ 20886# Perform arithmetic evaluation on the ARGs, and store the result in the 20887# global $as_val. Take advantage of shells that can avoid forks. The arguments 20888# must be portable across $(()) and expr. 20889if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 20890 eval 'as_fn_arith () 20891 { 20892 as_val=$(( $* )) 20893 }' 20894else 20895 as_fn_arith () 20896 { 20897 as_val=`expr "$@" || test $? -eq 1` 20898 } 20899fi # as_fn_arith 20900 20901 20902if expr a : '\(a\)' >/dev/null 2>&1 && 20903 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20904 as_expr=expr 20905else 20906 as_expr=false 20907fi 20908 20909if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20910 as_basename=basename 20911else 20912 as_basename=false 20913fi 20914 20915if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20916 as_dirname=dirname 20917else 20918 as_dirname=false 20919fi 20920 20921as_me=`$as_basename -- "$0" || 20922$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20923 X"$0" : 'X\(//\)$' \| \ 20924 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20925$as_echo X/"$0" | 20926 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20927 s//\1/ 20928 q 20929 } 20930 /^X\/\(\/\/\)$/{ 20931 s//\1/ 20932 q 20933 } 20934 /^X\/\(\/\).*/{ 20935 s//\1/ 20936 q 20937 } 20938 s/.*/./; q'` 20939 20940# Avoid depending upon Character Ranges. 20941as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20942as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20943as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20944as_cr_digits='0123456789' 20945as_cr_alnum=$as_cr_Letters$as_cr_digits 20946 20947ECHO_C= ECHO_N= ECHO_T= 20948case `echo -n x` in #((((( 20949-n*) 20950 case `echo 'xy\c'` in 20951 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20952 xy) ECHO_C='\c';; 20953 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20954 ECHO_T=' ';; 20955 esac;; 20956*) 20957 ECHO_N='-n';; 20958esac 20959 20960rm -f conf$$ conf$$.exe conf$$.file 20961if test -d conf$$.dir; then 20962 rm -f conf$$.dir/conf$$.file 20963else 20964 rm -f conf$$.dir 20965 mkdir conf$$.dir 2>/dev/null 20966fi 20967if (echo >conf$$.file) 2>/dev/null; then 20968 if ln -s conf$$.file conf$$ 2>/dev/null; then 20969 as_ln_s='ln -s' 20970 # ... but there are two gotchas: 20971 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20972 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20973 # In both cases, we have to default to `cp -pR'. 20974 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20975 as_ln_s='cp -pR' 20976 elif ln conf$$.file conf$$ 2>/dev/null; then 20977 as_ln_s=ln 20978 else 20979 as_ln_s='cp -pR' 20980 fi 20981else 20982 as_ln_s='cp -pR' 20983fi 20984rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20985rmdir conf$$.dir 2>/dev/null 20986 20987 20988# as_fn_mkdir_p 20989# ------------- 20990# Create "$as_dir" as a directory, including parents if necessary. 20991as_fn_mkdir_p () 20992{ 20993 20994 case $as_dir in #( 20995 -*) as_dir=./$as_dir;; 20996 esac 20997 test -d "$as_dir" || eval $as_mkdir_p || { 20998 as_dirs= 20999 while :; do 21000 case $as_dir in #( 21001 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21002 *) as_qdir=$as_dir;; 21003 esac 21004 as_dirs="'$as_qdir' $as_dirs" 21005 as_dir=`$as_dirname -- "$as_dir" || 21006$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21007 X"$as_dir" : 'X\(//\)[^/]' \| \ 21008 X"$as_dir" : 'X\(//\)$' \| \ 21009 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21010$as_echo X"$as_dir" | 21011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21012 s//\1/ 21013 q 21014 } 21015 /^X\(\/\/\)[^/].*/{ 21016 s//\1/ 21017 q 21018 } 21019 /^X\(\/\/\)$/{ 21020 s//\1/ 21021 q 21022 } 21023 /^X\(\/\).*/{ 21024 s//\1/ 21025 q 21026 } 21027 s/.*/./; q'` 21028 test -d "$as_dir" && break 21029 done 21030 test -z "$as_dirs" || eval "mkdir $as_dirs" 21031 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 21032 21033 21034} # as_fn_mkdir_p 21035if mkdir -p . 2>/dev/null; then 21036 as_mkdir_p='mkdir -p "$as_dir"' 21037else 21038 test -d ./-p && rmdir ./-p 21039 as_mkdir_p=false 21040fi 21041 21042 21043# as_fn_executable_p FILE 21044# ----------------------- 21045# Test if FILE is an executable regular file. 21046as_fn_executable_p () 21047{ 21048 test -f "$1" && test -x "$1" 21049} # as_fn_executable_p 21050as_test_x='test -x' 21051as_executable_p=as_fn_executable_p 21052 21053# Sed expression to map a string onto a valid CPP name. 21054as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21055 21056# Sed expression to map a string onto a valid variable name. 21057as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21058 21059 21060exec 6>&1 21061## ----------------------------------- ## 21062## Main body of $CONFIG_STATUS script. ## 21063## ----------------------------------- ## 21064_ASEOF 21065test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21066 21067cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21068# Save the log message, to keep $0 and so on meaningful, and to 21069# report actual input values of CONFIG_FILES etc. instead of their 21070# values after options handling. 21071ac_log=" 21072This file was extended by LibTIFF Software $as_me 4.0.3, which was 21073generated by GNU Autoconf 2.69. Invocation command line was 21074 21075 CONFIG_FILES = $CONFIG_FILES 21076 CONFIG_HEADERS = $CONFIG_HEADERS 21077 CONFIG_LINKS = $CONFIG_LINKS 21078 CONFIG_COMMANDS = $CONFIG_COMMANDS 21079 $ $0 $@ 21080 21081on `(hostname || uname -n) 2>/dev/null | sed 1q` 21082" 21083 21084_ACEOF 21085 21086case $ac_config_files in *" 21087"*) set x $ac_config_files; shift; ac_config_files=$*;; 21088esac 21089 21090case $ac_config_headers in *" 21091"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21092esac 21093 21094 21095cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21096# Files that config.status was made for. 21097config_files="$ac_config_files" 21098config_headers="$ac_config_headers" 21099config_commands="$ac_config_commands" 21100 21101_ACEOF 21102 21103cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21104ac_cs_usage="\ 21105\`$as_me' instantiates files and other configuration actions 21106from templates according to the current configuration. Unless the files 21107and actions are specified as TAGs, all are instantiated by default. 21108 21109Usage: $0 [OPTION]... [TAG]... 21110 21111 -h, --help print this help, then exit 21112 -V, --version print version number and configuration settings, then exit 21113 --config print configuration, then exit 21114 -q, --quiet, --silent 21115 do not print progress messages 21116 -d, --debug don't remove temporary files 21117 --recheck update $as_me by reconfiguring in the same conditions 21118 --file=FILE[:TEMPLATE] 21119 instantiate the configuration file FILE 21120 --header=FILE[:TEMPLATE] 21121 instantiate the configuration header FILE 21122 21123Configuration files: 21124$config_files 21125 21126Configuration headers: 21127$config_headers 21128 21129Configuration commands: 21130$config_commands 21131 21132Report bugs to <[email protected]>." 21133 21134_ACEOF 21135cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21136ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 21137ac_cs_version="\\ 21138LibTIFF Software config.status 4.0.3 21139configured by $0, generated by GNU Autoconf 2.69, 21140 with options \\"\$ac_cs_config\\" 21141 21142Copyright (C) 2012 Free Software Foundation, Inc. 21143This config.status script is free software; the Free Software Foundation 21144gives unlimited permission to copy, distribute and modify it." 21145 21146ac_pwd='$ac_pwd' 21147srcdir='$srcdir' 21148INSTALL='$INSTALL' 21149MKDIR_P='$MKDIR_P' 21150AWK='$AWK' 21151test -n "\$AWK" || AWK=awk 21152_ACEOF 21153 21154cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21155# The default lists apply if the user does not specify any file. 21156ac_need_defaults=: 21157while test $# != 0 21158do 21159 case $1 in 21160 --*=?*) 21161 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21162 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21163 ac_shift=: 21164 ;; 21165 --*=) 21166 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21167 ac_optarg= 21168 ac_shift=: 21169 ;; 21170 *) 21171 ac_option=$1 21172 ac_optarg=$2 21173 ac_shift=shift 21174 ;; 21175 esac 21176 21177 case $ac_option in 21178 # Handling of the options. 21179 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21180 ac_cs_recheck=: ;; 21181 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21182 $as_echo "$ac_cs_version"; exit ;; 21183 --config | --confi | --conf | --con | --co | --c ) 21184 $as_echo "$ac_cs_config"; exit ;; 21185 --debug | --debu | --deb | --de | --d | -d ) 21186 debug=: ;; 21187 --file | --fil | --fi | --f ) 21188 $ac_shift 21189 case $ac_optarg in 21190 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21191 '') as_fn_error $? "missing file argument" ;; 21192 esac 21193 as_fn_append CONFIG_FILES " '$ac_optarg'" 21194 ac_need_defaults=false;; 21195 --header | --heade | --head | --hea ) 21196 $ac_shift 21197 case $ac_optarg in 21198 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21199 esac 21200 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21201 ac_need_defaults=false;; 21202 --he | --h) 21203 # Conflict between --help and --header 21204 as_fn_error $? "ambiguous option: \`$1' 21205Try \`$0 --help' for more information.";; 21206 --help | --hel | -h ) 21207 $as_echo "$ac_cs_usage"; exit ;; 21208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21209 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21210 ac_cs_silent=: ;; 21211 21212 # This is an error. 21213 -*) as_fn_error $? "unrecognized option: \`$1' 21214Try \`$0 --help' for more information." ;; 21215 21216 *) as_fn_append ac_config_targets " $1" 21217 ac_need_defaults=false ;; 21218 21219 esac 21220 shift 21221done 21222 21223ac_configure_extra_args= 21224 21225if $ac_cs_silent; then 21226 exec 6>/dev/null 21227 ac_configure_extra_args="$ac_configure_extra_args --silent" 21228fi 21229 21230_ACEOF 21231cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21232if \$ac_cs_recheck; then 21233 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21234 shift 21235 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 21236 CONFIG_SHELL='$SHELL' 21237 export CONFIG_SHELL 21238 exec "\$@" 21239fi 21240 21241_ACEOF 21242cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21243exec 5>>config.log 21244{ 21245 echo 21246 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21247## Running $as_me. ## 21248_ASBOX 21249 $as_echo "$ac_log" 21250} >&5 21251 21252_ACEOF 21253cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21254# 21255# INIT-COMMANDS 21256# 21257AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21258 21259 21260# The HP-UX ksh and POSIX shell print the target directory to stdout 21261# if CDPATH is set. 21262(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21263 21264sed_quote_subst='$sed_quote_subst' 21265double_quote_subst='$double_quote_subst' 21266delay_variable_subst='$delay_variable_subst' 21267macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21268macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21269AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 21270DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21271OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21272enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21273enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21274pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21275enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21276shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21277SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21278ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21279PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21280host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21281host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21282host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21283build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21284build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21285build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21286SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21287Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21288GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21289EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21290FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21291LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21292NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21293LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21294max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21295ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21296exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21297lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21298lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21299lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21300lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21301lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21302reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21303reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21304deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21305file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21306file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21307want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21308sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21309AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21310AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21311archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21312STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21313RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21314old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21315old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21316old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21317lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21318CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21319CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21320compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21321GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21322lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21323lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21324lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21325lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21326lt_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"`' 21327lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21328nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21329lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21330lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 21331objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21332MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21333lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21334lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21335lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21336lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21337lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21338need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21339MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21340DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21341NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21342LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21343OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21344OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21345libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21346shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21347extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21348archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21349enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21350export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21351whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21352compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21353old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21354old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21355archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21356archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21357module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21358module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21359with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21360allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21361no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21362hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21363hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21364hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21365hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21366hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21367hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21368hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21369inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21370link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21371always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21372export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21373exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21374include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21375prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21376postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21377file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21378variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21379need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21380need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21381version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21382runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21383shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21384shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21385libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21386library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21387soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21388install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21389postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21390postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21391finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21392finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21393hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21394sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21395lt_cv_sys_lib_dlsearch_path_spec='`$ECHO "$lt_cv_sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 21396hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21397enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21398enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21399enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21400old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21401striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21402compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 21403predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 21404postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 21405predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 21406postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 21407compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 21408LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 21409reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 21410reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21411old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21412compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 21413GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 21414lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 21415lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 21416lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 21417lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 21418lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 21419archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 21420enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 21421export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21422whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21423compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 21424old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21425old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21426archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21427archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21428module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21429module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21430with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 21431allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 21432no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 21433hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21434hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 21435hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 21436hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 21437hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 21438hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 21439hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 21440inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 21441link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 21442always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 21443export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21444exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 21445include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 21446prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21447postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21448file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 21449hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 21450compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 21451predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 21452postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 21453predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 21454postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 21455compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 21456 21457LTCC='$LTCC' 21458LTCFLAGS='$LTCFLAGS' 21459compiler='$compiler_DEFAULT' 21460 21461# A function that is used when there is no print builtin or printf. 21462func_fallback_echo () 21463{ 21464 eval 'cat <<_LTECHO_EOF 21465\$1 21466_LTECHO_EOF' 21467} 21468 21469# Quote evaled strings. 21470for var in AS \ 21471DLLTOOL \ 21472OBJDUMP \ 21473SHELL \ 21474ECHO \ 21475PATH_SEPARATOR \ 21476SED \ 21477GREP \ 21478EGREP \ 21479FGREP \ 21480LD \ 21481NM \ 21482LN_S \ 21483lt_SP2NL \ 21484lt_NL2SP \ 21485reload_flag \ 21486deplibs_check_method \ 21487file_magic_cmd \ 21488file_magic_glob \ 21489want_nocaseglob \ 21490sharedlib_from_linklib_cmd \ 21491AR \ 21492AR_FLAGS \ 21493archiver_list_spec \ 21494STRIP \ 21495RANLIB \ 21496CC \ 21497CFLAGS \ 21498compiler \ 21499lt_cv_sys_global_symbol_pipe \ 21500lt_cv_sys_global_symbol_to_cdecl \ 21501lt_cv_sys_global_symbol_to_import \ 21502lt_cv_sys_global_symbol_to_c_name_address \ 21503lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21504lt_cv_nm_interface \ 21505nm_file_list_spec \ 21506lt_cv_truncate_bin \ 21507lt_prog_compiler_no_builtin_flag \ 21508lt_prog_compiler_pic \ 21509lt_prog_compiler_wl \ 21510lt_prog_compiler_static \ 21511lt_cv_prog_compiler_c_o \ 21512need_locks \ 21513MANIFEST_TOOL \ 21514DSYMUTIL \ 21515NMEDIT \ 21516LIPO \ 21517OTOOL \ 21518OTOOL64 \ 21519shrext_cmds \ 21520export_dynamic_flag_spec \ 21521whole_archive_flag_spec \ 21522compiler_needs_object \ 21523with_gnu_ld \ 21524allow_undefined_flag \ 21525no_undefined_flag \ 21526hardcode_libdir_flag_spec \ 21527hardcode_libdir_separator \ 21528exclude_expsyms \ 21529include_expsyms \ 21530file_list_spec \ 21531variables_saved_for_relink \ 21532libname_spec \ 21533library_names_spec \ 21534soname_spec \ 21535install_override_mode \ 21536finish_eval \ 21537old_striplib \ 21538striplib \ 21539compiler_lib_search_dirs \ 21540predep_objects \ 21541postdep_objects \ 21542predeps \ 21543postdeps \ 21544compiler_lib_search_path \ 21545LD_CXX \ 21546reload_flag_CXX \ 21547compiler_CXX \ 21548lt_prog_compiler_no_builtin_flag_CXX \ 21549lt_prog_compiler_pic_CXX \ 21550lt_prog_compiler_wl_CXX \ 21551lt_prog_compiler_static_CXX \ 21552lt_cv_prog_compiler_c_o_CXX \ 21553export_dynamic_flag_spec_CXX \ 21554whole_archive_flag_spec_CXX \ 21555compiler_needs_object_CXX \ 21556with_gnu_ld_CXX \ 21557allow_undefined_flag_CXX \ 21558no_undefined_flag_CXX \ 21559hardcode_libdir_flag_spec_CXX \ 21560hardcode_libdir_separator_CXX \ 21561exclude_expsyms_CXX \ 21562include_expsyms_CXX \ 21563file_list_spec_CXX \ 21564compiler_lib_search_dirs_CXX \ 21565predep_objects_CXX \ 21566postdep_objects_CXX \ 21567predeps_CXX \ 21568postdeps_CXX \ 21569compiler_lib_search_path_CXX; do 21570 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21571 *[\\\\\\\`\\"\\\$]*) 21572 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21573 ;; 21574 *) 21575 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21576 ;; 21577 esac 21578done 21579 21580# Double-quote double-evaled strings. 21581for var in reload_cmds \ 21582old_postinstall_cmds \ 21583old_postuninstall_cmds \ 21584old_archive_cmds \ 21585extract_expsyms_cmds \ 21586old_archive_from_new_cmds \ 21587old_archive_from_expsyms_cmds \ 21588archive_cmds \ 21589archive_expsym_cmds \ 21590module_cmds \ 21591module_expsym_cmds \ 21592export_symbols_cmds \ 21593prelink_cmds \ 21594postlink_cmds \ 21595postinstall_cmds \ 21596postuninstall_cmds \ 21597finish_cmds \ 21598sys_lib_search_path_spec \ 21599lt_cv_sys_lib_dlsearch_path_spec \ 21600reload_cmds_CXX \ 21601old_archive_cmds_CXX \ 21602old_archive_from_new_cmds_CXX \ 21603old_archive_from_expsyms_cmds_CXX \ 21604archive_cmds_CXX \ 21605archive_expsym_cmds_CXX \ 21606module_cmds_CXX \ 21607module_expsym_cmds_CXX \ 21608export_symbols_cmds_CXX \ 21609prelink_cmds_CXX \ 21610postlink_cmds_CXX; do 21611 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21612 *[\\\\\\\`\\"\\\$]*) 21613 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21614 ;; 21615 *) 21616 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21617 ;; 21618 esac 21619done 21620 21621ac_aux_dir='$ac_aux_dir' 21622 21623# See if we are running on zsh, and set the options that allow our 21624# commands through without removal of \ escapes INIT. 21625if test -n "\${ZSH_VERSION+set}"; then 21626 setopt NO_GLOB_SUBST 21627fi 21628 21629 21630 PACKAGE='$PACKAGE' 21631 VERSION='$VERSION' 21632 RM='$RM' 21633 ofile='$ofile' 21634 21635 21636 21637 21638 21639 21640_ACEOF 21641 21642cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21643 21644# Handling of arguments. 21645for ac_config_target in $ac_config_targets 21646do 21647 case $ac_config_target in 21648 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21649 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21650 "libtiff/tif_config.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tif_config.h" ;; 21651 "libtiff/tiffconf.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tiffconf.h" ;; 21652 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21653 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;; 21654 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; 21655 "contrib/addtiffo/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/addtiffo/Makefile" ;; 21656 "contrib/dbs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/Makefile" ;; 21657 "contrib/dbs/xtiff/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/xtiff/Makefile" ;; 21658 "contrib/iptcutil/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/iptcutil/Makefile" ;; 21659 "contrib/mfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mfs/Makefile" ;; 21660 "contrib/pds/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/pds/Makefile" ;; 21661 "contrib/ras/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/ras/Makefile" ;; 21662 "contrib/stream/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/stream/Makefile" ;; 21663 "contrib/tags/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/tags/Makefile" ;; 21664 "contrib/win_dib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/win_dib/Makefile" ;; 21665 "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;; 21666 "html/images/Makefile") CONFIG_FILES="$CONFIG_FILES html/images/Makefile" ;; 21667 "html/man/Makefile") CONFIG_FILES="$CONFIG_FILES html/man/Makefile" ;; 21668 "libtiff-4.pc") CONFIG_FILES="$CONFIG_FILES libtiff-4.pc" ;; 21669 "libtiff/Makefile") CONFIG_FILES="$CONFIG_FILES libtiff/Makefile" ;; 21670 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21671 "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;; 21672 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 21673 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 21674 21675 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21676 esac 21677done 21678 21679 21680# If the user did not use the arguments to specify the items to instantiate, 21681# then the envvar interface is used. Set only those that are not. 21682# We use the long form for the default assignment because of an extremely 21683# bizarre bug on SunOS 4.1.3. 21684if $ac_need_defaults; then 21685 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21686 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21687 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21688fi 21689 21690# Have a temporary directory for convenience. Make it in the build tree 21691# simply because there is no reason against having it here, and in addition, 21692# creating and moving files from /tmp can sometimes cause problems. 21693# Hook for its removal unless debugging. 21694# Note that there is a small window in which the directory will not be cleaned: 21695# after its creation but before its name has been assigned to `$tmp'. 21696$debug || 21697{ 21698 tmp= ac_tmp= 21699 trap 'exit_status=$? 21700 : "${ac_tmp:=$tmp}" 21701 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21702' 0 21703 trap 'as_fn_exit 1' 1 2 13 15 21704} 21705# Create a (secure) tmp directory for tmp files. 21706 21707{ 21708 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21709 test -d "$tmp" 21710} || 21711{ 21712 tmp=./conf$$-$RANDOM 21713 (umask 077 && mkdir "$tmp") 21714} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21715ac_tmp=$tmp 21716 21717# Set up the scripts for CONFIG_FILES section. 21718# No need to generate them if there are no CONFIG_FILES. 21719# This happens for instance with `./config.status config.h'. 21720if test -n "$CONFIG_FILES"; then 21721 21722 21723ac_cr=`echo X | tr X '\015'` 21724# On cygwin, bash can eat \r inside `` if the user requested igncr. 21725# But we know of no other shell where ac_cr would be empty at this 21726# point, so we can use a bashism as a fallback. 21727if test "x$ac_cr" = x; then 21728 eval ac_cr=\$\'\\r\' 21729fi 21730ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21731if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21732 ac_cs_awk_cr='\\r' 21733else 21734 ac_cs_awk_cr=$ac_cr 21735fi 21736 21737echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21738_ACEOF 21739 21740 21741{ 21742 echo "cat >conf$$subs.awk <<_ACEOF" && 21743 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21744 echo "_ACEOF" 21745} >conf$$subs.sh || 21746 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21747ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21748ac_delim='%!_!# ' 21749for ac_last_try in false false false false false :; do 21750 . ./conf$$subs.sh || 21751 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21752 21753 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21754 if test $ac_delim_n = $ac_delim_num; then 21755 break 21756 elif $ac_last_try; then 21757 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21758 else 21759 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21760 fi 21761done 21762rm -f conf$$subs.sh 21763 21764cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21765cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21766_ACEOF 21767sed -n ' 21768h 21769s/^/S["/; s/!.*/"]=/ 21770p 21771g 21772s/^[^!]*!// 21773:repl 21774t repl 21775s/'"$ac_delim"'$// 21776t delim 21777:nl 21778h 21779s/\(.\{148\}\)..*/\1/ 21780t more1 21781s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21782p 21783n 21784b repl 21785:more1 21786s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21787p 21788g 21789s/.\{148\}// 21790t nl 21791:delim 21792h 21793s/\(.\{148\}\)..*/\1/ 21794t more2 21795s/["\\]/\\&/g; s/^/"/; s/$/"/ 21796p 21797b 21798:more2 21799s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21800p 21801g 21802s/.\{148\}// 21803t delim 21804' <conf$$subs.awk | sed ' 21805/^[^""]/{ 21806 N 21807 s/\n// 21808} 21809' >>$CONFIG_STATUS || ac_write_fail=1 21810rm -f conf$$subs.awk 21811cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21812_ACAWK 21813cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21814 for (key in S) S_is_set[key] = 1 21815 FS = "" 21816 21817} 21818{ 21819 line = $ 0 21820 nfields = split(line, field, "@") 21821 substed = 0 21822 len = length(field[1]) 21823 for (i = 2; i < nfields; i++) { 21824 key = field[i] 21825 keylen = length(key) 21826 if (S_is_set[key]) { 21827 value = S[key] 21828 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21829 len += length(value) + length(field[++i]) 21830 substed = 1 21831 } else 21832 len += 1 + keylen 21833 } 21834 21835 print line 21836} 21837 21838_ACAWK 21839_ACEOF 21840cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21841if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21842 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21843else 21844 cat 21845fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21846 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21847_ACEOF 21848 21849# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21850# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21851# trailing colons and then remove the whole line if VPATH becomes empty 21852# (actually we leave an empty line to preserve line numbers). 21853if test "x$srcdir" = x.; then 21854 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21855h 21856s/// 21857s/^/:/ 21858s/[ ]*$/:/ 21859s/:\$(srcdir):/:/g 21860s/:\${srcdir}:/:/g 21861s/:@srcdir@:/:/g 21862s/^:*// 21863s/:*$// 21864x 21865s/\(=[ ]*\).*/\1/ 21866G 21867s/\n// 21868s/^[^=]*=[ ]*$// 21869}' 21870fi 21871 21872cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21873fi # test -n "$CONFIG_FILES" 21874 21875# Set up the scripts for CONFIG_HEADERS section. 21876# No need to generate them if there are no CONFIG_HEADERS. 21877# This happens for instance with `./config.status Makefile'. 21878if test -n "$CONFIG_HEADERS"; then 21879cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21880BEGIN { 21881_ACEOF 21882 21883# Transform confdefs.h into an awk script `defines.awk', embedded as 21884# here-document in config.status, that substitutes the proper values into 21885# config.h.in to produce config.h. 21886 21887# Create a delimiter string that does not exist in confdefs.h, to ease 21888# handling of long lines. 21889ac_delim='%!_!# ' 21890for ac_last_try in false false :; do 21891 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21892 if test -z "$ac_tt"; then 21893 break 21894 elif $ac_last_try; then 21895 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21896 else 21897 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21898 fi 21899done 21900 21901# For the awk script, D is an array of macro values keyed by name, 21902# likewise P contains macro parameters if any. Preserve backslash 21903# newline sequences. 21904 21905ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21906sed -n ' 21907s/.\{148\}/&'"$ac_delim"'/g 21908t rset 21909:rset 21910s/^[ ]*#[ ]*define[ ][ ]*/ / 21911t def 21912d 21913:def 21914s/\\$// 21915t bsnl 21916s/["\\]/\\&/g 21917s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21918D["\1"]=" \3"/p 21919s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21920d 21921:bsnl 21922s/["\\]/\\&/g 21923s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21924D["\1"]=" \3\\\\\\n"\\/p 21925t cont 21926s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21927t cont 21928d 21929:cont 21930n 21931s/.\{148\}/&'"$ac_delim"'/g 21932t clear 21933:clear 21934s/\\$// 21935t bsnlc 21936s/["\\]/\\&/g; s/^/"/; s/$/"/p 21937d 21938:bsnlc 21939s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21940b cont 21941' <confdefs.h | sed ' 21942s/'"$ac_delim"'/"\\\ 21943"/g' >>$CONFIG_STATUS || ac_write_fail=1 21944 21945cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21946 for (key in D) D_is_set[key] = 1 21947 FS = "" 21948} 21949/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21950 line = \$ 0 21951 split(line, arg, " ") 21952 if (arg[1] == "#") { 21953 defundef = arg[2] 21954 mac1 = arg[3] 21955 } else { 21956 defundef = substr(arg[1], 2) 21957 mac1 = arg[2] 21958 } 21959 split(mac1, mac2, "(") #) 21960 macro = mac2[1] 21961 prefix = substr(line, 1, index(line, defundef) - 1) 21962 if (D_is_set[macro]) { 21963 # Preserve the white space surrounding the "#". 21964 print prefix "define", macro P[macro] D[macro] 21965 next 21966 } else { 21967 # Replace #undef with comments. This is necessary, for example, 21968 # in the case of _POSIX_SOURCE, which is predefined and required 21969 # on some systems where configure will not decide to define it. 21970 if (defundef == "undef") { 21971 print "/*", prefix defundef, macro, "*/" 21972 next 21973 } 21974 } 21975} 21976{ print } 21977_ACAWK 21978_ACEOF 21979cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21980 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21981fi # test -n "$CONFIG_HEADERS" 21982 21983 21984eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21985shift 21986for ac_tag 21987do 21988 case $ac_tag in 21989 :[FHLC]) ac_mode=$ac_tag; continue;; 21990 esac 21991 case $ac_mode$ac_tag in 21992 :[FHL]*:*);; 21993 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21994 :[FH]-) ac_tag=-:-;; 21995 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21996 esac 21997 ac_save_IFS=$IFS 21998 IFS=: 21999 set x $ac_tag 22000 IFS=$ac_save_IFS 22001 shift 22002 ac_file=$1 22003 shift 22004 22005 case $ac_mode in 22006 :L) ac_source=$1;; 22007 :[FH]) 22008 ac_file_inputs= 22009 for ac_f 22010 do 22011 case $ac_f in 22012 -) ac_f="$ac_tmp/stdin";; 22013 *) # Look for the file first in the build tree, then in the source tree 22014 # (if the path is not absolute). The absolute path cannot be DOS-style, 22015 # because $ac_f cannot contain `:'. 22016 test -f "$ac_f" || 22017 case $ac_f in 22018 [\\/$]*) false;; 22019 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22020 esac || 22021 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 22022 esac 22023 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22024 as_fn_append ac_file_inputs " '$ac_f'" 22025 done 22026 22027 # Let's still pretend it is `configure' which instantiates (i.e., don't 22028 # use $as_me), people would be surprised to read: 22029 # /* config.h. Generated by config.status. */ 22030 configure_input='Generated from '` 22031 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22032 `' by configure.' 22033 if test x"$ac_file" != x-; then 22034 configure_input="$ac_file. $configure_input" 22035 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 22036$as_echo "$as_me: creating $ac_file" >&6;} 22037 fi 22038 # Neutralize special characters interpreted by sed in replacement strings. 22039 case $configure_input in #( 22040 *\&* | *\|* | *\\* ) 22041 ac_sed_conf_input=`$as_echo "$configure_input" | 22042 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22043 *) ac_sed_conf_input=$configure_input;; 22044 esac 22045 22046 case $ac_tag in 22047 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 22048 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 22049 esac 22050 ;; 22051 esac 22052 22053 ac_dir=`$as_dirname -- "$ac_file" || 22054$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22055 X"$ac_file" : 'X\(//\)[^/]' \| \ 22056 X"$ac_file" : 'X\(//\)$' \| \ 22057 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22058$as_echo X"$ac_file" | 22059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22060 s//\1/ 22061 q 22062 } 22063 /^X\(\/\/\)[^/].*/{ 22064 s//\1/ 22065 q 22066 } 22067 /^X\(\/\/\)$/{ 22068 s//\1/ 22069 q 22070 } 22071 /^X\(\/\).*/{ 22072 s//\1/ 22073 q 22074 } 22075 s/.*/./; q'` 22076 as_dir="$ac_dir"; as_fn_mkdir_p 22077 ac_builddir=. 22078 22079case "$ac_dir" in 22080.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22081*) 22082 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 22083 # A ".." for each directory in $ac_dir_suffix. 22084 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22085 case $ac_top_builddir_sub in 22086 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22087 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22088 esac ;; 22089esac 22090ac_abs_top_builddir=$ac_pwd 22091ac_abs_builddir=$ac_pwd$ac_dir_suffix 22092# for backward compatibility: 22093ac_top_builddir=$ac_top_build_prefix 22094 22095case $srcdir in 22096 .) # We are building in place. 22097 ac_srcdir=. 22098 ac_top_srcdir=$ac_top_builddir_sub 22099 ac_abs_top_srcdir=$ac_pwd ;; 22100 [\\/]* | ?:[\\/]* ) # Absolute name. 22101 ac_srcdir=$srcdir$ac_dir_suffix; 22102 ac_top_srcdir=$srcdir 22103 ac_abs_top_srcdir=$srcdir ;; 22104 *) # Relative name. 22105 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22106 ac_top_srcdir=$ac_top_build_prefix$srcdir 22107 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22108esac 22109ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22110 22111 22112 case $ac_mode in 22113 :F) 22114 # 22115 # CONFIG_FILE 22116 # 22117 22118 case $INSTALL in 22119 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22120 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22121 esac 22122 ac_MKDIR_P=$MKDIR_P 22123 case $MKDIR_P in 22124 [\\/$]* | ?:[\\/]* ) ;; 22125 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22126 esac 22127_ACEOF 22128 22129cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22130# If the template does not know about datarootdir, expand it. 22131# FIXME: This hack should be removed a few years after 2.60. 22132ac_datarootdir_hack=; ac_datarootdir_seen= 22133ac_sed_dataroot=' 22134/datarootdir/ { 22135 p 22136 q 22137} 22138/@datadir@/p 22139/@docdir@/p 22140/@infodir@/p 22141/@localedir@/p 22142/@mandir@/p' 22143case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22144*datarootdir*) ac_datarootdir_seen=yes;; 22145*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22147$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22148_ACEOF 22149cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22150 ac_datarootdir_hack=' 22151 s&@datadir@&$datadir&g 22152 s&@docdir@&$docdir&g 22153 s&@infodir@&$infodir&g 22154 s&@localedir@&$localedir&g 22155 s&@mandir@&$mandir&g 22156 s&\\\${datarootdir}&$datarootdir&g' ;; 22157esac 22158_ACEOF 22159 22160# Neutralize VPATH when `$srcdir' = `.'. 22161# Shell code in configure.ac might set extrasub. 22162# FIXME: do we really want to maintain this feature? 22163cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22164ac_sed_extra="$ac_vpsub 22165$extrasub 22166_ACEOF 22167cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22168:t 22169/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22170s|@configure_input@|$ac_sed_conf_input|;t t 22171s&@top_builddir@&$ac_top_builddir_sub&;t t 22172s&@top_build_prefix@&$ac_top_build_prefix&;t t 22173s&@srcdir@&$ac_srcdir&;t t 22174s&@abs_srcdir@&$ac_abs_srcdir&;t t 22175s&@top_srcdir@&$ac_top_srcdir&;t t 22176s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22177s&@builddir@&$ac_builddir&;t t 22178s&@abs_builddir@&$ac_abs_builddir&;t t 22179s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22180s&@INSTALL@&$ac_INSTALL&;t t 22181s&@MKDIR_P@&$ac_MKDIR_P&;t t 22182$ac_datarootdir_hack 22183" 22184eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 22185 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22186 22187test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22188 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 22189 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 22190 "$ac_tmp/out"`; test -z "$ac_out"; } && 22191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22192which seems to be undefined. Please make sure it is defined" >&5 22193$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22194which seems to be undefined. Please make sure it is defined" >&2;} 22195 22196 rm -f "$ac_tmp/stdin" 22197 case $ac_file in 22198 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 22199 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 22200 esac \ 22201 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22202 ;; 22203 :H) 22204 # 22205 # CONFIG_HEADER 22206 # 22207 if test x"$ac_file" != x-; then 22208 { 22209 $as_echo "/* $configure_input */" \ 22210 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22211 } >"$ac_tmp/config.h" \ 22212 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22213 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22214 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22215$as_echo "$as_me: $ac_file is unchanged" >&6;} 22216 else 22217 rm -f "$ac_file" 22218 mv "$ac_tmp/config.h" "$ac_file" \ 22219 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22220 fi 22221 else 22222 $as_echo "/* $configure_input */" \ 22223 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22224 || as_fn_error $? "could not create -" "$LINENO" 5 22225 fi 22226# Compute "$ac_file"'s index in $config_headers. 22227_am_arg="$ac_file" 22228_am_stamp_count=1 22229for _am_header in $config_headers :; do 22230 case $_am_header in 22231 $_am_arg | $_am_arg:* ) 22232 break ;; 22233 * ) 22234 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22235 esac 22236done 22237echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22238$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22239 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22240 X"$_am_arg" : 'X\(//\)$' \| \ 22241 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22242$as_echo X"$_am_arg" | 22243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22244 s//\1/ 22245 q 22246 } 22247 /^X\(\/\/\)[^/].*/{ 22248 s//\1/ 22249 q 22250 } 22251 /^X\(\/\/\)$/{ 22252 s//\1/ 22253 q 22254 } 22255 /^X\(\/\).*/{ 22256 s//\1/ 22257 q 22258 } 22259 s/.*/./; q'`/stamp-h$_am_stamp_count 22260 ;; 22261 22262 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22263$as_echo "$as_me: executing $ac_file commands" >&6;} 22264 ;; 22265 esac 22266 22267 22268 case $ac_file$ac_mode in 22269 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22270 # Older Autoconf quotes --file arguments for eval, but not when files 22271 # are listed without --file. Let's play safe and only enable the eval 22272 # if we detect the quoting. 22273 case $CONFIG_FILES in 22274 *\'*) eval set x "$CONFIG_FILES" ;; 22275 *) set x $CONFIG_FILES ;; 22276 esac 22277 shift 22278 for mf 22279 do 22280 # Strip MF so we end up with the name of the file. 22281 mf=`echo "$mf" | sed -e 's/:.*$//'` 22282 # Check whether this is an Automake generated Makefile or not. 22283 # We used to match only the files named 'Makefile.in', but 22284 # some people rename them; so instead we look at the file content. 22285 # Grep'ing the first line is not enough: some people post-process 22286 # each Makefile.in and add a new line on top of each file to say so. 22287 # Grep'ing the whole file is not good either: AIX grep has a line 22288 # limit of 2048, but all sed's we know have understand at least 4000. 22289 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 22290 dirpart=`$as_dirname -- "$mf" || 22291$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22292 X"$mf" : 'X\(//\)[^/]' \| \ 22293 X"$mf" : 'X\(//\)$' \| \ 22294 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22295$as_echo X"$mf" | 22296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22297 s//\1/ 22298 q 22299 } 22300 /^X\(\/\/\)[^/].*/{ 22301 s//\1/ 22302 q 22303 } 22304 /^X\(\/\/\)$/{ 22305 s//\1/ 22306 q 22307 } 22308 /^X\(\/\).*/{ 22309 s//\1/ 22310 q 22311 } 22312 s/.*/./; q'` 22313 else 22314 continue 22315 fi 22316 # Extract the definition of DEPDIR, am__include, and am__quote 22317 # from the Makefile without running 'make'. 22318 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22319 test -z "$DEPDIR" && continue 22320 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22321 test -z "$am__include" && continue 22322 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22323 # Find all dependency output files, they are included files with 22324 # $(DEPDIR) in their names. We invoke sed twice because it is the 22325 # simplest approach to changing $(DEPDIR) to its actual value in the 22326 # expansion. 22327 for file in `sed -n " 22328 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22329 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 22330 # Make sure the directory exists. 22331 test -f "$dirpart/$file" && continue 22332 fdir=`$as_dirname -- "$file" || 22333$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22334 X"$file" : 'X\(//\)[^/]' \| \ 22335 X"$file" : 'X\(//\)$' \| \ 22336 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22337$as_echo X"$file" | 22338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22339 s//\1/ 22340 q 22341 } 22342 /^X\(\/\/\)[^/].*/{ 22343 s//\1/ 22344 q 22345 } 22346 /^X\(\/\/\)$/{ 22347 s//\1/ 22348 q 22349 } 22350 /^X\(\/\).*/{ 22351 s//\1/ 22352 q 22353 } 22354 s/.*/./; q'` 22355 as_dir=$dirpart/$fdir; as_fn_mkdir_p 22356 # echo "creating $dirpart/$file" 22357 echo '# dummy' > "$dirpart/$file" 22358 done 22359 done 22360} 22361 ;; 22362 "libtool":C) 22363 22364 # See if we are running on zsh, and set the options that allow our 22365 # commands through without removal of \ escapes. 22366 if test -n "${ZSH_VERSION+set}"; then 22367 setopt NO_GLOB_SUBST 22368 fi 22369 22370 cfgfile=${ofile}T 22371 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22372 $RM "$cfgfile" 22373 22374 cat <<_LT_EOF >> "$cfgfile" 22375#! $SHELL 22376# Generated automatically by $as_me ($PACKAGE) $VERSION 22377# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 22378# NOTE: Changes made to this file will be lost: look at ltmain.sh. 22379 22380# Provide generalized library-building support services. 22381# Written by Gordon Matzigkeit, 1996 22382 22383# Copyright (C) 2014 Free Software Foundation, Inc. 22384# This is free software; see the source for copying conditions. There is NO 22385# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22386 22387# GNU Libtool is free software; you can redistribute it and/or modify 22388# it under the terms of the GNU General Public License as published by 22389# the Free Software Foundation; either version 2 of of the License, or 22390# (at your option) any later version. 22391# 22392# As a special exception to the GNU General Public License, if you 22393# distribute this file as part of a program or library that is built 22394# using GNU Libtool, you may include this file under the same 22395# distribution terms that you use for the rest of that program. 22396# 22397# GNU Libtool is distributed in the hope that it will be useful, but 22398# WITHOUT ANY WARRANTY; without even the implied warranty of 22399# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22400# GNU General Public License for more details. 22401# 22402# You should have received a copy of the GNU General Public License 22403# along with this program. If not, see <http://www.gnu.org/licenses/>. 22404 22405 22406# The names of the tagged configurations supported by this script. 22407available_tags='CXX ' 22408 22409# Configured defaults for sys_lib_dlsearch_path munging. 22410: \${LT_SYS_LIBRARY_PATH="$LT_SYS_LIBRARY_PATH"} 22411 22412# ### BEGIN LIBTOOL CONFIG 22413 22414# Which release of libtool.m4 was used? 22415macro_version=$macro_version 22416macro_revision=$macro_revision 22417 22418# Assembler program. 22419AS=$lt_AS 22420 22421# DLL creation program. 22422DLLTOOL=$lt_DLLTOOL 22423 22424# Object dumper program. 22425OBJDUMP=$lt_OBJDUMP 22426 22427# Whether or not to build shared libraries. 22428build_libtool_libs=$enable_shared 22429 22430# Whether or not to build static libraries. 22431build_old_libs=$enable_static 22432 22433# What type of objects to build. 22434pic_mode=$pic_mode 22435 22436# Whether or not to optimize for fast installation. 22437fast_install=$enable_fast_install 22438 22439# Shared archive member basename,for filename based shared library versioning on AIX. 22440shared_archive_member_spec=$shared_archive_member_spec 22441 22442# Shell to use when invoking shell scripts. 22443SHELL=$lt_SHELL 22444 22445# An echo program that protects backslashes. 22446ECHO=$lt_ECHO 22447 22448# The PATH separator for the build system. 22449PATH_SEPARATOR=$lt_PATH_SEPARATOR 22450 22451# The host system. 22452host_alias=$host_alias 22453host=$host 22454host_os=$host_os 22455 22456# The build system. 22457build_alias=$build_alias 22458build=$build 22459build_os=$build_os 22460 22461# A sed program that does not truncate output. 22462SED=$lt_SED 22463 22464# Sed that helps us avoid accidentally triggering echo(1) options like -n. 22465Xsed="\$SED -e 1s/^X//" 22466 22467# A grep program that handles long lines. 22468GREP=$lt_GREP 22469 22470# An ERE matcher. 22471EGREP=$lt_EGREP 22472 22473# A literal string matcher. 22474FGREP=$lt_FGREP 22475 22476# A BSD- or MS-compatible name lister. 22477NM=$lt_NM 22478 22479# Whether we need soft or hard links. 22480LN_S=$lt_LN_S 22481 22482# What is the maximum length of a command? 22483max_cmd_len=$max_cmd_len 22484 22485# Object file suffix (normally "o"). 22486objext=$ac_objext 22487 22488# Executable file suffix (normally ""). 22489exeext=$exeext 22490 22491# whether the shell understands "unset". 22492lt_unset=$lt_unset 22493 22494# turn spaces into newlines. 22495SP2NL=$lt_lt_SP2NL 22496 22497# turn newlines into spaces. 22498NL2SP=$lt_lt_NL2SP 22499 22500# convert \$build file names to \$host format. 22501to_host_file_cmd=$lt_cv_to_host_file_cmd 22502 22503# convert \$build files to toolchain format. 22504to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22505 22506# Method to check whether dependent libraries are shared objects. 22507deplibs_check_method=$lt_deplibs_check_method 22508 22509# Command to use when deplibs_check_method = "file_magic". 22510file_magic_cmd=$lt_file_magic_cmd 22511 22512# How to find potential files when deplibs_check_method = "file_magic". 22513file_magic_glob=$lt_file_magic_glob 22514 22515# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22516want_nocaseglob=$lt_want_nocaseglob 22517 22518# Command to associate shared and link libraries. 22519sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22520 22521# The archiver. 22522AR=$lt_AR 22523 22524# Flags to create an archive. 22525AR_FLAGS=$lt_AR_FLAGS 22526 22527# How to feed a file listing to the archiver. 22528archiver_list_spec=$lt_archiver_list_spec 22529 22530# A symbol stripping program. 22531STRIP=$lt_STRIP 22532 22533# Commands used to install an old-style archive. 22534RANLIB=$lt_RANLIB 22535old_postinstall_cmds=$lt_old_postinstall_cmds 22536old_postuninstall_cmds=$lt_old_postuninstall_cmds 22537 22538# Whether to use a lock for old archive extraction. 22539lock_old_archive_extraction=$lock_old_archive_extraction 22540 22541# A C compiler. 22542LTCC=$lt_CC 22543 22544# LTCC compiler flags. 22545LTCFLAGS=$lt_CFLAGS 22546 22547# Take the output of nm and produce a listing of raw symbols and C names. 22548global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22549 22550# Transform the output of nm in a proper C declaration. 22551global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22552 22553# Transform the output of nm into a list of symbols to manually relocate. 22554global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22555 22556# Transform the output of nm in a C name address pair. 22557global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22558 22559# Transform the output of nm in a C name address pair when lib prefix is needed. 22560global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22561 22562# The name lister interface. 22563nm_interface=$lt_lt_cv_nm_interface 22564 22565# Specify filename containing input files for \$NM. 22566nm_file_list_spec=$lt_nm_file_list_spec 22567 22568# The root where to search for dependent libraries,and where our libraries should be installed. 22569lt_sysroot=$lt_sysroot 22570 22571# Command to truncate a binary pipe. 22572lt_truncate_bin=$lt_lt_cv_truncate_bin 22573 22574# The name of the directory that contains temporary libtool files. 22575objdir=$objdir 22576 22577# Used to examine libraries when file_magic_cmd begins with "file". 22578MAGIC_CMD=$MAGIC_CMD 22579 22580# Must we lock files when doing compilation? 22581need_locks=$lt_need_locks 22582 22583# Manifest tool. 22584MANIFEST_TOOL=$lt_MANIFEST_TOOL 22585 22586# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22587DSYMUTIL=$lt_DSYMUTIL 22588 22589# Tool to change global to local symbols on Mac OS X. 22590NMEDIT=$lt_NMEDIT 22591 22592# Tool to manipulate fat objects and archives on Mac OS X. 22593LIPO=$lt_LIPO 22594 22595# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22596OTOOL=$lt_OTOOL 22597 22598# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22599OTOOL64=$lt_OTOOL64 22600 22601# Old archive suffix (normally "a"). 22602libext=$libext 22603 22604# Shared library suffix (normally ".so"). 22605shrext_cmds=$lt_shrext_cmds 22606 22607# The commands to extract the exported symbol list from a shared archive. 22608extract_expsyms_cmds=$lt_extract_expsyms_cmds 22609 22610# Variables whose values should be saved in libtool wrapper scripts and 22611# restored at link time. 22612variables_saved_for_relink=$lt_variables_saved_for_relink 22613 22614# Do we need the "lib" prefix for modules? 22615need_lib_prefix=$need_lib_prefix 22616 22617# Do we need a version for libraries? 22618need_version=$need_version 22619 22620# Library versioning type. 22621version_type=$version_type 22622 22623# Shared library runtime path variable. 22624runpath_var=$runpath_var 22625 22626# Shared library path variable. 22627shlibpath_var=$shlibpath_var 22628 22629# Is shlibpath searched before the hard-coded library search path? 22630shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22631 22632# Format of library name prefix. 22633libname_spec=$lt_libname_spec 22634 22635# List of archive names. First name is the real one, the rest are links. 22636# The last name is the one that the linker finds with -lNAME 22637library_names_spec=$lt_library_names_spec 22638 22639# The coded name of the library, if different from the real name. 22640soname_spec=$lt_soname_spec 22641 22642# Permission mode override for installation of shared libraries. 22643install_override_mode=$lt_install_override_mode 22644 22645# Command to use after installation of a shared archive. 22646postinstall_cmds=$lt_postinstall_cmds 22647 22648# Command to use after uninstallation of a shared archive. 22649postuninstall_cmds=$lt_postuninstall_cmds 22650 22651# Commands used to finish a libtool library installation in a directory. 22652finish_cmds=$lt_finish_cmds 22653 22654# As "finish_cmds", except a single script fragment to be evaled but 22655# not shown. 22656finish_eval=$lt_finish_eval 22657 22658# Whether we should hardcode library paths into libraries. 22659hardcode_into_libs=$hardcode_into_libs 22660 22661# Compile-time system search path for libraries. 22662sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22663 22664# Run-time system search path for libraries. 22665sys_lib_dlsearch_path_spec=$lt_lt_cv_sys_lib_dlsearch_path_spec 22666 22667# Whether dlopen is supported. 22668dlopen_support=$enable_dlopen 22669 22670# Whether dlopen of programs is supported. 22671dlopen_self=$enable_dlopen_self 22672 22673# Whether dlopen of statically linked programs is supported. 22674dlopen_self_static=$enable_dlopen_self_static 22675 22676# Commands to strip libraries. 22677old_striplib=$lt_old_striplib 22678striplib=$lt_striplib 22679 22680 22681# The linker used to build libraries. 22682LD=$lt_LD 22683 22684# How to create reloadable object files. 22685reload_flag=$lt_reload_flag 22686reload_cmds=$lt_reload_cmds 22687 22688# Commands used to build an old-style archive. 22689old_archive_cmds=$lt_old_archive_cmds 22690 22691# A language specific compiler. 22692CC=$lt_compiler 22693 22694# Is the compiler the GNU compiler? 22695with_gcc=$GCC 22696 22697# Compiler flag to turn off builtin functions. 22698no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22699 22700# Additional compiler flags for building library objects. 22701pic_flag=$lt_lt_prog_compiler_pic 22702 22703# How to pass a linker flag through the compiler. 22704wl=$lt_lt_prog_compiler_wl 22705 22706# Compiler flag to prevent dynamic linking. 22707link_static_flag=$lt_lt_prog_compiler_static 22708 22709# Does compiler simultaneously support -c and -o options? 22710compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22711 22712# Whether or not to add -lc for building shared libraries. 22713build_libtool_need_lc=$archive_cmds_need_lc 22714 22715# Whether or not to disallow shared libs when runtime libs are static. 22716allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22717 22718# Compiler flag to allow reflexive dlopens. 22719export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22720 22721# Compiler flag to generate shared objects directly from archives. 22722whole_archive_flag_spec=$lt_whole_archive_flag_spec 22723 22724# Whether the compiler copes with passing no objects directly. 22725compiler_needs_object=$lt_compiler_needs_object 22726 22727# Create an old-style archive from a shared archive. 22728old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22729 22730# Create a temporary old-style archive to link instead of a shared archive. 22731old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22732 22733# Commands used to build a shared archive. 22734archive_cmds=$lt_archive_cmds 22735archive_expsym_cmds=$lt_archive_expsym_cmds 22736 22737# Commands used to build a loadable module if different from building 22738# a shared archive. 22739module_cmds=$lt_module_cmds 22740module_expsym_cmds=$lt_module_expsym_cmds 22741 22742# Whether we are building with GNU ld or not. 22743with_gnu_ld=$lt_with_gnu_ld 22744 22745# Flag that allows shared libraries with undefined symbols to be built. 22746allow_undefined_flag=$lt_allow_undefined_flag 22747 22748# Flag that enforces no undefined symbols. 22749no_undefined_flag=$lt_no_undefined_flag 22750 22751# Flag to hardcode \$libdir into a binary during linking. 22752# This must work even if \$libdir does not exist 22753hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22754 22755# Whether we need a single "-rpath" flag with a separated argument. 22756hardcode_libdir_separator=$lt_hardcode_libdir_separator 22757 22758# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22759# DIR into the resulting binary. 22760hardcode_direct=$hardcode_direct 22761 22762# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22763# DIR into the resulting binary and the resulting library dependency is 22764# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22765# library is relocated. 22766hardcode_direct_absolute=$hardcode_direct_absolute 22767 22768# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22769# into the resulting binary. 22770hardcode_minus_L=$hardcode_minus_L 22771 22772# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22773# into the resulting binary. 22774hardcode_shlibpath_var=$hardcode_shlibpath_var 22775 22776# Set to "yes" if building a shared library automatically hardcodes DIR 22777# into the library and all subsequent libraries and executables linked 22778# against it. 22779hardcode_automatic=$hardcode_automatic 22780 22781# Set to yes if linker adds runtime paths of dependent libraries 22782# to runtime path list. 22783inherit_rpath=$inherit_rpath 22784 22785# Whether libtool must link a program against all its dependency libraries. 22786link_all_deplibs=$link_all_deplibs 22787 22788# Set to "yes" if exported symbols are required. 22789always_export_symbols=$always_export_symbols 22790 22791# The commands to list exported symbols. 22792export_symbols_cmds=$lt_export_symbols_cmds 22793 22794# Symbols that should not be listed in the preloaded symbols. 22795exclude_expsyms=$lt_exclude_expsyms 22796 22797# Symbols that must always be exported. 22798include_expsyms=$lt_include_expsyms 22799 22800# Commands necessary for linking programs (against libraries) with templates. 22801prelink_cmds=$lt_prelink_cmds 22802 22803# Commands necessary for finishing linking programs. 22804postlink_cmds=$lt_postlink_cmds 22805 22806# Specify filename containing input files. 22807file_list_spec=$lt_file_list_spec 22808 22809# How to hardcode a shared library path into an executable. 22810hardcode_action=$hardcode_action 22811 22812# The directories searched by this compiler when creating a shared library. 22813compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 22814 22815# Dependencies to place before and after the objects being linked to 22816# create a shared library. 22817predep_objects=$lt_predep_objects 22818postdep_objects=$lt_postdep_objects 22819predeps=$lt_predeps 22820postdeps=$lt_postdeps 22821 22822# The library search path used internally by the compiler when linking 22823# a shared library. 22824compiler_lib_search_path=$lt_compiler_lib_search_path 22825 22826# ### END LIBTOOL CONFIG 22827 22828_LT_EOF 22829 22830 cat <<'_LT_EOF' >> "$cfgfile" 22831## -------------------------------------- ## 22832## Shell functions shared with configure. ## 22833## -------------------------------------- ## 22834 22835# func_munge_path_list VARIABLE PATH 22836# ----------------------------------- 22837# VARIABLE is name of variable containing _space_ separated list of 22838# directories to be munged by the contents of PATH, which is string 22839# having a format: 22840# "DIR[:DIR]:" 22841# string "DIR[ DIR]" will be prepended to VARIABLE 22842# ":DIR[:DIR]" 22843# string "DIR[ DIR]" will be appended to VARIABLE 22844# "DIRP[:DIRP]::[DIRA:]DIRA" 22845# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22846# "DIRA[ DIRA]" will be appended to VARIABLE 22847# "DIR[:DIR]" 22848# VARIABLE will be replaced by "DIR[ DIR]" 22849func_munge_path_list () 22850{ 22851 case x$2 in 22852 x) 22853 ;; 22854 *:) 22855 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \S|@1\" 22856 ;; 22857 x:*) 22858 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22859 ;; 22860 *::*) 22861 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22862 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22863 ;; 22864 *) 22865 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22866 ;; 22867 esac 22868} 22869 22870 22871# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22872func_cc_basename () 22873{ 22874 for cc_temp in $*""; do 22875 case $cc_temp in 22876 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22877 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22878 \-*) ;; 22879 *) break;; 22880 esac 22881 done 22882 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22883} 22884 22885 22886_LT_EOF 22887 22888 case $host_os in 22889 aix3*) 22890 cat <<\_LT_EOF >> "$cfgfile" 22891# AIX sometimes has problems with the GCC collect2 program. For some 22892# reason, if we set the COLLECT_NAMES environment variable, the problems 22893# vanish in a puff of smoke. 22894if test set != "${COLLECT_NAMES+set}"; then 22895 COLLECT_NAMES= 22896 export COLLECT_NAMES 22897fi 22898_LT_EOF 22899 ;; 22900 esac 22901 22902 22903ltmain=$ac_aux_dir/ltmain.sh 22904 22905 22906 # We use sed instead of cat because bash on DJGPP gets confused if 22907 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22908 # text mode, it properly converts lines to CR/LF. This bash problem 22909 # is reportedly fixed, but why not run on old versions too? 22910 sed '$q' "$ltmain" >> "$cfgfile" \ 22911 || (rm -f "$cfgfile"; exit 1) 22912 22913 mv -f "$cfgfile" "$ofile" || 22914 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22915 chmod +x "$ofile" 22916 22917 22918 cat <<_LT_EOF >> "$ofile" 22919 22920# ### BEGIN LIBTOOL TAG CONFIG: CXX 22921 22922# The linker used to build libraries. 22923LD=$lt_LD_CXX 22924 22925# How to create reloadable object files. 22926reload_flag=$lt_reload_flag_CXX 22927reload_cmds=$lt_reload_cmds_CXX 22928 22929# Commands used to build an old-style archive. 22930old_archive_cmds=$lt_old_archive_cmds_CXX 22931 22932# A language specific compiler. 22933CC=$lt_compiler_CXX 22934 22935# Is the compiler the GNU compiler? 22936with_gcc=$GCC_CXX 22937 22938# Compiler flag to turn off builtin functions. 22939no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 22940 22941# Additional compiler flags for building library objects. 22942pic_flag=$lt_lt_prog_compiler_pic_CXX 22943 22944# How to pass a linker flag through the compiler. 22945wl=$lt_lt_prog_compiler_wl_CXX 22946 22947# Compiler flag to prevent dynamic linking. 22948link_static_flag=$lt_lt_prog_compiler_static_CXX 22949 22950# Does compiler simultaneously support -c and -o options? 22951compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 22952 22953# Whether or not to add -lc for building shared libraries. 22954build_libtool_need_lc=$archive_cmds_need_lc_CXX 22955 22956# Whether or not to disallow shared libs when runtime libs are static. 22957allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 22958 22959# Compiler flag to allow reflexive dlopens. 22960export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 22961 22962# Compiler flag to generate shared objects directly from archives. 22963whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 22964 22965# Whether the compiler copes with passing no objects directly. 22966compiler_needs_object=$lt_compiler_needs_object_CXX 22967 22968# Create an old-style archive from a shared archive. 22969old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 22970 22971# Create a temporary old-style archive to link instead of a shared archive. 22972old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 22973 22974# Commands used to build a shared archive. 22975archive_cmds=$lt_archive_cmds_CXX 22976archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 22977 22978# Commands used to build a loadable module if different from building 22979# a shared archive. 22980module_cmds=$lt_module_cmds_CXX 22981module_expsym_cmds=$lt_module_expsym_cmds_CXX 22982 22983# Whether we are building with GNU ld or not. 22984with_gnu_ld=$lt_with_gnu_ld_CXX 22985 22986# Flag that allows shared libraries with undefined symbols to be built. 22987allow_undefined_flag=$lt_allow_undefined_flag_CXX 22988 22989# Flag that enforces no undefined symbols. 22990no_undefined_flag=$lt_no_undefined_flag_CXX 22991 22992# Flag to hardcode \$libdir into a binary during linking. 22993# This must work even if \$libdir does not exist 22994hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 22995 22996# Whether we need a single "-rpath" flag with a separated argument. 22997hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 22998 22999# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23000# DIR into the resulting binary. 23001hardcode_direct=$hardcode_direct_CXX 23002 23003# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23004# DIR into the resulting binary and the resulting library dependency is 23005# "absolute",i.e impossible to change by setting \$shlibpath_var if the 23006# library is relocated. 23007hardcode_direct_absolute=$hardcode_direct_absolute_CXX 23008 23009# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23010# into the resulting binary. 23011hardcode_minus_L=$hardcode_minus_L_CXX 23012 23013# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23014# into the resulting binary. 23015hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 23016 23017# Set to "yes" if building a shared library automatically hardcodes DIR 23018# into the library and all subsequent libraries and executables linked 23019# against it. 23020hardcode_automatic=$hardcode_automatic_CXX 23021 23022# Set to yes if linker adds runtime paths of dependent libraries 23023# to runtime path list. 23024inherit_rpath=$inherit_rpath_CXX 23025 23026# Whether libtool must link a program against all its dependency libraries. 23027link_all_deplibs=$link_all_deplibs_CXX 23028 23029# Set to "yes" if exported symbols are required. 23030always_export_symbols=$always_export_symbols_CXX 23031 23032# The commands to list exported symbols. 23033export_symbols_cmds=$lt_export_symbols_cmds_CXX 23034 23035# Symbols that should not be listed in the preloaded symbols. 23036exclude_expsyms=$lt_exclude_expsyms_CXX 23037 23038# Symbols that must always be exported. 23039include_expsyms=$lt_include_expsyms_CXX 23040 23041# Commands necessary for linking programs (against libraries) with templates. 23042prelink_cmds=$lt_prelink_cmds_CXX 23043 23044# Commands necessary for finishing linking programs. 23045postlink_cmds=$lt_postlink_cmds_CXX 23046 23047# Specify filename containing input files. 23048file_list_spec=$lt_file_list_spec_CXX 23049 23050# How to hardcode a shared library path into an executable. 23051hardcode_action=$hardcode_action_CXX 23052 23053# The directories searched by this compiler when creating a shared library. 23054compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 23055 23056# Dependencies to place before and after the objects being linked to 23057# create a shared library. 23058predep_objects=$lt_predep_objects_CXX 23059postdep_objects=$lt_postdep_objects_CXX 23060predeps=$lt_predeps_CXX 23061postdeps=$lt_postdeps_CXX 23062 23063# The library search path used internally by the compiler when linking 23064# a shared library. 23065compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 23066 23067# ### END LIBTOOL TAG CONFIG: CXX 23068_LT_EOF 23069 23070 ;; 23071 23072 esac 23073done # for ac_tag 23074 23075 23076as_fn_exit 0 23077_ACEOF 23078ac_clean_files=$ac_clean_files_save 23079 23080test $ac_write_fail = 0 || 23081 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 23082 23083 23084# configure is writing to config.log, and then calls config.status. 23085# config.status does its own redirection, appending to config.log. 23086# Unfortunately, on DOS this fails, as config.log is still kept open 23087# by configure, so config.status won't be able to write to it; its 23088# output is simply discarded. So we exec the FD to /dev/null, 23089# effectively closing config.log, so it can be properly (re)opened and 23090# appended to by config.status. When coming back to configure, we 23091# need to make the FD available again. 23092if test "$no_create" != yes; then 23093 ac_cs_success=: 23094 ac_config_status_args= 23095 test "$silent" = yes && 23096 ac_config_status_args="$ac_config_status_args --quiet" 23097 exec 5>/dev/null 23098 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23099 exec 5>>config.log 23100 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23101 # would make configure fail if this is the last instruction. 23102 $ac_cs_success || as_fn_exit 1 23103fi 23104if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23106$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23107fi 23108 23109 23110 23111echo "" 23112echo "Libtiff is now configured for ${host}" 23113echo "" 23114echo " Installation directory: ${prefix}" 23115echo " Documentation directory: ${LIBTIFF_DOCDIR}" 23116echo " C compiler: ${CC} ${CFLAGS}" 23117echo " C++ compiler: ${CXX} ${CXXFLAGS}" 23118echo " Enable runtime linker paths: ${HAVE_RPATH}" 23119echo " Enable linker symbol versioning: ${have_ld_version_script}" 23120echo " Support Microsoft Document Imaging: ${HAVE_MDI}" 23121echo " Use win32 IO: ${win32_io_ok}" 23122echo "" 23123echo " Support for internal codecs:" 23124echo " CCITT Group 3 & 4 algorithms: ${HAVE_CCITT}" 23125echo " Macintosh PackBits algorithm: ${HAVE_PACKBITS}" 23126echo " LZW algorithm: ${HAVE_LZW}" 23127echo " ThunderScan 4-bit RLE algorithm: ${HAVE_THUNDER}" 23128echo " NeXT 2-bit RLE algorithm: ${HAVE_NEXT}" 23129echo " LogLuv high dynamic range encoding: ${HAVE_LOGLUV}" 23130echo "" 23131echo " Support for external codecs:" 23132echo " ZLIB support: ${HAVE_ZLIB}" 23133echo " Pixar log-format algorithm: ${HAVE_PIXARLOG}" 23134echo " JPEG support: ${HAVE_JPEG}" 23135echo " Old JPEG support: ${HAVE_OJPEG}" 23136echo " JPEG 8/12 bit dual mode: ${HAVE_JPEG12}" 23137echo " ISO JBIG support: ${HAVE_JBIG}" 23138echo " LZMA2 support: ${HAVE_LZMA}" 23139echo "" 23140echo " C++ support: ${HAVE_CXX}" 23141echo "" 23142echo " OpenGL support: ${HAVE_OPENGL}" 23143echo "" 23144 23145