1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for LibTIFF Software 4.0.0beta7. 4# 5# Report bugs to <[email protected]>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177 178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 PATH=/empty FPATH=/empty; export PATH FPATH 183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 185test \$(( 1 + 1 )) = 2 || exit 1" 186 if (eval "$as_required") 2>/dev/null; then : 187 as_have_required=yes 188else 189 as_have_required=no 190fi 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 192 193else 194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195as_found=false 196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197do 198 IFS=$as_save_IFS 199 test -z "$as_dir" && as_dir=. 200 as_found=: 201 case $as_dir in #( 202 /*) 203 for as_base in sh bash ksh sh5; do 204 # Try only shells that exist, to save several forks. 205 as_shell=$as_dir/$as_base 206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 208 CONFIG_SHELL=$as_shell as_have_required=yes 209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 210 break 2 211fi 212fi 213 done;; 214 esac 215 as_found=false 216done 217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 219 CONFIG_SHELL=$SHELL as_have_required=yes 220fi; } 221IFS=$as_save_IFS 222 223 224 if test "x$CONFIG_SHELL" != x; then : 225 # We cannot yet assume a decent shell, so we have to provide a 226 # neutralization value for shells without unset; and this also 227 # works around shells that cannot unset nonexistent variables. 228 # Preserve -v and -x to the replacement shell. 229 BASH_ENV=/dev/null 230 ENV=/dev/null 231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 232 export CONFIG_SHELL 233 case $- in # (((( 234 *v*x* | *x*v* ) as_opts=-vx ;; 235 *v* ) as_opts=-v ;; 236 *x* ) as_opts=-x ;; 237 * ) as_opts= ;; 238 esac 239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 240fi 241 242 if test x$as_have_required = xno; then : 243 $as_echo "$0: This script requires a shell more modern than all" 244 $as_echo "$0: the shells that I found on your system." 245 if test x${ZSH_VERSION+set} = xset ; then 246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 247 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 248 else 249 $as_echo "$0: Please tell [email protected] and 250$0: [email protected] about your system, including 251$0: any error possibly output before this message. Then 252$0: install a modern shell, or manually run the script 253$0: under such a shell if you do have one." 254 fi 255 exit 1 256fi 257fi 258fi 259SHELL=${CONFIG_SHELL-/bin/sh} 260export SHELL 261# Unset more variables known to interfere with behavior of common tools. 262CLICOLOR_FORCE= GREP_OPTIONS= 263unset CLICOLOR_FORCE GREP_OPTIONS 264 265## --------------------- ## 266## M4sh Shell Functions. ## 267## --------------------- ## 268# as_fn_unset VAR 269# --------------- 270# Portably unset VAR. 271as_fn_unset () 272{ 273 { eval $1=; unset $1;} 274} 275as_unset=as_fn_unset 276 277# as_fn_set_status STATUS 278# ----------------------- 279# Set $? to STATUS, without forking. 280as_fn_set_status () 281{ 282 return $1 283} # as_fn_set_status 284 285# as_fn_exit STATUS 286# ----------------- 287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 288as_fn_exit () 289{ 290 set +e 291 as_fn_set_status $1 292 exit $1 293} # as_fn_exit 294 295# as_fn_mkdir_p 296# ------------- 297# Create "$as_dir" as a directory, including parents if necessary. 298as_fn_mkdir_p () 299{ 300 301 case $as_dir in #( 302 -*) as_dir=./$as_dir;; 303 esac 304 test -d "$as_dir" || eval $as_mkdir_p || { 305 as_dirs= 306 while :; do 307 case $as_dir in #( 308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 309 *) as_qdir=$as_dir;; 310 esac 311 as_dirs="'$as_qdir' $as_dirs" 312 as_dir=`$as_dirname -- "$as_dir" || 313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 314 X"$as_dir" : 'X\(//\)[^/]' \| \ 315 X"$as_dir" : 'X\(//\)$' \| \ 316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 317$as_echo X"$as_dir" | 318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 319 s//\1/ 320 q 321 } 322 /^X\(\/\/\)[^/].*/{ 323 s//\1/ 324 q 325 } 326 /^X\(\/\/\)$/{ 327 s//\1/ 328 q 329 } 330 /^X\(\/\).*/{ 331 s//\1/ 332 q 333 } 334 s/.*/./; q'` 335 test -d "$as_dir" && break 336 done 337 test -z "$as_dirs" || eval "mkdir $as_dirs" 338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 339 340 341} # as_fn_mkdir_p 342# as_fn_append VAR VALUE 343# ---------------------- 344# Append the text in VALUE to the end of the definition contained in VAR. Take 345# advantage of any shell optimizations that allow amortized linear growth over 346# repeated appends, instead of the typical quadratic growth present in naive 347# implementations. 348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 349 eval 'as_fn_append () 350 { 351 eval $1+=\$2 352 }' 353else 354 as_fn_append () 355 { 356 eval $1=\$$1\$2 357 } 358fi # as_fn_append 359 360# as_fn_arith ARG... 361# ------------------ 362# Perform arithmetic evaluation on the ARGs, and store the result in the 363# global $as_val. Take advantage of shells that can avoid forks. The arguments 364# must be portable across $(()) and expr. 365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 366 eval 'as_fn_arith () 367 { 368 as_val=$(( $* )) 369 }' 370else 371 as_fn_arith () 372 { 373 as_val=`expr "$@" || test $? -eq 1` 374 } 375fi # as_fn_arith 376 377 378# as_fn_error STATUS ERROR [LINENO LOG_FD] 379# ---------------------------------------- 380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 382# script with STATUS, using 1 if that was 0. 383as_fn_error () 384{ 385 as_status=$1; test $as_status -eq 0 && as_status=1 386 if test "$4"; then 387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 389 fi 390 $as_echo "$as_me: error: $2" >&2 391 as_fn_exit $as_status 392} # as_fn_error 393 394if expr a : '\(a\)' >/dev/null 2>&1 && 395 test "X`expr 00001 : '.*\(...\)'`" = X001; then 396 as_expr=expr 397else 398 as_expr=false 399fi 400 401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 402 as_basename=basename 403else 404 as_basename=false 405fi 406 407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 408 as_dirname=dirname 409else 410 as_dirname=false 411fi 412 413as_me=`$as_basename -- "$0" || 414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 415 X"$0" : 'X\(//\)$' \| \ 416 X"$0" : 'X\(/\)' \| . 2>/dev/null || 417$as_echo X/"$0" | 418 sed '/^.*\/\([^/][^/]*\)\/*$/{ 419 s//\1/ 420 q 421 } 422 /^X\/\(\/\/\)$/{ 423 s//\1/ 424 q 425 } 426 /^X\/\(\/\).*/{ 427 s//\1/ 428 q 429 } 430 s/.*/./; q'` 431 432# Avoid depending upon Character Ranges. 433as_cr_letters='abcdefghijklmnopqrstuvwxyz' 434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 435as_cr_Letters=$as_cr_letters$as_cr_LETTERS 436as_cr_digits='0123456789' 437as_cr_alnum=$as_cr_Letters$as_cr_digits 438 439 440 as_lineno_1=$LINENO as_lineno_1a=$LINENO 441 as_lineno_2=$LINENO as_lineno_2a=$LINENO 442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 445 sed -n ' 446 p 447 /[$]LINENO/= 448 ' <$as_myself | 449 sed ' 450 s/[$]LINENO.*/&-/ 451 t lineno 452 b 453 :lineno 454 N 455 :loop 456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 457 t loop 458 s/-\n.*// 459 ' >$as_me.lineno && 460 chmod +x "$as_me.lineno" || 461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 462 463 # Don't try to exec as it changes $[0], causing all sort of problems 464 # (the dirname of $[0] is not the place where we might find the 465 # original and so on. Autoconf is especially sensitive to this). 466 . "./$as_me.lineno" 467 # Exit status is that of the last command. 468 exit 469} 470 471ECHO_C= ECHO_N= ECHO_T= 472case `echo -n x` in #((((( 473-n*) 474 case `echo 'xy\c'` in 475 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 476 xy) ECHO_C='\c';; 477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 478 ECHO_T=' ';; 479 esac;; 480*) 481 ECHO_N='-n';; 482esac 483 484rm -f conf$$ conf$$.exe conf$$.file 485if test -d conf$$.dir; then 486 rm -f conf$$.dir/conf$$.file 487else 488 rm -f conf$$.dir 489 mkdir conf$$.dir 2>/dev/null 490fi 491if (echo >conf$$.file) 2>/dev/null; then 492 if ln -s conf$$.file conf$$ 2>/dev/null; then 493 as_ln_s='ln -s' 494 # ... but there are two gotchas: 495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 497 # In both cases, we have to default to `cp -p'. 498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 499 as_ln_s='cp -p' 500 elif ln conf$$.file conf$$ 2>/dev/null; then 501 as_ln_s=ln 502 else 503 as_ln_s='cp -p' 504 fi 505else 506 as_ln_s='cp -p' 507fi 508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 509rmdir conf$$.dir 2>/dev/null 510 511if mkdir -p . 2>/dev/null; then 512 as_mkdir_p='mkdir -p "$as_dir"' 513else 514 test -d ./-p && rmdir ./-p 515 as_mkdir_p=false 516fi 517 518if test -x / >/dev/null 2>&1; then 519 as_test_x='test -x' 520else 521 if ls -dL / >/dev/null 2>&1; then 522 as_ls_L_option=L 523 else 524 as_ls_L_option= 525 fi 526 as_test_x=' 527 eval sh -c '\'' 528 if test -d "$1"; then 529 test -d "$1/."; 530 else 531 case $1 in #( 532 -*)set "./$1";; 533 esac; 534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 535 ???[sx]*):;;*)false;;esac;fi 536 '\'' sh 537 ' 538fi 539as_executable_p=$as_test_x 540 541# Sed expression to map a string onto a valid CPP name. 542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 543 544# Sed expression to map a string onto a valid variable name. 545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 546 547SHELL=${CONFIG_SHELL-/bin/sh} 548 549 550test -n "$DJDIR" || exec 7<&0 </dev/null 551exec 6>&1 552 553# Name of the host. 554# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 555# so uname gets run too. 556ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 557 558# 559# Initializations. 560# 561ac_default_prefix=/usr/local 562ac_clean_files= 563ac_config_libobj_dir=. 564LIBOBJS= 565cross_compiling=no 566subdirs= 567MFLAGS= 568MAKEFLAGS= 569 570# Identity of this package. 571PACKAGE_NAME='LibTIFF Software' 572PACKAGE_TARNAME='tiff' 573PACKAGE_VERSION='4.0.0beta7' 574PACKAGE_STRING='LibTIFF Software 4.0.0beta7' 575PACKAGE_BUGREPORT='[email protected]' 576PACKAGE_URL='' 577 578# Factoring default headers for most tests. 579ac_includes_default="\ 580#include <stdio.h> 581#ifdef HAVE_SYS_TYPES_H 582# include <sys/types.h> 583#endif 584#ifdef HAVE_SYS_STAT_H 585# include <sys/stat.h> 586#endif 587#ifdef STDC_HEADERS 588# include <stdlib.h> 589# include <stddef.h> 590#else 591# ifdef HAVE_STDLIB_H 592# include <stdlib.h> 593# endif 594#endif 595#ifdef HAVE_STRING_H 596# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 597# include <memory.h> 598# endif 599# include <string.h> 600#endif 601#ifdef HAVE_STRINGS_H 602# include <strings.h> 603#endif 604#ifdef HAVE_INTTYPES_H 605# include <inttypes.h> 606#endif 607#ifdef HAVE_STDINT_H 608# include <stdint.h> 609#endif 610#ifdef HAVE_UNISTD_H 611# include <unistd.h> 612#endif" 613 614ac_subst_vars='am__EXEEXT_FALSE 615am__EXEEXT_TRUE 616LTLIBOBJS 617LIBDIR 618WIN32_IO_FALSE 619WIN32_IO_TRUE 620HAVE_OPENGL_FALSE 621HAVE_OPENGL_TRUE 622GLUT_LIBS 623GLUT_CFLAGS 624GLU_LIBS 625GLU_CFLAGS 626GL_LIBS 627GL_CFLAGS 628PTHREAD_CFLAGS 629PTHREAD_LIBS 630PTHREAD_CC 631ax_pthread_config 632X_EXTRA_LIBS 633X_LIBS 634X_PRE_LIBS 635X_CFLAGS 636XMKMF 637HAVE_CXX_FALSE 638HAVE_CXX_TRUE 639LIBTIFF_DOCDIR 640HAVE_RPATH_FALSE 641HAVE_RPATH_TRUE 642LIBOBJS 643tiff_libs_private 644AM_BACKSLASH 645AM_DEFAULT_VERBOSITY 646CXXCPP 647am__fastdepCXX_FALSE 648am__fastdepCXX_TRUE 649CXXDEPMODE 650ac_ct_CXX 651CXXFLAGS 652CXX 653CPP 654OTOOL64 655OTOOL 656LIPO 657NMEDIT 658DSYMUTIL 659MANIFEST_TOOL 660RANLIB 661ac_ct_AR 662AR 663NM 664ac_ct_DUMPBIN 665DUMPBIN 666LD 667FGREP 668EGREP 669GREP 670SED 671LIBTOOL 672OBJDUMP 673DLLTOOL 674AS 675LN_S 676am__fastdepCC_FALSE 677am__fastdepCC_TRUE 678CCDEPMODE 679AMDEPBACKSLASH 680AMDEP_FALSE 681AMDEP_TRUE 682am__quote 683am__include 684DEPDIR 685OBJEXT 686EXEEXT 687ac_ct_CC 688CPPFLAGS 689LDFLAGS 690CFLAGS 691CC 692LIBTIFF_RELEASE_DATE 693LIBTIFF_VERSION_INFO 694LIBTIFF_VERSION 695LIBTIFF_ALPHA_VERSION 696LIBTIFF_MICRO_VERSION 697LIBTIFF_MINOR_VERSION 698LIBTIFF_MAJOR_VERSION 699MAINT 700MAINTAINER_MODE_FALSE 701MAINTAINER_MODE_TRUE 702am__untar 703am__tar 704AMTAR 705am__leading_dot 706SET_MAKE 707AWK 708mkdir_p 709MKDIR_P 710INSTALL_STRIP_PROGRAM 711STRIP 712install_sh 713MAKEINFO 714AUTOHEADER 715AUTOMAKE 716AUTOCONF 717ACLOCAL 718VERSION 719PACKAGE 720CYGPATH_W 721am__isrc 722INSTALL_DATA 723INSTALL_SCRIPT 724INSTALL_PROGRAM 725host_os 726host_vendor 727host_cpu 728host 729build_os 730build_vendor 731build_cpu 732build 733target_alias 734host_alias 735build_alias 736LIBS 737ECHO_T 738ECHO_N 739ECHO_C 740DEFS 741mandir 742localedir 743libdir 744psdir 745pdfdir 746dvidir 747htmldir 748infodir 749docdir 750oldincludedir 751includedir 752localstatedir 753sharedstatedir 754sysconfdir 755datadir 756datarootdir 757libexecdir 758sbindir 759bindir 760program_transform_name 761prefix 762exec_prefix 763PACKAGE_URL 764PACKAGE_BUGREPORT 765PACKAGE_STRING 766PACKAGE_VERSION 767PACKAGE_TARNAME 768PACKAGE_NAME 769PATH_SEPARATOR 770SHELL' 771ac_subst_files='' 772ac_user_opts=' 773enable_option_checking 774enable_maintainer_mode 775enable_dependency_tracking 776enable_shared 777enable_static 778with_pic 779enable_fast_install 780with_gnu_ld 781with_sysroot 782enable_libtool_lock 783enable_silent_rules 784enable_rpath 785enable_largefile 786with_docdir 787enable_ccitt 788enable_packbits 789enable_lzw 790enable_thunder 791enable_next 792enable_logluv 793enable_mdi 794enable_zlib 795with_zlib_include_dir 796with_zlib_lib_dir 797enable_pixarlog 798enable_jpeg 799with_jpeg_include_dir 800with_jpeg_lib_dir 801enable_old_jpeg 802enable_jbig 803with_jbig_include_dir 804with_jbig_lib_dir 805enable_lzma 806with_lzma_include_dir 807with_lzma_lib_dir 808enable_jpeg12 809with_jpeg12_include_dir 810with_jpeg12_lib 811enable_cxx 812with_x 813enable_strip_chopping 814with_default_strip_size 815enable_defer_strile_load 816enable_chunky_strip_read 817enable_extrasample_as_alpha 818enable_check_ycbcr_subsampling 819' 820 ac_precious_vars='build_alias 821host_alias 822target_alias 823CC 824CFLAGS 825LDFLAGS 826LIBS 827CPPFLAGS 828CPP 829CXX 830CXXFLAGS 831CCC 832CXXCPP 833XMKMF' 834 835 836# Initialize some variables set by options. 837ac_init_help= 838ac_init_version=false 839ac_unrecognized_opts= 840ac_unrecognized_sep= 841# The variables have the same names as the options, with 842# dashes changed to underlines. 843cache_file=/dev/null 844exec_prefix=NONE 845no_create= 846no_recursion= 847prefix=NONE 848program_prefix=NONE 849program_suffix=NONE 850program_transform_name=s,x,x, 851silent= 852site= 853srcdir= 854verbose= 855x_includes=NONE 856x_libraries=NONE 857 858# Installation directory options. 859# These are left unexpanded so users can "make install exec_prefix=/foo" 860# and all the variables that are supposed to be based on exec_prefix 861# by default will actually change. 862# Use braces instead of parens because sh, perl, etc. also accept them. 863# (The list follows the same order as the GNU Coding Standards.) 864bindir='${exec_prefix}/bin' 865sbindir='${exec_prefix}/sbin' 866libexecdir='${exec_prefix}/libexec' 867datarootdir='${prefix}/share' 868datadir='${datarootdir}' 869sysconfdir='${prefix}/etc' 870sharedstatedir='${prefix}/com' 871localstatedir='${prefix}/var' 872includedir='${prefix}/include' 873oldincludedir='/usr/include' 874docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 875infodir='${datarootdir}/info' 876htmldir='${docdir}' 877dvidir='${docdir}' 878pdfdir='${docdir}' 879psdir='${docdir}' 880libdir='${exec_prefix}/lib' 881localedir='${datarootdir}/locale' 882mandir='${datarootdir}/man' 883 884ac_prev= 885ac_dashdash= 886for ac_option 887do 888 # If the previous option needs an argument, assign it. 889 if test -n "$ac_prev"; then 890 eval $ac_prev=\$ac_option 891 ac_prev= 892 continue 893 fi 894 895 case $ac_option in 896 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 897 *=) ac_optarg= ;; 898 *) ac_optarg=yes ;; 899 esac 900 901 # Accept the important Cygnus configure options, so we can diagnose typos. 902 903 case $ac_dashdash$ac_option in 904 --) 905 ac_dashdash=yes ;; 906 907 -bindir | --bindir | --bindi | --bind | --bin | --bi) 908 ac_prev=bindir ;; 909 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 910 bindir=$ac_optarg ;; 911 912 -build | --build | --buil | --bui | --bu) 913 ac_prev=build_alias ;; 914 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 915 build_alias=$ac_optarg ;; 916 917 -cache-file | --cache-file | --cache-fil | --cache-fi \ 918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 919 ac_prev=cache_file ;; 920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 922 cache_file=$ac_optarg ;; 923 924 --config-cache | -C) 925 cache_file=config.cache ;; 926 927 -datadir | --datadir | --datadi | --datad) 928 ac_prev=datadir ;; 929 -datadir=* | --datadir=* | --datadi=* | --datad=*) 930 datadir=$ac_optarg ;; 931 932 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 933 | --dataroo | --dataro | --datar) 934 ac_prev=datarootdir ;; 935 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 936 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 937 datarootdir=$ac_optarg ;; 938 939 -disable-* | --disable-*) 940 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 941 # Reject names that are not valid shell variable names. 942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 943 as_fn_error $? "invalid feature name: $ac_useropt" 944 ac_useropt_orig=$ac_useropt 945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 946 case $ac_user_opts in 947 *" 948"enable_$ac_useropt" 949"*) ;; 950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 951 ac_unrecognized_sep=', ';; 952 esac 953 eval enable_$ac_useropt=no ;; 954 955 -docdir | --docdir | --docdi | --doc | --do) 956 ac_prev=docdir ;; 957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 958 docdir=$ac_optarg ;; 959 960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 961 ac_prev=dvidir ;; 962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 963 dvidir=$ac_optarg ;; 964 965 -enable-* | --enable-*) 966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 967 # Reject names that are not valid shell variable names. 968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 969 as_fn_error $? "invalid feature name: $ac_useropt" 970 ac_useropt_orig=$ac_useropt 971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 972 case $ac_user_opts in 973 *" 974"enable_$ac_useropt" 975"*) ;; 976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 977 ac_unrecognized_sep=', ';; 978 esac 979 eval enable_$ac_useropt=\$ac_optarg ;; 980 981 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 982 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 983 | --exec | --exe | --ex) 984 ac_prev=exec_prefix ;; 985 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 986 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 987 | --exec=* | --exe=* | --ex=*) 988 exec_prefix=$ac_optarg ;; 989 990 -gas | --gas | --ga | --g) 991 # Obsolete; use --with-gas. 992 with_gas=yes ;; 993 994 -help | --help | --hel | --he | -h) 995 ac_init_help=long ;; 996 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 997 ac_init_help=recursive ;; 998 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 999 ac_init_help=short ;; 1000 1001 -host | --host | --hos | --ho) 1002 ac_prev=host_alias ;; 1003 -host=* | --host=* | --hos=* | --ho=*) 1004 host_alias=$ac_optarg ;; 1005 1006 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1007 ac_prev=htmldir ;; 1008 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1009 | --ht=*) 1010 htmldir=$ac_optarg ;; 1011 1012 -includedir | --includedir | --includedi | --included | --include \ 1013 | --includ | --inclu | --incl | --inc) 1014 ac_prev=includedir ;; 1015 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1016 | --includ=* | --inclu=* | --incl=* | --inc=*) 1017 includedir=$ac_optarg ;; 1018 1019 -infodir | --infodir | --infodi | --infod | --info | --inf) 1020 ac_prev=infodir ;; 1021 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1022 infodir=$ac_optarg ;; 1023 1024 -libdir | --libdir | --libdi | --libd) 1025 ac_prev=libdir ;; 1026 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1027 libdir=$ac_optarg ;; 1028 1029 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1030 | --libexe | --libex | --libe) 1031 ac_prev=libexecdir ;; 1032 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1033 | --libexe=* | --libex=* | --libe=*) 1034 libexecdir=$ac_optarg ;; 1035 1036 -localedir | --localedir | --localedi | --localed | --locale) 1037 ac_prev=localedir ;; 1038 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1039 localedir=$ac_optarg ;; 1040 1041 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1042 | --localstate | --localstat | --localsta | --localst | --locals) 1043 ac_prev=localstatedir ;; 1044 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1045 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1046 localstatedir=$ac_optarg ;; 1047 1048 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1049 ac_prev=mandir ;; 1050 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1051 mandir=$ac_optarg ;; 1052 1053 -nfp | --nfp | --nf) 1054 # Obsolete; use --without-fp. 1055 with_fp=no ;; 1056 1057 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1058 | --no-cr | --no-c | -n) 1059 no_create=yes ;; 1060 1061 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1062 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1063 no_recursion=yes ;; 1064 1065 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1066 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1067 | --oldin | --oldi | --old | --ol | --o) 1068 ac_prev=oldincludedir ;; 1069 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1070 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1071 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1072 oldincludedir=$ac_optarg ;; 1073 1074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1075 ac_prev=prefix ;; 1076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1077 prefix=$ac_optarg ;; 1078 1079 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1080 | --program-pre | --program-pr | --program-p) 1081 ac_prev=program_prefix ;; 1082 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1083 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1084 program_prefix=$ac_optarg ;; 1085 1086 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1087 | --program-suf | --program-su | --program-s) 1088 ac_prev=program_suffix ;; 1089 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1090 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1091 program_suffix=$ac_optarg ;; 1092 1093 -program-transform-name | --program-transform-name \ 1094 | --program-transform-nam | --program-transform-na \ 1095 | --program-transform-n | --program-transform- \ 1096 | --program-transform | --program-transfor \ 1097 | --program-transfo | --program-transf \ 1098 | --program-trans | --program-tran \ 1099 | --progr-tra | --program-tr | --program-t) 1100 ac_prev=program_transform_name ;; 1101 -program-transform-name=* | --program-transform-name=* \ 1102 | --program-transform-nam=* | --program-transform-na=* \ 1103 | --program-transform-n=* | --program-transform-=* \ 1104 | --program-transform=* | --program-transfor=* \ 1105 | --program-transfo=* | --program-transf=* \ 1106 | --program-trans=* | --program-tran=* \ 1107 | --progr-tra=* | --program-tr=* | --program-t=*) 1108 program_transform_name=$ac_optarg ;; 1109 1110 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1111 ac_prev=pdfdir ;; 1112 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1113 pdfdir=$ac_optarg ;; 1114 1115 -psdir | --psdir | --psdi | --psd | --ps) 1116 ac_prev=psdir ;; 1117 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1118 psdir=$ac_optarg ;; 1119 1120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1121 | -silent | --silent | --silen | --sile | --sil) 1122 silent=yes ;; 1123 1124 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1125 ac_prev=sbindir ;; 1126 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1127 | --sbi=* | --sb=*) 1128 sbindir=$ac_optarg ;; 1129 1130 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1131 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1132 | --sharedst | --shareds | --shared | --share | --shar \ 1133 | --sha | --sh) 1134 ac_prev=sharedstatedir ;; 1135 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1136 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1137 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1138 | --sha=* | --sh=*) 1139 sharedstatedir=$ac_optarg ;; 1140 1141 -site | --site | --sit) 1142 ac_prev=site ;; 1143 -site=* | --site=* | --sit=*) 1144 site=$ac_optarg ;; 1145 1146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1147 ac_prev=srcdir ;; 1148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1149 srcdir=$ac_optarg ;; 1150 1151 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1152 | --syscon | --sysco | --sysc | --sys | --sy) 1153 ac_prev=sysconfdir ;; 1154 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1155 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1156 sysconfdir=$ac_optarg ;; 1157 1158 -target | --target | --targe | --targ | --tar | --ta | --t) 1159 ac_prev=target_alias ;; 1160 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1161 target_alias=$ac_optarg ;; 1162 1163 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1164 verbose=yes ;; 1165 1166 -version | --version | --versio | --versi | --vers | -V) 1167 ac_init_version=: ;; 1168 1169 -with-* | --with-*) 1170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1171 # Reject names that are not valid shell variable names. 1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1173 as_fn_error $? "invalid package name: $ac_useropt" 1174 ac_useropt_orig=$ac_useropt 1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1176 case $ac_user_opts in 1177 *" 1178"with_$ac_useropt" 1179"*) ;; 1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1181 ac_unrecognized_sep=', ';; 1182 esac 1183 eval with_$ac_useropt=\$ac_optarg ;; 1184 1185 -without-* | --without-*) 1186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1187 # Reject names that are not valid shell variable names. 1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1189 as_fn_error $? "invalid package name: $ac_useropt" 1190 ac_useropt_orig=$ac_useropt 1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1192 case $ac_user_opts in 1193 *" 1194"with_$ac_useropt" 1195"*) ;; 1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1197 ac_unrecognized_sep=', ';; 1198 esac 1199 eval with_$ac_useropt=no ;; 1200 1201 --x) 1202 # Obsolete; use --with-x. 1203 with_x=yes ;; 1204 1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1206 | --x-incl | --x-inc | --x-in | --x-i) 1207 ac_prev=x_includes ;; 1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1210 x_includes=$ac_optarg ;; 1211 1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1214 ac_prev=x_libraries ;; 1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1217 x_libraries=$ac_optarg ;; 1218 1219 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1220Try \`$0 --help' for more information" 1221 ;; 1222 1223 *=*) 1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1225 # Reject names that are not valid shell variable names. 1226 case $ac_envvar in #( 1227 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1228 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1229 esac 1230 eval $ac_envvar=\$ac_optarg 1231 export $ac_envvar ;; 1232 1233 *) 1234 # FIXME: should be removed in autoconf 3.0. 1235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1238 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1239 ;; 1240 1241 esac 1242done 1243 1244if test -n "$ac_prev"; then 1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1246 as_fn_error $? "missing argument to $ac_option" 1247fi 1248 1249if test -n "$ac_unrecognized_opts"; then 1250 case $enable_option_checking in 1251 no) ;; 1252 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1253 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1254 esac 1255fi 1256 1257# Check all directory arguments for consistency. 1258for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1259 datadir sysconfdir sharedstatedir localstatedir includedir \ 1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1261 libdir localedir mandir 1262do 1263 eval ac_val=\$$ac_var 1264 # Remove trailing slashes. 1265 case $ac_val in 1266 */ ) 1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1268 eval $ac_var=\$ac_val;; 1269 esac 1270 # Be sure to have absolute directory names. 1271 case $ac_val in 1272 [\\/$]* | ?:[\\/]* ) continue;; 1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1274 esac 1275 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1276done 1277 1278# There might be people who depend on the old broken behavior: `$host' 1279# used to hold the argument of --host etc. 1280# FIXME: To remove some day. 1281build=$build_alias 1282host=$host_alias 1283target=$target_alias 1284 1285# FIXME: To remove some day. 1286if test "x$host_alias" != x; then 1287 if test "x$build_alias" = x; then 1288 cross_compiling=maybe 1289 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1290 If a cross compiler is detected then cross compile mode will be used" >&2 1291 elif test "x$build_alias" != "x$host_alias"; then 1292 cross_compiling=yes 1293 fi 1294fi 1295 1296ac_tool_prefix= 1297test -n "$host_alias" && ac_tool_prefix=$host_alias- 1298 1299test "$silent" = yes && exec 6>/dev/null 1300 1301 1302ac_pwd=`pwd` && test -n "$ac_pwd" && 1303ac_ls_di=`ls -di .` && 1304ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1305 as_fn_error $? "working directory cannot be determined" 1306test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1307 as_fn_error $? "pwd does not report name of working directory" 1308 1309 1310# Find the source files, if location was not specified. 1311if test -z "$srcdir"; then 1312 ac_srcdir_defaulted=yes 1313 # Try the directory containing this script, then the parent directory. 1314 ac_confdir=`$as_dirname -- "$as_myself" || 1315$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1316 X"$as_myself" : 'X\(//\)[^/]' \| \ 1317 X"$as_myself" : 'X\(//\)$' \| \ 1318 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1319$as_echo X"$as_myself" | 1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1321 s//\1/ 1322 q 1323 } 1324 /^X\(\/\/\)[^/].*/{ 1325 s//\1/ 1326 q 1327 } 1328 /^X\(\/\/\)$/{ 1329 s//\1/ 1330 q 1331 } 1332 /^X\(\/\).*/{ 1333 s//\1/ 1334 q 1335 } 1336 s/.*/./; q'` 1337 srcdir=$ac_confdir 1338 if test ! -r "$srcdir/$ac_unique_file"; then 1339 srcdir=.. 1340 fi 1341else 1342 ac_srcdir_defaulted=no 1343fi 1344if test ! -r "$srcdir/$ac_unique_file"; then 1345 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1346 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1347fi 1348ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1349ac_abs_confdir=`( 1350 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1351 pwd)` 1352# When building in place, set srcdir=. 1353if test "$ac_abs_confdir" = "$ac_pwd"; then 1354 srcdir=. 1355fi 1356# Remove unnecessary trailing slashes from srcdir. 1357# Double slashes in file names in object file debugging info 1358# mess up M-x gdb in Emacs. 1359case $srcdir in 1360*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1361esac 1362for ac_var in $ac_precious_vars; do 1363 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1364 eval ac_env_${ac_var}_value=\$${ac_var} 1365 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1366 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1367done 1368 1369# 1370# Report the --help message. 1371# 1372if test "$ac_init_help" = "long"; then 1373 # Omit some internal or obsolete options to make the list less imposing. 1374 # This message is too long to be a string in the A/UX 3.1 sh. 1375 cat <<_ACEOF 1376\`configure' configures LibTIFF Software 4.0.0beta7 to adapt to many kinds of systems. 1377 1378Usage: $0 [OPTION]... [VAR=VALUE]... 1379 1380To assign environment variables (e.g., CC, CFLAGS...), specify them as 1381VAR=VALUE. See below for descriptions of some of the useful variables. 1382 1383Defaults for the options are specified in brackets. 1384 1385Configuration: 1386 -h, --help display this help and exit 1387 --help=short display options specific to this package 1388 --help=recursive display the short help of all the included packages 1389 -V, --version display version information and exit 1390 -q, --quiet, --silent do not print \`checking ...' messages 1391 --cache-file=FILE cache test results in FILE [disabled] 1392 -C, --config-cache alias for \`--cache-file=config.cache' 1393 -n, --no-create do not create output files 1394 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1395 1396Installation directories: 1397 --prefix=PREFIX install architecture-independent files in PREFIX 1398 [$ac_default_prefix] 1399 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1400 [PREFIX] 1401 1402By default, \`make install' will install all the files in 1403\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1404an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1405for instance \`--prefix=\$HOME'. 1406 1407For better control, use the options below. 1408 1409Fine tuning of the installation directories: 1410 --bindir=DIR user executables [EPREFIX/bin] 1411 --sbindir=DIR system admin executables [EPREFIX/sbin] 1412 --libexecdir=DIR program executables [EPREFIX/libexec] 1413 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1414 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1415 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1416 --libdir=DIR object code libraries [EPREFIX/lib] 1417 --includedir=DIR C header files [PREFIX/include] 1418 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1419 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1420 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1421 --infodir=DIR info documentation [DATAROOTDIR/info] 1422 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1423 --mandir=DIR man documentation [DATAROOTDIR/man] 1424 --docdir=DIR documentation root [DATAROOTDIR/doc/tiff] 1425 --htmldir=DIR html documentation [DOCDIR] 1426 --dvidir=DIR dvi documentation [DOCDIR] 1427 --pdfdir=DIR pdf documentation [DOCDIR] 1428 --psdir=DIR ps documentation [DOCDIR] 1429_ACEOF 1430 1431 cat <<\_ACEOF 1432 1433Program names: 1434 --program-prefix=PREFIX prepend PREFIX to installed program names 1435 --program-suffix=SUFFIX append SUFFIX to installed program names 1436 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1437 1438X features: 1439 --x-includes=DIR X include files are in DIR 1440 --x-libraries=DIR X library files are in DIR 1441 1442System types: 1443 --build=BUILD configure for building on BUILD [guessed] 1444 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1445_ACEOF 1446fi 1447 1448if test -n "$ac_init_help"; then 1449 case $ac_init_help in 1450 short | recursive ) echo "Configuration of LibTIFF Software 4.0.0beta7:";; 1451 esac 1452 cat <<\_ACEOF 1453 1454Optional Features: 1455 --disable-option-checking ignore unrecognized --enable/--with options 1456 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1457 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1458 --enable-maintainer-mode enable make rules and dependencies not useful 1459 (and sometimes confusing) to the casual installer 1460 --disable-dependency-tracking speeds up one-time build 1461 --enable-dependency-tracking do not reject slow dependency extractors 1462 --enable-shared[=PKGS] build shared libraries [default=yes] 1463 --enable-static[=PKGS] build static libraries [default=yes] 1464 --enable-fast-install[=PKGS] 1465 optimize for fast installation [default=yes] 1466 --disable-libtool-lock avoid locking (might break parallel builds) 1467 --enable-silent-rules less verbose build output (undo: `make V=1') 1468 --disable-silent-rules verbose build output (undo: `make V=0') 1469 --enable-rpath Enable runtime linker paths (-R libtool option) 1470 --disable-largefile omit support for large files 1471 --disable-ccitt disable support for CCITT Group 3 & 4 algorithms 1472 --disable-packbits disable support for Macintosh PackBits algorithm 1473 --disable-lzw disable support for LZW algorithm 1474 --disable-thunder disable support for ThunderScan 4-bit RLE algorithm 1475 --disable-next disable support for NeXT 2-bit RLE algorithm 1476 --disable-logluv disable support for LogLuv high dynamic range 1477 encoding 1478 --disable-mdi disable support for Microsoft Document Imaging 1479 --disable-zlib disable Zlib usage (required for Deflate 1480 compression, enabled by default) 1481 --disable-pixarlog disable support for Pixar log-format algorithm 1482 (requires Zlib) 1483 --disable-jpeg disable IJG JPEG library usage (required for JPEG 1484 compression, enabled by default) 1485 --disable-old-jpeg disable support for Old JPEG compresson (read-only, 1486 enabled by default) 1487 --disable-jbig disable JBIG-KIT usage (required for ISO JBIG 1488 compression, enabled by default) 1489 --disable-lzma disable liblzma usage (required for LZMA2 1490 compression, enabled by default) 1491 --enable-jpeg12 enable libjpeg 8/12bit dual mode 1492 --enable-cxx enable C++ stream API building (requires C++ 1493 compiler) 1494 --disable-strip-chopping 1495 disable support for strip chopping (whether or not 1496 to convert single-strip uncompressed images to 1497 mutiple strips of specified size to reduce memory 1498 usage) 1499 --enable-defer-strile-load 1500 enable deferred strip/tile offset/size loading 1501 (experimental) 1502 --enable-chunky-strip-read 1503 enable reading large strips in chunks for 1504 TIFFReadScanline() (experimental) 1505 --disable-extrasample-as-alpha 1506 the RGBA interface will treat a fourth sample with 1507 no EXTRASAMPLE_ value as being ASSOCALPHA. Many 1508 packages produce RGBA files but don't mark the alpha 1509 properly 1510 --disable-check-ycbcr-subsampling 1511 disable picking up YCbCr subsampling info from the 1512 JPEG data stream to support files lacking the tag 1513 1514Optional Packages: 1515 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1516 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1517 --with-pic try to use only PIC/non-PIC objects [default=use 1518 both] 1519 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1520 --with-sysroot=DIR Search for dependent libraries within DIR 1521 (or the compiler's sysroot if not specified). 1522 --with-docdir=DIR directory where documentation should be installed 1523 --with-zlib-include-dir=DIR 1524 location of Zlib headers 1525 --with-zlib-lib-dir=DIR location of Zlib library binary 1526 --with-jpeg-include-dir=DIR 1527 location of IJG JPEG library headers 1528 --with-jpeg-lib-dir=DIR location of IJG JPEG library binary 1529 --with-jbig-include-dir=DIR 1530 location of JBIG-KIT headers 1531 --with-jbig-lib-dir=DIR location of JBIG-KIT library binary 1532 --with-lzma-include-dir=DIR 1533 location of liblzma headers 1534 --with-lzma-lib-dir=DIR location of liblzma library binary 1535 --with-jpeg12-include-dir=DIR 1536 location of libjpeg 12bit headers 1537 --with-jpeg12-lib=LIBRARY 1538 path to libjpeg 12bit library 1539 --with-x use the X Window System 1540 --with-default-strip-size=SIZE 1541 default size of the strip in bytes (when strip 1542 chopping enabled) [[default=8192]] 1543 1544Some influential environment variables: 1545 CC C compiler command 1546 CFLAGS C compiler flags 1547 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1548 nonstandard directory <lib dir> 1549 LIBS libraries to pass to the linker, e.g. -l<library> 1550 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1551 you have headers in a nonstandard directory <include dir> 1552 CPP C preprocessor 1553 CXX C++ compiler command 1554 CXXFLAGS C++ compiler flags 1555 CXXCPP C++ preprocessor 1556 XMKMF Path to xmkmf, Makefile generator for X Window System 1557 1558Use these variables to override the choices made by `configure' or to help 1559it to find libraries and programs with nonstandard names/locations. 1560 1561Report bugs to <[email protected]>. 1562_ACEOF 1563ac_status=$? 1564fi 1565 1566if test "$ac_init_help" = "recursive"; then 1567 # If there are subdirs, report their specific --help. 1568 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1569 test -d "$ac_dir" || 1570 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1571 continue 1572 ac_builddir=. 1573 1574case "$ac_dir" in 1575.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1576*) 1577 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1578 # A ".." for each directory in $ac_dir_suffix. 1579 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1580 case $ac_top_builddir_sub in 1581 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1582 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1583 esac ;; 1584esac 1585ac_abs_top_builddir=$ac_pwd 1586ac_abs_builddir=$ac_pwd$ac_dir_suffix 1587# for backward compatibility: 1588ac_top_builddir=$ac_top_build_prefix 1589 1590case $srcdir in 1591 .) # We are building in place. 1592 ac_srcdir=. 1593 ac_top_srcdir=$ac_top_builddir_sub 1594 ac_abs_top_srcdir=$ac_pwd ;; 1595 [\\/]* | ?:[\\/]* ) # Absolute name. 1596 ac_srcdir=$srcdir$ac_dir_suffix; 1597 ac_top_srcdir=$srcdir 1598 ac_abs_top_srcdir=$srcdir ;; 1599 *) # Relative name. 1600 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1601 ac_top_srcdir=$ac_top_build_prefix$srcdir 1602 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1603esac 1604ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1605 1606 cd "$ac_dir" || { ac_status=$?; continue; } 1607 # Check for guested configure. 1608 if test -f "$ac_srcdir/configure.gnu"; then 1609 echo && 1610 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1611 elif test -f "$ac_srcdir/configure"; then 1612 echo && 1613 $SHELL "$ac_srcdir/configure" --help=recursive 1614 else 1615 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1616 fi || ac_status=$? 1617 cd "$ac_pwd" || { ac_status=$?; break; } 1618 done 1619fi 1620 1621test -n "$ac_init_help" && exit $ac_status 1622if $ac_init_version; then 1623 cat <<\_ACEOF 1624LibTIFF Software configure 4.0.0beta7 1625generated by GNU Autoconf 2.68 1626 1627Copyright (C) 2010 Free Software Foundation, Inc. 1628This configure script is free software; the Free Software Foundation 1629gives unlimited permission to copy, distribute and modify it. 1630_ACEOF 1631 exit 1632fi 1633 1634## ------------------------ ## 1635## Autoconf initialization. ## 1636## ------------------------ ## 1637 1638# ac_fn_c_try_compile LINENO 1639# -------------------------- 1640# Try to compile conftest.$ac_ext, and return whether this succeeded. 1641ac_fn_c_try_compile () 1642{ 1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1644 rm -f conftest.$ac_objext 1645 if { { ac_try="$ac_compile" 1646case "(($ac_try" in 1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1648 *) ac_try_echo=$ac_try;; 1649esac 1650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1651$as_echo "$ac_try_echo"; } >&5 1652 (eval "$ac_compile") 2>conftest.err 1653 ac_status=$? 1654 if test -s conftest.err; then 1655 grep -v '^ *+' conftest.err >conftest.er1 1656 cat conftest.er1 >&5 1657 mv -f conftest.er1 conftest.err 1658 fi 1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1660 test $ac_status = 0; } && { 1661 test -z "$ac_c_werror_flag" || 1662 test ! -s conftest.err 1663 } && test -s conftest.$ac_objext; then : 1664 ac_retval=0 1665else 1666 $as_echo "$as_me: failed program was:" >&5 1667sed 's/^/| /' conftest.$ac_ext >&5 1668 1669 ac_retval=1 1670fi 1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1672 as_fn_set_status $ac_retval 1673 1674} # ac_fn_c_try_compile 1675 1676# ac_fn_c_try_link LINENO 1677# ----------------------- 1678# Try to link conftest.$ac_ext, and return whether this succeeded. 1679ac_fn_c_try_link () 1680{ 1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1682 rm -f conftest.$ac_objext conftest$ac_exeext 1683 if { { ac_try="$ac_link" 1684case "(($ac_try" in 1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1686 *) ac_try_echo=$ac_try;; 1687esac 1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1689$as_echo "$ac_try_echo"; } >&5 1690 (eval "$ac_link") 2>conftest.err 1691 ac_status=$? 1692 if test -s conftest.err; then 1693 grep -v '^ *+' conftest.err >conftest.er1 1694 cat conftest.er1 >&5 1695 mv -f conftest.er1 conftest.err 1696 fi 1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1698 test $ac_status = 0; } && { 1699 test -z "$ac_c_werror_flag" || 1700 test ! -s conftest.err 1701 } && test -s conftest$ac_exeext && { 1702 test "$cross_compiling" = yes || 1703 $as_test_x conftest$ac_exeext 1704 }; then : 1705 ac_retval=0 1706else 1707 $as_echo "$as_me: failed program was:" >&5 1708sed 's/^/| /' conftest.$ac_ext >&5 1709 1710 ac_retval=1 1711fi 1712 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1713 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1714 # interfere with the next link command; also delete a directory that is 1715 # left behind by Apple's compiler. We do this before executing the actions. 1716 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1718 as_fn_set_status $ac_retval 1719 1720} # ac_fn_c_try_link 1721 1722# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1723# ------------------------------------------------------- 1724# Tests whether HEADER exists and can be compiled using the include files in 1725# INCLUDES, setting the cache variable VAR accordingly. 1726ac_fn_c_check_header_compile () 1727{ 1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1730$as_echo_n "checking for $2... " >&6; } 1731if eval \${$3+:} false; then : 1732 $as_echo_n "(cached) " >&6 1733else 1734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1735/* end confdefs.h. */ 1736$4 1737#include <$2> 1738_ACEOF 1739if ac_fn_c_try_compile "$LINENO"; then : 1740 eval "$3=yes" 1741else 1742 eval "$3=no" 1743fi 1744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1745fi 1746eval ac_res=\$$3 1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1748$as_echo "$ac_res" >&6; } 1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1750 1751} # ac_fn_c_check_header_compile 1752 1753# ac_fn_c_try_cpp LINENO 1754# ---------------------- 1755# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1756ac_fn_c_try_cpp () 1757{ 1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1759 if { { ac_try="$ac_cpp conftest.$ac_ext" 1760case "(($ac_try" in 1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1762 *) ac_try_echo=$ac_try;; 1763esac 1764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1765$as_echo "$ac_try_echo"; } >&5 1766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1767 ac_status=$? 1768 if test -s conftest.err; then 1769 grep -v '^ *+' conftest.err >conftest.er1 1770 cat conftest.er1 >&5 1771 mv -f conftest.er1 conftest.err 1772 fi 1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1774 test $ac_status = 0; } > conftest.i && { 1775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1776 test ! -s conftest.err 1777 }; then : 1778 ac_retval=0 1779else 1780 $as_echo "$as_me: failed program was:" >&5 1781sed 's/^/| /' conftest.$ac_ext >&5 1782 1783 ac_retval=1 1784fi 1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1786 as_fn_set_status $ac_retval 1787 1788} # ac_fn_c_try_cpp 1789 1790# ac_fn_c_try_run LINENO 1791# ---------------------- 1792# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1793# that executables *can* be run. 1794ac_fn_c_try_run () 1795{ 1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1797 if { { ac_try="$ac_link" 1798case "(($ac_try" in 1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1800 *) ac_try_echo=$ac_try;; 1801esac 1802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1803$as_echo "$ac_try_echo"; } >&5 1804 (eval "$ac_link") 2>&5 1805 ac_status=$? 1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1807 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1808 { { case "(($ac_try" in 1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1810 *) ac_try_echo=$ac_try;; 1811esac 1812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1813$as_echo "$ac_try_echo"; } >&5 1814 (eval "$ac_try") 2>&5 1815 ac_status=$? 1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1817 test $ac_status = 0; }; }; then : 1818 ac_retval=0 1819else 1820 $as_echo "$as_me: program exited with status $ac_status" >&5 1821 $as_echo "$as_me: failed program was:" >&5 1822sed 's/^/| /' conftest.$ac_ext >&5 1823 1824 ac_retval=$ac_status 1825fi 1826 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1828 as_fn_set_status $ac_retval 1829 1830} # ac_fn_c_try_run 1831 1832# ac_fn_c_check_func LINENO FUNC VAR 1833# ---------------------------------- 1834# Tests whether FUNC exists, setting the cache variable VAR accordingly 1835ac_fn_c_check_func () 1836{ 1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1839$as_echo_n "checking for $2... " >&6; } 1840if eval \${$3+:} false; then : 1841 $as_echo_n "(cached) " >&6 1842else 1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1844/* end confdefs.h. */ 1845/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1846 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1847#define $2 innocuous_$2 1848 1849/* System header to define __stub macros and hopefully few prototypes, 1850 which can conflict with char $2 (); below. 1851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1852 <limits.h> exists even on freestanding compilers. */ 1853 1854#ifdef __STDC__ 1855# include <limits.h> 1856#else 1857# include <assert.h> 1858#endif 1859 1860#undef $2 1861 1862/* Override any GCC internal prototype to avoid an error. 1863 Use char because int might match the return type of a GCC 1864 builtin and then its argument prototype would still apply. */ 1865#ifdef __cplusplus 1866extern "C" 1867#endif 1868char $2 (); 1869/* The GNU C library defines this for functions which it implements 1870 to always fail with ENOSYS. Some functions are actually named 1871 something starting with __ and the normal name is an alias. */ 1872#if defined __stub_$2 || defined __stub___$2 1873choke me 1874#endif 1875 1876int 1877main () 1878{ 1879return $2 (); 1880 ; 1881 return 0; 1882} 1883_ACEOF 1884if ac_fn_c_try_link "$LINENO"; then : 1885 eval "$3=yes" 1886else 1887 eval "$3=no" 1888fi 1889rm -f core conftest.err conftest.$ac_objext \ 1890 conftest$ac_exeext conftest.$ac_ext 1891fi 1892eval ac_res=\$$3 1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1894$as_echo "$ac_res" >&6; } 1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1896 1897} # ac_fn_c_check_func 1898 1899# ac_fn_cxx_try_compile LINENO 1900# ---------------------------- 1901# Try to compile conftest.$ac_ext, and return whether this succeeded. 1902ac_fn_cxx_try_compile () 1903{ 1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1905 rm -f conftest.$ac_objext 1906 if { { ac_try="$ac_compile" 1907case "(($ac_try" in 1908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1909 *) ac_try_echo=$ac_try;; 1910esac 1911eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1912$as_echo "$ac_try_echo"; } >&5 1913 (eval "$ac_compile") 2>conftest.err 1914 ac_status=$? 1915 if test -s conftest.err; then 1916 grep -v '^ *+' conftest.err >conftest.er1 1917 cat conftest.er1 >&5 1918 mv -f conftest.er1 conftest.err 1919 fi 1920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1921 test $ac_status = 0; } && { 1922 test -z "$ac_cxx_werror_flag" || 1923 test ! -s conftest.err 1924 } && test -s conftest.$ac_objext; then : 1925 ac_retval=0 1926else 1927 $as_echo "$as_me: failed program was:" >&5 1928sed 's/^/| /' conftest.$ac_ext >&5 1929 1930 ac_retval=1 1931fi 1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1933 as_fn_set_status $ac_retval 1934 1935} # ac_fn_cxx_try_compile 1936 1937# ac_fn_cxx_try_cpp LINENO 1938# ------------------------ 1939# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1940ac_fn_cxx_try_cpp () 1941{ 1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1943 if { { ac_try="$ac_cpp conftest.$ac_ext" 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_cpp conftest.$ac_ext") 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; } > conftest.i && { 1959 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1960 test ! -s conftest.err 1961 }; 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_cpp 1973 1974# ac_fn_cxx_try_link LINENO 1975# ------------------------- 1976# Try to link conftest.$ac_ext, and return whether this succeeded. 1977ac_fn_cxx_try_link () 1978{ 1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1980 rm -f conftest.$ac_objext conftest$ac_exeext 1981 if { { ac_try="$ac_link" 1982case "(($ac_try" in 1983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1984 *) ac_try_echo=$ac_try;; 1985esac 1986eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1987$as_echo "$ac_try_echo"; } >&5 1988 (eval "$ac_link") 2>conftest.err 1989 ac_status=$? 1990 if test -s conftest.err; then 1991 grep -v '^ *+' conftest.err >conftest.er1 1992 cat conftest.er1 >&5 1993 mv -f conftest.er1 conftest.err 1994 fi 1995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1996 test $ac_status = 0; } && { 1997 test -z "$ac_cxx_werror_flag" || 1998 test ! -s conftest.err 1999 } && test -s conftest$ac_exeext && { 2000 test "$cross_compiling" = yes || 2001 $as_test_x conftest$ac_exeext 2002 }; then : 2003 ac_retval=0 2004else 2005 $as_echo "$as_me: failed program was:" >&5 2006sed 's/^/| /' conftest.$ac_ext >&5 2007 2008 ac_retval=1 2009fi 2010 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2011 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2012 # interfere with the next link command; also delete a directory that is 2013 # left behind by Apple's compiler. We do this before executing the actions. 2014 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2015 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2016 as_fn_set_status $ac_retval 2017 2018} # ac_fn_cxx_try_link 2019 2020# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2021# ------------------------------------------------------- 2022# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2023# the include files in INCLUDES and setting the cache variable VAR 2024# accordingly. 2025ac_fn_c_check_header_mongrel () 2026{ 2027 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2028 if eval \${$3+:} false; then : 2029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2030$as_echo_n "checking for $2... " >&6; } 2031if eval \${$3+:} false; then : 2032 $as_echo_n "(cached) " >&6 2033fi 2034eval ac_res=\$$3 2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2036$as_echo "$ac_res" >&6; } 2037else 2038 # Is the header compilable? 2039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2040$as_echo_n "checking $2 usability... " >&6; } 2041cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2042/* end confdefs.h. */ 2043$4 2044#include <$2> 2045_ACEOF 2046if ac_fn_c_try_compile "$LINENO"; then : 2047 ac_header_compiler=yes 2048else 2049 ac_header_compiler=no 2050fi 2051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2053$as_echo "$ac_header_compiler" >&6; } 2054 2055# Is the header present? 2056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2057$as_echo_n "checking $2 presence... " >&6; } 2058cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2059/* end confdefs.h. */ 2060#include <$2> 2061_ACEOF 2062if ac_fn_c_try_cpp "$LINENO"; then : 2063 ac_header_preproc=yes 2064else 2065 ac_header_preproc=no 2066fi 2067rm -f conftest.err conftest.i conftest.$ac_ext 2068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2069$as_echo "$ac_header_preproc" >&6; } 2070 2071# So? What about this header? 2072case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2073 yes:no: ) 2074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2075$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2077$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2078 ;; 2079 no:yes:* ) 2080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2081$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2083$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2085$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2087$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2089$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2090( $as_echo "## -------------------------------------- ## 2091## Report this to [email protected] ## 2092## -------------------------------------- ##" 2093 ) | sed "s/^/$as_me: WARNING: /" >&2 2094 ;; 2095esac 2096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2097$as_echo_n "checking for $2... " >&6; } 2098if eval \${$3+:} false; then : 2099 $as_echo_n "(cached) " >&6 2100else 2101 eval "$3=\$ac_header_compiler" 2102fi 2103eval ac_res=\$$3 2104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2105$as_echo "$ac_res" >&6; } 2106fi 2107 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2108 2109} # ac_fn_c_check_header_mongrel 2110 2111# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2112# ------------------------------------------- 2113# Tests whether TYPE exists after having included INCLUDES, setting cache 2114# variable VAR accordingly. 2115ac_fn_c_check_type () 2116{ 2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2119$as_echo_n "checking for $2... " >&6; } 2120if eval \${$3+:} false; then : 2121 $as_echo_n "(cached) " >&6 2122else 2123 eval "$3=no" 2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2125/* end confdefs.h. */ 2126$4 2127int 2128main () 2129{ 2130if (sizeof ($2)) 2131 return 0; 2132 ; 2133 return 0; 2134} 2135_ACEOF 2136if ac_fn_c_try_compile "$LINENO"; then : 2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2138/* end confdefs.h. */ 2139$4 2140int 2141main () 2142{ 2143if (sizeof (($2))) 2144 return 0; 2145 ; 2146 return 0; 2147} 2148_ACEOF 2149if ac_fn_c_try_compile "$LINENO"; then : 2150 2151else 2152 eval "$3=yes" 2153fi 2154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2155fi 2156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2157fi 2158eval ac_res=\$$3 2159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2160$as_echo "$ac_res" >&6; } 2161 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2162 2163} # ac_fn_c_check_type 2164 2165# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2166# -------------------------------------------- 2167# Tries to find the compile-time value of EXPR in a program that includes 2168# INCLUDES, setting VAR accordingly. Returns whether the value could be 2169# computed 2170ac_fn_c_compute_int () 2171{ 2172 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2173 if test "$cross_compiling" = yes; then 2174 # Depending upon the size, compute the lo and hi bounds. 2175cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2176/* end confdefs.h. */ 2177$4 2178int 2179main () 2180{ 2181static int test_array [1 - 2 * !(($2) >= 0)]; 2182test_array [0] = 0 2183 2184 ; 2185 return 0; 2186} 2187_ACEOF 2188if ac_fn_c_try_compile "$LINENO"; then : 2189 ac_lo=0 ac_mid=0 2190 while :; do 2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2192/* end confdefs.h. */ 2193$4 2194int 2195main () 2196{ 2197static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2198test_array [0] = 0 2199 2200 ; 2201 return 0; 2202} 2203_ACEOF 2204if ac_fn_c_try_compile "$LINENO"; then : 2205 ac_hi=$ac_mid; break 2206else 2207 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2208 if test $ac_lo -le $ac_mid; then 2209 ac_lo= ac_hi= 2210 break 2211 fi 2212 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2213fi 2214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2215 done 2216else 2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2218/* end confdefs.h. */ 2219$4 2220int 2221main () 2222{ 2223static int test_array [1 - 2 * !(($2) < 0)]; 2224test_array [0] = 0 2225 2226 ; 2227 return 0; 2228} 2229_ACEOF 2230if ac_fn_c_try_compile "$LINENO"; then : 2231 ac_hi=-1 ac_mid=-1 2232 while :; do 2233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2234/* end confdefs.h. */ 2235$4 2236int 2237main () 2238{ 2239static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2240test_array [0] = 0 2241 2242 ; 2243 return 0; 2244} 2245_ACEOF 2246if ac_fn_c_try_compile "$LINENO"; then : 2247 ac_lo=$ac_mid; break 2248else 2249 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2250 if test $ac_mid -le $ac_hi; then 2251 ac_lo= ac_hi= 2252 break 2253 fi 2254 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2255fi 2256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2257 done 2258else 2259 ac_lo= ac_hi= 2260fi 2261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2262fi 2263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2264# Binary search between lo and hi bounds. 2265while test "x$ac_lo" != "x$ac_hi"; do 2266 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2268/* end confdefs.h. */ 2269$4 2270int 2271main () 2272{ 2273static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2274test_array [0] = 0 2275 2276 ; 2277 return 0; 2278} 2279_ACEOF 2280if ac_fn_c_try_compile "$LINENO"; then : 2281 ac_hi=$ac_mid 2282else 2283 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2284fi 2285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2286done 2287case $ac_lo in #(( 2288?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2289'') ac_retval=1 ;; 2290esac 2291 else 2292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2293/* end confdefs.h. */ 2294$4 2295static long int longval () { return $2; } 2296static unsigned long int ulongval () { return $2; } 2297#include <stdio.h> 2298#include <stdlib.h> 2299int 2300main () 2301{ 2302 2303 FILE *f = fopen ("conftest.val", "w"); 2304 if (! f) 2305 return 1; 2306 if (($2) < 0) 2307 { 2308 long int i = longval (); 2309 if (i != ($2)) 2310 return 1; 2311 fprintf (f, "%ld", i); 2312 } 2313 else 2314 { 2315 unsigned long int i = ulongval (); 2316 if (i != ($2)) 2317 return 1; 2318 fprintf (f, "%lu", i); 2319 } 2320 /* Do not output a trailing newline, as this causes \r\n confusion 2321 on some platforms. */ 2322 return ferror (f) || fclose (f) != 0; 2323 2324 ; 2325 return 0; 2326} 2327_ACEOF 2328if ac_fn_c_try_run "$LINENO"; then : 2329 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2330else 2331 ac_retval=1 2332fi 2333rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2334 conftest.$ac_objext conftest.beam conftest.$ac_ext 2335rm -f conftest.val 2336 2337 fi 2338 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2339 as_fn_set_status $ac_retval 2340 2341} # ac_fn_c_compute_int 2342cat >config.log <<_ACEOF 2343This file contains any messages produced by compilers while 2344running configure, to aid debugging if configure makes a mistake. 2345 2346It was created by LibTIFF Software $as_me 4.0.0beta7, which was 2347generated by GNU Autoconf 2.68. Invocation command line was 2348 2349 $ $0 $@ 2350 2351_ACEOF 2352exec 5>>config.log 2353{ 2354cat <<_ASUNAME 2355## --------- ## 2356## Platform. ## 2357## --------- ## 2358 2359hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2360uname -m = `(uname -m) 2>/dev/null || echo unknown` 2361uname -r = `(uname -r) 2>/dev/null || echo unknown` 2362uname -s = `(uname -s) 2>/dev/null || echo unknown` 2363uname -v = `(uname -v) 2>/dev/null || echo unknown` 2364 2365/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2366/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2367 2368/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2369/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2370/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2371/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2372/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2373/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2374/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2375 2376_ASUNAME 2377 2378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2379for as_dir in $PATH 2380do 2381 IFS=$as_save_IFS 2382 test -z "$as_dir" && as_dir=. 2383 $as_echo "PATH: $as_dir" 2384 done 2385IFS=$as_save_IFS 2386 2387} >&5 2388 2389cat >&5 <<_ACEOF 2390 2391 2392## ----------- ## 2393## Core tests. ## 2394## ----------- ## 2395 2396_ACEOF 2397 2398 2399# Keep a trace of the command line. 2400# Strip out --no-create and --no-recursion so they do not pile up. 2401# Strip out --silent because we don't want to record it for future runs. 2402# Also quote any args containing shell meta-characters. 2403# Make two passes to allow for proper duplicate-argument suppression. 2404ac_configure_args= 2405ac_configure_args0= 2406ac_configure_args1= 2407ac_must_keep_next=false 2408for ac_pass in 1 2 2409do 2410 for ac_arg 2411 do 2412 case $ac_arg in 2413 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2414 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2415 | -silent | --silent | --silen | --sile | --sil) 2416 continue ;; 2417 *\'*) 2418 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2419 esac 2420 case $ac_pass in 2421 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2422 2) 2423 as_fn_append ac_configure_args1 " '$ac_arg'" 2424 if test $ac_must_keep_next = true; then 2425 ac_must_keep_next=false # Got value, back to normal. 2426 else 2427 case $ac_arg in 2428 *=* | --config-cache | -C | -disable-* | --disable-* \ 2429 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2430 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2431 | -with-* | --with-* | -without-* | --without-* | --x) 2432 case "$ac_configure_args0 " in 2433 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2434 esac 2435 ;; 2436 -* ) ac_must_keep_next=true ;; 2437 esac 2438 fi 2439 as_fn_append ac_configure_args " '$ac_arg'" 2440 ;; 2441 esac 2442 done 2443done 2444{ ac_configure_args0=; unset ac_configure_args0;} 2445{ ac_configure_args1=; unset ac_configure_args1;} 2446 2447# When interrupted or exit'd, cleanup temporary files, and complete 2448# config.log. We remove comments because anyway the quotes in there 2449# would cause problems or look ugly. 2450# WARNING: Use '\'' to represent an apostrophe within the trap. 2451# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2452trap 'exit_status=$? 2453 # Save into config.log some information that might help in debugging. 2454 { 2455 echo 2456 2457 $as_echo "## ---------------- ## 2458## Cache variables. ## 2459## ---------------- ##" 2460 echo 2461 # The following way of writing the cache mishandles newlines in values, 2462( 2463 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2464 eval ac_val=\$$ac_var 2465 case $ac_val in #( 2466 *${as_nl}*) 2467 case $ac_var in #( 2468 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2469$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2470 esac 2471 case $ac_var in #( 2472 _ | IFS | as_nl) ;; #( 2473 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2474 *) { eval $ac_var=; unset $ac_var;} ;; 2475 esac ;; 2476 esac 2477 done 2478 (set) 2>&1 | 2479 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2480 *${as_nl}ac_space=\ *) 2481 sed -n \ 2482 "s/'\''/'\''\\\\'\'''\''/g; 2483 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2484 ;; #( 2485 *) 2486 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2487 ;; 2488 esac | 2489 sort 2490) 2491 echo 2492 2493 $as_echo "## ----------------- ## 2494## Output variables. ## 2495## ----------------- ##" 2496 echo 2497 for ac_var in $ac_subst_vars 2498 do 2499 eval ac_val=\$$ac_var 2500 case $ac_val in 2501 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2502 esac 2503 $as_echo "$ac_var='\''$ac_val'\''" 2504 done | sort 2505 echo 2506 2507 if test -n "$ac_subst_files"; then 2508 $as_echo "## ------------------- ## 2509## File substitutions. ## 2510## ------------------- ##" 2511 echo 2512 for ac_var in $ac_subst_files 2513 do 2514 eval ac_val=\$$ac_var 2515 case $ac_val in 2516 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2517 esac 2518 $as_echo "$ac_var='\''$ac_val'\''" 2519 done | sort 2520 echo 2521 fi 2522 2523 if test -s confdefs.h; then 2524 $as_echo "## ----------- ## 2525## confdefs.h. ## 2526## ----------- ##" 2527 echo 2528 cat confdefs.h 2529 echo 2530 fi 2531 test "$ac_signal" != 0 && 2532 $as_echo "$as_me: caught signal $ac_signal" 2533 $as_echo "$as_me: exit $exit_status" 2534 } >&5 2535 rm -f core *.core core.conftest.* && 2536 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2537 exit $exit_status 2538' 0 2539for ac_signal in 1 2 13 15; do 2540 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2541done 2542ac_signal=0 2543 2544# confdefs.h avoids OS command line length limits that DEFS can exceed. 2545rm -f -r conftest* confdefs.h 2546 2547$as_echo "/* confdefs.h */" > confdefs.h 2548 2549# Predefined preprocessor variables. 2550 2551cat >>confdefs.h <<_ACEOF 2552#define PACKAGE_NAME "$PACKAGE_NAME" 2553_ACEOF 2554 2555cat >>confdefs.h <<_ACEOF 2556#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2557_ACEOF 2558 2559cat >>confdefs.h <<_ACEOF 2560#define PACKAGE_VERSION "$PACKAGE_VERSION" 2561_ACEOF 2562 2563cat >>confdefs.h <<_ACEOF 2564#define PACKAGE_STRING "$PACKAGE_STRING" 2565_ACEOF 2566 2567cat >>confdefs.h <<_ACEOF 2568#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2569_ACEOF 2570 2571cat >>confdefs.h <<_ACEOF 2572#define PACKAGE_URL "$PACKAGE_URL" 2573_ACEOF 2574 2575 2576# Let the site file select an alternate cache file if it wants to. 2577# Prefer an explicitly selected file to automatically selected ones. 2578ac_site_file1=NONE 2579ac_site_file2=NONE 2580if test -n "$CONFIG_SITE"; then 2581 # We do not want a PATH search for config.site. 2582 case $CONFIG_SITE in #(( 2583 -*) ac_site_file1=./$CONFIG_SITE;; 2584 */*) ac_site_file1=$CONFIG_SITE;; 2585 *) ac_site_file1=./$CONFIG_SITE;; 2586 esac 2587elif test "x$prefix" != xNONE; then 2588 ac_site_file1=$prefix/share/config.site 2589 ac_site_file2=$prefix/etc/config.site 2590else 2591 ac_site_file1=$ac_default_prefix/share/config.site 2592 ac_site_file2=$ac_default_prefix/etc/config.site 2593fi 2594for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2595do 2596 test "x$ac_site_file" = xNONE && continue 2597 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2598 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2599$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2600 sed 's/^/| /' "$ac_site_file" >&5 2601 . "$ac_site_file" \ 2602 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2603$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2604as_fn_error $? "failed to load site script $ac_site_file 2605See \`config.log' for more details" "$LINENO" 5; } 2606 fi 2607done 2608 2609if test -r "$cache_file"; then 2610 # Some versions of bash will fail to source /dev/null (special files 2611 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2612 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2613 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2614$as_echo "$as_me: loading cache $cache_file" >&6;} 2615 case $cache_file in 2616 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2617 *) . "./$cache_file";; 2618 esac 2619 fi 2620else 2621 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2622$as_echo "$as_me: creating cache $cache_file" >&6;} 2623 >$cache_file 2624fi 2625 2626# Check that the precious variables saved in the cache have kept the same 2627# value. 2628ac_cache_corrupted=false 2629for ac_var in $ac_precious_vars; do 2630 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2631 eval ac_new_set=\$ac_env_${ac_var}_set 2632 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2633 eval ac_new_val=\$ac_env_${ac_var}_value 2634 case $ac_old_set,$ac_new_set in 2635 set,) 2636 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2637$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2638 ac_cache_corrupted=: ;; 2639 ,set) 2640 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2641$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2642 ac_cache_corrupted=: ;; 2643 ,);; 2644 *) 2645 if test "x$ac_old_val" != "x$ac_new_val"; then 2646 # differences in whitespace do not lead to failure. 2647 ac_old_val_w=`echo x $ac_old_val` 2648 ac_new_val_w=`echo x $ac_new_val` 2649 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2650 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2651$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2652 ac_cache_corrupted=: 2653 else 2654 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2655$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2656 eval $ac_var=\$ac_old_val 2657 fi 2658 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2659$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2660 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2661$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2662 fi;; 2663 esac 2664 # Pass precious variables to config.status. 2665 if test "$ac_new_set" = set; then 2666 case $ac_new_val in 2667 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2668 *) ac_arg=$ac_var=$ac_new_val ;; 2669 esac 2670 case " $ac_configure_args " in 2671 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2672 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2673 esac 2674 fi 2675done 2676if $ac_cache_corrupted; then 2677 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2678$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2679 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2680$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2681 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2682fi 2683## -------------------- ## 2684## Main body of script. ## 2685## -------------------- ## 2686 2687ac_ext=c 2688ac_cpp='$CPP $CPPFLAGS' 2689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2691ac_compiler_gnu=$ac_cv_c_compiler_gnu 2692 2693 2694ac_aux_dir= 2695for ac_dir in config "$srcdir"/config; do 2696 if test -f "$ac_dir/install-sh"; then 2697 ac_aux_dir=$ac_dir 2698 ac_install_sh="$ac_aux_dir/install-sh -c" 2699 break 2700 elif test -f "$ac_dir/install.sh"; then 2701 ac_aux_dir=$ac_dir 2702 ac_install_sh="$ac_aux_dir/install.sh -c" 2703 break 2704 elif test -f "$ac_dir/shtool"; then 2705 ac_aux_dir=$ac_dir 2706 ac_install_sh="$ac_aux_dir/shtool install -c" 2707 break 2708 fi 2709done 2710if test -z "$ac_aux_dir"; then 2711 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 2712fi 2713 2714# These three variables are undocumented and unsupported, 2715# and are intended to be withdrawn in a future Autoconf release. 2716# They can cause serious problems if a builder's source tree is in a directory 2717# whose full name contains unusual characters. 2718ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2719ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2720ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2721 2722 2723 2724ac_ext=c 2725ac_cpp='$CPP $CPPFLAGS' 2726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2728ac_compiler_gnu=$ac_cv_c_compiler_gnu 2729 2730 2731# Make sure we can run config.sub. 2732$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2733 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2734 2735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2736$as_echo_n "checking build system type... " >&6; } 2737if ${ac_cv_build+:} false; then : 2738 $as_echo_n "(cached) " >&6 2739else 2740 ac_build_alias=$build_alias 2741test "x$ac_build_alias" = x && 2742 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2743test "x$ac_build_alias" = x && 2744 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2745ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2746 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2747 2748fi 2749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2750$as_echo "$ac_cv_build" >&6; } 2751case $ac_cv_build in 2752*-*-*) ;; 2753*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2754esac 2755build=$ac_cv_build 2756ac_save_IFS=$IFS; IFS='-' 2757set x $ac_cv_build 2758shift 2759build_cpu=$1 2760build_vendor=$2 2761shift; shift 2762# Remember, the first character of IFS is used to create $*, 2763# except with old shells: 2764build_os=$* 2765IFS=$ac_save_IFS 2766case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2767 2768 2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2770$as_echo_n "checking host system type... " >&6; } 2771if ${ac_cv_host+:} false; then : 2772 $as_echo_n "(cached) " >&6 2773else 2774 if test "x$host_alias" = x; then 2775 ac_cv_host=$ac_cv_build 2776else 2777 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2778 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2779fi 2780 2781fi 2782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2783$as_echo "$ac_cv_host" >&6; } 2784case $ac_cv_host in 2785*-*-*) ;; 2786*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2787esac 2788host=$ac_cv_host 2789ac_save_IFS=$IFS; IFS='-' 2790set x $ac_cv_host 2791shift 2792host_cpu=$1 2793host_vendor=$2 2794shift; shift 2795# Remember, the first character of IFS is used to create $*, 2796# except with old shells: 2797host_os=$* 2798IFS=$ac_save_IFS 2799case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2800 2801 2802 2803am__api_version='1.11' 2804 2805# Find a good install program. We prefer a C program (faster), 2806# so one script is as good as another. But avoid the broken or 2807# incompatible versions: 2808# SysV /etc/install, /usr/sbin/install 2809# SunOS /usr/etc/install 2810# IRIX /sbin/install 2811# AIX /bin/install 2812# AmigaOS /C/install, which installs bootblocks on floppy discs 2813# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2814# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2815# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2816# OS/2's system install, which has a completely different semantic 2817# ./install, which can be erroneously created by make from ./install.sh. 2818# Reject install programs that cannot install multiple files. 2819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2820$as_echo_n "checking for a BSD-compatible install... " >&6; } 2821if test -z "$INSTALL"; then 2822if ${ac_cv_path_install+:} false; then : 2823 $as_echo_n "(cached) " >&6 2824else 2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2826for as_dir in $PATH 2827do 2828 IFS=$as_save_IFS 2829 test -z "$as_dir" && as_dir=. 2830 # Account for people who put trailing slashes in PATH elements. 2831case $as_dir/ in #(( 2832 ./ | .// | /[cC]/* | \ 2833 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2834 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2835 /usr/ucb/* ) ;; 2836 *) 2837 # OSF1 and SCO ODT 3.0 have their own names for install. 2838 # Don't use installbsd from OSF since it installs stuff as root 2839 # by default. 2840 for ac_prog in ginstall scoinst install; do 2841 for ac_exec_ext in '' $ac_executable_extensions; do 2842 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2843 if test $ac_prog = install && 2844 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2845 # AIX install. It has an incompatible calling convention. 2846 : 2847 elif test $ac_prog = install && 2848 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2849 # program-specific install script used by HP pwplus--don't use. 2850 : 2851 else 2852 rm -rf conftest.one conftest.two conftest.dir 2853 echo one > conftest.one 2854 echo two > conftest.two 2855 mkdir conftest.dir 2856 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2857 test -s conftest.one && test -s conftest.two && 2858 test -s conftest.dir/conftest.one && 2859 test -s conftest.dir/conftest.two 2860 then 2861 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2862 break 3 2863 fi 2864 fi 2865 fi 2866 done 2867 done 2868 ;; 2869esac 2870 2871 done 2872IFS=$as_save_IFS 2873 2874rm -rf conftest.one conftest.two conftest.dir 2875 2876fi 2877 if test "${ac_cv_path_install+set}" = set; then 2878 INSTALL=$ac_cv_path_install 2879 else 2880 # As a last resort, use the slow shell script. Don't cache a 2881 # value for INSTALL within a source directory, because that will 2882 # break other packages using the cache if that directory is 2883 # removed, or if the value is a relative name. 2884 INSTALL=$ac_install_sh 2885 fi 2886fi 2887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2888$as_echo "$INSTALL" >&6; } 2889 2890# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2891# It thinks the first close brace ends the variable substitution. 2892test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2893 2894test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2895 2896test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2897 2898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2899$as_echo_n "checking whether build environment is sane... " >&6; } 2900# Just in case 2901sleep 1 2902echo timestamp > conftest.file 2903# Reject unsafe characters in $srcdir or the absolute working directory 2904# name. Accept space and tab only in the latter. 2905am_lf=' 2906' 2907case `pwd` in 2908 *[\\\"\#\$\&\'\`$am_lf]*) 2909 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2910esac 2911case $srcdir in 2912 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2913 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2914esac 2915 2916# Do `set' in a subshell so we don't clobber the current shell's 2917# arguments. Must try -L first in case configure is actually a 2918# symlink; some systems play weird games with the mod time of symlinks 2919# (eg FreeBSD returns the mod time of the symlink's containing 2920# directory). 2921if ( 2922 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2923 if test "$*" = "X"; then 2924 # -L didn't work. 2925 set X `ls -t "$srcdir/configure" conftest.file` 2926 fi 2927 rm -f conftest.file 2928 if test "$*" != "X $srcdir/configure conftest.file" \ 2929 && test "$*" != "X conftest.file $srcdir/configure"; then 2930 2931 # If neither matched, then we have a broken ls. This can happen 2932 # if, for instance, CONFIG_SHELL is bash and it inherits a 2933 # broken ls alias from the environment. This has actually 2934 # happened. Such a system could not be considered "sane". 2935 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2936alias in your environment" "$LINENO" 5 2937 fi 2938 2939 test "$2" = conftest.file 2940 ) 2941then 2942 # Ok. 2943 : 2944else 2945 as_fn_error $? "newly created file is older than distributed files! 2946Check your system clock" "$LINENO" 5 2947fi 2948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2949$as_echo "yes" >&6; } 2950test "$program_prefix" != NONE && 2951 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2952# Use a double $ so make ignores it. 2953test "$program_suffix" != NONE && 2954 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2955# Double any \ or $. 2956# By default was `s,x,x', remove it if useless. 2957ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2958program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2959 2960# expand $ac_aux_dir to an absolute path 2961am_aux_dir=`cd $ac_aux_dir && pwd` 2962 2963if test x"${MISSING+set}" != xset; then 2964 case $am_aux_dir in 2965 *\ * | *\ *) 2966 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2967 *) 2968 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2969 esac 2970fi 2971# Use eval to expand $SHELL 2972if eval "$MISSING --run true"; then 2973 am_missing_run="$MISSING --run " 2974else 2975 am_missing_run= 2976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2977$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2978fi 2979 2980if test x"${install_sh}" != xset; then 2981 case $am_aux_dir in 2982 *\ * | *\ *) 2983 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2984 *) 2985 install_sh="\${SHELL} $am_aux_dir/install-sh" 2986 esac 2987fi 2988 2989# Installed binaries are usually stripped using `strip' when the user 2990# run `make install-strip'. However `strip' might not be the right 2991# tool to use in cross-compilation environments, therefore Automake 2992# will honor the `STRIP' environment variable to overrule this program. 2993if test "$cross_compiling" != no; then 2994 if test -n "$ac_tool_prefix"; then 2995 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2996set dummy ${ac_tool_prefix}strip; ac_word=$2 2997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2998$as_echo_n "checking for $ac_word... " >&6; } 2999if ${ac_cv_prog_STRIP+:} false; then : 3000 $as_echo_n "(cached) " >&6 3001else 3002 if test -n "$STRIP"; then 3003 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3004else 3005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3006for as_dir in $PATH 3007do 3008 IFS=$as_save_IFS 3009 test -z "$as_dir" && as_dir=. 3010 for ac_exec_ext in '' $ac_executable_extensions; do 3011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3012 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3014 break 2 3015 fi 3016done 3017 done 3018IFS=$as_save_IFS 3019 3020fi 3021fi 3022STRIP=$ac_cv_prog_STRIP 3023if test -n "$STRIP"; then 3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3025$as_echo "$STRIP" >&6; } 3026else 3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3028$as_echo "no" >&6; } 3029fi 3030 3031 3032fi 3033if test -z "$ac_cv_prog_STRIP"; then 3034 ac_ct_STRIP=$STRIP 3035 # Extract the first word of "strip", so it can be a program name with args. 3036set dummy strip; ac_word=$2 3037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3038$as_echo_n "checking for $ac_word... " >&6; } 3039if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3040 $as_echo_n "(cached) " >&6 3041else 3042 if test -n "$ac_ct_STRIP"; then 3043 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3044else 3045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3046for as_dir in $PATH 3047do 3048 IFS=$as_save_IFS 3049 test -z "$as_dir" && as_dir=. 3050 for ac_exec_ext in '' $ac_executable_extensions; do 3051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3052 ac_cv_prog_ac_ct_STRIP="strip" 3053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3054 break 2 3055 fi 3056done 3057 done 3058IFS=$as_save_IFS 3059 3060fi 3061fi 3062ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3063if test -n "$ac_ct_STRIP"; then 3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3065$as_echo "$ac_ct_STRIP" >&6; } 3066else 3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3068$as_echo "no" >&6; } 3069fi 3070 3071 if test "x$ac_ct_STRIP" = x; then 3072 STRIP=":" 3073 else 3074 case $cross_compiling:$ac_tool_warned in 3075yes:) 3076{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3078ac_tool_warned=yes ;; 3079esac 3080 STRIP=$ac_ct_STRIP 3081 fi 3082else 3083 STRIP="$ac_cv_prog_STRIP" 3084fi 3085 3086fi 3087INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3088 3089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3090$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3091if test -z "$MKDIR_P"; then 3092 if ${ac_cv_path_mkdir+:} false; then : 3093 $as_echo_n "(cached) " >&6 3094else 3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3096for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3097do 3098 IFS=$as_save_IFS 3099 test -z "$as_dir" && as_dir=. 3100 for ac_prog in mkdir gmkdir; do 3101 for ac_exec_ext in '' $ac_executable_extensions; do 3102 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 3103 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3104 'mkdir (GNU coreutils) '* | \ 3105 'mkdir (coreutils) '* | \ 3106 'mkdir (fileutils) '4.1*) 3107 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3108 break 3;; 3109 esac 3110 done 3111 done 3112 done 3113IFS=$as_save_IFS 3114 3115fi 3116 3117 test -d ./--version && rmdir ./--version 3118 if test "${ac_cv_path_mkdir+set}" = set; then 3119 MKDIR_P="$ac_cv_path_mkdir -p" 3120 else 3121 # As a last resort, use the slow shell script. Don't cache a 3122 # value for MKDIR_P within a source directory, because that will 3123 # break other packages using the cache if that directory is 3124 # removed, or if the value is a relative name. 3125 MKDIR_P="$ac_install_sh -d" 3126 fi 3127fi 3128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3129$as_echo "$MKDIR_P" >&6; } 3130 3131mkdir_p="$MKDIR_P" 3132case $mkdir_p in 3133 [\\/$]* | ?:[\\/]*) ;; 3134 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3135esac 3136 3137for ac_prog in gawk mawk nawk awk 3138do 3139 # Extract the first word of "$ac_prog", so it can be a program name with args. 3140set dummy $ac_prog; ac_word=$2 3141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3142$as_echo_n "checking for $ac_word... " >&6; } 3143if ${ac_cv_prog_AWK+:} false; then : 3144 $as_echo_n "(cached) " >&6 3145else 3146 if test -n "$AWK"; then 3147 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3148else 3149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3150for as_dir in $PATH 3151do 3152 IFS=$as_save_IFS 3153 test -z "$as_dir" && as_dir=. 3154 for ac_exec_ext in '' $ac_executable_extensions; do 3155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3156 ac_cv_prog_AWK="$ac_prog" 3157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3158 break 2 3159 fi 3160done 3161 done 3162IFS=$as_save_IFS 3163 3164fi 3165fi 3166AWK=$ac_cv_prog_AWK 3167if test -n "$AWK"; then 3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3169$as_echo "$AWK" >&6; } 3170else 3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3172$as_echo "no" >&6; } 3173fi 3174 3175 3176 test -n "$AWK" && break 3177done 3178 3179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3180$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3181set x ${MAKE-make} 3182ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3183if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3184 $as_echo_n "(cached) " >&6 3185else 3186 cat >conftest.make <<\_ACEOF 3187SHELL = /bin/sh 3188all: 3189 @echo '@@@%%%=$(MAKE)=@@@%%%' 3190_ACEOF 3191# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3192case `${MAKE-make} -f conftest.make 2>/dev/null` in 3193 *@@@%%%=?*=@@@%%%*) 3194 eval ac_cv_prog_make_${ac_make}_set=yes;; 3195 *) 3196 eval ac_cv_prog_make_${ac_make}_set=no;; 3197esac 3198rm -f conftest.make 3199fi 3200if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3202$as_echo "yes" >&6; } 3203 SET_MAKE= 3204else 3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3206$as_echo "no" >&6; } 3207 SET_MAKE="MAKE=${MAKE-make}" 3208fi 3209 3210rm -rf .tst 2>/dev/null 3211mkdir .tst 2>/dev/null 3212if test -d .tst; then 3213 am__leading_dot=. 3214else 3215 am__leading_dot=_ 3216fi 3217rmdir .tst 2>/dev/null 3218 3219if test "`cd $srcdir && pwd`" != "`pwd`"; then 3220 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3221 # is not polluted with repeated "-I." 3222 am__isrc=' -I$(srcdir)' 3223 # test to see if srcdir already configured 3224 if test -f $srcdir/config.status; then 3225 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3226 fi 3227fi 3228 3229# test whether we have cygpath 3230if test -z "$CYGPATH_W"; then 3231 if (cygpath --version) >/dev/null 2>/dev/null; then 3232 CYGPATH_W='cygpath -w' 3233 else 3234 CYGPATH_W=echo 3235 fi 3236fi 3237 3238 3239# Define the identity of the package. 3240 PACKAGE='tiff' 3241 VERSION='4.0.0beta7' 3242 3243 3244cat >>confdefs.h <<_ACEOF 3245#define PACKAGE "$PACKAGE" 3246_ACEOF 3247 3248 3249cat >>confdefs.h <<_ACEOF 3250#define VERSION "$VERSION" 3251_ACEOF 3252 3253# Some tools Automake needs. 3254 3255ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3256 3257 3258AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3259 3260 3261AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3262 3263 3264AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3265 3266 3267MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3268 3269# We need awk for the "check" target. The system "awk" is bad on 3270# some platforms. 3271# Always define AMTAR for backward compatibility. 3272 3273AMTAR=${AMTAR-"${am_missing_run}tar"} 3274 3275am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3276 3277 3278 3279 3280 3281 3282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3283$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3284 # Check whether --enable-maintainer-mode was given. 3285if test "${enable_maintainer_mode+set}" = set; then : 3286 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3287else 3288 USE_MAINTAINER_MODE=no 3289fi 3290 3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3292$as_echo "$USE_MAINTAINER_MODE" >&6; } 3293 if test $USE_MAINTAINER_MODE = yes; then 3294 MAINTAINER_MODE_TRUE= 3295 MAINTAINER_MODE_FALSE='#' 3296else 3297 MAINTAINER_MODE_TRUE='#' 3298 MAINTAINER_MODE_FALSE= 3299fi 3300 3301 MAINT=$MAINTAINER_MODE_TRUE 3302 3303 3304 3305LIBTIFF_MAJOR_VERSION=4 3306LIBTIFF_MINOR_VERSION=0 3307LIBTIFF_MICRO_VERSION=0 3308LIBTIFF_ALPHA_VERSION=beta7 3309LIBTIFF_VERSION=$LIBTIFF_MAJOR_VERSION.$LIBTIFF_MINOR_VERSION.$LIBTIFF_MICRO_VERSION$LIBTIFF_ALPHA_VERSION 3310LIBTIFF_RELEASE_DATE=`date +"%Y%m%d"` 3311 3312LIBTIFF_CURRENT=5 3313LIBTIFF_REVISION=4 3314LIBTIFF_AGE=0 3315LIBTIFF_VERSION_INFO=$LIBTIFF_CURRENT:$LIBTIFF_REVISION:$LIBTIFF_AGE 3316 3317# This is a special hack for OpenBSD and MirOS systems. The dynamic linker 3318# in OpenBSD uses some special semantics for shared libraries. Their soname 3319# contains only two numbers, major and minor. 3320# See http://bugzilla.remotesensing.org/show_bug.cgi?id=838 for details. 3321#case "$host_os" in 3322# openbsd* | mirbsd*) 3323# LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION:0 3324# ;; 3325# *) 3326# LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION:$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION 3327# ;; 3328#esac 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338ac_ext=c 3339ac_cpp='$CPP $CPPFLAGS' 3340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3342ac_compiler_gnu=$ac_cv_c_compiler_gnu 3343if test -n "$ac_tool_prefix"; then 3344 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3345set dummy ${ac_tool_prefix}gcc; ac_word=$2 3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3347$as_echo_n "checking for $ac_word... " >&6; } 3348if ${ac_cv_prog_CC+:} false; then : 3349 $as_echo_n "(cached) " >&6 3350else 3351 if test -n "$CC"; then 3352 ac_cv_prog_CC="$CC" # Let the user override the test. 3353else 3354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3355for as_dir in $PATH 3356do 3357 IFS=$as_save_IFS 3358 test -z "$as_dir" && as_dir=. 3359 for ac_exec_ext in '' $ac_executable_extensions; do 3360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3361 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3363 break 2 3364 fi 3365done 3366 done 3367IFS=$as_save_IFS 3368 3369fi 3370fi 3371CC=$ac_cv_prog_CC 3372if test -n "$CC"; then 3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3374$as_echo "$CC" >&6; } 3375else 3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3377$as_echo "no" >&6; } 3378fi 3379 3380 3381fi 3382if test -z "$ac_cv_prog_CC"; then 3383 ac_ct_CC=$CC 3384 # Extract the first word of "gcc", so it can be a program name with args. 3385set dummy gcc; ac_word=$2 3386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3387$as_echo_n "checking for $ac_word... " >&6; } 3388if ${ac_cv_prog_ac_ct_CC+:} false; then : 3389 $as_echo_n "(cached) " >&6 3390else 3391 if test -n "$ac_ct_CC"; then 3392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3393else 3394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3395for as_dir in $PATH 3396do 3397 IFS=$as_save_IFS 3398 test -z "$as_dir" && as_dir=. 3399 for ac_exec_ext in '' $ac_executable_extensions; do 3400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3401 ac_cv_prog_ac_ct_CC="gcc" 3402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3403 break 2 3404 fi 3405done 3406 done 3407IFS=$as_save_IFS 3408 3409fi 3410fi 3411ac_ct_CC=$ac_cv_prog_ac_ct_CC 3412if test -n "$ac_ct_CC"; then 3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3414$as_echo "$ac_ct_CC" >&6; } 3415else 3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3417$as_echo "no" >&6; } 3418fi 3419 3420 if test "x$ac_ct_CC" = x; then 3421 CC="" 3422 else 3423 case $cross_compiling:$ac_tool_warned in 3424yes:) 3425{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3426$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3427ac_tool_warned=yes ;; 3428esac 3429 CC=$ac_ct_CC 3430 fi 3431else 3432 CC="$ac_cv_prog_CC" 3433fi 3434 3435if test -z "$CC"; then 3436 if test -n "$ac_tool_prefix"; then 3437 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3438set dummy ${ac_tool_prefix}cc; ac_word=$2 3439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3440$as_echo_n "checking for $ac_word... " >&6; } 3441if ${ac_cv_prog_CC+:} false; then : 3442 $as_echo_n "(cached) " >&6 3443else 3444 if test -n "$CC"; then 3445 ac_cv_prog_CC="$CC" # Let the user override the test. 3446else 3447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3448for as_dir in $PATH 3449do 3450 IFS=$as_save_IFS 3451 test -z "$as_dir" && as_dir=. 3452 for ac_exec_ext in '' $ac_executable_extensions; do 3453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3454 ac_cv_prog_CC="${ac_tool_prefix}cc" 3455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3456 break 2 3457 fi 3458done 3459 done 3460IFS=$as_save_IFS 3461 3462fi 3463fi 3464CC=$ac_cv_prog_CC 3465if test -n "$CC"; then 3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3467$as_echo "$CC" >&6; } 3468else 3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3470$as_echo "no" >&6; } 3471fi 3472 3473 3474 fi 3475fi 3476if test -z "$CC"; then 3477 # Extract the first word of "cc", so it can be a program name with args. 3478set dummy cc; ac_word=$2 3479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3480$as_echo_n "checking for $ac_word... " >&6; } 3481if ${ac_cv_prog_CC+:} false; then : 3482 $as_echo_n "(cached) " >&6 3483else 3484 if test -n "$CC"; then 3485 ac_cv_prog_CC="$CC" # Let the user override the test. 3486else 3487 ac_prog_rejected=no 3488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3489for as_dir in $PATH 3490do 3491 IFS=$as_save_IFS 3492 test -z "$as_dir" && as_dir=. 3493 for ac_exec_ext in '' $ac_executable_extensions; do 3494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3495 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3496 ac_prog_rejected=yes 3497 continue 3498 fi 3499 ac_cv_prog_CC="cc" 3500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3501 break 2 3502 fi 3503done 3504 done 3505IFS=$as_save_IFS 3506 3507if test $ac_prog_rejected = yes; then 3508 # We found a bogon in the path, so make sure we never use it. 3509 set dummy $ac_cv_prog_CC 3510 shift 3511 if test $# != 0; then 3512 # We chose a different compiler from the bogus one. 3513 # However, it has the same basename, so the bogon will be chosen 3514 # first if we set CC to just the basename; use the full file name. 3515 shift 3516 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3517 fi 3518fi 3519fi 3520fi 3521CC=$ac_cv_prog_CC 3522if test -n "$CC"; then 3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3524$as_echo "$CC" >&6; } 3525else 3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3527$as_echo "no" >&6; } 3528fi 3529 3530 3531fi 3532if test -z "$CC"; then 3533 if test -n "$ac_tool_prefix"; then 3534 for ac_prog in cl.exe 3535 do 3536 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3537set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3539$as_echo_n "checking for $ac_word... " >&6; } 3540if ${ac_cv_prog_CC+:} false; then : 3541 $as_echo_n "(cached) " >&6 3542else 3543 if test -n "$CC"; then 3544 ac_cv_prog_CC="$CC" # Let the user override the test. 3545else 3546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3547for as_dir in $PATH 3548do 3549 IFS=$as_save_IFS 3550 test -z "$as_dir" && as_dir=. 3551 for ac_exec_ext in '' $ac_executable_extensions; do 3552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3553 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3555 break 2 3556 fi 3557done 3558 done 3559IFS=$as_save_IFS 3560 3561fi 3562fi 3563CC=$ac_cv_prog_CC 3564if test -n "$CC"; then 3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3566$as_echo "$CC" >&6; } 3567else 3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3569$as_echo "no" >&6; } 3570fi 3571 3572 3573 test -n "$CC" && break 3574 done 3575fi 3576if test -z "$CC"; then 3577 ac_ct_CC=$CC 3578 for ac_prog in cl.exe 3579do 3580 # Extract the first word of "$ac_prog", so it can be a program name with args. 3581set dummy $ac_prog; 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_ac_ct_CC+:} false; then : 3585 $as_echo_n "(cached) " >&6 3586else 3587 if test -n "$ac_ct_CC"; then 3588 ac_cv_prog_ac_ct_CC="$ac_ct_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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3597 ac_cv_prog_ac_ct_CC="$ac_prog" 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 3607ac_ct_CC=$ac_cv_prog_ac_ct_CC 3608if test -n "$ac_ct_CC"; then 3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3610$as_echo "$ac_ct_CC" >&6; } 3611else 3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3613$as_echo "no" >&6; } 3614fi 3615 3616 3617 test -n "$ac_ct_CC" && break 3618done 3619 3620 if test "x$ac_ct_CC" = x; then 3621 CC="" 3622 else 3623 case $cross_compiling:$ac_tool_warned in 3624yes:) 3625{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3626$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3627ac_tool_warned=yes ;; 3628esac 3629 CC=$ac_ct_CC 3630 fi 3631fi 3632 3633fi 3634 3635 3636test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3638as_fn_error $? "no acceptable C compiler found in \$PATH 3639See \`config.log' for more details" "$LINENO" 5; } 3640 3641# Provide some information about the compiler. 3642$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3643set X $ac_compile 3644ac_compiler=$2 3645for ac_option in --version -v -V -qversion; do 3646 { { ac_try="$ac_compiler $ac_option >&5" 3647case "(($ac_try" in 3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3649 *) ac_try_echo=$ac_try;; 3650esac 3651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3652$as_echo "$ac_try_echo"; } >&5 3653 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3654 ac_status=$? 3655 if test -s conftest.err; then 3656 sed '10a\ 3657... rest of stderr output deleted ... 3658 10q' conftest.err >conftest.er1 3659 cat conftest.er1 >&5 3660 fi 3661 rm -f conftest.er1 conftest.err 3662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3663 test $ac_status = 0; } 3664done 3665 3666cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3667/* end confdefs.h. */ 3668 3669int 3670main () 3671{ 3672 3673 ; 3674 return 0; 3675} 3676_ACEOF 3677ac_clean_files_save=$ac_clean_files 3678ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3679# Try to create an executable without -o first, disregard a.out. 3680# It will help us diagnose broken compilers, and finding out an intuition 3681# of exeext. 3682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3683$as_echo_n "checking whether the C compiler works... " >&6; } 3684ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3685 3686# The possible output files: 3687ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3688 3689ac_rmfiles= 3690for ac_file in $ac_files 3691do 3692 case $ac_file in 3693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3694 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3695 esac 3696done 3697rm -f $ac_rmfiles 3698 3699if { { ac_try="$ac_link_default" 3700case "(($ac_try" in 3701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3702 *) ac_try_echo=$ac_try;; 3703esac 3704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3705$as_echo "$ac_try_echo"; } >&5 3706 (eval "$ac_link_default") 2>&5 3707 ac_status=$? 3708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3709 test $ac_status = 0; }; then : 3710 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3711# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3712# in a Makefile. We should not override ac_cv_exeext if it was cached, 3713# so that the user can short-circuit this test for compilers unknown to 3714# Autoconf. 3715for ac_file in $ac_files '' 3716do 3717 test -f "$ac_file" || continue 3718 case $ac_file in 3719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3720 ;; 3721 [ab].out ) 3722 # We found the default executable, but exeext='' is most 3723 # certainly right. 3724 break;; 3725 *.* ) 3726 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3727 then :; else 3728 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3729 fi 3730 # We set ac_cv_exeext here because the later test for it is not 3731 # safe: cross compilers may not add the suffix if given an `-o' 3732 # argument, so we may need to know it at that point already. 3733 # Even if this section looks crufty: it has the advantage of 3734 # actually working. 3735 break;; 3736 * ) 3737 break;; 3738 esac 3739done 3740test "$ac_cv_exeext" = no && ac_cv_exeext= 3741 3742else 3743 ac_file='' 3744fi 3745if test -z "$ac_file"; then : 3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3747$as_echo "no" >&6; } 3748$as_echo "$as_me: failed program was:" >&5 3749sed 's/^/| /' conftest.$ac_ext >&5 3750 3751{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3752$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3753as_fn_error 77 "C compiler cannot create executables 3754See \`config.log' for more details" "$LINENO" 5; } 3755else 3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3757$as_echo "yes" >&6; } 3758fi 3759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3760$as_echo_n "checking for C compiler default output file name... " >&6; } 3761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3762$as_echo "$ac_file" >&6; } 3763ac_exeext=$ac_cv_exeext 3764 3765rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3766ac_clean_files=$ac_clean_files_save 3767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3768$as_echo_n "checking for suffix of executables... " >&6; } 3769if { { ac_try="$ac_link" 3770case "(($ac_try" in 3771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3772 *) ac_try_echo=$ac_try;; 3773esac 3774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3775$as_echo "$ac_try_echo"; } >&5 3776 (eval "$ac_link") 2>&5 3777 ac_status=$? 3778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3779 test $ac_status = 0; }; then : 3780 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3781# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3782# work properly (i.e., refer to `conftest.exe'), while it won't with 3783# `rm'. 3784for ac_file in conftest.exe conftest conftest.*; do 3785 test -f "$ac_file" || continue 3786 case $ac_file in 3787 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3788 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3789 break;; 3790 * ) break;; 3791 esac 3792done 3793else 3794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3795$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3796as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3797See \`config.log' for more details" "$LINENO" 5; } 3798fi 3799rm -f conftest conftest$ac_cv_exeext 3800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3801$as_echo "$ac_cv_exeext" >&6; } 3802 3803rm -f conftest.$ac_ext 3804EXEEXT=$ac_cv_exeext 3805ac_exeext=$EXEEXT 3806cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3807/* end confdefs.h. */ 3808#include <stdio.h> 3809int 3810main () 3811{ 3812FILE *f = fopen ("conftest.out", "w"); 3813 return ferror (f) || fclose (f) != 0; 3814 3815 ; 3816 return 0; 3817} 3818_ACEOF 3819ac_clean_files="$ac_clean_files conftest.out" 3820# Check that the compiler produces executables we can run. If not, either 3821# the compiler is broken, or we cross compile. 3822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3823$as_echo_n "checking whether we are cross compiling... " >&6; } 3824if test "$cross_compiling" != yes; then 3825 { { ac_try="$ac_link" 3826case "(($ac_try" in 3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3828 *) ac_try_echo=$ac_try;; 3829esac 3830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3831$as_echo "$ac_try_echo"; } >&5 3832 (eval "$ac_link") 2>&5 3833 ac_status=$? 3834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3835 test $ac_status = 0; } 3836 if { ac_try='./conftest$ac_cv_exeext' 3837 { { case "(($ac_try" in 3838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3839 *) ac_try_echo=$ac_try;; 3840esac 3841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3842$as_echo "$ac_try_echo"; } >&5 3843 (eval "$ac_try") 2>&5 3844 ac_status=$? 3845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3846 test $ac_status = 0; }; }; then 3847 cross_compiling=no 3848 else 3849 if test "$cross_compiling" = maybe; then 3850 cross_compiling=yes 3851 else 3852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3853$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3854as_fn_error $? "cannot run C compiled programs. 3855If you meant to cross compile, use \`--host'. 3856See \`config.log' for more details" "$LINENO" 5; } 3857 fi 3858 fi 3859fi 3860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3861$as_echo "$cross_compiling" >&6; } 3862 3863rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3864ac_clean_files=$ac_clean_files_save 3865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3866$as_echo_n "checking for suffix of object files... " >&6; } 3867if ${ac_cv_objext+:} false; then : 3868 $as_echo_n "(cached) " >&6 3869else 3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3871/* end confdefs.h. */ 3872 3873int 3874main () 3875{ 3876 3877 ; 3878 return 0; 3879} 3880_ACEOF 3881rm -f conftest.o conftest.obj 3882if { { ac_try="$ac_compile" 3883case "(($ac_try" in 3884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3885 *) ac_try_echo=$ac_try;; 3886esac 3887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3888$as_echo "$ac_try_echo"; } >&5 3889 (eval "$ac_compile") 2>&5 3890 ac_status=$? 3891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3892 test $ac_status = 0; }; then : 3893 for ac_file in conftest.o conftest.obj conftest.*; do 3894 test -f "$ac_file" || continue; 3895 case $ac_file in 3896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3897 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3898 break;; 3899 esac 3900done 3901else 3902 $as_echo "$as_me: failed program was:" >&5 3903sed 's/^/| /' conftest.$ac_ext >&5 3904 3905{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3906$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3907as_fn_error $? "cannot compute suffix of object files: cannot compile 3908See \`config.log' for more details" "$LINENO" 5; } 3909fi 3910rm -f conftest.$ac_cv_objext conftest.$ac_ext 3911fi 3912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3913$as_echo "$ac_cv_objext" >&6; } 3914OBJEXT=$ac_cv_objext 3915ac_objext=$OBJEXT 3916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3917$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3918if ${ac_cv_c_compiler_gnu+:} false; then : 3919 $as_echo_n "(cached) " >&6 3920else 3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3922/* end confdefs.h. */ 3923 3924int 3925main () 3926{ 3927#ifndef __GNUC__ 3928 choke me 3929#endif 3930 3931 ; 3932 return 0; 3933} 3934_ACEOF 3935if ac_fn_c_try_compile "$LINENO"; then : 3936 ac_compiler_gnu=yes 3937else 3938 ac_compiler_gnu=no 3939fi 3940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3941ac_cv_c_compiler_gnu=$ac_compiler_gnu 3942 3943fi 3944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3945$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3946if test $ac_compiler_gnu = yes; then 3947 GCC=yes 3948else 3949 GCC= 3950fi 3951ac_test_CFLAGS=${CFLAGS+set} 3952ac_save_CFLAGS=$CFLAGS 3953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3954$as_echo_n "checking whether $CC accepts -g... " >&6; } 3955if ${ac_cv_prog_cc_g+:} false; then : 3956 $as_echo_n "(cached) " >&6 3957else 3958 ac_save_c_werror_flag=$ac_c_werror_flag 3959 ac_c_werror_flag=yes 3960 ac_cv_prog_cc_g=no 3961 CFLAGS="-g" 3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3963/* end confdefs.h. */ 3964 3965int 3966main () 3967{ 3968 3969 ; 3970 return 0; 3971} 3972_ACEOF 3973if ac_fn_c_try_compile "$LINENO"; then : 3974 ac_cv_prog_cc_g=yes 3975else 3976 CFLAGS="" 3977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3978/* end confdefs.h. */ 3979 3980int 3981main () 3982{ 3983 3984 ; 3985 return 0; 3986} 3987_ACEOF 3988if ac_fn_c_try_compile "$LINENO"; then : 3989 3990else 3991 ac_c_werror_flag=$ac_save_c_werror_flag 3992 CFLAGS="-g" 3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3994/* end confdefs.h. */ 3995 3996int 3997main () 3998{ 3999 4000 ; 4001 return 0; 4002} 4003_ACEOF 4004if ac_fn_c_try_compile "$LINENO"; then : 4005 ac_cv_prog_cc_g=yes 4006fi 4007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4008fi 4009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4010fi 4011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4012 ac_c_werror_flag=$ac_save_c_werror_flag 4013fi 4014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4015$as_echo "$ac_cv_prog_cc_g" >&6; } 4016if test "$ac_test_CFLAGS" = set; then 4017 CFLAGS=$ac_save_CFLAGS 4018elif test $ac_cv_prog_cc_g = yes; then 4019 if test "$GCC" = yes; then 4020 CFLAGS="-g -O2" 4021 else 4022 CFLAGS="-g" 4023 fi 4024else 4025 if test "$GCC" = yes; then 4026 CFLAGS="-O2" 4027 else 4028 CFLAGS= 4029 fi 4030fi 4031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4032$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4033if ${ac_cv_prog_cc_c89+:} false; then : 4034 $as_echo_n "(cached) " >&6 4035else 4036 ac_cv_prog_cc_c89=no 4037ac_save_CC=$CC 4038cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4039/* end confdefs.h. */ 4040#include <stdarg.h> 4041#include <stdio.h> 4042#include <sys/types.h> 4043#include <sys/stat.h> 4044/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4045struct buf { int x; }; 4046FILE * (*rcsopen) (struct buf *, struct stat *, int); 4047static char *e (p, i) 4048 char **p; 4049 int i; 4050{ 4051 return p[i]; 4052} 4053static char *f (char * (*g) (char **, int), char **p, ...) 4054{ 4055 char *s; 4056 va_list v; 4057 va_start (v,p); 4058 s = g (p, va_arg (v,int)); 4059 va_end (v); 4060 return s; 4061} 4062 4063/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4064 function prototypes and stuff, but not '\xHH' hex character constants. 4065 These don't provoke an error unfortunately, instead are silently treated 4066 as 'x'. The following induces an error, until -std is added to get 4067 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4068 array size at least. It's necessary to write '\x00'==0 to get something 4069 that's true only with -std. */ 4070int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4071 4072/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4073 inside strings and character constants. */ 4074#define FOO(x) 'x' 4075int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4076 4077int test (int i, double x); 4078struct s1 {int (*f) (int a);}; 4079struct s2 {int (*f) (double a);}; 4080int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4081int argc; 4082char **argv; 4083int 4084main () 4085{ 4086return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4087 ; 4088 return 0; 4089} 4090_ACEOF 4091for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4092 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4093do 4094 CC="$ac_save_CC $ac_arg" 4095 if ac_fn_c_try_compile "$LINENO"; then : 4096 ac_cv_prog_cc_c89=$ac_arg 4097fi 4098rm -f core conftest.err conftest.$ac_objext 4099 test "x$ac_cv_prog_cc_c89" != "xno" && break 4100done 4101rm -f conftest.$ac_ext 4102CC=$ac_save_CC 4103 4104fi 4105# AC_CACHE_VAL 4106case "x$ac_cv_prog_cc_c89" in 4107 x) 4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4109$as_echo "none needed" >&6; } ;; 4110 xno) 4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4112$as_echo "unsupported" >&6; } ;; 4113 *) 4114 CC="$CC $ac_cv_prog_cc_c89" 4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4116$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4117esac 4118if test "x$ac_cv_prog_cc_c89" != xno; then : 4119 4120fi 4121 4122ac_ext=c 4123ac_cpp='$CPP $CPPFLAGS' 4124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4126ac_compiler_gnu=$ac_cv_c_compiler_gnu 4127DEPDIR="${am__leading_dot}deps" 4128 4129ac_config_commands="$ac_config_commands depfiles" 4130 4131 4132am_make=${MAKE-make} 4133cat > confinc << 'END' 4134am__doit: 4135 @echo this is the am__doit target 4136.PHONY: am__doit 4137END 4138# If we don't find an include directive, just comment out the code. 4139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4140$as_echo_n "checking for style of include used by $am_make... " >&6; } 4141am__include="#" 4142am__quote= 4143_am_result=none 4144# First try GNU make style include. 4145echo "include confinc" > confmf 4146# Ignore all kinds of additional output from `make'. 4147case `$am_make -s -f confmf 2> /dev/null` in #( 4148*the\ am__doit\ target*) 4149 am__include=include 4150 am__quote= 4151 _am_result=GNU 4152 ;; 4153esac 4154# Now try BSD make style include. 4155if test "$am__include" = "#"; then 4156 echo '.include "confinc"' > confmf 4157 case `$am_make -s -f confmf 2> /dev/null` in #( 4158 *the\ am__doit\ target*) 4159 am__include=.include 4160 am__quote="\"" 4161 _am_result=BSD 4162 ;; 4163 esac 4164fi 4165 4166 4167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4168$as_echo "$_am_result" >&6; } 4169rm -f confinc confmf 4170 4171# Check whether --enable-dependency-tracking was given. 4172if test "${enable_dependency_tracking+set}" = set; then : 4173 enableval=$enable_dependency_tracking; 4174fi 4175 4176if test "x$enable_dependency_tracking" != xno; then 4177 am_depcomp="$ac_aux_dir/depcomp" 4178 AMDEPBACKSLASH='\' 4179fi 4180 if test "x$enable_dependency_tracking" != xno; then 4181 AMDEP_TRUE= 4182 AMDEP_FALSE='#' 4183else 4184 AMDEP_TRUE='#' 4185 AMDEP_FALSE= 4186fi 4187 4188 4189 4190depcc="$CC" am_compiler_list= 4191 4192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4193$as_echo_n "checking dependency style of $depcc... " >&6; } 4194if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4195 $as_echo_n "(cached) " >&6 4196else 4197 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4198 # We make a subdir and do the tests there. Otherwise we can end up 4199 # making bogus files that we don't know about and never remove. For 4200 # instance it was reported that on HP-UX the gcc test will end up 4201 # making a dummy file named `D' -- because `-MD' means `put the output 4202 # in D'. 4203 mkdir conftest.dir 4204 # Copy depcomp to subdir because otherwise we won't find it if we're 4205 # using a relative directory. 4206 cp "$am_depcomp" conftest.dir 4207 cd conftest.dir 4208 # We will build objects and dependencies in a subdirectory because 4209 # it helps to detect inapplicable dependency modes. For instance 4210 # both Tru64's cc and ICC support -MD to output dependencies as a 4211 # side effect of compilation, but ICC will put the dependencies in 4212 # the current directory while Tru64 will put them in the object 4213 # directory. 4214 mkdir sub 4215 4216 am_cv_CC_dependencies_compiler_type=none 4217 if test "$am_compiler_list" = ""; then 4218 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4219 fi 4220 am__universal=false 4221 case " $depcc " in #( 4222 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4223 esac 4224 4225 for depmode in $am_compiler_list; do 4226 # Setup a source with many dependencies, because some compilers 4227 # like to wrap large dependency lists on column 80 (with \), and 4228 # we should not choose a depcomp mode which is confused by this. 4229 # 4230 # We need to recreate these files for each test, as the compiler may 4231 # overwrite some of them when testing with obscure command lines. 4232 # This happens at least with the AIX C compiler. 4233 : > sub/conftest.c 4234 for i in 1 2 3 4 5 6; do 4235 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4236 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4237 # Solaris 8's {/usr,}/bin/sh. 4238 touch sub/conftst$i.h 4239 done 4240 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4241 4242 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4243 # mode. It turns out that the SunPro C++ compiler does not properly 4244 # handle `-M -o', and we need to detect this. Also, some Intel 4245 # versions had trouble with output in subdirs 4246 am__obj=sub/conftest.${OBJEXT-o} 4247 am__minus_obj="-o $am__obj" 4248 case $depmode in 4249 gcc) 4250 # This depmode causes a compiler race in universal mode. 4251 test "$am__universal" = false || continue 4252 ;; 4253 nosideeffect) 4254 # after this tag, mechanisms are not by side-effect, so they'll 4255 # only be used when explicitly requested 4256 if test "x$enable_dependency_tracking" = xyes; then 4257 continue 4258 else 4259 break 4260 fi 4261 ;; 4262 msvisualcpp | msvcmsys) 4263 # This compiler won't grok `-c -o', but also, the minuso test has 4264 # not run yet. These depmodes are late enough in the game, and 4265 # so weak that their functioning should not be impacted. 4266 am__obj=conftest.${OBJEXT-o} 4267 am__minus_obj= 4268 ;; 4269 none) break ;; 4270 esac 4271 if depmode=$depmode \ 4272 source=sub/conftest.c object=$am__obj \ 4273 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4274 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4275 >/dev/null 2>conftest.err && 4276 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4277 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4278 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4279 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4280 # icc doesn't choke on unknown options, it will just issue warnings 4281 # or remarks (even with -Werror). So we grep stderr for any message 4282 # that says an option was ignored or not supported. 4283 # When given -MP, icc 7.0 and 7.1 complain thusly: 4284 # icc: Command line warning: ignoring option '-M'; no argument required 4285 # The diagnosis changed in icc 8.0: 4286 # icc: Command line remark: option '-MP' not supported 4287 if (grep 'ignoring option' conftest.err || 4288 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4289 am_cv_CC_dependencies_compiler_type=$depmode 4290 break 4291 fi 4292 fi 4293 done 4294 4295 cd .. 4296 rm -rf conftest.dir 4297else 4298 am_cv_CC_dependencies_compiler_type=none 4299fi 4300 4301fi 4302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4303$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4304CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4305 4306 if 4307 test "x$enable_dependency_tracking" != xno \ 4308 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4309 am__fastdepCC_TRUE= 4310 am__fastdepCC_FALSE='#' 4311else 4312 am__fastdepCC_TRUE='#' 4313 am__fastdepCC_FALSE= 4314fi 4315 4316 4317if test "x$CC" != xcc; then 4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 4319$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 4320else 4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 4322$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 4323fi 4324set dummy $CC; ac_cc=`$as_echo "$2" | 4325 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 4326if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : 4327 $as_echo_n "(cached) " >&6 4328else 4329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4330/* end confdefs.h. */ 4331 4332int 4333main () 4334{ 4335 4336 ; 4337 return 0; 4338} 4339_ACEOF 4340# Make sure it works both with $CC and with simple cc. 4341# We do the test twice because some compilers refuse to overwrite an 4342# existing .o file with -o, though they will create one. 4343ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 4344rm -f conftest2.* 4345if { { case "(($ac_try" in 4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4347 *) ac_try_echo=$ac_try;; 4348esac 4349eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4350$as_echo "$ac_try_echo"; } >&5 4351 (eval "$ac_try") 2>&5 4352 ac_status=$? 4353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4354 test $ac_status = 0; } && 4355 test -f conftest2.$ac_objext && { { case "(($ac_try" in 4356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4357 *) ac_try_echo=$ac_try;; 4358esac 4359eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4360$as_echo "$ac_try_echo"; } >&5 4361 (eval "$ac_try") 2>&5 4362 ac_status=$? 4363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4364 test $ac_status = 0; }; 4365then 4366 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 4367 if test "x$CC" != xcc; then 4368 # Test first that cc exists at all. 4369 if { ac_try='cc -c conftest.$ac_ext >&5' 4370 { { case "(($ac_try" in 4371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4372 *) ac_try_echo=$ac_try;; 4373esac 4374eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4375$as_echo "$ac_try_echo"; } >&5 4376 (eval "$ac_try") 2>&5 4377 ac_status=$? 4378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4379 test $ac_status = 0; }; }; then 4380 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 4381 rm -f conftest2.* 4382 if { { case "(($ac_try" in 4383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4384 *) ac_try_echo=$ac_try;; 4385esac 4386eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4387$as_echo "$ac_try_echo"; } >&5 4388 (eval "$ac_try") 2>&5 4389 ac_status=$? 4390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4391 test $ac_status = 0; } && 4392 test -f conftest2.$ac_objext && { { case "(($ac_try" in 4393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4394 *) ac_try_echo=$ac_try;; 4395esac 4396eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4397$as_echo "$ac_try_echo"; } >&5 4398 (eval "$ac_try") 2>&5 4399 ac_status=$? 4400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4401 test $ac_status = 0; }; 4402 then 4403 # cc works too. 4404 : 4405 else 4406 # cc exists but doesn't like -o. 4407 eval ac_cv_prog_cc_${ac_cc}_c_o=no 4408 fi 4409 fi 4410 fi 4411else 4412 eval ac_cv_prog_cc_${ac_cc}_c_o=no 4413fi 4414rm -f core conftest* 4415 4416fi 4417if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4419$as_echo "yes" >&6; } 4420else 4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4422$as_echo "no" >&6; } 4423 4424$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 4425 4426fi 4427 4428# FIXME: we rely on the cache variable name because 4429# there is no other way. 4430set dummy $CC 4431am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 4432eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 4433if test "$am_t" != yes; then 4434 # Losing compiler, so override with the script. 4435 # FIXME: It is wrong to rewrite CC. 4436 # But if we don't then we get into trouble of one sort or another. 4437 # A longer-term fix would be to have automake use am__CC in this case, 4438 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4439 CC="$am_aux_dir/compile $CC" 4440fi 4441 4442 4443 4444 4445 ansi= 4446 if test -z "$ansi"; then 4447 msg="for C compiler warning flags" 4448 else 4449 msg="for C compiler warning and ANSI conformance flags" 4450 fi 4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $msg" >&5 4452$as_echo_n "checking $msg... " >&6; } 4453if ${vl_cv_prog_cc_warnings+:} false; then : 4454 $as_echo_n "(cached) " >&6 4455else 4456 4457 if test -n "$CC"; then 4458 cat > conftest.c <<EOF 4459int main(int argc, char **argv) { return 0; } 4460EOF 4461 4462 if test "$GCC" = "yes"; then 4463 if test -z "$ansi"; then 4464 vl_cv_prog_cc_warnings="-Wall -W" 4465 else 4466 vl_cv_prog_cc_warnings="-Wall -W -ansi -pedantic" 4467 fi 4468 4469 4470 elif $CC -V 2>&1 | grep -i "WorkShop" > /dev/null 2>&1 && 4471 $CC -c -v -Xc conftest.c > /dev/null 2>&1 && 4472 test -f conftest.o; then 4473 if test -z "$ansi"; then 4474 vl_cv_prog_cc_warnings="-v" 4475 else 4476 vl_cv_prog_cc_warnings="-v -Xc" 4477 fi 4478 4479 elif $CC -V 2>&1 | grep -i "Digital UNIX Compiler" > /dev/null 2>&1 && 4480 $CC -c -verbose -w0 -warnprotos -std1 conftest.c > /dev/null 2>&1 && 4481 test -f conftest.o; then 4482 if test -z "$ansi"; then 4483 vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos" 4484 else 4485 vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos -std1" 4486 fi 4487 4488 elif $CC 2>&1 | grep -i "C for AIX Compiler" > /dev/null 2>&1 && 4489 $CC -c -qlanglvl=ansi -qinfo=all conftest.c > /dev/null 2>&1 && 4490 test -f conftest.o; then 4491 if test -z "$ansi"; then 4492 vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" 4493 else 4494 vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd -qlanglvl=ansi" 4495 fi 4496 4497 elif $CC -version 2>&1 | grep -i "MIPSpro Compilers" > /dev/null 2>&1 && 4498 $CC -c -fullwarn -ansi -ansiE conftest.c > /dev/null 2>&1 && 4499 test -f conftest.o; then 4500 if test -z "$ansi"; then 4501 vl_cv_prog_cc_warnings="-fullwarn" 4502 else 4503 vl_cv_prog_cc_warnings="-fullwarn -ansi -ansiE" 4504 fi 4505 4506 elif what $CC 2>&1 | grep -i "HP C Compiler" > /dev/null 2>&1 && 4507 $CC -c -Aa +w1 conftest.c > /dev/null 2>&1 && 4508 test -f conftest.o; then 4509 if test -z "$ansi"; then 4510 vl_cv_prog_cc_warnings="+w1" 4511 else 4512 vl_cv_prog_cc_warnings="+w1 -Aa" 4513 fi 4514 4515 elif $CC -V 2>&1 | grep "/SX" > /dev/null 2>&1 && 4516 $CC -c -pvctl,fullmsg -Xc conftest.c > /dev/null 2>&1 && 4517 test -f conftest.o; then 4518 if test -z "$ansi"; then 4519 vl_cv_prog_cc_warnings="-pvctl,fullmsg" 4520 else 4521 vl_cv_prog_cc_warnings="-pvctl,fullmsg -Xc" 4522 fi 4523 4524 elif $CC -V 2>&1 | grep -i "Cray" > /dev/null 2>&1 && 4525 $CC -c -h msglevel 2 conftest.c > /dev/null 2>&1 && 4526 test -f conftest.o; then 4527 if test -z "$ansi"; then 4528 vl_cv_prog_cc_warnings="-h msglevel 2" 4529 else 4530 vl_cv_prog_cc_warnings="-h msglevel 2 -h conform" 4531 fi 4532 4533 fi 4534 rm -f conftest.* 4535 fi 4536 if test -n "$vl_cv_prog_cc_warnings"; then 4537 CFLAGS="$CFLAGS $vl_cv_prog_cc_warnings" 4538 else 4539 vl_cv_prog_cc_warnings="unknown" 4540 fi 4541 4542fi 4543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_prog_cc_warnings" >&5 4544$as_echo "$vl_cv_prog_cc_warnings" >&6; } 4545 4546 4547 4548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4549$as_echo_n "checking whether ln -s works... " >&6; } 4550LN_S=$as_ln_s 4551if test "$LN_S" = "ln -s"; then 4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4553$as_echo "yes" >&6; } 4554else 4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4556$as_echo "no, using $LN_S" >&6; } 4557fi 4558 4559 4560 4561 4562 4563case `pwd` in 4564 *\ * | *\ *) 4565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4566$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4567esac 4568 4569 4570 4571macro_version='2.4' 4572macro_revision='1.3293' 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586ltmain="$ac_aux_dir/ltmain.sh" 4587 4588# Backslashify metacharacters that are still active within 4589# double-quoted strings. 4590sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4591 4592# Same as above, but do not quote variable references. 4593double_quote_subst='s/\(["`\\]\)/\\\1/g' 4594 4595# Sed substitution to delay expansion of an escaped shell variable in a 4596# double_quote_subst'ed string. 4597delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4598 4599# Sed substitution to delay expansion of an escaped single quote. 4600delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4601 4602# Sed substitution to avoid accidental globbing in evaled expressions 4603no_glob_subst='s/\*/\\\*/g' 4604 4605ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4606ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4607ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4608 4609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4610$as_echo_n "checking how to print strings... " >&6; } 4611# Test print first, because it will be a builtin if present. 4612if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4613 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4614 ECHO='print -r --' 4615elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4616 ECHO='printf %s\n' 4617else 4618 # Use this function as a fallback that always works. 4619 func_fallback_echo () 4620 { 4621 eval 'cat <<_LTECHO_EOF 4622$1 4623_LTECHO_EOF' 4624 } 4625 ECHO='func_fallback_echo' 4626fi 4627 4628# func_echo_all arg... 4629# Invoke $ECHO with all args, space-separated. 4630func_echo_all () 4631{ 4632 $ECHO "" 4633} 4634 4635case "$ECHO" in 4636 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4637$as_echo "printf" >&6; } ;; 4638 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4639$as_echo "print -r" >&6; } ;; 4640 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4641$as_echo "cat" >&6; } ;; 4642esac 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4658$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4659if ${ac_cv_path_SED+:} false; then : 4660 $as_echo_n "(cached) " >&6 4661else 4662 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4663 for ac_i in 1 2 3 4 5 6 7; do 4664 ac_script="$ac_script$as_nl$ac_script" 4665 done 4666 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4667 { ac_script=; unset ac_script;} 4668 if test -z "$SED"; then 4669 ac_path_SED_found=false 4670 # Loop through the user's path and test for each of PROGNAME-LIST 4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4672for as_dir in $PATH 4673do 4674 IFS=$as_save_IFS 4675 test -z "$as_dir" && as_dir=. 4676 for ac_prog in sed gsed; do 4677 for ac_exec_ext in '' $ac_executable_extensions; do 4678 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4679 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4680# Check for GNU ac_path_SED and select it if it is found. 4681 # Check for GNU $ac_path_SED 4682case `"$ac_path_SED" --version 2>&1` in 4683*GNU*) 4684 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4685*) 4686 ac_count=0 4687 $as_echo_n 0123456789 >"conftest.in" 4688 while : 4689 do 4690 cat "conftest.in" "conftest.in" >"conftest.tmp" 4691 mv "conftest.tmp" "conftest.in" 4692 cp "conftest.in" "conftest.nl" 4693 $as_echo '' >> "conftest.nl" 4694 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4695 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4696 as_fn_arith $ac_count + 1 && ac_count=$as_val 4697 if test $ac_count -gt ${ac_path_SED_max-0}; then 4698 # Best one so far, save it but keep looking for a better one 4699 ac_cv_path_SED="$ac_path_SED" 4700 ac_path_SED_max=$ac_count 4701 fi 4702 # 10*(2^10) chars as input seems more than enough 4703 test $ac_count -gt 10 && break 4704 done 4705 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4706esac 4707 4708 $ac_path_SED_found && break 3 4709 done 4710 done 4711 done 4712IFS=$as_save_IFS 4713 if test -z "$ac_cv_path_SED"; then 4714 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4715 fi 4716else 4717 ac_cv_path_SED=$SED 4718fi 4719 4720fi 4721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4722$as_echo "$ac_cv_path_SED" >&6; } 4723 SED="$ac_cv_path_SED" 4724 rm -f conftest.sed 4725 4726test -z "$SED" && SED=sed 4727Xsed="$SED -e 1s/^X//" 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4740$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4741if ${ac_cv_path_GREP+:} false; then : 4742 $as_echo_n "(cached) " >&6 4743else 4744 if test -z "$GREP"; then 4745 ac_path_GREP_found=false 4746 # Loop through the user's path and test for each of PROGNAME-LIST 4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4748for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4749do 4750 IFS=$as_save_IFS 4751 test -z "$as_dir" && as_dir=. 4752 for ac_prog in grep ggrep; do 4753 for ac_exec_ext in '' $ac_executable_extensions; do 4754 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4755 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4756# Check for GNU ac_path_GREP and select it if it is found. 4757 # Check for GNU $ac_path_GREP 4758case `"$ac_path_GREP" --version 2>&1` in 4759*GNU*) 4760 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4761*) 4762 ac_count=0 4763 $as_echo_n 0123456789 >"conftest.in" 4764 while : 4765 do 4766 cat "conftest.in" "conftest.in" >"conftest.tmp" 4767 mv "conftest.tmp" "conftest.in" 4768 cp "conftest.in" "conftest.nl" 4769 $as_echo 'GREP' >> "conftest.nl" 4770 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4771 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4772 as_fn_arith $ac_count + 1 && ac_count=$as_val 4773 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4774 # Best one so far, save it but keep looking for a better one 4775 ac_cv_path_GREP="$ac_path_GREP" 4776 ac_path_GREP_max=$ac_count 4777 fi 4778 # 10*(2^10) chars as input seems more than enough 4779 test $ac_count -gt 10 && break 4780 done 4781 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4782esac 4783 4784 $ac_path_GREP_found && break 3 4785 done 4786 done 4787 done 4788IFS=$as_save_IFS 4789 if test -z "$ac_cv_path_GREP"; then 4790 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4791 fi 4792else 4793 ac_cv_path_GREP=$GREP 4794fi 4795 4796fi 4797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4798$as_echo "$ac_cv_path_GREP" >&6; } 4799 GREP="$ac_cv_path_GREP" 4800 4801 4802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4803$as_echo_n "checking for egrep... " >&6; } 4804if ${ac_cv_path_EGREP+:} false; then : 4805 $as_echo_n "(cached) " >&6 4806else 4807 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4808 then ac_cv_path_EGREP="$GREP -E" 4809 else 4810 if test -z "$EGREP"; then 4811 ac_path_EGREP_found=false 4812 # Loop through the user's path and test for each of PROGNAME-LIST 4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4814for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4815do 4816 IFS=$as_save_IFS 4817 test -z "$as_dir" && as_dir=. 4818 for ac_prog in egrep; do 4819 for ac_exec_ext in '' $ac_executable_extensions; do 4820 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4821 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4822# Check for GNU ac_path_EGREP and select it if it is found. 4823 # Check for GNU $ac_path_EGREP 4824case `"$ac_path_EGREP" --version 2>&1` in 4825*GNU*) 4826 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4827*) 4828 ac_count=0 4829 $as_echo_n 0123456789 >"conftest.in" 4830 while : 4831 do 4832 cat "conftest.in" "conftest.in" >"conftest.tmp" 4833 mv "conftest.tmp" "conftest.in" 4834 cp "conftest.in" "conftest.nl" 4835 $as_echo 'EGREP' >> "conftest.nl" 4836 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4837 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4838 as_fn_arith $ac_count + 1 && ac_count=$as_val 4839 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4840 # Best one so far, save it but keep looking for a better one 4841 ac_cv_path_EGREP="$ac_path_EGREP" 4842 ac_path_EGREP_max=$ac_count 4843 fi 4844 # 10*(2^10) chars as input seems more than enough 4845 test $ac_count -gt 10 && break 4846 done 4847 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4848esac 4849 4850 $ac_path_EGREP_found && break 3 4851 done 4852 done 4853 done 4854IFS=$as_save_IFS 4855 if test -z "$ac_cv_path_EGREP"; then 4856 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4857 fi 4858else 4859 ac_cv_path_EGREP=$EGREP 4860fi 4861 4862 fi 4863fi 4864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4865$as_echo "$ac_cv_path_EGREP" >&6; } 4866 EGREP="$ac_cv_path_EGREP" 4867 4868 4869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4870$as_echo_n "checking for fgrep... " >&6; } 4871if ${ac_cv_path_FGREP+:} false; then : 4872 $as_echo_n "(cached) " >&6 4873else 4874 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4875 then ac_cv_path_FGREP="$GREP -F" 4876 else 4877 if test -z "$FGREP"; then 4878 ac_path_FGREP_found=false 4879 # Loop through the user's path and test for each of PROGNAME-LIST 4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4881for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4882do 4883 IFS=$as_save_IFS 4884 test -z "$as_dir" && as_dir=. 4885 for ac_prog in fgrep; do 4886 for ac_exec_ext in '' $ac_executable_extensions; do 4887 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4888 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4889# Check for GNU ac_path_FGREP and select it if it is found. 4890 # Check for GNU $ac_path_FGREP 4891case `"$ac_path_FGREP" --version 2>&1` in 4892*GNU*) 4893 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4894*) 4895 ac_count=0 4896 $as_echo_n 0123456789 >"conftest.in" 4897 while : 4898 do 4899 cat "conftest.in" "conftest.in" >"conftest.tmp" 4900 mv "conftest.tmp" "conftest.in" 4901 cp "conftest.in" "conftest.nl" 4902 $as_echo 'FGREP' >> "conftest.nl" 4903 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4904 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4905 as_fn_arith $ac_count + 1 && ac_count=$as_val 4906 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4907 # Best one so far, save it but keep looking for a better one 4908 ac_cv_path_FGREP="$ac_path_FGREP" 4909 ac_path_FGREP_max=$ac_count 4910 fi 4911 # 10*(2^10) chars as input seems more than enough 4912 test $ac_count -gt 10 && break 4913 done 4914 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4915esac 4916 4917 $ac_path_FGREP_found && break 3 4918 done 4919 done 4920 done 4921IFS=$as_save_IFS 4922 if test -z "$ac_cv_path_FGREP"; then 4923 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4924 fi 4925else 4926 ac_cv_path_FGREP=$FGREP 4927fi 4928 4929 fi 4930fi 4931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4932$as_echo "$ac_cv_path_FGREP" >&6; } 4933 FGREP="$ac_cv_path_FGREP" 4934 4935 4936test -z "$GREP" && GREP=grep 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956# Check whether --with-gnu-ld was given. 4957if test "${with_gnu_ld+set}" = set; then : 4958 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4959else 4960 with_gnu_ld=no 4961fi 4962 4963ac_prog=ld 4964if test "$GCC" = yes; then 4965 # Check if gcc -print-prog-name=ld gives a path. 4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4967$as_echo_n "checking for ld used by $CC... " >&6; } 4968 case $host in 4969 *-*-mingw*) 4970 # gcc leaves a trailing carriage return which upsets mingw 4971 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4972 *) 4973 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4974 esac 4975 case $ac_prog in 4976 # Accept absolute paths. 4977 [\\/]* | ?:[\\/]*) 4978 re_direlt='/[^/][^/]*/\.\./' 4979 # Canonicalize the pathname of ld 4980 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4981 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4982 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4983 done 4984 test -z "$LD" && LD="$ac_prog" 4985 ;; 4986 "") 4987 # If it fails, then pretend we aren't using GCC. 4988 ac_prog=ld 4989 ;; 4990 *) 4991 # If it is relative, then search for the first ld in PATH. 4992 with_gnu_ld=unknown 4993 ;; 4994 esac 4995elif test "$with_gnu_ld" = yes; then 4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4997$as_echo_n "checking for GNU ld... " >&6; } 4998else 4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5000$as_echo_n "checking for non-GNU ld... " >&6; } 5001fi 5002if ${lt_cv_path_LD+:} false; then : 5003 $as_echo_n "(cached) " >&6 5004else 5005 if test -z "$LD"; then 5006 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5007 for ac_dir in $PATH; do 5008 IFS="$lt_save_ifs" 5009 test -z "$ac_dir" && ac_dir=. 5010 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5011 lt_cv_path_LD="$ac_dir/$ac_prog" 5012 # Check to see if the program is GNU ld. I'd rather use --version, 5013 # but apparently some variants of GNU ld only accept -v. 5014 # Break only if it was the GNU/non-GNU ld that we prefer. 5015 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5016 *GNU* | *'with BFD'*) 5017 test "$with_gnu_ld" != no && break 5018 ;; 5019 *) 5020 test "$with_gnu_ld" != yes && break 5021 ;; 5022 esac 5023 fi 5024 done 5025 IFS="$lt_save_ifs" 5026else 5027 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5028fi 5029fi 5030 5031LD="$lt_cv_path_LD" 5032if test -n "$LD"; then 5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5034$as_echo "$LD" >&6; } 5035else 5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5037$as_echo "no" >&6; } 5038fi 5039test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5041$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5042if ${lt_cv_prog_gnu_ld+:} false; then : 5043 $as_echo_n "(cached) " >&6 5044else 5045 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5046case `$LD -v 2>&1 </dev/null` in 5047*GNU* | *'with BFD'*) 5048 lt_cv_prog_gnu_ld=yes 5049 ;; 5050*) 5051 lt_cv_prog_gnu_ld=no 5052 ;; 5053esac 5054fi 5055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5056$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5057with_gnu_ld=$lt_cv_prog_gnu_ld 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5068$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5069if ${lt_cv_path_NM+:} false; then : 5070 $as_echo_n "(cached) " >&6 5071else 5072 if test -n "$NM"; then 5073 # Let the user override the test. 5074 lt_cv_path_NM="$NM" 5075else 5076 lt_nm_to_check="${ac_tool_prefix}nm" 5077 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5078 lt_nm_to_check="$lt_nm_to_check nm" 5079 fi 5080 for lt_tmp_nm in $lt_nm_to_check; do 5081 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5082 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5083 IFS="$lt_save_ifs" 5084 test -z "$ac_dir" && ac_dir=. 5085 tmp_nm="$ac_dir/$lt_tmp_nm" 5086 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5087 # Check to see if the nm accepts a BSD-compat flag. 5088 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5089 # nm: unknown option "B" ignored 5090 # Tru64's nm complains that /dev/null is an invalid object file 5091 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5092 */dev/null* | *'Invalid file or object type'*) 5093 lt_cv_path_NM="$tmp_nm -B" 5094 break 5095 ;; 5096 *) 5097 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5098 */dev/null*) 5099 lt_cv_path_NM="$tmp_nm -p" 5100 break 5101 ;; 5102 *) 5103 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5104 continue # so that we can try to find one that supports BSD flags 5105 ;; 5106 esac 5107 ;; 5108 esac 5109 fi 5110 done 5111 IFS="$lt_save_ifs" 5112 done 5113 : ${lt_cv_path_NM=no} 5114fi 5115fi 5116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5117$as_echo "$lt_cv_path_NM" >&6; } 5118if test "$lt_cv_path_NM" != "no"; then 5119 NM="$lt_cv_path_NM" 5120else 5121 # Didn't find any BSD compatible name lister, look for dumpbin. 5122 if test -n "$DUMPBIN"; then : 5123 # Let the user override the test. 5124 else 5125 if test -n "$ac_tool_prefix"; then 5126 for ac_prog in dumpbin "link -dump" 5127 do 5128 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5129set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5131$as_echo_n "checking for $ac_word... " >&6; } 5132if ${ac_cv_prog_DUMPBIN+:} false; then : 5133 $as_echo_n "(cached) " >&6 5134else 5135 if test -n "$DUMPBIN"; then 5136 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5137else 5138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5139for as_dir in $PATH 5140do 5141 IFS=$as_save_IFS 5142 test -z "$as_dir" && as_dir=. 5143 for ac_exec_ext in '' $ac_executable_extensions; do 5144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5145 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5147 break 2 5148 fi 5149done 5150 done 5151IFS=$as_save_IFS 5152 5153fi 5154fi 5155DUMPBIN=$ac_cv_prog_DUMPBIN 5156if test -n "$DUMPBIN"; then 5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5158$as_echo "$DUMPBIN" >&6; } 5159else 5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5161$as_echo "no" >&6; } 5162fi 5163 5164 5165 test -n "$DUMPBIN" && break 5166 done 5167fi 5168if test -z "$DUMPBIN"; then 5169 ac_ct_DUMPBIN=$DUMPBIN 5170 for ac_prog in dumpbin "link -dump" 5171do 5172 # Extract the first word of "$ac_prog", so it can be a program name with args. 5173set dummy $ac_prog; ac_word=$2 5174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5175$as_echo_n "checking for $ac_word... " >&6; } 5176if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5177 $as_echo_n "(cached) " >&6 5178else 5179 if test -n "$ac_ct_DUMPBIN"; then 5180 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5181else 5182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5183for as_dir in $PATH 5184do 5185 IFS=$as_save_IFS 5186 test -z "$as_dir" && as_dir=. 5187 for ac_exec_ext in '' $ac_executable_extensions; do 5188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5189 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5191 break 2 5192 fi 5193done 5194 done 5195IFS=$as_save_IFS 5196 5197fi 5198fi 5199ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5200if test -n "$ac_ct_DUMPBIN"; then 5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5202$as_echo "$ac_ct_DUMPBIN" >&6; } 5203else 5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5205$as_echo "no" >&6; } 5206fi 5207 5208 5209 test -n "$ac_ct_DUMPBIN" && break 5210done 5211 5212 if test "x$ac_ct_DUMPBIN" = x; then 5213 DUMPBIN=":" 5214 else 5215 case $cross_compiling:$ac_tool_warned in 5216yes:) 5217{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5218$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5219ac_tool_warned=yes ;; 5220esac 5221 DUMPBIN=$ac_ct_DUMPBIN 5222 fi 5223fi 5224 5225 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5226 *COFF*) 5227 DUMPBIN="$DUMPBIN -symbols" 5228 ;; 5229 *) 5230 DUMPBIN=: 5231 ;; 5232 esac 5233 fi 5234 5235 if test "$DUMPBIN" != ":"; then 5236 NM="$DUMPBIN" 5237 fi 5238fi 5239test -z "$NM" && NM=nm 5240 5241 5242 5243 5244 5245 5246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5247$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5248if ${lt_cv_nm_interface+:} false; then : 5249 $as_echo_n "(cached) " >&6 5250else 5251 lt_cv_nm_interface="BSD nm" 5252 echo "int some_variable = 0;" > conftest.$ac_ext 5253 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5254 (eval "$ac_compile" 2>conftest.err) 5255 cat conftest.err >&5 5256 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5257 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5258 cat conftest.err >&5 5259 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5260 cat conftest.out >&5 5261 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5262 lt_cv_nm_interface="MS dumpbin" 5263 fi 5264 rm -f conftest* 5265fi 5266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5267$as_echo "$lt_cv_nm_interface" >&6; } 5268 5269# find the maximum length of command line arguments 5270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5271$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5272if ${lt_cv_sys_max_cmd_len+:} false; then : 5273 $as_echo_n "(cached) " >&6 5274else 5275 i=0 5276 teststring="ABCD" 5277 5278 case $build_os in 5279 msdosdjgpp*) 5280 # On DJGPP, this test can blow up pretty badly due to problems in libc 5281 # (any single argument exceeding 2000 bytes causes a buffer overrun 5282 # during glob expansion). Even if it were fixed, the result of this 5283 # check would be larger than it should be. 5284 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5285 ;; 5286 5287 gnu*) 5288 # Under GNU Hurd, this test is not required because there is 5289 # no limit to the length of command line arguments. 5290 # Libtool will interpret -1 as no limit whatsoever 5291 lt_cv_sys_max_cmd_len=-1; 5292 ;; 5293 5294 cygwin* | mingw* | cegcc*) 5295 # On Win9x/ME, this test blows up -- it succeeds, but takes 5296 # about 5 minutes as the teststring grows exponentially. 5297 # Worse, since 9x/ME are not pre-emptively multitasking, 5298 # you end up with a "frozen" computer, even though with patience 5299 # the test eventually succeeds (with a max line length of 256k). 5300 # Instead, let's just punt: use the minimum linelength reported by 5301 # all of the supported platforms: 8192 (on NT/2K/XP). 5302 lt_cv_sys_max_cmd_len=8192; 5303 ;; 5304 5305 mint*) 5306 # On MiNT this can take a long time and run out of memory. 5307 lt_cv_sys_max_cmd_len=8192; 5308 ;; 5309 5310 amigaos*) 5311 # On AmigaOS with pdksh, this test takes hours, literally. 5312 # So we just punt and use a minimum line length of 8192. 5313 lt_cv_sys_max_cmd_len=8192; 5314 ;; 5315 5316 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5317 # This has been around since 386BSD, at least. Likely further. 5318 if test -x /sbin/sysctl; then 5319 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5320 elif test -x /usr/sbin/sysctl; then 5321 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5322 else 5323 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5324 fi 5325 # And add a safety zone 5326 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5327 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5328 ;; 5329 5330 interix*) 5331 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5332 lt_cv_sys_max_cmd_len=196608 5333 ;; 5334 5335 osf*) 5336 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5337 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5338 # nice to cause kernel panics so lets avoid the loop below. 5339 # First set a reasonable default. 5340 lt_cv_sys_max_cmd_len=16384 5341 # 5342 if test -x /sbin/sysconfig; then 5343 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5344 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5345 esac 5346 fi 5347 ;; 5348 sco3.2v5*) 5349 lt_cv_sys_max_cmd_len=102400 5350 ;; 5351 sysv5* | sco5v6* | sysv4.2uw2*) 5352 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5353 if test -n "$kargmax"; then 5354 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5355 else 5356 lt_cv_sys_max_cmd_len=32768 5357 fi 5358 ;; 5359 *) 5360 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5361 if test -n "$lt_cv_sys_max_cmd_len"; then 5362 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5363 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5364 else 5365 # Make teststring a little bigger before we do anything with it. 5366 # a 1K string should be a reasonable start. 5367 for i in 1 2 3 4 5 6 7 8 ; do 5368 teststring=$teststring$teststring 5369 done 5370 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5371 # If test is not a shell built-in, we'll probably end up computing a 5372 # maximum length that is only half of the actual maximum length, but 5373 # we can't tell. 5374 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5375 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5376 test $i != 17 # 1/2 MB should be enough 5377 do 5378 i=`expr $i + 1` 5379 teststring=$teststring$teststring 5380 done 5381 # Only check the string length outside the loop. 5382 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5383 teststring= 5384 # Add a significant safety factor because C++ compilers can tack on 5385 # massive amounts of additional arguments before passing them to the 5386 # linker. It appears as though 1/2 is a usable value. 5387 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5388 fi 5389 ;; 5390 esac 5391 5392fi 5393 5394if test -n $lt_cv_sys_max_cmd_len ; then 5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5396$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5397else 5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5399$as_echo "none" >&6; } 5400fi 5401max_cmd_len=$lt_cv_sys_max_cmd_len 5402 5403 5404 5405 5406 5407 5408: ${CP="cp -f"} 5409: ${MV="mv -f"} 5410: ${RM="rm -f"} 5411 5412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5413$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5414# Try some XSI features 5415xsi_shell=no 5416( _lt_dummy="a/b/c" 5417 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5418 = c,a/b,b/c, \ 5419 && eval 'test $(( 1 + 1 )) -eq 2 \ 5420 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5421 && xsi_shell=yes 5422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5423$as_echo "$xsi_shell" >&6; } 5424 5425 5426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5427$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5428lt_shell_append=no 5429( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5430 >/dev/null 2>&1 \ 5431 && lt_shell_append=yes 5432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5433$as_echo "$lt_shell_append" >&6; } 5434 5435 5436if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5437 lt_unset=unset 5438else 5439 lt_unset=false 5440fi 5441 5442 5443 5444 5445 5446# test EBCDIC or ASCII 5447case `echo X|tr X '\101'` in 5448 A) # ASCII based system 5449 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5450 lt_SP2NL='tr \040 \012' 5451 lt_NL2SP='tr \015\012 \040\040' 5452 ;; 5453 *) # EBCDIC based system 5454 lt_SP2NL='tr \100 \n' 5455 lt_NL2SP='tr \r\n \100\100' 5456 ;; 5457esac 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5468$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5469if ${lt_cv_to_host_file_cmd+:} false; then : 5470 $as_echo_n "(cached) " >&6 5471else 5472 case $host in 5473 *-*-mingw* ) 5474 case $build in 5475 *-*-mingw* ) # actually msys 5476 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5477 ;; 5478 *-*-cygwin* ) 5479 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5480 ;; 5481 * ) # otherwise, assume *nix 5482 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5483 ;; 5484 esac 5485 ;; 5486 *-*-cygwin* ) 5487 case $build in 5488 *-*-mingw* ) # actually msys 5489 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5490 ;; 5491 *-*-cygwin* ) 5492 lt_cv_to_host_file_cmd=func_convert_file_noop 5493 ;; 5494 * ) # otherwise, assume *nix 5495 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5496 ;; 5497 esac 5498 ;; 5499 * ) # unhandled hosts (and "normal" native builds) 5500 lt_cv_to_host_file_cmd=func_convert_file_noop 5501 ;; 5502esac 5503 5504fi 5505 5506to_host_file_cmd=$lt_cv_to_host_file_cmd 5507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5508$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5509 5510 5511 5512 5513 5514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5515$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5516if ${lt_cv_to_tool_file_cmd+:} false; then : 5517 $as_echo_n "(cached) " >&6 5518else 5519 #assume ordinary cross tools, or native build. 5520lt_cv_to_tool_file_cmd=func_convert_file_noop 5521case $host in 5522 *-*-mingw* ) 5523 case $build in 5524 *-*-mingw* ) # actually msys 5525 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5526 ;; 5527 esac 5528 ;; 5529esac 5530 5531fi 5532 5533to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5535$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5536 5537 5538 5539 5540 5541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5542$as_echo_n "checking for $LD option to reload object files... " >&6; } 5543if ${lt_cv_ld_reload_flag+:} false; then : 5544 $as_echo_n "(cached) " >&6 5545else 5546 lt_cv_ld_reload_flag='-r' 5547fi 5548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5549$as_echo "$lt_cv_ld_reload_flag" >&6; } 5550reload_flag=$lt_cv_ld_reload_flag 5551case $reload_flag in 5552"" | " "*) ;; 5553*) reload_flag=" $reload_flag" ;; 5554esac 5555reload_cmds='$LD$reload_flag -o $output$reload_objs' 5556case $host_os in 5557 cygwin* | mingw* | pw32* | cegcc*) 5558 if test "$GCC" != yes; then 5559 reload_cmds=false 5560 fi 5561 ;; 5562 darwin*) 5563 if test "$GCC" = yes; then 5564 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5565 else 5566 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5567 fi 5568 ;; 5569esac 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579if test -n "$ac_tool_prefix"; then 5580 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5581set dummy ${ac_tool_prefix}objdump; ac_word=$2 5582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5583$as_echo_n "checking for $ac_word... " >&6; } 5584if ${ac_cv_prog_OBJDUMP+:} false; then : 5585 $as_echo_n "(cached) " >&6 5586else 5587 if test -n "$OBJDUMP"; then 5588 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5589else 5590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5591for as_dir in $PATH 5592do 5593 IFS=$as_save_IFS 5594 test -z "$as_dir" && as_dir=. 5595 for ac_exec_ext in '' $ac_executable_extensions; do 5596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5597 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5599 break 2 5600 fi 5601done 5602 done 5603IFS=$as_save_IFS 5604 5605fi 5606fi 5607OBJDUMP=$ac_cv_prog_OBJDUMP 5608if test -n "$OBJDUMP"; then 5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5610$as_echo "$OBJDUMP" >&6; } 5611else 5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5613$as_echo "no" >&6; } 5614fi 5615 5616 5617fi 5618if test -z "$ac_cv_prog_OBJDUMP"; then 5619 ac_ct_OBJDUMP=$OBJDUMP 5620 # Extract the first word of "objdump", so it can be a program name with args. 5621set dummy objdump; ac_word=$2 5622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5623$as_echo_n "checking for $ac_word... " >&6; } 5624if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5625 $as_echo_n "(cached) " >&6 5626else 5627 if test -n "$ac_ct_OBJDUMP"; then 5628 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5629else 5630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5631for as_dir in $PATH 5632do 5633 IFS=$as_save_IFS 5634 test -z "$as_dir" && as_dir=. 5635 for ac_exec_ext in '' $ac_executable_extensions; do 5636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5637 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5639 break 2 5640 fi 5641done 5642 done 5643IFS=$as_save_IFS 5644 5645fi 5646fi 5647ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5648if test -n "$ac_ct_OBJDUMP"; then 5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5650$as_echo "$ac_ct_OBJDUMP" >&6; } 5651else 5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5653$as_echo "no" >&6; } 5654fi 5655 5656 if test "x$ac_ct_OBJDUMP" = x; then 5657 OBJDUMP="false" 5658 else 5659 case $cross_compiling:$ac_tool_warned in 5660yes:) 5661{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5662$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5663ac_tool_warned=yes ;; 5664esac 5665 OBJDUMP=$ac_ct_OBJDUMP 5666 fi 5667else 5668 OBJDUMP="$ac_cv_prog_OBJDUMP" 5669fi 5670 5671test -z "$OBJDUMP" && OBJDUMP=objdump 5672 5673 5674 5675 5676 5677 5678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5679$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5680if ${lt_cv_deplibs_check_method+:} false; then : 5681 $as_echo_n "(cached) " >&6 5682else 5683 lt_cv_file_magic_cmd='$MAGIC_CMD' 5684lt_cv_file_magic_test_file= 5685lt_cv_deplibs_check_method='unknown' 5686# Need to set the preceding variable on all platforms that support 5687# interlibrary dependencies. 5688# 'none' -- dependencies not supported. 5689# `unknown' -- same as none, but documents that we really don't know. 5690# 'pass_all' -- all dependencies passed with no checks. 5691# 'test_compile' -- check by making test program. 5692# 'file_magic [[regex]]' -- check by looking for files in library path 5693# which responds to the $file_magic_cmd with a given extended regex. 5694# If you have `file' or equivalent on your system and you're not sure 5695# whether `pass_all' will *always* work, you probably want this one. 5696 5697case $host_os in 5698aix[4-9]*) 5699 lt_cv_deplibs_check_method=pass_all 5700 ;; 5701 5702beos*) 5703 lt_cv_deplibs_check_method=pass_all 5704 ;; 5705 5706bsdi[45]*) 5707 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5708 lt_cv_file_magic_cmd='/usr/bin/file -L' 5709 lt_cv_file_magic_test_file=/shlib/libc.so 5710 ;; 5711 5712cygwin*) 5713 # func_win32_libid is a shell function defined in ltmain.sh 5714 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5715 lt_cv_file_magic_cmd='func_win32_libid' 5716 ;; 5717 5718mingw* | pw32*) 5719 # Base MSYS/MinGW do not provide the 'file' command needed by 5720 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5721 # unless we find 'file', for example because we are cross-compiling. 5722 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5723 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5724 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5725 lt_cv_file_magic_cmd='func_win32_libid' 5726 else 5727 # Keep this pattern in sync with the one in func_win32_libid. 5728 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5729 lt_cv_file_magic_cmd='$OBJDUMP -f' 5730 fi 5731 ;; 5732 5733cegcc*) 5734 # use the weaker test based on 'objdump'. See mingw*. 5735 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5736 lt_cv_file_magic_cmd='$OBJDUMP -f' 5737 ;; 5738 5739darwin* | rhapsody*) 5740 lt_cv_deplibs_check_method=pass_all 5741 ;; 5742 5743freebsd* | dragonfly*) 5744 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5745 case $host_cpu in 5746 i*86 ) 5747 # Not sure whether the presence of OpenBSD here was a mistake. 5748 # Let's accept both of them until this is cleared up. 5749 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5750 lt_cv_file_magic_cmd=/usr/bin/file 5751 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5752 ;; 5753 esac 5754 else 5755 lt_cv_deplibs_check_method=pass_all 5756 fi 5757 ;; 5758 5759gnu*) 5760 lt_cv_deplibs_check_method=pass_all 5761 ;; 5762 5763haiku*) 5764 lt_cv_deplibs_check_method=pass_all 5765 ;; 5766 5767hpux10.20* | hpux11*) 5768 lt_cv_file_magic_cmd=/usr/bin/file 5769 case $host_cpu in 5770 ia64*) 5771 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5772 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5773 ;; 5774 hppa*64*) 5775 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]' 5776 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5777 ;; 5778 *) 5779 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5780 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5781 ;; 5782 esac 5783 ;; 5784 5785interix[3-9]*) 5786 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5787 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5788 ;; 5789 5790irix5* | irix6* | nonstopux*) 5791 case $LD in 5792 *-32|*"-32 ") libmagic=32-bit;; 5793 *-n32|*"-n32 ") libmagic=N32;; 5794 *-64|*"-64 ") libmagic=64-bit;; 5795 *) libmagic=never-match;; 5796 esac 5797 lt_cv_deplibs_check_method=pass_all 5798 ;; 5799 5800# This must be Linux ELF. 5801linux* | k*bsd*-gnu | kopensolaris*-gnu) 5802 lt_cv_deplibs_check_method=pass_all 5803 ;; 5804 5805netbsd*) 5806 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5807 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5808 else 5809 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5810 fi 5811 ;; 5812 5813newos6*) 5814 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5815 lt_cv_file_magic_cmd=/usr/bin/file 5816 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5817 ;; 5818 5819*nto* | *qnx*) 5820 lt_cv_deplibs_check_method=pass_all 5821 ;; 5822 5823openbsd*) 5824 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5825 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5826 else 5827 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5828 fi 5829 ;; 5830 5831osf3* | osf4* | osf5*) 5832 lt_cv_deplibs_check_method=pass_all 5833 ;; 5834 5835rdos*) 5836 lt_cv_deplibs_check_method=pass_all 5837 ;; 5838 5839solaris*) 5840 lt_cv_deplibs_check_method=pass_all 5841 ;; 5842 5843sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5844 lt_cv_deplibs_check_method=pass_all 5845 ;; 5846 5847sysv4 | sysv4.3*) 5848 case $host_vendor in 5849 motorola) 5850 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]' 5851 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5852 ;; 5853 ncr) 5854 lt_cv_deplibs_check_method=pass_all 5855 ;; 5856 sequent) 5857 lt_cv_file_magic_cmd='/bin/file' 5858 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5859 ;; 5860 sni) 5861 lt_cv_file_magic_cmd='/bin/file' 5862 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5863 lt_cv_file_magic_test_file=/lib/libc.so 5864 ;; 5865 siemens) 5866 lt_cv_deplibs_check_method=pass_all 5867 ;; 5868 pc) 5869 lt_cv_deplibs_check_method=pass_all 5870 ;; 5871 esac 5872 ;; 5873 5874tpf*) 5875 lt_cv_deplibs_check_method=pass_all 5876 ;; 5877esac 5878 5879fi 5880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5881$as_echo "$lt_cv_deplibs_check_method" >&6; } 5882 5883file_magic_glob= 5884want_nocaseglob=no 5885if test "$build" = "$host"; then 5886 case $host_os in 5887 mingw* | pw32*) 5888 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5889 want_nocaseglob=yes 5890 else 5891 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5892 fi 5893 ;; 5894 esac 5895fi 5896 5897file_magic_cmd=$lt_cv_file_magic_cmd 5898deplibs_check_method=$lt_cv_deplibs_check_method 5899test -z "$deplibs_check_method" && deplibs_check_method=unknown 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922if test -n "$ac_tool_prefix"; then 5923 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5924set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5926$as_echo_n "checking for $ac_word... " >&6; } 5927if ${ac_cv_prog_DLLTOOL+:} false; then : 5928 $as_echo_n "(cached) " >&6 5929else 5930 if test -n "$DLLTOOL"; then 5931 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5932else 5933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5934for as_dir in $PATH 5935do 5936 IFS=$as_save_IFS 5937 test -z "$as_dir" && as_dir=. 5938 for ac_exec_ext in '' $ac_executable_extensions; do 5939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5940 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5942 break 2 5943 fi 5944done 5945 done 5946IFS=$as_save_IFS 5947 5948fi 5949fi 5950DLLTOOL=$ac_cv_prog_DLLTOOL 5951if test -n "$DLLTOOL"; then 5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5953$as_echo "$DLLTOOL" >&6; } 5954else 5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5956$as_echo "no" >&6; } 5957fi 5958 5959 5960fi 5961if test -z "$ac_cv_prog_DLLTOOL"; then 5962 ac_ct_DLLTOOL=$DLLTOOL 5963 # Extract the first word of "dlltool", so it can be a program name with args. 5964set dummy dlltool; ac_word=$2 5965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5966$as_echo_n "checking for $ac_word... " >&6; } 5967if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5968 $as_echo_n "(cached) " >&6 5969else 5970 if test -n "$ac_ct_DLLTOOL"; then 5971 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5972else 5973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5974for as_dir in $PATH 5975do 5976 IFS=$as_save_IFS 5977 test -z "$as_dir" && as_dir=. 5978 for ac_exec_ext in '' $ac_executable_extensions; do 5979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5980 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5982 break 2 5983 fi 5984done 5985 done 5986IFS=$as_save_IFS 5987 5988fi 5989fi 5990ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5991if test -n "$ac_ct_DLLTOOL"; then 5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5993$as_echo "$ac_ct_DLLTOOL" >&6; } 5994else 5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5996$as_echo "no" >&6; } 5997fi 5998 5999 if test "x$ac_ct_DLLTOOL" = x; then 6000 DLLTOOL="false" 6001 else 6002 case $cross_compiling:$ac_tool_warned in 6003yes:) 6004{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6005$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6006ac_tool_warned=yes ;; 6007esac 6008 DLLTOOL=$ac_ct_DLLTOOL 6009 fi 6010else 6011 DLLTOOL="$ac_cv_prog_DLLTOOL" 6012fi 6013 6014test -z "$DLLTOOL" && DLLTOOL=dlltool 6015 6016 6017 6018 6019 6020 6021 6022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6023$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6024if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6025 $as_echo_n "(cached) " >&6 6026else 6027 lt_cv_sharedlib_from_linklib_cmd='unknown' 6028 6029case $host_os in 6030cygwin* | mingw* | pw32* | cegcc*) 6031 # two different shell functions defined in ltmain.sh 6032 # decide which to use based on capabilities of $DLLTOOL 6033 case `$DLLTOOL --help 2>&1` in 6034 *--identify-strict*) 6035 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6036 ;; 6037 *) 6038 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6039 ;; 6040 esac 6041 ;; 6042*) 6043 # fallback: assume linklib IS sharedlib 6044 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6045 ;; 6046esac 6047 6048fi 6049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6050$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6051sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6052test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6053 6054 6055 6056 6057 6058 6059 6060 6061if test -n "$ac_tool_prefix"; then 6062 for ac_prog in ar 6063 do 6064 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6065set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6067$as_echo_n "checking for $ac_word... " >&6; } 6068if ${ac_cv_prog_AR+:} false; then : 6069 $as_echo_n "(cached) " >&6 6070else 6071 if test -n "$AR"; then 6072 ac_cv_prog_AR="$AR" # Let the user override the test. 6073else 6074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6075for as_dir in $PATH 6076do 6077 IFS=$as_save_IFS 6078 test -z "$as_dir" && as_dir=. 6079 for ac_exec_ext in '' $ac_executable_extensions; do 6080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6081 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6083 break 2 6084 fi 6085done 6086 done 6087IFS=$as_save_IFS 6088 6089fi 6090fi 6091AR=$ac_cv_prog_AR 6092if test -n "$AR"; then 6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6094$as_echo "$AR" >&6; } 6095else 6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6097$as_echo "no" >&6; } 6098fi 6099 6100 6101 test -n "$AR" && break 6102 done 6103fi 6104if test -z "$AR"; then 6105 ac_ct_AR=$AR 6106 for ac_prog in ar 6107do 6108 # Extract the first word of "$ac_prog", so it can be a program name with args. 6109set dummy $ac_prog; ac_word=$2 6110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6111$as_echo_n "checking for $ac_word... " >&6; } 6112if ${ac_cv_prog_ac_ct_AR+:} false; then : 6113 $as_echo_n "(cached) " >&6 6114else 6115 if test -n "$ac_ct_AR"; then 6116 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6117else 6118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6119for as_dir in $PATH 6120do 6121 IFS=$as_save_IFS 6122 test -z "$as_dir" && as_dir=. 6123 for ac_exec_ext in '' $ac_executable_extensions; do 6124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6125 ac_cv_prog_ac_ct_AR="$ac_prog" 6126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6127 break 2 6128 fi 6129done 6130 done 6131IFS=$as_save_IFS 6132 6133fi 6134fi 6135ac_ct_AR=$ac_cv_prog_ac_ct_AR 6136if test -n "$ac_ct_AR"; then 6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6138$as_echo "$ac_ct_AR" >&6; } 6139else 6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6141$as_echo "no" >&6; } 6142fi 6143 6144 6145 test -n "$ac_ct_AR" && break 6146done 6147 6148 if test "x$ac_ct_AR" = x; then 6149 AR="false" 6150 else 6151 case $cross_compiling:$ac_tool_warned in 6152yes:) 6153{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6154$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6155ac_tool_warned=yes ;; 6156esac 6157 AR=$ac_ct_AR 6158 fi 6159fi 6160 6161: ${AR=ar} 6162: ${AR_FLAGS=cru} 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6175$as_echo_n "checking for archiver @FILE support... " >&6; } 6176if ${lt_cv_ar_at_file+:} false; then : 6177 $as_echo_n "(cached) " >&6 6178else 6179 lt_cv_ar_at_file=no 6180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6181/* end confdefs.h. */ 6182 6183int 6184main () 6185{ 6186 6187 ; 6188 return 0; 6189} 6190_ACEOF 6191if ac_fn_c_try_compile "$LINENO"; then : 6192 echo conftest.$ac_objext > conftest.lst 6193 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6195 (eval $lt_ar_try) 2>&5 6196 ac_status=$? 6197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6198 test $ac_status = 0; } 6199 if test "$ac_status" -eq 0; then 6200 # Ensure the archiver fails upon bogus file names. 6201 rm -f conftest.$ac_objext libconftest.a 6202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6203 (eval $lt_ar_try) 2>&5 6204 ac_status=$? 6205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6206 test $ac_status = 0; } 6207 if test "$ac_status" -ne 0; then 6208 lt_cv_ar_at_file=@ 6209 fi 6210 fi 6211 rm -f conftest.* libconftest.a 6212 6213fi 6214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6215 6216fi 6217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6218$as_echo "$lt_cv_ar_at_file" >&6; } 6219 6220if test "x$lt_cv_ar_at_file" = xno; then 6221 archiver_list_spec= 6222else 6223 archiver_list_spec=$lt_cv_ar_at_file 6224fi 6225 6226 6227 6228 6229 6230 6231 6232if test -n "$ac_tool_prefix"; then 6233 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6234set dummy ${ac_tool_prefix}strip; ac_word=$2 6235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6236$as_echo_n "checking for $ac_word... " >&6; } 6237if ${ac_cv_prog_STRIP+:} false; then : 6238 $as_echo_n "(cached) " >&6 6239else 6240 if test -n "$STRIP"; then 6241 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6242else 6243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6244for as_dir in $PATH 6245do 6246 IFS=$as_save_IFS 6247 test -z "$as_dir" && as_dir=. 6248 for ac_exec_ext in '' $ac_executable_extensions; do 6249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6250 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6252 break 2 6253 fi 6254done 6255 done 6256IFS=$as_save_IFS 6257 6258fi 6259fi 6260STRIP=$ac_cv_prog_STRIP 6261if test -n "$STRIP"; then 6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6263$as_echo "$STRIP" >&6; } 6264else 6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6266$as_echo "no" >&6; } 6267fi 6268 6269 6270fi 6271if test -z "$ac_cv_prog_STRIP"; then 6272 ac_ct_STRIP=$STRIP 6273 # Extract the first word of "strip", so it can be a program name with args. 6274set dummy strip; ac_word=$2 6275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6276$as_echo_n "checking for $ac_word... " >&6; } 6277if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6278 $as_echo_n "(cached) " >&6 6279else 6280 if test -n "$ac_ct_STRIP"; then 6281 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6282else 6283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6284for as_dir in $PATH 6285do 6286 IFS=$as_save_IFS 6287 test -z "$as_dir" && as_dir=. 6288 for ac_exec_ext in '' $ac_executable_extensions; do 6289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6290 ac_cv_prog_ac_ct_STRIP="strip" 6291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6292 break 2 6293 fi 6294done 6295 done 6296IFS=$as_save_IFS 6297 6298fi 6299fi 6300ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6301if test -n "$ac_ct_STRIP"; then 6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6303$as_echo "$ac_ct_STRIP" >&6; } 6304else 6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6306$as_echo "no" >&6; } 6307fi 6308 6309 if test "x$ac_ct_STRIP" = x; then 6310 STRIP=":" 6311 else 6312 case $cross_compiling:$ac_tool_warned in 6313yes:) 6314{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6315$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6316ac_tool_warned=yes ;; 6317esac 6318 STRIP=$ac_ct_STRIP 6319 fi 6320else 6321 STRIP="$ac_cv_prog_STRIP" 6322fi 6323 6324test -z "$STRIP" && STRIP=: 6325 6326 6327 6328 6329 6330 6331if test -n "$ac_tool_prefix"; then 6332 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6333set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6335$as_echo_n "checking for $ac_word... " >&6; } 6336if ${ac_cv_prog_RANLIB+:} false; then : 6337 $as_echo_n "(cached) " >&6 6338else 6339 if test -n "$RANLIB"; then 6340 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6341else 6342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6343for as_dir in $PATH 6344do 6345 IFS=$as_save_IFS 6346 test -z "$as_dir" && as_dir=. 6347 for ac_exec_ext in '' $ac_executable_extensions; do 6348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6349 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6351 break 2 6352 fi 6353done 6354 done 6355IFS=$as_save_IFS 6356 6357fi 6358fi 6359RANLIB=$ac_cv_prog_RANLIB 6360if test -n "$RANLIB"; then 6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6362$as_echo "$RANLIB" >&6; } 6363else 6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6365$as_echo "no" >&6; } 6366fi 6367 6368 6369fi 6370if test -z "$ac_cv_prog_RANLIB"; then 6371 ac_ct_RANLIB=$RANLIB 6372 # Extract the first word of "ranlib", so it can be a program name with args. 6373set dummy ranlib; ac_word=$2 6374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6375$as_echo_n "checking for $ac_word... " >&6; } 6376if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6377 $as_echo_n "(cached) " >&6 6378else 6379 if test -n "$ac_ct_RANLIB"; then 6380 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6381else 6382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6383for as_dir in $PATH 6384do 6385 IFS=$as_save_IFS 6386 test -z "$as_dir" && as_dir=. 6387 for ac_exec_ext in '' $ac_executable_extensions; do 6388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6389 ac_cv_prog_ac_ct_RANLIB="ranlib" 6390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6391 break 2 6392 fi 6393done 6394 done 6395IFS=$as_save_IFS 6396 6397fi 6398fi 6399ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6400if test -n "$ac_ct_RANLIB"; then 6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6402$as_echo "$ac_ct_RANLIB" >&6; } 6403else 6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6405$as_echo "no" >&6; } 6406fi 6407 6408 if test "x$ac_ct_RANLIB" = x; then 6409 RANLIB=":" 6410 else 6411 case $cross_compiling:$ac_tool_warned in 6412yes:) 6413{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6414$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6415ac_tool_warned=yes ;; 6416esac 6417 RANLIB=$ac_ct_RANLIB 6418 fi 6419else 6420 RANLIB="$ac_cv_prog_RANLIB" 6421fi 6422 6423test -z "$RANLIB" && RANLIB=: 6424 6425 6426 6427 6428 6429 6430# Determine commands to create old-style static archives. 6431old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6432old_postinstall_cmds='chmod 644 $oldlib' 6433old_postuninstall_cmds= 6434 6435if test -n "$RANLIB"; then 6436 case $host_os in 6437 openbsd*) 6438 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6439 ;; 6440 *) 6441 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6442 ;; 6443 esac 6444 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6445fi 6446 6447case $host_os in 6448 darwin*) 6449 lock_old_archive_extraction=yes ;; 6450 *) 6451 lock_old_archive_extraction=no ;; 6452esac 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492# If no C compiler was specified, use CC. 6493LTCC=${LTCC-"$CC"} 6494 6495# If no C compiler flags were specified, use CFLAGS. 6496LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6497 6498# Allow CC to be a program name with arguments. 6499compiler=$CC 6500 6501 6502# Check for command to grab the raw symbol name followed by C symbol from nm. 6503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6504$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6505if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6506 $as_echo_n "(cached) " >&6 6507else 6508 6509# These are sane defaults that work on at least a few old systems. 6510# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6511 6512# Character class describing NM global symbol codes. 6513symcode='[BCDEGRST]' 6514 6515# Regexp to match symbols that can be accessed directly from C. 6516sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6517 6518# Define system-specific variables. 6519case $host_os in 6520aix*) 6521 symcode='[BCDT]' 6522 ;; 6523cygwin* | mingw* | pw32* | cegcc*) 6524 symcode='[ABCDGISTW]' 6525 ;; 6526hpux*) 6527 if test "$host_cpu" = ia64; then 6528 symcode='[ABCDEGRST]' 6529 fi 6530 ;; 6531irix* | nonstopux*) 6532 symcode='[BCDEGRST]' 6533 ;; 6534osf*) 6535 symcode='[BCDEGQRST]' 6536 ;; 6537solaris*) 6538 symcode='[BDRT]' 6539 ;; 6540sco3.2v5*) 6541 symcode='[DT]' 6542 ;; 6543sysv4.2uw2*) 6544 symcode='[DT]' 6545 ;; 6546sysv5* | sco5v6* | unixware* | OpenUNIX*) 6547 symcode='[ABDT]' 6548 ;; 6549sysv4) 6550 symcode='[DFNSTU]' 6551 ;; 6552esac 6553 6554# If we're using GNU nm, then use its standard symbol codes. 6555case `$NM -V 2>&1` in 6556*GNU* | *'with BFD'*) 6557 symcode='[ABCDGIRSTW]' ;; 6558esac 6559 6560# Transform an extracted symbol line into a proper C declaration. 6561# Some systems (esp. on ia64) link data and code symbols differently, 6562# so use this general approach. 6563lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6564 6565# Transform an extracted symbol line into symbol name and symbol address 6566lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6567lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6568 6569# Handle CRLF in mingw tool chain 6570opt_cr= 6571case $build_os in 6572mingw*) 6573 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6574 ;; 6575esac 6576 6577# Try without a prefix underscore, then with it. 6578for ac_symprfx in "" "_"; do 6579 6580 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6581 symxfrm="\\1 $ac_symprfx\\2 \\2" 6582 6583 # Write the raw and C identifiers. 6584 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6585 # Fake it for dumpbin and say T for any non-static function 6586 # and D for any global variable. 6587 # Also find C++ and __fastcall symbols from MSVC++, 6588 # which start with @ or ?. 6589 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6590" {last_section=section; section=\$ 3};"\ 6591" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6592" \$ 0!~/External *\|/{next};"\ 6593" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6594" {if(hide[section]) next};"\ 6595" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6596" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6597" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6598" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6599" ' prfx=^$ac_symprfx" 6600 else 6601 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6602 fi 6603 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6604 6605 # Check to see that the pipe works correctly. 6606 pipe_works=no 6607 6608 rm -f conftest* 6609 cat > conftest.$ac_ext <<_LT_EOF 6610#ifdef __cplusplus 6611extern "C" { 6612#endif 6613char nm_test_var; 6614void nm_test_func(void); 6615void nm_test_func(void){} 6616#ifdef __cplusplus 6617} 6618#endif 6619int main(){nm_test_var='a';nm_test_func();return(0);} 6620_LT_EOF 6621 6622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6623 (eval $ac_compile) 2>&5 6624 ac_status=$? 6625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6626 test $ac_status = 0; }; then 6627 # Now try to grab the symbols. 6628 nlist=conftest.nm 6629 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6630 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6631 ac_status=$? 6632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6633 test $ac_status = 0; } && test -s "$nlist"; then 6634 # Try sorting and uniquifying the output. 6635 if sort "$nlist" | uniq > "$nlist"T; then 6636 mv -f "$nlist"T "$nlist" 6637 else 6638 rm -f "$nlist"T 6639 fi 6640 6641 # Make sure that we snagged all the symbols we need. 6642 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6643 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6644 cat <<_LT_EOF > conftest.$ac_ext 6645/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6646#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6647/* DATA imports from DLLs on WIN32 con't be const, because runtime 6648 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6649# define LT_DLSYM_CONST 6650#elif defined(__osf__) 6651/* This system does not cope well with relocations in const data. */ 6652# define LT_DLSYM_CONST 6653#else 6654# define LT_DLSYM_CONST const 6655#endif 6656 6657#ifdef __cplusplus 6658extern "C" { 6659#endif 6660 6661_LT_EOF 6662 # Now generate the symbol file. 6663 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6664 6665 cat <<_LT_EOF >> conftest.$ac_ext 6666 6667/* The mapping between symbol names and symbols. */ 6668LT_DLSYM_CONST struct { 6669 const char *name; 6670 void *address; 6671} 6672lt__PROGRAM__LTX_preloaded_symbols[] = 6673{ 6674 { "@PROGRAM@", (void *) 0 }, 6675_LT_EOF 6676 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6677 cat <<\_LT_EOF >> conftest.$ac_ext 6678 {0, (void *) 0} 6679}; 6680 6681/* This works around a problem in FreeBSD linker */ 6682#ifdef FREEBSD_WORKAROUND 6683static const void *lt_preloaded_setup() { 6684 return lt__PROGRAM__LTX_preloaded_symbols; 6685} 6686#endif 6687 6688#ifdef __cplusplus 6689} 6690#endif 6691_LT_EOF 6692 # Now try linking the two files. 6693 mv conftest.$ac_objext conftstm.$ac_objext 6694 lt_globsym_save_LIBS=$LIBS 6695 lt_globsym_save_CFLAGS=$CFLAGS 6696 LIBS="conftstm.$ac_objext" 6697 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6698 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6699 (eval $ac_link) 2>&5 6700 ac_status=$? 6701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6702 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6703 pipe_works=yes 6704 fi 6705 LIBS=$lt_globsym_save_LIBS 6706 CFLAGS=$lt_globsym_save_CFLAGS 6707 else 6708 echo "cannot find nm_test_func in $nlist" >&5 6709 fi 6710 else 6711 echo "cannot find nm_test_var in $nlist" >&5 6712 fi 6713 else 6714 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6715 fi 6716 else 6717 echo "$progname: failed program was:" >&5 6718 cat conftest.$ac_ext >&5 6719 fi 6720 rm -rf conftest* conftst* 6721 6722 # Do not use the global_symbol_pipe unless it works. 6723 if test "$pipe_works" = yes; then 6724 break 6725 else 6726 lt_cv_sys_global_symbol_pipe= 6727 fi 6728done 6729 6730fi 6731 6732if test -z "$lt_cv_sys_global_symbol_pipe"; then 6733 lt_cv_sys_global_symbol_to_cdecl= 6734fi 6735if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6737$as_echo "failed" >&6; } 6738else 6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6740$as_echo "ok" >&6; } 6741fi 6742 6743# Response file support. 6744if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6745 nm_file_list_spec='@' 6746elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6747 nm_file_list_spec='@' 6748fi 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6777$as_echo_n "checking for sysroot... " >&6; } 6778 6779# Check whether --with-sysroot was given. 6780if test "${with_sysroot+set}" = set; then : 6781 withval=$with_sysroot; 6782else 6783 with_sysroot=no 6784fi 6785 6786 6787lt_sysroot= 6788case ${with_sysroot} in #( 6789 yes) 6790 if test "$GCC" = yes; then 6791 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6792 fi 6793 ;; #( 6794 /*) 6795 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6796 ;; #( 6797 no|'') 6798 ;; #( 6799 *) 6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6801$as_echo "${with_sysroot}" >&6; } 6802 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6803 ;; 6804esac 6805 6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6807$as_echo "${lt_sysroot:-no}" >&6; } 6808 6809 6810 6811 6812 6813# Check whether --enable-libtool-lock was given. 6814if test "${enable_libtool_lock+set}" = set; then : 6815 enableval=$enable_libtool_lock; 6816fi 6817 6818test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6819 6820# Some flags need to be propagated to the compiler or linker for good 6821# libtool support. 6822case $host in 6823ia64-*-hpux*) 6824 # Find out which ABI we are using. 6825 echo 'int i;' > conftest.$ac_ext 6826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6827 (eval $ac_compile) 2>&5 6828 ac_status=$? 6829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6830 test $ac_status = 0; }; then 6831 case `/usr/bin/file conftest.$ac_objext` in 6832 *ELF-32*) 6833 HPUX_IA64_MODE="32" 6834 ;; 6835 *ELF-64*) 6836 HPUX_IA64_MODE="64" 6837 ;; 6838 esac 6839 fi 6840 rm -rf conftest* 6841 ;; 6842*-*-irix6*) 6843 # Find out which ABI we are using. 6844 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6845 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6846 (eval $ac_compile) 2>&5 6847 ac_status=$? 6848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6849 test $ac_status = 0; }; then 6850 if test "$lt_cv_prog_gnu_ld" = yes; then 6851 case `/usr/bin/file conftest.$ac_objext` in 6852 *32-bit*) 6853 LD="${LD-ld} -melf32bsmip" 6854 ;; 6855 *N32*) 6856 LD="${LD-ld} -melf32bmipn32" 6857 ;; 6858 *64-bit*) 6859 LD="${LD-ld} -melf64bmip" 6860 ;; 6861 esac 6862 else 6863 case `/usr/bin/file conftest.$ac_objext` in 6864 *32-bit*) 6865 LD="${LD-ld} -32" 6866 ;; 6867 *N32*) 6868 LD="${LD-ld} -n32" 6869 ;; 6870 *64-bit*) 6871 LD="${LD-ld} -64" 6872 ;; 6873 esac 6874 fi 6875 fi 6876 rm -rf conftest* 6877 ;; 6878 6879x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6880s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6881 # Find out which ABI we are using. 6882 echo 'int i;' > conftest.$ac_ext 6883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6884 (eval $ac_compile) 2>&5 6885 ac_status=$? 6886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6887 test $ac_status = 0; }; then 6888 case `/usr/bin/file conftest.o` in 6889 *32-bit*) 6890 case $host in 6891 x86_64-*kfreebsd*-gnu) 6892 LD="${LD-ld} -m elf_i386_fbsd" 6893 ;; 6894 x86_64-*linux*) 6895 LD="${LD-ld} -m elf_i386" 6896 ;; 6897 ppc64-*linux*|powerpc64-*linux*) 6898 LD="${LD-ld} -m elf32ppclinux" 6899 ;; 6900 s390x-*linux*) 6901 LD="${LD-ld} -m elf_s390" 6902 ;; 6903 sparc64-*linux*) 6904 LD="${LD-ld} -m elf32_sparc" 6905 ;; 6906 esac 6907 ;; 6908 *64-bit*) 6909 case $host in 6910 x86_64-*kfreebsd*-gnu) 6911 LD="${LD-ld} -m elf_x86_64_fbsd" 6912 ;; 6913 x86_64-*linux*) 6914 LD="${LD-ld} -m elf_x86_64" 6915 ;; 6916 ppc*-*linux*|powerpc*-*linux*) 6917 LD="${LD-ld} -m elf64ppc" 6918 ;; 6919 s390*-*linux*|s390*-*tpf*) 6920 LD="${LD-ld} -m elf64_s390" 6921 ;; 6922 sparc*-*linux*) 6923 LD="${LD-ld} -m elf64_sparc" 6924 ;; 6925 esac 6926 ;; 6927 esac 6928 fi 6929 rm -rf conftest* 6930 ;; 6931 6932*-*-sco3.2v5*) 6933 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6934 SAVE_CFLAGS="$CFLAGS" 6935 CFLAGS="$CFLAGS -belf" 6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6937$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6938if ${lt_cv_cc_needs_belf+:} false; then : 6939 $as_echo_n "(cached) " >&6 6940else 6941 ac_ext=c 6942ac_cpp='$CPP $CPPFLAGS' 6943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6945ac_compiler_gnu=$ac_cv_c_compiler_gnu 6946 6947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6948/* end confdefs.h. */ 6949 6950int 6951main () 6952{ 6953 6954 ; 6955 return 0; 6956} 6957_ACEOF 6958if ac_fn_c_try_link "$LINENO"; then : 6959 lt_cv_cc_needs_belf=yes 6960else 6961 lt_cv_cc_needs_belf=no 6962fi 6963rm -f core conftest.err conftest.$ac_objext \ 6964 conftest$ac_exeext conftest.$ac_ext 6965 ac_ext=c 6966ac_cpp='$CPP $CPPFLAGS' 6967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6969ac_compiler_gnu=$ac_cv_c_compiler_gnu 6970 6971fi 6972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6973$as_echo "$lt_cv_cc_needs_belf" >&6; } 6974 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6975 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6976 CFLAGS="$SAVE_CFLAGS" 6977 fi 6978 ;; 6979sparc*-*solaris*) 6980 # Find out which ABI we are using. 6981 echo 'int i;' > conftest.$ac_ext 6982 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6983 (eval $ac_compile) 2>&5 6984 ac_status=$? 6985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6986 test $ac_status = 0; }; then 6987 case `/usr/bin/file conftest.o` in 6988 *64-bit*) 6989 case $lt_cv_prog_gnu_ld in 6990 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6991 *) 6992 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6993 LD="${LD-ld} -64" 6994 fi 6995 ;; 6996 esac 6997 ;; 6998 esac 6999 fi 7000 rm -rf conftest* 7001 ;; 7002esac 7003 7004need_locks="$enable_libtool_lock" 7005 7006if test -n "$ac_tool_prefix"; then 7007 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7008set dummy ${ac_tool_prefix}mt; ac_word=$2 7009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7010$as_echo_n "checking for $ac_word... " >&6; } 7011if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7012 $as_echo_n "(cached) " >&6 7013else 7014 if test -n "$MANIFEST_TOOL"; then 7015 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7016else 7017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7018for as_dir in $PATH 7019do 7020 IFS=$as_save_IFS 7021 test -z "$as_dir" && as_dir=. 7022 for ac_exec_ext in '' $ac_executable_extensions; do 7023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7024 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7026 break 2 7027 fi 7028done 7029 done 7030IFS=$as_save_IFS 7031 7032fi 7033fi 7034MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7035if test -n "$MANIFEST_TOOL"; then 7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7037$as_echo "$MANIFEST_TOOL" >&6; } 7038else 7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7040$as_echo "no" >&6; } 7041fi 7042 7043 7044fi 7045if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7046 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7047 # Extract the first word of "mt", so it can be a program name with args. 7048set dummy mt; ac_word=$2 7049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7050$as_echo_n "checking for $ac_word... " >&6; } 7051if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7052 $as_echo_n "(cached) " >&6 7053else 7054 if test -n "$ac_ct_MANIFEST_TOOL"; then 7055 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7056else 7057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7058for as_dir in $PATH 7059do 7060 IFS=$as_save_IFS 7061 test -z "$as_dir" && as_dir=. 7062 for ac_exec_ext in '' $ac_executable_extensions; do 7063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7064 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7066 break 2 7067 fi 7068done 7069 done 7070IFS=$as_save_IFS 7071 7072fi 7073fi 7074ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7075if test -n "$ac_ct_MANIFEST_TOOL"; then 7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7077$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7078else 7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7080$as_echo "no" >&6; } 7081fi 7082 7083 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7084 MANIFEST_TOOL=":" 7085 else 7086 case $cross_compiling:$ac_tool_warned in 7087yes:) 7088{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7089$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7090ac_tool_warned=yes ;; 7091esac 7092 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7093 fi 7094else 7095 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7096fi 7097 7098test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7100$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7101if ${lt_cv_path_mainfest_tool+:} false; then : 7102 $as_echo_n "(cached) " >&6 7103else 7104 lt_cv_path_mainfest_tool=no 7105 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7106 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7107 cat conftest.err >&5 7108 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7109 lt_cv_path_mainfest_tool=yes 7110 fi 7111 rm -f conftest* 7112fi 7113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7114$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7115if test "x$lt_cv_path_mainfest_tool" != xyes; then 7116 MANIFEST_TOOL=: 7117fi 7118 7119 7120 7121 7122 7123 7124 case $host_os in 7125 rhapsody* | darwin*) 7126 if test -n "$ac_tool_prefix"; then 7127 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7128set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7130$as_echo_n "checking for $ac_word... " >&6; } 7131if ${ac_cv_prog_DSYMUTIL+:} false; then : 7132 $as_echo_n "(cached) " >&6 7133else 7134 if test -n "$DSYMUTIL"; then 7135 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7136else 7137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7138for as_dir in $PATH 7139do 7140 IFS=$as_save_IFS 7141 test -z "$as_dir" && as_dir=. 7142 for ac_exec_ext in '' $ac_executable_extensions; do 7143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7144 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7146 break 2 7147 fi 7148done 7149 done 7150IFS=$as_save_IFS 7151 7152fi 7153fi 7154DSYMUTIL=$ac_cv_prog_DSYMUTIL 7155if test -n "$DSYMUTIL"; then 7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7157$as_echo "$DSYMUTIL" >&6; } 7158else 7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7160$as_echo "no" >&6; } 7161fi 7162 7163 7164fi 7165if test -z "$ac_cv_prog_DSYMUTIL"; then 7166 ac_ct_DSYMUTIL=$DSYMUTIL 7167 # Extract the first word of "dsymutil", so it can be a program name with args. 7168set dummy dsymutil; ac_word=$2 7169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7170$as_echo_n "checking for $ac_word... " >&6; } 7171if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7172 $as_echo_n "(cached) " >&6 7173else 7174 if test -n "$ac_ct_DSYMUTIL"; then 7175 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7176else 7177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7178for as_dir in $PATH 7179do 7180 IFS=$as_save_IFS 7181 test -z "$as_dir" && as_dir=. 7182 for ac_exec_ext in '' $ac_executable_extensions; do 7183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7184 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7186 break 2 7187 fi 7188done 7189 done 7190IFS=$as_save_IFS 7191 7192fi 7193fi 7194ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7195if test -n "$ac_ct_DSYMUTIL"; then 7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7197$as_echo "$ac_ct_DSYMUTIL" >&6; } 7198else 7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7200$as_echo "no" >&6; } 7201fi 7202 7203 if test "x$ac_ct_DSYMUTIL" = x; then 7204 DSYMUTIL=":" 7205 else 7206 case $cross_compiling:$ac_tool_warned in 7207yes:) 7208{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7209$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7210ac_tool_warned=yes ;; 7211esac 7212 DSYMUTIL=$ac_ct_DSYMUTIL 7213 fi 7214else 7215 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7216fi 7217 7218 if test -n "$ac_tool_prefix"; then 7219 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7220set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7222$as_echo_n "checking for $ac_word... " >&6; } 7223if ${ac_cv_prog_NMEDIT+:} false; then : 7224 $as_echo_n "(cached) " >&6 7225else 7226 if test -n "$NMEDIT"; then 7227 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7228else 7229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7230for as_dir in $PATH 7231do 7232 IFS=$as_save_IFS 7233 test -z "$as_dir" && as_dir=. 7234 for ac_exec_ext in '' $ac_executable_extensions; do 7235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7236 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7238 break 2 7239 fi 7240done 7241 done 7242IFS=$as_save_IFS 7243 7244fi 7245fi 7246NMEDIT=$ac_cv_prog_NMEDIT 7247if test -n "$NMEDIT"; then 7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7249$as_echo "$NMEDIT" >&6; } 7250else 7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7252$as_echo "no" >&6; } 7253fi 7254 7255 7256fi 7257if test -z "$ac_cv_prog_NMEDIT"; then 7258 ac_ct_NMEDIT=$NMEDIT 7259 # Extract the first word of "nmedit", so it can be a program name with args. 7260set dummy nmedit; ac_word=$2 7261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7262$as_echo_n "checking for $ac_word... " >&6; } 7263if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7264 $as_echo_n "(cached) " >&6 7265else 7266 if test -n "$ac_ct_NMEDIT"; then 7267 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7268else 7269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7270for as_dir in $PATH 7271do 7272 IFS=$as_save_IFS 7273 test -z "$as_dir" && as_dir=. 7274 for ac_exec_ext in '' $ac_executable_extensions; do 7275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7276 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7278 break 2 7279 fi 7280done 7281 done 7282IFS=$as_save_IFS 7283 7284fi 7285fi 7286ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7287if test -n "$ac_ct_NMEDIT"; then 7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7289$as_echo "$ac_ct_NMEDIT" >&6; } 7290else 7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7292$as_echo "no" >&6; } 7293fi 7294 7295 if test "x$ac_ct_NMEDIT" = x; then 7296 NMEDIT=":" 7297 else 7298 case $cross_compiling:$ac_tool_warned in 7299yes:) 7300{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7301$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7302ac_tool_warned=yes ;; 7303esac 7304 NMEDIT=$ac_ct_NMEDIT 7305 fi 7306else 7307 NMEDIT="$ac_cv_prog_NMEDIT" 7308fi 7309 7310 if test -n "$ac_tool_prefix"; then 7311 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7312set dummy ${ac_tool_prefix}lipo; ac_word=$2 7313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7314$as_echo_n "checking for $ac_word... " >&6; } 7315if ${ac_cv_prog_LIPO+:} false; then : 7316 $as_echo_n "(cached) " >&6 7317else 7318 if test -n "$LIPO"; then 7319 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7320else 7321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7322for as_dir in $PATH 7323do 7324 IFS=$as_save_IFS 7325 test -z "$as_dir" && as_dir=. 7326 for ac_exec_ext in '' $ac_executable_extensions; do 7327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7328 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7330 break 2 7331 fi 7332done 7333 done 7334IFS=$as_save_IFS 7335 7336fi 7337fi 7338LIPO=$ac_cv_prog_LIPO 7339if test -n "$LIPO"; then 7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7341$as_echo "$LIPO" >&6; } 7342else 7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7344$as_echo "no" >&6; } 7345fi 7346 7347 7348fi 7349if test -z "$ac_cv_prog_LIPO"; then 7350 ac_ct_LIPO=$LIPO 7351 # Extract the first word of "lipo", so it can be a program name with args. 7352set dummy lipo; ac_word=$2 7353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7354$as_echo_n "checking for $ac_word... " >&6; } 7355if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7356 $as_echo_n "(cached) " >&6 7357else 7358 if test -n "$ac_ct_LIPO"; then 7359 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7360else 7361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7362for as_dir in $PATH 7363do 7364 IFS=$as_save_IFS 7365 test -z "$as_dir" && as_dir=. 7366 for ac_exec_ext in '' $ac_executable_extensions; do 7367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7368 ac_cv_prog_ac_ct_LIPO="lipo" 7369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7370 break 2 7371 fi 7372done 7373 done 7374IFS=$as_save_IFS 7375 7376fi 7377fi 7378ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7379if test -n "$ac_ct_LIPO"; then 7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7381$as_echo "$ac_ct_LIPO" >&6; } 7382else 7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7384$as_echo "no" >&6; } 7385fi 7386 7387 if test "x$ac_ct_LIPO" = x; then 7388 LIPO=":" 7389 else 7390 case $cross_compiling:$ac_tool_warned in 7391yes:) 7392{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7393$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7394ac_tool_warned=yes ;; 7395esac 7396 LIPO=$ac_ct_LIPO 7397 fi 7398else 7399 LIPO="$ac_cv_prog_LIPO" 7400fi 7401 7402 if test -n "$ac_tool_prefix"; then 7403 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7404set dummy ${ac_tool_prefix}otool; ac_word=$2 7405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7406$as_echo_n "checking for $ac_word... " >&6; } 7407if ${ac_cv_prog_OTOOL+:} false; then : 7408 $as_echo_n "(cached) " >&6 7409else 7410 if test -n "$OTOOL"; then 7411 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7412else 7413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7414for as_dir in $PATH 7415do 7416 IFS=$as_save_IFS 7417 test -z "$as_dir" && as_dir=. 7418 for ac_exec_ext in '' $ac_executable_extensions; do 7419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7420 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7422 break 2 7423 fi 7424done 7425 done 7426IFS=$as_save_IFS 7427 7428fi 7429fi 7430OTOOL=$ac_cv_prog_OTOOL 7431if test -n "$OTOOL"; then 7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7433$as_echo "$OTOOL" >&6; } 7434else 7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7436$as_echo "no" >&6; } 7437fi 7438 7439 7440fi 7441if test -z "$ac_cv_prog_OTOOL"; then 7442 ac_ct_OTOOL=$OTOOL 7443 # Extract the first word of "otool", so it can be a program name with args. 7444set dummy otool; 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_ac_ct_OTOOL+:} false; then : 7448 $as_echo_n "(cached) " >&6 7449else 7450 if test -n "$ac_ct_OTOOL"; then 7451 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7460 ac_cv_prog_ac_ct_OTOOL="otool" 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 7470ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7471if test -n "$ac_ct_OTOOL"; then 7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7473$as_echo "$ac_ct_OTOOL" >&6; } 7474else 7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7476$as_echo "no" >&6; } 7477fi 7478 7479 if test "x$ac_ct_OTOOL" = x; then 7480 OTOOL=":" 7481 else 7482 case $cross_compiling:$ac_tool_warned in 7483yes:) 7484{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7485$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7486ac_tool_warned=yes ;; 7487esac 7488 OTOOL=$ac_ct_OTOOL 7489 fi 7490else 7491 OTOOL="$ac_cv_prog_OTOOL" 7492fi 7493 7494 if test -n "$ac_tool_prefix"; then 7495 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7496set dummy ${ac_tool_prefix}otool64; ac_word=$2 7497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7498$as_echo_n "checking for $ac_word... " >&6; } 7499if ${ac_cv_prog_OTOOL64+:} false; then : 7500 $as_echo_n "(cached) " >&6 7501else 7502 if test -n "$OTOOL64"; then 7503 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7504else 7505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7506for as_dir in $PATH 7507do 7508 IFS=$as_save_IFS 7509 test -z "$as_dir" && as_dir=. 7510 for ac_exec_ext in '' $ac_executable_extensions; do 7511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7512 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7514 break 2 7515 fi 7516done 7517 done 7518IFS=$as_save_IFS 7519 7520fi 7521fi 7522OTOOL64=$ac_cv_prog_OTOOL64 7523if test -n "$OTOOL64"; then 7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7525$as_echo "$OTOOL64" >&6; } 7526else 7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7528$as_echo "no" >&6; } 7529fi 7530 7531 7532fi 7533if test -z "$ac_cv_prog_OTOOL64"; then 7534 ac_ct_OTOOL64=$OTOOL64 7535 # Extract the first word of "otool64", so it can be a program name with args. 7536set dummy otool64; 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_ac_ct_OTOOL64+:} false; then : 7540 $as_echo_n "(cached) " >&6 7541else 7542 if test -n "$ac_ct_OTOOL64"; then 7543 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7552 ac_cv_prog_ac_ct_OTOOL64="otool64" 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 7562ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7563if test -n "$ac_ct_OTOOL64"; then 7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7565$as_echo "$ac_ct_OTOOL64" >&6; } 7566else 7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7568$as_echo "no" >&6; } 7569fi 7570 7571 if test "x$ac_ct_OTOOL64" = x; then 7572 OTOOL64=":" 7573 else 7574 case $cross_compiling:$ac_tool_warned in 7575yes:) 7576{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7577$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7578ac_tool_warned=yes ;; 7579esac 7580 OTOOL64=$ac_ct_OTOOL64 7581 fi 7582else 7583 OTOOL64="$ac_cv_prog_OTOOL64" 7584fi 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7613$as_echo_n "checking for -single_module linker flag... " >&6; } 7614if ${lt_cv_apple_cc_single_mod+:} false; then : 7615 $as_echo_n "(cached) " >&6 7616else 7617 lt_cv_apple_cc_single_mod=no 7618 if test -z "${LT_MULTI_MODULE}"; then 7619 # By default we will add the -single_module flag. You can override 7620 # by either setting the environment variable LT_MULTI_MODULE 7621 # non-empty at configure time, or by adding -multi_module to the 7622 # link flags. 7623 rm -rf libconftest.dylib* 7624 echo "int foo(void){return 1;}" > conftest.c 7625 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7626-dynamiclib -Wl,-single_module conftest.c" >&5 7627 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7628 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7629 _lt_result=$? 7630 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7631 lt_cv_apple_cc_single_mod=yes 7632 else 7633 cat conftest.err >&5 7634 fi 7635 rm -rf libconftest.dylib* 7636 rm -f conftest.* 7637 fi 7638fi 7639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7640$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7642$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7643if ${lt_cv_ld_exported_symbols_list+:} false; then : 7644 $as_echo_n "(cached) " >&6 7645else 7646 lt_cv_ld_exported_symbols_list=no 7647 save_LDFLAGS=$LDFLAGS 7648 echo "_main" > conftest.sym 7649 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7651/* end confdefs.h. */ 7652 7653int 7654main () 7655{ 7656 7657 ; 7658 return 0; 7659} 7660_ACEOF 7661if ac_fn_c_try_link "$LINENO"; then : 7662 lt_cv_ld_exported_symbols_list=yes 7663else 7664 lt_cv_ld_exported_symbols_list=no 7665fi 7666rm -f core conftest.err conftest.$ac_objext \ 7667 conftest$ac_exeext conftest.$ac_ext 7668 LDFLAGS="$save_LDFLAGS" 7669 7670fi 7671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7672$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7674$as_echo_n "checking for -force_load linker flag... " >&6; } 7675if ${lt_cv_ld_force_load+:} false; then : 7676 $as_echo_n "(cached) " >&6 7677else 7678 lt_cv_ld_force_load=no 7679 cat > conftest.c << _LT_EOF 7680int forced_loaded() { return 2;} 7681_LT_EOF 7682 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7683 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7684 echo "$AR cru libconftest.a conftest.o" >&5 7685 $AR cru libconftest.a conftest.o 2>&5 7686 echo "$RANLIB libconftest.a" >&5 7687 $RANLIB libconftest.a 2>&5 7688 cat > conftest.c << _LT_EOF 7689int main() { return 0;} 7690_LT_EOF 7691 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7692 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7693 _lt_result=$? 7694 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7695 lt_cv_ld_force_load=yes 7696 else 7697 cat conftest.err >&5 7698 fi 7699 rm -f conftest.err libconftest.a conftest conftest.c 7700 rm -rf conftest.dSYM 7701 7702fi 7703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7704$as_echo "$lt_cv_ld_force_load" >&6; } 7705 case $host_os in 7706 rhapsody* | darwin1.[012]) 7707 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7708 darwin1.*) 7709 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7710 darwin*) # darwin 5.x on 7711 # if running on 10.5 or later, the deployment target defaults 7712 # to the OS version, if on x86, and 10.4, the deployment 7713 # target defaults to 10.4. Don't you love it? 7714 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7715 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7716 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7717 10.[012]*) 7718 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7719 10.*) 7720 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7721 esac 7722 ;; 7723 esac 7724 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7725 _lt_dar_single_mod='$single_module' 7726 fi 7727 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7728 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7729 else 7730 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7731 fi 7732 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7733 _lt_dsymutil='~$DSYMUTIL $lib || :' 7734 else 7735 _lt_dsymutil= 7736 fi 7737 ;; 7738 esac 7739 7740ac_ext=c 7741ac_cpp='$CPP $CPPFLAGS' 7742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7744ac_compiler_gnu=$ac_cv_c_compiler_gnu 7745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7746$as_echo_n "checking how to run the C preprocessor... " >&6; } 7747# On Suns, sometimes $CPP names a directory. 7748if test -n "$CPP" && test -d "$CPP"; then 7749 CPP= 7750fi 7751if test -z "$CPP"; then 7752 if ${ac_cv_prog_CPP+:} false; then : 7753 $as_echo_n "(cached) " >&6 7754else 7755 # Double quotes because CPP needs to be expanded 7756 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7757 do 7758 ac_preproc_ok=false 7759for ac_c_preproc_warn_flag in '' yes 7760do 7761 # Use a header file that comes with gcc, so configuring glibc 7762 # with a fresh cross-compiler works. 7763 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7764 # <limits.h> exists even on freestanding compilers. 7765 # On the NeXT, cc -E runs the code through the compiler's parser, 7766 # not just through cpp. "Syntax error" is here to catch this case. 7767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7768/* end confdefs.h. */ 7769#ifdef __STDC__ 7770# include <limits.h> 7771#else 7772# include <assert.h> 7773#endif 7774 Syntax error 7775_ACEOF 7776if ac_fn_c_try_cpp "$LINENO"; then : 7777 7778else 7779 # Broken: fails on valid input. 7780continue 7781fi 7782rm -f conftest.err conftest.i conftest.$ac_ext 7783 7784 # OK, works on sane cases. Now check whether nonexistent headers 7785 # can be detected and how. 7786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7787/* end confdefs.h. */ 7788#include <ac_nonexistent.h> 7789_ACEOF 7790if ac_fn_c_try_cpp "$LINENO"; then : 7791 # Broken: success on invalid input. 7792continue 7793else 7794 # Passes both tests. 7795ac_preproc_ok=: 7796break 7797fi 7798rm -f conftest.err conftest.i conftest.$ac_ext 7799 7800done 7801# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7802rm -f conftest.i conftest.err conftest.$ac_ext 7803if $ac_preproc_ok; then : 7804 break 7805fi 7806 7807 done 7808 ac_cv_prog_CPP=$CPP 7809 7810fi 7811 CPP=$ac_cv_prog_CPP 7812else 7813 ac_cv_prog_CPP=$CPP 7814fi 7815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7816$as_echo "$CPP" >&6; } 7817ac_preproc_ok=false 7818for ac_c_preproc_warn_flag in '' yes 7819do 7820 # Use a header file that comes with gcc, so configuring glibc 7821 # with a fresh cross-compiler works. 7822 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7823 # <limits.h> exists even on freestanding compilers. 7824 # On the NeXT, cc -E runs the code through the compiler's parser, 7825 # not just through cpp. "Syntax error" is here to catch this case. 7826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7827/* end confdefs.h. */ 7828#ifdef __STDC__ 7829# include <limits.h> 7830#else 7831# include <assert.h> 7832#endif 7833 Syntax error 7834_ACEOF 7835if ac_fn_c_try_cpp "$LINENO"; then : 7836 7837else 7838 # Broken: fails on valid input. 7839continue 7840fi 7841rm -f conftest.err conftest.i conftest.$ac_ext 7842 7843 # OK, works on sane cases. Now check whether nonexistent headers 7844 # can be detected and how. 7845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7846/* end confdefs.h. */ 7847#include <ac_nonexistent.h> 7848_ACEOF 7849if ac_fn_c_try_cpp "$LINENO"; then : 7850 # Broken: success on invalid input. 7851continue 7852else 7853 # Passes both tests. 7854ac_preproc_ok=: 7855break 7856fi 7857rm -f conftest.err conftest.i conftest.$ac_ext 7858 7859done 7860# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7861rm -f conftest.i conftest.err conftest.$ac_ext 7862if $ac_preproc_ok; then : 7863 7864else 7865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7866$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7867as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7868See \`config.log' for more details" "$LINENO" 5; } 7869fi 7870 7871ac_ext=c 7872ac_cpp='$CPP $CPPFLAGS' 7873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7875ac_compiler_gnu=$ac_cv_c_compiler_gnu 7876 7877 7878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7879$as_echo_n "checking for ANSI C header files... " >&6; } 7880if ${ac_cv_header_stdc+:} false; then : 7881 $as_echo_n "(cached) " >&6 7882else 7883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7884/* end confdefs.h. */ 7885#include <stdlib.h> 7886#include <stdarg.h> 7887#include <string.h> 7888#include <float.h> 7889 7890int 7891main () 7892{ 7893 7894 ; 7895 return 0; 7896} 7897_ACEOF 7898if ac_fn_c_try_compile "$LINENO"; then : 7899 ac_cv_header_stdc=yes 7900else 7901 ac_cv_header_stdc=no 7902fi 7903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7904 7905if test $ac_cv_header_stdc = yes; then 7906 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7908/* end confdefs.h. */ 7909#include <string.h> 7910 7911_ACEOF 7912if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7913 $EGREP "memchr" >/dev/null 2>&1; then : 7914 7915else 7916 ac_cv_header_stdc=no 7917fi 7918rm -f conftest* 7919 7920fi 7921 7922if test $ac_cv_header_stdc = yes; then 7923 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7925/* end confdefs.h. */ 7926#include <stdlib.h> 7927 7928_ACEOF 7929if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7930 $EGREP "free" >/dev/null 2>&1; then : 7931 7932else 7933 ac_cv_header_stdc=no 7934fi 7935rm -f conftest* 7936 7937fi 7938 7939if test $ac_cv_header_stdc = yes; then 7940 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7941 if test "$cross_compiling" = yes; then : 7942 : 7943else 7944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7945/* end confdefs.h. */ 7946#include <ctype.h> 7947#include <stdlib.h> 7948#if ((' ' & 0x0FF) == 0x020) 7949# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7950# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7951#else 7952# define ISLOWER(c) \ 7953 (('a' <= (c) && (c) <= 'i') \ 7954 || ('j' <= (c) && (c) <= 'r') \ 7955 || ('s' <= (c) && (c) <= 'z')) 7956# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7957#endif 7958 7959#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7960int 7961main () 7962{ 7963 int i; 7964 for (i = 0; i < 256; i++) 7965 if (XOR (islower (i), ISLOWER (i)) 7966 || toupper (i) != TOUPPER (i)) 7967 return 2; 7968 return 0; 7969} 7970_ACEOF 7971if ac_fn_c_try_run "$LINENO"; then : 7972 7973else 7974 ac_cv_header_stdc=no 7975fi 7976rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7977 conftest.$ac_objext conftest.beam conftest.$ac_ext 7978fi 7979 7980fi 7981fi 7982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7983$as_echo "$ac_cv_header_stdc" >&6; } 7984if test $ac_cv_header_stdc = yes; then 7985 7986$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7987 7988fi 7989 7990# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7991for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7992 inttypes.h stdint.h unistd.h 7993do : 7994 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7995ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7996" 7997if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7998 cat >>confdefs.h <<_ACEOF 7999#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8000_ACEOF 8001 8002fi 8003 8004done 8005 8006 8007for ac_header in dlfcn.h 8008do : 8009 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8010" 8011if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8012 cat >>confdefs.h <<_ACEOF 8013#define HAVE_DLFCN_H 1 8014_ACEOF 8015 8016fi 8017 8018done 8019 8020 8021 8022 8023 8024# Set options 8025enable_win32_dll=yes 8026 8027case $host in 8028*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 8029 if test -n "$ac_tool_prefix"; then 8030 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 8031set dummy ${ac_tool_prefix}as; ac_word=$2 8032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8033$as_echo_n "checking for $ac_word... " >&6; } 8034if ${ac_cv_prog_AS+:} false; then : 8035 $as_echo_n "(cached) " >&6 8036else 8037 if test -n "$AS"; then 8038 ac_cv_prog_AS="$AS" # Let the user override the test. 8039else 8040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8041for as_dir in $PATH 8042do 8043 IFS=$as_save_IFS 8044 test -z "$as_dir" && as_dir=. 8045 for ac_exec_ext in '' $ac_executable_extensions; do 8046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8047 ac_cv_prog_AS="${ac_tool_prefix}as" 8048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8049 break 2 8050 fi 8051done 8052 done 8053IFS=$as_save_IFS 8054 8055fi 8056fi 8057AS=$ac_cv_prog_AS 8058if test -n "$AS"; then 8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8060$as_echo "$AS" >&6; } 8061else 8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8063$as_echo "no" >&6; } 8064fi 8065 8066 8067fi 8068if test -z "$ac_cv_prog_AS"; then 8069 ac_ct_AS=$AS 8070 # Extract the first word of "as", so it can be a program name with args. 8071set dummy as; ac_word=$2 8072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8073$as_echo_n "checking for $ac_word... " >&6; } 8074if ${ac_cv_prog_ac_ct_AS+:} false; then : 8075 $as_echo_n "(cached) " >&6 8076else 8077 if test -n "$ac_ct_AS"; then 8078 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 8079else 8080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8081for as_dir in $PATH 8082do 8083 IFS=$as_save_IFS 8084 test -z "$as_dir" && as_dir=. 8085 for ac_exec_ext in '' $ac_executable_extensions; do 8086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8087 ac_cv_prog_ac_ct_AS="as" 8088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8089 break 2 8090 fi 8091done 8092 done 8093IFS=$as_save_IFS 8094 8095fi 8096fi 8097ac_ct_AS=$ac_cv_prog_ac_ct_AS 8098if test -n "$ac_ct_AS"; then 8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 8100$as_echo "$ac_ct_AS" >&6; } 8101else 8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8103$as_echo "no" >&6; } 8104fi 8105 8106 if test "x$ac_ct_AS" = x; then 8107 AS="false" 8108 else 8109 case $cross_compiling:$ac_tool_warned in 8110yes:) 8111{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8112$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8113ac_tool_warned=yes ;; 8114esac 8115 AS=$ac_ct_AS 8116 fi 8117else 8118 AS="$ac_cv_prog_AS" 8119fi 8120 8121 if test -n "$ac_tool_prefix"; then 8122 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8123set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8125$as_echo_n "checking for $ac_word... " >&6; } 8126if ${ac_cv_prog_DLLTOOL+:} false; then : 8127 $as_echo_n "(cached) " >&6 8128else 8129 if test -n "$DLLTOOL"; then 8130 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8131else 8132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8133for as_dir in $PATH 8134do 8135 IFS=$as_save_IFS 8136 test -z "$as_dir" && as_dir=. 8137 for ac_exec_ext in '' $ac_executable_extensions; do 8138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8139 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8141 break 2 8142 fi 8143done 8144 done 8145IFS=$as_save_IFS 8146 8147fi 8148fi 8149DLLTOOL=$ac_cv_prog_DLLTOOL 8150if test -n "$DLLTOOL"; then 8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8152$as_echo "$DLLTOOL" >&6; } 8153else 8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8155$as_echo "no" >&6; } 8156fi 8157 8158 8159fi 8160if test -z "$ac_cv_prog_DLLTOOL"; then 8161 ac_ct_DLLTOOL=$DLLTOOL 8162 # Extract the first word of "dlltool", so it can be a program name with args. 8163set dummy dlltool; ac_word=$2 8164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8165$as_echo_n "checking for $ac_word... " >&6; } 8166if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8167 $as_echo_n "(cached) " >&6 8168else 8169 if test -n "$ac_ct_DLLTOOL"; then 8170 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8171else 8172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8173for as_dir in $PATH 8174do 8175 IFS=$as_save_IFS 8176 test -z "$as_dir" && as_dir=. 8177 for ac_exec_ext in '' $ac_executable_extensions; do 8178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8179 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8181 break 2 8182 fi 8183done 8184 done 8185IFS=$as_save_IFS 8186 8187fi 8188fi 8189ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8190if test -n "$ac_ct_DLLTOOL"; then 8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8192$as_echo "$ac_ct_DLLTOOL" >&6; } 8193else 8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8195$as_echo "no" >&6; } 8196fi 8197 8198 if test "x$ac_ct_DLLTOOL" = x; then 8199 DLLTOOL="false" 8200 else 8201 case $cross_compiling:$ac_tool_warned in 8202yes:) 8203{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8204$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8205ac_tool_warned=yes ;; 8206esac 8207 DLLTOOL=$ac_ct_DLLTOOL 8208 fi 8209else 8210 DLLTOOL="$ac_cv_prog_DLLTOOL" 8211fi 8212 8213 if test -n "$ac_tool_prefix"; then 8214 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8215set dummy ${ac_tool_prefix}objdump; ac_word=$2 8216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8217$as_echo_n "checking for $ac_word... " >&6; } 8218if ${ac_cv_prog_OBJDUMP+:} false; then : 8219 $as_echo_n "(cached) " >&6 8220else 8221 if test -n "$OBJDUMP"; then 8222 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8223else 8224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8225for as_dir in $PATH 8226do 8227 IFS=$as_save_IFS 8228 test -z "$as_dir" && as_dir=. 8229 for ac_exec_ext in '' $ac_executable_extensions; do 8230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8231 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8233 break 2 8234 fi 8235done 8236 done 8237IFS=$as_save_IFS 8238 8239fi 8240fi 8241OBJDUMP=$ac_cv_prog_OBJDUMP 8242if test -n "$OBJDUMP"; then 8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8244$as_echo "$OBJDUMP" >&6; } 8245else 8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8247$as_echo "no" >&6; } 8248fi 8249 8250 8251fi 8252if test -z "$ac_cv_prog_OBJDUMP"; then 8253 ac_ct_OBJDUMP=$OBJDUMP 8254 # Extract the first word of "objdump", so it can be a program name with args. 8255set dummy objdump; ac_word=$2 8256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8257$as_echo_n "checking for $ac_word... " >&6; } 8258if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8259 $as_echo_n "(cached) " >&6 8260else 8261 if test -n "$ac_ct_OBJDUMP"; then 8262 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8263else 8264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8265for as_dir in $PATH 8266do 8267 IFS=$as_save_IFS 8268 test -z "$as_dir" && as_dir=. 8269 for ac_exec_ext in '' $ac_executable_extensions; do 8270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8271 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8273 break 2 8274 fi 8275done 8276 done 8277IFS=$as_save_IFS 8278 8279fi 8280fi 8281ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8282if test -n "$ac_ct_OBJDUMP"; then 8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8284$as_echo "$ac_ct_OBJDUMP" >&6; } 8285else 8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8287$as_echo "no" >&6; } 8288fi 8289 8290 if test "x$ac_ct_OBJDUMP" = x; then 8291 OBJDUMP="false" 8292 else 8293 case $cross_compiling:$ac_tool_warned in 8294yes:) 8295{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8296$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8297ac_tool_warned=yes ;; 8298esac 8299 OBJDUMP=$ac_ct_OBJDUMP 8300 fi 8301else 8302 OBJDUMP="$ac_cv_prog_OBJDUMP" 8303fi 8304 8305 ;; 8306esac 8307 8308test -z "$AS" && AS=as 8309 8310 8311 8312 8313 8314test -z "$DLLTOOL" && DLLTOOL=dlltool 8315 8316 8317 8318 8319 8320test -z "$OBJDUMP" && OBJDUMP=objdump 8321 8322 8323 8324 8325 8326 8327 8328 enable_dlopen=no 8329 8330 8331 8332 # Check whether --enable-shared was given. 8333if test "${enable_shared+set}" = set; then : 8334 enableval=$enable_shared; p=${PACKAGE-default} 8335 case $enableval in 8336 yes) enable_shared=yes ;; 8337 no) enable_shared=no ;; 8338 *) 8339 enable_shared=no 8340 # Look at the argument we got. We use all the common list separators. 8341 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8342 for pkg in $enableval; do 8343 IFS="$lt_save_ifs" 8344 if test "X$pkg" = "X$p"; then 8345 enable_shared=yes 8346 fi 8347 done 8348 IFS="$lt_save_ifs" 8349 ;; 8350 esac 8351else 8352 enable_shared=yes 8353fi 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 # Check whether --enable-static was given. 8364if test "${enable_static+set}" = set; then : 8365 enableval=$enable_static; p=${PACKAGE-default} 8366 case $enableval in 8367 yes) enable_static=yes ;; 8368 no) enable_static=no ;; 8369 *) 8370 enable_static=no 8371 # Look at the argument we got. We use all the common list separators. 8372 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8373 for pkg in $enableval; do 8374 IFS="$lt_save_ifs" 8375 if test "X$pkg" = "X$p"; then 8376 enable_static=yes 8377 fi 8378 done 8379 IFS="$lt_save_ifs" 8380 ;; 8381 esac 8382else 8383 enable_static=yes 8384fi 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395# Check whether --with-pic was given. 8396if test "${with_pic+set}" = set; then : 8397 withval=$with_pic; pic_mode="$withval" 8398else 8399 pic_mode=default 8400fi 8401 8402 8403test -z "$pic_mode" && pic_mode=default 8404 8405 8406 8407 8408 8409 8410 8411 # Check whether --enable-fast-install was given. 8412if test "${enable_fast_install+set}" = set; then : 8413 enableval=$enable_fast_install; p=${PACKAGE-default} 8414 case $enableval in 8415 yes) enable_fast_install=yes ;; 8416 no) enable_fast_install=no ;; 8417 *) 8418 enable_fast_install=no 8419 # Look at the argument we got. We use all the common list separators. 8420 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8421 for pkg in $enableval; do 8422 IFS="$lt_save_ifs" 8423 if test "X$pkg" = "X$p"; then 8424 enable_fast_install=yes 8425 fi 8426 done 8427 IFS="$lt_save_ifs" 8428 ;; 8429 esac 8430else 8431 enable_fast_install=yes 8432fi 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444# This can be used to rebuild libtool when needed 8445LIBTOOL_DEPS="$ltmain" 8446 8447# Always use our own libtool. 8448LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475test -z "$LN_S" && LN_S="ln -s" 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490if test -n "${ZSH_VERSION+set}" ; then 8491 setopt NO_GLOB_SUBST 8492fi 8493 8494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8495$as_echo_n "checking for objdir... " >&6; } 8496if ${lt_cv_objdir+:} false; then : 8497 $as_echo_n "(cached) " >&6 8498else 8499 rm -f .libs 2>/dev/null 8500mkdir .libs 2>/dev/null 8501if test -d .libs; then 8502 lt_cv_objdir=.libs 8503else 8504 # MS-DOS does not allow filenames that begin with a dot. 8505 lt_cv_objdir=_libs 8506fi 8507rmdir .libs 2>/dev/null 8508fi 8509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8510$as_echo "$lt_cv_objdir" >&6; } 8511objdir=$lt_cv_objdir 8512 8513 8514 8515 8516 8517cat >>confdefs.h <<_ACEOF 8518#define LT_OBJDIR "$lt_cv_objdir/" 8519_ACEOF 8520 8521 8522 8523 8524case $host_os in 8525aix3*) 8526 # AIX sometimes has problems with the GCC collect2 program. For some 8527 # reason, if we set the COLLECT_NAMES environment variable, the problems 8528 # vanish in a puff of smoke. 8529 if test "X${COLLECT_NAMES+set}" != Xset; then 8530 COLLECT_NAMES= 8531 export COLLECT_NAMES 8532 fi 8533 ;; 8534esac 8535 8536# Global variables: 8537ofile=libtool 8538can_build_shared=yes 8539 8540# All known linkers require a `.a' archive for static linking (except MSVC, 8541# which needs '.lib'). 8542libext=a 8543 8544with_gnu_ld="$lt_cv_prog_gnu_ld" 8545 8546old_CC="$CC" 8547old_CFLAGS="$CFLAGS" 8548 8549# Set sane defaults for various variables 8550test -z "$CC" && CC=cc 8551test -z "$LTCC" && LTCC=$CC 8552test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8553test -z "$LD" && LD=ld 8554test -z "$ac_objext" && ac_objext=o 8555 8556for cc_temp in $compiler""; do 8557 case $cc_temp in 8558 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8559 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8560 \-*) ;; 8561 *) break;; 8562 esac 8563done 8564cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8565 8566 8567# Only perform the check for file, if the check method requires it 8568test -z "$MAGIC_CMD" && MAGIC_CMD=file 8569case $deplibs_check_method in 8570file_magic*) 8571 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8573$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8574if ${lt_cv_path_MAGIC_CMD+:} false; then : 8575 $as_echo_n "(cached) " >&6 8576else 8577 case $MAGIC_CMD in 8578[\\/*] | ?:[\\/]*) 8579 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8580 ;; 8581*) 8582 lt_save_MAGIC_CMD="$MAGIC_CMD" 8583 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8584 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8585 for ac_dir in $ac_dummy; do 8586 IFS="$lt_save_ifs" 8587 test -z "$ac_dir" && ac_dir=. 8588 if test -f $ac_dir/${ac_tool_prefix}file; then 8589 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8590 if test -n "$file_magic_test_file"; then 8591 case $deplibs_check_method in 8592 "file_magic "*) 8593 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8594 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8595 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8596 $EGREP "$file_magic_regex" > /dev/null; then 8597 : 8598 else 8599 cat <<_LT_EOF 1>&2 8600 8601*** Warning: the command libtool uses to detect shared libraries, 8602*** $file_magic_cmd, produces output that libtool cannot recognize. 8603*** The result is that libtool may fail to recognize shared libraries 8604*** as such. This will affect the creation of libtool libraries that 8605*** depend on shared libraries, but programs linked with such libtool 8606*** libraries will work regardless of this problem. Nevertheless, you 8607*** may want to report the problem to your system manager and/or to 8608*** [email protected] 8609 8610_LT_EOF 8611 fi ;; 8612 esac 8613 fi 8614 break 8615 fi 8616 done 8617 IFS="$lt_save_ifs" 8618 MAGIC_CMD="$lt_save_MAGIC_CMD" 8619 ;; 8620esac 8621fi 8622 8623MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8624if test -n "$MAGIC_CMD"; then 8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8626$as_echo "$MAGIC_CMD" >&6; } 8627else 8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8629$as_echo "no" >&6; } 8630fi 8631 8632 8633 8634 8635 8636if test -z "$lt_cv_path_MAGIC_CMD"; then 8637 if test -n "$ac_tool_prefix"; then 8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8639$as_echo_n "checking for file... " >&6; } 8640if ${lt_cv_path_MAGIC_CMD+:} false; then : 8641 $as_echo_n "(cached) " >&6 8642else 8643 case $MAGIC_CMD in 8644[\\/*] | ?:[\\/]*) 8645 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8646 ;; 8647*) 8648 lt_save_MAGIC_CMD="$MAGIC_CMD" 8649 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8650 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8651 for ac_dir in $ac_dummy; do 8652 IFS="$lt_save_ifs" 8653 test -z "$ac_dir" && ac_dir=. 8654 if test -f $ac_dir/file; then 8655 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8656 if test -n "$file_magic_test_file"; then 8657 case $deplibs_check_method in 8658 "file_magic "*) 8659 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8660 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8661 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8662 $EGREP "$file_magic_regex" > /dev/null; then 8663 : 8664 else 8665 cat <<_LT_EOF 1>&2 8666 8667*** Warning: the command libtool uses to detect shared libraries, 8668*** $file_magic_cmd, produces output that libtool cannot recognize. 8669*** The result is that libtool may fail to recognize shared libraries 8670*** as such. This will affect the creation of libtool libraries that 8671*** depend on shared libraries, but programs linked with such libtool 8672*** libraries will work regardless of this problem. Nevertheless, you 8673*** may want to report the problem to your system manager and/or to 8674*** [email protected] 8675 8676_LT_EOF 8677 fi ;; 8678 esac 8679 fi 8680 break 8681 fi 8682 done 8683 IFS="$lt_save_ifs" 8684 MAGIC_CMD="$lt_save_MAGIC_CMD" 8685 ;; 8686esac 8687fi 8688 8689MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8690if test -n "$MAGIC_CMD"; then 8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8692$as_echo "$MAGIC_CMD" >&6; } 8693else 8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8695$as_echo "no" >&6; } 8696fi 8697 8698 8699 else 8700 MAGIC_CMD=: 8701 fi 8702fi 8703 8704 fi 8705 ;; 8706esac 8707 8708# Use C for the default configuration in the libtool script 8709 8710lt_save_CC="$CC" 8711ac_ext=c 8712ac_cpp='$CPP $CPPFLAGS' 8713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8715ac_compiler_gnu=$ac_cv_c_compiler_gnu 8716 8717 8718# Source file extension for C test sources. 8719ac_ext=c 8720 8721# Object file extension for compiled C test sources. 8722objext=o 8723objext=$objext 8724 8725# Code to be used in simple compile tests 8726lt_simple_compile_test_code="int some_variable = 0;" 8727 8728# Code to be used in simple link tests 8729lt_simple_link_test_code='int main(){return(0);}' 8730 8731 8732 8733 8734 8735 8736 8737# If no C compiler was specified, use CC. 8738LTCC=${LTCC-"$CC"} 8739 8740# If no C compiler flags were specified, use CFLAGS. 8741LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8742 8743# Allow CC to be a program name with arguments. 8744compiler=$CC 8745 8746# Save the default compiler, since it gets overwritten when the other 8747# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8748compiler_DEFAULT=$CC 8749 8750# save warnings/boilerplate of simple test code 8751ac_outfile=conftest.$ac_objext 8752echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8753eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8754_lt_compiler_boilerplate=`cat conftest.err` 8755$RM conftest* 8756 8757ac_outfile=conftest.$ac_objext 8758echo "$lt_simple_link_test_code" >conftest.$ac_ext 8759eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8760_lt_linker_boilerplate=`cat conftest.err` 8761$RM -r conftest* 8762 8763 8764## CAVEAT EMPTOR: 8765## There is no encapsulation within the following macros, do not change 8766## the running order or otherwise move them around unless you know exactly 8767## what you are doing... 8768if test -n "$compiler"; then 8769 8770lt_prog_compiler_no_builtin_flag= 8771 8772if test "$GCC" = yes; then 8773 case $cc_basename in 8774 nvcc*) 8775 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8776 *) 8777 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8778 esac 8779 8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8781$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8782if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8783 $as_echo_n "(cached) " >&6 8784else 8785 lt_cv_prog_compiler_rtti_exceptions=no 8786 ac_outfile=conftest.$ac_objext 8787 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8788 lt_compiler_flag="-fno-rtti -fno-exceptions" 8789 # Insert the option either (1) after the last *FLAGS variable, or 8790 # (2) before a word containing "conftest.", or (3) at the end. 8791 # Note that $ac_compile itself does not contain backslashes and begins 8792 # with a dollar sign (not a hyphen), so the echo should work correctly. 8793 # The option is referenced via a variable to avoid confusing sed. 8794 lt_compile=`echo "$ac_compile" | $SED \ 8795 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8797 -e 's:$: $lt_compiler_flag:'` 8798 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8799 (eval "$lt_compile" 2>conftest.err) 8800 ac_status=$? 8801 cat conftest.err >&5 8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8803 if (exit $ac_status) && test -s "$ac_outfile"; then 8804 # The compiler can only warn and ignore the option if not recognized 8805 # So say no if there are warnings other than the usual output. 8806 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8807 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8808 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8809 lt_cv_prog_compiler_rtti_exceptions=yes 8810 fi 8811 fi 8812 $RM conftest* 8813 8814fi 8815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8816$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8817 8818if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8819 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8820else 8821 : 8822fi 8823 8824fi 8825 8826 8827 8828 8829 8830 8831 lt_prog_compiler_wl= 8832lt_prog_compiler_pic= 8833lt_prog_compiler_static= 8834 8835 8836 if test "$GCC" = yes; then 8837 lt_prog_compiler_wl='-Wl,' 8838 lt_prog_compiler_static='-static' 8839 8840 case $host_os in 8841 aix*) 8842 # All AIX code is PIC. 8843 if test "$host_cpu" = ia64; then 8844 # AIX 5 now supports IA64 processor 8845 lt_prog_compiler_static='-Bstatic' 8846 fi 8847 ;; 8848 8849 amigaos*) 8850 case $host_cpu in 8851 powerpc) 8852 # see comment about AmigaOS4 .so support 8853 lt_prog_compiler_pic='-fPIC' 8854 ;; 8855 m68k) 8856 # FIXME: we need at least 68020 code to build shared libraries, but 8857 # adding the `-m68020' flag to GCC prevents building anything better, 8858 # like `-m68040'. 8859 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8860 ;; 8861 esac 8862 ;; 8863 8864 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8865 # PIC is the default for these OSes. 8866 ;; 8867 8868 mingw* | cygwin* | pw32* | os2* | cegcc*) 8869 # This hack is so that the source file can tell whether it is being 8870 # built for inclusion in a dll (and should export symbols for example). 8871 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8872 # (--disable-auto-import) libraries 8873 lt_prog_compiler_pic='-DDLL_EXPORT' 8874 ;; 8875 8876 darwin* | rhapsody*) 8877 # PIC is the default on this platform 8878 # Common symbols not allowed in MH_DYLIB files 8879 lt_prog_compiler_pic='-fno-common' 8880 ;; 8881 8882 haiku*) 8883 # PIC is the default for Haiku. 8884 # The "-static" flag exists, but is broken. 8885 lt_prog_compiler_static= 8886 ;; 8887 8888 hpux*) 8889 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8890 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8891 # sets the default TLS model and affects inlining. 8892 case $host_cpu in 8893 hppa*64*) 8894 # +Z the default 8895 ;; 8896 *) 8897 lt_prog_compiler_pic='-fPIC' 8898 ;; 8899 esac 8900 ;; 8901 8902 interix[3-9]*) 8903 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8904 # Instead, we relocate shared libraries at runtime. 8905 ;; 8906 8907 msdosdjgpp*) 8908 # Just because we use GCC doesn't mean we suddenly get shared libraries 8909 # on systems that don't support them. 8910 lt_prog_compiler_can_build_shared=no 8911 enable_shared=no 8912 ;; 8913 8914 *nto* | *qnx*) 8915 # QNX uses GNU C++, but need to define -shared option too, otherwise 8916 # it will coredump. 8917 lt_prog_compiler_pic='-fPIC -shared' 8918 ;; 8919 8920 sysv4*MP*) 8921 if test -d /usr/nec; then 8922 lt_prog_compiler_pic=-Kconform_pic 8923 fi 8924 ;; 8925 8926 *) 8927 lt_prog_compiler_pic='-fPIC' 8928 ;; 8929 esac 8930 8931 case $cc_basename in 8932 nvcc*) # Cuda Compiler Driver 2.2 8933 lt_prog_compiler_wl='-Xlinker ' 8934 lt_prog_compiler_pic='-Xcompiler -fPIC' 8935 ;; 8936 esac 8937 else 8938 # PORTME Check for flag to pass linker flags through the system compiler. 8939 case $host_os in 8940 aix*) 8941 lt_prog_compiler_wl='-Wl,' 8942 if test "$host_cpu" = ia64; then 8943 # AIX 5 now supports IA64 processor 8944 lt_prog_compiler_static='-Bstatic' 8945 else 8946 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8947 fi 8948 ;; 8949 8950 mingw* | cygwin* | pw32* | os2* | cegcc*) 8951 # This hack is so that the source file can tell whether it is being 8952 # built for inclusion in a dll (and should export symbols for example). 8953 lt_prog_compiler_pic='-DDLL_EXPORT' 8954 ;; 8955 8956 hpux9* | hpux10* | hpux11*) 8957 lt_prog_compiler_wl='-Wl,' 8958 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8959 # not for PA HP-UX. 8960 case $host_cpu in 8961 hppa*64*|ia64*) 8962 # +Z the default 8963 ;; 8964 *) 8965 lt_prog_compiler_pic='+Z' 8966 ;; 8967 esac 8968 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8969 lt_prog_compiler_static='${wl}-a ${wl}archive' 8970 ;; 8971 8972 irix5* | irix6* | nonstopux*) 8973 lt_prog_compiler_wl='-Wl,' 8974 # PIC (with -KPIC) is the default. 8975 lt_prog_compiler_static='-non_shared' 8976 ;; 8977 8978 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8979 case $cc_basename in 8980 # old Intel for x86_64 which still supported -KPIC. 8981 ecc*) 8982 lt_prog_compiler_wl='-Wl,' 8983 lt_prog_compiler_pic='-KPIC' 8984 lt_prog_compiler_static='-static' 8985 ;; 8986 # icc used to be incompatible with GCC. 8987 # ICC 10 doesn't accept -KPIC any more. 8988 icc* | ifort*) 8989 lt_prog_compiler_wl='-Wl,' 8990 lt_prog_compiler_pic='-fPIC' 8991 lt_prog_compiler_static='-static' 8992 ;; 8993 # Lahey Fortran 8.1. 8994 lf95*) 8995 lt_prog_compiler_wl='-Wl,' 8996 lt_prog_compiler_pic='--shared' 8997 lt_prog_compiler_static='--static' 8998 ;; 8999 nagfor*) 9000 # NAG Fortran compiler 9001 lt_prog_compiler_wl='-Wl,-Wl,,' 9002 lt_prog_compiler_pic='-PIC' 9003 lt_prog_compiler_static='-Bstatic' 9004 ;; 9005 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9006 # Portland Group compilers (*not* the Pentium gcc compiler, 9007 # which looks to be a dead project) 9008 lt_prog_compiler_wl='-Wl,' 9009 lt_prog_compiler_pic='-fpic' 9010 lt_prog_compiler_static='-Bstatic' 9011 ;; 9012 ccc*) 9013 lt_prog_compiler_wl='-Wl,' 9014 # All Alpha code is PIC. 9015 lt_prog_compiler_static='-non_shared' 9016 ;; 9017 xl* | bgxl* | bgf* | mpixl*) 9018 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9019 lt_prog_compiler_wl='-Wl,' 9020 lt_prog_compiler_pic='-qpic' 9021 lt_prog_compiler_static='-qstaticlink' 9022 ;; 9023 *) 9024 case `$CC -V 2>&1 | sed 5q` in 9025 *Sun\ F* | *Sun*Fortran*) 9026 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9027 lt_prog_compiler_pic='-KPIC' 9028 lt_prog_compiler_static='-Bstatic' 9029 lt_prog_compiler_wl='' 9030 ;; 9031 *Sun\ C*) 9032 # Sun C 5.9 9033 lt_prog_compiler_pic='-KPIC' 9034 lt_prog_compiler_static='-Bstatic' 9035 lt_prog_compiler_wl='-Wl,' 9036 ;; 9037 esac 9038 ;; 9039 esac 9040 ;; 9041 9042 newsos6) 9043 lt_prog_compiler_pic='-KPIC' 9044 lt_prog_compiler_static='-Bstatic' 9045 ;; 9046 9047 *nto* | *qnx*) 9048 # QNX uses GNU C++, but need to define -shared option too, otherwise 9049 # it will coredump. 9050 lt_prog_compiler_pic='-fPIC -shared' 9051 ;; 9052 9053 osf3* | osf4* | osf5*) 9054 lt_prog_compiler_wl='-Wl,' 9055 # All OSF/1 code is PIC. 9056 lt_prog_compiler_static='-non_shared' 9057 ;; 9058 9059 rdos*) 9060 lt_prog_compiler_static='-non_shared' 9061 ;; 9062 9063 solaris*) 9064 lt_prog_compiler_pic='-KPIC' 9065 lt_prog_compiler_static='-Bstatic' 9066 case $cc_basename in 9067 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9068 lt_prog_compiler_wl='-Qoption ld ';; 9069 *) 9070 lt_prog_compiler_wl='-Wl,';; 9071 esac 9072 ;; 9073 9074 sunos4*) 9075 lt_prog_compiler_wl='-Qoption ld ' 9076 lt_prog_compiler_pic='-PIC' 9077 lt_prog_compiler_static='-Bstatic' 9078 ;; 9079 9080 sysv4 | sysv4.2uw2* | sysv4.3*) 9081 lt_prog_compiler_wl='-Wl,' 9082 lt_prog_compiler_pic='-KPIC' 9083 lt_prog_compiler_static='-Bstatic' 9084 ;; 9085 9086 sysv4*MP*) 9087 if test -d /usr/nec ;then 9088 lt_prog_compiler_pic='-Kconform_pic' 9089 lt_prog_compiler_static='-Bstatic' 9090 fi 9091 ;; 9092 9093 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9094 lt_prog_compiler_wl='-Wl,' 9095 lt_prog_compiler_pic='-KPIC' 9096 lt_prog_compiler_static='-Bstatic' 9097 ;; 9098 9099 unicos*) 9100 lt_prog_compiler_wl='-Wl,' 9101 lt_prog_compiler_can_build_shared=no 9102 ;; 9103 9104 uts4*) 9105 lt_prog_compiler_pic='-pic' 9106 lt_prog_compiler_static='-Bstatic' 9107 ;; 9108 9109 *) 9110 lt_prog_compiler_can_build_shared=no 9111 ;; 9112 esac 9113 fi 9114 9115case $host_os in 9116 # For platforms which do not support PIC, -DPIC is meaningless: 9117 *djgpp*) 9118 lt_prog_compiler_pic= 9119 ;; 9120 *) 9121 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9122 ;; 9123esac 9124 9125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9126$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9127if ${lt_cv_prog_compiler_pic+:} false; then : 9128 $as_echo_n "(cached) " >&6 9129else 9130 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9131fi 9132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9133$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9134lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9135 9136# 9137# Check to make sure the PIC flag actually works. 9138# 9139if test -n "$lt_prog_compiler_pic"; then 9140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9141$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9142if ${lt_cv_prog_compiler_pic_works+:} false; then : 9143 $as_echo_n "(cached) " >&6 9144else 9145 lt_cv_prog_compiler_pic_works=no 9146 ac_outfile=conftest.$ac_objext 9147 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9148 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9149 # Insert the option either (1) after the last *FLAGS variable, or 9150 # (2) before a word containing "conftest.", or (3) at the end. 9151 # Note that $ac_compile itself does not contain backslashes and begins 9152 # with a dollar sign (not a hyphen), so the echo should work correctly. 9153 # The option is referenced via a variable to avoid confusing sed. 9154 lt_compile=`echo "$ac_compile" | $SED \ 9155 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9156 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9157 -e 's:$: $lt_compiler_flag:'` 9158 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9159 (eval "$lt_compile" 2>conftest.err) 9160 ac_status=$? 9161 cat conftest.err >&5 9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9163 if (exit $ac_status) && test -s "$ac_outfile"; then 9164 # The compiler can only warn and ignore the option if not recognized 9165 # So say no if there are warnings other than the usual output. 9166 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9167 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9168 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9169 lt_cv_prog_compiler_pic_works=yes 9170 fi 9171 fi 9172 $RM conftest* 9173 9174fi 9175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9176$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9177 9178if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9179 case $lt_prog_compiler_pic in 9180 "" | " "*) ;; 9181 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9182 esac 9183else 9184 lt_prog_compiler_pic= 9185 lt_prog_compiler_can_build_shared=no 9186fi 9187 9188fi 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200# 9201# Check to make sure the static flag actually works. 9202# 9203wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9205$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9206if ${lt_cv_prog_compiler_static_works+:} false; then : 9207 $as_echo_n "(cached) " >&6 9208else 9209 lt_cv_prog_compiler_static_works=no 9210 save_LDFLAGS="$LDFLAGS" 9211 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9212 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9213 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9214 # The linker can only warn and ignore the option if not recognized 9215 # So say no if there are warnings 9216 if test -s conftest.err; then 9217 # Append any errors to the config.log. 9218 cat conftest.err 1>&5 9219 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9220 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9221 if diff conftest.exp conftest.er2 >/dev/null; then 9222 lt_cv_prog_compiler_static_works=yes 9223 fi 9224 else 9225 lt_cv_prog_compiler_static_works=yes 9226 fi 9227 fi 9228 $RM -r conftest* 9229 LDFLAGS="$save_LDFLAGS" 9230 9231fi 9232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9233$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9234 9235if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9236 : 9237else 9238 lt_prog_compiler_static= 9239fi 9240 9241 9242 9243 9244 9245 9246 9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9248$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9249if ${lt_cv_prog_compiler_c_o+:} false; then : 9250 $as_echo_n "(cached) " >&6 9251else 9252 lt_cv_prog_compiler_c_o=no 9253 $RM -r conftest 2>/dev/null 9254 mkdir conftest 9255 cd conftest 9256 mkdir out 9257 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9258 9259 lt_compiler_flag="-o out/conftest2.$ac_objext" 9260 # Insert the option either (1) after the last *FLAGS variable, or 9261 # (2) before a word containing "conftest.", or (3) at the end. 9262 # Note that $ac_compile itself does not contain backslashes and begins 9263 # with a dollar sign (not a hyphen), so the echo should work correctly. 9264 lt_compile=`echo "$ac_compile" | $SED \ 9265 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9266 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9267 -e 's:$: $lt_compiler_flag:'` 9268 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9269 (eval "$lt_compile" 2>out/conftest.err) 9270 ac_status=$? 9271 cat out/conftest.err >&5 9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9273 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9274 then 9275 # The compiler can only warn and ignore the option if not recognized 9276 # So say no if there are warnings 9277 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9278 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9279 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9280 lt_cv_prog_compiler_c_o=yes 9281 fi 9282 fi 9283 chmod u+w . 2>&5 9284 $RM conftest* 9285 # SGI C++ compiler will create directory out/ii_files/ for 9286 # template instantiation 9287 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9288 $RM out/* && rmdir out 9289 cd .. 9290 $RM -r conftest 9291 $RM conftest* 9292 9293fi 9294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9295$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9296 9297 9298 9299 9300 9301 9302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9303$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9304if ${lt_cv_prog_compiler_c_o+:} false; then : 9305 $as_echo_n "(cached) " >&6 9306else 9307 lt_cv_prog_compiler_c_o=no 9308 $RM -r conftest 2>/dev/null 9309 mkdir conftest 9310 cd conftest 9311 mkdir out 9312 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9313 9314 lt_compiler_flag="-o out/conftest2.$ac_objext" 9315 # Insert the option either (1) after the last *FLAGS variable, or 9316 # (2) before a word containing "conftest.", or (3) at the end. 9317 # Note that $ac_compile itself does not contain backslashes and begins 9318 # with a dollar sign (not a hyphen), so the echo should work correctly. 9319 lt_compile=`echo "$ac_compile" | $SED \ 9320 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9321 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9322 -e 's:$: $lt_compiler_flag:'` 9323 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9324 (eval "$lt_compile" 2>out/conftest.err) 9325 ac_status=$? 9326 cat out/conftest.err >&5 9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9328 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9329 then 9330 # The compiler can only warn and ignore the option if not recognized 9331 # So say no if there are warnings 9332 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9333 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9334 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9335 lt_cv_prog_compiler_c_o=yes 9336 fi 9337 fi 9338 chmod u+w . 2>&5 9339 $RM conftest* 9340 # SGI C++ compiler will create directory out/ii_files/ for 9341 # template instantiation 9342 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9343 $RM out/* && rmdir out 9344 cd .. 9345 $RM -r conftest 9346 $RM conftest* 9347 9348fi 9349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9350$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9351 9352 9353 9354 9355hard_links="nottested" 9356if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9357 # do not overwrite the value of need_locks provided by the user 9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9359$as_echo_n "checking if we can lock with hard links... " >&6; } 9360 hard_links=yes 9361 $RM conftest* 9362 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9363 touch conftest.a 9364 ln conftest.a conftest.b 2>&5 || hard_links=no 9365 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9367$as_echo "$hard_links" >&6; } 9368 if test "$hard_links" = no; then 9369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9370$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9371 need_locks=warn 9372 fi 9373else 9374 need_locks=no 9375fi 9376 9377 9378 9379 9380 9381 9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9383$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9384 9385 runpath_var= 9386 allow_undefined_flag= 9387 always_export_symbols=no 9388 archive_cmds= 9389 archive_expsym_cmds= 9390 compiler_needs_object=no 9391 enable_shared_with_static_runtimes=no 9392 export_dynamic_flag_spec= 9393 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9394 hardcode_automatic=no 9395 hardcode_direct=no 9396 hardcode_direct_absolute=no 9397 hardcode_libdir_flag_spec= 9398 hardcode_libdir_flag_spec_ld= 9399 hardcode_libdir_separator= 9400 hardcode_minus_L=no 9401 hardcode_shlibpath_var=unsupported 9402 inherit_rpath=no 9403 link_all_deplibs=unknown 9404 module_cmds= 9405 module_expsym_cmds= 9406 old_archive_from_new_cmds= 9407 old_archive_from_expsyms_cmds= 9408 thread_safe_flag_spec= 9409 whole_archive_flag_spec= 9410 # include_expsyms should be a list of space-separated symbols to be *always* 9411 # included in the symbol list 9412 include_expsyms= 9413 # exclude_expsyms can be an extended regexp of symbols to exclude 9414 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9415 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9416 # as well as any symbol that contains `d'. 9417 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9418 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9419 # platforms (ab)use it in PIC code, but their linkers get confused if 9420 # the symbol is explicitly referenced. Since portable code cannot 9421 # rely on this symbol name, it's probably fine to never include it in 9422 # preloaded symbol tables. 9423 # Exclude shared library initialization/finalization symbols. 9424 extract_expsyms_cmds= 9425 9426 case $host_os in 9427 cygwin* | mingw* | pw32* | cegcc*) 9428 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9429 # When not using gcc, we currently assume that we are using 9430 # Microsoft Visual C++. 9431 if test "$GCC" != yes; then 9432 with_gnu_ld=no 9433 fi 9434 ;; 9435 interix*) 9436 # we just hope/assume this is gcc and not c89 (= MSVC++) 9437 with_gnu_ld=yes 9438 ;; 9439 openbsd*) 9440 with_gnu_ld=no 9441 ;; 9442 esac 9443 9444 ld_shlibs=yes 9445 9446 # On some targets, GNU ld is compatible enough with the native linker 9447 # that we're better off using the native interface for both. 9448 lt_use_gnu_ld_interface=no 9449 if test "$with_gnu_ld" = yes; then 9450 case $host_os in 9451 aix*) 9452 # The AIX port of GNU ld has always aspired to compatibility 9453 # with the native linker. However, as the warning in the GNU ld 9454 # block says, versions before 2.19.5* couldn't really create working 9455 # shared libraries, regardless of the interface used. 9456 case `$LD -v 2>&1` in 9457 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9458 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9459 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9460 *) 9461 lt_use_gnu_ld_interface=yes 9462 ;; 9463 esac 9464 ;; 9465 *) 9466 lt_use_gnu_ld_interface=yes 9467 ;; 9468 esac 9469 fi 9470 9471 if test "$lt_use_gnu_ld_interface" = yes; then 9472 # If archive_cmds runs LD, not CC, wlarc should be empty 9473 wlarc='${wl}' 9474 9475 # Set some defaults for GNU ld with shared library support. These 9476 # are reset later if shared libraries are not supported. Putting them 9477 # here allows them to be overridden if necessary. 9478 runpath_var=LD_RUN_PATH 9479 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9480 export_dynamic_flag_spec='${wl}--export-dynamic' 9481 # ancient GNU ld didn't support --whole-archive et. al. 9482 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9483 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9484 else 9485 whole_archive_flag_spec= 9486 fi 9487 supports_anon_versioning=no 9488 case `$LD -v 2>&1` in 9489 *GNU\ gold*) supports_anon_versioning=yes ;; 9490 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9491 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9492 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9493 *\ 2.11.*) ;; # other 2.11 versions 9494 *) supports_anon_versioning=yes ;; 9495 esac 9496 9497 # See if GNU ld supports shared libraries. 9498 case $host_os in 9499 aix[3-9]*) 9500 # On AIX/PPC, the GNU linker is very broken 9501 if test "$host_cpu" != ia64; then 9502 ld_shlibs=no 9503 cat <<_LT_EOF 1>&2 9504 9505*** Warning: the GNU linker, at least up to release 2.19, is reported 9506*** to be unable to reliably create shared libraries on AIX. 9507*** Therefore, libtool is disabling shared libraries support. If you 9508*** really care for shared libraries, you may want to install binutils 9509*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9510*** You will then need to restart the configuration process. 9511 9512_LT_EOF 9513 fi 9514 ;; 9515 9516 amigaos*) 9517 case $host_cpu in 9518 powerpc) 9519 # see comment about AmigaOS4 .so support 9520 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9521 archive_expsym_cmds='' 9522 ;; 9523 m68k) 9524 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)' 9525 hardcode_libdir_flag_spec='-L$libdir' 9526 hardcode_minus_L=yes 9527 ;; 9528 esac 9529 ;; 9530 9531 beos*) 9532 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9533 allow_undefined_flag=unsupported 9534 # Joseph Beckenbach <[email protected]> says some releases of gcc 9535 # support --undefined. This deserves some investigation. FIXME 9536 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9537 else 9538 ld_shlibs=no 9539 fi 9540 ;; 9541 9542 cygwin* | mingw* | pw32* | cegcc*) 9543 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9544 # as there is no search path for DLLs. 9545 hardcode_libdir_flag_spec='-L$libdir' 9546 export_dynamic_flag_spec='${wl}--export-all-symbols' 9547 allow_undefined_flag=unsupported 9548 always_export_symbols=no 9549 enable_shared_with_static_runtimes=yes 9550 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' 9551 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9552 9553 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9554 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9555 # If the export-symbols file already is a .def file (1st line 9556 # is EXPORTS), use it as is; otherwise, prepend... 9557 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9558 cp $export_symbols $output_objdir/$soname.def; 9559 else 9560 echo EXPORTS > $output_objdir/$soname.def; 9561 cat $export_symbols >> $output_objdir/$soname.def; 9562 fi~ 9563 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9564 else 9565 ld_shlibs=no 9566 fi 9567 ;; 9568 9569 haiku*) 9570 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9571 link_all_deplibs=yes 9572 ;; 9573 9574 interix[3-9]*) 9575 hardcode_direct=no 9576 hardcode_shlibpath_var=no 9577 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9578 export_dynamic_flag_spec='${wl}-E' 9579 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9580 # Instead, shared libraries are loaded at an image base (0x10000000 by 9581 # default) and relocated if they conflict, which is a slow very memory 9582 # consuming and fragmenting process. To avoid this, we pick a random, 9583 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9584 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9585 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9586 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' 9587 ;; 9588 9589 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9590 tmp_diet=no 9591 if test "$host_os" = linux-dietlibc; then 9592 case $cc_basename in 9593 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9594 esac 9595 fi 9596 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9597 && test "$tmp_diet" = no 9598 then 9599 tmp_addflag=' $pic_flag' 9600 tmp_sharedflag='-shared' 9601 case $cc_basename,$host_cpu in 9602 pgcc*) # Portland Group C compiler 9603 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' 9604 tmp_addflag=' $pic_flag' 9605 ;; 9606 pgf77* | pgf90* | pgf95* | pgfortran*) 9607 # Portland Group f77 and f90 compilers 9608 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' 9609 tmp_addflag=' $pic_flag -Mnomain' ;; 9610 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9611 tmp_addflag=' -i_dynamic' ;; 9612 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9613 tmp_addflag=' -i_dynamic -nofor_main' ;; 9614 ifc* | ifort*) # Intel Fortran compiler 9615 tmp_addflag=' -nofor_main' ;; 9616 lf95*) # Lahey Fortran 8.1 9617 whole_archive_flag_spec= 9618 tmp_sharedflag='--shared' ;; 9619 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9620 tmp_sharedflag='-qmkshrobj' 9621 tmp_addflag= ;; 9622 nvcc*) # Cuda Compiler Driver 2.2 9623 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' 9624 compiler_needs_object=yes 9625 ;; 9626 esac 9627 case `$CC -V 2>&1 | sed 5q` in 9628 *Sun\ C*) # Sun C 5.9 9629 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' 9630 compiler_needs_object=yes 9631 tmp_sharedflag='-G' ;; 9632 *Sun\ F*) # Sun Fortran 8.3 9633 tmp_sharedflag='-G' ;; 9634 esac 9635 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9636 9637 if test "x$supports_anon_versioning" = xyes; then 9638 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9639 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9640 echo "local: *; };" >> $output_objdir/$libname.ver~ 9641 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9642 fi 9643 9644 case $cc_basename in 9645 xlf* | bgf* | bgxlf* | mpixlf*) 9646 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9647 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9648 hardcode_libdir_flag_spec= 9649 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9650 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9651 if test "x$supports_anon_versioning" = xyes; then 9652 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9653 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9654 echo "local: *; };" >> $output_objdir/$libname.ver~ 9655 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9656 fi 9657 ;; 9658 esac 9659 else 9660 ld_shlibs=no 9661 fi 9662 ;; 9663 9664 netbsd*) 9665 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9666 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9667 wlarc= 9668 else 9669 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9670 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9671 fi 9672 ;; 9673 9674 solaris*) 9675 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9676 ld_shlibs=no 9677 cat <<_LT_EOF 1>&2 9678 9679*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9680*** create shared libraries on Solaris systems. Therefore, libtool 9681*** is disabling shared libraries support. We urge you to upgrade GNU 9682*** binutils to release 2.9.1 or newer. Another option is to modify 9683*** your PATH or compiler configuration so that the native linker is 9684*** used, and then restart. 9685 9686_LT_EOF 9687 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9688 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9689 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9690 else 9691 ld_shlibs=no 9692 fi 9693 ;; 9694 9695 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9696 case `$LD -v 2>&1` in 9697 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9698 ld_shlibs=no 9699 cat <<_LT_EOF 1>&2 9700 9701*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9702*** reliably create shared libraries on SCO systems. Therefore, libtool 9703*** is disabling shared libraries support. We urge you to upgrade GNU 9704*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9705*** your PATH or compiler configuration so that the native linker is 9706*** used, and then restart. 9707 9708_LT_EOF 9709 ;; 9710 *) 9711 # For security reasons, it is highly recommended that you always 9712 # use absolute paths for naming shared libraries, and exclude the 9713 # DT_RUNPATH tag from executables and libraries. But doing so 9714 # requires that you compile everything twice, which is a pain. 9715 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9716 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9717 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9718 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9719 else 9720 ld_shlibs=no 9721 fi 9722 ;; 9723 esac 9724 ;; 9725 9726 sunos4*) 9727 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9728 wlarc= 9729 hardcode_direct=yes 9730 hardcode_shlibpath_var=no 9731 ;; 9732 9733 *) 9734 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9735 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9736 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9737 else 9738 ld_shlibs=no 9739 fi 9740 ;; 9741 esac 9742 9743 if test "$ld_shlibs" = no; then 9744 runpath_var= 9745 hardcode_libdir_flag_spec= 9746 export_dynamic_flag_spec= 9747 whole_archive_flag_spec= 9748 fi 9749 else 9750 # PORTME fill in a description of your system's linker (not GNU ld) 9751 case $host_os in 9752 aix3*) 9753 allow_undefined_flag=unsupported 9754 always_export_symbols=yes 9755 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' 9756 # Note: this linker hardcodes the directories in LIBPATH if there 9757 # are no directories specified by -L. 9758 hardcode_minus_L=yes 9759 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9760 # Neither direct hardcoding nor static linking is supported with a 9761 # broken collect2. 9762 hardcode_direct=unsupported 9763 fi 9764 ;; 9765 9766 aix[4-9]*) 9767 if test "$host_cpu" = ia64; then 9768 # On IA64, the linker does run time linking by default, so we don't 9769 # have to do anything special. 9770 aix_use_runtimelinking=no 9771 exp_sym_flag='-Bexport' 9772 no_entry_flag="" 9773 else 9774 # If we're using GNU nm, then we don't want the "-C" option. 9775 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9776 # Also, AIX nm treats weak defined symbols like other global 9777 # defined symbols, whereas GNU nm marks them as "W". 9778 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9779 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9780 else 9781 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9782 fi 9783 aix_use_runtimelinking=no 9784 9785 # Test if we are trying to use run time linking or normal 9786 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9787 # need to do runtime linking. 9788 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9789 for ld_flag in $LDFLAGS; do 9790 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9791 aix_use_runtimelinking=yes 9792 break 9793 fi 9794 done 9795 ;; 9796 esac 9797 9798 exp_sym_flag='-bexport' 9799 no_entry_flag='-bnoentry' 9800 fi 9801 9802 # When large executables or shared objects are built, AIX ld can 9803 # have problems creating the table of contents. If linking a library 9804 # or program results in "error TOC overflow" add -mminimal-toc to 9805 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9806 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9807 9808 archive_cmds='' 9809 hardcode_direct=yes 9810 hardcode_direct_absolute=yes 9811 hardcode_libdir_separator=':' 9812 link_all_deplibs=yes 9813 file_list_spec='${wl}-f,' 9814 9815 if test "$GCC" = yes; then 9816 case $host_os in aix4.[012]|aix4.[012].*) 9817 # We only want to do this on AIX 4.2 and lower, the check 9818 # below for broken collect2 doesn't work under 4.3+ 9819 collect2name=`${CC} -print-prog-name=collect2` 9820 if test -f "$collect2name" && 9821 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9822 then 9823 # We have reworked collect2 9824 : 9825 else 9826 # We have old collect2 9827 hardcode_direct=unsupported 9828 # It fails to find uninstalled libraries when the uninstalled 9829 # path is not listed in the libpath. Setting hardcode_minus_L 9830 # to unsupported forces relinking 9831 hardcode_minus_L=yes 9832 hardcode_libdir_flag_spec='-L$libdir' 9833 hardcode_libdir_separator= 9834 fi 9835 ;; 9836 esac 9837 shared_flag='-shared' 9838 if test "$aix_use_runtimelinking" = yes; then 9839 shared_flag="$shared_flag "'${wl}-G' 9840 fi 9841 else 9842 # not using gcc 9843 if test "$host_cpu" = ia64; then 9844 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9845 # chokes on -Wl,-G. The following line is correct: 9846 shared_flag='-G' 9847 else 9848 if test "$aix_use_runtimelinking" = yes; then 9849 shared_flag='${wl}-G' 9850 else 9851 shared_flag='${wl}-bM:SRE' 9852 fi 9853 fi 9854 fi 9855 9856 export_dynamic_flag_spec='${wl}-bexpall' 9857 # It seems that -bexpall does not export symbols beginning with 9858 # underscore (_), so it is better to generate a list of symbols to export. 9859 always_export_symbols=yes 9860 if test "$aix_use_runtimelinking" = yes; then 9861 # Warning - without using the other runtime loading flags (-brtl), 9862 # -berok will link without error, but may produce a broken library. 9863 allow_undefined_flag='-berok' 9864 # Determine the default libpath from the value encoded in an 9865 # empty executable. 9866 if test "${lt_cv_aix_libpath+set}" = set; then 9867 aix_libpath=$lt_cv_aix_libpath 9868else 9869 if ${lt_cv_aix_libpath_+:} false; then : 9870 $as_echo_n "(cached) " >&6 9871else 9872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9873/* end confdefs.h. */ 9874 9875int 9876main () 9877{ 9878 9879 ; 9880 return 0; 9881} 9882_ACEOF 9883if ac_fn_c_try_link "$LINENO"; then : 9884 9885 lt_aix_libpath_sed=' 9886 /Import File Strings/,/^$/ { 9887 /^0/ { 9888 s/^0 *\([^ ]*\) *$/\1/ 9889 p 9890 } 9891 }' 9892 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9893 # Check for a 64-bit object if we didn't find anything. 9894 if test -z "$lt_cv_aix_libpath_"; then 9895 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9896 fi 9897fi 9898rm -f core conftest.err conftest.$ac_objext \ 9899 conftest$ac_exeext conftest.$ac_ext 9900 if test -z "$lt_cv_aix_libpath_"; then 9901 lt_cv_aix_libpath_="/usr/lib:/lib" 9902 fi 9903 9904fi 9905 9906 aix_libpath=$lt_cv_aix_libpath_ 9907fi 9908 9909 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9910 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9911 else 9912 if test "$host_cpu" = ia64; then 9913 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9914 allow_undefined_flag="-z nodefs" 9915 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" 9916 else 9917 # Determine the default libpath from the value encoded in an 9918 # empty executable. 9919 if test "${lt_cv_aix_libpath+set}" = set; then 9920 aix_libpath=$lt_cv_aix_libpath 9921else 9922 if ${lt_cv_aix_libpath_+:} false; then : 9923 $as_echo_n "(cached) " >&6 9924else 9925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9926/* end confdefs.h. */ 9927 9928int 9929main () 9930{ 9931 9932 ; 9933 return 0; 9934} 9935_ACEOF 9936if ac_fn_c_try_link "$LINENO"; then : 9937 9938 lt_aix_libpath_sed=' 9939 /Import File Strings/,/^$/ { 9940 /^0/ { 9941 s/^0 *\([^ ]*\) *$/\1/ 9942 p 9943 } 9944 }' 9945 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9946 # Check for a 64-bit object if we didn't find anything. 9947 if test -z "$lt_cv_aix_libpath_"; then 9948 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9949 fi 9950fi 9951rm -f core conftest.err conftest.$ac_objext \ 9952 conftest$ac_exeext conftest.$ac_ext 9953 if test -z "$lt_cv_aix_libpath_"; then 9954 lt_cv_aix_libpath_="/usr/lib:/lib" 9955 fi 9956 9957fi 9958 9959 aix_libpath=$lt_cv_aix_libpath_ 9960fi 9961 9962 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9963 # Warning - without using the other run time loading flags, 9964 # -berok will link without error, but may produce a broken library. 9965 no_undefined_flag=' ${wl}-bernotok' 9966 allow_undefined_flag=' ${wl}-berok' 9967 if test "$with_gnu_ld" = yes; then 9968 # We only use this code for GNU lds that support --whole-archive. 9969 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9970 else 9971 # Exported symbols can be pulled into shared objects from archives 9972 whole_archive_flag_spec='$convenience' 9973 fi 9974 archive_cmds_need_lc=yes 9975 # This is similar to how AIX traditionally builds its shared libraries. 9976 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9977 fi 9978 fi 9979 ;; 9980 9981 amigaos*) 9982 case $host_cpu in 9983 powerpc) 9984 # see comment about AmigaOS4 .so support 9985 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9986 archive_expsym_cmds='' 9987 ;; 9988 m68k) 9989 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)' 9990 hardcode_libdir_flag_spec='-L$libdir' 9991 hardcode_minus_L=yes 9992 ;; 9993 esac 9994 ;; 9995 9996 bsdi[45]*) 9997 export_dynamic_flag_spec=-rdynamic 9998 ;; 9999 10000 cygwin* | mingw* | pw32* | cegcc*) 10001 # When not using gcc, we currently assume that we are using 10002 # Microsoft Visual C++. 10003 # hardcode_libdir_flag_spec is actually meaningless, as there is 10004 # no search path for DLLs. 10005 case $cc_basename in 10006 cl*) 10007 # Native MSVC 10008 hardcode_libdir_flag_spec=' ' 10009 allow_undefined_flag=unsupported 10010 always_export_symbols=yes 10011 file_list_spec='@' 10012 # Tell ltmain to make .lib files, not .a files. 10013 libext=lib 10014 # Tell ltmain to make .dll files, not .so files. 10015 shrext_cmds=".dll" 10016 # FIXME: Setting linknames here is a bad hack. 10017 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 10018 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10019 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 10020 else 10021 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 10022 fi~ 10023 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10024 linknames=' 10025 # The linker will not automatically build a static lib if we build a DLL. 10026 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10027 enable_shared_with_static_runtimes=yes 10028 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10029 # Don't use ranlib 10030 old_postinstall_cmds='chmod 644 $oldlib' 10031 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10032 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10033 case $lt_outputfile in 10034 *.exe|*.EXE) ;; 10035 *) 10036 lt_outputfile="$lt_outputfile.exe" 10037 lt_tool_outputfile="$lt_tool_outputfile.exe" 10038 ;; 10039 esac~ 10040 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 10041 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10042 $RM "$lt_outputfile.manifest"; 10043 fi' 10044 ;; 10045 *) 10046 # Assume MSVC wrapper 10047 hardcode_libdir_flag_spec=' ' 10048 allow_undefined_flag=unsupported 10049 # Tell ltmain to make .lib files, not .a files. 10050 libext=lib 10051 # Tell ltmain to make .dll files, not .so files. 10052 shrext_cmds=".dll" 10053 # FIXME: Setting linknames here is a bad hack. 10054 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10055 # The linker will automatically build a .lib file if we build a DLL. 10056 old_archive_from_new_cmds='true' 10057 # FIXME: Should let the user specify the lib program. 10058 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10059 enable_shared_with_static_runtimes=yes 10060 ;; 10061 esac 10062 ;; 10063 10064 darwin* | rhapsody*) 10065 10066 10067 archive_cmds_need_lc=no 10068 hardcode_direct=no 10069 hardcode_automatic=yes 10070 hardcode_shlibpath_var=unsupported 10071 if test "$lt_cv_ld_force_load" = "yes"; then 10072 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\"`' 10073 else 10074 whole_archive_flag_spec='' 10075 fi 10076 link_all_deplibs=yes 10077 allow_undefined_flag="$_lt_dar_allow_undefined" 10078 case $cc_basename in 10079 ifort*) _lt_dar_can_shared=yes ;; 10080 *) _lt_dar_can_shared=$GCC ;; 10081 esac 10082 if test "$_lt_dar_can_shared" = "yes"; then 10083 output_verbose_link_cmd=func_echo_all 10084 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10085 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10086 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}" 10087 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}" 10088 10089 else 10090 ld_shlibs=no 10091 fi 10092 10093 ;; 10094 10095 dgux*) 10096 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10097 hardcode_libdir_flag_spec='-L$libdir' 10098 hardcode_shlibpath_var=no 10099 ;; 10100 10101 freebsd1*) 10102 ld_shlibs=no 10103 ;; 10104 10105 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10106 # support. Future versions do this automatically, but an explicit c++rt0.o 10107 # does not break anything, and helps significantly (at the cost of a little 10108 # extra space). 10109 freebsd2.2*) 10110 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10111 hardcode_libdir_flag_spec='-R$libdir' 10112 hardcode_direct=yes 10113 hardcode_shlibpath_var=no 10114 ;; 10115 10116 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10117 freebsd2*) 10118 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10119 hardcode_direct=yes 10120 hardcode_minus_L=yes 10121 hardcode_shlibpath_var=no 10122 ;; 10123 10124 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10125 freebsd* | dragonfly*) 10126 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10127 hardcode_libdir_flag_spec='-R$libdir' 10128 hardcode_direct=yes 10129 hardcode_shlibpath_var=no 10130 ;; 10131 10132 hpux9*) 10133 if test "$GCC" = yes; then 10134 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10135 else 10136 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10137 fi 10138 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10139 hardcode_libdir_separator=: 10140 hardcode_direct=yes 10141 10142 # hardcode_minus_L: Not really in the search PATH, 10143 # but as the default location of the library. 10144 hardcode_minus_L=yes 10145 export_dynamic_flag_spec='${wl}-E' 10146 ;; 10147 10148 hpux10*) 10149 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10150 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10151 else 10152 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10153 fi 10154 if test "$with_gnu_ld" = no; then 10155 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10156 hardcode_libdir_flag_spec_ld='+b $libdir' 10157 hardcode_libdir_separator=: 10158 hardcode_direct=yes 10159 hardcode_direct_absolute=yes 10160 export_dynamic_flag_spec='${wl}-E' 10161 # hardcode_minus_L: Not really in the search PATH, 10162 # but as the default location of the library. 10163 hardcode_minus_L=yes 10164 fi 10165 ;; 10166 10167 hpux11*) 10168 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10169 case $host_cpu in 10170 hppa*64*) 10171 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10172 ;; 10173 ia64*) 10174 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10175 ;; 10176 *) 10177 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10178 ;; 10179 esac 10180 else 10181 case $host_cpu in 10182 hppa*64*) 10183 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10184 ;; 10185 ia64*) 10186 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10187 ;; 10188 *) 10189 10190 # Older versions of the 11.00 compiler do not understand -b yet 10191 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10193$as_echo_n "checking if $CC understands -b... " >&6; } 10194if ${lt_cv_prog_compiler__b+:} false; then : 10195 $as_echo_n "(cached) " >&6 10196else 10197 lt_cv_prog_compiler__b=no 10198 save_LDFLAGS="$LDFLAGS" 10199 LDFLAGS="$LDFLAGS -b" 10200 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10201 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10202 # The linker can only warn and ignore the option if not recognized 10203 # So say no if there are warnings 10204 if test -s conftest.err; then 10205 # Append any errors to the config.log. 10206 cat conftest.err 1>&5 10207 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10208 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10209 if diff conftest.exp conftest.er2 >/dev/null; then 10210 lt_cv_prog_compiler__b=yes 10211 fi 10212 else 10213 lt_cv_prog_compiler__b=yes 10214 fi 10215 fi 10216 $RM -r conftest* 10217 LDFLAGS="$save_LDFLAGS" 10218 10219fi 10220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10221$as_echo "$lt_cv_prog_compiler__b" >&6; } 10222 10223if test x"$lt_cv_prog_compiler__b" = xyes; then 10224 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10225else 10226 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10227fi 10228 10229 ;; 10230 esac 10231 fi 10232 if test "$with_gnu_ld" = no; then 10233 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10234 hardcode_libdir_separator=: 10235 10236 case $host_cpu in 10237 hppa*64*|ia64*) 10238 hardcode_direct=no 10239 hardcode_shlibpath_var=no 10240 ;; 10241 *) 10242 hardcode_direct=yes 10243 hardcode_direct_absolute=yes 10244 export_dynamic_flag_spec='${wl}-E' 10245 10246 # hardcode_minus_L: Not really in the search PATH, 10247 # but as the default location of the library. 10248 hardcode_minus_L=yes 10249 ;; 10250 esac 10251 fi 10252 ;; 10253 10254 irix5* | irix6* | nonstopux*) 10255 if test "$GCC" = yes; then 10256 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' 10257 # Try to use the -exported_symbol ld option, if it does not 10258 # work, assume that -exports_file does not work either and 10259 # implicitly export all symbols. 10260 # This should be the same for all languages, so no per-tag cache variable. 10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10262$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10263if ${lt_cv_irix_exported_symbol+:} false; then : 10264 $as_echo_n "(cached) " >&6 10265else 10266 save_LDFLAGS="$LDFLAGS" 10267 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10269/* end confdefs.h. */ 10270int foo (void) { return 0; } 10271_ACEOF 10272if ac_fn_c_try_link "$LINENO"; then : 10273 lt_cv_irix_exported_symbol=yes 10274else 10275 lt_cv_irix_exported_symbol=no 10276fi 10277rm -f core conftest.err conftest.$ac_objext \ 10278 conftest$ac_exeext conftest.$ac_ext 10279 LDFLAGS="$save_LDFLAGS" 10280fi 10281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10282$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10283 if test "$lt_cv_irix_exported_symbol" = yes; then 10284 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' 10285 fi 10286 else 10287 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' 10288 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' 10289 fi 10290 archive_cmds_need_lc='no' 10291 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10292 hardcode_libdir_separator=: 10293 inherit_rpath=yes 10294 link_all_deplibs=yes 10295 ;; 10296 10297 netbsd*) 10298 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10299 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10300 else 10301 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10302 fi 10303 hardcode_libdir_flag_spec='-R$libdir' 10304 hardcode_direct=yes 10305 hardcode_shlibpath_var=no 10306 ;; 10307 10308 newsos6) 10309 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10310 hardcode_direct=yes 10311 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10312 hardcode_libdir_separator=: 10313 hardcode_shlibpath_var=no 10314 ;; 10315 10316 *nto* | *qnx*) 10317 ;; 10318 10319 openbsd*) 10320 if test -f /usr/libexec/ld.so; then 10321 hardcode_direct=yes 10322 hardcode_shlibpath_var=no 10323 hardcode_direct_absolute=yes 10324 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10325 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10326 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10327 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10328 export_dynamic_flag_spec='${wl}-E' 10329 else 10330 case $host_os in 10331 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10332 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10333 hardcode_libdir_flag_spec='-R$libdir' 10334 ;; 10335 *) 10336 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10337 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10338 ;; 10339 esac 10340 fi 10341 else 10342 ld_shlibs=no 10343 fi 10344 ;; 10345 10346 os2*) 10347 hardcode_libdir_flag_spec='-L$libdir' 10348 hardcode_minus_L=yes 10349 allow_undefined_flag=unsupported 10350 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 10351 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10352 ;; 10353 10354 osf3*) 10355 if test "$GCC" = yes; then 10356 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10357 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' 10358 else 10359 allow_undefined_flag=' -expect_unresolved \*' 10360 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' 10361 fi 10362 archive_cmds_need_lc='no' 10363 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10364 hardcode_libdir_separator=: 10365 ;; 10366 10367 osf4* | osf5*) # as osf3* with the addition of -msym flag 10368 if test "$GCC" = yes; then 10369 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10370 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' 10371 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10372 else 10373 allow_undefined_flag=' -expect_unresolved \*' 10374 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' 10375 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~ 10376 $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' 10377 10378 # Both c and cxx compiler support -rpath directly 10379 hardcode_libdir_flag_spec='-rpath $libdir' 10380 fi 10381 archive_cmds_need_lc='no' 10382 hardcode_libdir_separator=: 10383 ;; 10384 10385 solaris*) 10386 no_undefined_flag=' -z defs' 10387 if test "$GCC" = yes; then 10388 wlarc='${wl}' 10389 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10390 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10391 $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' 10392 else 10393 case `$CC -V 2>&1` in 10394 *"Compilers 5.0"*) 10395 wlarc='' 10396 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10397 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10398 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10399 ;; 10400 *) 10401 wlarc='${wl}' 10402 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10403 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10404 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10405 ;; 10406 esac 10407 fi 10408 hardcode_libdir_flag_spec='-R$libdir' 10409 hardcode_shlibpath_var=no 10410 case $host_os in 10411 solaris2.[0-5] | solaris2.[0-5].*) ;; 10412 *) 10413 # The compiler driver will combine and reorder linker options, 10414 # but understands `-z linker_flag'. GCC discards it without `$wl', 10415 # but is careful enough not to reorder. 10416 # Supported since Solaris 2.6 (maybe 2.5.1?) 10417 if test "$GCC" = yes; then 10418 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10419 else 10420 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10421 fi 10422 ;; 10423 esac 10424 link_all_deplibs=yes 10425 ;; 10426 10427 sunos4*) 10428 if test "x$host_vendor" = xsequent; then 10429 # Use $CC to link under sequent, because it throws in some extra .o 10430 # files that make .init and .fini sections work. 10431 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10432 else 10433 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10434 fi 10435 hardcode_libdir_flag_spec='-L$libdir' 10436 hardcode_direct=yes 10437 hardcode_minus_L=yes 10438 hardcode_shlibpath_var=no 10439 ;; 10440 10441 sysv4) 10442 case $host_vendor in 10443 sni) 10444 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10445 hardcode_direct=yes # is this really true??? 10446 ;; 10447 siemens) 10448 ## LD is ld it makes a PLAMLIB 10449 ## CC just makes a GrossModule. 10450 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10451 reload_cmds='$CC -r -o $output$reload_objs' 10452 hardcode_direct=no 10453 ;; 10454 motorola) 10455 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10456 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10457 ;; 10458 esac 10459 runpath_var='LD_RUN_PATH' 10460 hardcode_shlibpath_var=no 10461 ;; 10462 10463 sysv4.3*) 10464 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10465 hardcode_shlibpath_var=no 10466 export_dynamic_flag_spec='-Bexport' 10467 ;; 10468 10469 sysv4*MP*) 10470 if test -d /usr/nec; then 10471 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10472 hardcode_shlibpath_var=no 10473 runpath_var=LD_RUN_PATH 10474 hardcode_runpath_var=yes 10475 ld_shlibs=yes 10476 fi 10477 ;; 10478 10479 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10480 no_undefined_flag='${wl}-z,text' 10481 archive_cmds_need_lc=no 10482 hardcode_shlibpath_var=no 10483 runpath_var='LD_RUN_PATH' 10484 10485 if test "$GCC" = yes; then 10486 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10487 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10488 else 10489 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10490 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10491 fi 10492 ;; 10493 10494 sysv5* | sco3.2v5* | sco5v6*) 10495 # Note: We can NOT use -z defs as we might desire, because we do not 10496 # link with -lc, and that would cause any symbols used from libc to 10497 # always be unresolved, which means just about no library would 10498 # ever link correctly. If we're not using GNU ld we use -z text 10499 # though, which does catch some bad symbols but isn't as heavy-handed 10500 # as -z defs. 10501 no_undefined_flag='${wl}-z,text' 10502 allow_undefined_flag='${wl}-z,nodefs' 10503 archive_cmds_need_lc=no 10504 hardcode_shlibpath_var=no 10505 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10506 hardcode_libdir_separator=':' 10507 link_all_deplibs=yes 10508 export_dynamic_flag_spec='${wl}-Bexport' 10509 runpath_var='LD_RUN_PATH' 10510 10511 if test "$GCC" = yes; then 10512 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10513 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10514 else 10515 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10516 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10517 fi 10518 ;; 10519 10520 uts4*) 10521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10522 hardcode_libdir_flag_spec='-L$libdir' 10523 hardcode_shlibpath_var=no 10524 ;; 10525 10526 *) 10527 ld_shlibs=no 10528 ;; 10529 esac 10530 10531 if test x$host_vendor = xsni; then 10532 case $host in 10533 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10534 export_dynamic_flag_spec='${wl}-Blargedynsym' 10535 ;; 10536 esac 10537 fi 10538 fi 10539 10540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10541$as_echo "$ld_shlibs" >&6; } 10542test "$ld_shlibs" = no && can_build_shared=no 10543 10544with_gnu_ld=$with_gnu_ld 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560# 10561# Do we need to explicitly link libc? 10562# 10563case "x$archive_cmds_need_lc" in 10564x|xyes) 10565 # Assume -lc should be added 10566 archive_cmds_need_lc=yes 10567 10568 if test "$enable_shared" = yes && test "$GCC" = yes; then 10569 case $archive_cmds in 10570 *'~'*) 10571 # FIXME: we may have to deal with multi-command sequences. 10572 ;; 10573 '$CC '*) 10574 # Test whether the compiler implicitly links with -lc since on some 10575 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10576 # to ld, don't add -lc before -lgcc. 10577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10578$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10579if ${lt_cv_archive_cmds_need_lc+:} false; then : 10580 $as_echo_n "(cached) " >&6 10581else 10582 $RM conftest* 10583 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10584 10585 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10586 (eval $ac_compile) 2>&5 10587 ac_status=$? 10588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10589 test $ac_status = 0; } 2>conftest.err; then 10590 soname=conftest 10591 lib=conftest 10592 libobjs=conftest.$ac_objext 10593 deplibs= 10594 wl=$lt_prog_compiler_wl 10595 pic_flag=$lt_prog_compiler_pic 10596 compiler_flags=-v 10597 linker_flags=-v 10598 verstring= 10599 output_objdir=. 10600 libname=conftest 10601 lt_save_allow_undefined_flag=$allow_undefined_flag 10602 allow_undefined_flag= 10603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10604 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10605 ac_status=$? 10606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10607 test $ac_status = 0; } 10608 then 10609 lt_cv_archive_cmds_need_lc=no 10610 else 10611 lt_cv_archive_cmds_need_lc=yes 10612 fi 10613 allow_undefined_flag=$lt_save_allow_undefined_flag 10614 else 10615 cat conftest.err 1>&5 10616 fi 10617 $RM conftest* 10618 10619fi 10620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10621$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10622 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10623 ;; 10624 esac 10625 fi 10626 ;; 10627esac 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10786$as_echo_n "checking dynamic linker characteristics... " >&6; } 10787 10788if test "$GCC" = yes; then 10789 case $host_os in 10790 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10791 *) lt_awk_arg="/^libraries:/" ;; 10792 esac 10793 case $host_os in 10794 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10795 *) lt_sed_strip_eq="s,=/,/,g" ;; 10796 esac 10797 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10798 case $lt_search_path_spec in 10799 *\;*) 10800 # if the path contains ";" then we assume it to be the separator 10801 # otherwise default to the standard path separator (i.e. ":") - it is 10802 # assumed that no part of a normal pathname contains ";" but that should 10803 # okay in the real world where ";" in dirpaths is itself problematic. 10804 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10805 ;; 10806 *) 10807 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10808 ;; 10809 esac 10810 # Ok, now we have the path, separated by spaces, we can step through it 10811 # and add multilib dir if necessary. 10812 lt_tmp_lt_search_path_spec= 10813 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10814 for lt_sys_path in $lt_search_path_spec; do 10815 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10816 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10817 else 10818 test -d "$lt_sys_path" && \ 10819 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10820 fi 10821 done 10822 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10823BEGIN {RS=" "; FS="/|\n";} { 10824 lt_foo=""; 10825 lt_count=0; 10826 for (lt_i = NF; lt_i > 0; lt_i--) { 10827 if ($lt_i != "" && $lt_i != ".") { 10828 if ($lt_i == "..") { 10829 lt_count++; 10830 } else { 10831 if (lt_count == 0) { 10832 lt_foo="/" $lt_i lt_foo; 10833 } else { 10834 lt_count--; 10835 } 10836 } 10837 } 10838 } 10839 if (lt_foo != "") { lt_freq[lt_foo]++; } 10840 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10841}'` 10842 # AWK program above erroneously prepends '/' to C:/dos/paths 10843 # for these hosts. 10844 case $host_os in 10845 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10846 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10847 esac 10848 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10849else 10850 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10851fi 10852library_names_spec= 10853libname_spec='lib$name' 10854soname_spec= 10855shrext_cmds=".so" 10856postinstall_cmds= 10857postuninstall_cmds= 10858finish_cmds= 10859finish_eval= 10860shlibpath_var= 10861shlibpath_overrides_runpath=unknown 10862version_type=none 10863dynamic_linker="$host_os ld.so" 10864sys_lib_dlsearch_path_spec="/lib /usr/lib" 10865need_lib_prefix=unknown 10866hardcode_into_libs=no 10867 10868# when you set need_version to no, make sure it does not cause -set_version 10869# flags to be left without arguments 10870need_version=unknown 10871 10872case $host_os in 10873aix3*) 10874 version_type=linux 10875 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10876 shlibpath_var=LIBPATH 10877 10878 # AIX 3 has no versioning support, so we append a major version to the name. 10879 soname_spec='${libname}${release}${shared_ext}$major' 10880 ;; 10881 10882aix[4-9]*) 10883 version_type=linux 10884 need_lib_prefix=no 10885 need_version=no 10886 hardcode_into_libs=yes 10887 if test "$host_cpu" = ia64; then 10888 # AIX 5 supports IA64 10889 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10890 shlibpath_var=LD_LIBRARY_PATH 10891 else 10892 # With GCC up to 2.95.x, collect2 would create an import file 10893 # for dependence libraries. The import file would start with 10894 # the line `#! .'. This would cause the generated library to 10895 # depend on `.', always an invalid library. This was fixed in 10896 # development snapshots of GCC prior to 3.0. 10897 case $host_os in 10898 aix4 | aix4.[01] | aix4.[01].*) 10899 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10900 echo ' yes ' 10901 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10902 : 10903 else 10904 can_build_shared=no 10905 fi 10906 ;; 10907 esac 10908 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10909 # soname into executable. Probably we can add versioning support to 10910 # collect2, so additional links can be useful in future. 10911 if test "$aix_use_runtimelinking" = yes; then 10912 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10913 # instead of lib<name>.a to let people know that these are not 10914 # typical AIX shared libraries. 10915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10916 else 10917 # We preserve .a as extension for shared libraries through AIX4.2 10918 # and later when we are not doing run time linking. 10919 library_names_spec='${libname}${release}.a $libname.a' 10920 soname_spec='${libname}${release}${shared_ext}$major' 10921 fi 10922 shlibpath_var=LIBPATH 10923 fi 10924 ;; 10925 10926amigaos*) 10927 case $host_cpu in 10928 powerpc) 10929 # Since July 2007 AmigaOS4 officially supports .so libraries. 10930 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10932 ;; 10933 m68k) 10934 library_names_spec='$libname.ixlibrary $libname.a' 10935 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10936 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' 10937 ;; 10938 esac 10939 ;; 10940 10941beos*) 10942 library_names_spec='${libname}${shared_ext}' 10943 dynamic_linker="$host_os ld.so" 10944 shlibpath_var=LIBRARY_PATH 10945 ;; 10946 10947bsdi[45]*) 10948 version_type=linux 10949 need_version=no 10950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10951 soname_spec='${libname}${release}${shared_ext}$major' 10952 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10953 shlibpath_var=LD_LIBRARY_PATH 10954 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10955 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10956 # the default ld.so.conf also contains /usr/contrib/lib and 10957 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10958 # libtool to hard-code these into programs 10959 ;; 10960 10961cygwin* | mingw* | pw32* | cegcc*) 10962 version_type=windows 10963 shrext_cmds=".dll" 10964 need_version=no 10965 need_lib_prefix=no 10966 10967 case $GCC,$cc_basename in 10968 yes,*) 10969 # gcc 10970 library_names_spec='$libname.dll.a' 10971 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10972 postinstall_cmds='base_file=`basename \${file}`~ 10973 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10974 dldir=$destdir/`dirname \$dlpath`~ 10975 test -d \$dldir || mkdir -p \$dldir~ 10976 $install_prog $dir/$dlname \$dldir/$dlname~ 10977 chmod a+x \$dldir/$dlname~ 10978 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10979 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10980 fi' 10981 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10982 dlpath=$dir/\$dldll~ 10983 $RM \$dlpath' 10984 shlibpath_overrides_runpath=yes 10985 10986 case $host_os in 10987 cygwin*) 10988 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10989 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10990 10991 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10992 ;; 10993 mingw* | cegcc*) 10994 # MinGW DLLs use traditional 'lib' prefix 10995 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10996 ;; 10997 pw32*) 10998 # pw32 DLLs use 'pw' prefix rather than 'lib' 10999 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11000 ;; 11001 esac 11002 dynamic_linker='Win32 ld.exe' 11003 ;; 11004 11005 *,cl*) 11006 # Native MSVC 11007 libname_spec='$name' 11008 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11009 library_names_spec='${libname}.dll.lib' 11010 11011 case $build_os in 11012 mingw*) 11013 sys_lib_search_path_spec= 11014 lt_save_ifs=$IFS 11015 IFS=';' 11016 for lt_path in $LIB 11017 do 11018 IFS=$lt_save_ifs 11019 # Let DOS variable expansion print the short 8.3 style file name. 11020 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11021 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11022 done 11023 IFS=$lt_save_ifs 11024 # Convert to MSYS style. 11025 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11026 ;; 11027 cygwin*) 11028 # Convert to unix form, then to dos form, then back to unix form 11029 # but this time dos style (no spaces!) so that the unix form looks 11030 # like /cygdrive/c/PROGRA~1:/cygdr... 11031 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11032 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11033 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11034 ;; 11035 *) 11036 sys_lib_search_path_spec="$LIB" 11037 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11038 # It is most probably a Windows format PATH. 11039 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11040 else 11041 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11042 fi 11043 # FIXME: find the short name or the path components, as spaces are 11044 # common. (e.g. "Program Files" -> "PROGRA~1") 11045 ;; 11046 esac 11047 11048 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11049 postinstall_cmds='base_file=`basename \${file}`~ 11050 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11051 dldir=$destdir/`dirname \$dlpath`~ 11052 test -d \$dldir || mkdir -p \$dldir~ 11053 $install_prog $dir/$dlname \$dldir/$dlname' 11054 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11055 dlpath=$dir/\$dldll~ 11056 $RM \$dlpath' 11057 shlibpath_overrides_runpath=yes 11058 dynamic_linker='Win32 link.exe' 11059 ;; 11060 11061 *) 11062 # Assume MSVC wrapper 11063 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11064 dynamic_linker='Win32 ld.exe' 11065 ;; 11066 esac 11067 # FIXME: first we should search . and the directory the executable is in 11068 shlibpath_var=PATH 11069 ;; 11070 11071darwin* | rhapsody*) 11072 dynamic_linker="$host_os dyld" 11073 version_type=darwin 11074 need_lib_prefix=no 11075 need_version=no 11076 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11077 soname_spec='${libname}${release}${major}$shared_ext' 11078 shlibpath_overrides_runpath=yes 11079 shlibpath_var=DYLD_LIBRARY_PATH 11080 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11081 11082 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11083 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11084 ;; 11085 11086dgux*) 11087 version_type=linux 11088 need_lib_prefix=no 11089 need_version=no 11090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11091 soname_spec='${libname}${release}${shared_ext}$major' 11092 shlibpath_var=LD_LIBRARY_PATH 11093 ;; 11094 11095freebsd1*) 11096 dynamic_linker=no 11097 ;; 11098 11099freebsd* | dragonfly*) 11100 # DragonFly does not have aout. When/if they implement a new 11101 # versioning mechanism, adjust this. 11102 if test -x /usr/bin/objformat; then 11103 objformat=`/usr/bin/objformat` 11104 else 11105 case $host_os in 11106 freebsd[123]*) objformat=aout ;; 11107 *) objformat=elf ;; 11108 esac 11109 fi 11110 version_type=freebsd-$objformat 11111 case $version_type in 11112 freebsd-elf*) 11113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11114 need_version=no 11115 need_lib_prefix=no 11116 ;; 11117 freebsd-*) 11118 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11119 need_version=yes 11120 ;; 11121 esac 11122 shlibpath_var=LD_LIBRARY_PATH 11123 case $host_os in 11124 freebsd2*) 11125 shlibpath_overrides_runpath=yes 11126 ;; 11127 freebsd3.[01]* | freebsdelf3.[01]*) 11128 shlibpath_overrides_runpath=yes 11129 hardcode_into_libs=yes 11130 ;; 11131 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11132 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11133 shlibpath_overrides_runpath=no 11134 hardcode_into_libs=yes 11135 ;; 11136 *) # from 4.6 on, and DragonFly 11137 shlibpath_overrides_runpath=yes 11138 hardcode_into_libs=yes 11139 ;; 11140 esac 11141 ;; 11142 11143gnu*) 11144 version_type=linux 11145 need_lib_prefix=no 11146 need_version=no 11147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11148 soname_spec='${libname}${release}${shared_ext}$major' 11149 shlibpath_var=LD_LIBRARY_PATH 11150 hardcode_into_libs=yes 11151 ;; 11152 11153haiku*) 11154 version_type=linux 11155 need_lib_prefix=no 11156 need_version=no 11157 dynamic_linker="$host_os runtime_loader" 11158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11159 soname_spec='${libname}${release}${shared_ext}$major' 11160 shlibpath_var=LIBRARY_PATH 11161 shlibpath_overrides_runpath=yes 11162 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11163 hardcode_into_libs=yes 11164 ;; 11165 11166hpux9* | hpux10* | hpux11*) 11167 # Give a soname corresponding to the major version so that dld.sl refuses to 11168 # link against other versions. 11169 version_type=sunos 11170 need_lib_prefix=no 11171 need_version=no 11172 case $host_cpu in 11173 ia64*) 11174 shrext_cmds='.so' 11175 hardcode_into_libs=yes 11176 dynamic_linker="$host_os dld.so" 11177 shlibpath_var=LD_LIBRARY_PATH 11178 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11180 soname_spec='${libname}${release}${shared_ext}$major' 11181 if test "X$HPUX_IA64_MODE" = X32; then 11182 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11183 else 11184 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11185 fi 11186 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11187 ;; 11188 hppa*64*) 11189 shrext_cmds='.sl' 11190 hardcode_into_libs=yes 11191 dynamic_linker="$host_os dld.sl" 11192 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11193 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11195 soname_spec='${libname}${release}${shared_ext}$major' 11196 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11197 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11198 ;; 11199 *) 11200 shrext_cmds='.sl' 11201 dynamic_linker="$host_os dld.sl" 11202 shlibpath_var=SHLIB_PATH 11203 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11205 soname_spec='${libname}${release}${shared_ext}$major' 11206 ;; 11207 esac 11208 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11209 postinstall_cmds='chmod 555 $lib' 11210 # or fails outright, so override atomically: 11211 install_override_mode=555 11212 ;; 11213 11214interix[3-9]*) 11215 version_type=linux 11216 need_lib_prefix=no 11217 need_version=no 11218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11219 soname_spec='${libname}${release}${shared_ext}$major' 11220 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11221 shlibpath_var=LD_LIBRARY_PATH 11222 shlibpath_overrides_runpath=no 11223 hardcode_into_libs=yes 11224 ;; 11225 11226irix5* | irix6* | nonstopux*) 11227 case $host_os in 11228 nonstopux*) version_type=nonstopux ;; 11229 *) 11230 if test "$lt_cv_prog_gnu_ld" = yes; then 11231 version_type=linux 11232 else 11233 version_type=irix 11234 fi ;; 11235 esac 11236 need_lib_prefix=no 11237 need_version=no 11238 soname_spec='${libname}${release}${shared_ext}$major' 11239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11240 case $host_os in 11241 irix5* | nonstopux*) 11242 libsuff= shlibsuff= 11243 ;; 11244 *) 11245 case $LD in # libtool.m4 will add one of these switches to LD 11246 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11247 libsuff= shlibsuff= libmagic=32-bit;; 11248 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11249 libsuff=32 shlibsuff=N32 libmagic=N32;; 11250 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11251 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11252 *) libsuff= shlibsuff= libmagic=never-match;; 11253 esac 11254 ;; 11255 esac 11256 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11257 shlibpath_overrides_runpath=no 11258 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11259 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11260 hardcode_into_libs=yes 11261 ;; 11262 11263# No shared lib support for Linux oldld, aout, or coff. 11264linux*oldld* | linux*aout* | linux*coff*) 11265 dynamic_linker=no 11266 ;; 11267 11268# This must be Linux ELF. 11269linux* | k*bsd*-gnu | kopensolaris*-gnu) 11270 version_type=linux 11271 need_lib_prefix=no 11272 need_version=no 11273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11274 soname_spec='${libname}${release}${shared_ext}$major' 11275 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11276 shlibpath_var=LD_LIBRARY_PATH 11277 shlibpath_overrides_runpath=no 11278 11279 # Some binutils ld are patched to set DT_RUNPATH 11280 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11281 $as_echo_n "(cached) " >&6 11282else 11283 lt_cv_shlibpath_overrides_runpath=no 11284 save_LDFLAGS=$LDFLAGS 11285 save_libdir=$libdir 11286 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11287 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11289/* end confdefs.h. */ 11290 11291int 11292main () 11293{ 11294 11295 ; 11296 return 0; 11297} 11298_ACEOF 11299if ac_fn_c_try_link "$LINENO"; then : 11300 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11301 lt_cv_shlibpath_overrides_runpath=yes 11302fi 11303fi 11304rm -f core conftest.err conftest.$ac_objext \ 11305 conftest$ac_exeext conftest.$ac_ext 11306 LDFLAGS=$save_LDFLAGS 11307 libdir=$save_libdir 11308 11309fi 11310 11311 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11312 11313 # This implies no fast_install, which is unacceptable. 11314 # Some rework will be needed to allow for fast_install 11315 # before this can be enabled. 11316 hardcode_into_libs=yes 11317 11318 # Append ld.so.conf contents to the search path 11319 if test -f /etc/ld.so.conf; then 11320 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' ' '` 11321 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11322 fi 11323 11324 # We used to test for /lib/ld.so.1 and disable shared libraries on 11325 # powerpc, because MkLinux only supported shared libraries with the 11326 # GNU dynamic linker. Since this was broken with cross compilers, 11327 # most powerpc-linux boxes support dynamic linking these days and 11328 # people can always --disable-shared, the test was removed, and we 11329 # assume the GNU/Linux dynamic linker is in use. 11330 dynamic_linker='GNU/Linux ld.so' 11331 ;; 11332 11333netbsd*) 11334 version_type=sunos 11335 need_lib_prefix=no 11336 need_version=no 11337 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11339 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11340 dynamic_linker='NetBSD (a.out) ld.so' 11341 else 11342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11343 soname_spec='${libname}${release}${shared_ext}$major' 11344 dynamic_linker='NetBSD ld.elf_so' 11345 fi 11346 shlibpath_var=LD_LIBRARY_PATH 11347 shlibpath_overrides_runpath=yes 11348 hardcode_into_libs=yes 11349 ;; 11350 11351newsos6) 11352 version_type=linux 11353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11354 shlibpath_var=LD_LIBRARY_PATH 11355 shlibpath_overrides_runpath=yes 11356 ;; 11357 11358*nto* | *qnx*) 11359 version_type=qnx 11360 need_lib_prefix=no 11361 need_version=no 11362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11363 soname_spec='${libname}${release}${shared_ext}$major' 11364 shlibpath_var=LD_LIBRARY_PATH 11365 shlibpath_overrides_runpath=no 11366 hardcode_into_libs=yes 11367 dynamic_linker='ldqnx.so' 11368 ;; 11369 11370openbsd*) 11371 version_type=sunos 11372 sys_lib_dlsearch_path_spec="/usr/lib" 11373 need_lib_prefix=no 11374 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11375 case $host_os in 11376 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11377 *) need_version=no ;; 11378 esac 11379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11380 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11381 shlibpath_var=LD_LIBRARY_PATH 11382 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11383 case $host_os in 11384 openbsd2.[89] | openbsd2.[89].*) 11385 shlibpath_overrides_runpath=no 11386 ;; 11387 *) 11388 shlibpath_overrides_runpath=yes 11389 ;; 11390 esac 11391 else 11392 shlibpath_overrides_runpath=yes 11393 fi 11394 ;; 11395 11396os2*) 11397 libname_spec='$name' 11398 shrext_cmds=".dll" 11399 need_lib_prefix=no 11400 library_names_spec='$libname${shared_ext} $libname.a' 11401 dynamic_linker='OS/2 ld.exe' 11402 shlibpath_var=LIBPATH 11403 ;; 11404 11405osf3* | osf4* | osf5*) 11406 version_type=osf 11407 need_lib_prefix=no 11408 need_version=no 11409 soname_spec='${libname}${release}${shared_ext}$major' 11410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11411 shlibpath_var=LD_LIBRARY_PATH 11412 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11413 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11414 ;; 11415 11416rdos*) 11417 dynamic_linker=no 11418 ;; 11419 11420solaris*) 11421 version_type=linux 11422 need_lib_prefix=no 11423 need_version=no 11424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11425 soname_spec='${libname}${release}${shared_ext}$major' 11426 shlibpath_var=LD_LIBRARY_PATH 11427 shlibpath_overrides_runpath=yes 11428 hardcode_into_libs=yes 11429 # ldd complains unless libraries are executable 11430 postinstall_cmds='chmod +x $lib' 11431 ;; 11432 11433sunos4*) 11434 version_type=sunos 11435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11436 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11437 shlibpath_var=LD_LIBRARY_PATH 11438 shlibpath_overrides_runpath=yes 11439 if test "$with_gnu_ld" = yes; then 11440 need_lib_prefix=no 11441 fi 11442 need_version=yes 11443 ;; 11444 11445sysv4 | sysv4.3*) 11446 version_type=linux 11447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11448 soname_spec='${libname}${release}${shared_ext}$major' 11449 shlibpath_var=LD_LIBRARY_PATH 11450 case $host_vendor in 11451 sni) 11452 shlibpath_overrides_runpath=no 11453 need_lib_prefix=no 11454 runpath_var=LD_RUN_PATH 11455 ;; 11456 siemens) 11457 need_lib_prefix=no 11458 ;; 11459 motorola) 11460 need_lib_prefix=no 11461 need_version=no 11462 shlibpath_overrides_runpath=no 11463 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11464 ;; 11465 esac 11466 ;; 11467 11468sysv4*MP*) 11469 if test -d /usr/nec ;then 11470 version_type=linux 11471 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11472 soname_spec='$libname${shared_ext}.$major' 11473 shlibpath_var=LD_LIBRARY_PATH 11474 fi 11475 ;; 11476 11477sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11478 version_type=freebsd-elf 11479 need_lib_prefix=no 11480 need_version=no 11481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11482 soname_spec='${libname}${release}${shared_ext}$major' 11483 shlibpath_var=LD_LIBRARY_PATH 11484 shlibpath_overrides_runpath=yes 11485 hardcode_into_libs=yes 11486 if test "$with_gnu_ld" = yes; then 11487 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11488 else 11489 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11490 case $host_os in 11491 sco3.2v5*) 11492 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11493 ;; 11494 esac 11495 fi 11496 sys_lib_dlsearch_path_spec='/usr/lib' 11497 ;; 11498 11499tpf*) 11500 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11501 version_type=linux 11502 need_lib_prefix=no 11503 need_version=no 11504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11505 shlibpath_var=LD_LIBRARY_PATH 11506 shlibpath_overrides_runpath=no 11507 hardcode_into_libs=yes 11508 ;; 11509 11510uts4*) 11511 version_type=linux 11512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11513 soname_spec='${libname}${release}${shared_ext}$major' 11514 shlibpath_var=LD_LIBRARY_PATH 11515 ;; 11516 11517*) 11518 dynamic_linker=no 11519 ;; 11520esac 11521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11522$as_echo "$dynamic_linker" >&6; } 11523test "$dynamic_linker" = no && can_build_shared=no 11524 11525variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11526if test "$GCC" = yes; then 11527 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11528fi 11529 11530if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11531 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11532fi 11533if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11534 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11535fi 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11629$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11630hardcode_action= 11631if test -n "$hardcode_libdir_flag_spec" || 11632 test -n "$runpath_var" || 11633 test "X$hardcode_automatic" = "Xyes" ; then 11634 11635 # We can hardcode non-existent directories. 11636 if test "$hardcode_direct" != no && 11637 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11638 # have to relink, otherwise we might link with an installed library 11639 # when we should be linking with a yet-to-be-installed one 11640 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11641 test "$hardcode_minus_L" != no; then 11642 # Linking always hardcodes the temporary library directory. 11643 hardcode_action=relink 11644 else 11645 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11646 hardcode_action=immediate 11647 fi 11648else 11649 # We cannot hardcode anything, or else we can only hardcode existing 11650 # directories. 11651 hardcode_action=unsupported 11652fi 11653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11654$as_echo "$hardcode_action" >&6; } 11655 11656if test "$hardcode_action" = relink || 11657 test "$inherit_rpath" = yes; then 11658 # Fast installation is not supported 11659 enable_fast_install=no 11660elif test "$shlibpath_overrides_runpath" = yes || 11661 test "$enable_shared" = no; then 11662 # Fast installation is not necessary 11663 enable_fast_install=needless 11664fi 11665 11666 11667 11668 11669 11670 11671 if test "x$enable_dlopen" != xyes; then 11672 enable_dlopen=unknown 11673 enable_dlopen_self=unknown 11674 enable_dlopen_self_static=unknown 11675else 11676 lt_cv_dlopen=no 11677 lt_cv_dlopen_libs= 11678 11679 case $host_os in 11680 beos*) 11681 lt_cv_dlopen="load_add_on" 11682 lt_cv_dlopen_libs= 11683 lt_cv_dlopen_self=yes 11684 ;; 11685 11686 mingw* | pw32* | cegcc*) 11687 lt_cv_dlopen="LoadLibrary" 11688 lt_cv_dlopen_libs= 11689 ;; 11690 11691 cygwin*) 11692 lt_cv_dlopen="dlopen" 11693 lt_cv_dlopen_libs= 11694 ;; 11695 11696 darwin*) 11697 # if libdl is installed we need to link against it 11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11699$as_echo_n "checking for dlopen in -ldl... " >&6; } 11700if ${ac_cv_lib_dl_dlopen+:} false; then : 11701 $as_echo_n "(cached) " >&6 11702else 11703 ac_check_lib_save_LIBS=$LIBS 11704LIBS="-ldl $LIBS" 11705cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11706/* end confdefs.h. */ 11707 11708/* Override any GCC internal prototype to avoid an error. 11709 Use char because int might match the return type of a GCC 11710 builtin and then its argument prototype would still apply. */ 11711#ifdef __cplusplus 11712extern "C" 11713#endif 11714char dlopen (); 11715int 11716main () 11717{ 11718return dlopen (); 11719 ; 11720 return 0; 11721} 11722_ACEOF 11723if ac_fn_c_try_link "$LINENO"; then : 11724 ac_cv_lib_dl_dlopen=yes 11725else 11726 ac_cv_lib_dl_dlopen=no 11727fi 11728rm -f core conftest.err conftest.$ac_objext \ 11729 conftest$ac_exeext conftest.$ac_ext 11730LIBS=$ac_check_lib_save_LIBS 11731fi 11732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11733$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11734if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11735 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11736else 11737 11738 lt_cv_dlopen="dyld" 11739 lt_cv_dlopen_libs= 11740 lt_cv_dlopen_self=yes 11741 11742fi 11743 11744 ;; 11745 11746 *) 11747 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11748if test "x$ac_cv_func_shl_load" = xyes; then : 11749 lt_cv_dlopen="shl_load" 11750else 11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11752$as_echo_n "checking for shl_load in -ldld... " >&6; } 11753if ${ac_cv_lib_dld_shl_load+:} false; then : 11754 $as_echo_n "(cached) " >&6 11755else 11756 ac_check_lib_save_LIBS=$LIBS 11757LIBS="-ldld $LIBS" 11758cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11759/* end confdefs.h. */ 11760 11761/* Override any GCC internal prototype to avoid an error. 11762 Use char because int might match the return type of a GCC 11763 builtin and then its argument prototype would still apply. */ 11764#ifdef __cplusplus 11765extern "C" 11766#endif 11767char shl_load (); 11768int 11769main () 11770{ 11771return shl_load (); 11772 ; 11773 return 0; 11774} 11775_ACEOF 11776if ac_fn_c_try_link "$LINENO"; then : 11777 ac_cv_lib_dld_shl_load=yes 11778else 11779 ac_cv_lib_dld_shl_load=no 11780fi 11781rm -f core conftest.err conftest.$ac_objext \ 11782 conftest$ac_exeext conftest.$ac_ext 11783LIBS=$ac_check_lib_save_LIBS 11784fi 11785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11786$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11787if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11788 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11789else 11790 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11791if test "x$ac_cv_func_dlopen" = xyes; then : 11792 lt_cv_dlopen="dlopen" 11793else 11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11795$as_echo_n "checking for dlopen in -ldl... " >&6; } 11796if ${ac_cv_lib_dl_dlopen+:} false; then : 11797 $as_echo_n "(cached) " >&6 11798else 11799 ac_check_lib_save_LIBS=$LIBS 11800LIBS="-ldl $LIBS" 11801cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11802/* end confdefs.h. */ 11803 11804/* Override any GCC internal prototype to avoid an error. 11805 Use char because int might match the return type of a GCC 11806 builtin and then its argument prototype would still apply. */ 11807#ifdef __cplusplus 11808extern "C" 11809#endif 11810char dlopen (); 11811int 11812main () 11813{ 11814return dlopen (); 11815 ; 11816 return 0; 11817} 11818_ACEOF 11819if ac_fn_c_try_link "$LINENO"; then : 11820 ac_cv_lib_dl_dlopen=yes 11821else 11822 ac_cv_lib_dl_dlopen=no 11823fi 11824rm -f core conftest.err conftest.$ac_objext \ 11825 conftest$ac_exeext conftest.$ac_ext 11826LIBS=$ac_check_lib_save_LIBS 11827fi 11828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11829$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11830if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11831 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11832else 11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11834$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11835if ${ac_cv_lib_svld_dlopen+:} false; then : 11836 $as_echo_n "(cached) " >&6 11837else 11838 ac_check_lib_save_LIBS=$LIBS 11839LIBS="-lsvld $LIBS" 11840cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11841/* end confdefs.h. */ 11842 11843/* Override any GCC internal prototype to avoid an error. 11844 Use char because int might match the return type of a GCC 11845 builtin and then its argument prototype would still apply. */ 11846#ifdef __cplusplus 11847extern "C" 11848#endif 11849char dlopen (); 11850int 11851main () 11852{ 11853return dlopen (); 11854 ; 11855 return 0; 11856} 11857_ACEOF 11858if ac_fn_c_try_link "$LINENO"; then : 11859 ac_cv_lib_svld_dlopen=yes 11860else 11861 ac_cv_lib_svld_dlopen=no 11862fi 11863rm -f core conftest.err conftest.$ac_objext \ 11864 conftest$ac_exeext conftest.$ac_ext 11865LIBS=$ac_check_lib_save_LIBS 11866fi 11867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11868$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11869if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11870 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11871else 11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11873$as_echo_n "checking for dld_link in -ldld... " >&6; } 11874if ${ac_cv_lib_dld_dld_link+:} false; then : 11875 $as_echo_n "(cached) " >&6 11876else 11877 ac_check_lib_save_LIBS=$LIBS 11878LIBS="-ldld $LIBS" 11879cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11880/* end confdefs.h. */ 11881 11882/* Override any GCC internal prototype to avoid an error. 11883 Use char because int might match the return type of a GCC 11884 builtin and then its argument prototype would still apply. */ 11885#ifdef __cplusplus 11886extern "C" 11887#endif 11888char dld_link (); 11889int 11890main () 11891{ 11892return dld_link (); 11893 ; 11894 return 0; 11895} 11896_ACEOF 11897if ac_fn_c_try_link "$LINENO"; then : 11898 ac_cv_lib_dld_dld_link=yes 11899else 11900 ac_cv_lib_dld_dld_link=no 11901fi 11902rm -f core conftest.err conftest.$ac_objext \ 11903 conftest$ac_exeext conftest.$ac_ext 11904LIBS=$ac_check_lib_save_LIBS 11905fi 11906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11907$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11908if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11909 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11910fi 11911 11912 11913fi 11914 11915 11916fi 11917 11918 11919fi 11920 11921 11922fi 11923 11924 11925fi 11926 11927 ;; 11928 esac 11929 11930 if test "x$lt_cv_dlopen" != xno; then 11931 enable_dlopen=yes 11932 else 11933 enable_dlopen=no 11934 fi 11935 11936 case $lt_cv_dlopen in 11937 dlopen) 11938 save_CPPFLAGS="$CPPFLAGS" 11939 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11940 11941 save_LDFLAGS="$LDFLAGS" 11942 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11943 11944 save_LIBS="$LIBS" 11945 LIBS="$lt_cv_dlopen_libs $LIBS" 11946 11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11948$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11949if ${lt_cv_dlopen_self+:} false; then : 11950 $as_echo_n "(cached) " >&6 11951else 11952 if test "$cross_compiling" = yes; then : 11953 lt_cv_dlopen_self=cross 11954else 11955 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11956 lt_status=$lt_dlunknown 11957 cat > conftest.$ac_ext <<_LT_EOF 11958#line $LINENO "configure" 11959#include "confdefs.h" 11960 11961#if HAVE_DLFCN_H 11962#include <dlfcn.h> 11963#endif 11964 11965#include <stdio.h> 11966 11967#ifdef RTLD_GLOBAL 11968# define LT_DLGLOBAL RTLD_GLOBAL 11969#else 11970# ifdef DL_GLOBAL 11971# define LT_DLGLOBAL DL_GLOBAL 11972# else 11973# define LT_DLGLOBAL 0 11974# endif 11975#endif 11976 11977/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11978 find out it does not work in some platform. */ 11979#ifndef LT_DLLAZY_OR_NOW 11980# ifdef RTLD_LAZY 11981# define LT_DLLAZY_OR_NOW RTLD_LAZY 11982# else 11983# ifdef DL_LAZY 11984# define LT_DLLAZY_OR_NOW DL_LAZY 11985# else 11986# ifdef RTLD_NOW 11987# define LT_DLLAZY_OR_NOW RTLD_NOW 11988# else 11989# ifdef DL_NOW 11990# define LT_DLLAZY_OR_NOW DL_NOW 11991# else 11992# define LT_DLLAZY_OR_NOW 0 11993# endif 11994# endif 11995# endif 11996# endif 11997#endif 11998 11999/* When -fvisbility=hidden is used, assume the code has been annotated 12000 correspondingly for the symbols needed. */ 12001#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12002int fnord () __attribute__((visibility("default"))); 12003#endif 12004 12005int fnord () { return 42; } 12006int main () 12007{ 12008 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12009 int status = $lt_dlunknown; 12010 12011 if (self) 12012 { 12013 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12014 else 12015 { 12016 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12017 else puts (dlerror ()); 12018 } 12019 /* dlclose (self); */ 12020 } 12021 else 12022 puts (dlerror ()); 12023 12024 return status; 12025} 12026_LT_EOF 12027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12028 (eval $ac_link) 2>&5 12029 ac_status=$? 12030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12031 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12032 (./conftest; exit; ) >&5 2>/dev/null 12033 lt_status=$? 12034 case x$lt_status in 12035 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12036 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12037 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12038 esac 12039 else : 12040 # compilation failed 12041 lt_cv_dlopen_self=no 12042 fi 12043fi 12044rm -fr conftest* 12045 12046 12047fi 12048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12049$as_echo "$lt_cv_dlopen_self" >&6; } 12050 12051 if test "x$lt_cv_dlopen_self" = xyes; then 12052 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12054$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12055if ${lt_cv_dlopen_self_static+:} false; then : 12056 $as_echo_n "(cached) " >&6 12057else 12058 if test "$cross_compiling" = yes; then : 12059 lt_cv_dlopen_self_static=cross 12060else 12061 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12062 lt_status=$lt_dlunknown 12063 cat > conftest.$ac_ext <<_LT_EOF 12064#line $LINENO "configure" 12065#include "confdefs.h" 12066 12067#if HAVE_DLFCN_H 12068#include <dlfcn.h> 12069#endif 12070 12071#include <stdio.h> 12072 12073#ifdef RTLD_GLOBAL 12074# define LT_DLGLOBAL RTLD_GLOBAL 12075#else 12076# ifdef DL_GLOBAL 12077# define LT_DLGLOBAL DL_GLOBAL 12078# else 12079# define LT_DLGLOBAL 0 12080# endif 12081#endif 12082 12083/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12084 find out it does not work in some platform. */ 12085#ifndef LT_DLLAZY_OR_NOW 12086# ifdef RTLD_LAZY 12087# define LT_DLLAZY_OR_NOW RTLD_LAZY 12088# else 12089# ifdef DL_LAZY 12090# define LT_DLLAZY_OR_NOW DL_LAZY 12091# else 12092# ifdef RTLD_NOW 12093# define LT_DLLAZY_OR_NOW RTLD_NOW 12094# else 12095# ifdef DL_NOW 12096# define LT_DLLAZY_OR_NOW DL_NOW 12097# else 12098# define LT_DLLAZY_OR_NOW 0 12099# endif 12100# endif 12101# endif 12102# endif 12103#endif 12104 12105/* When -fvisbility=hidden is used, assume the code has been annotated 12106 correspondingly for the symbols needed. */ 12107#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12108int fnord () __attribute__((visibility("default"))); 12109#endif 12110 12111int fnord () { return 42; } 12112int main () 12113{ 12114 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12115 int status = $lt_dlunknown; 12116 12117 if (self) 12118 { 12119 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12120 else 12121 { 12122 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12123 else puts (dlerror ()); 12124 } 12125 /* dlclose (self); */ 12126 } 12127 else 12128 puts (dlerror ()); 12129 12130 return status; 12131} 12132_LT_EOF 12133 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12134 (eval $ac_link) 2>&5 12135 ac_status=$? 12136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12137 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12138 (./conftest; exit; ) >&5 2>/dev/null 12139 lt_status=$? 12140 case x$lt_status in 12141 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12142 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12143 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12144 esac 12145 else : 12146 # compilation failed 12147 lt_cv_dlopen_self_static=no 12148 fi 12149fi 12150rm -fr conftest* 12151 12152 12153fi 12154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12155$as_echo "$lt_cv_dlopen_self_static" >&6; } 12156 fi 12157 12158 CPPFLAGS="$save_CPPFLAGS" 12159 LDFLAGS="$save_LDFLAGS" 12160 LIBS="$save_LIBS" 12161 ;; 12162 esac 12163 12164 case $lt_cv_dlopen_self in 12165 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12166 *) enable_dlopen_self=unknown ;; 12167 esac 12168 12169 case $lt_cv_dlopen_self_static in 12170 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12171 *) enable_dlopen_self_static=unknown ;; 12172 esac 12173fi 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191striplib= 12192old_striplib= 12193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12194$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12195if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12196 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12197 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12199$as_echo "yes" >&6; } 12200else 12201# FIXME - insert some real tests, host_os isn't really good enough 12202 case $host_os in 12203 darwin*) 12204 if test -n "$STRIP" ; then 12205 striplib="$STRIP -x" 12206 old_striplib="$STRIP -S" 12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12208$as_echo "yes" >&6; } 12209 else 12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12211$as_echo "no" >&6; } 12212 fi 12213 ;; 12214 *) 12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12216$as_echo "no" >&6; } 12217 ;; 12218 esac 12219fi 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 # Report which library types will actually be built 12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12234$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12236$as_echo "$can_build_shared" >&6; } 12237 12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12239$as_echo_n "checking whether to build shared libraries... " >&6; } 12240 test "$can_build_shared" = "no" && enable_shared=no 12241 12242 # On AIX, shared libraries and static libraries use the same namespace, and 12243 # are all built from PIC. 12244 case $host_os in 12245 aix3*) 12246 test "$enable_shared" = yes && enable_static=no 12247 if test -n "$RANLIB"; then 12248 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12249 postinstall_cmds='$RANLIB $lib' 12250 fi 12251 ;; 12252 12253 aix[4-9]*) 12254 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12255 test "$enable_shared" = yes && enable_static=no 12256 fi 12257 ;; 12258 esac 12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12260$as_echo "$enable_shared" >&6; } 12261 12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12263$as_echo_n "checking whether to build static libraries... " >&6; } 12264 # Make sure either enable_shared or enable_static is yes. 12265 test "$enable_shared" = yes || enable_static=yes 12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12267$as_echo "$enable_static" >&6; } 12268 12269 12270 12271 12272fi 12273ac_ext=c 12274ac_cpp='$CPP $CPPFLAGS' 12275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12277ac_compiler_gnu=$ac_cv_c_compiler_gnu 12278 12279CC="$lt_save_CC" 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 ac_config_commands="$ac_config_commands libtool" 12294 12295 12296 12297 12298# Only expand once: 12299 12300 12301ac_ext=cpp 12302ac_cpp='$CXXCPP $CPPFLAGS' 12303ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12304ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12305ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12306if test -z "$CXX"; then 12307 if test -n "$CCC"; then 12308 CXX=$CCC 12309 else 12310 if test -n "$ac_tool_prefix"; then 12311 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12312 do 12313 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12314set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12316$as_echo_n "checking for $ac_word... " >&6; } 12317if ${ac_cv_prog_CXX+:} false; then : 12318 $as_echo_n "(cached) " >&6 12319else 12320 if test -n "$CXX"; then 12321 ac_cv_prog_CXX="$CXX" # Let the user override the test. 12322else 12323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12324for as_dir in $PATH 12325do 12326 IFS=$as_save_IFS 12327 test -z "$as_dir" && as_dir=. 12328 for ac_exec_ext in '' $ac_executable_extensions; do 12329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12330 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 12331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12332 break 2 12333 fi 12334done 12335 done 12336IFS=$as_save_IFS 12337 12338fi 12339fi 12340CXX=$ac_cv_prog_CXX 12341if test -n "$CXX"; then 12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 12343$as_echo "$CXX" >&6; } 12344else 12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12346$as_echo "no" >&6; } 12347fi 12348 12349 12350 test -n "$CXX" && break 12351 done 12352fi 12353if test -z "$CXX"; then 12354 ac_ct_CXX=$CXX 12355 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12356do 12357 # Extract the first word of "$ac_prog", so it can be a program name with args. 12358set dummy $ac_prog; ac_word=$2 12359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12360$as_echo_n "checking for $ac_word... " >&6; } 12361if ${ac_cv_prog_ac_ct_CXX+:} false; then : 12362 $as_echo_n "(cached) " >&6 12363else 12364 if test -n "$ac_ct_CXX"; then 12365 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 12366else 12367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12368for as_dir in $PATH 12369do 12370 IFS=$as_save_IFS 12371 test -z "$as_dir" && as_dir=. 12372 for ac_exec_ext in '' $ac_executable_extensions; do 12373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12374 ac_cv_prog_ac_ct_CXX="$ac_prog" 12375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12376 break 2 12377 fi 12378done 12379 done 12380IFS=$as_save_IFS 12381 12382fi 12383fi 12384ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 12385if test -n "$ac_ct_CXX"; then 12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 12387$as_echo "$ac_ct_CXX" >&6; } 12388else 12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12390$as_echo "no" >&6; } 12391fi 12392 12393 12394 test -n "$ac_ct_CXX" && break 12395done 12396 12397 if test "x$ac_ct_CXX" = x; then 12398 CXX="g++" 12399 else 12400 case $cross_compiling:$ac_tool_warned in 12401yes:) 12402{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12403$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12404ac_tool_warned=yes ;; 12405esac 12406 CXX=$ac_ct_CXX 12407 fi 12408fi 12409 12410 fi 12411fi 12412# Provide some information about the compiler. 12413$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 12414set X $ac_compile 12415ac_compiler=$2 12416for ac_option in --version -v -V -qversion; do 12417 { { ac_try="$ac_compiler $ac_option >&5" 12418case "(($ac_try" in 12419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12420 *) ac_try_echo=$ac_try;; 12421esac 12422eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12423$as_echo "$ac_try_echo"; } >&5 12424 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12425 ac_status=$? 12426 if test -s conftest.err; then 12427 sed '10a\ 12428... rest of stderr output deleted ... 12429 10q' conftest.err >conftest.er1 12430 cat conftest.er1 >&5 12431 fi 12432 rm -f conftest.er1 conftest.err 12433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12434 test $ac_status = 0; } 12435done 12436 12437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 12438$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 12439if ${ac_cv_cxx_compiler_gnu+:} false; then : 12440 $as_echo_n "(cached) " >&6 12441else 12442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12443/* end confdefs.h. */ 12444 12445int 12446main () 12447{ 12448#ifndef __GNUC__ 12449 choke me 12450#endif 12451 12452 ; 12453 return 0; 12454} 12455_ACEOF 12456if ac_fn_cxx_try_compile "$LINENO"; then : 12457 ac_compiler_gnu=yes 12458else 12459 ac_compiler_gnu=no 12460fi 12461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12462ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 12463 12464fi 12465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 12466$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 12467if test $ac_compiler_gnu = yes; then 12468 GXX=yes 12469else 12470 GXX= 12471fi 12472ac_test_CXXFLAGS=${CXXFLAGS+set} 12473ac_save_CXXFLAGS=$CXXFLAGS 12474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 12475$as_echo_n "checking whether $CXX accepts -g... " >&6; } 12476if ${ac_cv_prog_cxx_g+:} false; then : 12477 $as_echo_n "(cached) " >&6 12478else 12479 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 12480 ac_cxx_werror_flag=yes 12481 ac_cv_prog_cxx_g=no 12482 CXXFLAGS="-g" 12483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12484/* end confdefs.h. */ 12485 12486int 12487main () 12488{ 12489 12490 ; 12491 return 0; 12492} 12493_ACEOF 12494if ac_fn_cxx_try_compile "$LINENO"; then : 12495 ac_cv_prog_cxx_g=yes 12496else 12497 CXXFLAGS="" 12498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12499/* end confdefs.h. */ 12500 12501int 12502main () 12503{ 12504 12505 ; 12506 return 0; 12507} 12508_ACEOF 12509if ac_fn_cxx_try_compile "$LINENO"; then : 12510 12511else 12512 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 12513 CXXFLAGS="-g" 12514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12515/* end confdefs.h. */ 12516 12517int 12518main () 12519{ 12520 12521 ; 12522 return 0; 12523} 12524_ACEOF 12525if ac_fn_cxx_try_compile "$LINENO"; then : 12526 ac_cv_prog_cxx_g=yes 12527fi 12528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12529fi 12530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12531fi 12532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12533 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 12534fi 12535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 12536$as_echo "$ac_cv_prog_cxx_g" >&6; } 12537if test "$ac_test_CXXFLAGS" = set; then 12538 CXXFLAGS=$ac_save_CXXFLAGS 12539elif test $ac_cv_prog_cxx_g = yes; then 12540 if test "$GXX" = yes; then 12541 CXXFLAGS="-g -O2" 12542 else 12543 CXXFLAGS="-g" 12544 fi 12545else 12546 if test "$GXX" = yes; then 12547 CXXFLAGS="-O2" 12548 else 12549 CXXFLAGS= 12550 fi 12551fi 12552ac_ext=c 12553ac_cpp='$CPP $CPPFLAGS' 12554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12556ac_compiler_gnu=$ac_cv_c_compiler_gnu 12557 12558depcc="$CXX" am_compiler_list= 12559 12560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 12561$as_echo_n "checking dependency style of $depcc... " >&6; } 12562if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 12563 $as_echo_n "(cached) " >&6 12564else 12565 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12566 # We make a subdir and do the tests there. Otherwise we can end up 12567 # making bogus files that we don't know about and never remove. For 12568 # instance it was reported that on HP-UX the gcc test will end up 12569 # making a dummy file named `D' -- because `-MD' means `put the output 12570 # in D'. 12571 mkdir conftest.dir 12572 # Copy depcomp to subdir because otherwise we won't find it if we're 12573 # using a relative directory. 12574 cp "$am_depcomp" conftest.dir 12575 cd conftest.dir 12576 # We will build objects and dependencies in a subdirectory because 12577 # it helps to detect inapplicable dependency modes. For instance 12578 # both Tru64's cc and ICC support -MD to output dependencies as a 12579 # side effect of compilation, but ICC will put the dependencies in 12580 # the current directory while Tru64 will put them in the object 12581 # directory. 12582 mkdir sub 12583 12584 am_cv_CXX_dependencies_compiler_type=none 12585 if test "$am_compiler_list" = ""; then 12586 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12587 fi 12588 am__universal=false 12589 case " $depcc " in #( 12590 *\ -arch\ *\ -arch\ *) am__universal=true ;; 12591 esac 12592 12593 for depmode in $am_compiler_list; do 12594 # Setup a source with many dependencies, because some compilers 12595 # like to wrap large dependency lists on column 80 (with \), and 12596 # we should not choose a depcomp mode which is confused by this. 12597 # 12598 # We need to recreate these files for each test, as the compiler may 12599 # overwrite some of them when testing with obscure command lines. 12600 # This happens at least with the AIX C compiler. 12601 : > sub/conftest.c 12602 for i in 1 2 3 4 5 6; do 12603 echo '#include "conftst'$i'.h"' >> sub/conftest.c 12604 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 12605 # Solaris 8's {/usr,}/bin/sh. 12606 touch sub/conftst$i.h 12607 done 12608 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12609 12610 # We check with `-c' and `-o' for the sake of the "dashmstdout" 12611 # mode. It turns out that the SunPro C++ compiler does not properly 12612 # handle `-M -o', and we need to detect this. Also, some Intel 12613 # versions had trouble with output in subdirs 12614 am__obj=sub/conftest.${OBJEXT-o} 12615 am__minus_obj="-o $am__obj" 12616 case $depmode in 12617 gcc) 12618 # This depmode causes a compiler race in universal mode. 12619 test "$am__universal" = false || continue 12620 ;; 12621 nosideeffect) 12622 # after this tag, mechanisms are not by side-effect, so they'll 12623 # only be used when explicitly requested 12624 if test "x$enable_dependency_tracking" = xyes; then 12625 continue 12626 else 12627 break 12628 fi 12629 ;; 12630 msvisualcpp | msvcmsys) 12631 # This compiler won't grok `-c -o', but also, the minuso test has 12632 # not run yet. These depmodes are late enough in the game, and 12633 # so weak that their functioning should not be impacted. 12634 am__obj=conftest.${OBJEXT-o} 12635 am__minus_obj= 12636 ;; 12637 none) break ;; 12638 esac 12639 if depmode=$depmode \ 12640 source=sub/conftest.c object=$am__obj \ 12641 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12642 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 12643 >/dev/null 2>conftest.err && 12644 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12645 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12646 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 12647 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12648 # icc doesn't choke on unknown options, it will just issue warnings 12649 # or remarks (even with -Werror). So we grep stderr for any message 12650 # that says an option was ignored or not supported. 12651 # When given -MP, icc 7.0 and 7.1 complain thusly: 12652 # icc: Command line warning: ignoring option '-M'; no argument required 12653 # The diagnosis changed in icc 8.0: 12654 # icc: Command line remark: option '-MP' not supported 12655 if (grep 'ignoring option' conftest.err || 12656 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 12657 am_cv_CXX_dependencies_compiler_type=$depmode 12658 break 12659 fi 12660 fi 12661 done 12662 12663 cd .. 12664 rm -rf conftest.dir 12665else 12666 am_cv_CXX_dependencies_compiler_type=none 12667fi 12668 12669fi 12670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 12671$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 12672CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 12673 12674 if 12675 test "x$enable_dependency_tracking" != xno \ 12676 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 12677 am__fastdepCXX_TRUE= 12678 am__fastdepCXX_FALSE='#' 12679else 12680 am__fastdepCXX_TRUE='#' 12681 am__fastdepCXX_FALSE= 12682fi 12683 12684 12685 12686 12687 12688func_stripname_cnf () 12689{ 12690 case ${2} in 12691 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 12692 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 12693 esac 12694} # func_stripname_cnf 12695 12696 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 12697 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 12698 (test "X$CXX" != "Xg++"))) ; then 12699 ac_ext=cpp 12700ac_cpp='$CXXCPP $CPPFLAGS' 12701ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12702ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12703ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12705$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12706if test -z "$CXXCPP"; then 12707 if ${ac_cv_prog_CXXCPP+:} false; then : 12708 $as_echo_n "(cached) " >&6 12709else 12710 # Double quotes because CXXCPP needs to be expanded 12711 for CXXCPP in "$CXX -E" "/lib/cpp" 12712 do 12713 ac_preproc_ok=false 12714for ac_cxx_preproc_warn_flag in '' yes 12715do 12716 # Use a header file that comes with gcc, so configuring glibc 12717 # with a fresh cross-compiler works. 12718 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12719 # <limits.h> exists even on freestanding compilers. 12720 # On the NeXT, cc -E runs the code through the compiler's parser, 12721 # not just through cpp. "Syntax error" is here to catch this case. 12722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12723/* end confdefs.h. */ 12724#ifdef __STDC__ 12725# include <limits.h> 12726#else 12727# include <assert.h> 12728#endif 12729 Syntax error 12730_ACEOF 12731if ac_fn_cxx_try_cpp "$LINENO"; then : 12732 12733else 12734 # Broken: fails on valid input. 12735continue 12736fi 12737rm -f conftest.err conftest.i conftest.$ac_ext 12738 12739 # OK, works on sane cases. Now check whether nonexistent headers 12740 # can be detected and how. 12741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12742/* end confdefs.h. */ 12743#include <ac_nonexistent.h> 12744_ACEOF 12745if ac_fn_cxx_try_cpp "$LINENO"; then : 12746 # Broken: success on invalid input. 12747continue 12748else 12749 # Passes both tests. 12750ac_preproc_ok=: 12751break 12752fi 12753rm -f conftest.err conftest.i conftest.$ac_ext 12754 12755done 12756# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12757rm -f conftest.i conftest.err conftest.$ac_ext 12758if $ac_preproc_ok; then : 12759 break 12760fi 12761 12762 done 12763 ac_cv_prog_CXXCPP=$CXXCPP 12764 12765fi 12766 CXXCPP=$ac_cv_prog_CXXCPP 12767else 12768 ac_cv_prog_CXXCPP=$CXXCPP 12769fi 12770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12771$as_echo "$CXXCPP" >&6; } 12772ac_preproc_ok=false 12773for ac_cxx_preproc_warn_flag in '' yes 12774do 12775 # Use a header file that comes with gcc, so configuring glibc 12776 # with a fresh cross-compiler works. 12777 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12778 # <limits.h> exists even on freestanding compilers. 12779 # On the NeXT, cc -E runs the code through the compiler's parser, 12780 # not just through cpp. "Syntax error" is here to catch this case. 12781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12782/* end confdefs.h. */ 12783#ifdef __STDC__ 12784# include <limits.h> 12785#else 12786# include <assert.h> 12787#endif 12788 Syntax error 12789_ACEOF 12790if ac_fn_cxx_try_cpp "$LINENO"; then : 12791 12792else 12793 # Broken: fails on valid input. 12794continue 12795fi 12796rm -f conftest.err conftest.i conftest.$ac_ext 12797 12798 # OK, works on sane cases. Now check whether nonexistent headers 12799 # can be detected and how. 12800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12801/* end confdefs.h. */ 12802#include <ac_nonexistent.h> 12803_ACEOF 12804if ac_fn_cxx_try_cpp "$LINENO"; then : 12805 # Broken: success on invalid input. 12806continue 12807else 12808 # Passes both tests. 12809ac_preproc_ok=: 12810break 12811fi 12812rm -f conftest.err conftest.i conftest.$ac_ext 12813 12814done 12815# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12816rm -f conftest.i conftest.err conftest.$ac_ext 12817if $ac_preproc_ok; then : 12818 12819else 12820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12821$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12822as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 12823See \`config.log' for more details" "$LINENO" 5; } 12824fi 12825 12826ac_ext=c 12827ac_cpp='$CPP $CPPFLAGS' 12828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12830ac_compiler_gnu=$ac_cv_c_compiler_gnu 12831 12832else 12833 _lt_caught_CXX_error=yes 12834fi 12835 12836ac_ext=cpp 12837ac_cpp='$CXXCPP $CPPFLAGS' 12838ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12839ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12840ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12841 12842archive_cmds_need_lc_CXX=no 12843allow_undefined_flag_CXX= 12844always_export_symbols_CXX=no 12845archive_expsym_cmds_CXX= 12846compiler_needs_object_CXX=no 12847export_dynamic_flag_spec_CXX= 12848hardcode_direct_CXX=no 12849hardcode_direct_absolute_CXX=no 12850hardcode_libdir_flag_spec_CXX= 12851hardcode_libdir_flag_spec_ld_CXX= 12852hardcode_libdir_separator_CXX= 12853hardcode_minus_L_CXX=no 12854hardcode_shlibpath_var_CXX=unsupported 12855hardcode_automatic_CXX=no 12856inherit_rpath_CXX=no 12857module_cmds_CXX= 12858module_expsym_cmds_CXX= 12859link_all_deplibs_CXX=unknown 12860old_archive_cmds_CXX=$old_archive_cmds 12861reload_flag_CXX=$reload_flag 12862reload_cmds_CXX=$reload_cmds 12863no_undefined_flag_CXX= 12864whole_archive_flag_spec_CXX= 12865enable_shared_with_static_runtimes_CXX=no 12866 12867# Source file extension for C++ test sources. 12868ac_ext=cpp 12869 12870# Object file extension for compiled C++ test sources. 12871objext=o 12872objext_CXX=$objext 12873 12874# No sense in running all these tests if we already determined that 12875# the CXX compiler isn't working. Some variables (like enable_shared) 12876# are currently assumed to apply to all compilers on this platform, 12877# and will be corrupted by setting them based on a non-working compiler. 12878if test "$_lt_caught_CXX_error" != yes; then 12879 # Code to be used in simple compile tests 12880 lt_simple_compile_test_code="int some_variable = 0;" 12881 12882 # Code to be used in simple link tests 12883 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12884 12885 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12886 12887 12888 12889 12890 12891 12892# If no C compiler was specified, use CC. 12893LTCC=${LTCC-"$CC"} 12894 12895# If no C compiler flags were specified, use CFLAGS. 12896LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12897 12898# Allow CC to be a program name with arguments. 12899compiler=$CC 12900 12901 12902 # save warnings/boilerplate of simple test code 12903 ac_outfile=conftest.$ac_objext 12904echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12905eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12906_lt_compiler_boilerplate=`cat conftest.err` 12907$RM conftest* 12908 12909 ac_outfile=conftest.$ac_objext 12910echo "$lt_simple_link_test_code" >conftest.$ac_ext 12911eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12912_lt_linker_boilerplate=`cat conftest.err` 12913$RM -r conftest* 12914 12915 12916 # Allow CC to be a program name with arguments. 12917 lt_save_CC=$CC 12918 lt_save_CFLAGS=$CFLAGS 12919 lt_save_LD=$LD 12920 lt_save_GCC=$GCC 12921 GCC=$GXX 12922 lt_save_with_gnu_ld=$with_gnu_ld 12923 lt_save_path_LD=$lt_cv_path_LD 12924 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12925 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12926 else 12927 $as_unset lt_cv_prog_gnu_ld 12928 fi 12929 if test -n "${lt_cv_path_LDCXX+set}"; then 12930 lt_cv_path_LD=$lt_cv_path_LDCXX 12931 else 12932 $as_unset lt_cv_path_LD 12933 fi 12934 test -z "${LDCXX+set}" || LD=$LDCXX 12935 CC=${CXX-"c++"} 12936 CFLAGS=$CXXFLAGS 12937 compiler=$CC 12938 compiler_CXX=$CC 12939 for cc_temp in $compiler""; do 12940 case $cc_temp in 12941 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12942 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12943 \-*) ;; 12944 *) break;; 12945 esac 12946done 12947cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 12948 12949 12950 if test -n "$compiler"; then 12951 # We don't want -fno-exception when compiling C++ code, so set the 12952 # no_builtin_flag separately 12953 if test "$GXX" = yes; then 12954 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12955 else 12956 lt_prog_compiler_no_builtin_flag_CXX= 12957 fi 12958 12959 if test "$GXX" = yes; then 12960 # Set up default GNU C++ configuration 12961 12962 12963 12964# Check whether --with-gnu-ld was given. 12965if test "${with_gnu_ld+set}" = set; then : 12966 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12967else 12968 with_gnu_ld=no 12969fi 12970 12971ac_prog=ld 12972if test "$GCC" = yes; then 12973 # Check if gcc -print-prog-name=ld gives a path. 12974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12975$as_echo_n "checking for ld used by $CC... " >&6; } 12976 case $host in 12977 *-*-mingw*) 12978 # gcc leaves a trailing carriage return which upsets mingw 12979 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12980 *) 12981 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12982 esac 12983 case $ac_prog in 12984 # Accept absolute paths. 12985 [\\/]* | ?:[\\/]*) 12986 re_direlt='/[^/][^/]*/\.\./' 12987 # Canonicalize the pathname of ld 12988 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12989 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12990 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12991 done 12992 test -z "$LD" && LD="$ac_prog" 12993 ;; 12994 "") 12995 # If it fails, then pretend we aren't using GCC. 12996 ac_prog=ld 12997 ;; 12998 *) 12999 # If it is relative, then search for the first ld in PATH. 13000 with_gnu_ld=unknown 13001 ;; 13002 esac 13003elif test "$with_gnu_ld" = yes; then 13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13005$as_echo_n "checking for GNU ld... " >&6; } 13006else 13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13008$as_echo_n "checking for non-GNU ld... " >&6; } 13009fi 13010if ${lt_cv_path_LD+:} false; then : 13011 $as_echo_n "(cached) " >&6 13012else 13013 if test -z "$LD"; then 13014 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 13015 for ac_dir in $PATH; do 13016 IFS="$lt_save_ifs" 13017 test -z "$ac_dir" && ac_dir=. 13018 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13019 lt_cv_path_LD="$ac_dir/$ac_prog" 13020 # Check to see if the program is GNU ld. I'd rather use --version, 13021 # but apparently some variants of GNU ld only accept -v. 13022 # Break only if it was the GNU/non-GNU ld that we prefer. 13023 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13024 *GNU* | *'with BFD'*) 13025 test "$with_gnu_ld" != no && break 13026 ;; 13027 *) 13028 test "$with_gnu_ld" != yes && break 13029 ;; 13030 esac 13031 fi 13032 done 13033 IFS="$lt_save_ifs" 13034else 13035 lt_cv_path_LD="$LD" # Let the user override the test with a path. 13036fi 13037fi 13038 13039LD="$lt_cv_path_LD" 13040if test -n "$LD"; then 13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13042$as_echo "$LD" >&6; } 13043else 13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13045$as_echo "no" >&6; } 13046fi 13047test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13049$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13050if ${lt_cv_prog_gnu_ld+:} false; then : 13051 $as_echo_n "(cached) " >&6 13052else 13053 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13054case `$LD -v 2>&1 </dev/null` in 13055*GNU* | *'with BFD'*) 13056 lt_cv_prog_gnu_ld=yes 13057 ;; 13058*) 13059 lt_cv_prog_gnu_ld=no 13060 ;; 13061esac 13062fi 13063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13064$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13065with_gnu_ld=$lt_cv_prog_gnu_ld 13066 13067 13068 13069 13070 13071 13072 13073 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13074 # archiving commands below assume that GNU ld is being used. 13075 if test "$with_gnu_ld" = yes; then 13076 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13077 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' 13078 13079 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13080 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13081 13082 # If archive_cmds runs LD, not CC, wlarc should be empty 13083 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13084 # investigate it a little bit more. (MM) 13085 wlarc='${wl}' 13086 13087 # ancient GNU ld didn't support --whole-archive et. al. 13088 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13089 $GREP 'no-whole-archive' > /dev/null; then 13090 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13091 else 13092 whole_archive_flag_spec_CXX= 13093 fi 13094 else 13095 with_gnu_ld=no 13096 wlarc= 13097 13098 # A generic and very simple default shared library creation 13099 # command for GNU C++ for the case where it uses the native 13100 # linker, instead of GNU ld. If possible, this setting should 13101 # overridden to take advantage of the native linker features on 13102 # the platform it is being used on. 13103 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13104 fi 13105 13106 # Commands to make compiler produce verbose output that lists 13107 # what "hidden" libraries, object files and flags are used when 13108 # linking a shared library. 13109 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13110 13111 else 13112 GXX=no 13113 with_gnu_ld=no 13114 wlarc= 13115 fi 13116 13117 # PORTME: fill in a description of your system's C++ link characteristics 13118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13119$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13120 ld_shlibs_CXX=yes 13121 case $host_os in 13122 aix3*) 13123 # FIXME: insert proper C++ library support 13124 ld_shlibs_CXX=no 13125 ;; 13126 aix[4-9]*) 13127 if test "$host_cpu" = ia64; then 13128 # On IA64, the linker does run time linking by default, so we don't 13129 # have to do anything special. 13130 aix_use_runtimelinking=no 13131 exp_sym_flag='-Bexport' 13132 no_entry_flag="" 13133 else 13134 aix_use_runtimelinking=no 13135 13136 # Test if we are trying to use run time linking or normal 13137 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13138 # need to do runtime linking. 13139 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13140 for ld_flag in $LDFLAGS; do 13141 case $ld_flag in 13142 *-brtl*) 13143 aix_use_runtimelinking=yes 13144 break 13145 ;; 13146 esac 13147 done 13148 ;; 13149 esac 13150 13151 exp_sym_flag='-bexport' 13152 no_entry_flag='-bnoentry' 13153 fi 13154 13155 # When large executables or shared objects are built, AIX ld can 13156 # have problems creating the table of contents. If linking a library 13157 # or program results in "error TOC overflow" add -mminimal-toc to 13158 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13159 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13160 13161 archive_cmds_CXX='' 13162 hardcode_direct_CXX=yes 13163 hardcode_direct_absolute_CXX=yes 13164 hardcode_libdir_separator_CXX=':' 13165 link_all_deplibs_CXX=yes 13166 file_list_spec_CXX='${wl}-f,' 13167 13168 if test "$GXX" = yes; then 13169 case $host_os in aix4.[012]|aix4.[012].*) 13170 # We only want to do this on AIX 4.2 and lower, the check 13171 # below for broken collect2 doesn't work under 4.3+ 13172 collect2name=`${CC} -print-prog-name=collect2` 13173 if test -f "$collect2name" && 13174 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13175 then 13176 # We have reworked collect2 13177 : 13178 else 13179 # We have old collect2 13180 hardcode_direct_CXX=unsupported 13181 # It fails to find uninstalled libraries when the uninstalled 13182 # path is not listed in the libpath. Setting hardcode_minus_L 13183 # to unsupported forces relinking 13184 hardcode_minus_L_CXX=yes 13185 hardcode_libdir_flag_spec_CXX='-L$libdir' 13186 hardcode_libdir_separator_CXX= 13187 fi 13188 esac 13189 shared_flag='-shared' 13190 if test "$aix_use_runtimelinking" = yes; then 13191 shared_flag="$shared_flag "'${wl}-G' 13192 fi 13193 else 13194 # not using gcc 13195 if test "$host_cpu" = ia64; then 13196 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13197 # chokes on -Wl,-G. The following line is correct: 13198 shared_flag='-G' 13199 else 13200 if test "$aix_use_runtimelinking" = yes; then 13201 shared_flag='${wl}-G' 13202 else 13203 shared_flag='${wl}-bM:SRE' 13204 fi 13205 fi 13206 fi 13207 13208 export_dynamic_flag_spec_CXX='${wl}-bexpall' 13209 # It seems that -bexpall does not export symbols beginning with 13210 # underscore (_), so it is better to generate a list of symbols to 13211 # export. 13212 always_export_symbols_CXX=yes 13213 if test "$aix_use_runtimelinking" = yes; then 13214 # Warning - without using the other runtime loading flags (-brtl), 13215 # -berok will link without error, but may produce a broken library. 13216 allow_undefined_flag_CXX='-berok' 13217 # Determine the default libpath from the value encoded in an empty 13218 # executable. 13219 if test "${lt_cv_aix_libpath+set}" = set; then 13220 aix_libpath=$lt_cv_aix_libpath 13221else 13222 if ${lt_cv_aix_libpath__CXX+:} false; then : 13223 $as_echo_n "(cached) " >&6 13224else 13225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13226/* end confdefs.h. */ 13227 13228int 13229main () 13230{ 13231 13232 ; 13233 return 0; 13234} 13235_ACEOF 13236if ac_fn_cxx_try_link "$LINENO"; then : 13237 13238 lt_aix_libpath_sed=' 13239 /Import File Strings/,/^$/ { 13240 /^0/ { 13241 s/^0 *\([^ ]*\) *$/\1/ 13242 p 13243 } 13244 }' 13245 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13246 # Check for a 64-bit object if we didn't find anything. 13247 if test -z "$lt_cv_aix_libpath__CXX"; then 13248 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13249 fi 13250fi 13251rm -f core conftest.err conftest.$ac_objext \ 13252 conftest$ac_exeext conftest.$ac_ext 13253 if test -z "$lt_cv_aix_libpath__CXX"; then 13254 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 13255 fi 13256 13257fi 13258 13259 aix_libpath=$lt_cv_aix_libpath__CXX 13260fi 13261 13262 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13263 13264 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 13265 else 13266 if test "$host_cpu" = ia64; then 13267 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 13268 allow_undefined_flag_CXX="-z nodefs" 13269 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" 13270 else 13271 # Determine the default libpath from the value encoded in an 13272 # empty executable. 13273 if test "${lt_cv_aix_libpath+set}" = set; then 13274 aix_libpath=$lt_cv_aix_libpath 13275else 13276 if ${lt_cv_aix_libpath__CXX+:} false; then : 13277 $as_echo_n "(cached) " >&6 13278else 13279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13280/* end confdefs.h. */ 13281 13282int 13283main () 13284{ 13285 13286 ; 13287 return 0; 13288} 13289_ACEOF 13290if ac_fn_cxx_try_link "$LINENO"; then : 13291 13292 lt_aix_libpath_sed=' 13293 /Import File Strings/,/^$/ { 13294 /^0/ { 13295 s/^0 *\([^ ]*\) *$/\1/ 13296 p 13297 } 13298 }' 13299 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13300 # Check for a 64-bit object if we didn't find anything. 13301 if test -z "$lt_cv_aix_libpath__CXX"; then 13302 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13303 fi 13304fi 13305rm -f core conftest.err conftest.$ac_objext \ 13306 conftest$ac_exeext conftest.$ac_ext 13307 if test -z "$lt_cv_aix_libpath__CXX"; then 13308 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 13309 fi 13310 13311fi 13312 13313 aix_libpath=$lt_cv_aix_libpath__CXX 13314fi 13315 13316 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13317 # Warning - without using the other run time loading flags, 13318 # -berok will link without error, but may produce a broken library. 13319 no_undefined_flag_CXX=' ${wl}-bernotok' 13320 allow_undefined_flag_CXX=' ${wl}-berok' 13321 if test "$with_gnu_ld" = yes; then 13322 # We only use this code for GNU lds that support --whole-archive. 13323 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13324 else 13325 # Exported symbols can be pulled into shared objects from archives 13326 whole_archive_flag_spec_CXX='$convenience' 13327 fi 13328 archive_cmds_need_lc_CXX=yes 13329 # This is similar to how AIX traditionally builds its shared 13330 # libraries. 13331 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 13332 fi 13333 fi 13334 ;; 13335 13336 beos*) 13337 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13338 allow_undefined_flag_CXX=unsupported 13339 # Joseph Beckenbach <[email protected]> says some releases of gcc 13340 # support --undefined. This deserves some investigation. FIXME 13341 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13342 else 13343 ld_shlibs_CXX=no 13344 fi 13345 ;; 13346 13347 chorus*) 13348 case $cc_basename in 13349 *) 13350 # FIXME: insert proper C++ library support 13351 ld_shlibs_CXX=no 13352 ;; 13353 esac 13354 ;; 13355 13356 cygwin* | mingw* | pw32* | cegcc*) 13357 case $GXX,$cc_basename in 13358 ,cl* | no,cl*) 13359 # Native MSVC 13360 # hardcode_libdir_flag_spec is actually meaningless, as there is 13361 # no search path for DLLs. 13362 hardcode_libdir_flag_spec_CXX=' ' 13363 allow_undefined_flag_CXX=unsupported 13364 always_export_symbols_CXX=yes 13365 file_list_spec_CXX='@' 13366 # Tell ltmain to make .lib files, not .a files. 13367 libext=lib 13368 # Tell ltmain to make .dll files, not .so files. 13369 shrext_cmds=".dll" 13370 # FIXME: Setting linknames here is a bad hack. 13371 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 13372 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13373 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 13374 else 13375 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 13376 fi~ 13377 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13378 linknames=' 13379 # The linker will not automatically build a static lib if we build a DLL. 13380 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 13381 enable_shared_with_static_runtimes_CXX=yes 13382 # Don't use ranlib 13383 old_postinstall_cmds_CXX='chmod 644 $oldlib' 13384 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 13385 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13386 case $lt_outputfile in 13387 *.exe|*.EXE) ;; 13388 *) 13389 lt_outputfile="$lt_outputfile.exe" 13390 lt_tool_outputfile="$lt_tool_outputfile.exe" 13391 ;; 13392 esac~ 13393 func_to_tool_file "$lt_outputfile"~ 13394 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 13395 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13396 $RM "$lt_outputfile.manifest"; 13397 fi' 13398 ;; 13399 *) 13400 # g++ 13401 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13402 # as there is no search path for DLLs. 13403 hardcode_libdir_flag_spec_CXX='-L$libdir' 13404 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 13405 allow_undefined_flag_CXX=unsupported 13406 always_export_symbols_CXX=no 13407 enable_shared_with_static_runtimes_CXX=yes 13408 13409 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13410 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' 13411 # If the export-symbols file already is a .def file (1st line 13412 # is EXPORTS), use it as is; otherwise, prepend... 13413 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13414 cp $export_symbols $output_objdir/$soname.def; 13415 else 13416 echo EXPORTS > $output_objdir/$soname.def; 13417 cat $export_symbols >> $output_objdir/$soname.def; 13418 fi~ 13419 $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' 13420 else 13421 ld_shlibs_CXX=no 13422 fi 13423 ;; 13424 esac 13425 ;; 13426 darwin* | rhapsody*) 13427 13428 13429 archive_cmds_need_lc_CXX=no 13430 hardcode_direct_CXX=no 13431 hardcode_automatic_CXX=yes 13432 hardcode_shlibpath_var_CXX=unsupported 13433 if test "$lt_cv_ld_force_load" = "yes"; then 13434 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\"`' 13435 else 13436 whole_archive_flag_spec_CXX='' 13437 fi 13438 link_all_deplibs_CXX=yes 13439 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 13440 case $cc_basename in 13441 ifort*) _lt_dar_can_shared=yes ;; 13442 *) _lt_dar_can_shared=$GCC ;; 13443 esac 13444 if test "$_lt_dar_can_shared" = "yes"; then 13445 output_verbose_link_cmd=func_echo_all 13446 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}" 13447 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 13448 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}" 13449 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}" 13450 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 13451 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}" 13452 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}" 13453 fi 13454 13455 else 13456 ld_shlibs_CXX=no 13457 fi 13458 13459 ;; 13460 13461 dgux*) 13462 case $cc_basename in 13463 ec++*) 13464 # FIXME: insert proper C++ library support 13465 ld_shlibs_CXX=no 13466 ;; 13467 ghcx*) 13468 # Green Hills C++ Compiler 13469 # FIXME: insert proper C++ library support 13470 ld_shlibs_CXX=no 13471 ;; 13472 *) 13473 # FIXME: insert proper C++ library support 13474 ld_shlibs_CXX=no 13475 ;; 13476 esac 13477 ;; 13478 13479 freebsd[12]*) 13480 # C++ shared libraries reported to be fairly broken before 13481 # switch to ELF 13482 ld_shlibs_CXX=no 13483 ;; 13484 13485 freebsd-elf*) 13486 archive_cmds_need_lc_CXX=no 13487 ;; 13488 13489 freebsd* | dragonfly*) 13490 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13491 # conventions 13492 ld_shlibs_CXX=yes 13493 ;; 13494 13495 gnu*) 13496 ;; 13497 13498 haiku*) 13499 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13500 link_all_deplibs_CXX=yes 13501 ;; 13502 13503 hpux9*) 13504 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13505 hardcode_libdir_separator_CXX=: 13506 export_dynamic_flag_spec_CXX='${wl}-E' 13507 hardcode_direct_CXX=yes 13508 hardcode_minus_L_CXX=yes # Not in the search PATH, 13509 # but as the default 13510 # location of the library. 13511 13512 case $cc_basename in 13513 CC*) 13514 # FIXME: insert proper C++ library support 13515 ld_shlibs_CXX=no 13516 ;; 13517 aCC*) 13518 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13519 # Commands to make compiler produce verbose output that lists 13520 # what "hidden" libraries, object files and flags are used when 13521 # linking a shared library. 13522 # 13523 # There doesn't appear to be a way to prevent this compiler from 13524 # explicitly linking system object files so we need to strip them 13525 # from the output so that they don't get included in the library 13526 # dependencies. 13527 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"' 13528 ;; 13529 *) 13530 if test "$GXX" = yes; then 13531 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13532 else 13533 # FIXME: insert proper C++ library support 13534 ld_shlibs_CXX=no 13535 fi 13536 ;; 13537 esac 13538 ;; 13539 13540 hpux10*|hpux11*) 13541 if test $with_gnu_ld = no; then 13542 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13543 hardcode_libdir_separator_CXX=: 13544 13545 case $host_cpu in 13546 hppa*64*|ia64*) 13547 ;; 13548 *) 13549 export_dynamic_flag_spec_CXX='${wl}-E' 13550 ;; 13551 esac 13552 fi 13553 case $host_cpu in 13554 hppa*64*|ia64*) 13555 hardcode_direct_CXX=no 13556 hardcode_shlibpath_var_CXX=no 13557 ;; 13558 *) 13559 hardcode_direct_CXX=yes 13560 hardcode_direct_absolute_CXX=yes 13561 hardcode_minus_L_CXX=yes # Not in the search PATH, 13562 # but as the default 13563 # location of the library. 13564 ;; 13565 esac 13566 13567 case $cc_basename in 13568 CC*) 13569 # FIXME: insert proper C++ library support 13570 ld_shlibs_CXX=no 13571 ;; 13572 aCC*) 13573 case $host_cpu in 13574 hppa*64*) 13575 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13576 ;; 13577 ia64*) 13578 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13579 ;; 13580 *) 13581 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13582 ;; 13583 esac 13584 # Commands to make compiler produce verbose output that lists 13585 # what "hidden" libraries, object files and flags are used when 13586 # linking a shared library. 13587 # 13588 # There doesn't appear to be a way to prevent this compiler from 13589 # explicitly linking system object files so we need to strip them 13590 # from the output so that they don't get included in the library 13591 # dependencies. 13592 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"' 13593 ;; 13594 *) 13595 if test "$GXX" = yes; then 13596 if test $with_gnu_ld = no; then 13597 case $host_cpu in 13598 hppa*64*) 13599 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13600 ;; 13601 ia64*) 13602 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13603 ;; 13604 *) 13605 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' 13606 ;; 13607 esac 13608 fi 13609 else 13610 # FIXME: insert proper C++ library support 13611 ld_shlibs_CXX=no 13612 fi 13613 ;; 13614 esac 13615 ;; 13616 13617 interix[3-9]*) 13618 hardcode_direct_CXX=no 13619 hardcode_shlibpath_var_CXX=no 13620 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13621 export_dynamic_flag_spec_CXX='${wl}-E' 13622 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13623 # Instead, shared libraries are loaded at an image base (0x10000000 by 13624 # default) and relocated if they conflict, which is a slow very memory 13625 # consuming and fragmenting process. To avoid this, we pick a random, 13626 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13627 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13628 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' 13629 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' 13630 ;; 13631 irix5* | irix6*) 13632 case $cc_basename in 13633 CC*) 13634 # SGI C++ 13635 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' 13636 13637 # Archives containing C++ object files must be created using 13638 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13639 # necessary to make sure instantiated templates are included 13640 # in the archive. 13641 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13642 ;; 13643 *) 13644 if test "$GXX" = yes; then 13645 if test "$with_gnu_ld" = no; then 13646 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' 13647 else 13648 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' 13649 fi 13650 fi 13651 link_all_deplibs_CXX=yes 13652 ;; 13653 esac 13654 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13655 hardcode_libdir_separator_CXX=: 13656 inherit_rpath_CXX=yes 13657 ;; 13658 13659 linux* | k*bsd*-gnu | kopensolaris*-gnu) 13660 case $cc_basename in 13661 KCC*) 13662 # Kuck and Associates, Inc. (KAI) C++ Compiler 13663 13664 # KCC will only create a shared library if the output file 13665 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13666 # to its proper name (with version) after linking. 13667 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' 13668 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' 13669 # Commands to make compiler produce verbose output that lists 13670 # what "hidden" libraries, object files and flags are used when 13671 # linking a shared library. 13672 # 13673 # There doesn't appear to be a way to prevent this compiler from 13674 # explicitly linking system object files so we need to strip them 13675 # from the output so that they don't get included in the library 13676 # dependencies. 13677 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"' 13678 13679 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13680 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13681 13682 # Archives containing C++ object files must be created using 13683 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13684 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13685 ;; 13686 icpc* | ecpc* ) 13687 # Intel C++ 13688 with_gnu_ld=yes 13689 # version 8.0 and above of icpc choke on multiply defined symbols 13690 # if we add $predep_objects and $postdep_objects, however 7.1 and 13691 # earlier do not add the objects themselves. 13692 case `$CC -V 2>&1` in 13693 *"Version 7."*) 13694 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13695 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' 13696 ;; 13697 *) # Version 8.0 or newer 13698 tmp_idyn= 13699 case $host_cpu in 13700 ia64*) tmp_idyn=' -i_dynamic';; 13701 esac 13702 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13703 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' 13704 ;; 13705 esac 13706 archive_cmds_need_lc_CXX=no 13707 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13708 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13709 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13710 ;; 13711 pgCC* | pgcpp*) 13712 # Portland Group C++ compiler 13713 case `$CC -V` in 13714 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 13715 prelink_cmds_CXX='tpldir=Template.dir~ 13716 rm -rf $tpldir~ 13717 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13718 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 13719 old_archive_cmds_CXX='tpldir=Template.dir~ 13720 rm -rf $tpldir~ 13721 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13722 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 13723 $RANLIB $oldlib' 13724 archive_cmds_CXX='tpldir=Template.dir~ 13725 rm -rf $tpldir~ 13726 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13727 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13728 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13729 rm -rf $tpldir~ 13730 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13731 $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' 13732 ;; 13733 *) # Version 6 and above use weak symbols 13734 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13735 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' 13736 ;; 13737 esac 13738 13739 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 13740 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13741 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' 13742 ;; 13743 cxx*) 13744 # Compaq C++ 13745 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13746 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' 13747 13748 runpath_var=LD_RUN_PATH 13749 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13750 hardcode_libdir_separator_CXX=: 13751 13752 # Commands to make compiler produce verbose output that lists 13753 # what "hidden" libraries, object files and flags are used when 13754 # linking a shared library. 13755 # 13756 # There doesn't appear to be a way to prevent this compiler from 13757 # explicitly linking system object files so we need to strip them 13758 # from the output so that they don't get included in the library 13759 # dependencies. 13760 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' 13761 ;; 13762 xl* | mpixl* | bgxl*) 13763 # IBM XL 8.0 on PPC, with GNU ld 13764 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13765 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13766 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13767 if test "x$supports_anon_versioning" = xyes; then 13768 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13769 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13770 echo "local: *; };" >> $output_objdir/$libname.ver~ 13771 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13772 fi 13773 ;; 13774 *) 13775 case `$CC -V 2>&1 | sed 5q` in 13776 *Sun\ C*) 13777 # Sun C++ 5.9 13778 no_undefined_flag_CXX=' -zdefs' 13779 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13780 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' 13781 hardcode_libdir_flag_spec_CXX='-R$libdir' 13782 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' 13783 compiler_needs_object_CXX=yes 13784 13785 # Not sure whether something based on 13786 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13787 # would be better. 13788 output_verbose_link_cmd='func_echo_all' 13789 13790 # Archives containing C++ object files must be created using 13791 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13792 # necessary to make sure instantiated templates are included 13793 # in the archive. 13794 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13795 ;; 13796 esac 13797 ;; 13798 esac 13799 ;; 13800 13801 lynxos*) 13802 # FIXME: insert proper C++ library support 13803 ld_shlibs_CXX=no 13804 ;; 13805 13806 m88k*) 13807 # FIXME: insert proper C++ library support 13808 ld_shlibs_CXX=no 13809 ;; 13810 13811 mvs*) 13812 case $cc_basename in 13813 cxx*) 13814 # FIXME: insert proper C++ library support 13815 ld_shlibs_CXX=no 13816 ;; 13817 *) 13818 # FIXME: insert proper C++ library support 13819 ld_shlibs_CXX=no 13820 ;; 13821 esac 13822 ;; 13823 13824 netbsd*) 13825 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13826 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13827 wlarc= 13828 hardcode_libdir_flag_spec_CXX='-R$libdir' 13829 hardcode_direct_CXX=yes 13830 hardcode_shlibpath_var_CXX=no 13831 fi 13832 # Workaround some broken pre-1.5 toolchains 13833 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13834 ;; 13835 13836 *nto* | *qnx*) 13837 ld_shlibs_CXX=yes 13838 ;; 13839 13840 openbsd2*) 13841 # C++ shared libraries are fairly broken 13842 ld_shlibs_CXX=no 13843 ;; 13844 13845 openbsd*) 13846 if test -f /usr/libexec/ld.so; then 13847 hardcode_direct_CXX=yes 13848 hardcode_shlibpath_var_CXX=no 13849 hardcode_direct_absolute_CXX=yes 13850 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13851 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13852 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13853 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 13854 export_dynamic_flag_spec_CXX='${wl}-E' 13855 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13856 fi 13857 output_verbose_link_cmd=func_echo_all 13858 else 13859 ld_shlibs_CXX=no 13860 fi 13861 ;; 13862 13863 osf3* | osf4* | osf5*) 13864 case $cc_basename in 13865 KCC*) 13866 # Kuck and Associates, Inc. (KAI) C++ Compiler 13867 13868 # KCC will only create a shared library if the output file 13869 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13870 # to its proper name (with version) after linking. 13871 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' 13872 13873 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13874 hardcode_libdir_separator_CXX=: 13875 13876 # Archives containing C++ object files must be created using 13877 # the KAI C++ compiler. 13878 case $host in 13879 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13880 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13881 esac 13882 ;; 13883 RCC*) 13884 # Rational C++ 2.4.1 13885 # FIXME: insert proper C++ library support 13886 ld_shlibs_CXX=no 13887 ;; 13888 cxx*) 13889 case $host in 13890 osf3*) 13891 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13892 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' 13893 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13894 ;; 13895 *) 13896 allow_undefined_flag_CXX=' -expect_unresolved \*' 13897 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' 13898 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13899 echo "-hidden">> $lib.exp~ 13900 $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~ 13901 $RM $lib.exp' 13902 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13903 ;; 13904 esac 13905 13906 hardcode_libdir_separator_CXX=: 13907 13908 # Commands to make compiler produce verbose output that lists 13909 # what "hidden" libraries, object files and flags are used when 13910 # linking a shared library. 13911 # 13912 # There doesn't appear to be a way to prevent this compiler from 13913 # explicitly linking system object files so we need to strip them 13914 # from the output so that they don't get included in the library 13915 # dependencies. 13916 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"' 13917 ;; 13918 *) 13919 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13920 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13921 case $host in 13922 osf3*) 13923 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' 13924 ;; 13925 *) 13926 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' 13927 ;; 13928 esac 13929 13930 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13931 hardcode_libdir_separator_CXX=: 13932 13933 # Commands to make compiler produce verbose output that lists 13934 # what "hidden" libraries, object files and flags are used when 13935 # linking a shared library. 13936 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13937 13938 else 13939 # FIXME: insert proper C++ library support 13940 ld_shlibs_CXX=no 13941 fi 13942 ;; 13943 esac 13944 ;; 13945 13946 psos*) 13947 # FIXME: insert proper C++ library support 13948 ld_shlibs_CXX=no 13949 ;; 13950 13951 sunos4*) 13952 case $cc_basename in 13953 CC*) 13954 # Sun C++ 4.x 13955 # FIXME: insert proper C++ library support 13956 ld_shlibs_CXX=no 13957 ;; 13958 lcc*) 13959 # Lucid 13960 # FIXME: insert proper C++ library support 13961 ld_shlibs_CXX=no 13962 ;; 13963 *) 13964 # FIXME: insert proper C++ library support 13965 ld_shlibs_CXX=no 13966 ;; 13967 esac 13968 ;; 13969 13970 solaris*) 13971 case $cc_basename in 13972 CC* | sunCC*) 13973 # Sun C++ 4.2, 5.x and Centerline C++ 13974 archive_cmds_need_lc_CXX=yes 13975 no_undefined_flag_CXX=' -zdefs' 13976 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13977 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13978 $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' 13979 13980 hardcode_libdir_flag_spec_CXX='-R$libdir' 13981 hardcode_shlibpath_var_CXX=no 13982 case $host_os in 13983 solaris2.[0-5] | solaris2.[0-5].*) ;; 13984 *) 13985 # The compiler driver will combine and reorder linker options, 13986 # but understands `-z linker_flag'. 13987 # Supported since Solaris 2.6 (maybe 2.5.1?) 13988 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13989 ;; 13990 esac 13991 link_all_deplibs_CXX=yes 13992 13993 output_verbose_link_cmd='func_echo_all' 13994 13995 # Archives containing C++ object files must be created using 13996 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13997 # necessary to make sure instantiated templates are included 13998 # in the archive. 13999 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14000 ;; 14001 gcx*) 14002 # Green Hills C++ Compiler 14003 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14004 14005 # The C++ compiler must be used to create the archive. 14006 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14007 ;; 14008 *) 14009 # GNU C++ compiler with Solaris linker 14010 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 14011 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 14012 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14013 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14014 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14015 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14016 14017 # Commands to make compiler produce verbose output that lists 14018 # what "hidden" libraries, object files and flags are used when 14019 # linking a shared library. 14020 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14021 else 14022 # g++ 2.7 appears to require `-G' NOT `-shared' on this 14023 # platform. 14024 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14025 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14026 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14027 14028 # Commands to make compiler produce verbose output that lists 14029 # what "hidden" libraries, object files and flags are used when 14030 # linking a shared library. 14031 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14032 fi 14033 14034 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 14035 case $host_os in 14036 solaris2.[0-5] | solaris2.[0-5].*) ;; 14037 *) 14038 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 14039 ;; 14040 esac 14041 fi 14042 ;; 14043 esac 14044 ;; 14045 14046 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14047 no_undefined_flag_CXX='${wl}-z,text' 14048 archive_cmds_need_lc_CXX=no 14049 hardcode_shlibpath_var_CXX=no 14050 runpath_var='LD_RUN_PATH' 14051 14052 case $cc_basename in 14053 CC*) 14054 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14055 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14056 ;; 14057 *) 14058 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14059 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14060 ;; 14061 esac 14062 ;; 14063 14064 sysv5* | sco3.2v5* | sco5v6*) 14065 # Note: We can NOT use -z defs as we might desire, because we do not 14066 # link with -lc, and that would cause any symbols used from libc to 14067 # always be unresolved, which means just about no library would 14068 # ever link correctly. If we're not using GNU ld we use -z text 14069 # though, which does catch some bad symbols but isn't as heavy-handed 14070 # as -z defs. 14071 no_undefined_flag_CXX='${wl}-z,text' 14072 allow_undefined_flag_CXX='${wl}-z,nodefs' 14073 archive_cmds_need_lc_CXX=no 14074 hardcode_shlibpath_var_CXX=no 14075 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 14076 hardcode_libdir_separator_CXX=':' 14077 link_all_deplibs_CXX=yes 14078 export_dynamic_flag_spec_CXX='${wl}-Bexport' 14079 runpath_var='LD_RUN_PATH' 14080 14081 case $cc_basename in 14082 CC*) 14083 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14084 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14085 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14086 '"$old_archive_cmds_CXX" 14087 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14088 '"$reload_cmds_CXX" 14089 ;; 14090 *) 14091 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14092 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14093 ;; 14094 esac 14095 ;; 14096 14097 tandem*) 14098 case $cc_basename in 14099 NCC*) 14100 # NonStop-UX NCC 3.20 14101 # FIXME: insert proper C++ library support 14102 ld_shlibs_CXX=no 14103 ;; 14104 *) 14105 # FIXME: insert proper C++ library support 14106 ld_shlibs_CXX=no 14107 ;; 14108 esac 14109 ;; 14110 14111 vxworks*) 14112 # FIXME: insert proper C++ library support 14113 ld_shlibs_CXX=no 14114 ;; 14115 14116 *) 14117 # FIXME: insert proper C++ library support 14118 ld_shlibs_CXX=no 14119 ;; 14120 esac 14121 14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14123$as_echo "$ld_shlibs_CXX" >&6; } 14124 test "$ld_shlibs_CXX" = no && can_build_shared=no 14125 14126 GCC_CXX="$GXX" 14127 LD_CXX="$LD" 14128 14129 ## CAVEAT EMPTOR: 14130 ## There is no encapsulation within the following macros, do not change 14131 ## the running order or otherwise move them around unless you know exactly 14132 ## what you are doing... 14133 # Dependencies to place before and after the object being linked: 14134predep_objects_CXX= 14135postdep_objects_CXX= 14136predeps_CXX= 14137postdeps_CXX= 14138compiler_lib_search_path_CXX= 14139 14140cat > conftest.$ac_ext <<_LT_EOF 14141class Foo 14142{ 14143public: 14144 Foo (void) { a = 0; } 14145private: 14146 int a; 14147}; 14148_LT_EOF 14149 14150 14151_lt_libdeps_save_CFLAGS=$CFLAGS 14152case "$CC $CFLAGS " in #( 14153*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14154*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14155esac 14156 14157if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14158 (eval $ac_compile) 2>&5 14159 ac_status=$? 14160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14161 test $ac_status = 0; }; then 14162 # Parse the compiler output and extract the necessary 14163 # objects, libraries and library flags. 14164 14165 # Sentinel used to keep track of whether or not we are before 14166 # the conftest object file. 14167 pre_test_object_deps_done=no 14168 14169 for p in `eval "$output_verbose_link_cmd"`; do 14170 case ${prev}${p} in 14171 14172 -L* | -R* | -l*) 14173 # Some compilers place space between "-{L,R}" and the path. 14174 # Remove the space. 14175 if test $p = "-L" || 14176 test $p = "-R"; then 14177 prev=$p 14178 continue 14179 fi 14180 14181 # Expand the sysroot to ease extracting the directories later. 14182 if test -z "$prev"; then 14183 case $p in 14184 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14185 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14186 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14187 esac 14188 fi 14189 case $p in 14190 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14191 esac 14192 if test "$pre_test_object_deps_done" = no; then 14193 case ${prev} in 14194 -L | -R) 14195 # Internal compiler library paths should come after those 14196 # provided the user. The postdeps already come after the 14197 # user supplied libs so there is no need to process them. 14198 if test -z "$compiler_lib_search_path_CXX"; then 14199 compiler_lib_search_path_CXX="${prev}${p}" 14200 else 14201 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 14202 fi 14203 ;; 14204 # The "-l" case would never come before the object being 14205 # linked, so don't bother handling this case. 14206 esac 14207 else 14208 if test -z "$postdeps_CXX"; then 14209 postdeps_CXX="${prev}${p}" 14210 else 14211 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 14212 fi 14213 fi 14214 prev= 14215 ;; 14216 14217 *.lto.$objext) ;; # Ignore GCC LTO objects 14218 *.$objext) 14219 # This assumes that the test object file only shows up 14220 # once in the compiler output. 14221 if test "$p" = "conftest.$objext"; then 14222 pre_test_object_deps_done=yes 14223 continue 14224 fi 14225 14226 if test "$pre_test_object_deps_done" = no; then 14227 if test -z "$predep_objects_CXX"; then 14228 predep_objects_CXX="$p" 14229 else 14230 predep_objects_CXX="$predep_objects_CXX $p" 14231 fi 14232 else 14233 if test -z "$postdep_objects_CXX"; then 14234 postdep_objects_CXX="$p" 14235 else 14236 postdep_objects_CXX="$postdep_objects_CXX $p" 14237 fi 14238 fi 14239 ;; 14240 14241 *) ;; # Ignore the rest. 14242 14243 esac 14244 done 14245 14246 # Clean up. 14247 rm -f a.out a.exe 14248else 14249 echo "libtool.m4: error: problem compiling CXX test program" 14250fi 14251 14252$RM -f confest.$objext 14253CFLAGS=$_lt_libdeps_save_CFLAGS 14254 14255# PORTME: override above test on systems where it is broken 14256case $host_os in 14257interix[3-9]*) 14258 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14259 # hack all around it, let's just trust "g++" to DTRT. 14260 predep_objects_CXX= 14261 postdep_objects_CXX= 14262 postdeps_CXX= 14263 ;; 14264 14265linux*) 14266 case `$CC -V 2>&1 | sed 5q` in 14267 *Sun\ C*) 14268 # Sun C++ 5.9 14269 14270 # The more standards-conforming stlport4 library is 14271 # incompatible with the Cstd library. Avoid specifying 14272 # it if it's in CXXFLAGS. Ignore libCrun as 14273 # -library=stlport4 depends on it. 14274 case " $CXX $CXXFLAGS " in 14275 *" -library=stlport4 "*) 14276 solaris_use_stlport4=yes 14277 ;; 14278 esac 14279 14280 if test "$solaris_use_stlport4" != yes; then 14281 postdeps_CXX='-library=Cstd -library=Crun' 14282 fi 14283 ;; 14284 esac 14285 ;; 14286 14287solaris*) 14288 case $cc_basename in 14289 CC* | sunCC*) 14290 # The more standards-conforming stlport4 library is 14291 # incompatible with the Cstd library. Avoid specifying 14292 # it if it's in CXXFLAGS. Ignore libCrun as 14293 # -library=stlport4 depends on it. 14294 case " $CXX $CXXFLAGS " in 14295 *" -library=stlport4 "*) 14296 solaris_use_stlport4=yes 14297 ;; 14298 esac 14299 14300 # Adding this requires a known-good setup of shared libraries for 14301 # Sun compiler versions before 5.6, else PIC objects from an old 14302 # archive will be linked into the output, leading to subtle bugs. 14303 if test "$solaris_use_stlport4" != yes; then 14304 postdeps_CXX='-library=Cstd -library=Crun' 14305 fi 14306 ;; 14307 esac 14308 ;; 14309esac 14310 14311 14312case " $postdeps_CXX " in 14313*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14314esac 14315 compiler_lib_search_dirs_CXX= 14316if test -n "${compiler_lib_search_path_CXX}"; then 14317 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 14318fi 14319 14320 14321 14322 14323 14324 14325 14326 14327 14328 14329 14330 14331 14332 14333 14334 14335 14336 14337 14338 14339 14340 14341 14342 14343 14344 14345 14346 14347 14348 14349 14350 lt_prog_compiler_wl_CXX= 14351lt_prog_compiler_pic_CXX= 14352lt_prog_compiler_static_CXX= 14353 14354 14355 # C++ specific cases for pic, static, wl, etc. 14356 if test "$GXX" = yes; then 14357 lt_prog_compiler_wl_CXX='-Wl,' 14358 lt_prog_compiler_static_CXX='-static' 14359 14360 case $host_os in 14361 aix*) 14362 # All AIX code is PIC. 14363 if test "$host_cpu" = ia64; then 14364 # AIX 5 now supports IA64 processor 14365 lt_prog_compiler_static_CXX='-Bstatic' 14366 fi 14367 ;; 14368 14369 amigaos*) 14370 case $host_cpu in 14371 powerpc) 14372 # see comment about AmigaOS4 .so support 14373 lt_prog_compiler_pic_CXX='-fPIC' 14374 ;; 14375 m68k) 14376 # FIXME: we need at least 68020 code to build shared libraries, but 14377 # adding the `-m68020' flag to GCC prevents building anything better, 14378 # like `-m68040'. 14379 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14380 ;; 14381 esac 14382 ;; 14383 14384 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14385 # PIC is the default for these OSes. 14386 ;; 14387 mingw* | cygwin* | os2* | pw32* | cegcc*) 14388 # This hack is so that the source file can tell whether it is being 14389 # built for inclusion in a dll (and should export symbols for example). 14390 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14391 # (--disable-auto-import) libraries 14392 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14393 ;; 14394 darwin* | rhapsody*) 14395 # PIC is the default on this platform 14396 # Common symbols not allowed in MH_DYLIB files 14397 lt_prog_compiler_pic_CXX='-fno-common' 14398 ;; 14399 *djgpp*) 14400 # DJGPP does not support shared libraries at all 14401 lt_prog_compiler_pic_CXX= 14402 ;; 14403 haiku*) 14404 # PIC is the default for Haiku. 14405 # The "-static" flag exists, but is broken. 14406 lt_prog_compiler_static_CXX= 14407 ;; 14408 interix[3-9]*) 14409 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14410 # Instead, we relocate shared libraries at runtime. 14411 ;; 14412 sysv4*MP*) 14413 if test -d /usr/nec; then 14414 lt_prog_compiler_pic_CXX=-Kconform_pic 14415 fi 14416 ;; 14417 hpux*) 14418 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14419 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14420 # sets the default TLS model and affects inlining. 14421 case $host_cpu in 14422 hppa*64*) 14423 ;; 14424 *) 14425 lt_prog_compiler_pic_CXX='-fPIC' 14426 ;; 14427 esac 14428 ;; 14429 *qnx* | *nto*) 14430 # QNX uses GNU C++, but need to define -shared option too, otherwise 14431 # it will coredump. 14432 lt_prog_compiler_pic_CXX='-fPIC -shared' 14433 ;; 14434 *) 14435 lt_prog_compiler_pic_CXX='-fPIC' 14436 ;; 14437 esac 14438 else 14439 case $host_os in 14440 aix[4-9]*) 14441 # All AIX code is PIC. 14442 if test "$host_cpu" = ia64; then 14443 # AIX 5 now supports IA64 processor 14444 lt_prog_compiler_static_CXX='-Bstatic' 14445 else 14446 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14447 fi 14448 ;; 14449 chorus*) 14450 case $cc_basename in 14451 cxch68*) 14452 # Green Hills C++ Compiler 14453 # _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" 14454 ;; 14455 esac 14456 ;; 14457 mingw* | cygwin* | os2* | pw32* | cegcc*) 14458 # This hack is so that the source file can tell whether it is being 14459 # built for inclusion in a dll (and should export symbols for example). 14460 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14461 ;; 14462 dgux*) 14463 case $cc_basename in 14464 ec++*) 14465 lt_prog_compiler_pic_CXX='-KPIC' 14466 ;; 14467 ghcx*) 14468 # Green Hills C++ Compiler 14469 lt_prog_compiler_pic_CXX='-pic' 14470 ;; 14471 *) 14472 ;; 14473 esac 14474 ;; 14475 freebsd* | dragonfly*) 14476 # FreeBSD uses GNU C++ 14477 ;; 14478 hpux9* | hpux10* | hpux11*) 14479 case $cc_basename in 14480 CC*) 14481 lt_prog_compiler_wl_CXX='-Wl,' 14482 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14483 if test "$host_cpu" != ia64; then 14484 lt_prog_compiler_pic_CXX='+Z' 14485 fi 14486 ;; 14487 aCC*) 14488 lt_prog_compiler_wl_CXX='-Wl,' 14489 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14490 case $host_cpu in 14491 hppa*64*|ia64*) 14492 # +Z the default 14493 ;; 14494 *) 14495 lt_prog_compiler_pic_CXX='+Z' 14496 ;; 14497 esac 14498 ;; 14499 *) 14500 ;; 14501 esac 14502 ;; 14503 interix*) 14504 # This is c89, which is MS Visual C++ (no shared libs) 14505 # Anyone wants to do a port? 14506 ;; 14507 irix5* | irix6* | nonstopux*) 14508 case $cc_basename in 14509 CC*) 14510 lt_prog_compiler_wl_CXX='-Wl,' 14511 lt_prog_compiler_static_CXX='-non_shared' 14512 # CC pic flag -KPIC is the default. 14513 ;; 14514 *) 14515 ;; 14516 esac 14517 ;; 14518 linux* | k*bsd*-gnu | kopensolaris*-gnu) 14519 case $cc_basename in 14520 KCC*) 14521 # KAI C++ Compiler 14522 lt_prog_compiler_wl_CXX='--backend -Wl,' 14523 lt_prog_compiler_pic_CXX='-fPIC' 14524 ;; 14525 ecpc* ) 14526 # old Intel C++ for x86_64 which still supported -KPIC. 14527 lt_prog_compiler_wl_CXX='-Wl,' 14528 lt_prog_compiler_pic_CXX='-KPIC' 14529 lt_prog_compiler_static_CXX='-static' 14530 ;; 14531 icpc* ) 14532 # Intel C++, used to be incompatible with GCC. 14533 # ICC 10 doesn't accept -KPIC any more. 14534 lt_prog_compiler_wl_CXX='-Wl,' 14535 lt_prog_compiler_pic_CXX='-fPIC' 14536 lt_prog_compiler_static_CXX='-static' 14537 ;; 14538 pgCC* | pgcpp*) 14539 # Portland Group C++ compiler 14540 lt_prog_compiler_wl_CXX='-Wl,' 14541 lt_prog_compiler_pic_CXX='-fpic' 14542 lt_prog_compiler_static_CXX='-Bstatic' 14543 ;; 14544 cxx*) 14545 # Compaq C++ 14546 # Make sure the PIC flag is empty. It appears that all Alpha 14547 # Linux and Compaq Tru64 Unix objects are PIC. 14548 lt_prog_compiler_pic_CXX= 14549 lt_prog_compiler_static_CXX='-non_shared' 14550 ;; 14551 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14552 # IBM XL 8.0, 9.0 on PPC and BlueGene 14553 lt_prog_compiler_wl_CXX='-Wl,' 14554 lt_prog_compiler_pic_CXX='-qpic' 14555 lt_prog_compiler_static_CXX='-qstaticlink' 14556 ;; 14557 *) 14558 case `$CC -V 2>&1 | sed 5q` in 14559 *Sun\ C*) 14560 # Sun C++ 5.9 14561 lt_prog_compiler_pic_CXX='-KPIC' 14562 lt_prog_compiler_static_CXX='-Bstatic' 14563 lt_prog_compiler_wl_CXX='-Qoption ld ' 14564 ;; 14565 esac 14566 ;; 14567 esac 14568 ;; 14569 lynxos*) 14570 ;; 14571 m88k*) 14572 ;; 14573 mvs*) 14574 case $cc_basename in 14575 cxx*) 14576 lt_prog_compiler_pic_CXX='-W c,exportall' 14577 ;; 14578 *) 14579 ;; 14580 esac 14581 ;; 14582 netbsd*) 14583 ;; 14584 *qnx* | *nto*) 14585 # QNX uses GNU C++, but need to define -shared option too, otherwise 14586 # it will coredump. 14587 lt_prog_compiler_pic_CXX='-fPIC -shared' 14588 ;; 14589 osf3* | osf4* | osf5*) 14590 case $cc_basename in 14591 KCC*) 14592 lt_prog_compiler_wl_CXX='--backend -Wl,' 14593 ;; 14594 RCC*) 14595 # Rational C++ 2.4.1 14596 lt_prog_compiler_pic_CXX='-pic' 14597 ;; 14598 cxx*) 14599 # Digital/Compaq C++ 14600 lt_prog_compiler_wl_CXX='-Wl,' 14601 # Make sure the PIC flag is empty. It appears that all Alpha 14602 # Linux and Compaq Tru64 Unix objects are PIC. 14603 lt_prog_compiler_pic_CXX= 14604 lt_prog_compiler_static_CXX='-non_shared' 14605 ;; 14606 *) 14607 ;; 14608 esac 14609 ;; 14610 psos*) 14611 ;; 14612 solaris*) 14613 case $cc_basename in 14614 CC* | sunCC*) 14615 # Sun C++ 4.2, 5.x and Centerline C++ 14616 lt_prog_compiler_pic_CXX='-KPIC' 14617 lt_prog_compiler_static_CXX='-Bstatic' 14618 lt_prog_compiler_wl_CXX='-Qoption ld ' 14619 ;; 14620 gcx*) 14621 # Green Hills C++ Compiler 14622 lt_prog_compiler_pic_CXX='-PIC' 14623 ;; 14624 *) 14625 ;; 14626 esac 14627 ;; 14628 sunos4*) 14629 case $cc_basename in 14630 CC*) 14631 # Sun C++ 4.x 14632 lt_prog_compiler_pic_CXX='-pic' 14633 lt_prog_compiler_static_CXX='-Bstatic' 14634 ;; 14635 lcc*) 14636 # Lucid 14637 lt_prog_compiler_pic_CXX='-pic' 14638 ;; 14639 *) 14640 ;; 14641 esac 14642 ;; 14643 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14644 case $cc_basename in 14645 CC*) 14646 lt_prog_compiler_wl_CXX='-Wl,' 14647 lt_prog_compiler_pic_CXX='-KPIC' 14648 lt_prog_compiler_static_CXX='-Bstatic' 14649 ;; 14650 esac 14651 ;; 14652 tandem*) 14653 case $cc_basename in 14654 NCC*) 14655 # NonStop-UX NCC 3.20 14656 lt_prog_compiler_pic_CXX='-KPIC' 14657 ;; 14658 *) 14659 ;; 14660 esac 14661 ;; 14662 vxworks*) 14663 ;; 14664 *) 14665 lt_prog_compiler_can_build_shared_CXX=no 14666 ;; 14667 esac 14668 fi 14669 14670case $host_os in 14671 # For platforms which do not support PIC, -DPIC is meaningless: 14672 *djgpp*) 14673 lt_prog_compiler_pic_CXX= 14674 ;; 14675 *) 14676 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14677 ;; 14678esac 14679 14680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14681$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14682if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 14683 $as_echo_n "(cached) " >&6 14684else 14685 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 14686fi 14687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 14688$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 14689lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 14690 14691# 14692# Check to make sure the PIC flag actually works. 14693# 14694if test -n "$lt_prog_compiler_pic_CXX"; then 14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14696$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14697if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 14698 $as_echo_n "(cached) " >&6 14699else 14700 lt_cv_prog_compiler_pic_works_CXX=no 14701 ac_outfile=conftest.$ac_objext 14702 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14703 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 14704 # Insert the option either (1) after the last *FLAGS variable, or 14705 # (2) before a word containing "conftest.", or (3) at the end. 14706 # Note that $ac_compile itself does not contain backslashes and begins 14707 # with a dollar sign (not a hyphen), so the echo should work correctly. 14708 # The option is referenced via a variable to avoid confusing sed. 14709 lt_compile=`echo "$ac_compile" | $SED \ 14710 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14711 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14712 -e 's:$: $lt_compiler_flag:'` 14713 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14714 (eval "$lt_compile" 2>conftest.err) 14715 ac_status=$? 14716 cat conftest.err >&5 14717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14718 if (exit $ac_status) && test -s "$ac_outfile"; then 14719 # The compiler can only warn and ignore the option if not recognized 14720 # So say no if there are warnings other than the usual output. 14721 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14722 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14723 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14724 lt_cv_prog_compiler_pic_works_CXX=yes 14725 fi 14726 fi 14727 $RM conftest* 14728 14729fi 14730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14731$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14732 14733if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 14734 case $lt_prog_compiler_pic_CXX in 14735 "" | " "*) ;; 14736 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14737 esac 14738else 14739 lt_prog_compiler_pic_CXX= 14740 lt_prog_compiler_can_build_shared_CXX=no 14741fi 14742 14743fi 14744 14745 14746 14747 14748 14749# 14750# Check to make sure the static flag actually works. 14751# 14752wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14754$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14755if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 14756 $as_echo_n "(cached) " >&6 14757else 14758 lt_cv_prog_compiler_static_works_CXX=no 14759 save_LDFLAGS="$LDFLAGS" 14760 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14761 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14762 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14763 # The linker can only warn and ignore the option if not recognized 14764 # So say no if there are warnings 14765 if test -s conftest.err; then 14766 # Append any errors to the config.log. 14767 cat conftest.err 1>&5 14768 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14769 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14770 if diff conftest.exp conftest.er2 >/dev/null; then 14771 lt_cv_prog_compiler_static_works_CXX=yes 14772 fi 14773 else 14774 lt_cv_prog_compiler_static_works_CXX=yes 14775 fi 14776 fi 14777 $RM -r conftest* 14778 LDFLAGS="$save_LDFLAGS" 14779 14780fi 14781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14782$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14783 14784if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 14785 : 14786else 14787 lt_prog_compiler_static_CXX= 14788fi 14789 14790 14791 14792 14793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14794$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14795if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14796 $as_echo_n "(cached) " >&6 14797else 14798 lt_cv_prog_compiler_c_o_CXX=no 14799 $RM -r conftest 2>/dev/null 14800 mkdir conftest 14801 cd conftest 14802 mkdir out 14803 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14804 14805 lt_compiler_flag="-o out/conftest2.$ac_objext" 14806 # Insert the option either (1) after the last *FLAGS variable, or 14807 # (2) before a word containing "conftest.", or (3) at the end. 14808 # Note that $ac_compile itself does not contain backslashes and begins 14809 # with a dollar sign (not a hyphen), so the echo should work correctly. 14810 lt_compile=`echo "$ac_compile" | $SED \ 14811 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14812 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14813 -e 's:$: $lt_compiler_flag:'` 14814 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14815 (eval "$lt_compile" 2>out/conftest.err) 14816 ac_status=$? 14817 cat out/conftest.err >&5 14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14819 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14820 then 14821 # The compiler can only warn and ignore the option if not recognized 14822 # So say no if there are warnings 14823 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14824 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14825 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14826 lt_cv_prog_compiler_c_o_CXX=yes 14827 fi 14828 fi 14829 chmod u+w . 2>&5 14830 $RM conftest* 14831 # SGI C++ compiler will create directory out/ii_files/ for 14832 # template instantiation 14833 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14834 $RM out/* && rmdir out 14835 cd .. 14836 $RM -r conftest 14837 $RM conftest* 14838 14839fi 14840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14841$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14842 14843 14844 14845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14846$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14847if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14848 $as_echo_n "(cached) " >&6 14849else 14850 lt_cv_prog_compiler_c_o_CXX=no 14851 $RM -r conftest 2>/dev/null 14852 mkdir conftest 14853 cd conftest 14854 mkdir out 14855 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14856 14857 lt_compiler_flag="-o out/conftest2.$ac_objext" 14858 # Insert the option either (1) after the last *FLAGS variable, or 14859 # (2) before a word containing "conftest.", or (3) at the end. 14860 # Note that $ac_compile itself does not contain backslashes and begins 14861 # with a dollar sign (not a hyphen), so the echo should work correctly. 14862 lt_compile=`echo "$ac_compile" | $SED \ 14863 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14864 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14865 -e 's:$: $lt_compiler_flag:'` 14866 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14867 (eval "$lt_compile" 2>out/conftest.err) 14868 ac_status=$? 14869 cat out/conftest.err >&5 14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14871 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14872 then 14873 # The compiler can only warn and ignore the option if not recognized 14874 # So say no if there are warnings 14875 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14876 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14877 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14878 lt_cv_prog_compiler_c_o_CXX=yes 14879 fi 14880 fi 14881 chmod u+w . 2>&5 14882 $RM conftest* 14883 # SGI C++ compiler will create directory out/ii_files/ for 14884 # template instantiation 14885 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14886 $RM out/* && rmdir out 14887 cd .. 14888 $RM -r conftest 14889 $RM conftest* 14890 14891fi 14892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14893$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14894 14895 14896 14897 14898hard_links="nottested" 14899if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14900 # do not overwrite the value of need_locks provided by the user 14901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14902$as_echo_n "checking if we can lock with hard links... " >&6; } 14903 hard_links=yes 14904 $RM conftest* 14905 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14906 touch conftest.a 14907 ln conftest.a conftest.b 2>&5 || hard_links=no 14908 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14910$as_echo "$hard_links" >&6; } 14911 if test "$hard_links" = no; then 14912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14913$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14914 need_locks=warn 14915 fi 14916else 14917 need_locks=no 14918fi 14919 14920 14921 14922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14923$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14924 14925 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14926 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14927 case $host_os in 14928 aix[4-9]*) 14929 # If we're using GNU nm, then we don't want the "-C" option. 14930 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14931 # Also, AIX nm treats weak defined symbols like other global defined 14932 # symbols, whereas GNU nm marks them as "W". 14933 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14934 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14935 else 14936 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14937 fi 14938 ;; 14939 pw32*) 14940 export_symbols_cmds_CXX="$ltdll_cmds" 14941 ;; 14942 cygwin* | mingw* | cegcc*) 14943 case $cc_basename in 14944 cl*) ;; 14945 *) 14946 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' 14947 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14948 ;; 14949 esac 14950 ;; 14951 *) 14952 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14953 ;; 14954 esac 14955 14956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14957$as_echo "$ld_shlibs_CXX" >&6; } 14958test "$ld_shlibs_CXX" = no && can_build_shared=no 14959 14960with_gnu_ld_CXX=$with_gnu_ld 14961 14962 14963 14964 14965 14966 14967# 14968# Do we need to explicitly link libc? 14969# 14970case "x$archive_cmds_need_lc_CXX" in 14971x|xyes) 14972 # Assume -lc should be added 14973 archive_cmds_need_lc_CXX=yes 14974 14975 if test "$enable_shared" = yes && test "$GCC" = yes; then 14976 case $archive_cmds_CXX in 14977 *'~'*) 14978 # FIXME: we may have to deal with multi-command sequences. 14979 ;; 14980 '$CC '*) 14981 # Test whether the compiler implicitly links with -lc since on some 14982 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14983 # to ld, don't add -lc before -lgcc. 14984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14985$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14986if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 14987 $as_echo_n "(cached) " >&6 14988else 14989 $RM conftest* 14990 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14991 14992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14993 (eval $ac_compile) 2>&5 14994 ac_status=$? 14995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14996 test $ac_status = 0; } 2>conftest.err; then 14997 soname=conftest 14998 lib=conftest 14999 libobjs=conftest.$ac_objext 15000 deplibs= 15001 wl=$lt_prog_compiler_wl_CXX 15002 pic_flag=$lt_prog_compiler_pic_CXX 15003 compiler_flags=-v 15004 linker_flags=-v 15005 verstring= 15006 output_objdir=. 15007 libname=conftest 15008 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15009 allow_undefined_flag_CXX= 15010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15011 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15012 ac_status=$? 15013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15014 test $ac_status = 0; } 15015 then 15016 lt_cv_archive_cmds_need_lc_CXX=no 15017 else 15018 lt_cv_archive_cmds_need_lc_CXX=yes 15019 fi 15020 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15021 else 15022 cat conftest.err 1>&5 15023 fi 15024 $RM conftest* 15025 15026fi 15027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 15028$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 15029 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 15030 ;; 15031 esac 15032 fi 15033 ;; 15034esac 15035 15036 15037 15038 15039 15040 15041 15042 15043 15044 15045 15046 15047 15048 15049 15050 15051 15052 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 15066 15067 15068 15069 15070 15071 15072 15073 15074 15075 15076 15077 15078 15079 15080 15081 15082 15083 15084 15085 15086 15087 15088 15089 15090 15091 15092 15093 15094 15095 15096 15097 15098 15099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15100$as_echo_n "checking dynamic linker characteristics... " >&6; } 15101 15102library_names_spec= 15103libname_spec='lib$name' 15104soname_spec= 15105shrext_cmds=".so" 15106postinstall_cmds= 15107postuninstall_cmds= 15108finish_cmds= 15109finish_eval= 15110shlibpath_var= 15111shlibpath_overrides_runpath=unknown 15112version_type=none 15113dynamic_linker="$host_os ld.so" 15114sys_lib_dlsearch_path_spec="/lib /usr/lib" 15115need_lib_prefix=unknown 15116hardcode_into_libs=no 15117 15118# when you set need_version to no, make sure it does not cause -set_version 15119# flags to be left without arguments 15120need_version=unknown 15121 15122case $host_os in 15123aix3*) 15124 version_type=linux 15125 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15126 shlibpath_var=LIBPATH 15127 15128 # AIX 3 has no versioning support, so we append a major version to the name. 15129 soname_spec='${libname}${release}${shared_ext}$major' 15130 ;; 15131 15132aix[4-9]*) 15133 version_type=linux 15134 need_lib_prefix=no 15135 need_version=no 15136 hardcode_into_libs=yes 15137 if test "$host_cpu" = ia64; then 15138 # AIX 5 supports IA64 15139 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15140 shlibpath_var=LD_LIBRARY_PATH 15141 else 15142 # With GCC up to 2.95.x, collect2 would create an import file 15143 # for dependence libraries. The import file would start with 15144 # the line `#! .'. This would cause the generated library to 15145 # depend on `.', always an invalid library. This was fixed in 15146 # development snapshots of GCC prior to 3.0. 15147 case $host_os in 15148 aix4 | aix4.[01] | aix4.[01].*) 15149 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15150 echo ' yes ' 15151 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 15152 : 15153 else 15154 can_build_shared=no 15155 fi 15156 ;; 15157 esac 15158 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15159 # soname into executable. Probably we can add versioning support to 15160 # collect2, so additional links can be useful in future. 15161 if test "$aix_use_runtimelinking" = yes; then 15162 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15163 # instead of lib<name>.a to let people know that these are not 15164 # typical AIX shared libraries. 15165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15166 else 15167 # We preserve .a as extension for shared libraries through AIX4.2 15168 # and later when we are not doing run time linking. 15169 library_names_spec='${libname}${release}.a $libname.a' 15170 soname_spec='${libname}${release}${shared_ext}$major' 15171 fi 15172 shlibpath_var=LIBPATH 15173 fi 15174 ;; 15175 15176amigaos*) 15177 case $host_cpu in 15178 powerpc) 15179 # Since July 2007 AmigaOS4 officially supports .so libraries. 15180 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15182 ;; 15183 m68k) 15184 library_names_spec='$libname.ixlibrary $libname.a' 15185 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15186 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' 15187 ;; 15188 esac 15189 ;; 15190 15191beos*) 15192 library_names_spec='${libname}${shared_ext}' 15193 dynamic_linker="$host_os ld.so" 15194 shlibpath_var=LIBRARY_PATH 15195 ;; 15196 15197bsdi[45]*) 15198 version_type=linux 15199 need_version=no 15200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15201 soname_spec='${libname}${release}${shared_ext}$major' 15202 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15203 shlibpath_var=LD_LIBRARY_PATH 15204 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15205 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15206 # the default ld.so.conf also contains /usr/contrib/lib and 15207 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15208 # libtool to hard-code these into programs 15209 ;; 15210 15211cygwin* | mingw* | pw32* | cegcc*) 15212 version_type=windows 15213 shrext_cmds=".dll" 15214 need_version=no 15215 need_lib_prefix=no 15216 15217 case $GCC,$cc_basename in 15218 yes,*) 15219 # gcc 15220 library_names_spec='$libname.dll.a' 15221 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15222 postinstall_cmds='base_file=`basename \${file}`~ 15223 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15224 dldir=$destdir/`dirname \$dlpath`~ 15225 test -d \$dldir || mkdir -p \$dldir~ 15226 $install_prog $dir/$dlname \$dldir/$dlname~ 15227 chmod a+x \$dldir/$dlname~ 15228 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15229 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15230 fi' 15231 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15232 dlpath=$dir/\$dldll~ 15233 $RM \$dlpath' 15234 shlibpath_overrides_runpath=yes 15235 15236 case $host_os in 15237 cygwin*) 15238 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15239 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15240 15241 ;; 15242 mingw* | cegcc*) 15243 # MinGW DLLs use traditional 'lib' prefix 15244 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15245 ;; 15246 pw32*) 15247 # pw32 DLLs use 'pw' prefix rather than 'lib' 15248 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15249 ;; 15250 esac 15251 dynamic_linker='Win32 ld.exe' 15252 ;; 15253 15254 *,cl*) 15255 # Native MSVC 15256 libname_spec='$name' 15257 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15258 library_names_spec='${libname}.dll.lib' 15259 15260 case $build_os in 15261 mingw*) 15262 sys_lib_search_path_spec= 15263 lt_save_ifs=$IFS 15264 IFS=';' 15265 for lt_path in $LIB 15266 do 15267 IFS=$lt_save_ifs 15268 # Let DOS variable expansion print the short 8.3 style file name. 15269 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15270 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15271 done 15272 IFS=$lt_save_ifs 15273 # Convert to MSYS style. 15274 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15275 ;; 15276 cygwin*) 15277 # Convert to unix form, then to dos form, then back to unix form 15278 # but this time dos style (no spaces!) so that the unix form looks 15279 # like /cygdrive/c/PROGRA~1:/cygdr... 15280 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15281 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15282 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15283 ;; 15284 *) 15285 sys_lib_search_path_spec="$LIB" 15286 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15287 # It is most probably a Windows format PATH. 15288 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15289 else 15290 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15291 fi 15292 # FIXME: find the short name or the path components, as spaces are 15293 # common. (e.g. "Program Files" -> "PROGRA~1") 15294 ;; 15295 esac 15296 15297 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15298 postinstall_cmds='base_file=`basename \${file}`~ 15299 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15300 dldir=$destdir/`dirname \$dlpath`~ 15301 test -d \$dldir || mkdir -p \$dldir~ 15302 $install_prog $dir/$dlname \$dldir/$dlname' 15303 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15304 dlpath=$dir/\$dldll~ 15305 $RM \$dlpath' 15306 shlibpath_overrides_runpath=yes 15307 dynamic_linker='Win32 link.exe' 15308 ;; 15309 15310 *) 15311 # Assume MSVC wrapper 15312 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15313 dynamic_linker='Win32 ld.exe' 15314 ;; 15315 esac 15316 # FIXME: first we should search . and the directory the executable is in 15317 shlibpath_var=PATH 15318 ;; 15319 15320darwin* | rhapsody*) 15321 dynamic_linker="$host_os dyld" 15322 version_type=darwin 15323 need_lib_prefix=no 15324 need_version=no 15325 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15326 soname_spec='${libname}${release}${major}$shared_ext' 15327 shlibpath_overrides_runpath=yes 15328 shlibpath_var=DYLD_LIBRARY_PATH 15329 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15330 15331 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15332 ;; 15333 15334dgux*) 15335 version_type=linux 15336 need_lib_prefix=no 15337 need_version=no 15338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15339 soname_spec='${libname}${release}${shared_ext}$major' 15340 shlibpath_var=LD_LIBRARY_PATH 15341 ;; 15342 15343freebsd1*) 15344 dynamic_linker=no 15345 ;; 15346 15347freebsd* | dragonfly*) 15348 # DragonFly does not have aout. When/if they implement a new 15349 # versioning mechanism, adjust this. 15350 if test -x /usr/bin/objformat; then 15351 objformat=`/usr/bin/objformat` 15352 else 15353 case $host_os in 15354 freebsd[123]*) objformat=aout ;; 15355 *) objformat=elf ;; 15356 esac 15357 fi 15358 version_type=freebsd-$objformat 15359 case $version_type in 15360 freebsd-elf*) 15361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15362 need_version=no 15363 need_lib_prefix=no 15364 ;; 15365 freebsd-*) 15366 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15367 need_version=yes 15368 ;; 15369 esac 15370 shlibpath_var=LD_LIBRARY_PATH 15371 case $host_os in 15372 freebsd2*) 15373 shlibpath_overrides_runpath=yes 15374 ;; 15375 freebsd3.[01]* | freebsdelf3.[01]*) 15376 shlibpath_overrides_runpath=yes 15377 hardcode_into_libs=yes 15378 ;; 15379 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15380 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15381 shlibpath_overrides_runpath=no 15382 hardcode_into_libs=yes 15383 ;; 15384 *) # from 4.6 on, and DragonFly 15385 shlibpath_overrides_runpath=yes 15386 hardcode_into_libs=yes 15387 ;; 15388 esac 15389 ;; 15390 15391gnu*) 15392 version_type=linux 15393 need_lib_prefix=no 15394 need_version=no 15395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15396 soname_spec='${libname}${release}${shared_ext}$major' 15397 shlibpath_var=LD_LIBRARY_PATH 15398 hardcode_into_libs=yes 15399 ;; 15400 15401haiku*) 15402 version_type=linux 15403 need_lib_prefix=no 15404 need_version=no 15405 dynamic_linker="$host_os runtime_loader" 15406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15407 soname_spec='${libname}${release}${shared_ext}$major' 15408 shlibpath_var=LIBRARY_PATH 15409 shlibpath_overrides_runpath=yes 15410 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15411 hardcode_into_libs=yes 15412 ;; 15413 15414hpux9* | hpux10* | hpux11*) 15415 # Give a soname corresponding to the major version so that dld.sl refuses to 15416 # link against other versions. 15417 version_type=sunos 15418 need_lib_prefix=no 15419 need_version=no 15420 case $host_cpu in 15421 ia64*) 15422 shrext_cmds='.so' 15423 hardcode_into_libs=yes 15424 dynamic_linker="$host_os dld.so" 15425 shlibpath_var=LD_LIBRARY_PATH 15426 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15428 soname_spec='${libname}${release}${shared_ext}$major' 15429 if test "X$HPUX_IA64_MODE" = X32; then 15430 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15431 else 15432 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15433 fi 15434 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15435 ;; 15436 hppa*64*) 15437 shrext_cmds='.sl' 15438 hardcode_into_libs=yes 15439 dynamic_linker="$host_os dld.sl" 15440 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15441 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15443 soname_spec='${libname}${release}${shared_ext}$major' 15444 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15445 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15446 ;; 15447 *) 15448 shrext_cmds='.sl' 15449 dynamic_linker="$host_os dld.sl" 15450 shlibpath_var=SHLIB_PATH 15451 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15453 soname_spec='${libname}${release}${shared_ext}$major' 15454 ;; 15455 esac 15456 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15457 postinstall_cmds='chmod 555 $lib' 15458 # or fails outright, so override atomically: 15459 install_override_mode=555 15460 ;; 15461 15462interix[3-9]*) 15463 version_type=linux 15464 need_lib_prefix=no 15465 need_version=no 15466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15467 soname_spec='${libname}${release}${shared_ext}$major' 15468 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15469 shlibpath_var=LD_LIBRARY_PATH 15470 shlibpath_overrides_runpath=no 15471 hardcode_into_libs=yes 15472 ;; 15473 15474irix5* | irix6* | nonstopux*) 15475 case $host_os in 15476 nonstopux*) version_type=nonstopux ;; 15477 *) 15478 if test "$lt_cv_prog_gnu_ld" = yes; then 15479 version_type=linux 15480 else 15481 version_type=irix 15482 fi ;; 15483 esac 15484 need_lib_prefix=no 15485 need_version=no 15486 soname_spec='${libname}${release}${shared_ext}$major' 15487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15488 case $host_os in 15489 irix5* | nonstopux*) 15490 libsuff= shlibsuff= 15491 ;; 15492 *) 15493 case $LD in # libtool.m4 will add one of these switches to LD 15494 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15495 libsuff= shlibsuff= libmagic=32-bit;; 15496 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15497 libsuff=32 shlibsuff=N32 libmagic=N32;; 15498 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15499 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15500 *) libsuff= shlibsuff= libmagic=never-match;; 15501 esac 15502 ;; 15503 esac 15504 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15505 shlibpath_overrides_runpath=no 15506 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15507 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15508 hardcode_into_libs=yes 15509 ;; 15510 15511# No shared lib support for Linux oldld, aout, or coff. 15512linux*oldld* | linux*aout* | linux*coff*) 15513 dynamic_linker=no 15514 ;; 15515 15516# This must be Linux ELF. 15517linux* | k*bsd*-gnu | kopensolaris*-gnu) 15518 version_type=linux 15519 need_lib_prefix=no 15520 need_version=no 15521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15522 soname_spec='${libname}${release}${shared_ext}$major' 15523 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15524 shlibpath_var=LD_LIBRARY_PATH 15525 shlibpath_overrides_runpath=no 15526 15527 # Some binutils ld are patched to set DT_RUNPATH 15528 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15529 $as_echo_n "(cached) " >&6 15530else 15531 lt_cv_shlibpath_overrides_runpath=no 15532 save_LDFLAGS=$LDFLAGS 15533 save_libdir=$libdir 15534 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15535 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15537/* end confdefs.h. */ 15538 15539int 15540main () 15541{ 15542 15543 ; 15544 return 0; 15545} 15546_ACEOF 15547if ac_fn_cxx_try_link "$LINENO"; then : 15548 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15549 lt_cv_shlibpath_overrides_runpath=yes 15550fi 15551fi 15552rm -f core conftest.err conftest.$ac_objext \ 15553 conftest$ac_exeext conftest.$ac_ext 15554 LDFLAGS=$save_LDFLAGS 15555 libdir=$save_libdir 15556 15557fi 15558 15559 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15560 15561 # This implies no fast_install, which is unacceptable. 15562 # Some rework will be needed to allow for fast_install 15563 # before this can be enabled. 15564 hardcode_into_libs=yes 15565 15566 # Append ld.so.conf contents to the search path 15567 if test -f /etc/ld.so.conf; then 15568 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' ' '` 15569 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15570 fi 15571 15572 # We used to test for /lib/ld.so.1 and disable shared libraries on 15573 # powerpc, because MkLinux only supported shared libraries with the 15574 # GNU dynamic linker. Since this was broken with cross compilers, 15575 # most powerpc-linux boxes support dynamic linking these days and 15576 # people can always --disable-shared, the test was removed, and we 15577 # assume the GNU/Linux dynamic linker is in use. 15578 dynamic_linker='GNU/Linux ld.so' 15579 ;; 15580 15581netbsd*) 15582 version_type=sunos 15583 need_lib_prefix=no 15584 need_version=no 15585 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15587 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15588 dynamic_linker='NetBSD (a.out) ld.so' 15589 else 15590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15591 soname_spec='${libname}${release}${shared_ext}$major' 15592 dynamic_linker='NetBSD ld.elf_so' 15593 fi 15594 shlibpath_var=LD_LIBRARY_PATH 15595 shlibpath_overrides_runpath=yes 15596 hardcode_into_libs=yes 15597 ;; 15598 15599newsos6) 15600 version_type=linux 15601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15602 shlibpath_var=LD_LIBRARY_PATH 15603 shlibpath_overrides_runpath=yes 15604 ;; 15605 15606*nto* | *qnx*) 15607 version_type=qnx 15608 need_lib_prefix=no 15609 need_version=no 15610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15611 soname_spec='${libname}${release}${shared_ext}$major' 15612 shlibpath_var=LD_LIBRARY_PATH 15613 shlibpath_overrides_runpath=no 15614 hardcode_into_libs=yes 15615 dynamic_linker='ldqnx.so' 15616 ;; 15617 15618openbsd*) 15619 version_type=sunos 15620 sys_lib_dlsearch_path_spec="/usr/lib" 15621 need_lib_prefix=no 15622 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15623 case $host_os in 15624 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15625 *) need_version=no ;; 15626 esac 15627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15628 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15629 shlibpath_var=LD_LIBRARY_PATH 15630 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15631 case $host_os in 15632 openbsd2.[89] | openbsd2.[89].*) 15633 shlibpath_overrides_runpath=no 15634 ;; 15635 *) 15636 shlibpath_overrides_runpath=yes 15637 ;; 15638 esac 15639 else 15640 shlibpath_overrides_runpath=yes 15641 fi 15642 ;; 15643 15644os2*) 15645 libname_spec='$name' 15646 shrext_cmds=".dll" 15647 need_lib_prefix=no 15648 library_names_spec='$libname${shared_ext} $libname.a' 15649 dynamic_linker='OS/2 ld.exe' 15650 shlibpath_var=LIBPATH 15651 ;; 15652 15653osf3* | osf4* | osf5*) 15654 version_type=osf 15655 need_lib_prefix=no 15656 need_version=no 15657 soname_spec='${libname}${release}${shared_ext}$major' 15658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15659 shlibpath_var=LD_LIBRARY_PATH 15660 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15661 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15662 ;; 15663 15664rdos*) 15665 dynamic_linker=no 15666 ;; 15667 15668solaris*) 15669 version_type=linux 15670 need_lib_prefix=no 15671 need_version=no 15672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15673 soname_spec='${libname}${release}${shared_ext}$major' 15674 shlibpath_var=LD_LIBRARY_PATH 15675 shlibpath_overrides_runpath=yes 15676 hardcode_into_libs=yes 15677 # ldd complains unless libraries are executable 15678 postinstall_cmds='chmod +x $lib' 15679 ;; 15680 15681sunos4*) 15682 version_type=sunos 15683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15684 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15685 shlibpath_var=LD_LIBRARY_PATH 15686 shlibpath_overrides_runpath=yes 15687 if test "$with_gnu_ld" = yes; then 15688 need_lib_prefix=no 15689 fi 15690 need_version=yes 15691 ;; 15692 15693sysv4 | sysv4.3*) 15694 version_type=linux 15695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15696 soname_spec='${libname}${release}${shared_ext}$major' 15697 shlibpath_var=LD_LIBRARY_PATH 15698 case $host_vendor in 15699 sni) 15700 shlibpath_overrides_runpath=no 15701 need_lib_prefix=no 15702 runpath_var=LD_RUN_PATH 15703 ;; 15704 siemens) 15705 need_lib_prefix=no 15706 ;; 15707 motorola) 15708 need_lib_prefix=no 15709 need_version=no 15710 shlibpath_overrides_runpath=no 15711 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15712 ;; 15713 esac 15714 ;; 15715 15716sysv4*MP*) 15717 if test -d /usr/nec ;then 15718 version_type=linux 15719 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15720 soname_spec='$libname${shared_ext}.$major' 15721 shlibpath_var=LD_LIBRARY_PATH 15722 fi 15723 ;; 15724 15725sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15726 version_type=freebsd-elf 15727 need_lib_prefix=no 15728 need_version=no 15729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15730 soname_spec='${libname}${release}${shared_ext}$major' 15731 shlibpath_var=LD_LIBRARY_PATH 15732 shlibpath_overrides_runpath=yes 15733 hardcode_into_libs=yes 15734 if test "$with_gnu_ld" = yes; then 15735 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15736 else 15737 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15738 case $host_os in 15739 sco3.2v5*) 15740 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15741 ;; 15742 esac 15743 fi 15744 sys_lib_dlsearch_path_spec='/usr/lib' 15745 ;; 15746 15747tpf*) 15748 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15749 version_type=linux 15750 need_lib_prefix=no 15751 need_version=no 15752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15753 shlibpath_var=LD_LIBRARY_PATH 15754 shlibpath_overrides_runpath=no 15755 hardcode_into_libs=yes 15756 ;; 15757 15758uts4*) 15759 version_type=linux 15760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15761 soname_spec='${libname}${release}${shared_ext}$major' 15762 shlibpath_var=LD_LIBRARY_PATH 15763 ;; 15764 15765*) 15766 dynamic_linker=no 15767 ;; 15768esac 15769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15770$as_echo "$dynamic_linker" >&6; } 15771test "$dynamic_linker" = no && can_build_shared=no 15772 15773variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15774if test "$GCC" = yes; then 15775 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15776fi 15777 15778if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 15779 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15780fi 15781if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 15782 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15783fi 15784 15785 15786 15787 15788 15789 15790 15791 15792 15793 15794 15795 15796 15797 15798 15799 15800 15801 15802 15803 15804 15805 15806 15807 15808 15809 15810 15811 15812 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15823$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15824hardcode_action_CXX= 15825if test -n "$hardcode_libdir_flag_spec_CXX" || 15826 test -n "$runpath_var_CXX" || 15827 test "X$hardcode_automatic_CXX" = "Xyes" ; then 15828 15829 # We can hardcode non-existent directories. 15830 if test "$hardcode_direct_CXX" != no && 15831 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15832 # have to relink, otherwise we might link with an installed library 15833 # when we should be linking with a yet-to-be-installed one 15834 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 15835 test "$hardcode_minus_L_CXX" != no; then 15836 # Linking always hardcodes the temporary library directory. 15837 hardcode_action_CXX=relink 15838 else 15839 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15840 hardcode_action_CXX=immediate 15841 fi 15842else 15843 # We cannot hardcode anything, or else we can only hardcode existing 15844 # directories. 15845 hardcode_action_CXX=unsupported 15846fi 15847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 15848$as_echo "$hardcode_action_CXX" >&6; } 15849 15850if test "$hardcode_action_CXX" = relink || 15851 test "$inherit_rpath_CXX" = yes; then 15852 # Fast installation is not supported 15853 enable_fast_install=no 15854elif test "$shlibpath_overrides_runpath" = yes || 15855 test "$enable_shared" = no; then 15856 # Fast installation is not necessary 15857 enable_fast_install=needless 15858fi 15859 15860 15861 15862 15863 15864 15865 15866 fi # test -n "$compiler" 15867 15868 CC=$lt_save_CC 15869 CFLAGS=$lt_save_CFLAGS 15870 LDCXX=$LD 15871 LD=$lt_save_LD 15872 GCC=$lt_save_GCC 15873 with_gnu_ld=$lt_save_with_gnu_ld 15874 lt_cv_path_LDCXX=$lt_cv_path_LD 15875 lt_cv_path_LD=$lt_save_path_LD 15876 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15877 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15878fi # test "$_lt_caught_CXX_error" != yes 15879 15880ac_ext=c 15881ac_cpp='$CPP $CPPFLAGS' 15882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15884ac_compiler_gnu=$ac_cv_c_compiler_gnu 15885 15886 15887 15888# Enable support for silent build rules 15889# Check whether --enable-silent-rules was given. 15890if test "${enable_silent_rules+set}" = set; then : 15891 enableval=$enable_silent_rules; 15892fi 15893 15894case $enable_silent_rules in 15895yes) AM_DEFAULT_VERBOSITY=0;; 15896no) AM_DEFAULT_VERBOSITY=1;; 15897*) AM_DEFAULT_VERBOSITY=1;; 15898esac 15899AM_BACKSLASH='\' 15900 15901 15902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lc" >&5 15903$as_echo_n "checking for main in -lc... " >&6; } 15904if ${ac_cv_lib_c_main+:} false; then : 15905 $as_echo_n "(cached) " >&6 15906else 15907 ac_check_lib_save_LIBS=$LIBS 15908LIBS="-lc $LIBS" 15909cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15910/* end confdefs.h. */ 15911 15912 15913int 15914main () 15915{ 15916return main (); 15917 ; 15918 return 0; 15919} 15920_ACEOF 15921if ac_fn_c_try_link "$LINENO"; then : 15922 ac_cv_lib_c_main=yes 15923else 15924 ac_cv_lib_c_main=no 15925fi 15926rm -f core conftest.err conftest.$ac_objext \ 15927 conftest$ac_exeext conftest.$ac_ext 15928LIBS=$ac_check_lib_save_LIBS 15929fi 15930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_main" >&5 15931$as_echo "$ac_cv_lib_c_main" >&6; } 15932if test "x$ac_cv_lib_c_main" = xyes; then : 15933 cat >>confdefs.h <<_ACEOF 15934#define HAVE_LIBC 1 15935_ACEOF 15936 15937 LIBS="-lc $LIBS" 15938 15939fi 15940 15941 15942case "${host_os}" in 15943 cygwin* | mingw32* | beos* | darwin*) 15944 ;; 15945 *) 15946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 15947$as_echo_n "checking for sin in -lm... " >&6; } 15948if ${ac_cv_lib_m_sin+:} false; then : 15949 $as_echo_n "(cached) " >&6 15950else 15951 ac_check_lib_save_LIBS=$LIBS 15952LIBS="-lm $LIBS" 15953cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15954/* end confdefs.h. */ 15955 15956/* Override any GCC internal prototype to avoid an error. 15957 Use char because int might match the return type of a GCC 15958 builtin and then its argument prototype would still apply. */ 15959#ifdef __cplusplus 15960extern "C" 15961#endif 15962char sin (); 15963int 15964main () 15965{ 15966return sin (); 15967 ; 15968 return 0; 15969} 15970_ACEOF 15971if ac_fn_c_try_link "$LINENO"; then : 15972 ac_cv_lib_m_sin=yes 15973else 15974 ac_cv_lib_m_sin=no 15975fi 15976rm -f core conftest.err conftest.$ac_objext \ 15977 conftest$ac_exeext conftest.$ac_ext 15978LIBS=$ac_check_lib_save_LIBS 15979fi 15980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 15981$as_echo "$ac_cv_lib_m_sin" >&6; } 15982if test "x$ac_cv_lib_m_sin" = xyes; then : 15983 cat >>confdefs.h <<_ACEOF 15984#define HAVE_LIBM 1 15985_ACEOF 15986 15987 LIBS="-lm $LIBS" 15988 15989fi 15990 15991 ;; 15992esac 15993 15994tiff_libs_private= 15995 15996 15997for ac_header in assert.h fcntl.h io.h limits.h malloc.h search.h sys/time.h unistd.h 15998do : 15999 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16000ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16001if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16002 cat >>confdefs.h <<_ACEOF 16003#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16004_ACEOF 16005 16006fi 16007 16008done 16009 16010 16011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 16012$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 16013if ${ac_cv_c_const+:} false; then : 16014 $as_echo_n "(cached) " >&6 16015else 16016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16017/* end confdefs.h. */ 16018 16019int 16020main () 16021{ 16022/* FIXME: Include the comments suggested by Paul. */ 16023#ifndef __cplusplus 16024 /* Ultrix mips cc rejects this. */ 16025 typedef int charset[2]; 16026 const charset cs; 16027 /* SunOS 4.1.1 cc rejects this. */ 16028 char const *const *pcpcc; 16029 char **ppc; 16030 /* NEC SVR4.0.2 mips cc rejects this. */ 16031 struct point {int x, y;}; 16032 static struct point const zero = {0,0}; 16033 /* AIX XL C 1.02.0.0 rejects this. 16034 It does not let you subtract one const X* pointer from another in 16035 an arm of an if-expression whose if-part is not a constant 16036 expression */ 16037 const char *g = "string"; 16038 pcpcc = &g + (g ? g-g : 0); 16039 /* HPUX 7.0 cc rejects these. */ 16040 ++pcpcc; 16041 ppc = (char**) pcpcc; 16042 pcpcc = (char const *const *) ppc; 16043 { /* SCO 3.2v4 cc rejects this. */ 16044 char *t; 16045 char const *s = 0 ? (char *) 0 : (char const *) 0; 16046 16047 *t++ = 0; 16048 if (s) return 0; 16049 } 16050 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 16051 int x[] = {25, 17}; 16052 const int *foo = &x[0]; 16053 ++foo; 16054 } 16055 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 16056 typedef const int *iptr; 16057 iptr p = 0; 16058 ++p; 16059 } 16060 { /* AIX XL C 1.02.0.0 rejects this saying 16061 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 16062 struct s { int j; const int *ap[3]; }; 16063 struct s *b; b->j = 5; 16064 } 16065 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 16066 const int foo = 10; 16067 if (!foo) return 0; 16068 } 16069 return !cs[0] && !zero.x; 16070#endif 16071 16072 ; 16073 return 0; 16074} 16075_ACEOF 16076if ac_fn_c_try_compile "$LINENO"; then : 16077 ac_cv_c_const=yes 16078else 16079 ac_cv_c_const=no 16080fi 16081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16082fi 16083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 16084$as_echo "$ac_cv_c_const" >&6; } 16085if test $ac_cv_c_const = no; then 16086 16087$as_echo "#define const /**/" >>confdefs.h 16088 16089fi 16090 16091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 16092$as_echo_n "checking for inline... " >&6; } 16093if ${ac_cv_c_inline+:} false; then : 16094 $as_echo_n "(cached) " >&6 16095else 16096 ac_cv_c_inline=no 16097for ac_kw in inline __inline__ __inline; do 16098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16099/* end confdefs.h. */ 16100#ifndef __cplusplus 16101typedef int foo_t; 16102static $ac_kw foo_t static_foo () {return 0; } 16103$ac_kw foo_t foo () {return 0; } 16104#endif 16105 16106_ACEOF 16107if ac_fn_c_try_compile "$LINENO"; then : 16108 ac_cv_c_inline=$ac_kw 16109fi 16110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16111 test "$ac_cv_c_inline" != no && break 16112done 16113 16114fi 16115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 16116$as_echo "$ac_cv_c_inline" >&6; } 16117 16118case $ac_cv_c_inline in 16119 inline | yes) ;; 16120 *) 16121 case $ac_cv_c_inline in 16122 no) ac_val=;; 16123 *) ac_val=$ac_cv_c_inline;; 16124 esac 16125 cat >>confdefs.h <<_ACEOF 16126#ifndef __cplusplus 16127#define inline $ac_val 16128#endif 16129_ACEOF 16130 ;; 16131esac 16132 16133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 16134$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 16135if ${ac_cv_c_bigendian+:} false; then : 16136 $as_echo_n "(cached) " >&6 16137else 16138 ac_cv_c_bigendian=unknown 16139 # See if we're dealing with a universal compiler. 16140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16141/* end confdefs.h. */ 16142#ifndef __APPLE_CC__ 16143 not a universal capable compiler 16144 #endif 16145 typedef int dummy; 16146 16147_ACEOF 16148if ac_fn_c_try_compile "$LINENO"; then : 16149 16150 # Check for potential -arch flags. It is not universal unless 16151 # there are at least two -arch flags with different values. 16152 ac_arch= 16153 ac_prev= 16154 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 16155 if test -n "$ac_prev"; then 16156 case $ac_word in 16157 i?86 | x86_64 | ppc | ppc64) 16158 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 16159 ac_arch=$ac_word 16160 else 16161 ac_cv_c_bigendian=universal 16162 break 16163 fi 16164 ;; 16165 esac 16166 ac_prev= 16167 elif test "x$ac_word" = "x-arch"; then 16168 ac_prev=arch 16169 fi 16170 done 16171fi 16172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16173 if test $ac_cv_c_bigendian = unknown; then 16174 # See if sys/param.h defines the BYTE_ORDER macro. 16175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16176/* end confdefs.h. */ 16177#include <sys/types.h> 16178 #include <sys/param.h> 16179 16180int 16181main () 16182{ 16183#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 16184 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 16185 && LITTLE_ENDIAN) 16186 bogus endian macros 16187 #endif 16188 16189 ; 16190 return 0; 16191} 16192_ACEOF 16193if ac_fn_c_try_compile "$LINENO"; then : 16194 # It does; now see whether it defined to BIG_ENDIAN or not. 16195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16196/* end confdefs.h. */ 16197#include <sys/types.h> 16198 #include <sys/param.h> 16199 16200int 16201main () 16202{ 16203#if BYTE_ORDER != BIG_ENDIAN 16204 not big endian 16205 #endif 16206 16207 ; 16208 return 0; 16209} 16210_ACEOF 16211if ac_fn_c_try_compile "$LINENO"; then : 16212 ac_cv_c_bigendian=yes 16213else 16214 ac_cv_c_bigendian=no 16215fi 16216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16217fi 16218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16219 fi 16220 if test $ac_cv_c_bigendian = unknown; then 16221 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 16222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16223/* end confdefs.h. */ 16224#include <limits.h> 16225 16226int 16227main () 16228{ 16229#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 16230 bogus endian macros 16231 #endif 16232 16233 ; 16234 return 0; 16235} 16236_ACEOF 16237if ac_fn_c_try_compile "$LINENO"; then : 16238 # It does; now see whether it defined to _BIG_ENDIAN or not. 16239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16240/* end confdefs.h. */ 16241#include <limits.h> 16242 16243int 16244main () 16245{ 16246#ifndef _BIG_ENDIAN 16247 not big endian 16248 #endif 16249 16250 ; 16251 return 0; 16252} 16253_ACEOF 16254if ac_fn_c_try_compile "$LINENO"; then : 16255 ac_cv_c_bigendian=yes 16256else 16257 ac_cv_c_bigendian=no 16258fi 16259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16260fi 16261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16262 fi 16263 if test $ac_cv_c_bigendian = unknown; then 16264 # Compile a test program. 16265 if test "$cross_compiling" = yes; then : 16266 # Try to guess by grepping values from an object file. 16267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16268/* end confdefs.h. */ 16269short int ascii_mm[] = 16270 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 16271 short int ascii_ii[] = 16272 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 16273 int use_ascii (int i) { 16274 return ascii_mm[i] + ascii_ii[i]; 16275 } 16276 short int ebcdic_ii[] = 16277 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 16278 short int ebcdic_mm[] = 16279 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 16280 int use_ebcdic (int i) { 16281 return ebcdic_mm[i] + ebcdic_ii[i]; 16282 } 16283 extern int foo; 16284 16285int 16286main () 16287{ 16288return use_ascii (foo) == use_ebcdic (foo); 16289 ; 16290 return 0; 16291} 16292_ACEOF 16293if ac_fn_c_try_compile "$LINENO"; then : 16294 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 16295 ac_cv_c_bigendian=yes 16296 fi 16297 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 16298 if test "$ac_cv_c_bigendian" = unknown; then 16299 ac_cv_c_bigendian=no 16300 else 16301 # finding both strings is unlikely to happen, but who knows? 16302 ac_cv_c_bigendian=unknown 16303 fi 16304 fi 16305fi 16306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16307else 16308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16309/* end confdefs.h. */ 16310$ac_includes_default 16311int 16312main () 16313{ 16314 16315 /* Are we little or big endian? From Harbison&Steele. */ 16316 union 16317 { 16318 long int l; 16319 char c[sizeof (long int)]; 16320 } u; 16321 u.l = 1; 16322 return u.c[sizeof (long int) - 1] == 1; 16323 16324 ; 16325 return 0; 16326} 16327_ACEOF 16328if ac_fn_c_try_run "$LINENO"; then : 16329 ac_cv_c_bigendian=no 16330else 16331 ac_cv_c_bigendian=yes 16332fi 16333rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16334 conftest.$ac_objext conftest.beam conftest.$ac_ext 16335fi 16336 16337 fi 16338fi 16339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 16340$as_echo "$ac_cv_c_bigendian" >&6; } 16341 case $ac_cv_c_bigendian in #( 16342 yes) 16343 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 16344;; #( 16345 no) 16346 ;; #( 16347 universal) 16348 16349$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 16350 16351 ;; #( 16352 *) 16353 as_fn_error $? "unknown endianness 16354 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 16355 esac 16356 16357ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 16358if test "x$ac_cv_type_off_t" = xyes; then : 16359 16360else 16361 16362cat >>confdefs.h <<_ACEOF 16363#define off_t long int 16364_ACEOF 16365 16366fi 16367 16368ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 16369if test "x$ac_cv_type_size_t" = xyes; then : 16370 16371else 16372 16373cat >>confdefs.h <<_ACEOF 16374#define size_t unsigned int 16375_ACEOF 16376 16377fi 16378 16379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 16380$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 16381if ${ac_cv_header_time+:} false; then : 16382 $as_echo_n "(cached) " >&6 16383else 16384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16385/* end confdefs.h. */ 16386#include <sys/types.h> 16387#include <sys/time.h> 16388#include <time.h> 16389 16390int 16391main () 16392{ 16393if ((struct tm *) 0) 16394return 0; 16395 ; 16396 return 0; 16397} 16398_ACEOF 16399if ac_fn_c_try_compile "$LINENO"; then : 16400 ac_cv_header_time=yes 16401else 16402 ac_cv_header_time=no 16403fi 16404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16405fi 16406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 16407$as_echo "$ac_cv_header_time" >&6; } 16408if test $ac_cv_header_time = yes; then 16409 16410$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 16411 16412fi 16413 16414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 16415$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 16416if ${ac_cv_struct_tm+:} false; then : 16417 $as_echo_n "(cached) " >&6 16418else 16419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16420/* end confdefs.h. */ 16421#include <sys/types.h> 16422#include <time.h> 16423 16424int 16425main () 16426{ 16427struct tm tm; 16428 int *p = &tm.tm_sec; 16429 return !p; 16430 ; 16431 return 0; 16432} 16433_ACEOF 16434if ac_fn_c_try_compile "$LINENO"; then : 16435 ac_cv_struct_tm=time.h 16436else 16437 ac_cv_struct_tm=sys/time.h 16438fi 16439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16440fi 16441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 16442$as_echo "$ac_cv_struct_tm" >&6; } 16443if test $ac_cv_struct_tm = sys/time.h; then 16444 16445$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 16446 16447fi 16448 16449 16450 16451# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT 16452# The cast to long int works around a bug in the HP C Compiler 16453# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16454# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16455# This bug is HP SR number 8606223364. 16456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5 16457$as_echo_n "checking size of signed short... " >&6; } 16458if ${ac_cv_sizeof_signed_short+:} false; then : 16459 $as_echo_n "(cached) " >&6 16460else 16461 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then : 16462 16463else 16464 if test "$ac_cv_type_signed_short" = yes; then 16465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16466$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16467as_fn_error 77 "cannot compute sizeof (signed short) 16468See \`config.log' for more details" "$LINENO" 5; } 16469 else 16470 ac_cv_sizeof_signed_short=0 16471 fi 16472fi 16473 16474fi 16475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5 16476$as_echo "$ac_cv_sizeof_signed_short" >&6; } 16477 16478 16479 16480cat >>confdefs.h <<_ACEOF 16481#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short 16482_ACEOF 16483 16484 16485 16486# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT 16487# The cast to long int works around a bug in the HP C Compiler 16488# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16489# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16490# This bug is HP SR number 8606223364. 16491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5 16492$as_echo_n "checking size of unsigned short... " >&6; } 16493if ${ac_cv_sizeof_unsigned_short+:} false; then : 16494 $as_echo_n "(cached) " >&6 16495else 16496 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then : 16497 16498else 16499 if test "$ac_cv_type_unsigned_short" = yes; then 16500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16501$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16502as_fn_error 77 "cannot compute sizeof (unsigned short) 16503See \`config.log' for more details" "$LINENO" 5; } 16504 else 16505 ac_cv_sizeof_unsigned_short=0 16506 fi 16507fi 16508 16509fi 16510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5 16511$as_echo "$ac_cv_sizeof_unsigned_short" >&6; } 16512 16513 16514 16515cat >>confdefs.h <<_ACEOF 16516#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short 16517_ACEOF 16518 16519 16520 16521# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT 16522# The cast to long int works around a bug in the HP C Compiler 16523# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16524# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16525# This bug is HP SR number 8606223364. 16526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5 16527$as_echo_n "checking size of signed int... " >&6; } 16528if ${ac_cv_sizeof_signed_int+:} false; then : 16529 $as_echo_n "(cached) " >&6 16530else 16531 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int" "$ac_includes_default"; then : 16532 16533else 16534 if test "$ac_cv_type_signed_int" = yes; then 16535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16536$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16537as_fn_error 77 "cannot compute sizeof (signed int) 16538See \`config.log' for more details" "$LINENO" 5; } 16539 else 16540 ac_cv_sizeof_signed_int=0 16541 fi 16542fi 16543 16544fi 16545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5 16546$as_echo "$ac_cv_sizeof_signed_int" >&6; } 16547 16548 16549 16550cat >>confdefs.h <<_ACEOF 16551#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int 16552_ACEOF 16553 16554 16555 16556# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT 16557# The cast to long int works around a bug in the HP C Compiler 16558# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16559# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16560# This bug is HP SR number 8606223364. 16561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 16562$as_echo_n "checking size of unsigned int... " >&6; } 16563if ${ac_cv_sizeof_unsigned_int+:} false; then : 16564 $as_echo_n "(cached) " >&6 16565else 16566 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then : 16567 16568else 16569 if test "$ac_cv_type_unsigned_int" = yes; then 16570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16571$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16572as_fn_error 77 "cannot compute sizeof (unsigned int) 16573See \`config.log' for more details" "$LINENO" 5; } 16574 else 16575 ac_cv_sizeof_unsigned_int=0 16576 fi 16577fi 16578 16579fi 16580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 16581$as_echo "$ac_cv_sizeof_unsigned_int" >&6; } 16582 16583 16584 16585cat >>confdefs.h <<_ACEOF 16586#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int 16587_ACEOF 16588 16589 16590 16591# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG 16592# The cast to long int works around a bug in the HP C Compiler 16593# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16594# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16595# This bug is HP SR number 8606223364. 16596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5 16597$as_echo_n "checking size of signed long... " >&6; } 16598if ${ac_cv_sizeof_signed_long+:} false; then : 16599 $as_echo_n "(cached) " >&6 16600else 16601 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then : 16602 16603else 16604 if test "$ac_cv_type_signed_long" = yes; then 16605 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16606$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16607as_fn_error 77 "cannot compute sizeof (signed long) 16608See \`config.log' for more details" "$LINENO" 5; } 16609 else 16610 ac_cv_sizeof_signed_long=0 16611 fi 16612fi 16613 16614fi 16615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5 16616$as_echo "$ac_cv_sizeof_signed_long" >&6; } 16617 16618 16619 16620cat >>confdefs.h <<_ACEOF 16621#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long 16622_ACEOF 16623 16624 16625 16626# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG 16627# The cast to long int works around a bug in the HP C Compiler 16628# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16629# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16630# This bug is HP SR number 8606223364. 16631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 16632$as_echo_n "checking size of unsigned long... " >&6; } 16633if ${ac_cv_sizeof_unsigned_long+:} false; then : 16634 $as_echo_n "(cached) " >&6 16635else 16636 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : 16637 16638else 16639 if test "$ac_cv_type_unsigned_long" = yes; then 16640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16641$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16642as_fn_error 77 "cannot compute sizeof (unsigned long) 16643See \`config.log' for more details" "$LINENO" 5; } 16644 else 16645 ac_cv_sizeof_unsigned_long=0 16646 fi 16647fi 16648 16649fi 16650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 16651$as_echo "$ac_cv_sizeof_unsigned_long" >&6; } 16652 16653 16654 16655cat >>confdefs.h <<_ACEOF 16656#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 16657_ACEOF 16658 16659 16660 16661# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. 16662# If 'long long' is not supported then the value defined is zero. 16663# The cast to long int works around a bug in the HP C Compiler 16664# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16665# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16666# This bug is HP SR number 8606223364. 16667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5 16668$as_echo_n "checking size of signed long long... " >&6; } 16669if ${ac_cv_sizeof_signed_long_long+:} false; then : 16670 $as_echo_n "(cached) " >&6 16671else 16672 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then : 16673 16674else 16675 if test "$ac_cv_type_signed_long_long" = yes; then 16676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16677$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16678as_fn_error 77 "cannot compute sizeof (signed long long) 16679See \`config.log' for more details" "$LINENO" 5; } 16680 else 16681 ac_cv_sizeof_signed_long_long=0 16682 fi 16683fi 16684 16685fi 16686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5 16687$as_echo "$ac_cv_sizeof_signed_long_long" >&6; } 16688 16689 16690 16691cat >>confdefs.h <<_ACEOF 16692#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long 16693_ACEOF 16694 16695 16696 16697# Obtain size of a 'unsigned long long' and define as 16698# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not 16699# supported then the value defined is zero. 16700# The cast to long int works around a bug in the HP C Compiler 16701# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16702# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16703# This bug is HP SR number 8606223364. 16704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5 16705$as_echo_n "checking size of unsigned long long... " >&6; } 16706if ${ac_cv_sizeof_unsigned_long_long+:} false; then : 16707 $as_echo_n "(cached) " >&6 16708else 16709 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then : 16710 16711else 16712 if test "$ac_cv_type_unsigned_long_long" = yes; then 16713 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16714$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16715as_fn_error 77 "cannot compute sizeof (unsigned long long) 16716See \`config.log' for more details" "$LINENO" 5; } 16717 else 16718 ac_cv_sizeof_unsigned_long_long=0 16719 fi 16720fi 16721 16722fi 16723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5 16724$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } 16725 16726 16727 16728cat >>confdefs.h <<_ACEOF 16729#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long 16730_ACEOF 16731 16732 16733 16734# Obtain the size of an 'unsigned char *' and define as 16735# SIZEOF_UNSIGNED_CHAR_P. Result is available in 16736# ac_cv_sizeof_unsigned_char_p. 16737# The cast to long int works around a bug in the HP C Compiler 16738# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16739# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16740# This bug is HP SR number 8606223364. 16741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned char *" >&5 16742$as_echo_n "checking size of unsigned char *... " >&6; } 16743if ${ac_cv_sizeof_unsigned_char_p+:} false; then : 16744 $as_echo_n "(cached) " >&6 16745else 16746 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned char *))" "ac_cv_sizeof_unsigned_char_p" "$ac_includes_default"; then : 16747 16748else 16749 if test "$ac_cv_type_unsigned_char_p" = yes; then 16750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16751$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16752as_fn_error 77 "cannot compute sizeof (unsigned char *) 16753See \`config.log' for more details" "$LINENO" 5; } 16754 else 16755 ac_cv_sizeof_unsigned_char_p=0 16756 fi 16757fi 16758 16759fi 16760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_char_p" >&5 16761$as_echo "$ac_cv_sizeof_unsigned_char_p" >&6; } 16762 16763 16764 16765cat >>confdefs.h <<_ACEOF 16766#define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p 16767_ACEOF 16768 16769 16770 16771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5 16772$as_echo_n "checking for signed 8-bit type... " >&6; } 16773INT8_T='signed char' 16774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5 16775$as_echo "$INT8_T" >&6; } 16776 16777cat >>confdefs.h <<_ACEOF 16778#define TIFF_INT8_T $INT8_T 16779_ACEOF 16780 16781 16782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5 16783$as_echo_n "checking for unsigned 8-bit type... " >&6; } 16784UINT8_T='unsigned char' 16785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5 16786$as_echo "$UINT8_T" >&6; } 16787 16788cat >>confdefs.h <<_ACEOF 16789#define TIFF_UINT8_T $UINT8_T 16790_ACEOF 16791 16792 16793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5 16794$as_echo_n "checking for signed 16-bit type... " >&6; } 16795INT16_T='signed short' 16796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5 16797$as_echo "$INT16_T" >&6; } 16798 16799cat >>confdefs.h <<_ACEOF 16800#define TIFF_INT16_T $INT16_T 16801_ACEOF 16802 16803 16804 16805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5 16806$as_echo_n "checking for unsigned 16-bit type... " >&6; } 16807UINT16_T='unsigned short' 16808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5 16809$as_echo "$UINT16_T" >&6; } 16810 16811cat >>confdefs.h <<_ACEOF 16812#define TIFF_UINT16_T $UINT16_T 16813_ACEOF 16814 16815 16816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5 16817$as_echo_n "checking for signed 32-bit type... " >&6; } 16818INT32_T='none' 16819INT32_FORMAT='none' 16820if test $ac_cv_sizeof_signed_int -eq 4 16821then 16822 INT32_T='signed int' 16823 INT32_FORMAT='"%d"' 16824elif test $ac_cv_sizeof_signed_long -eq 4 16825then 16826 INT32_T='signed long' 16827 INT32_FORMAT='"%ld"' 16828fi 16829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5 16830$as_echo "$INT32_T" >&6; } 16831 16832cat >>confdefs.h <<_ACEOF 16833#define TIFF_INT32_T $INT32_T 16834_ACEOF 16835 16836 16837cat >>confdefs.h <<_ACEOF 16838#define TIFF_INT32_FORMAT $INT32_FORMAT 16839_ACEOF 16840 16841 16842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5 16843$as_echo_n "checking for unsigned 32-bit type... " >&6; } 16844UINT32_T='none' 16845UINT32_FORMAT='none' 16846if test $ac_cv_sizeof_unsigned_int -eq 4 16847then 16848 UINT32_T='unsigned int' 16849 UINT32_FORMAT='"%u"' 16850elif test $ac_cv_sizeof_unsigned_long -eq 4 16851then 16852 UINT32_T='unsigned long' 16853 UINT32_FORMAT='"%lu"' 16854fi 16855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5 16856$as_echo "$UINT32_T" >&6; } 16857 16858cat >>confdefs.h <<_ACEOF 16859#define TIFF_UINT32_T $UINT32_T 16860_ACEOF 16861 16862 16863cat >>confdefs.h <<_ACEOF 16864#define TIFF_UINT32_FORMAT $UINT32_FORMAT 16865_ACEOF 16866 16867 16868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5 16869$as_echo_n "checking for signed 64-bit type... " >&6; } 16870INT64_T='none' 16871INT64_FORMAT='none' 16872if test $ac_cv_sizeof_signed_long -eq 8 16873then 16874 INT64_T='signed long' 16875 INT64_FORMAT='"%ld"' 16876elif test $ac_cv_sizeof_signed_long_long -eq 8 16877then 16878 INT64_T='signed long long' 16879 case "${host_os}" in 16880 mingw32*) 16881 # MinGW32 understands 'long long', but uses printf from WIN32 CRT 16882 INT64_FORMAT='"%I64d"' 16883 ;; 16884 *) 16885 INT64_FORMAT='"%lld"' 16886 ;; 16887 esac 16888fi 16889 16890 16891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5 16892$as_echo "$INT64_T" >&6; } 16893 16894cat >>confdefs.h <<_ACEOF 16895#define TIFF_INT64_T $INT64_T 16896_ACEOF 16897 16898 16899cat >>confdefs.h <<_ACEOF 16900#define TIFF_INT64_FORMAT $INT64_FORMAT 16901_ACEOF 16902 16903 16904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5 16905$as_echo_n "checking for unsigned 64-bit type... " >&6; } 16906UINT64_T='none' 16907UINT64_FORMAT='none' 16908if test $ac_cv_sizeof_unsigned_long -eq 8 16909then 16910 UINT64_T='unsigned long' 16911 UINT64_FORMAT='"%lu"' 16912elif test $ac_cv_sizeof_unsigned_long_long -eq 8 16913then 16914 UINT64_T='unsigned long long' 16915 case "${host_os}" in 16916 mingw32*) 16917 # MinGW32 understands 'unsigned long long', but uses printf from WIN32 CRT 16918 UINT64_FORMAT='"%I64u"' 16919 ;; 16920 *) 16921 UINT64_FORMAT='"%llu"' 16922 ;; 16923 esac 16924fi 16925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5 16926$as_echo "$UINT64_T" >&6; } 16927 16928cat >>confdefs.h <<_ACEOF 16929#define TIFF_UINT64_T $UINT64_T 16930_ACEOF 16931 16932 16933cat >>confdefs.h <<_ACEOF 16934#define TIFF_UINT64_FORMAT $UINT64_FORMAT 16935_ACEOF 16936 16937 16938# Determine TIFF equivalent of ssize_t 16939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed size type" >&5 16940$as_echo_n "checking for signed size type... " >&6; } 16941SSIZE_T='unknown' 16942SSIZE_FORMAT='unknown' 16943if test $ac_cv_sizeof_signed_long -eq $ac_cv_sizeof_unsigned_char_p 16944then 16945 SSIZE_T='signed long' 16946 SSIZE_FORMAT='"%ld"' 16947elif test $ac_cv_sizeof_signed_long_long -eq $ac_cv_sizeof_unsigned_char_p 16948then 16949 SSIZE_T='signed long long' 16950 SSIZE_FORMAT='"%lld"' 16951fi 16952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSIZE_T" >&5 16953$as_echo "$SSIZE_T" >&6; } 16954 16955cat >>confdefs.h <<_ACEOF 16956#define TIFF_SSIZE_T $SSIZE_T 16957_ACEOF 16958 16959 16960cat >>confdefs.h <<_ACEOF 16961#define TIFF_SSIZE_FORMAT $SSIZE_FORMAT 16962_ACEOF 16963 16964 16965# Determine the type to use for the difference between two pointers. 16966# We will default to the POSIX ptrdiff_t if it is available, but will 16967# be prepared for the case when it is not. 16968PTRDIFF_T='unknown' 16969PTRDIFF_FORMAT='"%ld"' 16970ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 16971if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 16972 PTRDIFF_T=ptrdiff_t 16973fi 16974 16975if test $PTRDIFF_T = unknown 16976then 16977 PTRDIFF_T=$SSIZE_T 16978 PTRDIFF_FORMAT=$SSIZE_FORMAT 16979fi 16980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5 16981$as_echo_n "checking for pointer difference type... " >&6; } 16982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTRDIFF_T" >&5 16983$as_echo "$PTRDIFF_T" >&6; } 16984 16985cat >>confdefs.h <<_ACEOF 16986#define TIFF_PTRDIFF_T $PTRDIFF_T 16987_ACEOF 16988 16989 16990cat >>confdefs.h <<_ACEOF 16991#define TIFF_PTRDIFF_FORMAT $PTRDIFF_FORMAT 16992_ACEOF 16993 16994 16995ac_fn_c_check_type "$LINENO" "int8" "ac_cv_type_int8" " 16996#if HAVE_INTTYPES_H 16997# include <inttypes.h> 16998#endif 16999 17000" 17001if test "x$ac_cv_type_int8" = xyes; then : 17002 17003cat >>confdefs.h <<_ACEOF 17004#define HAVE_INT8 1 17005_ACEOF 17006 17007 17008fi 17009ac_fn_c_check_type "$LINENO" "int16" "ac_cv_type_int16" " 17010#if HAVE_INTTYPES_H 17011# include <inttypes.h> 17012#endif 17013 17014" 17015if test "x$ac_cv_type_int16" = xyes; then : 17016 17017cat >>confdefs.h <<_ACEOF 17018#define HAVE_INT16 1 17019_ACEOF 17020 17021 17022fi 17023ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" " 17024#if HAVE_INTTYPES_H 17025# include <inttypes.h> 17026#endif 17027 17028" 17029if test "x$ac_cv_type_int32" = xyes; then : 17030 17031cat >>confdefs.h <<_ACEOF 17032#define HAVE_INT32 1 17033_ACEOF 17034 17035 17036fi 17037 17038 17039for ac_func in floor isascii memmove memset mmap pow setmode sqrt strchr strrchr strstr strtol strtoull 17040do : 17041 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17042ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17043if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17044 cat >>confdefs.h <<_ACEOF 17045#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17046_ACEOF 17047 17048fi 17049done 17050 17051 17052ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt" 17053if test "x$ac_cv_func_getopt" = xyes; then : 17054 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h 17055 17056else 17057 case " $LIBOBJS " in 17058 *" getopt.$ac_objext "* ) ;; 17059 *) LIBOBJS="$LIBOBJS getopt.$ac_objext" 17060 ;; 17061esac 17062 17063fi 17064 17065 17066ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 17067if test "x$ac_cv_func_strcasecmp" = xyes; then : 17068 $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h 17069 17070else 17071 case " $LIBOBJS " in 17072 *" strcasecmp.$ac_objext "* ) ;; 17073 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" 17074 ;; 17075esac 17076 17077fi 17078 17079 17080ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul" 17081if test "x$ac_cv_func_strtoul" = xyes; then : 17082 $as_echo "#define HAVE_STRTOUL 1" >>confdefs.h 17083 17084else 17085 case " $LIBOBJS " in 17086 *" strtoul.$ac_objext "* ) ;; 17087 *) LIBOBJS="$LIBOBJS strtoul.$ac_objext" 17088 ;; 17089esac 17090 17091fi 17092 17093 17094ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull" 17095if test "x$ac_cv_func_strtoull" = xyes; then : 17096 $as_echo "#define HAVE_STRTOULL 1" >>confdefs.h 17097 17098else 17099 case " $LIBOBJS " in 17100 *" strtoull.$ac_objext "* ) ;; 17101 *) LIBOBJS="$LIBOBJS strtoull.$ac_objext" 17102 ;; 17103esac 17104 17105fi 17106 17107 17108ac_fn_c_check_func "$LINENO" "lfind" "ac_cv_func_lfind" 17109if test "x$ac_cv_func_lfind" = xyes; then : 17110 $as_echo "#define HAVE_LFIND 1" >>confdefs.h 17111 17112else 17113 case " $LIBOBJS " in 17114 *" lfind.$ac_objext "* ) ;; 17115 *) LIBOBJS="$LIBOBJS lfind.$ac_objext" 17116 ;; 17117esac 17118 17119fi 17120 17121 17122 17123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking native cpu bit order" >&5 17124$as_echo_n "checking native cpu bit order... " >&6; } 17125case "$host_cpu" in 17126 i*86*|x86_64*) 17127 HOST_FILLORDER=FILLORDER_LSB2MSB 17128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lsb2msb" >&5 17129$as_echo "lsb2msb" >&6; } 17130 ;; 17131 *) 17132 HOST_FILLORDER=FILLORDER_MSB2LSB 17133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: msb2lsb" >&5 17134$as_echo "msb2lsb" >&6; } 17135 ;; 17136esac 17137 17138cat >>confdefs.h <<_ACEOF 17139#define HOST_FILLORDER $HOST_FILLORDER 17140_ACEOF 17141 17142 17143if test "$ac_cv_c_bigendian" = yes ; then 17144 HOST_BIGENDIAN=1 17145else 17146 HOST_BIGENDIAN=0 17147fi 17148 17149cat >>confdefs.h <<_ACEOF 17150#define HOST_BIGENDIAN $HOST_BIGENDIAN 17151_ACEOF 17152 17153 17154#_POSIX_C_SOURCE=2 17155#AC_DEFINE_UNQUOTED(_POSIX_C_SOURCE, $_POSIX_C_SOURCE, [Define this macro to a positive integer to control which POSIX functionality is made available.]) 17156 17157HAVE_IEEEFP=1 17158 17159cat >>confdefs.h <<_ACEOF 17160#define HAVE_IEEEFP $HAVE_IEEEFP 17161_ACEOF 17162 17163 17164 17165# Check whether --enable-rpath was given. 17166if test "${enable_rpath+set}" = set; then : 17167 enableval=$enable_rpath; HAVE_RPATH=$enableval 17168else 17169 HAVE_RPATH=no 17170fi 17171 17172 if test "$HAVE_RPATH" = "yes"; then 17173 HAVE_RPATH_TRUE= 17174 HAVE_RPATH_FALSE='#' 17175else 17176 HAVE_RPATH_TRUE='#' 17177 HAVE_RPATH_FALSE= 17178fi 17179 17180 17181 17182# Check whether --enable-largefile was given. 17183if test "${enable_largefile+set}" = set; then : 17184 enableval=$enable_largefile; 17185fi 17186 17187if test "$enable_largefile" != no; then 17188 17189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 17190$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 17191if ${ac_cv_sys_largefile_CC+:} false; then : 17192 $as_echo_n "(cached) " >&6 17193else 17194 ac_cv_sys_largefile_CC=no 17195 if test "$GCC" != yes; then 17196 ac_save_CC=$CC 17197 while :; do 17198 # IRIX 6.2 and later do not support large files by default, 17199 # so use the C compiler's -n32 option if that helps. 17200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17201/* end confdefs.h. */ 17202#include <sys/types.h> 17203 /* Check that off_t can represent 2**63 - 1 correctly. 17204 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17205 since some C++ compilers masquerading as C compilers 17206 incorrectly reject 9223372036854775807. */ 17207#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 17208 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17209 && LARGE_OFF_T % 2147483647 == 1) 17210 ? 1 : -1]; 17211int 17212main () 17213{ 17214 17215 ; 17216 return 0; 17217} 17218_ACEOF 17219 if ac_fn_c_try_compile "$LINENO"; then : 17220 break 17221fi 17222rm -f core conftest.err conftest.$ac_objext 17223 CC="$CC -n32" 17224 if ac_fn_c_try_compile "$LINENO"; then : 17225 ac_cv_sys_largefile_CC=' -n32'; break 17226fi 17227rm -f core conftest.err conftest.$ac_objext 17228 break 17229 done 17230 CC=$ac_save_CC 17231 rm -f conftest.$ac_ext 17232 fi 17233fi 17234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 17235$as_echo "$ac_cv_sys_largefile_CC" >&6; } 17236 if test "$ac_cv_sys_largefile_CC" != no; then 17237 CC=$CC$ac_cv_sys_largefile_CC 17238 fi 17239 17240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 17241$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 17242if ${ac_cv_sys_file_offset_bits+:} false; then : 17243 $as_echo_n "(cached) " >&6 17244else 17245 while :; do 17246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17247/* end confdefs.h. */ 17248#include <sys/types.h> 17249 /* Check that off_t can represent 2**63 - 1 correctly. 17250 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17251 since some C++ compilers masquerading as C compilers 17252 incorrectly reject 9223372036854775807. */ 17253#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 17254 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17255 && LARGE_OFF_T % 2147483647 == 1) 17256 ? 1 : -1]; 17257int 17258main () 17259{ 17260 17261 ; 17262 return 0; 17263} 17264_ACEOF 17265if ac_fn_c_try_compile "$LINENO"; then : 17266 ac_cv_sys_file_offset_bits=no; break 17267fi 17268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17270/* end confdefs.h. */ 17271#define _FILE_OFFSET_BITS 64 17272#include <sys/types.h> 17273 /* Check that off_t can represent 2**63 - 1 correctly. 17274 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17275 since some C++ compilers masquerading as C compilers 17276 incorrectly reject 9223372036854775807. */ 17277#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 17278 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17279 && LARGE_OFF_T % 2147483647 == 1) 17280 ? 1 : -1]; 17281int 17282main () 17283{ 17284 17285 ; 17286 return 0; 17287} 17288_ACEOF 17289if ac_fn_c_try_compile "$LINENO"; then : 17290 ac_cv_sys_file_offset_bits=64; break 17291fi 17292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17293 ac_cv_sys_file_offset_bits=unknown 17294 break 17295done 17296fi 17297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 17298$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 17299case $ac_cv_sys_file_offset_bits in #( 17300 no | unknown) ;; 17301 *) 17302cat >>confdefs.h <<_ACEOF 17303#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 17304_ACEOF 17305;; 17306esac 17307rm -rf conftest* 17308 if test $ac_cv_sys_file_offset_bits = unknown; then 17309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 17310$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 17311if ${ac_cv_sys_large_files+:} false; then : 17312 $as_echo_n "(cached) " >&6 17313else 17314 while :; do 17315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17316/* end confdefs.h. */ 17317#include <sys/types.h> 17318 /* Check that off_t can represent 2**63 - 1 correctly. 17319 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17320 since some C++ compilers masquerading as C compilers 17321 incorrectly reject 9223372036854775807. */ 17322#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 17323 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17324 && LARGE_OFF_T % 2147483647 == 1) 17325 ? 1 : -1]; 17326int 17327main () 17328{ 17329 17330 ; 17331 return 0; 17332} 17333_ACEOF 17334if ac_fn_c_try_compile "$LINENO"; then : 17335 ac_cv_sys_large_files=no; break 17336fi 17337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17339/* end confdefs.h. */ 17340#define _LARGE_FILES 1 17341#include <sys/types.h> 17342 /* Check that off_t can represent 2**63 - 1 correctly. 17343 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17344 since some C++ compilers masquerading as C compilers 17345 incorrectly reject 9223372036854775807. */ 17346#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 17347 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17348 && LARGE_OFF_T % 2147483647 == 1) 17349 ? 1 : -1]; 17350int 17351main () 17352{ 17353 17354 ; 17355 return 0; 17356} 17357_ACEOF 17358if ac_fn_c_try_compile "$LINENO"; then : 17359 ac_cv_sys_large_files=1; break 17360fi 17361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17362 ac_cv_sys_large_files=unknown 17363 break 17364done 17365fi 17366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 17367$as_echo "$ac_cv_sys_large_files" >&6; } 17368case $ac_cv_sys_large_files in #( 17369 no | unknown) ;; 17370 *) 17371cat >>confdefs.h <<_ACEOF 17372#define _LARGE_FILES $ac_cv_sys_large_files 17373_ACEOF 17374;; 17375esac 17376rm -rf conftest* 17377 fi 17378fi 17379 17380 17381 17382LIBTIFF_DOCDIR=\${prefix}/share/doc/${PACKAGE}-${LIBTIFF_VERSION} 17383 17384 17385# Check whether --with-docdir was given. 17386if test "${with_docdir+set}" = set; then : 17387 withval=$with_docdir; 17388fi 17389 17390if test "x$with_docdir" != "x" ; then 17391 LIBTIFF_DOCDIR=$with_docdir 17392fi 17393 17394 17395 17396 17397# Check whether --enable-ccitt was given. 17398if test "${enable_ccitt+set}" = set; then : 17399 enableval=$enable_ccitt; HAVE_CCITT=$enableval 17400else 17401 HAVE_CCITT=yes 17402fi 17403 17404 17405if test "$HAVE_CCITT" = "yes" ; then 17406 17407$as_echo "#define CCITT_SUPPORT 1" >>confdefs.h 17408 17409fi 17410 17411# Check whether --enable-packbits was given. 17412if test "${enable_packbits+set}" = set; then : 17413 enableval=$enable_packbits; HAVE_PACKBITS=$enableval 17414else 17415 HAVE_PACKBITS=yes 17416fi 17417 17418 17419if test "$HAVE_PACKBITS" = "yes" ; then 17420 17421$as_echo "#define PACKBITS_SUPPORT 1" >>confdefs.h 17422 17423fi 17424 17425# Check whether --enable-lzw was given. 17426if test "${enable_lzw+set}" = set; then : 17427 enableval=$enable_lzw; HAVE_LZW=$enableval 17428else 17429 HAVE_LZW=yes 17430fi 17431 17432 17433if test "$HAVE_LZW" = "yes" ; then 17434 17435$as_echo "#define LZW_SUPPORT 1" >>confdefs.h 17436 17437fi 17438 17439# Check whether --enable-thunder was given. 17440if test "${enable_thunder+set}" = set; then : 17441 enableval=$enable_thunder; HAVE_THUNDER=$enableval 17442else 17443 HAVE_THUNDER=yes 17444fi 17445 17446 17447if test "$HAVE_THUNDER" = "yes" ; then 17448 17449$as_echo "#define THUNDER_SUPPORT 1" >>confdefs.h 17450 17451fi 17452 17453HAVE_NEXT=yes 17454 17455# Check whether --enable-next was given. 17456if test "${enable_next+set}" = set; then : 17457 enableval=$enable_next; HAVE_NEXT=$enableval 17458else 17459 HAVE_NEXT=yes 17460fi 17461 17462 17463if test "$HAVE_NEXT" = "yes" ; then 17464 17465$as_echo "#define NEXT_SUPPORT 1" >>confdefs.h 17466 17467fi 17468 17469# Check whether --enable-logluv was given. 17470if test "${enable_logluv+set}" = set; then : 17471 enableval=$enable_logluv; HAVE_LOGLUV=$enableval 17472else 17473 HAVE_LOGLUV=yes 17474fi 17475 17476 17477if test "$HAVE_LOGLUV" = "yes" ; then 17478 17479$as_echo "#define LOGLUV_SUPPORT 1" >>confdefs.h 17480 17481fi 17482 17483 17484# Check whether --enable-mdi was given. 17485if test "${enable_mdi+set}" = set; then : 17486 enableval=$enable_mdi; HAVE_MDI=$enableval 17487else 17488 HAVE_MDI=yes 17489fi 17490 17491 17492if test "$HAVE_MDI" = "yes" ; then 17493 17494$as_echo "#define MDI_SUPPORT 1" >>confdefs.h 17495 17496fi 17497 17498 17499HAVE_ZLIB=no 17500 17501# Check whether --enable-zlib was given. 17502if test "${enable_zlib+set}" = set; then : 17503 enableval=$enable_zlib; 17504fi 17505 17506 17507# Check whether --with-zlib-include-dir was given. 17508if test "${with_zlib_include_dir+set}" = set; then : 17509 withval=$with_zlib_include_dir; 17510fi 17511 17512 17513# Check whether --with-zlib-lib-dir was given. 17514if test "${with_zlib_lib_dir+set}" = set; then : 17515 withval=$with_zlib_lib_dir; 17516fi 17517 17518 17519if test "x$enable_zlib" != "xno" ; then 17520 17521 if test "x$with_zlib_lib_dir" != "x" ; then 17522 LDFLAGS="-L$with_zlib_lib_dir $LDFLAGS" 17523 fi 17524 17525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5 17526$as_echo_n "checking for inflateEnd in -lz... " >&6; } 17527if ${ac_cv_lib_z_inflateEnd+:} false; then : 17528 $as_echo_n "(cached) " >&6 17529else 17530 ac_check_lib_save_LIBS=$LIBS 17531LIBS="-lz $LIBS" 17532cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17533/* end confdefs.h. */ 17534 17535/* Override any GCC internal prototype to avoid an error. 17536 Use char because int might match the return type of a GCC 17537 builtin and then its argument prototype would still apply. */ 17538#ifdef __cplusplus 17539extern "C" 17540#endif 17541char inflateEnd (); 17542int 17543main () 17544{ 17545return inflateEnd (); 17546 ; 17547 return 0; 17548} 17549_ACEOF 17550if ac_fn_c_try_link "$LINENO"; then : 17551 ac_cv_lib_z_inflateEnd=yes 17552else 17553 ac_cv_lib_z_inflateEnd=no 17554fi 17555rm -f core conftest.err conftest.$ac_objext \ 17556 conftest$ac_exeext conftest.$ac_ext 17557LIBS=$ac_check_lib_save_LIBS 17558fi 17559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5 17560$as_echo "$ac_cv_lib_z_inflateEnd" >&6; } 17561if test "x$ac_cv_lib_z_inflateEnd" = xyes; then : 17562 zlib_lib=yes 17563else 17564 zlib_lib=no 17565fi 17566 17567 if test "$zlib_lib" = "no" -a "x$with_zlib_lib_dir" != "x"; then 17568 as_fn_error $? "Zlib library not found at $with_zlib_lib_dir" "$LINENO" 5 17569 fi 17570 17571 if test "x$with_zlib_include_dir" != "x" ; then 17572 CPPFLAGS="-I$with_zlib_include_dir $CPPFLAGS" 17573 fi 17574 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 17575if test "x$ac_cv_header_zlib_h" = xyes; then : 17576 zlib_h=yes 17577else 17578 zlib_h=no 17579fi 17580 17581 17582 if test "$zlib_h" = "no" -a "x$with_zlib_include_dir" != "x" ; then 17583 as_fn_error $? "Zlib headers not found at $with_zlib_include_dir" "$LINENO" 5 17584 fi 17585 17586 if test "$zlib_lib" = "yes" -a "$zlib_h" = "yes" ; then 17587 HAVE_ZLIB=yes 17588 fi 17589 17590fi 17591 17592if test "$HAVE_ZLIB" = "yes" ; then 17593 17594$as_echo "#define ZIP_SUPPORT 1" >>confdefs.h 17595 17596 LIBS="-lz $LIBS" 17597 tiff_libs_private="-lz ${tiff_libs_private}" 17598 17599 if test "$HAVE_RPATH" = "yes" -a "x$with_zlib_lib_dir" != "x" ; then 17600 LIBDIR="-R $with_zlib_lib_dir $LIBDIR" 17601 fi 17602 17603fi 17604 17605 17606# Check whether --enable-pixarlog was given. 17607if test "${enable_pixarlog+set}" = set; then : 17608 enableval=$enable_pixarlog; HAVE_PIXARLOG=$enableval 17609else 17610 HAVE_PIXARLOG=yes 17611fi 17612 17613 17614if test "$HAVE_ZLIB" = "yes" -a "$HAVE_PIXARLOG" = "yes" ; then 17615 17616$as_echo "#define PIXARLOG_SUPPORT 1" >>confdefs.h 17617 17618else 17619 HAVE_PIXARLOG=no 17620fi 17621 17622 17623HAVE_JPEG=no 17624 17625# Check whether --enable-jpeg was given. 17626if test "${enable_jpeg+set}" = set; then : 17627 enableval=$enable_jpeg; 17628fi 17629 17630 17631# Check whether --with-jpeg-include-dir was given. 17632if test "${with_jpeg_include_dir+set}" = set; then : 17633 withval=$with_jpeg_include_dir; 17634fi 17635 17636 17637# Check whether --with-jpeg-lib-dir was given. 17638if test "${with_jpeg_lib_dir+set}" = set; then : 17639 withval=$with_jpeg_lib_dir; 17640fi 17641 17642 17643if test "x$enable_jpeg" != "xno" ; then 17644 17645 if test "x$with_jpeg_lib_dir" != "x" ; then 17646 LDFLAGS="-L$with_jpeg_lib_dir $LDFLAGS" 17647 17648 fi 17649 17650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_scanlines in -ljpeg" >&5 17651$as_echo_n "checking for jpeg_read_scanlines in -ljpeg... " >&6; } 17652if ${ac_cv_lib_jpeg_jpeg_read_scanlines+:} false; then : 17653 $as_echo_n "(cached) " >&6 17654else 17655 ac_check_lib_save_LIBS=$LIBS 17656LIBS="-ljpeg $LIBS" 17657cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17658/* end confdefs.h. */ 17659 17660/* Override any GCC internal prototype to avoid an error. 17661 Use char because int might match the return type of a GCC 17662 builtin and then its argument prototype would still apply. */ 17663#ifdef __cplusplus 17664extern "C" 17665#endif 17666char jpeg_read_scanlines (); 17667int 17668main () 17669{ 17670return jpeg_read_scanlines (); 17671 ; 17672 return 0; 17673} 17674_ACEOF 17675if ac_fn_c_try_link "$LINENO"; then : 17676 ac_cv_lib_jpeg_jpeg_read_scanlines=yes 17677else 17678 ac_cv_lib_jpeg_jpeg_read_scanlines=no 17679fi 17680rm -f core conftest.err conftest.$ac_objext \ 17681 conftest$ac_exeext conftest.$ac_ext 17682LIBS=$ac_check_lib_save_LIBS 17683fi 17684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_scanlines" >&5 17685$as_echo "$ac_cv_lib_jpeg_jpeg_read_scanlines" >&6; } 17686if test "x$ac_cv_lib_jpeg_jpeg_read_scanlines" = xyes; then : 17687 jpeg_lib=yes 17688else 17689 jpeg_lib=no 17690fi 17691 17692 if test "$jpeg_lib" = "no" -a "x$with_jpeg_lib_dir" != "x" ; then 17693 as_fn_error $? "IJG JPEG library not found at $with_jpeg_lib_dir" "$LINENO" 5 17694 fi 17695 17696 if test "x$with_jpeg_include_dir" != "x" ; then 17697 CPPFLAGS="-I$with_jpeg_include_dir $CPPFLAGS" 17698 fi 17699 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 17700if test "x$ac_cv_header_jpeglib_h" = xyes; then : 17701 jpeg_h=yes 17702else 17703 jpeg_h=no 17704fi 17705 17706 17707 if test "$jpeg_h" = "no" -a "x$with_jpeg_include_dir" != "x" ; then 17708 as_fn_error $? "IJG JPEG library headers not found at $with_jpeg_include_dir" "$LINENO" 5 17709 fi 17710 17711 if test "$jpeg_lib" = "yes" -a "$jpeg_h" = "yes" ; then 17712 HAVE_JPEG=yes 17713 fi 17714 17715fi 17716 17717if test "$HAVE_JPEG" = "yes" ; then 17718 17719$as_echo "#define JPEG_SUPPORT 1" >>confdefs.h 17720 17721 LIBS="-ljpeg $LIBS" 17722 tiff_libs_private="-ljpeg ${tiff_libs_private}" 17723 17724 if test "$HAVE_RPATH" = "yes" -a "x$with_jpeg_lib_dir" != "x" ; then 17725 LIBDIR="-R $with_jpeg_lib_dir $LIBDIR" 17726 fi 17727 17728fi 17729 17730 17731# Check whether --enable-old-jpeg was given. 17732if test "${enable_old_jpeg+set}" = set; then : 17733 enableval=$enable_old_jpeg; HAVE_OJPEG=${enableval} 17734else 17735 HAVE_OJPEG=yes 17736fi 17737 17738 17739if test "$HAVE_JPEG" = "yes" -a "$HAVE_OJPEG" = "yes" ; then 17740 17741$as_echo "#define OJPEG_SUPPORT 1" >>confdefs.h 17742 17743else 17744 HAVE_OJPEG=no 17745fi 17746 17747 17748HAVE_JBIG=no 17749 17750# Check whether --enable-jbig was given. 17751if test "${enable_jbig+set}" = set; then : 17752 enableval=$enable_jbig; 17753fi 17754 17755 17756# Check whether --with-jbig-include-dir was given. 17757if test "${with_jbig_include_dir+set}" = set; then : 17758 withval=$with_jbig_include_dir; 17759fi 17760 17761 17762# Check whether --with-jbig-lib-dir was given. 17763if test "${with_jbig_lib_dir+set}" = set; then : 17764 withval=$with_jbig_lib_dir; 17765fi 17766 17767 17768if test "x$enable_jbig" != "xno" ; then 17769 17770 if test "x$with_jbig_lib_dir" != "x" ; then 17771 LDFLAGS="-L$with_jbig_lib_dir $LDFLAGS" 17772 17773 fi 17774 17775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5 17776$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; } 17777if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then : 17778 $as_echo_n "(cached) " >&6 17779else 17780 ac_check_lib_save_LIBS=$LIBS 17781LIBS="-ljbig $LIBS" 17782cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17783/* end confdefs.h. */ 17784 17785/* Override any GCC internal prototype to avoid an error. 17786 Use char because int might match the return type of a GCC 17787 builtin and then its argument prototype would still apply. */ 17788#ifdef __cplusplus 17789extern "C" 17790#endif 17791char jbg_dec_init (); 17792int 17793main () 17794{ 17795return jbg_dec_init (); 17796 ; 17797 return 0; 17798} 17799_ACEOF 17800if ac_fn_c_try_link "$LINENO"; then : 17801 ac_cv_lib_jbig_jbg_dec_init=yes 17802else 17803 ac_cv_lib_jbig_jbg_dec_init=no 17804fi 17805rm -f core conftest.err conftest.$ac_objext \ 17806 conftest$ac_exeext conftest.$ac_ext 17807LIBS=$ac_check_lib_save_LIBS 17808fi 17809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5 17810$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; } 17811if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then : 17812 jbig_lib=yes 17813else 17814 jbig_lib=no 17815fi 17816 17817 if test "$jbig_lib" = "no" -a "x$with_jbig_lib_dir" != "x" ; then 17818 as_fn_error $? "JBIG-KIT library not found at $with_jbig_lib_dir" "$LINENO" 5 17819 fi 17820 17821 if test "x$with_jbig_include_dir" != "x" ; then 17822 CPPFLAGS="-I$with_jbig_include_dir $CPPFLAGS" 17823 fi 17824 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default" 17825if test "x$ac_cv_header_jbig_h" = xyes; then : 17826 jbig_h=yes 17827else 17828 jbig_h=no 17829fi 17830 17831 17832 if test "$jbig_h" = "no" -a "x$with_jbig_include_dir" != "x" ; then 17833 as_fn_error $? "JBIG-KIT library headers not found at $with_jbig_include_dir" "$LINENO" 5 17834 fi 17835 17836 if test "$jbig_lib" = "yes" -a "$jbig_h" = "yes" ; then 17837 HAVE_JBIG=yes 17838 fi 17839 17840fi 17841 17842if test "$HAVE_JBIG" = "yes" ; then 17843 17844$as_echo "#define JBIG_SUPPORT 1" >>confdefs.h 17845 17846 LIBS="-ljbig $LIBS" 17847 tiff_libs_private="-ljbig ${tiff_libs_private}" 17848 17849 if test "$HAVE_RPATH" = "yes" -a "x$with_jbig_lib_dir" != "x" ; then 17850 LIBDIR="-R $with_jbig_lib_dir $LIBDIR" 17851 fi 17852 17853 # Older versions of jbigkit lack jbg_newlen 17854 for ac_func in jbg_newlen 17855do : 17856 ac_fn_c_check_func "$LINENO" "jbg_newlen" "ac_cv_func_jbg_newlen" 17857if test "x$ac_cv_func_jbg_newlen" = xyes; then : 17858 cat >>confdefs.h <<_ACEOF 17859#define HAVE_JBG_NEWLEN 1 17860_ACEOF 17861 17862fi 17863done 17864 17865 17866fi 17867 17868 17869HAVE_LZMA=no 17870 17871# Check whether --enable-lzma was given. 17872if test "${enable_lzma+set}" = set; then : 17873 enableval=$enable_lzma; 17874fi 17875 17876 17877# Check whether --with-lzma-include-dir was given. 17878if test "${with_lzma_include_dir+set}" = set; then : 17879 withval=$with_lzma_include_dir; 17880fi 17881 17882 17883# Check whether --with-lzma-lib-dir was given. 17884if test "${with_lzma_lib_dir+set}" = set; then : 17885 withval=$with_lzma_lib_dir; 17886fi 17887 17888 17889if test "x$enable_lzma" != "xno" ; then 17890 17891 if test "x$with_lzma_lib_dir" != "x" ; then 17892 LDFLAGS="-L$with_lzma_lib_dir $LDFLAGS" 17893 fi 17894 17895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5 17896$as_echo_n "checking for lzma_code in -llzma... " >&6; } 17897if ${ac_cv_lib_lzma_lzma_code+:} false; then : 17898 $as_echo_n "(cached) " >&6 17899else 17900 ac_check_lib_save_LIBS=$LIBS 17901LIBS="-llzma $LIBS" 17902cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17903/* end confdefs.h. */ 17904 17905/* Override any GCC internal prototype to avoid an error. 17906 Use char because int might match the return type of a GCC 17907 builtin and then its argument prototype would still apply. */ 17908#ifdef __cplusplus 17909extern "C" 17910#endif 17911char lzma_code (); 17912int 17913main () 17914{ 17915return lzma_code (); 17916 ; 17917 return 0; 17918} 17919_ACEOF 17920if ac_fn_c_try_link "$LINENO"; then : 17921 ac_cv_lib_lzma_lzma_code=yes 17922else 17923 ac_cv_lib_lzma_lzma_code=no 17924fi 17925rm -f core conftest.err conftest.$ac_objext \ 17926 conftest$ac_exeext conftest.$ac_ext 17927LIBS=$ac_check_lib_save_LIBS 17928fi 17929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5 17930$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; } 17931if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then : 17932 lzma_lib=yes 17933else 17934 lzma_lib=no 17935fi 17936 17937 if test "$lzma_lib" = "no" -a "x$with_lzma_lib_dir" != "x"; then 17938 as_fn_error $? "lzma library not found at $with_lzma_lib_dir" "$LINENO" 5 17939 fi 17940 17941 if test "x$with_lzma_include_dir" != "x" ; then 17942 CPPFLAGS="-I$with_lzma_include_dir $CPPFLAGS" 17943 fi 17944 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default" 17945if test "x$ac_cv_header_lzma_h" = xyes; then : 17946 lzma_h=yes 17947else 17948 lzma_h=no 17949fi 17950 17951 17952 if test "$lzma_h" = "no" -a "x$with_lzma_include_dir" != "x" ; then 17953 as_fn_error $? "Liblzma headers not found at $with_lzma_include_dir" "$LINENO" 5 17954 fi 17955 17956 if test "$lzma_lib" = "yes" -a "$lzma_h" = "yes" ; then 17957 HAVE_LZMA=yes 17958 fi 17959 17960fi 17961 17962if test "$HAVE_LZMA" = "yes" ; then 17963 17964$as_echo "#define LZMA_SUPPORT 1" >>confdefs.h 17965 17966 LIBS="-llzma $LIBS" 17967 17968 if test "$HAVE_RPATH" = "yes" -a "x$with_lzma_lib_dir" != "x" ; then 17969 LIBDIR="-R $with_lzma_lib_dir $LIBDIR" 17970 fi 17971 17972fi 17973 17974 17975HAVE_JPEG12=no 17976 17977# Check whether --enable-jpeg12 was given. 17978if test "${enable_jpeg12+set}" = set; then : 17979 enableval=$enable_jpeg12; 17980fi 17981 17982 17983# Check whether --with-jpeg12-include-dir was given. 17984if test "${with_jpeg12_include_dir+set}" = set; then : 17985 withval=$with_jpeg12_include_dir; 17986fi 17987 17988 17989# Check whether --with-jpeg12-lib was given. 17990if test "${with_jpeg12_lib+set}" = set; then : 17991 withval=$with_jpeg12_lib; 17992fi 17993 17994 17995if test "x$enable_jpeg12" == "xyes" ; then 17996 17997 if test "x$with_jpeg12_lib" != "x" ; then 17998 LIBS="$with_jpeg12_lib $LIBS" 17999 fi 18000 18001 HAVE_JPEG12=yes 18002 18003 18004$as_echo "#define JPEG_DUAL_MODE_8_12 1" >>confdefs.h 18005 18006 if test "x$with_jpeg12_include_dir" != "x" ; then 18007 18008cat >>confdefs.h <<_ACEOF 18009#define LIBJPEG_12_PATH "$with_jpeg12_include_dir/jpeglib.h" 18010_ACEOF 18011 18012 fi 18013fi 18014 18015 18016 18017# Check whether --enable-cxx was given. 18018if test "${enable_cxx+set}" = set; then : 18019 enableval=$enable_cxx; HAVE_CXX=$enableval 18020else 18021 HAVE_CXX=yes 18022fi 18023 18024 18025if test "$HAVE_CXX" = "yes" ; then 18026 18027$as_echo "#define CXX_SUPPORT 1" >>confdefs.h 18028 18029else 18030 HAVE_CXX=no 18031fi 18032 18033 if test "$HAVE_CXX" = "yes"; then 18034 HAVE_CXX_TRUE= 18035 HAVE_CXX_FALSE='#' 18036else 18037 HAVE_CXX_TRUE='#' 18038 HAVE_CXX_FALSE= 18039fi 18040 18041 18042 18043HAVE_OPENGL=no 18044 18045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 18046$as_echo_n "checking for X... " >&6; } 18047 18048 18049# Check whether --with-x was given. 18050if test "${with_x+set}" = set; then : 18051 withval=$with_x; 18052fi 18053 18054# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 18055if test "x$with_x" = xno; then 18056 # The user explicitly disabled X. 18057 have_x=disabled 18058else 18059 case $x_includes,$x_libraries in #( 18060 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 18061 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 18062 $as_echo_n "(cached) " >&6 18063else 18064 # One or both of the vars are not set, and there is no cached value. 18065ac_x_includes=no ac_x_libraries=no 18066rm -f -r conftest.dir 18067if mkdir conftest.dir; then 18068 cd conftest.dir 18069 cat >Imakefile <<'_ACEOF' 18070incroot: 18071 @echo incroot='${INCROOT}' 18072usrlibdir: 18073 @echo usrlibdir='${USRLIBDIR}' 18074libdir: 18075 @echo libdir='${LIBDIR}' 18076_ACEOF 18077 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 18078 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 18079 for ac_var in incroot usrlibdir libdir; do 18080 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 18081 done 18082 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 18083 for ac_extension in a so sl dylib la dll; do 18084 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 18085 test -f "$ac_im_libdir/libX11.$ac_extension"; then 18086 ac_im_usrlibdir=$ac_im_libdir; break 18087 fi 18088 done 18089 # Screen out bogus values from the imake configuration. They are 18090 # bogus both because they are the default anyway, and because 18091 # using them would break gcc on systems where it needs fixed includes. 18092 case $ac_im_incroot in 18093 /usr/include) ac_x_includes= ;; 18094 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 18095 esac 18096 case $ac_im_usrlibdir in 18097 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 18098 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 18099 esac 18100 fi 18101 cd .. 18102 rm -f -r conftest.dir 18103fi 18104 18105# Standard set of common directories for X headers. 18106# Check X11 before X11Rn because it is often a symlink to the current release. 18107ac_x_header_dirs=' 18108/usr/X11/include 18109/usr/X11R7/include 18110/usr/X11R6/include 18111/usr/X11R5/include 18112/usr/X11R4/include 18113 18114/usr/include/X11 18115/usr/include/X11R7 18116/usr/include/X11R6 18117/usr/include/X11R5 18118/usr/include/X11R4 18119 18120/usr/local/X11/include 18121/usr/local/X11R7/include 18122/usr/local/X11R6/include 18123/usr/local/X11R5/include 18124/usr/local/X11R4/include 18125 18126/usr/local/include/X11 18127/usr/local/include/X11R7 18128/usr/local/include/X11R6 18129/usr/local/include/X11R5 18130/usr/local/include/X11R4 18131 18132/usr/X386/include 18133/usr/x386/include 18134/usr/XFree86/include/X11 18135 18136/usr/include 18137/usr/local/include 18138/usr/unsupported/include 18139/usr/athena/include 18140/usr/local/x11r5/include 18141/usr/lpp/Xamples/include 18142 18143/usr/openwin/include 18144/usr/openwin/share/include' 18145 18146if test "$ac_x_includes" = no; then 18147 # Guess where to find include files, by looking for Xlib.h. 18148 # First, try using that file with no special directory specified. 18149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18150/* end confdefs.h. */ 18151#include <X11/Xlib.h> 18152_ACEOF 18153if ac_fn_c_try_cpp "$LINENO"; then : 18154 # We can compile using X headers with no special include directory. 18155ac_x_includes= 18156else 18157 for ac_dir in $ac_x_header_dirs; do 18158 if test -r "$ac_dir/X11/Xlib.h"; then 18159 ac_x_includes=$ac_dir 18160 break 18161 fi 18162done 18163fi 18164rm -f conftest.err conftest.i conftest.$ac_ext 18165fi # $ac_x_includes = no 18166 18167if test "$ac_x_libraries" = no; then 18168 # Check for the libraries. 18169 # See if we find them without any special options. 18170 # Don't add to $LIBS permanently. 18171 ac_save_LIBS=$LIBS 18172 LIBS="-lX11 $LIBS" 18173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18174/* end confdefs.h. */ 18175#include <X11/Xlib.h> 18176int 18177main () 18178{ 18179XrmInitialize () 18180 ; 18181 return 0; 18182} 18183_ACEOF 18184if ac_fn_c_try_link "$LINENO"; then : 18185 LIBS=$ac_save_LIBS 18186# We can link X programs with no special library path. 18187ac_x_libraries= 18188else 18189 LIBS=$ac_save_LIBS 18190for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 18191do 18192 # Don't even attempt the hair of trying to link an X program! 18193 for ac_extension in a so sl dylib la dll; do 18194 if test -r "$ac_dir/libX11.$ac_extension"; then 18195 ac_x_libraries=$ac_dir 18196 break 2 18197 fi 18198 done 18199done 18200fi 18201rm -f core conftest.err conftest.$ac_objext \ 18202 conftest$ac_exeext conftest.$ac_ext 18203fi # $ac_x_libraries = no 18204 18205case $ac_x_includes,$ac_x_libraries in #( 18206 no,* | *,no | *\'*) 18207 # Didn't find X, or a directory has "'" in its name. 18208 ac_cv_have_x="have_x=no";; #( 18209 *) 18210 # Record where we found X for the cache. 18211 ac_cv_have_x="have_x=yes\ 18212 ac_x_includes='$ac_x_includes'\ 18213 ac_x_libraries='$ac_x_libraries'" 18214esac 18215fi 18216;; #( 18217 *) have_x=yes;; 18218 esac 18219 eval "$ac_cv_have_x" 18220fi # $with_x != no 18221 18222if test "$have_x" != yes; then 18223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 18224$as_echo "$have_x" >&6; } 18225 no_x=yes 18226else 18227 # If each of the values was on the command line, it overrides each guess. 18228 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 18229 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 18230 # Update the cache value to reflect the command line values. 18231 ac_cv_have_x="have_x=yes\ 18232 ac_x_includes='$x_includes'\ 18233 ac_x_libraries='$x_libraries'" 18234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 18235$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 18236fi 18237 18238if test "$no_x" = yes; then 18239 # Not all programs may use this symbol, but it does not hurt to define it. 18240 18241$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 18242 18243 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 18244else 18245 if test -n "$x_includes"; then 18246 X_CFLAGS="$X_CFLAGS -I$x_includes" 18247 fi 18248 18249 # It would also be nice to do this for all -L options, not just this one. 18250 if test -n "$x_libraries"; then 18251 X_LIBS="$X_LIBS -L$x_libraries" 18252 # For Solaris; some versions of Sun CC require a space after -R and 18253 # others require no space. Words are not sufficient . . . . 18254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 18255$as_echo_n "checking whether -R must be followed by a space... " >&6; } 18256 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 18257 ac_xsave_c_werror_flag=$ac_c_werror_flag 18258 ac_c_werror_flag=yes 18259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18260/* end confdefs.h. */ 18261 18262int 18263main () 18264{ 18265 18266 ; 18267 return 0; 18268} 18269_ACEOF 18270if ac_fn_c_try_link "$LINENO"; then : 18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18272$as_echo "no" >&6; } 18273 X_LIBS="$X_LIBS -R$x_libraries" 18274else 18275 LIBS="$ac_xsave_LIBS -R $x_libraries" 18276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18277/* end confdefs.h. */ 18278 18279int 18280main () 18281{ 18282 18283 ; 18284 return 0; 18285} 18286_ACEOF 18287if ac_fn_c_try_link "$LINENO"; then : 18288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18289$as_echo "yes" >&6; } 18290 X_LIBS="$X_LIBS -R $x_libraries" 18291else 18292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 18293$as_echo "neither works" >&6; } 18294fi 18295rm -f core conftest.err conftest.$ac_objext \ 18296 conftest$ac_exeext conftest.$ac_ext 18297fi 18298rm -f core conftest.err conftest.$ac_objext \ 18299 conftest$ac_exeext conftest.$ac_ext 18300 ac_c_werror_flag=$ac_xsave_c_werror_flag 18301 LIBS=$ac_xsave_LIBS 18302 fi 18303 18304 # Check for system-dependent libraries X programs must link with. 18305 # Do this before checking for the system-independent R6 libraries 18306 # (-lICE), since we may need -lsocket or whatever for X linking. 18307 18308 if test "$ISC" = yes; then 18309 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 18310 else 18311 # Martyn Johnson says this is needed for Ultrix, if the X 18312 # libraries were built with DECnet support. And Karl Berry says 18313 # the Alpha needs dnet_stub (dnet does not exist). 18314 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 18315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18316/* end confdefs.h. */ 18317 18318/* Override any GCC internal prototype to avoid an error. 18319 Use char because int might match the return type of a GCC 18320 builtin and then its argument prototype would still apply. */ 18321#ifdef __cplusplus 18322extern "C" 18323#endif 18324char XOpenDisplay (); 18325int 18326main () 18327{ 18328return XOpenDisplay (); 18329 ; 18330 return 0; 18331} 18332_ACEOF 18333if ac_fn_c_try_link "$LINENO"; then : 18334 18335else 18336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 18337$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 18338if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 18339 $as_echo_n "(cached) " >&6 18340else 18341 ac_check_lib_save_LIBS=$LIBS 18342LIBS="-ldnet $LIBS" 18343cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18344/* end confdefs.h. */ 18345 18346/* Override any GCC internal prototype to avoid an error. 18347 Use char because int might match the return type of a GCC 18348 builtin and then its argument prototype would still apply. */ 18349#ifdef __cplusplus 18350extern "C" 18351#endif 18352char dnet_ntoa (); 18353int 18354main () 18355{ 18356return dnet_ntoa (); 18357 ; 18358 return 0; 18359} 18360_ACEOF 18361if ac_fn_c_try_link "$LINENO"; then : 18362 ac_cv_lib_dnet_dnet_ntoa=yes 18363else 18364 ac_cv_lib_dnet_dnet_ntoa=no 18365fi 18366rm -f core conftest.err conftest.$ac_objext \ 18367 conftest$ac_exeext conftest.$ac_ext 18368LIBS=$ac_check_lib_save_LIBS 18369fi 18370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 18371$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 18372if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 18373 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 18374fi 18375 18376 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 18377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 18378$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 18379if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 18380 $as_echo_n "(cached) " >&6 18381else 18382 ac_check_lib_save_LIBS=$LIBS 18383LIBS="-ldnet_stub $LIBS" 18384cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18385/* end confdefs.h. */ 18386 18387/* Override any GCC internal prototype to avoid an error. 18388 Use char because int might match the return type of a GCC 18389 builtin and then its argument prototype would still apply. */ 18390#ifdef __cplusplus 18391extern "C" 18392#endif 18393char dnet_ntoa (); 18394int 18395main () 18396{ 18397return dnet_ntoa (); 18398 ; 18399 return 0; 18400} 18401_ACEOF 18402if ac_fn_c_try_link "$LINENO"; then : 18403 ac_cv_lib_dnet_stub_dnet_ntoa=yes 18404else 18405 ac_cv_lib_dnet_stub_dnet_ntoa=no 18406fi 18407rm -f core conftest.err conftest.$ac_objext \ 18408 conftest$ac_exeext conftest.$ac_ext 18409LIBS=$ac_check_lib_save_LIBS 18410fi 18411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 18412$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 18413if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 18414 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 18415fi 18416 18417 fi 18418fi 18419rm -f core conftest.err conftest.$ac_objext \ 18420 conftest$ac_exeext conftest.$ac_ext 18421 LIBS="$ac_xsave_LIBS" 18422 18423 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT, 18424 # to get the SysV transport functions. 18425 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 18426 # needs -lnsl. 18427 # The nsl library prevents programs from opening the X display 18428 # on Irix 5.2, according to T.E. Dickey. 18429 # The functions gethostbyname, getservbyname, and inet_addr are 18430 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 18431 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 18432if test "x$ac_cv_func_gethostbyname" = xyes; then : 18433 18434fi 18435 18436 if test $ac_cv_func_gethostbyname = no; then 18437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 18438$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 18439if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 18440 $as_echo_n "(cached) " >&6 18441else 18442 ac_check_lib_save_LIBS=$LIBS 18443LIBS="-lnsl $LIBS" 18444cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18445/* end confdefs.h. */ 18446 18447/* Override any GCC internal prototype to avoid an error. 18448 Use char because int might match the return type of a GCC 18449 builtin and then its argument prototype would still apply. */ 18450#ifdef __cplusplus 18451extern "C" 18452#endif 18453char gethostbyname (); 18454int 18455main () 18456{ 18457return gethostbyname (); 18458 ; 18459 return 0; 18460} 18461_ACEOF 18462if ac_fn_c_try_link "$LINENO"; then : 18463 ac_cv_lib_nsl_gethostbyname=yes 18464else 18465 ac_cv_lib_nsl_gethostbyname=no 18466fi 18467rm -f core conftest.err conftest.$ac_objext \ 18468 conftest$ac_exeext conftest.$ac_ext 18469LIBS=$ac_check_lib_save_LIBS 18470fi 18471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 18472$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 18473if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 18474 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 18475fi 18476 18477 if test $ac_cv_lib_nsl_gethostbyname = no; then 18478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 18479$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 18480if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 18481 $as_echo_n "(cached) " >&6 18482else 18483 ac_check_lib_save_LIBS=$LIBS 18484LIBS="-lbsd $LIBS" 18485cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18486/* end confdefs.h. */ 18487 18488/* Override any GCC internal prototype to avoid an error. 18489 Use char because int might match the return type of a GCC 18490 builtin and then its argument prototype would still apply. */ 18491#ifdef __cplusplus 18492extern "C" 18493#endif 18494char gethostbyname (); 18495int 18496main () 18497{ 18498return gethostbyname (); 18499 ; 18500 return 0; 18501} 18502_ACEOF 18503if ac_fn_c_try_link "$LINENO"; then : 18504 ac_cv_lib_bsd_gethostbyname=yes 18505else 18506 ac_cv_lib_bsd_gethostbyname=no 18507fi 18508rm -f core conftest.err conftest.$ac_objext \ 18509 conftest$ac_exeext conftest.$ac_ext 18510LIBS=$ac_check_lib_save_LIBS 18511fi 18512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 18513$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 18514if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 18515 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 18516fi 18517 18518 fi 18519 fi 18520 18521 # [email protected] says without -lsocket, 18522 # socket/setsockopt and other routines are undefined under SCO ODT 18523 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 18524 # on later versions), says Simon Leinen: it contains gethostby* 18525 # variants that don't use the name server (or something). -lsocket 18526 # must be given before -lnsl if both are needed. We assume that 18527 # if connect needs -lnsl, so does gethostbyname. 18528 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 18529if test "x$ac_cv_func_connect" = xyes; then : 18530 18531fi 18532 18533 if test $ac_cv_func_connect = no; then 18534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 18535$as_echo_n "checking for connect in -lsocket... " >&6; } 18536if ${ac_cv_lib_socket_connect+:} false; then : 18537 $as_echo_n "(cached) " >&6 18538else 18539 ac_check_lib_save_LIBS=$LIBS 18540LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 18541cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18542/* end confdefs.h. */ 18543 18544/* Override any GCC internal prototype to avoid an error. 18545 Use char because int might match the return type of a GCC 18546 builtin and then its argument prototype would still apply. */ 18547#ifdef __cplusplus 18548extern "C" 18549#endif 18550char connect (); 18551int 18552main () 18553{ 18554return connect (); 18555 ; 18556 return 0; 18557} 18558_ACEOF 18559if ac_fn_c_try_link "$LINENO"; then : 18560 ac_cv_lib_socket_connect=yes 18561else 18562 ac_cv_lib_socket_connect=no 18563fi 18564rm -f core conftest.err conftest.$ac_objext \ 18565 conftest$ac_exeext conftest.$ac_ext 18566LIBS=$ac_check_lib_save_LIBS 18567fi 18568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 18569$as_echo "$ac_cv_lib_socket_connect" >&6; } 18570if test "x$ac_cv_lib_socket_connect" = xyes; then : 18571 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 18572fi 18573 18574 fi 18575 18576 # Guillermo Gomez says -lposix is necessary on A/UX. 18577 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 18578if test "x$ac_cv_func_remove" = xyes; then : 18579 18580fi 18581 18582 if test $ac_cv_func_remove = no; then 18583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 18584$as_echo_n "checking for remove in -lposix... " >&6; } 18585if ${ac_cv_lib_posix_remove+:} false; then : 18586 $as_echo_n "(cached) " >&6 18587else 18588 ac_check_lib_save_LIBS=$LIBS 18589LIBS="-lposix $LIBS" 18590cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18591/* end confdefs.h. */ 18592 18593/* Override any GCC internal prototype to avoid an error. 18594 Use char because int might match the return type of a GCC 18595 builtin and then its argument prototype would still apply. */ 18596#ifdef __cplusplus 18597extern "C" 18598#endif 18599char remove (); 18600int 18601main () 18602{ 18603return remove (); 18604 ; 18605 return 0; 18606} 18607_ACEOF 18608if ac_fn_c_try_link "$LINENO"; then : 18609 ac_cv_lib_posix_remove=yes 18610else 18611 ac_cv_lib_posix_remove=no 18612fi 18613rm -f core conftest.err conftest.$ac_objext \ 18614 conftest$ac_exeext conftest.$ac_ext 18615LIBS=$ac_check_lib_save_LIBS 18616fi 18617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 18618$as_echo "$ac_cv_lib_posix_remove" >&6; } 18619if test "x$ac_cv_lib_posix_remove" = xyes; then : 18620 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 18621fi 18622 18623 fi 18624 18625 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 18626 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 18627if test "x$ac_cv_func_shmat" = xyes; then : 18628 18629fi 18630 18631 if test $ac_cv_func_shmat = no; then 18632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 18633$as_echo_n "checking for shmat in -lipc... " >&6; } 18634if ${ac_cv_lib_ipc_shmat+:} false; then : 18635 $as_echo_n "(cached) " >&6 18636else 18637 ac_check_lib_save_LIBS=$LIBS 18638LIBS="-lipc $LIBS" 18639cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18640/* end confdefs.h. */ 18641 18642/* Override any GCC internal prototype to avoid an error. 18643 Use char because int might match the return type of a GCC 18644 builtin and then its argument prototype would still apply. */ 18645#ifdef __cplusplus 18646extern "C" 18647#endif 18648char shmat (); 18649int 18650main () 18651{ 18652return shmat (); 18653 ; 18654 return 0; 18655} 18656_ACEOF 18657if ac_fn_c_try_link "$LINENO"; then : 18658 ac_cv_lib_ipc_shmat=yes 18659else 18660 ac_cv_lib_ipc_shmat=no 18661fi 18662rm -f core conftest.err conftest.$ac_objext \ 18663 conftest$ac_exeext conftest.$ac_ext 18664LIBS=$ac_check_lib_save_LIBS 18665fi 18666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 18667$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 18668if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 18669 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 18670fi 18671 18672 fi 18673 fi 18674 18675 # Check for libraries that X11R6 Xt/Xaw programs need. 18676 ac_save_LDFLAGS=$LDFLAGS 18677 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 18678 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 18679 # check for ICE first), but we must link in the order -lSM -lICE or 18680 # we get undefined symbols. So assume we have SM if we have ICE. 18681 # These have to be linked with before -lX11, unlike the other 18682 # libraries we check for below, so use a different variable. 18683 # John Interrante, Karl Berry 18684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 18685$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 18686if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 18687 $as_echo_n "(cached) " >&6 18688else 18689 ac_check_lib_save_LIBS=$LIBS 18690LIBS="-lICE $X_EXTRA_LIBS $LIBS" 18691cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18692/* end confdefs.h. */ 18693 18694/* Override any GCC internal prototype to avoid an error. 18695 Use char because int might match the return type of a GCC 18696 builtin and then its argument prototype would still apply. */ 18697#ifdef __cplusplus 18698extern "C" 18699#endif 18700char IceConnectionNumber (); 18701int 18702main () 18703{ 18704return IceConnectionNumber (); 18705 ; 18706 return 0; 18707} 18708_ACEOF 18709if ac_fn_c_try_link "$LINENO"; then : 18710 ac_cv_lib_ICE_IceConnectionNumber=yes 18711else 18712 ac_cv_lib_ICE_IceConnectionNumber=no 18713fi 18714rm -f core conftest.err conftest.$ac_objext \ 18715 conftest$ac_exeext conftest.$ac_ext 18716LIBS=$ac_check_lib_save_LIBS 18717fi 18718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 18719$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 18720if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 18721 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 18722fi 18723 18724 LDFLAGS=$ac_save_LDFLAGS 18725 18726fi 18727 18728 18729 18730 18731 18732ac_ext=c 18733ac_cpp='$CPP $CPPFLAGS' 18734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18736ac_compiler_gnu=$ac_cv_c_compiler_gnu 18737 18738ax_pthread_ok=no 18739 18740 18741if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 18742 save_CFLAGS="$CFLAGS" 18743 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 18744 save_LIBS="$LIBS" 18745 LIBS="$PTHREAD_LIBS $LIBS" 18746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 18747$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 18748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18749/* end confdefs.h. */ 18750 18751/* Override any GCC internal prototype to avoid an error. 18752 Use char because int might match the return type of a GCC 18753 builtin and then its argument prototype would still apply. */ 18754#ifdef __cplusplus 18755extern "C" 18756#endif 18757char pthread_join (); 18758int 18759main () 18760{ 18761return pthread_join (); 18762 ; 18763 return 0; 18764} 18765_ACEOF 18766if ac_fn_c_try_link "$LINENO"; then : 18767 ax_pthread_ok=yes 18768fi 18769rm -f core conftest.err conftest.$ac_objext \ 18770 conftest$ac_exeext conftest.$ac_ext 18771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 18772$as_echo "$ax_pthread_ok" >&6; } 18773 if test x"$ax_pthread_ok" = xno; then 18774 PTHREAD_LIBS="" 18775 PTHREAD_CFLAGS="" 18776 fi 18777 LIBS="$save_LIBS" 18778 CFLAGS="$save_CFLAGS" 18779fi 18780 18781 18782 18783ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 18784 18785 18786 18787case "${host_cpu}-${host_os}" in 18788 *solaris*) 18789 18790 18791 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 18792 ;; 18793 18794 *-darwin*) 18795 ax_pthread_flags="-pthread $ax_pthread_flags" 18796 ;; 18797esac 18798 18799if test x"$ax_pthread_ok" = xno; then 18800for flag in $ax_pthread_flags; do 18801 18802 case $flag in 18803 none) 18804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 18805$as_echo_n "checking whether pthreads work without any flags... " >&6; } 18806 ;; 18807 18808 -*) 18809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 18810$as_echo_n "checking whether pthreads work with $flag... " >&6; } 18811 PTHREAD_CFLAGS="$flag" 18812 ;; 18813 18814 pthread-config) 18815 # Extract the first word of "pthread-config", so it can be a program name with args. 18816set dummy pthread-config; ac_word=$2 18817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18818$as_echo_n "checking for $ac_word... " >&6; } 18819if ${ac_cv_prog_ax_pthread_config+:} false; then : 18820 $as_echo_n "(cached) " >&6 18821else 18822 if test -n "$ax_pthread_config"; then 18823 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 18824else 18825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18826for as_dir in $PATH 18827do 18828 IFS=$as_save_IFS 18829 test -z "$as_dir" && as_dir=. 18830 for ac_exec_ext in '' $ac_executable_extensions; do 18831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18832 ac_cv_prog_ax_pthread_config="yes" 18833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18834 break 2 18835 fi 18836done 18837 done 18838IFS=$as_save_IFS 18839 18840 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 18841fi 18842fi 18843ax_pthread_config=$ac_cv_prog_ax_pthread_config 18844if test -n "$ax_pthread_config"; then 18845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 18846$as_echo "$ax_pthread_config" >&6; } 18847else 18848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18849$as_echo "no" >&6; } 18850fi 18851 18852 18853 if test x"$ax_pthread_config" = xno; then continue; fi 18854 PTHREAD_CFLAGS="`pthread-config --cflags`" 18855 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 18856 ;; 18857 18858 *) 18859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 18860$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 18861 PTHREAD_LIBS="-l$flag" 18862 ;; 18863 esac 18864 18865 save_LIBS="$LIBS" 18866 save_CFLAGS="$CFLAGS" 18867 LIBS="$PTHREAD_LIBS $LIBS" 18868 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 18869 18870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18871/* end confdefs.h. */ 18872#include <pthread.h> 18873 static void routine(void* a) {a=0;} 18874 static void* start_routine(void* a) {return a;} 18875int 18876main () 18877{ 18878pthread_t th; pthread_attr_t attr; 18879 pthread_create(&th,0,start_routine,0); 18880 pthread_join(th, 0); 18881 pthread_attr_init(&attr); 18882 pthread_cleanup_push(routine, 0); 18883 pthread_cleanup_pop(0); 18884 ; 18885 return 0; 18886} 18887_ACEOF 18888if ac_fn_c_try_link "$LINENO"; then : 18889 ax_pthread_ok=yes 18890fi 18891rm -f core conftest.err conftest.$ac_objext \ 18892 conftest$ac_exeext conftest.$ac_ext 18893 18894 LIBS="$save_LIBS" 18895 CFLAGS="$save_CFLAGS" 18896 18897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 18898$as_echo "$ax_pthread_ok" >&6; } 18899 if test "x$ax_pthread_ok" = xyes; then 18900 break; 18901 fi 18902 18903 PTHREAD_LIBS="" 18904 PTHREAD_CFLAGS="" 18905done 18906fi 18907 18908if test "x$ax_pthread_ok" = xyes; then 18909 save_LIBS="$LIBS" 18910 LIBS="$PTHREAD_LIBS $LIBS" 18911 save_CFLAGS="$CFLAGS" 18912 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 18913 18914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 18915$as_echo_n "checking for joinable pthread attribute... " >&6; } 18916 attr_name=unknown 18917 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 18918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18919/* end confdefs.h. */ 18920#include <pthread.h> 18921int 18922main () 18923{ 18924int attr=$attr; return attr; 18925 ; 18926 return 0; 18927} 18928_ACEOF 18929if ac_fn_c_try_link "$LINENO"; then : 18930 attr_name=$attr; break 18931fi 18932rm -f core conftest.err conftest.$ac_objext \ 18933 conftest$ac_exeext conftest.$ac_ext 18934 done 18935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 18936$as_echo "$attr_name" >&6; } 18937 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 18938 18939cat >>confdefs.h <<_ACEOF 18940#define PTHREAD_CREATE_JOINABLE $attr_name 18941_ACEOF 18942 18943 fi 18944 18945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 18946$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 18947 flag=no 18948 case "${host_cpu}-${host_os}" in 18949 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 18950 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 18951 esac 18952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 18953$as_echo "${flag}" >&6; } 18954 if test "x$flag" != xno; then 18955 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 18956 fi 18957 18958 LIBS="$save_LIBS" 18959 CFLAGS="$save_CFLAGS" 18960 18961 if test x"$GCC" != xyes; then 18962 for ac_prog in xlc_r cc_r 18963do 18964 # Extract the first word of "$ac_prog", so it can be a program name with args. 18965set dummy $ac_prog; ac_word=$2 18966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18967$as_echo_n "checking for $ac_word... " >&6; } 18968if ${ac_cv_prog_PTHREAD_CC+:} false; then : 18969 $as_echo_n "(cached) " >&6 18970else 18971 if test -n "$PTHREAD_CC"; then 18972 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 18973else 18974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18975for as_dir in $PATH 18976do 18977 IFS=$as_save_IFS 18978 test -z "$as_dir" && as_dir=. 18979 for ac_exec_ext in '' $ac_executable_extensions; do 18980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18981 ac_cv_prog_PTHREAD_CC="$ac_prog" 18982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18983 break 2 18984 fi 18985done 18986 done 18987IFS=$as_save_IFS 18988 18989fi 18990fi 18991PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 18992if test -n "$PTHREAD_CC"; then 18993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 18994$as_echo "$PTHREAD_CC" >&6; } 18995else 18996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18997$as_echo "no" >&6; } 18998fi 18999 19000 19001 test -n "$PTHREAD_CC" && break 19002done 19003test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 19004 19005 else 19006 PTHREAD_CC=$CC 19007 fi 19008else 19009 PTHREAD_CC="$CC" 19010fi 19011 19012 19013 19014 19015 19016if test x"$ax_pthread_ok" = xyes; then 19017 19018$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 19019 19020 : 19021else 19022 ax_pthread_ok=no 19023 19024fi 19025ac_ext=c 19026ac_cpp='$CPP $CPPFLAGS' 19027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19029ac_compiler_gnu=$ac_cv_c_compiler_gnu 19030 19031 19032 19033 19034ac_ext=c 19035ac_cpp='$CPP $CPPFLAGS' 19036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19038ac_compiler_gnu=$ac_cv_c_compiler_gnu 19039 19040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5 19041$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; } 19042if ${ax_cv_c_compiler_ms+:} false; then : 19043 $as_echo_n "(cached) " >&6 19044else 19045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19046/* end confdefs.h. */ 19047 19048int 19049main () 19050{ 19051#ifndef _MSC_VER 19052 choke me 19053#endif 19054 19055 ; 19056 return 0; 19057} 19058_ACEOF 19059if ac_fn_c_try_compile "$LINENO"; then : 19060 ax_compiler_ms=yes 19061else 19062 ax_compiler_ms=no 19063fi 19064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19065ax_cv_c_compiler_ms=$ax_compiler_ms 19066 19067fi 19068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5 19069$as_echo "$ax_cv_c_compiler_ms" >&6; } 19070if test X$ax_compiler_ms = Xno; then : 19071 GL_CFLAGS="${PTHREAD_CFLAGS}"; GL_LIBS="${PTHREAD_LIBS} -lm" 19072fi 19073 19074if test "X$no_x" != "Xyes"; then : 19075 if test -n "$x_includes"; then : 19076 GL_CFLAGS="-I${x_includes} ${GL_CFLAGS}" 19077fi 19078 if test -n "$x_libraries"; then : 19079 GL_LIBS="-L${x_libraries} -lX11 ${GL_LIBS}" 19080fi 19081fi 19082 19083ax_save_CPPFLAGS="${CPPFLAGS}" 19084CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 19085for ac_header in GL/gl.h OpenGL/gl.h 19086do : 19087 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19088ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19089if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19090 cat >>confdefs.h <<_ACEOF 19091#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19092_ACEOF 19093 19094fi 19095 19096done 19097 19098CPPFLAGS="${ax_save_CPPFLAGS}" 19099 19100for ac_header in windows.h 19101do : 19102 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" 19103if test "x$ac_cv_header_windows_h" = xyes; then : 19104 cat >>confdefs.h <<_ACEOF 19105#define HAVE_WINDOWS_H 1 19106_ACEOF 19107 19108fi 19109 19110done 19111 19112 19113 19114 19115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL library" >&5 19116$as_echo_n "checking for OpenGL library... " >&6; } 19117if ${ax_cv_check_gl_libgl+:} false; then : 19118 $as_echo_n "(cached) " >&6 19119else 19120 ax_cv_check_gl_libgl="no" 19121case $host_cpu in 19122 x86_64) ax_check_gl_libdir=lib64 ;; 19123 *) ax_check_gl_libdir=lib ;; 19124esac 19125ax_save_CPPFLAGS="${CPPFLAGS}" 19126CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 19127ax_save_LIBS="${LIBS}" 19128LIBS="" 19129ax_check_libs="-lopengl32 -lGL" 19130for ax_lib in ${ax_check_libs}; do 19131 if test X$ax_compiler_ms = Xyes; then : 19132 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` 19133else 19134 ax_try_lib="${ax_lib}" 19135fi 19136 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" 19137cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19138/* end confdefs.h. */ 19139 19140# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 19141# include <windows.h> 19142# endif 19143# ifdef HAVE_GL_GL_H 19144# include <GL/gl.h> 19145# elif defined(HAVE_OPENGL_GL_H) 19146# include <OpenGL/gl.h> 19147# else 19148# error no gl.h 19149# endif 19150int 19151main () 19152{ 19153glBegin(0) 19154 ; 19155 return 0; 19156} 19157_ACEOF 19158if ac_fn_c_try_link "$LINENO"; then : 19159 ax_cv_check_gl_libgl="${ax_try_lib}"; break 19160else 19161 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}" 19162cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19163/* end confdefs.h. */ 19164 19165# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 19166# include <windows.h> 19167# endif 19168# ifdef HAVE_GL_GL_H 19169# include <GL/gl.h> 19170# elif defined(HAVE_OPENGL_GL_H) 19171# include <OpenGL/gl.h> 19172# else 19173# error no gl.h 19174# endif 19175int 19176main () 19177{ 19178glBegin(0) 19179 ; 19180 return 0; 19181} 19182_ACEOF 19183if ac_fn_c_try_link "$LINENO"; then : 19184 ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_nvidia_flags}"; break 19185else 19186 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}" 19187cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19188/* end confdefs.h. */ 19189 19190# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 19191# include <windows.h> 19192# endif 19193# ifdef HAVE_GL_GL_H 19194# include <GL/gl.h> 19195# elif defined(HAVE_OPENGL_GL_H) 19196# include <OpenGL/gl.h> 19197# else 19198# error no gl.h 19199# endif 19200int 19201main () 19202{ 19203glBegin(0) 19204 ; 19205 return 0; 19206} 19207_ACEOF 19208if ac_fn_c_try_link "$LINENO"; then : 19209 ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_dylib_flag}"; break 19210fi 19211rm -f core conftest.err conftest.$ac_objext \ 19212 conftest$ac_exeext conftest.$ac_ext 19213fi 19214rm -f core conftest.err conftest.$ac_objext \ 19215 conftest$ac_exeext conftest.$ac_ext 19216fi 19217rm -f core conftest.err conftest.$ac_objext \ 19218 conftest$ac_exeext conftest.$ac_ext 19219done 19220 19221if test "X$ax_cv_check_gl_libgl" = Xno -a "X$no_x" = Xyes; then : 19222 LIBS='-framework OpenGL' 19223cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19224/* end confdefs.h. */ 19225 19226# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 19227# include <windows.h> 19228# endif 19229# ifdef HAVE_GL_GL_H 19230# include <GL/gl.h> 19231# elif defined(HAVE_OPENGL_GL_H) 19232# include <OpenGL/gl.h> 19233# else 19234# error no gl.h 19235# endif 19236int 19237main () 19238{ 19239glBegin(0) 19240 ; 19241 return 0; 19242} 19243_ACEOF 19244if ac_fn_c_try_link "$LINENO"; then : 19245 ax_cv_check_gl_libgl="$LIBS" 19246fi 19247rm -f core conftest.err conftest.$ac_objext \ 19248 conftest$ac_exeext conftest.$ac_ext 19249fi 19250 19251LIBS=${ax_save_LIBS} 19252CPPFLAGS=${ax_save_CPPFLAGS} 19253fi 19254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_libgl" >&5 19255$as_echo "$ax_cv_check_gl_libgl" >&6; } 19256 19257if test "X$ax_cv_check_gl_libgl" = Xno; then : 19258 no_gl=yes; GL_CFLAGS=""; GL_LIBS="" 19259else 19260 GL_LIBS="${ax_cv_check_gl_libgl} ${GL_LIBS}" 19261fi 19262ac_ext=c 19263ac_cpp='$CPP $CPPFLAGS' 19264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19266ac_compiler_gnu=$ac_cv_c_compiler_gnu 19267 19268 19269 19270 19271 19272GLU_CFLAGS="${GL_CFLAGS}" 19273 19274ax_save_CPPFLAGS="${CPPFLAGS}" 19275CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 19276for ac_header in GL/glu.h OpenGL/glu.h 19277do : 19278 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19279ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19280if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19281 cat >>confdefs.h <<_ACEOF 19282#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19283_ACEOF 19284 19285fi 19286 19287done 19288 19289CPPFLAGS="${ax_save_CPPFLAGS}" 19290 19291 19292 19293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL Utility library" >&5 19294$as_echo_n "checking for OpenGL Utility library... " >&6; } 19295if ${ax_cv_check_glu_libglu+:} false; then : 19296 $as_echo_n "(cached) " >&6 19297else 19298 ax_cv_check_glu_libglu="no" 19299ax_save_CPPFLAGS="${CPPFLAGS}" 19300CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 19301ax_save_LIBS="${LIBS}" 19302 19303LIBS="${GL_LIBS} ${ax_save_LIBS}" 19304ac_ext=cpp 19305ac_cpp='$CXXCPP $CPPFLAGS' 19306ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19307ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19308ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19309 19310if test X$ax_compiler_ms = Xyes; then : 19311 ac_ext=c 19312ac_cpp='$CPP $CPPFLAGS' 19313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19315ac_compiler_gnu=$ac_cv_c_compiler_gnu 19316 19317fi 19318cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19319/* end confdefs.h. */ 19320 19321# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 19322# include <windows.h> 19323# endif 19324# ifdef HAVE_GL_GLU_H 19325# include <GL/glu.h> 19326# elif defined(HAVE_OPENGL_GLU_H) 19327# include <OpenGL/glu.h> 19328# else 19329# error no glu.h 19330# endif 19331int 19332main () 19333{ 19334gluBeginCurve(0) 19335 ; 19336 return 0; 19337} 19338_ACEOF 19339if ac_fn_c_try_link "$LINENO"; then : 19340 ax_cv_check_glu_libglu=yes 19341else 19342 LIBS="" 19343ax_check_libs="-lglu32 -lGLU" 19344for ax_lib in ${ax_check_libs}; do 19345 if test X$ax_compiler_ms = Xyes; then : 19346 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` 19347else 19348 ax_try_lib="${ax_lib}" 19349fi 19350 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" 19351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19352/* end confdefs.h. */ 19353 19354# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 19355# include <windows.h> 19356# endif 19357# ifdef HAVE_GL_GLU_H 19358# include <GL/glu.h> 19359# elif defined(HAVE_OPENGL_GLU_H) 19360# include <OpenGL/glu.h> 19361# else 19362# error no glu.h 19363# endif 19364int 19365main () 19366{ 19367gluBeginCurve(0) 19368 ; 19369 return 0; 19370} 19371_ACEOF 19372if ac_fn_c_try_link "$LINENO"; then : 19373 ax_cv_check_glu_libglu="${ax_try_lib}"; break 19374fi 19375rm -f core conftest.err conftest.$ac_objext \ 19376 conftest$ac_exeext conftest.$ac_ext 19377done 19378 19379fi 19380rm -f core conftest.err conftest.$ac_objext \ 19381 conftest$ac_exeext conftest.$ac_ext 19382if test X$ax_compiler_ms = Xyes; then : 19383 ac_ext=cpp 19384ac_cpp='$CXXCPP $CPPFLAGS' 19385ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19386ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19387ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19388 19389fi 19390ac_ext=c 19391ac_cpp='$CPP $CPPFLAGS' 19392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19394ac_compiler_gnu=$ac_cv_c_compiler_gnu 19395 19396 19397LIBS=${ax_save_LIBS} 19398CPPFLAGS=${ax_save_CPPFLAGS} 19399fi 19400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_libglu" >&5 19401$as_echo "$ax_cv_check_glu_libglu" >&6; } 19402if test "X$ax_cv_check_glu_libglu" = Xno; then : 19403 no_glu=yes; GLU_CFLAGS=""; GLU_LIBS="" 19404else 19405 if test "X$ax_cv_check_glu_libglu" = Xyes; then : 19406 GLU_LIBS="$GL_LIBS" 19407else 19408 GLU_LIBS="${ax_cv_check_glu_libglu} ${GL_LIBS}" 19409fi 19410fi 19411 19412 19413 19414if test "X$ax_cv_check_glu_libglu" != Xno; then : 19415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for varargs GLU tesselator callback function type" >&5 19416$as_echo_n "checking for varargs GLU tesselator callback function type... " >&6; } 19417if ${ax_cv_varargs_glu_tesscb+:} false; then : 19418 $as_echo_n "(cached) " >&6 19419else 19420 ax_cv_varargs_glu_tesscb=no 19421ax_save_CFLAGS="$CFLAGS" 19422CFLAGS="$GL_CFLAGS $CFLAGS" 19423cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19424/* end confdefs.h. */ 19425 19426# ifdef HAVE_GL_GLU_H 19427# include <GL/glu.h> 19428# else 19429# include <OpenGL/glu.h> 19430# endif 19431int 19432main () 19433{ 19434GLvoid (*func)(...); gluTessCallback(0, 0, func) 19435 ; 19436 return 0; 19437} 19438_ACEOF 19439if ac_fn_c_try_compile "$LINENO"; then : 19440 ax_cv_varargs_glu_tesscb=yes 19441fi 19442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19443CFLAGS="$ax_save_CFLAGS" 19444fi 19445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_varargs_glu_tesscb" >&5 19446$as_echo "$ax_cv_varargs_glu_tesscb" >&6; } 19447if test X$ax_cv_varargs_glu_tesscb = Xyes; then : 19448 19449$as_echo "#define HAVE_VARARGS_GLU_TESSCB 1" >>confdefs.h 19450 19451fi 19452fi 19453 19454 19455ax_save_CPPFLAGS="${CPPFLAGS}" 19456CPPFLAGS="${GLU_CFLAGS} ${CPPFLAGS}" 19457for ac_header in GL/glut.h GLUT/glut.h 19458do : 19459 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19460ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19461if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19462 cat >>confdefs.h <<_ACEOF 19463#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19464_ACEOF 19465 19466fi 19467 19468done 19469 19470CPPFLAGS="${ax_save_CPPFLAGS}" 19471 19472GLUT_CFLAGS=${GLU_CFLAGS} 19473GLUT_LIBS=${GLU_LIBS} 19474 19475 19476 19477if test X$no_x != Xyes; then : 19478 GLUT_LIBS="${X_PRE_LIBS} -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}" 19479fi 19480 19481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLUT library" >&5 19482$as_echo_n "checking for GLUT library... " >&6; } 19483if ${ax_cv_check_glut_libglut+:} false; then : 19484 $as_echo_n "(cached) " >&6 19485else 19486 ax_cv_check_glut_libglut="no" 19487ac_ext=c 19488ac_cpp='$CPP $CPPFLAGS' 19489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19491ac_compiler_gnu=$ac_cv_c_compiler_gnu 19492 19493ax_save_CPPFLAGS="${CPPFLAGS}" 19494CPPFLAGS="${GLUT_CFLAGS} ${CPPFLAGS}" 19495ax_save_LIBS="${LIBS}" 19496LIBS="" 19497ax_check_libs="-lglut32 -lglut" 19498for ax_lib in ${ax_check_libs}; do 19499 if test X$ax_compiler_ms = Xyes; then : 19500 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` 19501else 19502 ax_try_lib="${ax_lib}" 19503fi 19504 LIBS="${ax_try_lib} ${GLUT_LIBS} ${ax_save_LIBS}" 19505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19506/* end confdefs.h. */ 19507 19508# if HAVE_WINDOWS_H && defined(_WIN32) 19509# include <windows.h> 19510# endif 19511# ifdef HAVE_GL_GLUT_H 19512# include <GL/glut.h> 19513# elif defined(HAVE_GLUT_GLUT_H) 19514# include <GLUT/glut.h> 19515# else 19516# error no glut.h 19517# endif 19518int 19519main () 19520{ 19521glutMainLoop() 19522 ; 19523 return 0; 19524} 19525_ACEOF 19526if ac_fn_c_try_link "$LINENO"; then : 19527 ax_cv_check_glut_libglut="${ax_try_lib}"; break 19528fi 19529rm -f core conftest.err conftest.$ac_objext \ 19530 conftest$ac_exeext conftest.$ac_ext 19531done 19532 19533if test "X$ax_cv_check_glut_libglut" = Xno -a "X$no_x" = Xyes; then : 19534 LIBS='-framework GLUT' 19535cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19536/* end confdefs.h. */ 19537 19538# if HAVE_WINDOWS_H && defined(_WIN32) 19539# include <windows.h> 19540# endif 19541# ifdef HAVE_GL_GLUT_H 19542# include <GL/glut.h> 19543# elif defined(HAVE_GLUT_GLUT_H) 19544# include <GLUT/glut.h> 19545# else 19546# error no glut.h 19547# endif 19548int 19549main () 19550{ 19551glutMainLoop() 19552 ; 19553 return 0; 19554} 19555_ACEOF 19556if ac_fn_c_try_link "$LINENO"; then : 19557 ax_cv_check_glut_libglut="$LIBS" 19558fi 19559rm -f core conftest.err conftest.$ac_objext \ 19560 conftest$ac_exeext conftest.$ac_ext 19561fi 19562 19563CPPFLAGS="${ax_save_CPPFLAGS}" 19564LIBS="${ax_save_LIBS}" 19565ac_ext=c 19566ac_cpp='$CPP $CPPFLAGS' 19567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19569ac_compiler_gnu=$ac_cv_c_compiler_gnu 19570 19571fi 19572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glut_libglut" >&5 19573$as_echo "$ax_cv_check_glut_libglut" >&6; } 19574 19575if test "X$ax_cv_check_glut_libglut" = Xno; then : 19576 no_glut="yes"; GLUT_CFLAGS=""; GLUT_LIBS="" 19577else 19578 GLUT_LIBS="${ax_cv_check_glut_libglut} ${GLUT_LIBS}" 19579fi 19580 19581 19582 19583 19584 19585if test "$no_x" != "yes" -a "$no_gl" != "yes" \ 19586 -a "$no_glu" != "yes" -a "$no_glut" != "yes" ; then 19587 HAVE_OPENGL=yes 19588fi 19589 19590 if test "$HAVE_OPENGL" = "yes"; then 19591 HAVE_OPENGL_TRUE= 19592 HAVE_OPENGL_FALSE='#' 19593else 19594 HAVE_OPENGL_TRUE='#' 19595 HAVE_OPENGL_FALSE= 19596fi 19597 19598 19599 19600win32_io_ok=no 19601case "${host_os}" in 19602 cygwin*) 19603 ;; 19604 *) 19605 if test x"$ac_cv_header_windows_h" = xyes; then 19606 win32_io_ok=yes 19607 19608$as_echo "#define USE_WIN32_FILEIO 1" >>confdefs.h 19609 19610 fi 19611 ;; 19612esac 19613 if test "$win32_io_ok" = yes; then 19614 WIN32_IO_TRUE= 19615 WIN32_IO_FALSE='#' 19616else 19617 WIN32_IO_TRUE='#' 19618 WIN32_IO_FALSE= 19619fi 19620 19621 19622 19623 19624 19625 19626 19627 19628 19629# Check whether --enable-strip-chopping was given. 19630if test "${enable_strip_chopping+set}" = set; then : 19631 enableval=$enable_strip_chopping; HAVE_STRIPCHOP=$enableval 19632else 19633 HAVE_STRIPCHOP=yes 19634fi 19635 19636 19637# Check whether --with-default-strip-size was given. 19638if test "${with_default_strip_size+set}" = set; then : 19639 withval=$with_default_strip_size; 19640fi 19641 19642 19643if test "$HAVE_STRIPCHOP" = "yes" \ 19644 -a "x$with_default_strip_size" != "xno"; then 19645 19646$as_echo "#define STRIPCHOP_DEFAULT TIFF_STRIPCHOP" >>confdefs.h 19647 19648 19649 if test "x$with_default_strip_size" = "x" \ 19650 -o "x$with_default_strip_size" = "xyes"; then 19651 with_default_strip_size="8192" 19652 fi 19653 19654 19655cat >>confdefs.h <<_ACEOF 19656#define STRIP_SIZE_DEFAULT $with_default_strip_size 19657_ACEOF 19658 19659 19660fi 19661 19662 19663# Check whether --enable-defer-strile-load was given. 19664if test "${enable_defer_strile_load+set}" = set; then : 19665 enableval=$enable_defer_strile_load; HAVE_DEFER_STRILE_LOAD=$enableval 19666else 19667 HAVE_DEFER_STRILE_LOAD=no 19668fi 19669 19670 19671if test "$HAVE_DEFER_STRILE_LOAD" = "yes" ; then 19672 19673$as_echo "#define DEFER_STRILE_LOAD 1" >>confdefs.h 19674 19675 19676fi 19677 19678 19679# Check whether --enable-chunky-strip-read was given. 19680if test "${enable_chunky_strip_read+set}" = set; then : 19681 enableval=$enable_chunky_strip_read; HAVE_CHUNKY_STRIP_READ=$enableval 19682else 19683 HAVE_CHUNKY_STRIP_READ=no 19684fi 19685 19686 19687if test "$HAVE_CHUNKY_STRIP_READ" = "yes" ; then 19688 19689$as_echo "#define CHUNKY_STRIP_READ_SUPPORT 1" >>confdefs.h 19690 19691 19692fi 19693 19694 19695$as_echo "#define SUBIFD_SUPPORT 1" >>confdefs.h 19696 19697 19698 19699# Check whether --enable-extrasample-as-alpha was given. 19700if test "${enable_extrasample_as_alpha+set}" = set; then : 19701 enableval=$enable_extrasample_as_alpha; HAVE_EXTRASAMPLE_AS_ALPHA=$enableval 19702else 19703 HAVE_EXTRASAMPLE_AS_ALPHA=yes 19704fi 19705 19706 19707if test "$HAVE_EXTRASAMPLE_AS_ALPHA" = "yes" ; then 19708 19709$as_echo "#define DEFAULT_EXTRASAMPLE_AS_ALPHA 1" >>confdefs.h 19710 19711fi 19712 19713 19714# Check whether --enable-check-ycbcr-subsampling was given. 19715if test "${enable_check_ycbcr_subsampling+set}" = set; then : 19716 enableval=$enable_check_ycbcr_subsampling; CHECK_JPEG_YCBCR_SUBSAMPLING=$enableval 19717else 19718 CHECK_JPEG_YCBCR_SUBSAMPLING=yes 19719fi 19720 19721 19722if test "$CHECK_JPEG_YCBCR_SUBSAMPLING" = "yes" ; then 19723 19724$as_echo "#define CHECK_JPEG_YCBCR_SUBSAMPLING 1" >>confdefs.h 19725 19726fi 19727 19728 19729 19730 19731ac_config_headers="$ac_config_headers libtiff/tif_config.h libtiff/tiffconf.h" 19732 19733 19734ac_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" 19735 19736cat >confcache <<\_ACEOF 19737# This file is a shell script that caches the results of configure 19738# tests run on this system so they can be shared between configure 19739# scripts and configure runs, see configure's option --config-cache. 19740# It is not useful on other systems. If it contains results you don't 19741# want to keep, you may remove or edit it. 19742# 19743# config.status only pays attention to the cache file if you give it 19744# the --recheck option to rerun configure. 19745# 19746# `ac_cv_env_foo' variables (set or unset) will be overridden when 19747# loading this file, other *unset* `ac_cv_foo' will be assigned the 19748# following values. 19749 19750_ACEOF 19751 19752# The following way of writing the cache mishandles newlines in values, 19753# but we know of no workaround that is simple, portable, and efficient. 19754# So, we kill variables containing newlines. 19755# Ultrix sh set writes to stderr and can't be redirected directly, 19756# and sets the high bit in the cache file unless we assign to the vars. 19757( 19758 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19759 eval ac_val=\$$ac_var 19760 case $ac_val in #( 19761 *${as_nl}*) 19762 case $ac_var in #( 19763 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19764$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19765 esac 19766 case $ac_var in #( 19767 _ | IFS | as_nl) ;; #( 19768 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19769 *) { eval $ac_var=; unset $ac_var;} ;; 19770 esac ;; 19771 esac 19772 done 19773 19774 (set) 2>&1 | 19775 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19776 *${as_nl}ac_space=\ *) 19777 # `set' does not quote correctly, so add quotes: double-quote 19778 # substitution turns \\\\ into \\, and sed turns \\ into \. 19779 sed -n \ 19780 "s/'/'\\\\''/g; 19781 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19782 ;; #( 19783 *) 19784 # `set' quotes correctly as required by POSIX, so do not add quotes. 19785 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19786 ;; 19787 esac | 19788 sort 19789) | 19790 sed ' 19791 /^ac_cv_env_/b end 19792 t clear 19793 :clear 19794 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19795 t end 19796 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19797 :end' >>confcache 19798if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19799 if test -w "$cache_file"; then 19800 if test "x$cache_file" != "x/dev/null"; then 19801 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19802$as_echo "$as_me: updating cache $cache_file" >&6;} 19803 if test ! -f "$cache_file" || test -h "$cache_file"; then 19804 cat confcache >"$cache_file" 19805 else 19806 case $cache_file in #( 19807 */* | ?:*) 19808 mv -f confcache "$cache_file"$$ && 19809 mv -f "$cache_file"$$ "$cache_file" ;; #( 19810 *) 19811 mv -f confcache "$cache_file" ;; 19812 esac 19813 fi 19814 fi 19815 else 19816 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19817$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19818 fi 19819fi 19820rm -f confcache 19821 19822test "x$prefix" = xNONE && prefix=$ac_default_prefix 19823# Let make expand exec_prefix. 19824test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19825 19826DEFS=-DHAVE_CONFIG_H 19827 19828ac_libobjs= 19829ac_ltlibobjs= 19830U= 19831for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19832 # 1. Remove the extension, and $U if already installed. 19833 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19834 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19835 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19836 # will be set to the directory where LIBOBJS objects are built. 19837 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19838 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19839done 19840LIBOBJS=$ac_libobjs 19841 19842LTLIBOBJS=$ac_ltlibobjs 19843 19844 19845 if test -n "$EXEEXT"; then 19846 am__EXEEXT_TRUE= 19847 am__EXEEXT_FALSE='#' 19848else 19849 am__EXEEXT_TRUE='#' 19850 am__EXEEXT_FALSE= 19851fi 19852 19853if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 19854 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 19855Usually this means the macro was only invoked conditionally." "$LINENO" 5 19856fi 19857if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19858 as_fn_error $? "conditional \"AMDEP\" was never defined. 19859Usually this means the macro was only invoked conditionally." "$LINENO" 5 19860fi 19861if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19862 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19863Usually this means the macro was only invoked conditionally." "$LINENO" 5 19864fi 19865if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 19866 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 19867Usually this means the macro was only invoked conditionally." "$LINENO" 5 19868fi 19869 19870if test -z "${HAVE_RPATH_TRUE}" && test -z "${HAVE_RPATH_FALSE}"; then 19871 as_fn_error $? "conditional \"HAVE_RPATH\" was never defined. 19872Usually this means the macro was only invoked conditionally." "$LINENO" 5 19873fi 19874if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then 19875 as_fn_error $? "conditional \"HAVE_CXX\" was never defined. 19876Usually this means the macro was only invoked conditionally." "$LINENO" 5 19877fi 19878if test -z "${HAVE_OPENGL_TRUE}" && test -z "${HAVE_OPENGL_FALSE}"; then 19879 as_fn_error $? "conditional \"HAVE_OPENGL\" was never defined. 19880Usually this means the macro was only invoked conditionally." "$LINENO" 5 19881fi 19882if test -z "${WIN32_IO_TRUE}" && test -z "${WIN32_IO_FALSE}"; then 19883 as_fn_error $? "conditional \"WIN32_IO\" was never defined. 19884Usually this means the macro was only invoked conditionally." "$LINENO" 5 19885fi 19886 19887: "${CONFIG_STATUS=./config.status}" 19888ac_write_fail=0 19889ac_clean_files_save=$ac_clean_files 19890ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19891{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19892$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19893as_write_fail=0 19894cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19895#! $SHELL 19896# Generated by $as_me. 19897# Run this file to recreate the current configuration. 19898# Compiler output produced by configure, useful for debugging 19899# configure, is in config.log if it exists. 19900 19901debug=false 19902ac_cs_recheck=false 19903ac_cs_silent=false 19904 19905SHELL=\${CONFIG_SHELL-$SHELL} 19906export SHELL 19907_ASEOF 19908cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19909## -------------------- ## 19910## M4sh Initialization. ## 19911## -------------------- ## 19912 19913# Be more Bourne compatible 19914DUALCASE=1; export DUALCASE # for MKS sh 19915if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19916 emulate sh 19917 NULLCMD=: 19918 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19919 # is contrary to our usage. Disable this feature. 19920 alias -g '${1+"$@"}'='"$@"' 19921 setopt NO_GLOB_SUBST 19922else 19923 case `(set -o) 2>/dev/null` in #( 19924 *posix*) : 19925 set -o posix ;; #( 19926 *) : 19927 ;; 19928esac 19929fi 19930 19931 19932as_nl=' 19933' 19934export as_nl 19935# Printing a long string crashes Solaris 7 /usr/bin/printf. 19936as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19937as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19938as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19939# Prefer a ksh shell builtin over an external printf program on Solaris, 19940# but without wasting forks for bash or zsh. 19941if test -z "$BASH_VERSION$ZSH_VERSION" \ 19942 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19943 as_echo='print -r --' 19944 as_echo_n='print -rn --' 19945elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19946 as_echo='printf %s\n' 19947 as_echo_n='printf %s' 19948else 19949 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19950 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19951 as_echo_n='/usr/ucb/echo -n' 19952 else 19953 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19954 as_echo_n_body='eval 19955 arg=$1; 19956 case $arg in #( 19957 *"$as_nl"*) 19958 expr "X$arg" : "X\\(.*\\)$as_nl"; 19959 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19960 esac; 19961 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19962 ' 19963 export as_echo_n_body 19964 as_echo_n='sh -c $as_echo_n_body as_echo' 19965 fi 19966 export as_echo_body 19967 as_echo='sh -c $as_echo_body as_echo' 19968fi 19969 19970# The user is always right. 19971if test "${PATH_SEPARATOR+set}" != set; then 19972 PATH_SEPARATOR=: 19973 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19974 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19975 PATH_SEPARATOR=';' 19976 } 19977fi 19978 19979 19980# IFS 19981# We need space, tab and new line, in precisely that order. Quoting is 19982# there to prevent editors from complaining about space-tab. 19983# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19984# splitting by setting IFS to empty value.) 19985IFS=" "" $as_nl" 19986 19987# Find who we are. Look in the path if we contain no directory separator. 19988as_myself= 19989case $0 in #(( 19990 *[\\/]* ) as_myself=$0 ;; 19991 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19992for as_dir in $PATH 19993do 19994 IFS=$as_save_IFS 19995 test -z "$as_dir" && as_dir=. 19996 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19997 done 19998IFS=$as_save_IFS 19999 20000 ;; 20001esac 20002# We did not find ourselves, most probably we were run as `sh COMMAND' 20003# in which case we are not to be found in the path. 20004if test "x$as_myself" = x; then 20005 as_myself=$0 20006fi 20007if test ! -f "$as_myself"; then 20008 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20009 exit 1 20010fi 20011 20012# Unset variables that we do not need and which cause bugs (e.g. in 20013# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 20014# suppresses any "Segmentation fault" message there. '((' could 20015# trigger a bug in pdksh 5.2.14. 20016for as_var in BASH_ENV ENV MAIL MAILPATH 20017do eval test x\${$as_var+set} = xset \ 20018 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20019done 20020PS1='$ ' 20021PS2='> ' 20022PS4='+ ' 20023 20024# NLS nuisances. 20025LC_ALL=C 20026export LC_ALL 20027LANGUAGE=C 20028export LANGUAGE 20029 20030# CDPATH. 20031(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20032 20033 20034# as_fn_error STATUS ERROR [LINENO LOG_FD] 20035# ---------------------------------------- 20036# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20037# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20038# script with STATUS, using 1 if that was 0. 20039as_fn_error () 20040{ 20041 as_status=$1; test $as_status -eq 0 && as_status=1 20042 if test "$4"; then 20043 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20044 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20045 fi 20046 $as_echo "$as_me: error: $2" >&2 20047 as_fn_exit $as_status 20048} # as_fn_error 20049 20050 20051# as_fn_set_status STATUS 20052# ----------------------- 20053# Set $? to STATUS, without forking. 20054as_fn_set_status () 20055{ 20056 return $1 20057} # as_fn_set_status 20058 20059# as_fn_exit STATUS 20060# ----------------- 20061# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20062as_fn_exit () 20063{ 20064 set +e 20065 as_fn_set_status $1 20066 exit $1 20067} # as_fn_exit 20068 20069# as_fn_unset VAR 20070# --------------- 20071# Portably unset VAR. 20072as_fn_unset () 20073{ 20074 { eval $1=; unset $1;} 20075} 20076as_unset=as_fn_unset 20077# as_fn_append VAR VALUE 20078# ---------------------- 20079# Append the text in VALUE to the end of the definition contained in VAR. Take 20080# advantage of any shell optimizations that allow amortized linear growth over 20081# repeated appends, instead of the typical quadratic growth present in naive 20082# implementations. 20083if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 20084 eval 'as_fn_append () 20085 { 20086 eval $1+=\$2 20087 }' 20088else 20089 as_fn_append () 20090 { 20091 eval $1=\$$1\$2 20092 } 20093fi # as_fn_append 20094 20095# as_fn_arith ARG... 20096# ------------------ 20097# Perform arithmetic evaluation on the ARGs, and store the result in the 20098# global $as_val. Take advantage of shells that can avoid forks. The arguments 20099# must be portable across $(()) and expr. 20100if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 20101 eval 'as_fn_arith () 20102 { 20103 as_val=$(( $* )) 20104 }' 20105else 20106 as_fn_arith () 20107 { 20108 as_val=`expr "$@" || test $? -eq 1` 20109 } 20110fi # as_fn_arith 20111 20112 20113if expr a : '\(a\)' >/dev/null 2>&1 && 20114 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20115 as_expr=expr 20116else 20117 as_expr=false 20118fi 20119 20120if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20121 as_basename=basename 20122else 20123 as_basename=false 20124fi 20125 20126if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20127 as_dirname=dirname 20128else 20129 as_dirname=false 20130fi 20131 20132as_me=`$as_basename -- "$0" || 20133$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20134 X"$0" : 'X\(//\)$' \| \ 20135 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20136$as_echo X/"$0" | 20137 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20138 s//\1/ 20139 q 20140 } 20141 /^X\/\(\/\/\)$/{ 20142 s//\1/ 20143 q 20144 } 20145 /^X\/\(\/\).*/{ 20146 s//\1/ 20147 q 20148 } 20149 s/.*/./; q'` 20150 20151# Avoid depending upon Character Ranges. 20152as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20153as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20154as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20155as_cr_digits='0123456789' 20156as_cr_alnum=$as_cr_Letters$as_cr_digits 20157 20158ECHO_C= ECHO_N= ECHO_T= 20159case `echo -n x` in #((((( 20160-n*) 20161 case `echo 'xy\c'` in 20162 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20163 xy) ECHO_C='\c';; 20164 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20165 ECHO_T=' ';; 20166 esac;; 20167*) 20168 ECHO_N='-n';; 20169esac 20170 20171rm -f conf$$ conf$$.exe conf$$.file 20172if test -d conf$$.dir; then 20173 rm -f conf$$.dir/conf$$.file 20174else 20175 rm -f conf$$.dir 20176 mkdir conf$$.dir 2>/dev/null 20177fi 20178if (echo >conf$$.file) 2>/dev/null; then 20179 if ln -s conf$$.file conf$$ 2>/dev/null; then 20180 as_ln_s='ln -s' 20181 # ... but there are two gotchas: 20182 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20183 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20184 # In both cases, we have to default to `cp -p'. 20185 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20186 as_ln_s='cp -p' 20187 elif ln conf$$.file conf$$ 2>/dev/null; then 20188 as_ln_s=ln 20189 else 20190 as_ln_s='cp -p' 20191 fi 20192else 20193 as_ln_s='cp -p' 20194fi 20195rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20196rmdir conf$$.dir 2>/dev/null 20197 20198 20199# as_fn_mkdir_p 20200# ------------- 20201# Create "$as_dir" as a directory, including parents if necessary. 20202as_fn_mkdir_p () 20203{ 20204 20205 case $as_dir in #( 20206 -*) as_dir=./$as_dir;; 20207 esac 20208 test -d "$as_dir" || eval $as_mkdir_p || { 20209 as_dirs= 20210 while :; do 20211 case $as_dir in #( 20212 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20213 *) as_qdir=$as_dir;; 20214 esac 20215 as_dirs="'$as_qdir' $as_dirs" 20216 as_dir=`$as_dirname -- "$as_dir" || 20217$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20218 X"$as_dir" : 'X\(//\)[^/]' \| \ 20219 X"$as_dir" : 'X\(//\)$' \| \ 20220 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20221$as_echo X"$as_dir" | 20222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20223 s//\1/ 20224 q 20225 } 20226 /^X\(\/\/\)[^/].*/{ 20227 s//\1/ 20228 q 20229 } 20230 /^X\(\/\/\)$/{ 20231 s//\1/ 20232 q 20233 } 20234 /^X\(\/\).*/{ 20235 s//\1/ 20236 q 20237 } 20238 s/.*/./; q'` 20239 test -d "$as_dir" && break 20240 done 20241 test -z "$as_dirs" || eval "mkdir $as_dirs" 20242 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20243 20244 20245} # as_fn_mkdir_p 20246if mkdir -p . 2>/dev/null; then 20247 as_mkdir_p='mkdir -p "$as_dir"' 20248else 20249 test -d ./-p && rmdir ./-p 20250 as_mkdir_p=false 20251fi 20252 20253if test -x / >/dev/null 2>&1; then 20254 as_test_x='test -x' 20255else 20256 if ls -dL / >/dev/null 2>&1; then 20257 as_ls_L_option=L 20258 else 20259 as_ls_L_option= 20260 fi 20261 as_test_x=' 20262 eval sh -c '\'' 20263 if test -d "$1"; then 20264 test -d "$1/."; 20265 else 20266 case $1 in #( 20267 -*)set "./$1";; 20268 esac; 20269 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 20270 ???[sx]*):;;*)false;;esac;fi 20271 '\'' sh 20272 ' 20273fi 20274as_executable_p=$as_test_x 20275 20276# Sed expression to map a string onto a valid CPP name. 20277as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20278 20279# Sed expression to map a string onto a valid variable name. 20280as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20281 20282 20283exec 6>&1 20284## ----------------------------------- ## 20285## Main body of $CONFIG_STATUS script. ## 20286## ----------------------------------- ## 20287_ASEOF 20288test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20289 20290cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20291# Save the log message, to keep $0 and so on meaningful, and to 20292# report actual input values of CONFIG_FILES etc. instead of their 20293# values after options handling. 20294ac_log=" 20295This file was extended by LibTIFF Software $as_me 4.0.0beta7, which was 20296generated by GNU Autoconf 2.68. Invocation command line was 20297 20298 CONFIG_FILES = $CONFIG_FILES 20299 CONFIG_HEADERS = $CONFIG_HEADERS 20300 CONFIG_LINKS = $CONFIG_LINKS 20301 CONFIG_COMMANDS = $CONFIG_COMMANDS 20302 $ $0 $@ 20303 20304on `(hostname || uname -n) 2>/dev/null | sed 1q` 20305" 20306 20307_ACEOF 20308 20309case $ac_config_files in *" 20310"*) set x $ac_config_files; shift; ac_config_files=$*;; 20311esac 20312 20313case $ac_config_headers in *" 20314"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20315esac 20316 20317 20318cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20319# Files that config.status was made for. 20320config_files="$ac_config_files" 20321config_headers="$ac_config_headers" 20322config_commands="$ac_config_commands" 20323 20324_ACEOF 20325 20326cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20327ac_cs_usage="\ 20328\`$as_me' instantiates files and other configuration actions 20329from templates according to the current configuration. Unless the files 20330and actions are specified as TAGs, all are instantiated by default. 20331 20332Usage: $0 [OPTION]... [TAG]... 20333 20334 -h, --help print this help, then exit 20335 -V, --version print version number and configuration settings, then exit 20336 --config print configuration, then exit 20337 -q, --quiet, --silent 20338 do not print progress messages 20339 -d, --debug don't remove temporary files 20340 --recheck update $as_me by reconfiguring in the same conditions 20341 --file=FILE[:TEMPLATE] 20342 instantiate the configuration file FILE 20343 --header=FILE[:TEMPLATE] 20344 instantiate the configuration header FILE 20345 20346Configuration files: 20347$config_files 20348 20349Configuration headers: 20350$config_headers 20351 20352Configuration commands: 20353$config_commands 20354 20355Report bugs to <[email protected]>." 20356 20357_ACEOF 20358cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20359ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 20360ac_cs_version="\\ 20361LibTIFF Software config.status 4.0.0beta7 20362configured by $0, generated by GNU Autoconf 2.68, 20363 with options \\"\$ac_cs_config\\" 20364 20365Copyright (C) 2010 Free Software Foundation, Inc. 20366This config.status script is free software; the Free Software Foundation 20367gives unlimited permission to copy, distribute and modify it." 20368 20369ac_pwd='$ac_pwd' 20370srcdir='$srcdir' 20371INSTALL='$INSTALL' 20372MKDIR_P='$MKDIR_P' 20373AWK='$AWK' 20374test -n "\$AWK" || AWK=awk 20375_ACEOF 20376 20377cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20378# The default lists apply if the user does not specify any file. 20379ac_need_defaults=: 20380while test $# != 0 20381do 20382 case $1 in 20383 --*=?*) 20384 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20385 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20386 ac_shift=: 20387 ;; 20388 --*=) 20389 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20390 ac_optarg= 20391 ac_shift=: 20392 ;; 20393 *) 20394 ac_option=$1 20395 ac_optarg=$2 20396 ac_shift=shift 20397 ;; 20398 esac 20399 20400 case $ac_option in 20401 # Handling of the options. 20402 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20403 ac_cs_recheck=: ;; 20404 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20405 $as_echo "$ac_cs_version"; exit ;; 20406 --config | --confi | --conf | --con | --co | --c ) 20407 $as_echo "$ac_cs_config"; exit ;; 20408 --debug | --debu | --deb | --de | --d | -d ) 20409 debug=: ;; 20410 --file | --fil | --fi | --f ) 20411 $ac_shift 20412 case $ac_optarg in 20413 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20414 '') as_fn_error $? "missing file argument" ;; 20415 esac 20416 as_fn_append CONFIG_FILES " '$ac_optarg'" 20417 ac_need_defaults=false;; 20418 --header | --heade | --head | --hea ) 20419 $ac_shift 20420 case $ac_optarg in 20421 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20422 esac 20423 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20424 ac_need_defaults=false;; 20425 --he | --h) 20426 # Conflict between --help and --header 20427 as_fn_error $? "ambiguous option: \`$1' 20428Try \`$0 --help' for more information.";; 20429 --help | --hel | -h ) 20430 $as_echo "$ac_cs_usage"; exit ;; 20431 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20432 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20433 ac_cs_silent=: ;; 20434 20435 # This is an error. 20436 -*) as_fn_error $? "unrecognized option: \`$1' 20437Try \`$0 --help' for more information." ;; 20438 20439 *) as_fn_append ac_config_targets " $1" 20440 ac_need_defaults=false ;; 20441 20442 esac 20443 shift 20444done 20445 20446ac_configure_extra_args= 20447 20448if $ac_cs_silent; then 20449 exec 6>/dev/null 20450 ac_configure_extra_args="$ac_configure_extra_args --silent" 20451fi 20452 20453_ACEOF 20454cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20455if \$ac_cs_recheck; then 20456 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20457 shift 20458 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 20459 CONFIG_SHELL='$SHELL' 20460 export CONFIG_SHELL 20461 exec "\$@" 20462fi 20463 20464_ACEOF 20465cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20466exec 5>>config.log 20467{ 20468 echo 20469 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20470## Running $as_me. ## 20471_ASBOX 20472 $as_echo "$ac_log" 20473} >&5 20474 20475_ACEOF 20476cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20477# 20478# INIT-COMMANDS 20479# 20480AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 20481 20482 20483# The HP-UX ksh and POSIX shell print the target directory to stdout 20484# if CDPATH is set. 20485(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20486 20487sed_quote_subst='$sed_quote_subst' 20488double_quote_subst='$double_quote_subst' 20489delay_variable_subst='$delay_variable_subst' 20490macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20491macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20492AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 20493DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20494OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20495enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20496enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20497pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20498enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20499SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20500ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20501host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20502host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20503host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20504build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20505build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20506build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20507SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20508Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20509GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20510EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20511FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20512LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20513NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20514LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20515max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20516ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20517exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20518lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20519lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20520lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20521lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20522lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20523reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20524reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20525deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20526file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20527file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20528want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20529sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20530AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20531AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20532archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20533STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20534RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20535old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20536old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20537old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20538lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20539CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20540CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20541compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20542GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20543lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20544lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20545lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20546lt_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"`' 20547nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20548lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20549objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20550MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20551lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20552lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20553lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20554lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20555lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20556need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20557MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20558DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20559NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20560LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20561OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20562OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20563libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20564shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20565extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20566archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20567enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20568export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20569whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20570compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20571old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20572old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20573archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20574archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20575module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20576module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20577with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20578allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20579no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20580hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20581hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 20582hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20583hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20584hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20585hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20586hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20587hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20588inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20589link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20590always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20591export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20592exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20593include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20594prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20595postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20596file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20597variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20598need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20599need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20600version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20601runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20602shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20603shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20604libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20605library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20606soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20607install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20608postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20609postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20610finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20611finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20612hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20613sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20614sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 20615hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20616enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20617enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20618enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20619old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20620striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20621compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 20622predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 20623postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 20624predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 20625postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 20626compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 20627LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 20628reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 20629reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20630old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20631compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 20632GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 20633lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 20634lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 20635lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 20636lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 20637lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 20638archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 20639enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 20640export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 20641whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 20642compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 20643old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20644old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20645archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20646archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20647module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20648module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20649with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 20650allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 20651no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 20652hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 20653hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' 20654hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 20655hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 20656hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 20657hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 20658hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 20659hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 20660inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 20661link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 20662always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 20663export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20664exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 20665include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 20666prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20667postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20668file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 20669hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 20670compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 20671predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 20672postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 20673predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 20674postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 20675compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 20676 20677LTCC='$LTCC' 20678LTCFLAGS='$LTCFLAGS' 20679compiler='$compiler_DEFAULT' 20680 20681# A function that is used when there is no print builtin or printf. 20682func_fallback_echo () 20683{ 20684 eval 'cat <<_LTECHO_EOF 20685\$1 20686_LTECHO_EOF' 20687} 20688 20689# Quote evaled strings. 20690for var in AS \ 20691DLLTOOL \ 20692OBJDUMP \ 20693SHELL \ 20694ECHO \ 20695SED \ 20696GREP \ 20697EGREP \ 20698FGREP \ 20699LD \ 20700NM \ 20701LN_S \ 20702lt_SP2NL \ 20703lt_NL2SP \ 20704reload_flag \ 20705deplibs_check_method \ 20706file_magic_cmd \ 20707file_magic_glob \ 20708want_nocaseglob \ 20709sharedlib_from_linklib_cmd \ 20710AR \ 20711AR_FLAGS \ 20712archiver_list_spec \ 20713STRIP \ 20714RANLIB \ 20715CC \ 20716CFLAGS \ 20717compiler \ 20718lt_cv_sys_global_symbol_pipe \ 20719lt_cv_sys_global_symbol_to_cdecl \ 20720lt_cv_sys_global_symbol_to_c_name_address \ 20721lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20722nm_file_list_spec \ 20723lt_prog_compiler_no_builtin_flag \ 20724lt_prog_compiler_pic \ 20725lt_prog_compiler_wl \ 20726lt_prog_compiler_static \ 20727lt_cv_prog_compiler_c_o \ 20728need_locks \ 20729MANIFEST_TOOL \ 20730DSYMUTIL \ 20731NMEDIT \ 20732LIPO \ 20733OTOOL \ 20734OTOOL64 \ 20735shrext_cmds \ 20736export_dynamic_flag_spec \ 20737whole_archive_flag_spec \ 20738compiler_needs_object \ 20739with_gnu_ld \ 20740allow_undefined_flag \ 20741no_undefined_flag \ 20742hardcode_libdir_flag_spec \ 20743hardcode_libdir_flag_spec_ld \ 20744hardcode_libdir_separator \ 20745exclude_expsyms \ 20746include_expsyms \ 20747file_list_spec \ 20748variables_saved_for_relink \ 20749libname_spec \ 20750library_names_spec \ 20751soname_spec \ 20752install_override_mode \ 20753finish_eval \ 20754old_striplib \ 20755striplib \ 20756compiler_lib_search_dirs \ 20757predep_objects \ 20758postdep_objects \ 20759predeps \ 20760postdeps \ 20761compiler_lib_search_path \ 20762LD_CXX \ 20763reload_flag_CXX \ 20764compiler_CXX \ 20765lt_prog_compiler_no_builtin_flag_CXX \ 20766lt_prog_compiler_pic_CXX \ 20767lt_prog_compiler_wl_CXX \ 20768lt_prog_compiler_static_CXX \ 20769lt_cv_prog_compiler_c_o_CXX \ 20770export_dynamic_flag_spec_CXX \ 20771whole_archive_flag_spec_CXX \ 20772compiler_needs_object_CXX \ 20773with_gnu_ld_CXX \ 20774allow_undefined_flag_CXX \ 20775no_undefined_flag_CXX \ 20776hardcode_libdir_flag_spec_CXX \ 20777hardcode_libdir_flag_spec_ld_CXX \ 20778hardcode_libdir_separator_CXX \ 20779exclude_expsyms_CXX \ 20780include_expsyms_CXX \ 20781file_list_spec_CXX \ 20782compiler_lib_search_dirs_CXX \ 20783predep_objects_CXX \ 20784postdep_objects_CXX \ 20785predeps_CXX \ 20786postdeps_CXX \ 20787compiler_lib_search_path_CXX; do 20788 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20789 *[\\\\\\\`\\"\\\$]*) 20790 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 20791 ;; 20792 *) 20793 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20794 ;; 20795 esac 20796done 20797 20798# Double-quote double-evaled strings. 20799for var in reload_cmds \ 20800old_postinstall_cmds \ 20801old_postuninstall_cmds \ 20802old_archive_cmds \ 20803extract_expsyms_cmds \ 20804old_archive_from_new_cmds \ 20805old_archive_from_expsyms_cmds \ 20806archive_cmds \ 20807archive_expsym_cmds \ 20808module_cmds \ 20809module_expsym_cmds \ 20810export_symbols_cmds \ 20811prelink_cmds \ 20812postlink_cmds \ 20813postinstall_cmds \ 20814postuninstall_cmds \ 20815finish_cmds \ 20816sys_lib_search_path_spec \ 20817sys_lib_dlsearch_path_spec \ 20818reload_cmds_CXX \ 20819old_archive_cmds_CXX \ 20820old_archive_from_new_cmds_CXX \ 20821old_archive_from_expsyms_cmds_CXX \ 20822archive_cmds_CXX \ 20823archive_expsym_cmds_CXX \ 20824module_cmds_CXX \ 20825module_expsym_cmds_CXX \ 20826export_symbols_cmds_CXX \ 20827prelink_cmds_CXX \ 20828postlink_cmds_CXX; do 20829 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20830 *[\\\\\\\`\\"\\\$]*) 20831 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 20832 ;; 20833 *) 20834 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20835 ;; 20836 esac 20837done 20838 20839ac_aux_dir='$ac_aux_dir' 20840xsi_shell='$xsi_shell' 20841lt_shell_append='$lt_shell_append' 20842 20843# See if we are running on zsh, and set the options which allow our 20844# commands through without removal of \ escapes INIT. 20845if test -n "\${ZSH_VERSION+set}" ; then 20846 setopt NO_GLOB_SUBST 20847fi 20848 20849 20850 PACKAGE='$PACKAGE' 20851 VERSION='$VERSION' 20852 TIMESTAMP='$TIMESTAMP' 20853 RM='$RM' 20854 ofile='$ofile' 20855 20856 20857 20858 20859 20860 20861_ACEOF 20862 20863cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20864 20865# Handling of arguments. 20866for ac_config_target in $ac_config_targets 20867do 20868 case $ac_config_target in 20869 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20870 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20871 "libtiff/tif_config.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tif_config.h" ;; 20872 "libtiff/tiffconf.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tiffconf.h" ;; 20873 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20874 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;; 20875 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; 20876 "contrib/addtiffo/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/addtiffo/Makefile" ;; 20877 "contrib/dbs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/Makefile" ;; 20878 "contrib/dbs/xtiff/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/xtiff/Makefile" ;; 20879 "contrib/iptcutil/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/iptcutil/Makefile" ;; 20880 "contrib/mfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mfs/Makefile" ;; 20881 "contrib/pds/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/pds/Makefile" ;; 20882 "contrib/ras/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/ras/Makefile" ;; 20883 "contrib/stream/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/stream/Makefile" ;; 20884 "contrib/tags/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/tags/Makefile" ;; 20885 "contrib/win_dib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/win_dib/Makefile" ;; 20886 "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;; 20887 "html/images/Makefile") CONFIG_FILES="$CONFIG_FILES html/images/Makefile" ;; 20888 "html/man/Makefile") CONFIG_FILES="$CONFIG_FILES html/man/Makefile" ;; 20889 "libtiff-4.pc") CONFIG_FILES="$CONFIG_FILES libtiff-4.pc" ;; 20890 "libtiff/Makefile") CONFIG_FILES="$CONFIG_FILES libtiff/Makefile" ;; 20891 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20892 "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;; 20893 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 20894 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 20895 20896 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20897 esac 20898done 20899 20900 20901# If the user did not use the arguments to specify the items to instantiate, 20902# then the envvar interface is used. Set only those that are not. 20903# We use the long form for the default assignment because of an extremely 20904# bizarre bug on SunOS 4.1.3. 20905if $ac_need_defaults; then 20906 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20907 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20908 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20909fi 20910 20911# Have a temporary directory for convenience. Make it in the build tree 20912# simply because there is no reason against having it here, and in addition, 20913# creating and moving files from /tmp can sometimes cause problems. 20914# Hook for its removal unless debugging. 20915# Note that there is a small window in which the directory will not be cleaned: 20916# after its creation but before its name has been assigned to `$tmp'. 20917$debug || 20918{ 20919 tmp= ac_tmp= 20920 trap 'exit_status=$? 20921 : "${ac_tmp:=$tmp}" 20922 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20923' 0 20924 trap 'as_fn_exit 1' 1 2 13 15 20925} 20926# Create a (secure) tmp directory for tmp files. 20927 20928{ 20929 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20930 test -d "$tmp" 20931} || 20932{ 20933 tmp=./conf$$-$RANDOM 20934 (umask 077 && mkdir "$tmp") 20935} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20936ac_tmp=$tmp 20937 20938# Set up the scripts for CONFIG_FILES section. 20939# No need to generate them if there are no CONFIG_FILES. 20940# This happens for instance with `./config.status config.h'. 20941if test -n "$CONFIG_FILES"; then 20942 20943 20944ac_cr=`echo X | tr X '\015'` 20945# On cygwin, bash can eat \r inside `` if the user requested igncr. 20946# But we know of no other shell where ac_cr would be empty at this 20947# point, so we can use a bashism as a fallback. 20948if test "x$ac_cr" = x; then 20949 eval ac_cr=\$\'\\r\' 20950fi 20951ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20952if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20953 ac_cs_awk_cr='\\r' 20954else 20955 ac_cs_awk_cr=$ac_cr 20956fi 20957 20958echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20959_ACEOF 20960 20961 20962{ 20963 echo "cat >conf$$subs.awk <<_ACEOF" && 20964 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20965 echo "_ACEOF" 20966} >conf$$subs.sh || 20967 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20968ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20969ac_delim='%!_!# ' 20970for ac_last_try in false false false false false :; do 20971 . ./conf$$subs.sh || 20972 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20973 20974 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20975 if test $ac_delim_n = $ac_delim_num; then 20976 break 20977 elif $ac_last_try; then 20978 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20979 else 20980 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20981 fi 20982done 20983rm -f conf$$subs.sh 20984 20985cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20986cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20987_ACEOF 20988sed -n ' 20989h 20990s/^/S["/; s/!.*/"]=/ 20991p 20992g 20993s/^[^!]*!// 20994:repl 20995t repl 20996s/'"$ac_delim"'$// 20997t delim 20998:nl 20999h 21000s/\(.\{148\}\)..*/\1/ 21001t more1 21002s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21003p 21004n 21005b repl 21006:more1 21007s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21008p 21009g 21010s/.\{148\}// 21011t nl 21012:delim 21013h 21014s/\(.\{148\}\)..*/\1/ 21015t more2 21016s/["\\]/\\&/g; s/^/"/; s/$/"/ 21017p 21018b 21019:more2 21020s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21021p 21022g 21023s/.\{148\}// 21024t delim 21025' <conf$$subs.awk | sed ' 21026/^[^""]/{ 21027 N 21028 s/\n// 21029} 21030' >>$CONFIG_STATUS || ac_write_fail=1 21031rm -f conf$$subs.awk 21032cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21033_ACAWK 21034cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21035 for (key in S) S_is_set[key] = 1 21036 FS = "" 21037 21038} 21039{ 21040 line = $ 0 21041 nfields = split(line, field, "@") 21042 substed = 0 21043 len = length(field[1]) 21044 for (i = 2; i < nfields; i++) { 21045 key = field[i] 21046 keylen = length(key) 21047 if (S_is_set[key]) { 21048 value = S[key] 21049 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21050 len += length(value) + length(field[++i]) 21051 substed = 1 21052 } else 21053 len += 1 + keylen 21054 } 21055 21056 print line 21057} 21058 21059_ACAWK 21060_ACEOF 21061cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21062if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21063 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21064else 21065 cat 21066fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21067 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21068_ACEOF 21069 21070# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21071# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21072# trailing colons and then remove the whole line if VPATH becomes empty 21073# (actually we leave an empty line to preserve line numbers). 21074if test "x$srcdir" = x.; then 21075 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21076h 21077s/// 21078s/^/:/ 21079s/[ ]*$/:/ 21080s/:\$(srcdir):/:/g 21081s/:\${srcdir}:/:/g 21082s/:@srcdir@:/:/g 21083s/^:*// 21084s/:*$// 21085x 21086s/\(=[ ]*\).*/\1/ 21087G 21088s/\n// 21089s/^[^=]*=[ ]*$// 21090}' 21091fi 21092 21093cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21094fi # test -n "$CONFIG_FILES" 21095 21096# Set up the scripts for CONFIG_HEADERS section. 21097# No need to generate them if there are no CONFIG_HEADERS. 21098# This happens for instance with `./config.status Makefile'. 21099if test -n "$CONFIG_HEADERS"; then 21100cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21101BEGIN { 21102_ACEOF 21103 21104# Transform confdefs.h into an awk script `defines.awk', embedded as 21105# here-document in config.status, that substitutes the proper values into 21106# config.h.in to produce config.h. 21107 21108# Create a delimiter string that does not exist in confdefs.h, to ease 21109# handling of long lines. 21110ac_delim='%!_!# ' 21111for ac_last_try in false false :; do 21112 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21113 if test -z "$ac_tt"; then 21114 break 21115 elif $ac_last_try; then 21116 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21117 else 21118 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21119 fi 21120done 21121 21122# For the awk script, D is an array of macro values keyed by name, 21123# likewise P contains macro parameters if any. Preserve backslash 21124# newline sequences. 21125 21126ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21127sed -n ' 21128s/.\{148\}/&'"$ac_delim"'/g 21129t rset 21130:rset 21131s/^[ ]*#[ ]*define[ ][ ]*/ / 21132t def 21133d 21134:def 21135s/\\$// 21136t bsnl 21137s/["\\]/\\&/g 21138s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21139D["\1"]=" \3"/p 21140s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21141d 21142:bsnl 21143s/["\\]/\\&/g 21144s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21145D["\1"]=" \3\\\\\\n"\\/p 21146t cont 21147s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21148t cont 21149d 21150:cont 21151n 21152s/.\{148\}/&'"$ac_delim"'/g 21153t clear 21154:clear 21155s/\\$// 21156t bsnlc 21157s/["\\]/\\&/g; s/^/"/; s/$/"/p 21158d 21159:bsnlc 21160s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21161b cont 21162' <confdefs.h | sed ' 21163s/'"$ac_delim"'/"\\\ 21164"/g' >>$CONFIG_STATUS || ac_write_fail=1 21165 21166cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21167 for (key in D) D_is_set[key] = 1 21168 FS = "" 21169} 21170/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21171 line = \$ 0 21172 split(line, arg, " ") 21173 if (arg[1] == "#") { 21174 defundef = arg[2] 21175 mac1 = arg[3] 21176 } else { 21177 defundef = substr(arg[1], 2) 21178 mac1 = arg[2] 21179 } 21180 split(mac1, mac2, "(") #) 21181 macro = mac2[1] 21182 prefix = substr(line, 1, index(line, defundef) - 1) 21183 if (D_is_set[macro]) { 21184 # Preserve the white space surrounding the "#". 21185 print prefix "define", macro P[macro] D[macro] 21186 next 21187 } else { 21188 # Replace #undef with comments. This is necessary, for example, 21189 # in the case of _POSIX_SOURCE, which is predefined and required 21190 # on some systems where configure will not decide to define it. 21191 if (defundef == "undef") { 21192 print "/*", prefix defundef, macro, "*/" 21193 next 21194 } 21195 } 21196} 21197{ print } 21198_ACAWK 21199_ACEOF 21200cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21201 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21202fi # test -n "$CONFIG_HEADERS" 21203 21204 21205eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21206shift 21207for ac_tag 21208do 21209 case $ac_tag in 21210 :[FHLC]) ac_mode=$ac_tag; continue;; 21211 esac 21212 case $ac_mode$ac_tag in 21213 :[FHL]*:*);; 21214 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21215 :[FH]-) ac_tag=-:-;; 21216 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21217 esac 21218 ac_save_IFS=$IFS 21219 IFS=: 21220 set x $ac_tag 21221 IFS=$ac_save_IFS 21222 shift 21223 ac_file=$1 21224 shift 21225 21226 case $ac_mode in 21227 :L) ac_source=$1;; 21228 :[FH]) 21229 ac_file_inputs= 21230 for ac_f 21231 do 21232 case $ac_f in 21233 -) ac_f="$ac_tmp/stdin";; 21234 *) # Look for the file first in the build tree, then in the source tree 21235 # (if the path is not absolute). The absolute path cannot be DOS-style, 21236 # because $ac_f cannot contain `:'. 21237 test -f "$ac_f" || 21238 case $ac_f in 21239 [\\/$]*) false;; 21240 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21241 esac || 21242 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21243 esac 21244 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21245 as_fn_append ac_file_inputs " '$ac_f'" 21246 done 21247 21248 # Let's still pretend it is `configure' which instantiates (i.e., don't 21249 # use $as_me), people would be surprised to read: 21250 # /* config.h. Generated by config.status. */ 21251 configure_input='Generated from '` 21252 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21253 `' by configure.' 21254 if test x"$ac_file" != x-; then 21255 configure_input="$ac_file. $configure_input" 21256 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21257$as_echo "$as_me: creating $ac_file" >&6;} 21258 fi 21259 # Neutralize special characters interpreted by sed in replacement strings. 21260 case $configure_input in #( 21261 *\&* | *\|* | *\\* ) 21262 ac_sed_conf_input=`$as_echo "$configure_input" | 21263 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21264 *) ac_sed_conf_input=$configure_input;; 21265 esac 21266 21267 case $ac_tag in 21268 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21269 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21270 esac 21271 ;; 21272 esac 21273 21274 ac_dir=`$as_dirname -- "$ac_file" || 21275$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21276 X"$ac_file" : 'X\(//\)[^/]' \| \ 21277 X"$ac_file" : 'X\(//\)$' \| \ 21278 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21279$as_echo X"$ac_file" | 21280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21281 s//\1/ 21282 q 21283 } 21284 /^X\(\/\/\)[^/].*/{ 21285 s//\1/ 21286 q 21287 } 21288 /^X\(\/\/\)$/{ 21289 s//\1/ 21290 q 21291 } 21292 /^X\(\/\).*/{ 21293 s//\1/ 21294 q 21295 } 21296 s/.*/./; q'` 21297 as_dir="$ac_dir"; as_fn_mkdir_p 21298 ac_builddir=. 21299 21300case "$ac_dir" in 21301.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21302*) 21303 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 21304 # A ".." for each directory in $ac_dir_suffix. 21305 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21306 case $ac_top_builddir_sub in 21307 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21308 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21309 esac ;; 21310esac 21311ac_abs_top_builddir=$ac_pwd 21312ac_abs_builddir=$ac_pwd$ac_dir_suffix 21313# for backward compatibility: 21314ac_top_builddir=$ac_top_build_prefix 21315 21316case $srcdir in 21317 .) # We are building in place. 21318 ac_srcdir=. 21319 ac_top_srcdir=$ac_top_builddir_sub 21320 ac_abs_top_srcdir=$ac_pwd ;; 21321 [\\/]* | ?:[\\/]* ) # Absolute name. 21322 ac_srcdir=$srcdir$ac_dir_suffix; 21323 ac_top_srcdir=$srcdir 21324 ac_abs_top_srcdir=$srcdir ;; 21325 *) # Relative name. 21326 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21327 ac_top_srcdir=$ac_top_build_prefix$srcdir 21328 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21329esac 21330ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21331 21332 21333 case $ac_mode in 21334 :F) 21335 # 21336 # CONFIG_FILE 21337 # 21338 21339 case $INSTALL in 21340 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21341 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21342 esac 21343 ac_MKDIR_P=$MKDIR_P 21344 case $MKDIR_P in 21345 [\\/$]* | ?:[\\/]* ) ;; 21346 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21347 esac 21348_ACEOF 21349 21350cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21351# If the template does not know about datarootdir, expand it. 21352# FIXME: This hack should be removed a few years after 2.60. 21353ac_datarootdir_hack=; ac_datarootdir_seen= 21354ac_sed_dataroot=' 21355/datarootdir/ { 21356 p 21357 q 21358} 21359/@datadir@/p 21360/@docdir@/p 21361/@infodir@/p 21362/@localedir@/p 21363/@mandir@/p' 21364case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21365*datarootdir*) ac_datarootdir_seen=yes;; 21366*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21368$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21369_ACEOF 21370cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21371 ac_datarootdir_hack=' 21372 s&@datadir@&$datadir&g 21373 s&@docdir@&$docdir&g 21374 s&@infodir@&$infodir&g 21375 s&@localedir@&$localedir&g 21376 s&@mandir@&$mandir&g 21377 s&\\\${datarootdir}&$datarootdir&g' ;; 21378esac 21379_ACEOF 21380 21381# Neutralize VPATH when `$srcdir' = `.'. 21382# Shell code in configure.ac might set extrasub. 21383# FIXME: do we really want to maintain this feature? 21384cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21385ac_sed_extra="$ac_vpsub 21386$extrasub 21387_ACEOF 21388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21389:t 21390/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21391s|@configure_input@|$ac_sed_conf_input|;t t 21392s&@top_builddir@&$ac_top_builddir_sub&;t t 21393s&@top_build_prefix@&$ac_top_build_prefix&;t t 21394s&@srcdir@&$ac_srcdir&;t t 21395s&@abs_srcdir@&$ac_abs_srcdir&;t t 21396s&@top_srcdir@&$ac_top_srcdir&;t t 21397s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21398s&@builddir@&$ac_builddir&;t t 21399s&@abs_builddir@&$ac_abs_builddir&;t t 21400s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21401s&@INSTALL@&$ac_INSTALL&;t t 21402s&@MKDIR_P@&$ac_MKDIR_P&;t t 21403$ac_datarootdir_hack 21404" 21405eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21406 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21407 21408test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21409 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21410 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21411 "$ac_tmp/out"`; test -z "$ac_out"; } && 21412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21413which seems to be undefined. Please make sure it is defined" >&5 21414$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21415which seems to be undefined. Please make sure it is defined" >&2;} 21416 21417 rm -f "$ac_tmp/stdin" 21418 case $ac_file in 21419 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21420 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21421 esac \ 21422 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21423 ;; 21424 :H) 21425 # 21426 # CONFIG_HEADER 21427 # 21428 if test x"$ac_file" != x-; then 21429 { 21430 $as_echo "/* $configure_input */" \ 21431 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21432 } >"$ac_tmp/config.h" \ 21433 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21434 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21435 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21436$as_echo "$as_me: $ac_file is unchanged" >&6;} 21437 else 21438 rm -f "$ac_file" 21439 mv "$ac_tmp/config.h" "$ac_file" \ 21440 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21441 fi 21442 else 21443 $as_echo "/* $configure_input */" \ 21444 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21445 || as_fn_error $? "could not create -" "$LINENO" 5 21446 fi 21447# Compute "$ac_file"'s index in $config_headers. 21448_am_arg="$ac_file" 21449_am_stamp_count=1 21450for _am_header in $config_headers :; do 21451 case $_am_header in 21452 $_am_arg | $_am_arg:* ) 21453 break ;; 21454 * ) 21455 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21456 esac 21457done 21458echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21459$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21460 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21461 X"$_am_arg" : 'X\(//\)$' \| \ 21462 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21463$as_echo X"$_am_arg" | 21464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21465 s//\1/ 21466 q 21467 } 21468 /^X\(\/\/\)[^/].*/{ 21469 s//\1/ 21470 q 21471 } 21472 /^X\(\/\/\)$/{ 21473 s//\1/ 21474 q 21475 } 21476 /^X\(\/\).*/{ 21477 s//\1/ 21478 q 21479 } 21480 s/.*/./; q'`/stamp-h$_am_stamp_count 21481 ;; 21482 21483 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21484$as_echo "$as_me: executing $ac_file commands" >&6;} 21485 ;; 21486 esac 21487 21488 21489 case $ac_file$ac_mode in 21490 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21491 # Autoconf 2.62 quotes --file arguments for eval, but not when files 21492 # are listed without --file. Let's play safe and only enable the eval 21493 # if we detect the quoting. 21494 case $CONFIG_FILES in 21495 *\'*) eval set x "$CONFIG_FILES" ;; 21496 *) set x $CONFIG_FILES ;; 21497 esac 21498 shift 21499 for mf 21500 do 21501 # Strip MF so we end up with the name of the file. 21502 mf=`echo "$mf" | sed -e 's/:.*$//'` 21503 # Check whether this is an Automake generated Makefile or not. 21504 # We used to match only the files named `Makefile.in', but 21505 # some people rename them; so instead we look at the file content. 21506 # Grep'ing the first line is not enough: some people post-process 21507 # each Makefile.in and add a new line on top of each file to say so. 21508 # Grep'ing the whole file is not good either: AIX grep has a line 21509 # limit of 2048, but all sed's we know have understand at least 4000. 21510 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 21511 dirpart=`$as_dirname -- "$mf" || 21512$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21513 X"$mf" : 'X\(//\)[^/]' \| \ 21514 X"$mf" : 'X\(//\)$' \| \ 21515 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 21516$as_echo X"$mf" | 21517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21518 s//\1/ 21519 q 21520 } 21521 /^X\(\/\/\)[^/].*/{ 21522 s//\1/ 21523 q 21524 } 21525 /^X\(\/\/\)$/{ 21526 s//\1/ 21527 q 21528 } 21529 /^X\(\/\).*/{ 21530 s//\1/ 21531 q 21532 } 21533 s/.*/./; q'` 21534 else 21535 continue 21536 fi 21537 # Extract the definition of DEPDIR, am__include, and am__quote 21538 # from the Makefile without running `make'. 21539 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 21540 test -z "$DEPDIR" && continue 21541 am__include=`sed -n 's/^am__include = //p' < "$mf"` 21542 test -z "am__include" && continue 21543 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 21544 # When using ansi2knr, U may be empty or an underscore; expand it 21545 U=`sed -n 's/^U = //p' < "$mf"` 21546 # Find all dependency output files, they are included files with 21547 # $(DEPDIR) in their names. We invoke sed twice because it is the 21548 # simplest approach to changing $(DEPDIR) to its actual value in the 21549 # expansion. 21550 for file in `sed -n " 21551 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 21552 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 21553 # Make sure the directory exists. 21554 test -f "$dirpart/$file" && continue 21555 fdir=`$as_dirname -- "$file" || 21556$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21557 X"$file" : 'X\(//\)[^/]' \| \ 21558 X"$file" : 'X\(//\)$' \| \ 21559 X"$file" : 'X\(/\)' \| . 2>/dev/null || 21560$as_echo X"$file" | 21561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21562 s//\1/ 21563 q 21564 } 21565 /^X\(\/\/\)[^/].*/{ 21566 s//\1/ 21567 q 21568 } 21569 /^X\(\/\/\)$/{ 21570 s//\1/ 21571 q 21572 } 21573 /^X\(\/\).*/{ 21574 s//\1/ 21575 q 21576 } 21577 s/.*/./; q'` 21578 as_dir=$dirpart/$fdir; as_fn_mkdir_p 21579 # echo "creating $dirpart/$file" 21580 echo '# dummy' > "$dirpart/$file" 21581 done 21582 done 21583} 21584 ;; 21585 "libtool":C) 21586 21587 # See if we are running on zsh, and set the options which allow our 21588 # commands through without removal of \ escapes. 21589 if test -n "${ZSH_VERSION+set}" ; then 21590 setopt NO_GLOB_SUBST 21591 fi 21592 21593 cfgfile="${ofile}T" 21594 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21595 $RM "$cfgfile" 21596 21597 cat <<_LT_EOF >> "$cfgfile" 21598#! $SHELL 21599 21600# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 21601# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 21602# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21603# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21604# 21605# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 21606# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 21607# Inc. 21608# Written by Gordon Matzigkeit, 1996 21609# 21610# This file is part of GNU Libtool. 21611# 21612# GNU Libtool is free software; you can redistribute it and/or 21613# modify it under the terms of the GNU General Public License as 21614# published by the Free Software Foundation; either version 2 of 21615# the License, or (at your option) any later version. 21616# 21617# As a special exception to the GNU General Public License, 21618# if you distribute this file as part of a program or library that 21619# is built using GNU Libtool, you may include this file under the 21620# same distribution terms that you use for the rest of that program. 21621# 21622# GNU Libtool is distributed in the hope that it will be useful, 21623# but WITHOUT ANY WARRANTY; without even the implied warranty of 21624# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21625# GNU General Public License for more details. 21626# 21627# You should have received a copy of the GNU General Public License 21628# along with GNU Libtool; see the file COPYING. If not, a copy 21629# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 21630# obtained by writing to the Free Software Foundation, Inc., 21631# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 21632 21633 21634# The names of the tagged configurations supported by this script. 21635available_tags="CXX " 21636 21637# ### BEGIN LIBTOOL CONFIG 21638 21639# Which release of libtool.m4 was used? 21640macro_version=$macro_version 21641macro_revision=$macro_revision 21642 21643# Assembler program. 21644AS=$lt_AS 21645 21646# DLL creation program. 21647DLLTOOL=$lt_DLLTOOL 21648 21649# Object dumper program. 21650OBJDUMP=$lt_OBJDUMP 21651 21652# Whether or not to build shared libraries. 21653build_libtool_libs=$enable_shared 21654 21655# Whether or not to build static libraries. 21656build_old_libs=$enable_static 21657 21658# What type of objects to build. 21659pic_mode=$pic_mode 21660 21661# Whether or not to optimize for fast installation. 21662fast_install=$enable_fast_install 21663 21664# Shell to use when invoking shell scripts. 21665SHELL=$lt_SHELL 21666 21667# An echo program that protects backslashes. 21668ECHO=$lt_ECHO 21669 21670# The host system. 21671host_alias=$host_alias 21672host=$host 21673host_os=$host_os 21674 21675# The build system. 21676build_alias=$build_alias 21677build=$build 21678build_os=$build_os 21679 21680# A sed program that does not truncate output. 21681SED=$lt_SED 21682 21683# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21684Xsed="\$SED -e 1s/^X//" 21685 21686# A grep program that handles long lines. 21687GREP=$lt_GREP 21688 21689# An ERE matcher. 21690EGREP=$lt_EGREP 21691 21692# A literal string matcher. 21693FGREP=$lt_FGREP 21694 21695# A BSD- or MS-compatible name lister. 21696NM=$lt_NM 21697 21698# Whether we need soft or hard links. 21699LN_S=$lt_LN_S 21700 21701# What is the maximum length of a command? 21702max_cmd_len=$max_cmd_len 21703 21704# Object file suffix (normally "o"). 21705objext=$ac_objext 21706 21707# Executable file suffix (normally ""). 21708exeext=$exeext 21709 21710# whether the shell understands "unset". 21711lt_unset=$lt_unset 21712 21713# turn spaces into newlines. 21714SP2NL=$lt_lt_SP2NL 21715 21716# turn newlines into spaces. 21717NL2SP=$lt_lt_NL2SP 21718 21719# convert \$build file names to \$host format. 21720to_host_file_cmd=$lt_cv_to_host_file_cmd 21721 21722# convert \$build files to toolchain format. 21723to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21724 21725# Method to check whether dependent libraries are shared objects. 21726deplibs_check_method=$lt_deplibs_check_method 21727 21728# Command to use when deplibs_check_method = "file_magic". 21729file_magic_cmd=$lt_file_magic_cmd 21730 21731# How to find potential files when deplibs_check_method = "file_magic". 21732file_magic_glob=$lt_file_magic_glob 21733 21734# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21735want_nocaseglob=$lt_want_nocaseglob 21736 21737# Command to associate shared and link libraries. 21738sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21739 21740# The archiver. 21741AR=$lt_AR 21742 21743# Flags to create an archive. 21744AR_FLAGS=$lt_AR_FLAGS 21745 21746# How to feed a file listing to the archiver. 21747archiver_list_spec=$lt_archiver_list_spec 21748 21749# A symbol stripping program. 21750STRIP=$lt_STRIP 21751 21752# Commands used to install an old-style archive. 21753RANLIB=$lt_RANLIB 21754old_postinstall_cmds=$lt_old_postinstall_cmds 21755old_postuninstall_cmds=$lt_old_postuninstall_cmds 21756 21757# Whether to use a lock for old archive extraction. 21758lock_old_archive_extraction=$lock_old_archive_extraction 21759 21760# A C compiler. 21761LTCC=$lt_CC 21762 21763# LTCC compiler flags. 21764LTCFLAGS=$lt_CFLAGS 21765 21766# Take the output of nm and produce a listing of raw symbols and C names. 21767global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21768 21769# Transform the output of nm in a proper C declaration. 21770global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21771 21772# Transform the output of nm in a C name address pair. 21773global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21774 21775# Transform the output of nm in a C name address pair when lib prefix is needed. 21776global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21777 21778# Specify filename containing input files for \$NM. 21779nm_file_list_spec=$lt_nm_file_list_spec 21780 21781# The root where to search for dependent libraries,and in which our libraries should be installed. 21782lt_sysroot=$lt_sysroot 21783 21784# The name of the directory that contains temporary libtool files. 21785objdir=$objdir 21786 21787# Used to examine libraries when file_magic_cmd begins with "file". 21788MAGIC_CMD=$MAGIC_CMD 21789 21790# Must we lock files when doing compilation? 21791need_locks=$lt_need_locks 21792 21793# Manifest tool. 21794MANIFEST_TOOL=$lt_MANIFEST_TOOL 21795 21796# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21797DSYMUTIL=$lt_DSYMUTIL 21798 21799# Tool to change global to local symbols on Mac OS X. 21800NMEDIT=$lt_NMEDIT 21801 21802# Tool to manipulate fat objects and archives on Mac OS X. 21803LIPO=$lt_LIPO 21804 21805# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21806OTOOL=$lt_OTOOL 21807 21808# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21809OTOOL64=$lt_OTOOL64 21810 21811# Old archive suffix (normally "a"). 21812libext=$libext 21813 21814# Shared library suffix (normally ".so"). 21815shrext_cmds=$lt_shrext_cmds 21816 21817# The commands to extract the exported symbol list from a shared archive. 21818extract_expsyms_cmds=$lt_extract_expsyms_cmds 21819 21820# Variables whose values should be saved in libtool wrapper scripts and 21821# restored at link time. 21822variables_saved_for_relink=$lt_variables_saved_for_relink 21823 21824# Do we need the "lib" prefix for modules? 21825need_lib_prefix=$need_lib_prefix 21826 21827# Do we need a version for libraries? 21828need_version=$need_version 21829 21830# Library versioning type. 21831version_type=$version_type 21832 21833# Shared library runtime path variable. 21834runpath_var=$runpath_var 21835 21836# Shared library path variable. 21837shlibpath_var=$shlibpath_var 21838 21839# Is shlibpath searched before the hard-coded library search path? 21840shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21841 21842# Format of library name prefix. 21843libname_spec=$lt_libname_spec 21844 21845# List of archive names. First name is the real one, the rest are links. 21846# The last name is the one that the linker finds with -lNAME 21847library_names_spec=$lt_library_names_spec 21848 21849# The coded name of the library, if different from the real name. 21850soname_spec=$lt_soname_spec 21851 21852# Permission mode override for installation of shared libraries. 21853install_override_mode=$lt_install_override_mode 21854 21855# Command to use after installation of a shared archive. 21856postinstall_cmds=$lt_postinstall_cmds 21857 21858# Command to use after uninstallation of a shared archive. 21859postuninstall_cmds=$lt_postuninstall_cmds 21860 21861# Commands used to finish a libtool library installation in a directory. 21862finish_cmds=$lt_finish_cmds 21863 21864# As "finish_cmds", except a single script fragment to be evaled but 21865# not shown. 21866finish_eval=$lt_finish_eval 21867 21868# Whether we should hardcode library paths into libraries. 21869hardcode_into_libs=$hardcode_into_libs 21870 21871# Compile-time system search path for libraries. 21872sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21873 21874# Run-time system search path for libraries. 21875sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 21876 21877# Whether dlopen is supported. 21878dlopen_support=$enable_dlopen 21879 21880# Whether dlopen of programs is supported. 21881dlopen_self=$enable_dlopen_self 21882 21883# Whether dlopen of statically linked programs is supported. 21884dlopen_self_static=$enable_dlopen_self_static 21885 21886# Commands to strip libraries. 21887old_striplib=$lt_old_striplib 21888striplib=$lt_striplib 21889 21890 21891# The linker used to build libraries. 21892LD=$lt_LD 21893 21894# How to create reloadable object files. 21895reload_flag=$lt_reload_flag 21896reload_cmds=$lt_reload_cmds 21897 21898# Commands used to build an old-style archive. 21899old_archive_cmds=$lt_old_archive_cmds 21900 21901# A language specific compiler. 21902CC=$lt_compiler 21903 21904# Is the compiler the GNU compiler? 21905with_gcc=$GCC 21906 21907# Compiler flag to turn off builtin functions. 21908no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21909 21910# Additional compiler flags for building library objects. 21911pic_flag=$lt_lt_prog_compiler_pic 21912 21913# How to pass a linker flag through the compiler. 21914wl=$lt_lt_prog_compiler_wl 21915 21916# Compiler flag to prevent dynamic linking. 21917link_static_flag=$lt_lt_prog_compiler_static 21918 21919# Does compiler simultaneously support -c and -o options? 21920compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21921 21922# Whether or not to add -lc for building shared libraries. 21923build_libtool_need_lc=$archive_cmds_need_lc 21924 21925# Whether or not to disallow shared libs when runtime libs are static. 21926allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21927 21928# Compiler flag to allow reflexive dlopens. 21929export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21930 21931# Compiler flag to generate shared objects directly from archives. 21932whole_archive_flag_spec=$lt_whole_archive_flag_spec 21933 21934# Whether the compiler copes with passing no objects directly. 21935compiler_needs_object=$lt_compiler_needs_object 21936 21937# Create an old-style archive from a shared archive. 21938old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21939 21940# Create a temporary old-style archive to link instead of a shared archive. 21941old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21942 21943# Commands used to build a shared archive. 21944archive_cmds=$lt_archive_cmds 21945archive_expsym_cmds=$lt_archive_expsym_cmds 21946 21947# Commands used to build a loadable module if different from building 21948# a shared archive. 21949module_cmds=$lt_module_cmds 21950module_expsym_cmds=$lt_module_expsym_cmds 21951 21952# Whether we are building with GNU ld or not. 21953with_gnu_ld=$lt_with_gnu_ld 21954 21955# Flag that allows shared libraries with undefined symbols to be built. 21956allow_undefined_flag=$lt_allow_undefined_flag 21957 21958# Flag that enforces no undefined symbols. 21959no_undefined_flag=$lt_no_undefined_flag 21960 21961# Flag to hardcode \$libdir into a binary during linking. 21962# This must work even if \$libdir does not exist 21963hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21964 21965# If ld is used when linking, flag to hardcode \$libdir into a binary 21966# during linking. This must work even if \$libdir does not exist. 21967hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 21968 21969# Whether we need a single "-rpath" flag with a separated argument. 21970hardcode_libdir_separator=$lt_hardcode_libdir_separator 21971 21972# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21973# DIR into the resulting binary. 21974hardcode_direct=$hardcode_direct 21975 21976# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21977# DIR into the resulting binary and the resulting library dependency is 21978# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 21979# library is relocated. 21980hardcode_direct_absolute=$hardcode_direct_absolute 21981 21982# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21983# into the resulting binary. 21984hardcode_minus_L=$hardcode_minus_L 21985 21986# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21987# into the resulting binary. 21988hardcode_shlibpath_var=$hardcode_shlibpath_var 21989 21990# Set to "yes" if building a shared library automatically hardcodes DIR 21991# into the library and all subsequent libraries and executables linked 21992# against it. 21993hardcode_automatic=$hardcode_automatic 21994 21995# Set to yes if linker adds runtime paths of dependent libraries 21996# to runtime path list. 21997inherit_rpath=$inherit_rpath 21998 21999# Whether libtool must link a program against all its dependency libraries. 22000link_all_deplibs=$link_all_deplibs 22001 22002# Set to "yes" if exported symbols are required. 22003always_export_symbols=$always_export_symbols 22004 22005# The commands to list exported symbols. 22006export_symbols_cmds=$lt_export_symbols_cmds 22007 22008# Symbols that should not be listed in the preloaded symbols. 22009exclude_expsyms=$lt_exclude_expsyms 22010 22011# Symbols that must always be exported. 22012include_expsyms=$lt_include_expsyms 22013 22014# Commands necessary for linking programs (against libraries) with templates. 22015prelink_cmds=$lt_prelink_cmds 22016 22017# Commands necessary for finishing linking programs. 22018postlink_cmds=$lt_postlink_cmds 22019 22020# Specify filename containing input files. 22021file_list_spec=$lt_file_list_spec 22022 22023# How to hardcode a shared library path into an executable. 22024hardcode_action=$hardcode_action 22025 22026# The directories searched by this compiler when creating a shared library. 22027compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 22028 22029# Dependencies to place before and after the objects being linked to 22030# create a shared library. 22031predep_objects=$lt_predep_objects 22032postdep_objects=$lt_postdep_objects 22033predeps=$lt_predeps 22034postdeps=$lt_postdeps 22035 22036# The library search path used internally by the compiler when linking 22037# a shared library. 22038compiler_lib_search_path=$lt_compiler_lib_search_path 22039 22040# ### END LIBTOOL CONFIG 22041 22042_LT_EOF 22043 22044 case $host_os in 22045 aix3*) 22046 cat <<\_LT_EOF >> "$cfgfile" 22047# AIX sometimes has problems with the GCC collect2 program. For some 22048# reason, if we set the COLLECT_NAMES environment variable, the problems 22049# vanish in a puff of smoke. 22050if test "X${COLLECT_NAMES+set}" != Xset; then 22051 COLLECT_NAMES= 22052 export COLLECT_NAMES 22053fi 22054_LT_EOF 22055 ;; 22056 esac 22057 22058 22059ltmain="$ac_aux_dir/ltmain.sh" 22060 22061 22062 # We use sed instead of cat because bash on DJGPP gets confused if 22063 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22064 # text mode, it properly converts lines to CR/LF. This bash problem 22065 # is reportedly fixed, but why not run on old versions too? 22066 sed '$q' "$ltmain" >> "$cfgfile" \ 22067 || (rm -f "$cfgfile"; exit 1) 22068 22069 if test x"$xsi_shell" = xyes; then 22070 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 22071func_dirname ()\ 22072{\ 22073\ case ${1} in\ 22074\ */*) func_dirname_result="${1%/*}${2}" ;;\ 22075\ * ) func_dirname_result="${3}" ;;\ 22076\ esac\ 22077} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 22078 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22079 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22080test 0 -eq $? || _lt_function_replace_fail=: 22081 22082 22083 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 22084func_basename ()\ 22085{\ 22086\ func_basename_result="${1##*/}"\ 22087} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 22088 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22089 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22090test 0 -eq $? || _lt_function_replace_fail=: 22091 22092 22093 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 22094func_dirname_and_basename ()\ 22095{\ 22096\ case ${1} in\ 22097\ */*) func_dirname_result="${1%/*}${2}" ;;\ 22098\ * ) func_dirname_result="${3}" ;;\ 22099\ esac\ 22100\ func_basename_result="${1##*/}"\ 22101} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 22102 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22103 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22104test 0 -eq $? || _lt_function_replace_fail=: 22105 22106 22107 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 22108func_stripname ()\ 22109{\ 22110\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 22111\ # positional parameters, so assign one to ordinary parameter first.\ 22112\ func_stripname_result=${3}\ 22113\ func_stripname_result=${func_stripname_result#"${1}"}\ 22114\ func_stripname_result=${func_stripname_result%"${2}"}\ 22115} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 22116 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22117 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22118test 0 -eq $? || _lt_function_replace_fail=: 22119 22120 22121 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 22122func_split_long_opt ()\ 22123{\ 22124\ func_split_long_opt_name=${1%%=*}\ 22125\ func_split_long_opt_arg=${1#*=}\ 22126} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 22127 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22128 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22129test 0 -eq $? || _lt_function_replace_fail=: 22130 22131 22132 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 22133func_split_short_opt ()\ 22134{\ 22135\ func_split_short_opt_arg=${1#??}\ 22136\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 22137} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 22138 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22139 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22140test 0 -eq $? || _lt_function_replace_fail=: 22141 22142 22143 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 22144func_lo2o ()\ 22145{\ 22146\ case ${1} in\ 22147\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 22148\ *) func_lo2o_result=${1} ;;\ 22149\ esac\ 22150} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 22151 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22152 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22153test 0 -eq $? || _lt_function_replace_fail=: 22154 22155 22156 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 22157func_xform ()\ 22158{\ 22159 func_xform_result=${1%.*}.lo\ 22160} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 22161 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22162 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22163test 0 -eq $? || _lt_function_replace_fail=: 22164 22165 22166 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 22167func_arith ()\ 22168{\ 22169 func_arith_result=$(( $* ))\ 22170} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 22171 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22172 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22173test 0 -eq $? || _lt_function_replace_fail=: 22174 22175 22176 sed -e '/^func_len ()$/,/^} # func_len /c\ 22177func_len ()\ 22178{\ 22179 func_len_result=${#1}\ 22180} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 22181 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22182 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22183test 0 -eq $? || _lt_function_replace_fail=: 22184 22185fi 22186 22187if test x"$lt_shell_append" = xyes; then 22188 sed -e '/^func_append ()$/,/^} # func_append /c\ 22189func_append ()\ 22190{\ 22191 eval "${1}+=\\${2}"\ 22192} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 22193 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22194 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22195test 0 -eq $? || _lt_function_replace_fail=: 22196 22197 22198 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 22199func_append_quoted ()\ 22200{\ 22201\ func_quote_for_eval "${2}"\ 22202\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 22203} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 22204 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22205 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22206test 0 -eq $? || _lt_function_replace_fail=: 22207 22208 22209 # Save a `func_append' function call where possible by direct use of '+=' 22210 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 22211 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22212 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22213 test 0 -eq $? || _lt_function_replace_fail=: 22214else 22215 # Save a `func_append' function call even when '+=' is not available 22216 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 22217 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22218 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22219 test 0 -eq $? || _lt_function_replace_fail=: 22220fi 22221 22222if test x"$_lt_function_replace_fail" = x":"; then 22223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 22224$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 22225fi 22226 22227 22228 mv -f "$cfgfile" "$ofile" || 22229 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22230 chmod +x "$ofile" 22231 22232 22233 cat <<_LT_EOF >> "$ofile" 22234 22235# ### BEGIN LIBTOOL TAG CONFIG: CXX 22236 22237# The linker used to build libraries. 22238LD=$lt_LD_CXX 22239 22240# How to create reloadable object files. 22241reload_flag=$lt_reload_flag_CXX 22242reload_cmds=$lt_reload_cmds_CXX 22243 22244# Commands used to build an old-style archive. 22245old_archive_cmds=$lt_old_archive_cmds_CXX 22246 22247# A language specific compiler. 22248CC=$lt_compiler_CXX 22249 22250# Is the compiler the GNU compiler? 22251with_gcc=$GCC_CXX 22252 22253# Compiler flag to turn off builtin functions. 22254no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 22255 22256# Additional compiler flags for building library objects. 22257pic_flag=$lt_lt_prog_compiler_pic_CXX 22258 22259# How to pass a linker flag through the compiler. 22260wl=$lt_lt_prog_compiler_wl_CXX 22261 22262# Compiler flag to prevent dynamic linking. 22263link_static_flag=$lt_lt_prog_compiler_static_CXX 22264 22265# Does compiler simultaneously support -c and -o options? 22266compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 22267 22268# Whether or not to add -lc for building shared libraries. 22269build_libtool_need_lc=$archive_cmds_need_lc_CXX 22270 22271# Whether or not to disallow shared libs when runtime libs are static. 22272allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 22273 22274# Compiler flag to allow reflexive dlopens. 22275export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 22276 22277# Compiler flag to generate shared objects directly from archives. 22278whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 22279 22280# Whether the compiler copes with passing no objects directly. 22281compiler_needs_object=$lt_compiler_needs_object_CXX 22282 22283# Create an old-style archive from a shared archive. 22284old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 22285 22286# Create a temporary old-style archive to link instead of a shared archive. 22287old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 22288 22289# Commands used to build a shared archive. 22290archive_cmds=$lt_archive_cmds_CXX 22291archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 22292 22293# Commands used to build a loadable module if different from building 22294# a shared archive. 22295module_cmds=$lt_module_cmds_CXX 22296module_expsym_cmds=$lt_module_expsym_cmds_CXX 22297 22298# Whether we are building with GNU ld or not. 22299with_gnu_ld=$lt_with_gnu_ld_CXX 22300 22301# Flag that allows shared libraries with undefined symbols to be built. 22302allow_undefined_flag=$lt_allow_undefined_flag_CXX 22303 22304# Flag that enforces no undefined symbols. 22305no_undefined_flag=$lt_no_undefined_flag_CXX 22306 22307# Flag to hardcode \$libdir into a binary during linking. 22308# This must work even if \$libdir does not exist 22309hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 22310 22311# If ld is used when linking, flag to hardcode \$libdir into a binary 22312# during linking. This must work even if \$libdir does not exist. 22313hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 22314 22315# Whether we need a single "-rpath" flag with a separated argument. 22316hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 22317 22318# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 22319# DIR into the resulting binary. 22320hardcode_direct=$hardcode_direct_CXX 22321 22322# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 22323# DIR into the resulting binary and the resulting library dependency is 22324# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 22325# library is relocated. 22326hardcode_direct_absolute=$hardcode_direct_absolute_CXX 22327 22328# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22329# into the resulting binary. 22330hardcode_minus_L=$hardcode_minus_L_CXX 22331 22332# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22333# into the resulting binary. 22334hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 22335 22336# Set to "yes" if building a shared library automatically hardcodes DIR 22337# into the library and all subsequent libraries and executables linked 22338# against it. 22339hardcode_automatic=$hardcode_automatic_CXX 22340 22341# Set to yes if linker adds runtime paths of dependent libraries 22342# to runtime path list. 22343inherit_rpath=$inherit_rpath_CXX 22344 22345# Whether libtool must link a program against all its dependency libraries. 22346link_all_deplibs=$link_all_deplibs_CXX 22347 22348# Set to "yes" if exported symbols are required. 22349always_export_symbols=$always_export_symbols_CXX 22350 22351# The commands to list exported symbols. 22352export_symbols_cmds=$lt_export_symbols_cmds_CXX 22353 22354# Symbols that should not be listed in the preloaded symbols. 22355exclude_expsyms=$lt_exclude_expsyms_CXX 22356 22357# Symbols that must always be exported. 22358include_expsyms=$lt_include_expsyms_CXX 22359 22360# Commands necessary for linking programs (against libraries) with templates. 22361prelink_cmds=$lt_prelink_cmds_CXX 22362 22363# Commands necessary for finishing linking programs. 22364postlink_cmds=$lt_postlink_cmds_CXX 22365 22366# Specify filename containing input files. 22367file_list_spec=$lt_file_list_spec_CXX 22368 22369# How to hardcode a shared library path into an executable. 22370hardcode_action=$hardcode_action_CXX 22371 22372# The directories searched by this compiler when creating a shared library. 22373compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 22374 22375# Dependencies to place before and after the objects being linked to 22376# create a shared library. 22377predep_objects=$lt_predep_objects_CXX 22378postdep_objects=$lt_postdep_objects_CXX 22379predeps=$lt_predeps_CXX 22380postdeps=$lt_postdeps_CXX 22381 22382# The library search path used internally by the compiler when linking 22383# a shared library. 22384compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 22385 22386# ### END LIBTOOL TAG CONFIG: CXX 22387_LT_EOF 22388 22389 ;; 22390 22391 esac 22392done # for ac_tag 22393 22394 22395as_fn_exit 0 22396_ACEOF 22397ac_clean_files=$ac_clean_files_save 22398 22399test $ac_write_fail = 0 || 22400 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22401 22402 22403# configure is writing to config.log, and then calls config.status. 22404# config.status does its own redirection, appending to config.log. 22405# Unfortunately, on DOS this fails, as config.log is still kept open 22406# by configure, so config.status won't be able to write to it; its 22407# output is simply discarded. So we exec the FD to /dev/null, 22408# effectively closing config.log, so it can be properly (re)opened and 22409# appended to by config.status. When coming back to configure, we 22410# need to make the FD available again. 22411if test "$no_create" != yes; then 22412 ac_cs_success=: 22413 ac_config_status_args= 22414 test "$silent" = yes && 22415 ac_config_status_args="$ac_config_status_args --quiet" 22416 exec 5>/dev/null 22417 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22418 exec 5>>config.log 22419 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22420 # would make configure fail if this is the last instruction. 22421 $ac_cs_success || as_fn_exit 1 22422fi 22423if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22425$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22426fi 22427 22428 22429 22430echo "" 22431echo "Libtiff is now configured for ${host}" 22432echo "" 22433echo " Installation directory: ${prefix}" 22434echo " Documentation directory: ${LIBTIFF_DOCDIR}" 22435echo " C compiler: ${CC} ${CFLAGS}" 22436echo " C++ compiler: ${CXX} ${CXXFLAGS}" 22437echo " Enable runtime linker paths: ${HAVE_RPATH}" 22438echo " Support Microsoft Document Imaging: ${HAVE_MDI}" 22439echo " Use win32 IO: ${win32_io_ok}" 22440echo "" 22441echo " Support for internal codecs:" 22442echo " CCITT Group 3 & 4 algorithms: ${HAVE_CCITT}" 22443echo " Macintosh PackBits algorithm: ${HAVE_PACKBITS}" 22444echo " LZW algorithm: ${HAVE_LZW}" 22445echo " ThunderScan 4-bit RLE algorithm: ${HAVE_THUNDER}" 22446echo " NeXT 2-bit RLE algorithm: ${HAVE_NEXT}" 22447echo " LogLuv high dynamic range encoding: ${HAVE_LOGLUV}" 22448echo "" 22449echo " Support for external codecs:" 22450echo " ZLIB support: ${HAVE_ZLIB}" 22451echo " Pixar log-format algorithm: ${HAVE_PIXARLOG}" 22452echo " JPEG support: ${HAVE_JPEG}" 22453echo " Old JPEG support: ${HAVE_OJPEG}" 22454echo " JPEG 8/12 bit dual mode: ${HAVE_JPEG12}" 22455echo " ISO JBIG support: ${HAVE_JBIG}" 22456echo " LZMA2 support: ${HAVE_LZMA}" 22457echo "" 22458echo " C++ support: ${HAVE_CXX}" 22459echo "" 22460echo " OpenGL support: ${HAVE_OPENGL}" 22461echo "" 22462 22463