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.0. 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.0' 574PACKAGE_STRING='LibTIFF Software 4.0.0' 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 679am__nodep 680AMDEPBACKSLASH 681AMDEP_FALSE 682AMDEP_TRUE 683am__quote 684am__include 685DEPDIR 686OBJEXT 687EXEEXT 688ac_ct_CC 689CPPFLAGS 690LDFLAGS 691CFLAGS 692CC 693LIBTIFF_RELEASE_DATE 694LIBTIFF_VERSION_INFO 695LIBTIFF_VERSION 696LIBTIFF_ALPHA_VERSION 697LIBTIFF_MICRO_VERSION 698LIBTIFF_MINOR_VERSION 699LIBTIFF_MAJOR_VERSION 700MAINT 701MAINTAINER_MODE_FALSE 702MAINTAINER_MODE_TRUE 703am__untar 704am__tar 705AMTAR 706am__leading_dot 707SET_MAKE 708AWK 709mkdir_p 710MKDIR_P 711INSTALL_STRIP_PROGRAM 712STRIP 713install_sh 714MAKEINFO 715AUTOHEADER 716AUTOMAKE 717AUTOCONF 718ACLOCAL 719VERSION 720PACKAGE 721CYGPATH_W 722am__isrc 723INSTALL_DATA 724INSTALL_SCRIPT 725INSTALL_PROGRAM 726host_os 727host_vendor 728host_cpu 729host 730build_os 731build_vendor 732build_cpu 733build 734target_alias 735host_alias 736build_alias 737LIBS 738ECHO_T 739ECHO_N 740ECHO_C 741DEFS 742mandir 743localedir 744libdir 745psdir 746pdfdir 747dvidir 748htmldir 749infodir 750docdir 751oldincludedir 752includedir 753localstatedir 754sharedstatedir 755sysconfdir 756datadir 757datarootdir 758libexecdir 759sbindir 760bindir 761program_transform_name 762prefix 763exec_prefix 764PACKAGE_URL 765PACKAGE_BUGREPORT 766PACKAGE_STRING 767PACKAGE_VERSION 768PACKAGE_TARNAME 769PACKAGE_NAME 770PATH_SEPARATOR 771SHELL' 772ac_subst_files='' 773ac_user_opts=' 774enable_option_checking 775enable_maintainer_mode 776enable_dependency_tracking 777enable_shared 778enable_static 779with_pic 780enable_fast_install 781with_gnu_ld 782with_sysroot 783enable_libtool_lock 784enable_silent_rules 785enable_rpath 786enable_largefile 787with_docdir 788enable_ccitt 789enable_packbits 790enable_lzw 791enable_thunder 792enable_next 793enable_logluv 794enable_mdi 795enable_zlib 796with_zlib_include_dir 797with_zlib_lib_dir 798enable_pixarlog 799enable_jpeg 800with_jpeg_include_dir 801with_jpeg_lib_dir 802enable_old_jpeg 803enable_jbig 804with_jbig_include_dir 805with_jbig_lib_dir 806enable_lzma 807with_lzma_include_dir 808with_lzma_lib_dir 809enable_jpeg12 810with_jpeg12_include_dir 811with_jpeg12_lib 812enable_cxx 813with_x 814enable_strip_chopping 815with_default_strip_size 816enable_defer_strile_load 817enable_chunky_strip_read 818enable_extrasample_as_alpha 819enable_check_ycbcr_subsampling 820' 821 ac_precious_vars='build_alias 822host_alias 823target_alias 824CC 825CFLAGS 826LDFLAGS 827LIBS 828CPPFLAGS 829CPP 830CXX 831CXXFLAGS 832CCC 833CXXCPP 834XMKMF' 835 836 837# Initialize some variables set by options. 838ac_init_help= 839ac_init_version=false 840ac_unrecognized_opts= 841ac_unrecognized_sep= 842# The variables have the same names as the options, with 843# dashes changed to underlines. 844cache_file=/dev/null 845exec_prefix=NONE 846no_create= 847no_recursion= 848prefix=NONE 849program_prefix=NONE 850program_suffix=NONE 851program_transform_name=s,x,x, 852silent= 853site= 854srcdir= 855verbose= 856x_includes=NONE 857x_libraries=NONE 858 859# Installation directory options. 860# These are left unexpanded so users can "make install exec_prefix=/foo" 861# and all the variables that are supposed to be based on exec_prefix 862# by default will actually change. 863# Use braces instead of parens because sh, perl, etc. also accept them. 864# (The list follows the same order as the GNU Coding Standards.) 865bindir='${exec_prefix}/bin' 866sbindir='${exec_prefix}/sbin' 867libexecdir='${exec_prefix}/libexec' 868datarootdir='${prefix}/share' 869datadir='${datarootdir}' 870sysconfdir='${prefix}/etc' 871sharedstatedir='${prefix}/com' 872localstatedir='${prefix}/var' 873includedir='${prefix}/include' 874oldincludedir='/usr/include' 875docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 876infodir='${datarootdir}/info' 877htmldir='${docdir}' 878dvidir='${docdir}' 879pdfdir='${docdir}' 880psdir='${docdir}' 881libdir='${exec_prefix}/lib' 882localedir='${datarootdir}/locale' 883mandir='${datarootdir}/man' 884 885ac_prev= 886ac_dashdash= 887for ac_option 888do 889 # If the previous option needs an argument, assign it. 890 if test -n "$ac_prev"; then 891 eval $ac_prev=\$ac_option 892 ac_prev= 893 continue 894 fi 895 896 case $ac_option in 897 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 898 *=) ac_optarg= ;; 899 *) ac_optarg=yes ;; 900 esac 901 902 # Accept the important Cygnus configure options, so we can diagnose typos. 903 904 case $ac_dashdash$ac_option in 905 --) 906 ac_dashdash=yes ;; 907 908 -bindir | --bindir | --bindi | --bind | --bin | --bi) 909 ac_prev=bindir ;; 910 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 911 bindir=$ac_optarg ;; 912 913 -build | --build | --buil | --bui | --bu) 914 ac_prev=build_alias ;; 915 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 916 build_alias=$ac_optarg ;; 917 918 -cache-file | --cache-file | --cache-fil | --cache-fi \ 919 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 920 ac_prev=cache_file ;; 921 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 922 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 923 cache_file=$ac_optarg ;; 924 925 --config-cache | -C) 926 cache_file=config.cache ;; 927 928 -datadir | --datadir | --datadi | --datad) 929 ac_prev=datadir ;; 930 -datadir=* | --datadir=* | --datadi=* | --datad=*) 931 datadir=$ac_optarg ;; 932 933 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 934 | --dataroo | --dataro | --datar) 935 ac_prev=datarootdir ;; 936 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 937 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 938 datarootdir=$ac_optarg ;; 939 940 -disable-* | --disable-*) 941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 942 # Reject names that are not valid shell variable names. 943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 944 as_fn_error $? "invalid feature name: $ac_useropt" 945 ac_useropt_orig=$ac_useropt 946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 947 case $ac_user_opts in 948 *" 949"enable_$ac_useropt" 950"*) ;; 951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 952 ac_unrecognized_sep=', ';; 953 esac 954 eval enable_$ac_useropt=no ;; 955 956 -docdir | --docdir | --docdi | --doc | --do) 957 ac_prev=docdir ;; 958 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 959 docdir=$ac_optarg ;; 960 961 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 962 ac_prev=dvidir ;; 963 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 964 dvidir=$ac_optarg ;; 965 966 -enable-* | --enable-*) 967 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 968 # Reject names that are not valid shell variable names. 969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 970 as_fn_error $? "invalid feature name: $ac_useropt" 971 ac_useropt_orig=$ac_useropt 972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 973 case $ac_user_opts in 974 *" 975"enable_$ac_useropt" 976"*) ;; 977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 978 ac_unrecognized_sep=', ';; 979 esac 980 eval enable_$ac_useropt=\$ac_optarg ;; 981 982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 984 | --exec | --exe | --ex) 985 ac_prev=exec_prefix ;; 986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 988 | --exec=* | --exe=* | --ex=*) 989 exec_prefix=$ac_optarg ;; 990 991 -gas | --gas | --ga | --g) 992 # Obsolete; use --with-gas. 993 with_gas=yes ;; 994 995 -help | --help | --hel | --he | -h) 996 ac_init_help=long ;; 997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 998 ac_init_help=recursive ;; 999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1000 ac_init_help=short ;; 1001 1002 -host | --host | --hos | --ho) 1003 ac_prev=host_alias ;; 1004 -host=* | --host=* | --hos=* | --ho=*) 1005 host_alias=$ac_optarg ;; 1006 1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1008 ac_prev=htmldir ;; 1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1010 | --ht=*) 1011 htmldir=$ac_optarg ;; 1012 1013 -includedir | --includedir | --includedi | --included | --include \ 1014 | --includ | --inclu | --incl | --inc) 1015 ac_prev=includedir ;; 1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1017 | --includ=* | --inclu=* | --incl=* | --inc=*) 1018 includedir=$ac_optarg ;; 1019 1020 -infodir | --infodir | --infodi | --infod | --info | --inf) 1021 ac_prev=infodir ;; 1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1023 infodir=$ac_optarg ;; 1024 1025 -libdir | --libdir | --libdi | --libd) 1026 ac_prev=libdir ;; 1027 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1028 libdir=$ac_optarg ;; 1029 1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1031 | --libexe | --libex | --libe) 1032 ac_prev=libexecdir ;; 1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1034 | --libexe=* | --libex=* | --libe=*) 1035 libexecdir=$ac_optarg ;; 1036 1037 -localedir | --localedir | --localedi | --localed | --locale) 1038 ac_prev=localedir ;; 1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1040 localedir=$ac_optarg ;; 1041 1042 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1043 | --localstate | --localstat | --localsta | --localst | --locals) 1044 ac_prev=localstatedir ;; 1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1047 localstatedir=$ac_optarg ;; 1048 1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1050 ac_prev=mandir ;; 1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1052 mandir=$ac_optarg ;; 1053 1054 -nfp | --nfp | --nf) 1055 # Obsolete; use --without-fp. 1056 with_fp=no ;; 1057 1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1059 | --no-cr | --no-c | -n) 1060 no_create=yes ;; 1061 1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1064 no_recursion=yes ;; 1065 1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1068 | --oldin | --oldi | --old | --ol | --o) 1069 ac_prev=oldincludedir ;; 1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1073 oldincludedir=$ac_optarg ;; 1074 1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1076 ac_prev=prefix ;; 1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1078 prefix=$ac_optarg ;; 1079 1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1081 | --program-pre | --program-pr | --program-p) 1082 ac_prev=program_prefix ;; 1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1085 program_prefix=$ac_optarg ;; 1086 1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1088 | --program-suf | --program-su | --program-s) 1089 ac_prev=program_suffix ;; 1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1092 program_suffix=$ac_optarg ;; 1093 1094 -program-transform-name | --program-transform-name \ 1095 | --program-transform-nam | --program-transform-na \ 1096 | --program-transform-n | --program-transform- \ 1097 | --program-transform | --program-transfor \ 1098 | --program-transfo | --program-transf \ 1099 | --program-trans | --program-tran \ 1100 | --progr-tra | --program-tr | --program-t) 1101 ac_prev=program_transform_name ;; 1102 -program-transform-name=* | --program-transform-name=* \ 1103 | --program-transform-nam=* | --program-transform-na=* \ 1104 | --program-transform-n=* | --program-transform-=* \ 1105 | --program-transform=* | --program-transfor=* \ 1106 | --program-transfo=* | --program-transf=* \ 1107 | --program-trans=* | --program-tran=* \ 1108 | --progr-tra=* | --program-tr=* | --program-t=*) 1109 program_transform_name=$ac_optarg ;; 1110 1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1112 ac_prev=pdfdir ;; 1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1114 pdfdir=$ac_optarg ;; 1115 1116 -psdir | --psdir | --psdi | --psd | --ps) 1117 ac_prev=psdir ;; 1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1119 psdir=$ac_optarg ;; 1120 1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1122 | -silent | --silent | --silen | --sile | --sil) 1123 silent=yes ;; 1124 1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1126 ac_prev=sbindir ;; 1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1128 | --sbi=* | --sb=*) 1129 sbindir=$ac_optarg ;; 1130 1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1133 | --sharedst | --shareds | --shared | --share | --shar \ 1134 | --sha | --sh) 1135 ac_prev=sharedstatedir ;; 1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1139 | --sha=* | --sh=*) 1140 sharedstatedir=$ac_optarg ;; 1141 1142 -site | --site | --sit) 1143 ac_prev=site ;; 1144 -site=* | --site=* | --sit=*) 1145 site=$ac_optarg ;; 1146 1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1148 ac_prev=srcdir ;; 1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1150 srcdir=$ac_optarg ;; 1151 1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1153 | --syscon | --sysco | --sysc | --sys | --sy) 1154 ac_prev=sysconfdir ;; 1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1157 sysconfdir=$ac_optarg ;; 1158 1159 -target | --target | --targe | --targ | --tar | --ta | --t) 1160 ac_prev=target_alias ;; 1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1162 target_alias=$ac_optarg ;; 1163 1164 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1165 verbose=yes ;; 1166 1167 -version | --version | --versio | --versi | --vers | -V) 1168 ac_init_version=: ;; 1169 1170 -with-* | --with-*) 1171 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1172 # Reject names that are not valid shell variable names. 1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1174 as_fn_error $? "invalid package name: $ac_useropt" 1175 ac_useropt_orig=$ac_useropt 1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1177 case $ac_user_opts in 1178 *" 1179"with_$ac_useropt" 1180"*) ;; 1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1182 ac_unrecognized_sep=', ';; 1183 esac 1184 eval with_$ac_useropt=\$ac_optarg ;; 1185 1186 -without-* | --without-*) 1187 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1188 # Reject names that are not valid shell variable names. 1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1190 as_fn_error $? "invalid package name: $ac_useropt" 1191 ac_useropt_orig=$ac_useropt 1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1193 case $ac_user_opts in 1194 *" 1195"with_$ac_useropt" 1196"*) ;; 1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1198 ac_unrecognized_sep=', ';; 1199 esac 1200 eval with_$ac_useropt=no ;; 1201 1202 --x) 1203 # Obsolete; use --with-x. 1204 with_x=yes ;; 1205 1206 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1207 | --x-incl | --x-inc | --x-in | --x-i) 1208 ac_prev=x_includes ;; 1209 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1210 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1211 x_includes=$ac_optarg ;; 1212 1213 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1214 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1215 ac_prev=x_libraries ;; 1216 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1217 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1218 x_libraries=$ac_optarg ;; 1219 1220 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1221Try \`$0 --help' for more information" 1222 ;; 1223 1224 *=*) 1225 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1226 # Reject names that are not valid shell variable names. 1227 case $ac_envvar in #( 1228 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1229 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1230 esac 1231 eval $ac_envvar=\$ac_optarg 1232 export $ac_envvar ;; 1233 1234 *) 1235 # FIXME: should be removed in autoconf 3.0. 1236 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1237 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1238 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1239 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1240 ;; 1241 1242 esac 1243done 1244 1245if test -n "$ac_prev"; then 1246 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1247 as_fn_error $? "missing argument to $ac_option" 1248fi 1249 1250if test -n "$ac_unrecognized_opts"; then 1251 case $enable_option_checking in 1252 no) ;; 1253 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1254 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1255 esac 1256fi 1257 1258# Check all directory arguments for consistency. 1259for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1260 datadir sysconfdir sharedstatedir localstatedir includedir \ 1261 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1262 libdir localedir mandir 1263do 1264 eval ac_val=\$$ac_var 1265 # Remove trailing slashes. 1266 case $ac_val in 1267 */ ) 1268 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1269 eval $ac_var=\$ac_val;; 1270 esac 1271 # Be sure to have absolute directory names. 1272 case $ac_val in 1273 [\\/$]* | ?:[\\/]* ) continue;; 1274 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1275 esac 1276 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1277done 1278 1279# There might be people who depend on the old broken behavior: `$host' 1280# used to hold the argument of --host etc. 1281# FIXME: To remove some day. 1282build=$build_alias 1283host=$host_alias 1284target=$target_alias 1285 1286# FIXME: To remove some day. 1287if test "x$host_alias" != x; then 1288 if test "x$build_alias" = x; then 1289 cross_compiling=maybe 1290 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1291 If a cross compiler is detected then cross compile mode will be used" >&2 1292 elif test "x$build_alias" != "x$host_alias"; then 1293 cross_compiling=yes 1294 fi 1295fi 1296 1297ac_tool_prefix= 1298test -n "$host_alias" && ac_tool_prefix=$host_alias- 1299 1300test "$silent" = yes && exec 6>/dev/null 1301 1302 1303ac_pwd=`pwd` && test -n "$ac_pwd" && 1304ac_ls_di=`ls -di .` && 1305ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1306 as_fn_error $? "working directory cannot be determined" 1307test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1308 as_fn_error $? "pwd does not report name of working directory" 1309 1310 1311# Find the source files, if location was not specified. 1312if test -z "$srcdir"; then 1313 ac_srcdir_defaulted=yes 1314 # Try the directory containing this script, then the parent directory. 1315 ac_confdir=`$as_dirname -- "$as_myself" || 1316$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1317 X"$as_myself" : 'X\(//\)[^/]' \| \ 1318 X"$as_myself" : 'X\(//\)$' \| \ 1319 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1320$as_echo X"$as_myself" | 1321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1322 s//\1/ 1323 q 1324 } 1325 /^X\(\/\/\)[^/].*/{ 1326 s//\1/ 1327 q 1328 } 1329 /^X\(\/\/\)$/{ 1330 s//\1/ 1331 q 1332 } 1333 /^X\(\/\).*/{ 1334 s//\1/ 1335 q 1336 } 1337 s/.*/./; q'` 1338 srcdir=$ac_confdir 1339 if test ! -r "$srcdir/$ac_unique_file"; then 1340 srcdir=.. 1341 fi 1342else 1343 ac_srcdir_defaulted=no 1344fi 1345if test ! -r "$srcdir/$ac_unique_file"; then 1346 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1347 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1348fi 1349ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1350ac_abs_confdir=`( 1351 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1352 pwd)` 1353# When building in place, set srcdir=. 1354if test "$ac_abs_confdir" = "$ac_pwd"; then 1355 srcdir=. 1356fi 1357# Remove unnecessary trailing slashes from srcdir. 1358# Double slashes in file names in object file debugging info 1359# mess up M-x gdb in Emacs. 1360case $srcdir in 1361*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1362esac 1363for ac_var in $ac_precious_vars; do 1364 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1365 eval ac_env_${ac_var}_value=\$${ac_var} 1366 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1367 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1368done 1369 1370# 1371# Report the --help message. 1372# 1373if test "$ac_init_help" = "long"; then 1374 # Omit some internal or obsolete options to make the list less imposing. 1375 # This message is too long to be a string in the A/UX 3.1 sh. 1376 cat <<_ACEOF 1377\`configure' configures LibTIFF Software 4.0.0 to adapt to many kinds of systems. 1378 1379Usage: $0 [OPTION]... [VAR=VALUE]... 1380 1381To assign environment variables (e.g., CC, CFLAGS...), specify them as 1382VAR=VALUE. See below for descriptions of some of the useful variables. 1383 1384Defaults for the options are specified in brackets. 1385 1386Configuration: 1387 -h, --help display this help and exit 1388 --help=short display options specific to this package 1389 --help=recursive display the short help of all the included packages 1390 -V, --version display version information and exit 1391 -q, --quiet, --silent do not print \`checking ...' messages 1392 --cache-file=FILE cache test results in FILE [disabled] 1393 -C, --config-cache alias for \`--cache-file=config.cache' 1394 -n, --no-create do not create output files 1395 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1396 1397Installation directories: 1398 --prefix=PREFIX install architecture-independent files in PREFIX 1399 [$ac_default_prefix] 1400 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1401 [PREFIX] 1402 1403By default, \`make install' will install all the files in 1404\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1405an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1406for instance \`--prefix=\$HOME'. 1407 1408For better control, use the options below. 1409 1410Fine tuning of the installation directories: 1411 --bindir=DIR user executables [EPREFIX/bin] 1412 --sbindir=DIR system admin executables [EPREFIX/sbin] 1413 --libexecdir=DIR program executables [EPREFIX/libexec] 1414 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1415 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1416 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1417 --libdir=DIR object code libraries [EPREFIX/lib] 1418 --includedir=DIR C header files [PREFIX/include] 1419 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1420 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1421 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1422 --infodir=DIR info documentation [DATAROOTDIR/info] 1423 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1424 --mandir=DIR man documentation [DATAROOTDIR/man] 1425 --docdir=DIR documentation root [DATAROOTDIR/doc/tiff] 1426 --htmldir=DIR html documentation [DOCDIR] 1427 --dvidir=DIR dvi documentation [DOCDIR] 1428 --pdfdir=DIR pdf documentation [DOCDIR] 1429 --psdir=DIR ps documentation [DOCDIR] 1430_ACEOF 1431 1432 cat <<\_ACEOF 1433 1434Program names: 1435 --program-prefix=PREFIX prepend PREFIX to installed program names 1436 --program-suffix=SUFFIX append SUFFIX to installed program names 1437 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1438 1439X features: 1440 --x-includes=DIR X include files are in DIR 1441 --x-libraries=DIR X library files are in DIR 1442 1443System types: 1444 --build=BUILD configure for building on BUILD [guessed] 1445 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1446_ACEOF 1447fi 1448 1449if test -n "$ac_init_help"; then 1450 case $ac_init_help in 1451 short | recursive ) echo "Configuration of LibTIFF Software 4.0.0:";; 1452 esac 1453 cat <<\_ACEOF 1454 1455Optional Features: 1456 --disable-option-checking ignore unrecognized --enable/--with options 1457 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1458 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1459 --enable-maintainer-mode enable make rules and dependencies not useful 1460 (and sometimes confusing) to the casual installer 1461 --disable-dependency-tracking speeds up one-time build 1462 --enable-dependency-tracking do not reject slow dependency extractors 1463 --enable-shared[=PKGS] build shared libraries [default=yes] 1464 --enable-static[=PKGS] build static libraries [default=yes] 1465 --enable-fast-install[=PKGS] 1466 optimize for fast installation [default=yes] 1467 --disable-libtool-lock avoid locking (might break parallel builds) 1468 --enable-silent-rules less verbose build output (undo: `make V=1') 1469 --disable-silent-rules verbose build output (undo: `make V=0') 1470 --enable-rpath Enable runtime linker paths (-R libtool option) 1471 --disable-largefile omit support for large files 1472 --disable-ccitt disable support for CCITT Group 3 & 4 algorithms 1473 --disable-packbits disable support for Macintosh PackBits algorithm 1474 --disable-lzw disable support for LZW algorithm 1475 --disable-thunder disable support for ThunderScan 4-bit RLE algorithm 1476 --disable-next disable support for NeXT 2-bit RLE algorithm 1477 --disable-logluv disable support for LogLuv high dynamic range 1478 encoding 1479 --disable-mdi disable support for Microsoft Document Imaging 1480 --disable-zlib disable Zlib usage (required for Deflate 1481 compression, enabled by default) 1482 --disable-pixarlog disable support for Pixar log-format algorithm 1483 (requires Zlib) 1484 --disable-jpeg disable IJG JPEG library usage (required for JPEG 1485 compression, enabled by default) 1486 --disable-old-jpeg disable support for Old JPEG compresson (read-only, 1487 enabled by default) 1488 --disable-jbig disable JBIG-KIT usage (required for ISO JBIG 1489 compression, enabled by default) 1490 --disable-lzma disable liblzma usage (required for LZMA2 1491 compression, enabled by default) 1492 --enable-jpeg12 enable libjpeg 8/12bit dual mode 1493 --enable-cxx enable C++ stream API building (requires C++ 1494 compiler) 1495 --disable-strip-chopping 1496 disable support for strip chopping (whether or not 1497 to convert single-strip uncompressed images to 1498 mutiple strips of specified size to reduce memory 1499 usage) 1500 --enable-defer-strile-load 1501 enable deferred strip/tile offset/size loading 1502 (experimental) 1503 --enable-chunky-strip-read 1504 enable reading large strips in chunks for 1505 TIFFReadScanline() (experimental) 1506 --disable-extrasample-as-alpha 1507 the RGBA interface will treat a fourth sample with 1508 no EXTRASAMPLE_ value as being ASSOCALPHA. Many 1509 packages produce RGBA files but don't mark the alpha 1510 properly 1511 --disable-check-ycbcr-subsampling 1512 disable picking up YCbCr subsampling info from the 1513 JPEG data stream to support files lacking the tag 1514 1515Optional Packages: 1516 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1517 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1518 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1519 both] 1520 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1521 --with-sysroot=DIR Search for dependent libraries within DIR 1522 (or the compiler's sysroot if not specified). 1523 --with-docdir=DIR directory where documentation should be installed 1524 --with-zlib-include-dir=DIR 1525 location of Zlib headers 1526 --with-zlib-lib-dir=DIR location of Zlib library binary 1527 --with-jpeg-include-dir=DIR 1528 location of IJG JPEG library headers 1529 --with-jpeg-lib-dir=DIR location of IJG JPEG library binary 1530 --with-jbig-include-dir=DIR 1531 location of JBIG-KIT headers 1532 --with-jbig-lib-dir=DIR location of JBIG-KIT library binary 1533 --with-lzma-include-dir=DIR 1534 location of liblzma headers 1535 --with-lzma-lib-dir=DIR location of liblzma library binary 1536 --with-jpeg12-include-dir=DIR 1537 location of libjpeg 12bit headers 1538 --with-jpeg12-lib=LIBRARY 1539 path to libjpeg 12bit library 1540 --with-x use the X Window System 1541 --with-default-strip-size=SIZE 1542 default size of the strip in bytes (when strip 1543 chopping enabled) [[default=8192]] 1544 1545Some influential environment variables: 1546 CC C compiler command 1547 CFLAGS C compiler flags 1548 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1549 nonstandard directory <lib dir> 1550 LIBS libraries to pass to the linker, e.g. -l<library> 1551 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1552 you have headers in a nonstandard directory <include dir> 1553 CPP C preprocessor 1554 CXX C++ compiler command 1555 CXXFLAGS C++ compiler flags 1556 CXXCPP C++ preprocessor 1557 XMKMF Path to xmkmf, Makefile generator for X Window System 1558 1559Use these variables to override the choices made by `configure' or to help 1560it to find libraries and programs with nonstandard names/locations. 1561 1562Report bugs to <[email protected]>. 1563_ACEOF 1564ac_status=$? 1565fi 1566 1567if test "$ac_init_help" = "recursive"; then 1568 # If there are subdirs, report their specific --help. 1569 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1570 test -d "$ac_dir" || 1571 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1572 continue 1573 ac_builddir=. 1574 1575case "$ac_dir" in 1576.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1577*) 1578 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1579 # A ".." for each directory in $ac_dir_suffix. 1580 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1581 case $ac_top_builddir_sub in 1582 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1583 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1584 esac ;; 1585esac 1586ac_abs_top_builddir=$ac_pwd 1587ac_abs_builddir=$ac_pwd$ac_dir_suffix 1588# for backward compatibility: 1589ac_top_builddir=$ac_top_build_prefix 1590 1591case $srcdir in 1592 .) # We are building in place. 1593 ac_srcdir=. 1594 ac_top_srcdir=$ac_top_builddir_sub 1595 ac_abs_top_srcdir=$ac_pwd ;; 1596 [\\/]* | ?:[\\/]* ) # Absolute name. 1597 ac_srcdir=$srcdir$ac_dir_suffix; 1598 ac_top_srcdir=$srcdir 1599 ac_abs_top_srcdir=$srcdir ;; 1600 *) # Relative name. 1601 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1602 ac_top_srcdir=$ac_top_build_prefix$srcdir 1603 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1604esac 1605ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1606 1607 cd "$ac_dir" || { ac_status=$?; continue; } 1608 # Check for guested configure. 1609 if test -f "$ac_srcdir/configure.gnu"; then 1610 echo && 1611 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1612 elif test -f "$ac_srcdir/configure"; then 1613 echo && 1614 $SHELL "$ac_srcdir/configure" --help=recursive 1615 else 1616 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1617 fi || ac_status=$? 1618 cd "$ac_pwd" || { ac_status=$?; break; } 1619 done 1620fi 1621 1622test -n "$ac_init_help" && exit $ac_status 1623if $ac_init_version; then 1624 cat <<\_ACEOF 1625LibTIFF Software configure 4.0.0 1626generated by GNU Autoconf 2.68 1627 1628Copyright (C) 2010 Free Software Foundation, Inc. 1629This configure script is free software; the Free Software Foundation 1630gives unlimited permission to copy, distribute and modify it. 1631_ACEOF 1632 exit 1633fi 1634 1635## ------------------------ ## 1636## Autoconf initialization. ## 1637## ------------------------ ## 1638 1639# ac_fn_c_try_compile LINENO 1640# -------------------------- 1641# Try to compile conftest.$ac_ext, and return whether this succeeded. 1642ac_fn_c_try_compile () 1643{ 1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1645 rm -f conftest.$ac_objext 1646 if { { ac_try="$ac_compile" 1647case "(($ac_try" in 1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1649 *) ac_try_echo=$ac_try;; 1650esac 1651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1652$as_echo "$ac_try_echo"; } >&5 1653 (eval "$ac_compile") 2>conftest.err 1654 ac_status=$? 1655 if test -s conftest.err; then 1656 grep -v '^ *+' conftest.err >conftest.er1 1657 cat conftest.er1 >&5 1658 mv -f conftest.er1 conftest.err 1659 fi 1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1661 test $ac_status = 0; } && { 1662 test -z "$ac_c_werror_flag" || 1663 test ! -s conftest.err 1664 } && test -s conftest.$ac_objext; then : 1665 ac_retval=0 1666else 1667 $as_echo "$as_me: failed program was:" >&5 1668sed 's/^/| /' conftest.$ac_ext >&5 1669 1670 ac_retval=1 1671fi 1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1673 as_fn_set_status $ac_retval 1674 1675} # ac_fn_c_try_compile 1676 1677# ac_fn_c_try_link LINENO 1678# ----------------------- 1679# Try to link conftest.$ac_ext, and return whether this succeeded. 1680ac_fn_c_try_link () 1681{ 1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1683 rm -f conftest.$ac_objext conftest$ac_exeext 1684 if { { ac_try="$ac_link" 1685case "(($ac_try" in 1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1687 *) ac_try_echo=$ac_try;; 1688esac 1689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1690$as_echo "$ac_try_echo"; } >&5 1691 (eval "$ac_link") 2>conftest.err 1692 ac_status=$? 1693 if test -s conftest.err; then 1694 grep -v '^ *+' conftest.err >conftest.er1 1695 cat conftest.er1 >&5 1696 mv -f conftest.er1 conftest.err 1697 fi 1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1699 test $ac_status = 0; } && { 1700 test -z "$ac_c_werror_flag" || 1701 test ! -s conftest.err 1702 } && test -s conftest$ac_exeext && { 1703 test "$cross_compiling" = yes || 1704 $as_test_x conftest$ac_exeext 1705 }; then : 1706 ac_retval=0 1707else 1708 $as_echo "$as_me: failed program was:" >&5 1709sed 's/^/| /' conftest.$ac_ext >&5 1710 1711 ac_retval=1 1712fi 1713 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1714 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1715 # interfere with the next link command; also delete a directory that is 1716 # left behind by Apple's compiler. We do this before executing the actions. 1717 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1719 as_fn_set_status $ac_retval 1720 1721} # ac_fn_c_try_link 1722 1723# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1724# ------------------------------------------------------- 1725# Tests whether HEADER exists and can be compiled using the include files in 1726# INCLUDES, setting the cache variable VAR accordingly. 1727ac_fn_c_check_header_compile () 1728{ 1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1731$as_echo_n "checking for $2... " >&6; } 1732if eval \${$3+:} false; then : 1733 $as_echo_n "(cached) " >&6 1734else 1735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1736/* end confdefs.h. */ 1737$4 1738#include <$2> 1739_ACEOF 1740if ac_fn_c_try_compile "$LINENO"; then : 1741 eval "$3=yes" 1742else 1743 eval "$3=no" 1744fi 1745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1746fi 1747eval ac_res=\$$3 1748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1749$as_echo "$ac_res" >&6; } 1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1751 1752} # ac_fn_c_check_header_compile 1753 1754# ac_fn_c_try_cpp LINENO 1755# ---------------------- 1756# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1757ac_fn_c_try_cpp () 1758{ 1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1760 if { { ac_try="$ac_cpp conftest.$ac_ext" 1761case "(($ac_try" in 1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1763 *) ac_try_echo=$ac_try;; 1764esac 1765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1766$as_echo "$ac_try_echo"; } >&5 1767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1768 ac_status=$? 1769 if test -s conftest.err; then 1770 grep -v '^ *+' conftest.err >conftest.er1 1771 cat conftest.er1 >&5 1772 mv -f conftest.er1 conftest.err 1773 fi 1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1775 test $ac_status = 0; } > conftest.i && { 1776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1777 test ! -s conftest.err 1778 }; then : 1779 ac_retval=0 1780else 1781 $as_echo "$as_me: failed program was:" >&5 1782sed 's/^/| /' conftest.$ac_ext >&5 1783 1784 ac_retval=1 1785fi 1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1787 as_fn_set_status $ac_retval 1788 1789} # ac_fn_c_try_cpp 1790 1791# ac_fn_c_try_run LINENO 1792# ---------------------- 1793# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1794# that executables *can* be run. 1795ac_fn_c_try_run () 1796{ 1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1798 if { { ac_try="$ac_link" 1799case "(($ac_try" in 1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1801 *) ac_try_echo=$ac_try;; 1802esac 1803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1804$as_echo "$ac_try_echo"; } >&5 1805 (eval "$ac_link") 2>&5 1806 ac_status=$? 1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1808 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1809 { { case "(($ac_try" in 1810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1811 *) ac_try_echo=$ac_try;; 1812esac 1813eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1814$as_echo "$ac_try_echo"; } >&5 1815 (eval "$ac_try") 2>&5 1816 ac_status=$? 1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1818 test $ac_status = 0; }; }; then : 1819 ac_retval=0 1820else 1821 $as_echo "$as_me: program exited with status $ac_status" >&5 1822 $as_echo "$as_me: failed program was:" >&5 1823sed 's/^/| /' conftest.$ac_ext >&5 1824 1825 ac_retval=$ac_status 1826fi 1827 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1829 as_fn_set_status $ac_retval 1830 1831} # ac_fn_c_try_run 1832 1833# ac_fn_c_check_func LINENO FUNC VAR 1834# ---------------------------------- 1835# Tests whether FUNC exists, setting the cache variable VAR accordingly 1836ac_fn_c_check_func () 1837{ 1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1840$as_echo_n "checking for $2... " >&6; } 1841if eval \${$3+:} false; then : 1842 $as_echo_n "(cached) " >&6 1843else 1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1845/* end confdefs.h. */ 1846/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1847 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1848#define $2 innocuous_$2 1849 1850/* System header to define __stub macros and hopefully few prototypes, 1851 which can conflict with char $2 (); below. 1852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1853 <limits.h> exists even on freestanding compilers. */ 1854 1855#ifdef __STDC__ 1856# include <limits.h> 1857#else 1858# include <assert.h> 1859#endif 1860 1861#undef $2 1862 1863/* Override any GCC internal prototype to avoid an error. 1864 Use char because int might match the return type of a GCC 1865 builtin and then its argument prototype would still apply. */ 1866#ifdef __cplusplus 1867extern "C" 1868#endif 1869char $2 (); 1870/* The GNU C library defines this for functions which it implements 1871 to always fail with ENOSYS. Some functions are actually named 1872 something starting with __ and the normal name is an alias. */ 1873#if defined __stub_$2 || defined __stub___$2 1874choke me 1875#endif 1876 1877int 1878main () 1879{ 1880return $2 (); 1881 ; 1882 return 0; 1883} 1884_ACEOF 1885if ac_fn_c_try_link "$LINENO"; then : 1886 eval "$3=yes" 1887else 1888 eval "$3=no" 1889fi 1890rm -f core conftest.err conftest.$ac_objext \ 1891 conftest$ac_exeext conftest.$ac_ext 1892fi 1893eval ac_res=\$$3 1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1895$as_echo "$ac_res" >&6; } 1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1897 1898} # ac_fn_c_check_func 1899 1900# ac_fn_cxx_try_compile LINENO 1901# ---------------------------- 1902# Try to compile conftest.$ac_ext, and return whether this succeeded. 1903ac_fn_cxx_try_compile () 1904{ 1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1906 rm -f conftest.$ac_objext 1907 if { { ac_try="$ac_compile" 1908case "(($ac_try" in 1909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1910 *) ac_try_echo=$ac_try;; 1911esac 1912eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1913$as_echo "$ac_try_echo"; } >&5 1914 (eval "$ac_compile") 2>conftest.err 1915 ac_status=$? 1916 if test -s conftest.err; then 1917 grep -v '^ *+' conftest.err >conftest.er1 1918 cat conftest.er1 >&5 1919 mv -f conftest.er1 conftest.err 1920 fi 1921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1922 test $ac_status = 0; } && { 1923 test -z "$ac_cxx_werror_flag" || 1924 test ! -s conftest.err 1925 } && test -s conftest.$ac_objext; then : 1926 ac_retval=0 1927else 1928 $as_echo "$as_me: failed program was:" >&5 1929sed 's/^/| /' conftest.$ac_ext >&5 1930 1931 ac_retval=1 1932fi 1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1934 as_fn_set_status $ac_retval 1935 1936} # ac_fn_cxx_try_compile 1937 1938# ac_fn_cxx_try_cpp LINENO 1939# ------------------------ 1940# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1941ac_fn_cxx_try_cpp () 1942{ 1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1944 if { { ac_try="$ac_cpp conftest.$ac_ext" 1945case "(($ac_try" in 1946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1947 *) ac_try_echo=$ac_try;; 1948esac 1949eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1950$as_echo "$ac_try_echo"; } >&5 1951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1952 ac_status=$? 1953 if test -s conftest.err; then 1954 grep -v '^ *+' conftest.err >conftest.er1 1955 cat conftest.er1 >&5 1956 mv -f conftest.er1 conftest.err 1957 fi 1958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1959 test $ac_status = 0; } > conftest.i && { 1960 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1961 test ! -s conftest.err 1962 }; then : 1963 ac_retval=0 1964else 1965 $as_echo "$as_me: failed program was:" >&5 1966sed 's/^/| /' conftest.$ac_ext >&5 1967 1968 ac_retval=1 1969fi 1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1971 as_fn_set_status $ac_retval 1972 1973} # ac_fn_cxx_try_cpp 1974 1975# ac_fn_cxx_try_link LINENO 1976# ------------------------- 1977# Try to link conftest.$ac_ext, and return whether this succeeded. 1978ac_fn_cxx_try_link () 1979{ 1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1981 rm -f conftest.$ac_objext conftest$ac_exeext 1982 if { { ac_try="$ac_link" 1983case "(($ac_try" in 1984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1985 *) ac_try_echo=$ac_try;; 1986esac 1987eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1988$as_echo "$ac_try_echo"; } >&5 1989 (eval "$ac_link") 2>conftest.err 1990 ac_status=$? 1991 if test -s conftest.err; then 1992 grep -v '^ *+' conftest.err >conftest.er1 1993 cat conftest.er1 >&5 1994 mv -f conftest.er1 conftest.err 1995 fi 1996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1997 test $ac_status = 0; } && { 1998 test -z "$ac_cxx_werror_flag" || 1999 test ! -s conftest.err 2000 } && test -s conftest$ac_exeext && { 2001 test "$cross_compiling" = yes || 2002 $as_test_x conftest$ac_exeext 2003 }; then : 2004 ac_retval=0 2005else 2006 $as_echo "$as_me: failed program was:" >&5 2007sed 's/^/| /' conftest.$ac_ext >&5 2008 2009 ac_retval=1 2010fi 2011 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2012 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2013 # interfere with the next link command; also delete a directory that is 2014 # left behind by Apple's compiler. We do this before executing the actions. 2015 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2016 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2017 as_fn_set_status $ac_retval 2018 2019} # ac_fn_cxx_try_link 2020 2021# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2022# ------------------------------------------------------- 2023# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2024# the include files in INCLUDES and setting the cache variable VAR 2025# accordingly. 2026ac_fn_c_check_header_mongrel () 2027{ 2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2029 if eval \${$3+:} false; then : 2030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2031$as_echo_n "checking for $2... " >&6; } 2032if eval \${$3+:} false; then : 2033 $as_echo_n "(cached) " >&6 2034fi 2035eval ac_res=\$$3 2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2037$as_echo "$ac_res" >&6; } 2038else 2039 # Is the header compilable? 2040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2041$as_echo_n "checking $2 usability... " >&6; } 2042cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2043/* end confdefs.h. */ 2044$4 2045#include <$2> 2046_ACEOF 2047if ac_fn_c_try_compile "$LINENO"; then : 2048 ac_header_compiler=yes 2049else 2050 ac_header_compiler=no 2051fi 2052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2054$as_echo "$ac_header_compiler" >&6; } 2055 2056# Is the header present? 2057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2058$as_echo_n "checking $2 presence... " >&6; } 2059cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2060/* end confdefs.h. */ 2061#include <$2> 2062_ACEOF 2063if ac_fn_c_try_cpp "$LINENO"; then : 2064 ac_header_preproc=yes 2065else 2066 ac_header_preproc=no 2067fi 2068rm -f conftest.err conftest.i conftest.$ac_ext 2069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2070$as_echo "$ac_header_preproc" >&6; } 2071 2072# So? What about this header? 2073case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2074 yes:no: ) 2075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2076$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2078$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2079 ;; 2080 no:yes:* ) 2081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2082$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2084$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2086$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2088$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2090$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2091( $as_echo "## -------------------------------------- ## 2092## Report this to [email protected] ## 2093## -------------------------------------- ##" 2094 ) | sed "s/^/$as_me: WARNING: /" >&2 2095 ;; 2096esac 2097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2098$as_echo_n "checking for $2... " >&6; } 2099if eval \${$3+:} false; then : 2100 $as_echo_n "(cached) " >&6 2101else 2102 eval "$3=\$ac_header_compiler" 2103fi 2104eval ac_res=\$$3 2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2106$as_echo "$ac_res" >&6; } 2107fi 2108 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2109 2110} # ac_fn_c_check_header_mongrel 2111 2112# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2113# ------------------------------------------- 2114# Tests whether TYPE exists after having included INCLUDES, setting cache 2115# variable VAR accordingly. 2116ac_fn_c_check_type () 2117{ 2118 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2120$as_echo_n "checking for $2... " >&6; } 2121if eval \${$3+:} false; then : 2122 $as_echo_n "(cached) " >&6 2123else 2124 eval "$3=no" 2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2126/* end confdefs.h. */ 2127$4 2128int 2129main () 2130{ 2131if (sizeof ($2)) 2132 return 0; 2133 ; 2134 return 0; 2135} 2136_ACEOF 2137if ac_fn_c_try_compile "$LINENO"; then : 2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2139/* end confdefs.h. */ 2140$4 2141int 2142main () 2143{ 2144if (sizeof (($2))) 2145 return 0; 2146 ; 2147 return 0; 2148} 2149_ACEOF 2150if ac_fn_c_try_compile "$LINENO"; then : 2151 2152else 2153 eval "$3=yes" 2154fi 2155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2156fi 2157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2158fi 2159eval ac_res=\$$3 2160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2161$as_echo "$ac_res" >&6; } 2162 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2163 2164} # ac_fn_c_check_type 2165 2166# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2167# -------------------------------------------- 2168# Tries to find the compile-time value of EXPR in a program that includes 2169# INCLUDES, setting VAR accordingly. Returns whether the value could be 2170# computed 2171ac_fn_c_compute_int () 2172{ 2173 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2174 if test "$cross_compiling" = yes; then 2175 # Depending upon the size, compute the lo and hi bounds. 2176cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2177/* end confdefs.h. */ 2178$4 2179int 2180main () 2181{ 2182static int test_array [1 - 2 * !(($2) >= 0)]; 2183test_array [0] = 0 2184 2185 ; 2186 return 0; 2187} 2188_ACEOF 2189if ac_fn_c_try_compile "$LINENO"; then : 2190 ac_lo=0 ac_mid=0 2191 while :; do 2192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2193/* end confdefs.h. */ 2194$4 2195int 2196main () 2197{ 2198static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2199test_array [0] = 0 2200 2201 ; 2202 return 0; 2203} 2204_ACEOF 2205if ac_fn_c_try_compile "$LINENO"; then : 2206 ac_hi=$ac_mid; break 2207else 2208 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2209 if test $ac_lo -le $ac_mid; then 2210 ac_lo= ac_hi= 2211 break 2212 fi 2213 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2214fi 2215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2216 done 2217else 2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2219/* end confdefs.h. */ 2220$4 2221int 2222main () 2223{ 2224static int test_array [1 - 2 * !(($2) < 0)]; 2225test_array [0] = 0 2226 2227 ; 2228 return 0; 2229} 2230_ACEOF 2231if ac_fn_c_try_compile "$LINENO"; then : 2232 ac_hi=-1 ac_mid=-1 2233 while :; do 2234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2235/* end confdefs.h. */ 2236$4 2237int 2238main () 2239{ 2240static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2241test_array [0] = 0 2242 2243 ; 2244 return 0; 2245} 2246_ACEOF 2247if ac_fn_c_try_compile "$LINENO"; then : 2248 ac_lo=$ac_mid; break 2249else 2250 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2251 if test $ac_mid -le $ac_hi; then 2252 ac_lo= ac_hi= 2253 break 2254 fi 2255 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2256fi 2257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2258 done 2259else 2260 ac_lo= ac_hi= 2261fi 2262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2263fi 2264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2265# Binary search between lo and hi bounds. 2266while test "x$ac_lo" != "x$ac_hi"; do 2267 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2269/* end confdefs.h. */ 2270$4 2271int 2272main () 2273{ 2274static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2275test_array [0] = 0 2276 2277 ; 2278 return 0; 2279} 2280_ACEOF 2281if ac_fn_c_try_compile "$LINENO"; then : 2282 ac_hi=$ac_mid 2283else 2284 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2285fi 2286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2287done 2288case $ac_lo in #(( 2289?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2290'') ac_retval=1 ;; 2291esac 2292 else 2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2294/* end confdefs.h. */ 2295$4 2296static long int longval () { return $2; } 2297static unsigned long int ulongval () { return $2; } 2298#include <stdio.h> 2299#include <stdlib.h> 2300int 2301main () 2302{ 2303 2304 FILE *f = fopen ("conftest.val", "w"); 2305 if (! f) 2306 return 1; 2307 if (($2) < 0) 2308 { 2309 long int i = longval (); 2310 if (i != ($2)) 2311 return 1; 2312 fprintf (f, "%ld", i); 2313 } 2314 else 2315 { 2316 unsigned long int i = ulongval (); 2317 if (i != ($2)) 2318 return 1; 2319 fprintf (f, "%lu", i); 2320 } 2321 /* Do not output a trailing newline, as this causes \r\n confusion 2322 on some platforms. */ 2323 return ferror (f) || fclose (f) != 0; 2324 2325 ; 2326 return 0; 2327} 2328_ACEOF 2329if ac_fn_c_try_run "$LINENO"; then : 2330 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2331else 2332 ac_retval=1 2333fi 2334rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2335 conftest.$ac_objext conftest.beam conftest.$ac_ext 2336rm -f conftest.val 2337 2338 fi 2339 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2340 as_fn_set_status $ac_retval 2341 2342} # ac_fn_c_compute_int 2343cat >config.log <<_ACEOF 2344This file contains any messages produced by compilers while 2345running configure, to aid debugging if configure makes a mistake. 2346 2347It was created by LibTIFF Software $as_me 4.0.0, which was 2348generated by GNU Autoconf 2.68. Invocation command line was 2349 2350 $ $0 $@ 2351 2352_ACEOF 2353exec 5>>config.log 2354{ 2355cat <<_ASUNAME 2356## --------- ## 2357## Platform. ## 2358## --------- ## 2359 2360hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2361uname -m = `(uname -m) 2>/dev/null || echo unknown` 2362uname -r = `(uname -r) 2>/dev/null || echo unknown` 2363uname -s = `(uname -s) 2>/dev/null || echo unknown` 2364uname -v = `(uname -v) 2>/dev/null || echo unknown` 2365 2366/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2367/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2368 2369/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2370/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2371/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2372/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2373/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2374/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2375/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2376 2377_ASUNAME 2378 2379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2380for as_dir in $PATH 2381do 2382 IFS=$as_save_IFS 2383 test -z "$as_dir" && as_dir=. 2384 $as_echo "PATH: $as_dir" 2385 done 2386IFS=$as_save_IFS 2387 2388} >&5 2389 2390cat >&5 <<_ACEOF 2391 2392 2393## ----------- ## 2394## Core tests. ## 2395## ----------- ## 2396 2397_ACEOF 2398 2399 2400# Keep a trace of the command line. 2401# Strip out --no-create and --no-recursion so they do not pile up. 2402# Strip out --silent because we don't want to record it for future runs. 2403# Also quote any args containing shell meta-characters. 2404# Make two passes to allow for proper duplicate-argument suppression. 2405ac_configure_args= 2406ac_configure_args0= 2407ac_configure_args1= 2408ac_must_keep_next=false 2409for ac_pass in 1 2 2410do 2411 for ac_arg 2412 do 2413 case $ac_arg in 2414 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2415 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2416 | -silent | --silent | --silen | --sile | --sil) 2417 continue ;; 2418 *\'*) 2419 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2420 esac 2421 case $ac_pass in 2422 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2423 2) 2424 as_fn_append ac_configure_args1 " '$ac_arg'" 2425 if test $ac_must_keep_next = true; then 2426 ac_must_keep_next=false # Got value, back to normal. 2427 else 2428 case $ac_arg in 2429 *=* | --config-cache | -C | -disable-* | --disable-* \ 2430 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2431 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2432 | -with-* | --with-* | -without-* | --without-* | --x) 2433 case "$ac_configure_args0 " in 2434 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2435 esac 2436 ;; 2437 -* ) ac_must_keep_next=true ;; 2438 esac 2439 fi 2440 as_fn_append ac_configure_args " '$ac_arg'" 2441 ;; 2442 esac 2443 done 2444done 2445{ ac_configure_args0=; unset ac_configure_args0;} 2446{ ac_configure_args1=; unset ac_configure_args1;} 2447 2448# When interrupted or exit'd, cleanup temporary files, and complete 2449# config.log. We remove comments because anyway the quotes in there 2450# would cause problems or look ugly. 2451# WARNING: Use '\'' to represent an apostrophe within the trap. 2452# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2453trap 'exit_status=$? 2454 # Save into config.log some information that might help in debugging. 2455 { 2456 echo 2457 2458 $as_echo "## ---------------- ## 2459## Cache variables. ## 2460## ---------------- ##" 2461 echo 2462 # The following way of writing the cache mishandles newlines in values, 2463( 2464 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2465 eval ac_val=\$$ac_var 2466 case $ac_val in #( 2467 *${as_nl}*) 2468 case $ac_var in #( 2469 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2470$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2471 esac 2472 case $ac_var in #( 2473 _ | IFS | as_nl) ;; #( 2474 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2475 *) { eval $ac_var=; unset $ac_var;} ;; 2476 esac ;; 2477 esac 2478 done 2479 (set) 2>&1 | 2480 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2481 *${as_nl}ac_space=\ *) 2482 sed -n \ 2483 "s/'\''/'\''\\\\'\'''\''/g; 2484 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2485 ;; #( 2486 *) 2487 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2488 ;; 2489 esac | 2490 sort 2491) 2492 echo 2493 2494 $as_echo "## ----------------- ## 2495## Output variables. ## 2496## ----------------- ##" 2497 echo 2498 for ac_var in $ac_subst_vars 2499 do 2500 eval ac_val=\$$ac_var 2501 case $ac_val in 2502 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2503 esac 2504 $as_echo "$ac_var='\''$ac_val'\''" 2505 done | sort 2506 echo 2507 2508 if test -n "$ac_subst_files"; then 2509 $as_echo "## ------------------- ## 2510## File substitutions. ## 2511## ------------------- ##" 2512 echo 2513 for ac_var in $ac_subst_files 2514 do 2515 eval ac_val=\$$ac_var 2516 case $ac_val in 2517 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2518 esac 2519 $as_echo "$ac_var='\''$ac_val'\''" 2520 done | sort 2521 echo 2522 fi 2523 2524 if test -s confdefs.h; then 2525 $as_echo "## ----------- ## 2526## confdefs.h. ## 2527## ----------- ##" 2528 echo 2529 cat confdefs.h 2530 echo 2531 fi 2532 test "$ac_signal" != 0 && 2533 $as_echo "$as_me: caught signal $ac_signal" 2534 $as_echo "$as_me: exit $exit_status" 2535 } >&5 2536 rm -f core *.core core.conftest.* && 2537 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2538 exit $exit_status 2539' 0 2540for ac_signal in 1 2 13 15; do 2541 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2542done 2543ac_signal=0 2544 2545# confdefs.h avoids OS command line length limits that DEFS can exceed. 2546rm -f -r conftest* confdefs.h 2547 2548$as_echo "/* confdefs.h */" > confdefs.h 2549 2550# Predefined preprocessor variables. 2551 2552cat >>confdefs.h <<_ACEOF 2553#define PACKAGE_NAME "$PACKAGE_NAME" 2554_ACEOF 2555 2556cat >>confdefs.h <<_ACEOF 2557#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2558_ACEOF 2559 2560cat >>confdefs.h <<_ACEOF 2561#define PACKAGE_VERSION "$PACKAGE_VERSION" 2562_ACEOF 2563 2564cat >>confdefs.h <<_ACEOF 2565#define PACKAGE_STRING "$PACKAGE_STRING" 2566_ACEOF 2567 2568cat >>confdefs.h <<_ACEOF 2569#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2570_ACEOF 2571 2572cat >>confdefs.h <<_ACEOF 2573#define PACKAGE_URL "$PACKAGE_URL" 2574_ACEOF 2575 2576 2577# Let the site file select an alternate cache file if it wants to. 2578# Prefer an explicitly selected file to automatically selected ones. 2579ac_site_file1=NONE 2580ac_site_file2=NONE 2581if test -n "$CONFIG_SITE"; then 2582 # We do not want a PATH search for config.site. 2583 case $CONFIG_SITE in #(( 2584 -*) ac_site_file1=./$CONFIG_SITE;; 2585 */*) ac_site_file1=$CONFIG_SITE;; 2586 *) ac_site_file1=./$CONFIG_SITE;; 2587 esac 2588elif test "x$prefix" != xNONE; then 2589 ac_site_file1=$prefix/share/config.site 2590 ac_site_file2=$prefix/etc/config.site 2591else 2592 ac_site_file1=$ac_default_prefix/share/config.site 2593 ac_site_file2=$ac_default_prefix/etc/config.site 2594fi 2595for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2596do 2597 test "x$ac_site_file" = xNONE && continue 2598 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2599 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2600$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2601 sed 's/^/| /' "$ac_site_file" >&5 2602 . "$ac_site_file" \ 2603 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2604$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2605as_fn_error $? "failed to load site script $ac_site_file 2606See \`config.log' for more details" "$LINENO" 5; } 2607 fi 2608done 2609 2610if test -r "$cache_file"; then 2611 # Some versions of bash will fail to source /dev/null (special files 2612 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2613 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2614 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2615$as_echo "$as_me: loading cache $cache_file" >&6;} 2616 case $cache_file in 2617 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2618 *) . "./$cache_file";; 2619 esac 2620 fi 2621else 2622 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2623$as_echo "$as_me: creating cache $cache_file" >&6;} 2624 >$cache_file 2625fi 2626 2627# Check that the precious variables saved in the cache have kept the same 2628# value. 2629ac_cache_corrupted=false 2630for ac_var in $ac_precious_vars; do 2631 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2632 eval ac_new_set=\$ac_env_${ac_var}_set 2633 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2634 eval ac_new_val=\$ac_env_${ac_var}_value 2635 case $ac_old_set,$ac_new_set in 2636 set,) 2637 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2638$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2639 ac_cache_corrupted=: ;; 2640 ,set) 2641 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2642$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2643 ac_cache_corrupted=: ;; 2644 ,);; 2645 *) 2646 if test "x$ac_old_val" != "x$ac_new_val"; then 2647 # differences in whitespace do not lead to failure. 2648 ac_old_val_w=`echo x $ac_old_val` 2649 ac_new_val_w=`echo x $ac_new_val` 2650 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2651 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2652$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2653 ac_cache_corrupted=: 2654 else 2655 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2656$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2657 eval $ac_var=\$ac_old_val 2658 fi 2659 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2660$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2661 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2662$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2663 fi;; 2664 esac 2665 # Pass precious variables to config.status. 2666 if test "$ac_new_set" = set; then 2667 case $ac_new_val in 2668 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2669 *) ac_arg=$ac_var=$ac_new_val ;; 2670 esac 2671 case " $ac_configure_args " in 2672 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2673 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2674 esac 2675 fi 2676done 2677if $ac_cache_corrupted; then 2678 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2679$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2680 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2681$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2682 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2683fi 2684## -------------------- ## 2685## Main body of script. ## 2686## -------------------- ## 2687 2688ac_ext=c 2689ac_cpp='$CPP $CPPFLAGS' 2690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2692ac_compiler_gnu=$ac_cv_c_compiler_gnu 2693 2694 2695ac_aux_dir= 2696for ac_dir in config "$srcdir"/config; do 2697 if test -f "$ac_dir/install-sh"; then 2698 ac_aux_dir=$ac_dir 2699 ac_install_sh="$ac_aux_dir/install-sh -c" 2700 break 2701 elif test -f "$ac_dir/install.sh"; then 2702 ac_aux_dir=$ac_dir 2703 ac_install_sh="$ac_aux_dir/install.sh -c" 2704 break 2705 elif test -f "$ac_dir/shtool"; then 2706 ac_aux_dir=$ac_dir 2707 ac_install_sh="$ac_aux_dir/shtool install -c" 2708 break 2709 fi 2710done 2711if test -z "$ac_aux_dir"; then 2712 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 2713fi 2714 2715# These three variables are undocumented and unsupported, 2716# and are intended to be withdrawn in a future Autoconf release. 2717# They can cause serious problems if a builder's source tree is in a directory 2718# whose full name contains unusual characters. 2719ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2720ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2721ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2722 2723 2724 2725ac_ext=c 2726ac_cpp='$CPP $CPPFLAGS' 2727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2729ac_compiler_gnu=$ac_cv_c_compiler_gnu 2730 2731 2732# Make sure we can run config.sub. 2733$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2734 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2735 2736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2737$as_echo_n "checking build system type... " >&6; } 2738if ${ac_cv_build+:} false; then : 2739 $as_echo_n "(cached) " >&6 2740else 2741 ac_build_alias=$build_alias 2742test "x$ac_build_alias" = x && 2743 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2744test "x$ac_build_alias" = x && 2745 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2746ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2747 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2748 2749fi 2750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2751$as_echo "$ac_cv_build" >&6; } 2752case $ac_cv_build in 2753*-*-*) ;; 2754*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2755esac 2756build=$ac_cv_build 2757ac_save_IFS=$IFS; IFS='-' 2758set x $ac_cv_build 2759shift 2760build_cpu=$1 2761build_vendor=$2 2762shift; shift 2763# Remember, the first character of IFS is used to create $*, 2764# except with old shells: 2765build_os=$* 2766IFS=$ac_save_IFS 2767case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2768 2769 2770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2771$as_echo_n "checking host system type... " >&6; } 2772if ${ac_cv_host+:} false; then : 2773 $as_echo_n "(cached) " >&6 2774else 2775 if test "x$host_alias" = x; then 2776 ac_cv_host=$ac_cv_build 2777else 2778 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2779 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2780fi 2781 2782fi 2783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2784$as_echo "$ac_cv_host" >&6; } 2785case $ac_cv_host in 2786*-*-*) ;; 2787*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2788esac 2789host=$ac_cv_host 2790ac_save_IFS=$IFS; IFS='-' 2791set x $ac_cv_host 2792shift 2793host_cpu=$1 2794host_vendor=$2 2795shift; shift 2796# Remember, the first character of IFS is used to create $*, 2797# except with old shells: 2798host_os=$* 2799IFS=$ac_save_IFS 2800case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2801 2802 2803 2804am__api_version='1.11' 2805 2806# Find a good install program. We prefer a C program (faster), 2807# so one script is as good as another. But avoid the broken or 2808# incompatible versions: 2809# SysV /etc/install, /usr/sbin/install 2810# SunOS /usr/etc/install 2811# IRIX /sbin/install 2812# AIX /bin/install 2813# AmigaOS /C/install, which installs bootblocks on floppy discs 2814# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2815# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2816# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2817# OS/2's system install, which has a completely different semantic 2818# ./install, which can be erroneously created by make from ./install.sh. 2819# Reject install programs that cannot install multiple files. 2820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2821$as_echo_n "checking for a BSD-compatible install... " >&6; } 2822if test -z "$INSTALL"; then 2823if ${ac_cv_path_install+:} false; then : 2824 $as_echo_n "(cached) " >&6 2825else 2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2827for as_dir in $PATH 2828do 2829 IFS=$as_save_IFS 2830 test -z "$as_dir" && as_dir=. 2831 # Account for people who put trailing slashes in PATH elements. 2832case $as_dir/ in #(( 2833 ./ | .// | /[cC]/* | \ 2834 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2835 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2836 /usr/ucb/* ) ;; 2837 *) 2838 # OSF1 and SCO ODT 3.0 have their own names for install. 2839 # Don't use installbsd from OSF since it installs stuff as root 2840 # by default. 2841 for ac_prog in ginstall scoinst install; do 2842 for ac_exec_ext in '' $ac_executable_extensions; do 2843 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2844 if test $ac_prog = install && 2845 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2846 # AIX install. It has an incompatible calling convention. 2847 : 2848 elif test $ac_prog = install && 2849 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2850 # program-specific install script used by HP pwplus--don't use. 2851 : 2852 else 2853 rm -rf conftest.one conftest.two conftest.dir 2854 echo one > conftest.one 2855 echo two > conftest.two 2856 mkdir conftest.dir 2857 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2858 test -s conftest.one && test -s conftest.two && 2859 test -s conftest.dir/conftest.one && 2860 test -s conftest.dir/conftest.two 2861 then 2862 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2863 break 3 2864 fi 2865 fi 2866 fi 2867 done 2868 done 2869 ;; 2870esac 2871 2872 done 2873IFS=$as_save_IFS 2874 2875rm -rf conftest.one conftest.two conftest.dir 2876 2877fi 2878 if test "${ac_cv_path_install+set}" = set; then 2879 INSTALL=$ac_cv_path_install 2880 else 2881 # As a last resort, use the slow shell script. Don't cache a 2882 # value for INSTALL within a source directory, because that will 2883 # break other packages using the cache if that directory is 2884 # removed, or if the value is a relative name. 2885 INSTALL=$ac_install_sh 2886 fi 2887fi 2888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2889$as_echo "$INSTALL" >&6; } 2890 2891# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2892# It thinks the first close brace ends the variable substitution. 2893test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2894 2895test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2896 2897test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2898 2899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2900$as_echo_n "checking whether build environment is sane... " >&6; } 2901# Just in case 2902sleep 1 2903echo timestamp > conftest.file 2904# Reject unsafe characters in $srcdir or the absolute working directory 2905# name. Accept space and tab only in the latter. 2906am_lf=' 2907' 2908case `pwd` in 2909 *[\\\"\#\$\&\'\`$am_lf]*) 2910 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2911esac 2912case $srcdir in 2913 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2914 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2915esac 2916 2917# Do `set' in a subshell so we don't clobber the current shell's 2918# arguments. Must try -L first in case configure is actually a 2919# symlink; some systems play weird games with the mod time of symlinks 2920# (eg FreeBSD returns the mod time of the symlink's containing 2921# directory). 2922if ( 2923 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2924 if test "$*" = "X"; then 2925 # -L didn't work. 2926 set X `ls -t "$srcdir/configure" conftest.file` 2927 fi 2928 rm -f conftest.file 2929 if test "$*" != "X $srcdir/configure conftest.file" \ 2930 && test "$*" != "X conftest.file $srcdir/configure"; then 2931 2932 # If neither matched, then we have a broken ls. This can happen 2933 # if, for instance, CONFIG_SHELL is bash and it inherits a 2934 # broken ls alias from the environment. This has actually 2935 # happened. Such a system could not be considered "sane". 2936 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2937alias in your environment" "$LINENO" 5 2938 fi 2939 2940 test "$2" = conftest.file 2941 ) 2942then 2943 # Ok. 2944 : 2945else 2946 as_fn_error $? "newly created file is older than distributed files! 2947Check your system clock" "$LINENO" 5 2948fi 2949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2950$as_echo "yes" >&6; } 2951test "$program_prefix" != NONE && 2952 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2953# Use a double $ so make ignores it. 2954test "$program_suffix" != NONE && 2955 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2956# Double any \ or $. 2957# By default was `s,x,x', remove it if useless. 2958ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2959program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2960 2961# expand $ac_aux_dir to an absolute path 2962am_aux_dir=`cd $ac_aux_dir && pwd` 2963 2964if test x"${MISSING+set}" != xset; then 2965 case $am_aux_dir in 2966 *\ * | *\ *) 2967 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2968 *) 2969 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2970 esac 2971fi 2972# Use eval to expand $SHELL 2973if eval "$MISSING --run true"; then 2974 am_missing_run="$MISSING --run " 2975else 2976 am_missing_run= 2977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2978$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2979fi 2980 2981if test x"${install_sh}" != xset; then 2982 case $am_aux_dir in 2983 *\ * | *\ *) 2984 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2985 *) 2986 install_sh="\${SHELL} $am_aux_dir/install-sh" 2987 esac 2988fi 2989 2990# Installed binaries are usually stripped using `strip' when the user 2991# run `make install-strip'. However `strip' might not be the right 2992# tool to use in cross-compilation environments, therefore Automake 2993# will honor the `STRIP' environment variable to overrule this program. 2994if test "$cross_compiling" != no; then 2995 if test -n "$ac_tool_prefix"; then 2996 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2997set dummy ${ac_tool_prefix}strip; ac_word=$2 2998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2999$as_echo_n "checking for $ac_word... " >&6; } 3000if ${ac_cv_prog_STRIP+:} false; then : 3001 $as_echo_n "(cached) " >&6 3002else 3003 if test -n "$STRIP"; then 3004 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3005else 3006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3007for as_dir in $PATH 3008do 3009 IFS=$as_save_IFS 3010 test -z "$as_dir" && as_dir=. 3011 for ac_exec_ext in '' $ac_executable_extensions; do 3012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3013 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3015 break 2 3016 fi 3017done 3018 done 3019IFS=$as_save_IFS 3020 3021fi 3022fi 3023STRIP=$ac_cv_prog_STRIP 3024if test -n "$STRIP"; then 3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3026$as_echo "$STRIP" >&6; } 3027else 3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3029$as_echo "no" >&6; } 3030fi 3031 3032 3033fi 3034if test -z "$ac_cv_prog_STRIP"; then 3035 ac_ct_STRIP=$STRIP 3036 # Extract the first word of "strip", so it can be a program name with args. 3037set dummy strip; ac_word=$2 3038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3039$as_echo_n "checking for $ac_word... " >&6; } 3040if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3041 $as_echo_n "(cached) " >&6 3042else 3043 if test -n "$ac_ct_STRIP"; then 3044 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3045else 3046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3047for as_dir in $PATH 3048do 3049 IFS=$as_save_IFS 3050 test -z "$as_dir" && as_dir=. 3051 for ac_exec_ext in '' $ac_executable_extensions; do 3052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3053 ac_cv_prog_ac_ct_STRIP="strip" 3054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3055 break 2 3056 fi 3057done 3058 done 3059IFS=$as_save_IFS 3060 3061fi 3062fi 3063ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3064if test -n "$ac_ct_STRIP"; then 3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3066$as_echo "$ac_ct_STRIP" >&6; } 3067else 3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3069$as_echo "no" >&6; } 3070fi 3071 3072 if test "x$ac_ct_STRIP" = x; then 3073 STRIP=":" 3074 else 3075 case $cross_compiling:$ac_tool_warned in 3076yes:) 3077{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3078$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3079ac_tool_warned=yes ;; 3080esac 3081 STRIP=$ac_ct_STRIP 3082 fi 3083else 3084 STRIP="$ac_cv_prog_STRIP" 3085fi 3086 3087fi 3088INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3089 3090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3091$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3092if test -z "$MKDIR_P"; then 3093 if ${ac_cv_path_mkdir+:} false; then : 3094 $as_echo_n "(cached) " >&6 3095else 3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3097for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3098do 3099 IFS=$as_save_IFS 3100 test -z "$as_dir" && as_dir=. 3101 for ac_prog in mkdir gmkdir; do 3102 for ac_exec_ext in '' $ac_executable_extensions; do 3103 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 3104 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3105 'mkdir (GNU coreutils) '* | \ 3106 'mkdir (coreutils) '* | \ 3107 'mkdir (fileutils) '4.1*) 3108 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3109 break 3;; 3110 esac 3111 done 3112 done 3113 done 3114IFS=$as_save_IFS 3115 3116fi 3117 3118 test -d ./--version && rmdir ./--version 3119 if test "${ac_cv_path_mkdir+set}" = set; then 3120 MKDIR_P="$ac_cv_path_mkdir -p" 3121 else 3122 # As a last resort, use the slow shell script. Don't cache a 3123 # value for MKDIR_P within a source directory, because that will 3124 # break other packages using the cache if that directory is 3125 # removed, or if the value is a relative name. 3126 MKDIR_P="$ac_install_sh -d" 3127 fi 3128fi 3129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3130$as_echo "$MKDIR_P" >&6; } 3131 3132mkdir_p="$MKDIR_P" 3133case $mkdir_p in 3134 [\\/$]* | ?:[\\/]*) ;; 3135 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3136esac 3137 3138for ac_prog in gawk mawk nawk awk 3139do 3140 # Extract the first word of "$ac_prog", so it can be a program name with args. 3141set dummy $ac_prog; ac_word=$2 3142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3143$as_echo_n "checking for $ac_word... " >&6; } 3144if ${ac_cv_prog_AWK+:} false; then : 3145 $as_echo_n "(cached) " >&6 3146else 3147 if test -n "$AWK"; then 3148 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3149else 3150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3151for as_dir in $PATH 3152do 3153 IFS=$as_save_IFS 3154 test -z "$as_dir" && as_dir=. 3155 for ac_exec_ext in '' $ac_executable_extensions; do 3156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3157 ac_cv_prog_AWK="$ac_prog" 3158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3159 break 2 3160 fi 3161done 3162 done 3163IFS=$as_save_IFS 3164 3165fi 3166fi 3167AWK=$ac_cv_prog_AWK 3168if test -n "$AWK"; then 3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3170$as_echo "$AWK" >&6; } 3171else 3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3173$as_echo "no" >&6; } 3174fi 3175 3176 3177 test -n "$AWK" && break 3178done 3179 3180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3181$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3182set x ${MAKE-make} 3183ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3184if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3185 $as_echo_n "(cached) " >&6 3186else 3187 cat >conftest.make <<\_ACEOF 3188SHELL = /bin/sh 3189all: 3190 @echo '@@@%%%=$(MAKE)=@@@%%%' 3191_ACEOF 3192# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3193case `${MAKE-make} -f conftest.make 2>/dev/null` in 3194 *@@@%%%=?*=@@@%%%*) 3195 eval ac_cv_prog_make_${ac_make}_set=yes;; 3196 *) 3197 eval ac_cv_prog_make_${ac_make}_set=no;; 3198esac 3199rm -f conftest.make 3200fi 3201if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3203$as_echo "yes" >&6; } 3204 SET_MAKE= 3205else 3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3207$as_echo "no" >&6; } 3208 SET_MAKE="MAKE=${MAKE-make}" 3209fi 3210 3211rm -rf .tst 2>/dev/null 3212mkdir .tst 2>/dev/null 3213if test -d .tst; then 3214 am__leading_dot=. 3215else 3216 am__leading_dot=_ 3217fi 3218rmdir .tst 2>/dev/null 3219 3220if test "`cd $srcdir && pwd`" != "`pwd`"; then 3221 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3222 # is not polluted with repeated "-I." 3223 am__isrc=' -I$(srcdir)' 3224 # test to see if srcdir already configured 3225 if test -f $srcdir/config.status; then 3226 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3227 fi 3228fi 3229 3230# test whether we have cygpath 3231if test -z "$CYGPATH_W"; then 3232 if (cygpath --version) >/dev/null 2>/dev/null; then 3233 CYGPATH_W='cygpath -w' 3234 else 3235 CYGPATH_W=echo 3236 fi 3237fi 3238 3239 3240# Define the identity of the package. 3241 PACKAGE='tiff' 3242 VERSION='4.0.0' 3243 3244 3245cat >>confdefs.h <<_ACEOF 3246#define PACKAGE "$PACKAGE" 3247_ACEOF 3248 3249 3250cat >>confdefs.h <<_ACEOF 3251#define VERSION "$VERSION" 3252_ACEOF 3253 3254# Some tools Automake needs. 3255 3256ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3257 3258 3259AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3260 3261 3262AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3263 3264 3265AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3266 3267 3268MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3269 3270# We need awk for the "check" target. The system "awk" is bad on 3271# some platforms. 3272# Always define AMTAR for backward compatibility. 3273 3274AMTAR=${AMTAR-"${am_missing_run}tar"} 3275 3276am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3277 3278 3279 3280 3281 3282 3283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3284$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3285 # Check whether --enable-maintainer-mode was given. 3286if test "${enable_maintainer_mode+set}" = set; then : 3287 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3288else 3289 USE_MAINTAINER_MODE=no 3290fi 3291 3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3293$as_echo "$USE_MAINTAINER_MODE" >&6; } 3294 if test $USE_MAINTAINER_MODE = yes; then 3295 MAINTAINER_MODE_TRUE= 3296 MAINTAINER_MODE_FALSE='#' 3297else 3298 MAINTAINER_MODE_TRUE='#' 3299 MAINTAINER_MODE_FALSE= 3300fi 3301 3302 MAINT=$MAINTAINER_MODE_TRUE 3303 3304 3305 3306LIBTIFF_MAJOR_VERSION=4 3307LIBTIFF_MINOR_VERSION=0 3308LIBTIFF_MICRO_VERSION=0 3309LIBTIFF_ALPHA_VERSION= 3310LIBTIFF_VERSION=$LIBTIFF_MAJOR_VERSION.$LIBTIFF_MINOR_VERSION.$LIBTIFF_MICRO_VERSION$LIBTIFF_ALPHA_VERSION 3311LIBTIFF_RELEASE_DATE=`date +"%Y%m%d"` 3312 3313LIBTIFF_CURRENT=5 3314LIBTIFF_REVISION=5 3315LIBTIFF_AGE=0 3316LIBTIFF_VERSION_INFO=$LIBTIFF_CURRENT:$LIBTIFF_REVISION:$LIBTIFF_AGE 3317 3318# This is a special hack for OpenBSD and MirOS systems. The dynamic linker 3319# in OpenBSD uses some special semantics for shared libraries. Their soname 3320# contains only two numbers, major and minor. 3321# See http://bugzilla.remotesensing.org/show_bug.cgi?id=838 for details. 3322#case "$host_os" in 3323# openbsd* | mirbsd*) 3324# LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION:0 3325# ;; 3326# *) 3327# LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION:$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION 3328# ;; 3329#esac 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339ac_ext=c 3340ac_cpp='$CPP $CPPFLAGS' 3341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3343ac_compiler_gnu=$ac_cv_c_compiler_gnu 3344if test -n "$ac_tool_prefix"; then 3345 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3346set dummy ${ac_tool_prefix}gcc; ac_word=$2 3347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3348$as_echo_n "checking for $ac_word... " >&6; } 3349if ${ac_cv_prog_CC+:} false; then : 3350 $as_echo_n "(cached) " >&6 3351else 3352 if test -n "$CC"; then 3353 ac_cv_prog_CC="$CC" # Let the user override the test. 3354else 3355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3356for as_dir in $PATH 3357do 3358 IFS=$as_save_IFS 3359 test -z "$as_dir" && as_dir=. 3360 for ac_exec_ext in '' $ac_executable_extensions; do 3361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3362 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3364 break 2 3365 fi 3366done 3367 done 3368IFS=$as_save_IFS 3369 3370fi 3371fi 3372CC=$ac_cv_prog_CC 3373if test -n "$CC"; then 3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3375$as_echo "$CC" >&6; } 3376else 3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3378$as_echo "no" >&6; } 3379fi 3380 3381 3382fi 3383if test -z "$ac_cv_prog_CC"; then 3384 ac_ct_CC=$CC 3385 # Extract the first word of "gcc", so it can be a program name with args. 3386set dummy gcc; ac_word=$2 3387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3388$as_echo_n "checking for $ac_word... " >&6; } 3389if ${ac_cv_prog_ac_ct_CC+:} false; then : 3390 $as_echo_n "(cached) " >&6 3391else 3392 if test -n "$ac_ct_CC"; then 3393 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3394else 3395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3396for as_dir in $PATH 3397do 3398 IFS=$as_save_IFS 3399 test -z "$as_dir" && as_dir=. 3400 for ac_exec_ext in '' $ac_executable_extensions; do 3401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3402 ac_cv_prog_ac_ct_CC="gcc" 3403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3404 break 2 3405 fi 3406done 3407 done 3408IFS=$as_save_IFS 3409 3410fi 3411fi 3412ac_ct_CC=$ac_cv_prog_ac_ct_CC 3413if test -n "$ac_ct_CC"; then 3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3415$as_echo "$ac_ct_CC" >&6; } 3416else 3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3418$as_echo "no" >&6; } 3419fi 3420 3421 if test "x$ac_ct_CC" = x; then 3422 CC="" 3423 else 3424 case $cross_compiling:$ac_tool_warned in 3425yes:) 3426{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3427$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3428ac_tool_warned=yes ;; 3429esac 3430 CC=$ac_ct_CC 3431 fi 3432else 3433 CC="$ac_cv_prog_CC" 3434fi 3435 3436if test -z "$CC"; then 3437 if test -n "$ac_tool_prefix"; then 3438 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3439set dummy ${ac_tool_prefix}cc; ac_word=$2 3440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3441$as_echo_n "checking for $ac_word... " >&6; } 3442if ${ac_cv_prog_CC+:} false; then : 3443 $as_echo_n "(cached) " >&6 3444else 3445 if test -n "$CC"; then 3446 ac_cv_prog_CC="$CC" # Let the user override the test. 3447else 3448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3449for as_dir in $PATH 3450do 3451 IFS=$as_save_IFS 3452 test -z "$as_dir" && as_dir=. 3453 for ac_exec_ext in '' $ac_executable_extensions; do 3454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3455 ac_cv_prog_CC="${ac_tool_prefix}cc" 3456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3457 break 2 3458 fi 3459done 3460 done 3461IFS=$as_save_IFS 3462 3463fi 3464fi 3465CC=$ac_cv_prog_CC 3466if test -n "$CC"; then 3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3468$as_echo "$CC" >&6; } 3469else 3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3471$as_echo "no" >&6; } 3472fi 3473 3474 3475 fi 3476fi 3477if test -z "$CC"; then 3478 # Extract the first word of "cc", so it can be a program name with args. 3479set dummy cc; ac_word=$2 3480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3481$as_echo_n "checking for $ac_word... " >&6; } 3482if ${ac_cv_prog_CC+:} false; then : 3483 $as_echo_n "(cached) " >&6 3484else 3485 if test -n "$CC"; then 3486 ac_cv_prog_CC="$CC" # Let the user override the test. 3487else 3488 ac_prog_rejected=no 3489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3490for as_dir in $PATH 3491do 3492 IFS=$as_save_IFS 3493 test -z "$as_dir" && as_dir=. 3494 for ac_exec_ext in '' $ac_executable_extensions; do 3495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3496 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3497 ac_prog_rejected=yes 3498 continue 3499 fi 3500 ac_cv_prog_CC="cc" 3501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3502 break 2 3503 fi 3504done 3505 done 3506IFS=$as_save_IFS 3507 3508if test $ac_prog_rejected = yes; then 3509 # We found a bogon in the path, so make sure we never use it. 3510 set dummy $ac_cv_prog_CC 3511 shift 3512 if test $# != 0; then 3513 # We chose a different compiler from the bogus one. 3514 # However, it has the same basename, so the bogon will be chosen 3515 # first if we set CC to just the basename; use the full file name. 3516 shift 3517 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3518 fi 3519fi 3520fi 3521fi 3522CC=$ac_cv_prog_CC 3523if test -n "$CC"; then 3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3525$as_echo "$CC" >&6; } 3526else 3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3528$as_echo "no" >&6; } 3529fi 3530 3531 3532fi 3533if test -z "$CC"; then 3534 if test -n "$ac_tool_prefix"; then 3535 for ac_prog in cl.exe 3536 do 3537 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3538set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3540$as_echo_n "checking for $ac_word... " >&6; } 3541if ${ac_cv_prog_CC+:} false; then : 3542 $as_echo_n "(cached) " >&6 3543else 3544 if test -n "$CC"; then 3545 ac_cv_prog_CC="$CC" # Let the user override the test. 3546else 3547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3548for as_dir in $PATH 3549do 3550 IFS=$as_save_IFS 3551 test -z "$as_dir" && as_dir=. 3552 for ac_exec_ext in '' $ac_executable_extensions; do 3553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3554 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3556 break 2 3557 fi 3558done 3559 done 3560IFS=$as_save_IFS 3561 3562fi 3563fi 3564CC=$ac_cv_prog_CC 3565if test -n "$CC"; then 3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3567$as_echo "$CC" >&6; } 3568else 3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3570$as_echo "no" >&6; } 3571fi 3572 3573 3574 test -n "$CC" && break 3575 done 3576fi 3577if test -z "$CC"; then 3578 ac_ct_CC=$CC 3579 for ac_prog in cl.exe 3580do 3581 # Extract the first word of "$ac_prog", so it can be a program name with args. 3582set dummy $ac_prog; ac_word=$2 3583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3584$as_echo_n "checking for $ac_word... " >&6; } 3585if ${ac_cv_prog_ac_ct_CC+:} false; then : 3586 $as_echo_n "(cached) " >&6 3587else 3588 if test -n "$ac_ct_CC"; then 3589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3590else 3591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3592for as_dir in $PATH 3593do 3594 IFS=$as_save_IFS 3595 test -z "$as_dir" && as_dir=. 3596 for ac_exec_ext in '' $ac_executable_extensions; do 3597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3598 ac_cv_prog_ac_ct_CC="$ac_prog" 3599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3600 break 2 3601 fi 3602done 3603 done 3604IFS=$as_save_IFS 3605 3606fi 3607fi 3608ac_ct_CC=$ac_cv_prog_ac_ct_CC 3609if test -n "$ac_ct_CC"; then 3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3611$as_echo "$ac_ct_CC" >&6; } 3612else 3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3614$as_echo "no" >&6; } 3615fi 3616 3617 3618 test -n "$ac_ct_CC" && break 3619done 3620 3621 if test "x$ac_ct_CC" = x; then 3622 CC="" 3623 else 3624 case $cross_compiling:$ac_tool_warned in 3625yes:) 3626{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3627$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3628ac_tool_warned=yes ;; 3629esac 3630 CC=$ac_ct_CC 3631 fi 3632fi 3633 3634fi 3635 3636 3637test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3638$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3639as_fn_error $? "no acceptable C compiler found in \$PATH 3640See \`config.log' for more details" "$LINENO" 5; } 3641 3642# Provide some information about the compiler. 3643$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3644set X $ac_compile 3645ac_compiler=$2 3646for ac_option in --version -v -V -qversion; do 3647 { { ac_try="$ac_compiler $ac_option >&5" 3648case "(($ac_try" in 3649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3650 *) ac_try_echo=$ac_try;; 3651esac 3652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3653$as_echo "$ac_try_echo"; } >&5 3654 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3655 ac_status=$? 3656 if test -s conftest.err; then 3657 sed '10a\ 3658... rest of stderr output deleted ... 3659 10q' conftest.err >conftest.er1 3660 cat conftest.er1 >&5 3661 fi 3662 rm -f conftest.er1 conftest.err 3663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3664 test $ac_status = 0; } 3665done 3666 3667cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3668/* end confdefs.h. */ 3669 3670int 3671main () 3672{ 3673 3674 ; 3675 return 0; 3676} 3677_ACEOF 3678ac_clean_files_save=$ac_clean_files 3679ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3680# Try to create an executable without -o first, disregard a.out. 3681# It will help us diagnose broken compilers, and finding out an intuition 3682# of exeext. 3683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3684$as_echo_n "checking whether the C compiler works... " >&6; } 3685ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3686 3687# The possible output files: 3688ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3689 3690ac_rmfiles= 3691for ac_file in $ac_files 3692do 3693 case $ac_file in 3694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3695 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3696 esac 3697done 3698rm -f $ac_rmfiles 3699 3700if { { ac_try="$ac_link_default" 3701case "(($ac_try" in 3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3703 *) ac_try_echo=$ac_try;; 3704esac 3705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3706$as_echo "$ac_try_echo"; } >&5 3707 (eval "$ac_link_default") 2>&5 3708 ac_status=$? 3709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3710 test $ac_status = 0; }; then : 3711 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3712# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3713# in a Makefile. We should not override ac_cv_exeext if it was cached, 3714# so that the user can short-circuit this test for compilers unknown to 3715# Autoconf. 3716for ac_file in $ac_files '' 3717do 3718 test -f "$ac_file" || continue 3719 case $ac_file in 3720 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3721 ;; 3722 [ab].out ) 3723 # We found the default executable, but exeext='' is most 3724 # certainly right. 3725 break;; 3726 *.* ) 3727 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3728 then :; else 3729 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3730 fi 3731 # We set ac_cv_exeext here because the later test for it is not 3732 # safe: cross compilers may not add the suffix if given an `-o' 3733 # argument, so we may need to know it at that point already. 3734 # Even if this section looks crufty: it has the advantage of 3735 # actually working. 3736 break;; 3737 * ) 3738 break;; 3739 esac 3740done 3741test "$ac_cv_exeext" = no && ac_cv_exeext= 3742 3743else 3744 ac_file='' 3745fi 3746if test -z "$ac_file"; then : 3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3748$as_echo "no" >&6; } 3749$as_echo "$as_me: failed program was:" >&5 3750sed 's/^/| /' conftest.$ac_ext >&5 3751 3752{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3753$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3754as_fn_error 77 "C compiler cannot create executables 3755See \`config.log' for more details" "$LINENO" 5; } 3756else 3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3758$as_echo "yes" >&6; } 3759fi 3760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3761$as_echo_n "checking for C compiler default output file name... " >&6; } 3762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3763$as_echo "$ac_file" >&6; } 3764ac_exeext=$ac_cv_exeext 3765 3766rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3767ac_clean_files=$ac_clean_files_save 3768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3769$as_echo_n "checking for suffix of executables... " >&6; } 3770if { { ac_try="$ac_link" 3771case "(($ac_try" in 3772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3773 *) ac_try_echo=$ac_try;; 3774esac 3775eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3776$as_echo "$ac_try_echo"; } >&5 3777 (eval "$ac_link") 2>&5 3778 ac_status=$? 3779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3780 test $ac_status = 0; }; then : 3781 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3782# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3783# work properly (i.e., refer to `conftest.exe'), while it won't with 3784# `rm'. 3785for ac_file in conftest.exe conftest conftest.*; do 3786 test -f "$ac_file" || continue 3787 case $ac_file in 3788 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3789 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3790 break;; 3791 * ) break;; 3792 esac 3793done 3794else 3795 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3796$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3797as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3798See \`config.log' for more details" "$LINENO" 5; } 3799fi 3800rm -f conftest conftest$ac_cv_exeext 3801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3802$as_echo "$ac_cv_exeext" >&6; } 3803 3804rm -f conftest.$ac_ext 3805EXEEXT=$ac_cv_exeext 3806ac_exeext=$EXEEXT 3807cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3808/* end confdefs.h. */ 3809#include <stdio.h> 3810int 3811main () 3812{ 3813FILE *f = fopen ("conftest.out", "w"); 3814 return ferror (f) || fclose (f) != 0; 3815 3816 ; 3817 return 0; 3818} 3819_ACEOF 3820ac_clean_files="$ac_clean_files conftest.out" 3821# Check that the compiler produces executables we can run. If not, either 3822# the compiler is broken, or we cross compile. 3823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3824$as_echo_n "checking whether we are cross compiling... " >&6; } 3825if test "$cross_compiling" != yes; then 3826 { { ac_try="$ac_link" 3827case "(($ac_try" in 3828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3829 *) ac_try_echo=$ac_try;; 3830esac 3831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3832$as_echo "$ac_try_echo"; } >&5 3833 (eval "$ac_link") 2>&5 3834 ac_status=$? 3835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3836 test $ac_status = 0; } 3837 if { ac_try='./conftest$ac_cv_exeext' 3838 { { case "(($ac_try" in 3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3840 *) ac_try_echo=$ac_try;; 3841esac 3842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3843$as_echo "$ac_try_echo"; } >&5 3844 (eval "$ac_try") 2>&5 3845 ac_status=$? 3846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3847 test $ac_status = 0; }; }; then 3848 cross_compiling=no 3849 else 3850 if test "$cross_compiling" = maybe; then 3851 cross_compiling=yes 3852 else 3853 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3854$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3855as_fn_error $? "cannot run C compiled programs. 3856If you meant to cross compile, use \`--host'. 3857See \`config.log' for more details" "$LINENO" 5; } 3858 fi 3859 fi 3860fi 3861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3862$as_echo "$cross_compiling" >&6; } 3863 3864rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3865ac_clean_files=$ac_clean_files_save 3866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3867$as_echo_n "checking for suffix of object files... " >&6; } 3868if ${ac_cv_objext+:} false; then : 3869 $as_echo_n "(cached) " >&6 3870else 3871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3872/* end confdefs.h. */ 3873 3874int 3875main () 3876{ 3877 3878 ; 3879 return 0; 3880} 3881_ACEOF 3882rm -f conftest.o conftest.obj 3883if { { ac_try="$ac_compile" 3884case "(($ac_try" in 3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3886 *) ac_try_echo=$ac_try;; 3887esac 3888eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3889$as_echo "$ac_try_echo"; } >&5 3890 (eval "$ac_compile") 2>&5 3891 ac_status=$? 3892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3893 test $ac_status = 0; }; then : 3894 for ac_file in conftest.o conftest.obj conftest.*; do 3895 test -f "$ac_file" || continue; 3896 case $ac_file in 3897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3898 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3899 break;; 3900 esac 3901done 3902else 3903 $as_echo "$as_me: failed program was:" >&5 3904sed 's/^/| /' conftest.$ac_ext >&5 3905 3906{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3907$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3908as_fn_error $? "cannot compute suffix of object files: cannot compile 3909See \`config.log' for more details" "$LINENO" 5; } 3910fi 3911rm -f conftest.$ac_cv_objext conftest.$ac_ext 3912fi 3913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3914$as_echo "$ac_cv_objext" >&6; } 3915OBJEXT=$ac_cv_objext 3916ac_objext=$OBJEXT 3917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3918$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3919if ${ac_cv_c_compiler_gnu+:} false; then : 3920 $as_echo_n "(cached) " >&6 3921else 3922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3923/* end confdefs.h. */ 3924 3925int 3926main () 3927{ 3928#ifndef __GNUC__ 3929 choke me 3930#endif 3931 3932 ; 3933 return 0; 3934} 3935_ACEOF 3936if ac_fn_c_try_compile "$LINENO"; then : 3937 ac_compiler_gnu=yes 3938else 3939 ac_compiler_gnu=no 3940fi 3941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3942ac_cv_c_compiler_gnu=$ac_compiler_gnu 3943 3944fi 3945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3946$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3947if test $ac_compiler_gnu = yes; then 3948 GCC=yes 3949else 3950 GCC= 3951fi 3952ac_test_CFLAGS=${CFLAGS+set} 3953ac_save_CFLAGS=$CFLAGS 3954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3955$as_echo_n "checking whether $CC accepts -g... " >&6; } 3956if ${ac_cv_prog_cc_g+:} false; then : 3957 $as_echo_n "(cached) " >&6 3958else 3959 ac_save_c_werror_flag=$ac_c_werror_flag 3960 ac_c_werror_flag=yes 3961 ac_cv_prog_cc_g=no 3962 CFLAGS="-g" 3963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3964/* end confdefs.h. */ 3965 3966int 3967main () 3968{ 3969 3970 ; 3971 return 0; 3972} 3973_ACEOF 3974if ac_fn_c_try_compile "$LINENO"; then : 3975 ac_cv_prog_cc_g=yes 3976else 3977 CFLAGS="" 3978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3979/* end confdefs.h. */ 3980 3981int 3982main () 3983{ 3984 3985 ; 3986 return 0; 3987} 3988_ACEOF 3989if ac_fn_c_try_compile "$LINENO"; then : 3990 3991else 3992 ac_c_werror_flag=$ac_save_c_werror_flag 3993 CFLAGS="-g" 3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3995/* end confdefs.h. */ 3996 3997int 3998main () 3999{ 4000 4001 ; 4002 return 0; 4003} 4004_ACEOF 4005if ac_fn_c_try_compile "$LINENO"; then : 4006 ac_cv_prog_cc_g=yes 4007fi 4008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4009fi 4010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4011fi 4012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4013 ac_c_werror_flag=$ac_save_c_werror_flag 4014fi 4015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4016$as_echo "$ac_cv_prog_cc_g" >&6; } 4017if test "$ac_test_CFLAGS" = set; then 4018 CFLAGS=$ac_save_CFLAGS 4019elif test $ac_cv_prog_cc_g = yes; then 4020 if test "$GCC" = yes; then 4021 CFLAGS="-g -O2" 4022 else 4023 CFLAGS="-g" 4024 fi 4025else 4026 if test "$GCC" = yes; then 4027 CFLAGS="-O2" 4028 else 4029 CFLAGS= 4030 fi 4031fi 4032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4033$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4034if ${ac_cv_prog_cc_c89+:} false; then : 4035 $as_echo_n "(cached) " >&6 4036else 4037 ac_cv_prog_cc_c89=no 4038ac_save_CC=$CC 4039cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4040/* end confdefs.h. */ 4041#include <stdarg.h> 4042#include <stdio.h> 4043#include <sys/types.h> 4044#include <sys/stat.h> 4045/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4046struct buf { int x; }; 4047FILE * (*rcsopen) (struct buf *, struct stat *, int); 4048static char *e (p, i) 4049 char **p; 4050 int i; 4051{ 4052 return p[i]; 4053} 4054static char *f (char * (*g) (char **, int), char **p, ...) 4055{ 4056 char *s; 4057 va_list v; 4058 va_start (v,p); 4059 s = g (p, va_arg (v,int)); 4060 va_end (v); 4061 return s; 4062} 4063 4064/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4065 function prototypes and stuff, but not '\xHH' hex character constants. 4066 These don't provoke an error unfortunately, instead are silently treated 4067 as 'x'. The following induces an error, until -std is added to get 4068 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4069 array size at least. It's necessary to write '\x00'==0 to get something 4070 that's true only with -std. */ 4071int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4072 4073/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4074 inside strings and character constants. */ 4075#define FOO(x) 'x' 4076int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4077 4078int test (int i, double x); 4079struct s1 {int (*f) (int a);}; 4080struct s2 {int (*f) (double a);}; 4081int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4082int argc; 4083char **argv; 4084int 4085main () 4086{ 4087return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4088 ; 4089 return 0; 4090} 4091_ACEOF 4092for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4093 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4094do 4095 CC="$ac_save_CC $ac_arg" 4096 if ac_fn_c_try_compile "$LINENO"; then : 4097 ac_cv_prog_cc_c89=$ac_arg 4098fi 4099rm -f core conftest.err conftest.$ac_objext 4100 test "x$ac_cv_prog_cc_c89" != "xno" && break 4101done 4102rm -f conftest.$ac_ext 4103CC=$ac_save_CC 4104 4105fi 4106# AC_CACHE_VAL 4107case "x$ac_cv_prog_cc_c89" in 4108 x) 4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4110$as_echo "none needed" >&6; } ;; 4111 xno) 4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4113$as_echo "unsupported" >&6; } ;; 4114 *) 4115 CC="$CC $ac_cv_prog_cc_c89" 4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4117$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4118esac 4119if test "x$ac_cv_prog_cc_c89" != xno; then : 4120 4121fi 4122 4123ac_ext=c 4124ac_cpp='$CPP $CPPFLAGS' 4125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4127ac_compiler_gnu=$ac_cv_c_compiler_gnu 4128DEPDIR="${am__leading_dot}deps" 4129 4130ac_config_commands="$ac_config_commands depfiles" 4131 4132 4133am_make=${MAKE-make} 4134cat > confinc << 'END' 4135am__doit: 4136 @echo this is the am__doit target 4137.PHONY: am__doit 4138END 4139# If we don't find an include directive, just comment out the code. 4140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4141$as_echo_n "checking for style of include used by $am_make... " >&6; } 4142am__include="#" 4143am__quote= 4144_am_result=none 4145# First try GNU make style include. 4146echo "include confinc" > confmf 4147# Ignore all kinds of additional output from `make'. 4148case `$am_make -s -f confmf 2> /dev/null` in #( 4149*the\ am__doit\ target*) 4150 am__include=include 4151 am__quote= 4152 _am_result=GNU 4153 ;; 4154esac 4155# Now try BSD make style include. 4156if test "$am__include" = "#"; then 4157 echo '.include "confinc"' > confmf 4158 case `$am_make -s -f confmf 2> /dev/null` in #( 4159 *the\ am__doit\ target*) 4160 am__include=.include 4161 am__quote="\"" 4162 _am_result=BSD 4163 ;; 4164 esac 4165fi 4166 4167 4168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4169$as_echo "$_am_result" >&6; } 4170rm -f confinc confmf 4171 4172# Check whether --enable-dependency-tracking was given. 4173if test "${enable_dependency_tracking+set}" = set; then : 4174 enableval=$enable_dependency_tracking; 4175fi 4176 4177if test "x$enable_dependency_tracking" != xno; then 4178 am_depcomp="$ac_aux_dir/depcomp" 4179 AMDEPBACKSLASH='\' 4180 am__nodep='_no' 4181fi 4182 if test "x$enable_dependency_tracking" != xno; then 4183 AMDEP_TRUE= 4184 AMDEP_FALSE='#' 4185else 4186 AMDEP_TRUE='#' 4187 AMDEP_FALSE= 4188fi 4189 4190 4191 4192depcc="$CC" am_compiler_list= 4193 4194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4195$as_echo_n "checking dependency style of $depcc... " >&6; } 4196if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4197 $as_echo_n "(cached) " >&6 4198else 4199 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4200 # We make a subdir and do the tests there. Otherwise we can end up 4201 # making bogus files that we don't know about and never remove. For 4202 # instance it was reported that on HP-UX the gcc test will end up 4203 # making a dummy file named `D' -- because `-MD' means `put the output 4204 # in D'. 4205 rm -rf conftest.dir 4206 mkdir conftest.dir 4207 # Copy depcomp to subdir because otherwise we won't find it if we're 4208 # using a relative directory. 4209 cp "$am_depcomp" conftest.dir 4210 cd conftest.dir 4211 # We will build objects and dependencies in a subdirectory because 4212 # it helps to detect inapplicable dependency modes. For instance 4213 # both Tru64's cc and ICC support -MD to output dependencies as a 4214 # side effect of compilation, but ICC will put the dependencies in 4215 # the current directory while Tru64 will put them in the object 4216 # directory. 4217 mkdir sub 4218 4219 am_cv_CC_dependencies_compiler_type=none 4220 if test "$am_compiler_list" = ""; then 4221 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4222 fi 4223 am__universal=false 4224 case " $depcc " in #( 4225 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4226 esac 4227 4228 for depmode in $am_compiler_list; do 4229 # Setup a source with many dependencies, because some compilers 4230 # like to wrap large dependency lists on column 80 (with \), and 4231 # we should not choose a depcomp mode which is confused by this. 4232 # 4233 # We need to recreate these files for each test, as the compiler may 4234 # overwrite some of them when testing with obscure command lines. 4235 # This happens at least with the AIX C compiler. 4236 : > sub/conftest.c 4237 for i in 1 2 3 4 5 6; do 4238 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4239 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4240 # Solaris 8's {/usr,}/bin/sh. 4241 touch sub/conftst$i.h 4242 done 4243 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4244 4245 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4246 # mode. It turns out that the SunPro C++ compiler does not properly 4247 # handle `-M -o', and we need to detect this. Also, some Intel 4248 # versions had trouble with output in subdirs 4249 am__obj=sub/conftest.${OBJEXT-o} 4250 am__minus_obj="-o $am__obj" 4251 case $depmode in 4252 gcc) 4253 # This depmode causes a compiler race in universal mode. 4254 test "$am__universal" = false || continue 4255 ;; 4256 nosideeffect) 4257 # after this tag, mechanisms are not by side-effect, so they'll 4258 # only be used when explicitly requested 4259 if test "x$enable_dependency_tracking" = xyes; then 4260 continue 4261 else 4262 break 4263 fi 4264 ;; 4265 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4266 # This compiler won't grok `-c -o', but also, the minuso test has 4267 # not run yet. These depmodes are late enough in the game, and 4268 # so weak that their functioning should not be impacted. 4269 am__obj=conftest.${OBJEXT-o} 4270 am__minus_obj= 4271 ;; 4272 none) break ;; 4273 esac 4274 if depmode=$depmode \ 4275 source=sub/conftest.c object=$am__obj \ 4276 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4277 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4278 >/dev/null 2>conftest.err && 4279 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4280 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4281 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4282 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4283 # icc doesn't choke on unknown options, it will just issue warnings 4284 # or remarks (even with -Werror). So we grep stderr for any message 4285 # that says an option was ignored or not supported. 4286 # When given -MP, icc 7.0 and 7.1 complain thusly: 4287 # icc: Command line warning: ignoring option '-M'; no argument required 4288 # The diagnosis changed in icc 8.0: 4289 # icc: Command line remark: option '-MP' not supported 4290 if (grep 'ignoring option' conftest.err || 4291 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4292 am_cv_CC_dependencies_compiler_type=$depmode 4293 break 4294 fi 4295 fi 4296 done 4297 4298 cd .. 4299 rm -rf conftest.dir 4300else 4301 am_cv_CC_dependencies_compiler_type=none 4302fi 4303 4304fi 4305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4306$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4307CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4308 4309 if 4310 test "x$enable_dependency_tracking" != xno \ 4311 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4312 am__fastdepCC_TRUE= 4313 am__fastdepCC_FALSE='#' 4314else 4315 am__fastdepCC_TRUE='#' 4316 am__fastdepCC_FALSE= 4317fi 4318 4319 4320if test "x$CC" != xcc; then 4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 4322$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 4323else 4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 4325$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 4326fi 4327set dummy $CC; ac_cc=`$as_echo "$2" | 4328 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 4329if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : 4330 $as_echo_n "(cached) " >&6 4331else 4332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4333/* end confdefs.h. */ 4334 4335int 4336main () 4337{ 4338 4339 ; 4340 return 0; 4341} 4342_ACEOF 4343# Make sure it works both with $CC and with simple cc. 4344# We do the test twice because some compilers refuse to overwrite an 4345# existing .o file with -o, though they will create one. 4346ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 4347rm -f conftest2.* 4348if { { case "(($ac_try" in 4349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4350 *) ac_try_echo=$ac_try;; 4351esac 4352eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4353$as_echo "$ac_try_echo"; } >&5 4354 (eval "$ac_try") 2>&5 4355 ac_status=$? 4356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4357 test $ac_status = 0; } && 4358 test -f conftest2.$ac_objext && { { case "(($ac_try" in 4359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4360 *) ac_try_echo=$ac_try;; 4361esac 4362eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4363$as_echo "$ac_try_echo"; } >&5 4364 (eval "$ac_try") 2>&5 4365 ac_status=$? 4366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4367 test $ac_status = 0; }; 4368then 4369 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 4370 if test "x$CC" != xcc; then 4371 # Test first that cc exists at all. 4372 if { ac_try='cc -c conftest.$ac_ext >&5' 4373 { { case "(($ac_try" in 4374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4375 *) ac_try_echo=$ac_try;; 4376esac 4377eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4378$as_echo "$ac_try_echo"; } >&5 4379 (eval "$ac_try") 2>&5 4380 ac_status=$? 4381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4382 test $ac_status = 0; }; }; then 4383 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 4384 rm -f conftest2.* 4385 if { { case "(($ac_try" in 4386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4387 *) ac_try_echo=$ac_try;; 4388esac 4389eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4390$as_echo "$ac_try_echo"; } >&5 4391 (eval "$ac_try") 2>&5 4392 ac_status=$? 4393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4394 test $ac_status = 0; } && 4395 test -f conftest2.$ac_objext && { { case "(($ac_try" in 4396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4397 *) ac_try_echo=$ac_try;; 4398esac 4399eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4400$as_echo "$ac_try_echo"; } >&5 4401 (eval "$ac_try") 2>&5 4402 ac_status=$? 4403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4404 test $ac_status = 0; }; 4405 then 4406 # cc works too. 4407 : 4408 else 4409 # cc exists but doesn't like -o. 4410 eval ac_cv_prog_cc_${ac_cc}_c_o=no 4411 fi 4412 fi 4413 fi 4414else 4415 eval ac_cv_prog_cc_${ac_cc}_c_o=no 4416fi 4417rm -f core conftest* 4418 4419fi 4420if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4422$as_echo "yes" >&6; } 4423else 4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4425$as_echo "no" >&6; } 4426 4427$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 4428 4429fi 4430 4431# FIXME: we rely on the cache variable name because 4432# there is no other way. 4433set dummy $CC 4434am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 4435eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 4436if test "$am_t" != yes; then 4437 # Losing compiler, so override with the script. 4438 # FIXME: It is wrong to rewrite CC. 4439 # But if we don't then we get into trouble of one sort or another. 4440 # A longer-term fix would be to have automake use am__CC in this case, 4441 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4442 CC="$am_aux_dir/compile $CC" 4443fi 4444 4445 4446 4447 4448 ansi= 4449 if test -z "$ansi"; then 4450 msg="for C compiler warning flags" 4451 else 4452 msg="for C compiler warning and ANSI conformance flags" 4453 fi 4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $msg" >&5 4455$as_echo_n "checking $msg... " >&6; } 4456if ${vl_cv_prog_cc_warnings+:} false; then : 4457 $as_echo_n "(cached) " >&6 4458else 4459 4460 if test -n "$CC"; then 4461 cat > conftest.c <<EOF 4462int main(int argc, char **argv) { return 0; } 4463EOF 4464 4465 if test "$GCC" = "yes"; then 4466 if test -z "$ansi"; then 4467 vl_cv_prog_cc_warnings="-Wall -W" 4468 else 4469 vl_cv_prog_cc_warnings="-Wall -W -ansi -pedantic" 4470 fi 4471 4472 4473 elif $CC -V 2>&1 | grep -i "WorkShop" > /dev/null 2>&1 && 4474 $CC -c -v -Xc conftest.c > /dev/null 2>&1 && 4475 test -f conftest.o; then 4476 if test -z "$ansi"; then 4477 vl_cv_prog_cc_warnings="-v" 4478 else 4479 vl_cv_prog_cc_warnings="-v -Xc" 4480 fi 4481 4482 elif $CC -V 2>&1 | grep -i "Digital UNIX Compiler" > /dev/null 2>&1 && 4483 $CC -c -verbose -w0 -warnprotos -std1 conftest.c > /dev/null 2>&1 && 4484 test -f conftest.o; then 4485 if test -z "$ansi"; then 4486 vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos" 4487 else 4488 vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos -std1" 4489 fi 4490 4491 elif $CC 2>&1 | grep -i "C for AIX Compiler" > /dev/null 2>&1 && 4492 $CC -c -qlanglvl=ansi -qinfo=all conftest.c > /dev/null 2>&1 && 4493 test -f conftest.o; then 4494 if test -z "$ansi"; then 4495 vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" 4496 else 4497 vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd -qlanglvl=ansi" 4498 fi 4499 4500 elif $CC -version 2>&1 | grep -i "MIPSpro Compilers" > /dev/null 2>&1 && 4501 $CC -c -fullwarn -ansi -ansiE conftest.c > /dev/null 2>&1 && 4502 test -f conftest.o; then 4503 if test -z "$ansi"; then 4504 vl_cv_prog_cc_warnings="-fullwarn" 4505 else 4506 vl_cv_prog_cc_warnings="-fullwarn -ansi -ansiE" 4507 fi 4508 4509 elif what $CC 2>&1 | grep -i "HP C Compiler" > /dev/null 2>&1 && 4510 $CC -c -Aa +w1 conftest.c > /dev/null 2>&1 && 4511 test -f conftest.o; then 4512 if test -z "$ansi"; then 4513 vl_cv_prog_cc_warnings="+w1" 4514 else 4515 vl_cv_prog_cc_warnings="+w1 -Aa" 4516 fi 4517 4518 elif $CC -V 2>&1 | grep "/SX" > /dev/null 2>&1 && 4519 $CC -c -pvctl,fullmsg -Xc conftest.c > /dev/null 2>&1 && 4520 test -f conftest.o; then 4521 if test -z "$ansi"; then 4522 vl_cv_prog_cc_warnings="-pvctl,fullmsg" 4523 else 4524 vl_cv_prog_cc_warnings="-pvctl,fullmsg -Xc" 4525 fi 4526 4527 elif $CC -V 2>&1 | grep -i "Cray" > /dev/null 2>&1 && 4528 $CC -c -h msglevel 2 conftest.c > /dev/null 2>&1 && 4529 test -f conftest.o; then 4530 if test -z "$ansi"; then 4531 vl_cv_prog_cc_warnings="-h msglevel 2" 4532 else 4533 vl_cv_prog_cc_warnings="-h msglevel 2 -h conform" 4534 fi 4535 4536 fi 4537 rm -f conftest.* 4538 fi 4539 if test -n "$vl_cv_prog_cc_warnings"; then 4540 CFLAGS="$CFLAGS $vl_cv_prog_cc_warnings" 4541 else 4542 vl_cv_prog_cc_warnings="unknown" 4543 fi 4544 4545fi 4546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_prog_cc_warnings" >&5 4547$as_echo "$vl_cv_prog_cc_warnings" >&6; } 4548 4549 4550 4551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4552$as_echo_n "checking whether ln -s works... " >&6; } 4553LN_S=$as_ln_s 4554if test "$LN_S" = "ln -s"; then 4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4556$as_echo "yes" >&6; } 4557else 4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4559$as_echo "no, using $LN_S" >&6; } 4560fi 4561 4562 4563 4564 4565 4566case `pwd` in 4567 *\ * | *\ *) 4568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4569$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4570esac 4571 4572 4573 4574macro_version='2.4.2' 4575macro_revision='1.3337' 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589ltmain="$ac_aux_dir/ltmain.sh" 4590 4591# Backslashify metacharacters that are still active within 4592# double-quoted strings. 4593sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4594 4595# Same as above, but do not quote variable references. 4596double_quote_subst='s/\(["`\\]\)/\\\1/g' 4597 4598# Sed substitution to delay expansion of an escaped shell variable in a 4599# double_quote_subst'ed string. 4600delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4601 4602# Sed substitution to delay expansion of an escaped single quote. 4603delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4604 4605# Sed substitution to avoid accidental globbing in evaled expressions 4606no_glob_subst='s/\*/\\\*/g' 4607 4608ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4609ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4610ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4611 4612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4613$as_echo_n "checking how to print strings... " >&6; } 4614# Test print first, because it will be a builtin if present. 4615if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4616 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4617 ECHO='print -r --' 4618elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4619 ECHO='printf %s\n' 4620else 4621 # Use this function as a fallback that always works. 4622 func_fallback_echo () 4623 { 4624 eval 'cat <<_LTECHO_EOF 4625$1 4626_LTECHO_EOF' 4627 } 4628 ECHO='func_fallback_echo' 4629fi 4630 4631# func_echo_all arg... 4632# Invoke $ECHO with all args, space-separated. 4633func_echo_all () 4634{ 4635 $ECHO "" 4636} 4637 4638case "$ECHO" in 4639 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4640$as_echo "printf" >&6; } ;; 4641 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4642$as_echo "print -r" >&6; } ;; 4643 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4644$as_echo "cat" >&6; } ;; 4645esac 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4661$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4662if ${ac_cv_path_SED+:} false; then : 4663 $as_echo_n "(cached) " >&6 4664else 4665 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4666 for ac_i in 1 2 3 4 5 6 7; do 4667 ac_script="$ac_script$as_nl$ac_script" 4668 done 4669 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4670 { ac_script=; unset ac_script;} 4671 if test -z "$SED"; then 4672 ac_path_SED_found=false 4673 # Loop through the user's path and test for each of PROGNAME-LIST 4674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4675for as_dir in $PATH 4676do 4677 IFS=$as_save_IFS 4678 test -z "$as_dir" && as_dir=. 4679 for ac_prog in sed gsed; do 4680 for ac_exec_ext in '' $ac_executable_extensions; do 4681 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4682 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4683# Check for GNU ac_path_SED and select it if it is found. 4684 # Check for GNU $ac_path_SED 4685case `"$ac_path_SED" --version 2>&1` in 4686*GNU*) 4687 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4688*) 4689 ac_count=0 4690 $as_echo_n 0123456789 >"conftest.in" 4691 while : 4692 do 4693 cat "conftest.in" "conftest.in" >"conftest.tmp" 4694 mv "conftest.tmp" "conftest.in" 4695 cp "conftest.in" "conftest.nl" 4696 $as_echo '' >> "conftest.nl" 4697 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4698 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4699 as_fn_arith $ac_count + 1 && ac_count=$as_val 4700 if test $ac_count -gt ${ac_path_SED_max-0}; then 4701 # Best one so far, save it but keep looking for a better one 4702 ac_cv_path_SED="$ac_path_SED" 4703 ac_path_SED_max=$ac_count 4704 fi 4705 # 10*(2^10) chars as input seems more than enough 4706 test $ac_count -gt 10 && break 4707 done 4708 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4709esac 4710 4711 $ac_path_SED_found && break 3 4712 done 4713 done 4714 done 4715IFS=$as_save_IFS 4716 if test -z "$ac_cv_path_SED"; then 4717 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4718 fi 4719else 4720 ac_cv_path_SED=$SED 4721fi 4722 4723fi 4724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4725$as_echo "$ac_cv_path_SED" >&6; } 4726 SED="$ac_cv_path_SED" 4727 rm -f conftest.sed 4728 4729test -z "$SED" && SED=sed 4730Xsed="$SED -e 1s/^X//" 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4743$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4744if ${ac_cv_path_GREP+:} false; then : 4745 $as_echo_n "(cached) " >&6 4746else 4747 if test -z "$GREP"; then 4748 ac_path_GREP_found=false 4749 # Loop through the user's path and test for each of PROGNAME-LIST 4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4751for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4752do 4753 IFS=$as_save_IFS 4754 test -z "$as_dir" && as_dir=. 4755 for ac_prog in grep ggrep; do 4756 for ac_exec_ext in '' $ac_executable_extensions; do 4757 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4758 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4759# Check for GNU ac_path_GREP and select it if it is found. 4760 # Check for GNU $ac_path_GREP 4761case `"$ac_path_GREP" --version 2>&1` in 4762*GNU*) 4763 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4764*) 4765 ac_count=0 4766 $as_echo_n 0123456789 >"conftest.in" 4767 while : 4768 do 4769 cat "conftest.in" "conftest.in" >"conftest.tmp" 4770 mv "conftest.tmp" "conftest.in" 4771 cp "conftest.in" "conftest.nl" 4772 $as_echo 'GREP' >> "conftest.nl" 4773 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4774 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4775 as_fn_arith $ac_count + 1 && ac_count=$as_val 4776 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4777 # Best one so far, save it but keep looking for a better one 4778 ac_cv_path_GREP="$ac_path_GREP" 4779 ac_path_GREP_max=$ac_count 4780 fi 4781 # 10*(2^10) chars as input seems more than enough 4782 test $ac_count -gt 10 && break 4783 done 4784 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4785esac 4786 4787 $ac_path_GREP_found && break 3 4788 done 4789 done 4790 done 4791IFS=$as_save_IFS 4792 if test -z "$ac_cv_path_GREP"; then 4793 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4794 fi 4795else 4796 ac_cv_path_GREP=$GREP 4797fi 4798 4799fi 4800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4801$as_echo "$ac_cv_path_GREP" >&6; } 4802 GREP="$ac_cv_path_GREP" 4803 4804 4805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4806$as_echo_n "checking for egrep... " >&6; } 4807if ${ac_cv_path_EGREP+:} false; then : 4808 $as_echo_n "(cached) " >&6 4809else 4810 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4811 then ac_cv_path_EGREP="$GREP -E" 4812 else 4813 if test -z "$EGREP"; then 4814 ac_path_EGREP_found=false 4815 # Loop through the user's path and test for each of PROGNAME-LIST 4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4817for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4818do 4819 IFS=$as_save_IFS 4820 test -z "$as_dir" && as_dir=. 4821 for ac_prog in egrep; do 4822 for ac_exec_ext in '' $ac_executable_extensions; do 4823 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4824 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4825# Check for GNU ac_path_EGREP and select it if it is found. 4826 # Check for GNU $ac_path_EGREP 4827case `"$ac_path_EGREP" --version 2>&1` in 4828*GNU*) 4829 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4830*) 4831 ac_count=0 4832 $as_echo_n 0123456789 >"conftest.in" 4833 while : 4834 do 4835 cat "conftest.in" "conftest.in" >"conftest.tmp" 4836 mv "conftest.tmp" "conftest.in" 4837 cp "conftest.in" "conftest.nl" 4838 $as_echo 'EGREP' >> "conftest.nl" 4839 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4840 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4841 as_fn_arith $ac_count + 1 && ac_count=$as_val 4842 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4843 # Best one so far, save it but keep looking for a better one 4844 ac_cv_path_EGREP="$ac_path_EGREP" 4845 ac_path_EGREP_max=$ac_count 4846 fi 4847 # 10*(2^10) chars as input seems more than enough 4848 test $ac_count -gt 10 && break 4849 done 4850 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4851esac 4852 4853 $ac_path_EGREP_found && break 3 4854 done 4855 done 4856 done 4857IFS=$as_save_IFS 4858 if test -z "$ac_cv_path_EGREP"; then 4859 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4860 fi 4861else 4862 ac_cv_path_EGREP=$EGREP 4863fi 4864 4865 fi 4866fi 4867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4868$as_echo "$ac_cv_path_EGREP" >&6; } 4869 EGREP="$ac_cv_path_EGREP" 4870 4871 4872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4873$as_echo_n "checking for fgrep... " >&6; } 4874if ${ac_cv_path_FGREP+:} false; then : 4875 $as_echo_n "(cached) " >&6 4876else 4877 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4878 then ac_cv_path_FGREP="$GREP -F" 4879 else 4880 if test -z "$FGREP"; then 4881 ac_path_FGREP_found=false 4882 # Loop through the user's path and test for each of PROGNAME-LIST 4883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4884for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4885do 4886 IFS=$as_save_IFS 4887 test -z "$as_dir" && as_dir=. 4888 for ac_prog in fgrep; do 4889 for ac_exec_ext in '' $ac_executable_extensions; do 4890 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4891 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4892# Check for GNU ac_path_FGREP and select it if it is found. 4893 # Check for GNU $ac_path_FGREP 4894case `"$ac_path_FGREP" --version 2>&1` in 4895*GNU*) 4896 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4897*) 4898 ac_count=0 4899 $as_echo_n 0123456789 >"conftest.in" 4900 while : 4901 do 4902 cat "conftest.in" "conftest.in" >"conftest.tmp" 4903 mv "conftest.tmp" "conftest.in" 4904 cp "conftest.in" "conftest.nl" 4905 $as_echo 'FGREP' >> "conftest.nl" 4906 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4907 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4908 as_fn_arith $ac_count + 1 && ac_count=$as_val 4909 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4910 # Best one so far, save it but keep looking for a better one 4911 ac_cv_path_FGREP="$ac_path_FGREP" 4912 ac_path_FGREP_max=$ac_count 4913 fi 4914 # 10*(2^10) chars as input seems more than enough 4915 test $ac_count -gt 10 && break 4916 done 4917 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4918esac 4919 4920 $ac_path_FGREP_found && break 3 4921 done 4922 done 4923 done 4924IFS=$as_save_IFS 4925 if test -z "$ac_cv_path_FGREP"; then 4926 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4927 fi 4928else 4929 ac_cv_path_FGREP=$FGREP 4930fi 4931 4932 fi 4933fi 4934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4935$as_echo "$ac_cv_path_FGREP" >&6; } 4936 FGREP="$ac_cv_path_FGREP" 4937 4938 4939test -z "$GREP" && GREP=grep 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959# Check whether --with-gnu-ld was given. 4960if test "${with_gnu_ld+set}" = set; then : 4961 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4962else 4963 with_gnu_ld=no 4964fi 4965 4966ac_prog=ld 4967if test "$GCC" = yes; then 4968 # Check if gcc -print-prog-name=ld gives a path. 4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4970$as_echo_n "checking for ld used by $CC... " >&6; } 4971 case $host in 4972 *-*-mingw*) 4973 # gcc leaves a trailing carriage return which upsets mingw 4974 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4975 *) 4976 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4977 esac 4978 case $ac_prog in 4979 # Accept absolute paths. 4980 [\\/]* | ?:[\\/]*) 4981 re_direlt='/[^/][^/]*/\.\./' 4982 # Canonicalize the pathname of ld 4983 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4984 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4985 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4986 done 4987 test -z "$LD" && LD="$ac_prog" 4988 ;; 4989 "") 4990 # If it fails, then pretend we aren't using GCC. 4991 ac_prog=ld 4992 ;; 4993 *) 4994 # If it is relative, then search for the first ld in PATH. 4995 with_gnu_ld=unknown 4996 ;; 4997 esac 4998elif test "$with_gnu_ld" = yes; then 4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5000$as_echo_n "checking for GNU ld... " >&6; } 5001else 5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5003$as_echo_n "checking for non-GNU ld... " >&6; } 5004fi 5005if ${lt_cv_path_LD+:} false; then : 5006 $as_echo_n "(cached) " >&6 5007else 5008 if test -z "$LD"; then 5009 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5010 for ac_dir in $PATH; do 5011 IFS="$lt_save_ifs" 5012 test -z "$ac_dir" && ac_dir=. 5013 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5014 lt_cv_path_LD="$ac_dir/$ac_prog" 5015 # Check to see if the program is GNU ld. I'd rather use --version, 5016 # but apparently some variants of GNU ld only accept -v. 5017 # Break only if it was the GNU/non-GNU ld that we prefer. 5018 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5019 *GNU* | *'with BFD'*) 5020 test "$with_gnu_ld" != no && break 5021 ;; 5022 *) 5023 test "$with_gnu_ld" != yes && break 5024 ;; 5025 esac 5026 fi 5027 done 5028 IFS="$lt_save_ifs" 5029else 5030 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5031fi 5032fi 5033 5034LD="$lt_cv_path_LD" 5035if test -n "$LD"; then 5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5037$as_echo "$LD" >&6; } 5038else 5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5040$as_echo "no" >&6; } 5041fi 5042test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5044$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5045if ${lt_cv_prog_gnu_ld+:} false; then : 5046 $as_echo_n "(cached) " >&6 5047else 5048 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5049case `$LD -v 2>&1 </dev/null` in 5050*GNU* | *'with BFD'*) 5051 lt_cv_prog_gnu_ld=yes 5052 ;; 5053*) 5054 lt_cv_prog_gnu_ld=no 5055 ;; 5056esac 5057fi 5058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5059$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5060with_gnu_ld=$lt_cv_prog_gnu_ld 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5071$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5072if ${lt_cv_path_NM+:} false; then : 5073 $as_echo_n "(cached) " >&6 5074else 5075 if test -n "$NM"; then 5076 # Let the user override the test. 5077 lt_cv_path_NM="$NM" 5078else 5079 lt_nm_to_check="${ac_tool_prefix}nm" 5080 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5081 lt_nm_to_check="$lt_nm_to_check nm" 5082 fi 5083 for lt_tmp_nm in $lt_nm_to_check; do 5084 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5085 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5086 IFS="$lt_save_ifs" 5087 test -z "$ac_dir" && ac_dir=. 5088 tmp_nm="$ac_dir/$lt_tmp_nm" 5089 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5090 # Check to see if the nm accepts a BSD-compat flag. 5091 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5092 # nm: unknown option "B" ignored 5093 # Tru64's nm complains that /dev/null is an invalid object file 5094 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5095 */dev/null* | *'Invalid file or object type'*) 5096 lt_cv_path_NM="$tmp_nm -B" 5097 break 5098 ;; 5099 *) 5100 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5101 */dev/null*) 5102 lt_cv_path_NM="$tmp_nm -p" 5103 break 5104 ;; 5105 *) 5106 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5107 continue # so that we can try to find one that supports BSD flags 5108 ;; 5109 esac 5110 ;; 5111 esac 5112 fi 5113 done 5114 IFS="$lt_save_ifs" 5115 done 5116 : ${lt_cv_path_NM=no} 5117fi 5118fi 5119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5120$as_echo "$lt_cv_path_NM" >&6; } 5121if test "$lt_cv_path_NM" != "no"; then 5122 NM="$lt_cv_path_NM" 5123else 5124 # Didn't find any BSD compatible name lister, look for dumpbin. 5125 if test -n "$DUMPBIN"; then : 5126 # Let the user override the test. 5127 else 5128 if test -n "$ac_tool_prefix"; then 5129 for ac_prog in dumpbin "link -dump" 5130 do 5131 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5132set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5134$as_echo_n "checking for $ac_word... " >&6; } 5135if ${ac_cv_prog_DUMPBIN+:} false; then : 5136 $as_echo_n "(cached) " >&6 5137else 5138 if test -n "$DUMPBIN"; then 5139 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5140else 5141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5142for as_dir in $PATH 5143do 5144 IFS=$as_save_IFS 5145 test -z "$as_dir" && as_dir=. 5146 for ac_exec_ext in '' $ac_executable_extensions; do 5147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5148 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5150 break 2 5151 fi 5152done 5153 done 5154IFS=$as_save_IFS 5155 5156fi 5157fi 5158DUMPBIN=$ac_cv_prog_DUMPBIN 5159if test -n "$DUMPBIN"; then 5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5161$as_echo "$DUMPBIN" >&6; } 5162else 5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5164$as_echo "no" >&6; } 5165fi 5166 5167 5168 test -n "$DUMPBIN" && break 5169 done 5170fi 5171if test -z "$DUMPBIN"; then 5172 ac_ct_DUMPBIN=$DUMPBIN 5173 for ac_prog in dumpbin "link -dump" 5174do 5175 # Extract the first word of "$ac_prog", so it can be a program name with args. 5176set dummy $ac_prog; ac_word=$2 5177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5178$as_echo_n "checking for $ac_word... " >&6; } 5179if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5180 $as_echo_n "(cached) " >&6 5181else 5182 if test -n "$ac_ct_DUMPBIN"; then 5183 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5184else 5185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5186for as_dir in $PATH 5187do 5188 IFS=$as_save_IFS 5189 test -z "$as_dir" && as_dir=. 5190 for ac_exec_ext in '' $ac_executable_extensions; do 5191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5192 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5194 break 2 5195 fi 5196done 5197 done 5198IFS=$as_save_IFS 5199 5200fi 5201fi 5202ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5203if test -n "$ac_ct_DUMPBIN"; then 5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5205$as_echo "$ac_ct_DUMPBIN" >&6; } 5206else 5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5208$as_echo "no" >&6; } 5209fi 5210 5211 5212 test -n "$ac_ct_DUMPBIN" && break 5213done 5214 5215 if test "x$ac_ct_DUMPBIN" = x; then 5216 DUMPBIN=":" 5217 else 5218 case $cross_compiling:$ac_tool_warned in 5219yes:) 5220{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5221$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5222ac_tool_warned=yes ;; 5223esac 5224 DUMPBIN=$ac_ct_DUMPBIN 5225 fi 5226fi 5227 5228 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5229 *COFF*) 5230 DUMPBIN="$DUMPBIN -symbols" 5231 ;; 5232 *) 5233 DUMPBIN=: 5234 ;; 5235 esac 5236 fi 5237 5238 if test "$DUMPBIN" != ":"; then 5239 NM="$DUMPBIN" 5240 fi 5241fi 5242test -z "$NM" && NM=nm 5243 5244 5245 5246 5247 5248 5249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5250$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5251if ${lt_cv_nm_interface+:} false; then : 5252 $as_echo_n "(cached) " >&6 5253else 5254 lt_cv_nm_interface="BSD nm" 5255 echo "int some_variable = 0;" > conftest.$ac_ext 5256 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5257 (eval "$ac_compile" 2>conftest.err) 5258 cat conftest.err >&5 5259 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5260 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5261 cat conftest.err >&5 5262 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5263 cat conftest.out >&5 5264 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5265 lt_cv_nm_interface="MS dumpbin" 5266 fi 5267 rm -f conftest* 5268fi 5269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5270$as_echo "$lt_cv_nm_interface" >&6; } 5271 5272# find the maximum length of command line arguments 5273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5274$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5275if ${lt_cv_sys_max_cmd_len+:} false; then : 5276 $as_echo_n "(cached) " >&6 5277else 5278 i=0 5279 teststring="ABCD" 5280 5281 case $build_os in 5282 msdosdjgpp*) 5283 # On DJGPP, this test can blow up pretty badly due to problems in libc 5284 # (any single argument exceeding 2000 bytes causes a buffer overrun 5285 # during glob expansion). Even if it were fixed, the result of this 5286 # check would be larger than it should be. 5287 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5288 ;; 5289 5290 gnu*) 5291 # Under GNU Hurd, this test is not required because there is 5292 # no limit to the length of command line arguments. 5293 # Libtool will interpret -1 as no limit whatsoever 5294 lt_cv_sys_max_cmd_len=-1; 5295 ;; 5296 5297 cygwin* | mingw* | cegcc*) 5298 # On Win9x/ME, this test blows up -- it succeeds, but takes 5299 # about 5 minutes as the teststring grows exponentially. 5300 # Worse, since 9x/ME are not pre-emptively multitasking, 5301 # you end up with a "frozen" computer, even though with patience 5302 # the test eventually succeeds (with a max line length of 256k). 5303 # Instead, let's just punt: use the minimum linelength reported by 5304 # all of the supported platforms: 8192 (on NT/2K/XP). 5305 lt_cv_sys_max_cmd_len=8192; 5306 ;; 5307 5308 mint*) 5309 # On MiNT this can take a long time and run out of memory. 5310 lt_cv_sys_max_cmd_len=8192; 5311 ;; 5312 5313 amigaos*) 5314 # On AmigaOS with pdksh, this test takes hours, literally. 5315 # So we just punt and use a minimum line length of 8192. 5316 lt_cv_sys_max_cmd_len=8192; 5317 ;; 5318 5319 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5320 # This has been around since 386BSD, at least. Likely further. 5321 if test -x /sbin/sysctl; then 5322 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5323 elif test -x /usr/sbin/sysctl; then 5324 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5325 else 5326 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5327 fi 5328 # And add a safety zone 5329 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5330 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5331 ;; 5332 5333 interix*) 5334 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5335 lt_cv_sys_max_cmd_len=196608 5336 ;; 5337 5338 os2*) 5339 # The test takes a long time on OS/2. 5340 lt_cv_sys_max_cmd_len=8192 5341 ;; 5342 5343 osf*) 5344 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5345 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5346 # nice to cause kernel panics so lets avoid the loop below. 5347 # First set a reasonable default. 5348 lt_cv_sys_max_cmd_len=16384 5349 # 5350 if test -x /sbin/sysconfig; then 5351 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5352 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5353 esac 5354 fi 5355 ;; 5356 sco3.2v5*) 5357 lt_cv_sys_max_cmd_len=102400 5358 ;; 5359 sysv5* | sco5v6* | sysv4.2uw2*) 5360 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5361 if test -n "$kargmax"; then 5362 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5363 else 5364 lt_cv_sys_max_cmd_len=32768 5365 fi 5366 ;; 5367 *) 5368 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5369 if test -n "$lt_cv_sys_max_cmd_len"; then 5370 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5371 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5372 else 5373 # Make teststring a little bigger before we do anything with it. 5374 # a 1K string should be a reasonable start. 5375 for i in 1 2 3 4 5 6 7 8 ; do 5376 teststring=$teststring$teststring 5377 done 5378 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5379 # If test is not a shell built-in, we'll probably end up computing a 5380 # maximum length that is only half of the actual maximum length, but 5381 # we can't tell. 5382 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5383 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5384 test $i != 17 # 1/2 MB should be enough 5385 do 5386 i=`expr $i + 1` 5387 teststring=$teststring$teststring 5388 done 5389 # Only check the string length outside the loop. 5390 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5391 teststring= 5392 # Add a significant safety factor because C++ compilers can tack on 5393 # massive amounts of additional arguments before passing them to the 5394 # linker. It appears as though 1/2 is a usable value. 5395 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5396 fi 5397 ;; 5398 esac 5399 5400fi 5401 5402if test -n $lt_cv_sys_max_cmd_len ; then 5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5404$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5405else 5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5407$as_echo "none" >&6; } 5408fi 5409max_cmd_len=$lt_cv_sys_max_cmd_len 5410 5411 5412 5413 5414 5415 5416: ${CP="cp -f"} 5417: ${MV="mv -f"} 5418: ${RM="rm -f"} 5419 5420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5421$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5422# Try some XSI features 5423xsi_shell=no 5424( _lt_dummy="a/b/c" 5425 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5426 = c,a/b,b/c, \ 5427 && eval 'test $(( 1 + 1 )) -eq 2 \ 5428 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5429 && xsi_shell=yes 5430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5431$as_echo "$xsi_shell" >&6; } 5432 5433 5434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5435$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5436lt_shell_append=no 5437( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5438 >/dev/null 2>&1 \ 5439 && lt_shell_append=yes 5440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5441$as_echo "$lt_shell_append" >&6; } 5442 5443 5444if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5445 lt_unset=unset 5446else 5447 lt_unset=false 5448fi 5449 5450 5451 5452 5453 5454# test EBCDIC or ASCII 5455case `echo X|tr X '\101'` in 5456 A) # ASCII based system 5457 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5458 lt_SP2NL='tr \040 \012' 5459 lt_NL2SP='tr \015\012 \040\040' 5460 ;; 5461 *) # EBCDIC based system 5462 lt_SP2NL='tr \100 \n' 5463 lt_NL2SP='tr \r\n \100\100' 5464 ;; 5465esac 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5476$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5477if ${lt_cv_to_host_file_cmd+:} false; then : 5478 $as_echo_n "(cached) " >&6 5479else 5480 case $host in 5481 *-*-mingw* ) 5482 case $build in 5483 *-*-mingw* ) # actually msys 5484 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5485 ;; 5486 *-*-cygwin* ) 5487 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5488 ;; 5489 * ) # otherwise, assume *nix 5490 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5491 ;; 5492 esac 5493 ;; 5494 *-*-cygwin* ) 5495 case $build in 5496 *-*-mingw* ) # actually msys 5497 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5498 ;; 5499 *-*-cygwin* ) 5500 lt_cv_to_host_file_cmd=func_convert_file_noop 5501 ;; 5502 * ) # otherwise, assume *nix 5503 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5504 ;; 5505 esac 5506 ;; 5507 * ) # unhandled hosts (and "normal" native builds) 5508 lt_cv_to_host_file_cmd=func_convert_file_noop 5509 ;; 5510esac 5511 5512fi 5513 5514to_host_file_cmd=$lt_cv_to_host_file_cmd 5515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5516$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5517 5518 5519 5520 5521 5522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5523$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5524if ${lt_cv_to_tool_file_cmd+:} false; then : 5525 $as_echo_n "(cached) " >&6 5526else 5527 #assume ordinary cross tools, or native build. 5528lt_cv_to_tool_file_cmd=func_convert_file_noop 5529case $host in 5530 *-*-mingw* ) 5531 case $build in 5532 *-*-mingw* ) # actually msys 5533 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5534 ;; 5535 esac 5536 ;; 5537esac 5538 5539fi 5540 5541to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5543$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5544 5545 5546 5547 5548 5549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5550$as_echo_n "checking for $LD option to reload object files... " >&6; } 5551if ${lt_cv_ld_reload_flag+:} false; then : 5552 $as_echo_n "(cached) " >&6 5553else 5554 lt_cv_ld_reload_flag='-r' 5555fi 5556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5557$as_echo "$lt_cv_ld_reload_flag" >&6; } 5558reload_flag=$lt_cv_ld_reload_flag 5559case $reload_flag in 5560"" | " "*) ;; 5561*) reload_flag=" $reload_flag" ;; 5562esac 5563reload_cmds='$LD$reload_flag -o $output$reload_objs' 5564case $host_os in 5565 cygwin* | mingw* | pw32* | cegcc*) 5566 if test "$GCC" != yes; then 5567 reload_cmds=false 5568 fi 5569 ;; 5570 darwin*) 5571 if test "$GCC" = yes; then 5572 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5573 else 5574 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5575 fi 5576 ;; 5577esac 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587if test -n "$ac_tool_prefix"; then 5588 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5589set dummy ${ac_tool_prefix}objdump; ac_word=$2 5590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5591$as_echo_n "checking for $ac_word... " >&6; } 5592if ${ac_cv_prog_OBJDUMP+:} false; then : 5593 $as_echo_n "(cached) " >&6 5594else 5595 if test -n "$OBJDUMP"; then 5596 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5597else 5598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5599for as_dir in $PATH 5600do 5601 IFS=$as_save_IFS 5602 test -z "$as_dir" && as_dir=. 5603 for ac_exec_ext in '' $ac_executable_extensions; do 5604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5605 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5607 break 2 5608 fi 5609done 5610 done 5611IFS=$as_save_IFS 5612 5613fi 5614fi 5615OBJDUMP=$ac_cv_prog_OBJDUMP 5616if test -n "$OBJDUMP"; then 5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5618$as_echo "$OBJDUMP" >&6; } 5619else 5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5621$as_echo "no" >&6; } 5622fi 5623 5624 5625fi 5626if test -z "$ac_cv_prog_OBJDUMP"; then 5627 ac_ct_OBJDUMP=$OBJDUMP 5628 # Extract the first word of "objdump", so it can be a program name with args. 5629set dummy objdump; ac_word=$2 5630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5631$as_echo_n "checking for $ac_word... " >&6; } 5632if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5633 $as_echo_n "(cached) " >&6 5634else 5635 if test -n "$ac_ct_OBJDUMP"; then 5636 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5637else 5638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5639for as_dir in $PATH 5640do 5641 IFS=$as_save_IFS 5642 test -z "$as_dir" && as_dir=. 5643 for ac_exec_ext in '' $ac_executable_extensions; do 5644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5645 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5647 break 2 5648 fi 5649done 5650 done 5651IFS=$as_save_IFS 5652 5653fi 5654fi 5655ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5656if test -n "$ac_ct_OBJDUMP"; then 5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5658$as_echo "$ac_ct_OBJDUMP" >&6; } 5659else 5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5661$as_echo "no" >&6; } 5662fi 5663 5664 if test "x$ac_ct_OBJDUMP" = x; then 5665 OBJDUMP="false" 5666 else 5667 case $cross_compiling:$ac_tool_warned in 5668yes:) 5669{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5670$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5671ac_tool_warned=yes ;; 5672esac 5673 OBJDUMP=$ac_ct_OBJDUMP 5674 fi 5675else 5676 OBJDUMP="$ac_cv_prog_OBJDUMP" 5677fi 5678 5679test -z "$OBJDUMP" && OBJDUMP=objdump 5680 5681 5682 5683 5684 5685 5686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5687$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5688if ${lt_cv_deplibs_check_method+:} false; then : 5689 $as_echo_n "(cached) " >&6 5690else 5691 lt_cv_file_magic_cmd='$MAGIC_CMD' 5692lt_cv_file_magic_test_file= 5693lt_cv_deplibs_check_method='unknown' 5694# Need to set the preceding variable on all platforms that support 5695# interlibrary dependencies. 5696# 'none' -- dependencies not supported. 5697# `unknown' -- same as none, but documents that we really don't know. 5698# 'pass_all' -- all dependencies passed with no checks. 5699# 'test_compile' -- check by making test program. 5700# 'file_magic [[regex]]' -- check by looking for files in library path 5701# which responds to the $file_magic_cmd with a given extended regex. 5702# If you have `file' or equivalent on your system and you're not sure 5703# whether `pass_all' will *always* work, you probably want this one. 5704 5705case $host_os in 5706aix[4-9]*) 5707 lt_cv_deplibs_check_method=pass_all 5708 ;; 5709 5710beos*) 5711 lt_cv_deplibs_check_method=pass_all 5712 ;; 5713 5714bsdi[45]*) 5715 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5716 lt_cv_file_magic_cmd='/usr/bin/file -L' 5717 lt_cv_file_magic_test_file=/shlib/libc.so 5718 ;; 5719 5720cygwin*) 5721 # func_win32_libid is a shell function defined in ltmain.sh 5722 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5723 lt_cv_file_magic_cmd='func_win32_libid' 5724 ;; 5725 5726mingw* | pw32*) 5727 # Base MSYS/MinGW do not provide the 'file' command needed by 5728 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5729 # unless we find 'file', for example because we are cross-compiling. 5730 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5731 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5732 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5733 lt_cv_file_magic_cmd='func_win32_libid' 5734 else 5735 # Keep this pattern in sync with the one in func_win32_libid. 5736 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5737 lt_cv_file_magic_cmd='$OBJDUMP -f' 5738 fi 5739 ;; 5740 5741cegcc*) 5742 # use the weaker test based on 'objdump'. See mingw*. 5743 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5744 lt_cv_file_magic_cmd='$OBJDUMP -f' 5745 ;; 5746 5747darwin* | rhapsody*) 5748 lt_cv_deplibs_check_method=pass_all 5749 ;; 5750 5751freebsd* | dragonfly*) 5752 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5753 case $host_cpu in 5754 i*86 ) 5755 # Not sure whether the presence of OpenBSD here was a mistake. 5756 # Let's accept both of them until this is cleared up. 5757 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5758 lt_cv_file_magic_cmd=/usr/bin/file 5759 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5760 ;; 5761 esac 5762 else 5763 lt_cv_deplibs_check_method=pass_all 5764 fi 5765 ;; 5766 5767gnu*) 5768 lt_cv_deplibs_check_method=pass_all 5769 ;; 5770 5771haiku*) 5772 lt_cv_deplibs_check_method=pass_all 5773 ;; 5774 5775hpux10.20* | hpux11*) 5776 lt_cv_file_magic_cmd=/usr/bin/file 5777 case $host_cpu in 5778 ia64*) 5779 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5780 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5781 ;; 5782 hppa*64*) 5783 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]' 5784 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5785 ;; 5786 *) 5787 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5788 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5789 ;; 5790 esac 5791 ;; 5792 5793interix[3-9]*) 5794 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5795 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5796 ;; 5797 5798irix5* | irix6* | nonstopux*) 5799 case $LD in 5800 *-32|*"-32 ") libmagic=32-bit;; 5801 *-n32|*"-n32 ") libmagic=N32;; 5802 *-64|*"-64 ") libmagic=64-bit;; 5803 *) libmagic=never-match;; 5804 esac 5805 lt_cv_deplibs_check_method=pass_all 5806 ;; 5807 5808# This must be glibc/ELF. 5809linux* | k*bsd*-gnu | kopensolaris*-gnu) 5810 lt_cv_deplibs_check_method=pass_all 5811 ;; 5812 5813netbsd*) 5814 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5815 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5816 else 5817 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5818 fi 5819 ;; 5820 5821newos6*) 5822 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5823 lt_cv_file_magic_cmd=/usr/bin/file 5824 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5825 ;; 5826 5827*nto* | *qnx*) 5828 lt_cv_deplibs_check_method=pass_all 5829 ;; 5830 5831openbsd*) 5832 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5833 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5834 else 5835 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5836 fi 5837 ;; 5838 5839osf3* | osf4* | osf5*) 5840 lt_cv_deplibs_check_method=pass_all 5841 ;; 5842 5843rdos*) 5844 lt_cv_deplibs_check_method=pass_all 5845 ;; 5846 5847solaris*) 5848 lt_cv_deplibs_check_method=pass_all 5849 ;; 5850 5851sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5852 lt_cv_deplibs_check_method=pass_all 5853 ;; 5854 5855sysv4 | sysv4.3*) 5856 case $host_vendor in 5857 motorola) 5858 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]' 5859 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5860 ;; 5861 ncr) 5862 lt_cv_deplibs_check_method=pass_all 5863 ;; 5864 sequent) 5865 lt_cv_file_magic_cmd='/bin/file' 5866 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5867 ;; 5868 sni) 5869 lt_cv_file_magic_cmd='/bin/file' 5870 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5871 lt_cv_file_magic_test_file=/lib/libc.so 5872 ;; 5873 siemens) 5874 lt_cv_deplibs_check_method=pass_all 5875 ;; 5876 pc) 5877 lt_cv_deplibs_check_method=pass_all 5878 ;; 5879 esac 5880 ;; 5881 5882tpf*) 5883 lt_cv_deplibs_check_method=pass_all 5884 ;; 5885esac 5886 5887fi 5888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5889$as_echo "$lt_cv_deplibs_check_method" >&6; } 5890 5891file_magic_glob= 5892want_nocaseglob=no 5893if test "$build" = "$host"; then 5894 case $host_os in 5895 mingw* | pw32*) 5896 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5897 want_nocaseglob=yes 5898 else 5899 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5900 fi 5901 ;; 5902 esac 5903fi 5904 5905file_magic_cmd=$lt_cv_file_magic_cmd 5906deplibs_check_method=$lt_cv_deplibs_check_method 5907test -z "$deplibs_check_method" && deplibs_check_method=unknown 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930if test -n "$ac_tool_prefix"; then 5931 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5932set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5934$as_echo_n "checking for $ac_word... " >&6; } 5935if ${ac_cv_prog_DLLTOOL+:} false; then : 5936 $as_echo_n "(cached) " >&6 5937else 5938 if test -n "$DLLTOOL"; then 5939 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5940else 5941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5942for as_dir in $PATH 5943do 5944 IFS=$as_save_IFS 5945 test -z "$as_dir" && as_dir=. 5946 for ac_exec_ext in '' $ac_executable_extensions; do 5947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5948 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5950 break 2 5951 fi 5952done 5953 done 5954IFS=$as_save_IFS 5955 5956fi 5957fi 5958DLLTOOL=$ac_cv_prog_DLLTOOL 5959if test -n "$DLLTOOL"; then 5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5961$as_echo "$DLLTOOL" >&6; } 5962else 5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5964$as_echo "no" >&6; } 5965fi 5966 5967 5968fi 5969if test -z "$ac_cv_prog_DLLTOOL"; then 5970 ac_ct_DLLTOOL=$DLLTOOL 5971 # Extract the first word of "dlltool", so it can be a program name with args. 5972set dummy dlltool; ac_word=$2 5973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5974$as_echo_n "checking for $ac_word... " >&6; } 5975if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5976 $as_echo_n "(cached) " >&6 5977else 5978 if test -n "$ac_ct_DLLTOOL"; then 5979 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5980else 5981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5982for as_dir in $PATH 5983do 5984 IFS=$as_save_IFS 5985 test -z "$as_dir" && as_dir=. 5986 for ac_exec_ext in '' $ac_executable_extensions; do 5987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5988 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5990 break 2 5991 fi 5992done 5993 done 5994IFS=$as_save_IFS 5995 5996fi 5997fi 5998ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5999if test -n "$ac_ct_DLLTOOL"; then 6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6001$as_echo "$ac_ct_DLLTOOL" >&6; } 6002else 6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6004$as_echo "no" >&6; } 6005fi 6006 6007 if test "x$ac_ct_DLLTOOL" = x; then 6008 DLLTOOL="false" 6009 else 6010 case $cross_compiling:$ac_tool_warned in 6011yes:) 6012{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6013$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6014ac_tool_warned=yes ;; 6015esac 6016 DLLTOOL=$ac_ct_DLLTOOL 6017 fi 6018else 6019 DLLTOOL="$ac_cv_prog_DLLTOOL" 6020fi 6021 6022test -z "$DLLTOOL" && DLLTOOL=dlltool 6023 6024 6025 6026 6027 6028 6029 6030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6031$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6032if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6033 $as_echo_n "(cached) " >&6 6034else 6035 lt_cv_sharedlib_from_linklib_cmd='unknown' 6036 6037case $host_os in 6038cygwin* | mingw* | pw32* | cegcc*) 6039 # two different shell functions defined in ltmain.sh 6040 # decide which to use based on capabilities of $DLLTOOL 6041 case `$DLLTOOL --help 2>&1` in 6042 *--identify-strict*) 6043 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6044 ;; 6045 *) 6046 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6047 ;; 6048 esac 6049 ;; 6050*) 6051 # fallback: assume linklib IS sharedlib 6052 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6053 ;; 6054esac 6055 6056fi 6057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6058$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6059sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6060test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6061 6062 6063 6064 6065 6066 6067 6068 6069if test -n "$ac_tool_prefix"; then 6070 for ac_prog in ar 6071 do 6072 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6073set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6075$as_echo_n "checking for $ac_word... " >&6; } 6076if ${ac_cv_prog_AR+:} false; then : 6077 $as_echo_n "(cached) " >&6 6078else 6079 if test -n "$AR"; then 6080 ac_cv_prog_AR="$AR" # Let the user override the test. 6081else 6082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6083for as_dir in $PATH 6084do 6085 IFS=$as_save_IFS 6086 test -z "$as_dir" && as_dir=. 6087 for ac_exec_ext in '' $ac_executable_extensions; do 6088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6089 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6091 break 2 6092 fi 6093done 6094 done 6095IFS=$as_save_IFS 6096 6097fi 6098fi 6099AR=$ac_cv_prog_AR 6100if test -n "$AR"; then 6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6102$as_echo "$AR" >&6; } 6103else 6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6105$as_echo "no" >&6; } 6106fi 6107 6108 6109 test -n "$AR" && break 6110 done 6111fi 6112if test -z "$AR"; then 6113 ac_ct_AR=$AR 6114 for ac_prog in ar 6115do 6116 # Extract the first word of "$ac_prog", so it can be a program name with args. 6117set dummy $ac_prog; ac_word=$2 6118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6119$as_echo_n "checking for $ac_word... " >&6; } 6120if ${ac_cv_prog_ac_ct_AR+:} false; then : 6121 $as_echo_n "(cached) " >&6 6122else 6123 if test -n "$ac_ct_AR"; then 6124 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6125else 6126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6127for as_dir in $PATH 6128do 6129 IFS=$as_save_IFS 6130 test -z "$as_dir" && as_dir=. 6131 for ac_exec_ext in '' $ac_executable_extensions; do 6132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6133 ac_cv_prog_ac_ct_AR="$ac_prog" 6134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6135 break 2 6136 fi 6137done 6138 done 6139IFS=$as_save_IFS 6140 6141fi 6142fi 6143ac_ct_AR=$ac_cv_prog_ac_ct_AR 6144if test -n "$ac_ct_AR"; then 6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6146$as_echo "$ac_ct_AR" >&6; } 6147else 6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6149$as_echo "no" >&6; } 6150fi 6151 6152 6153 test -n "$ac_ct_AR" && break 6154done 6155 6156 if test "x$ac_ct_AR" = x; then 6157 AR="false" 6158 else 6159 case $cross_compiling:$ac_tool_warned in 6160yes:) 6161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6163ac_tool_warned=yes ;; 6164esac 6165 AR=$ac_ct_AR 6166 fi 6167fi 6168 6169: ${AR=ar} 6170: ${AR_FLAGS=cru} 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6183$as_echo_n "checking for archiver @FILE support... " >&6; } 6184if ${lt_cv_ar_at_file+:} false; then : 6185 $as_echo_n "(cached) " >&6 6186else 6187 lt_cv_ar_at_file=no 6188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6189/* end confdefs.h. */ 6190 6191int 6192main () 6193{ 6194 6195 ; 6196 return 0; 6197} 6198_ACEOF 6199if ac_fn_c_try_compile "$LINENO"; then : 6200 echo conftest.$ac_objext > conftest.lst 6201 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 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" -eq 0; then 6208 # Ensure the archiver fails upon bogus file names. 6209 rm -f conftest.$ac_objext libconftest.a 6210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6211 (eval $lt_ar_try) 2>&5 6212 ac_status=$? 6213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6214 test $ac_status = 0; } 6215 if test "$ac_status" -ne 0; then 6216 lt_cv_ar_at_file=@ 6217 fi 6218 fi 6219 rm -f conftest.* libconftest.a 6220 6221fi 6222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6223 6224fi 6225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6226$as_echo "$lt_cv_ar_at_file" >&6; } 6227 6228if test "x$lt_cv_ar_at_file" = xno; then 6229 archiver_list_spec= 6230else 6231 archiver_list_spec=$lt_cv_ar_at_file 6232fi 6233 6234 6235 6236 6237 6238 6239 6240if test -n "$ac_tool_prefix"; then 6241 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6242set dummy ${ac_tool_prefix}strip; ac_word=$2 6243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6244$as_echo_n "checking for $ac_word... " >&6; } 6245if ${ac_cv_prog_STRIP+:} false; then : 6246 $as_echo_n "(cached) " >&6 6247else 6248 if test -n "$STRIP"; then 6249 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6250else 6251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6252for as_dir in $PATH 6253do 6254 IFS=$as_save_IFS 6255 test -z "$as_dir" && as_dir=. 6256 for ac_exec_ext in '' $ac_executable_extensions; do 6257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6258 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6260 break 2 6261 fi 6262done 6263 done 6264IFS=$as_save_IFS 6265 6266fi 6267fi 6268STRIP=$ac_cv_prog_STRIP 6269if test -n "$STRIP"; then 6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6271$as_echo "$STRIP" >&6; } 6272else 6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6274$as_echo "no" >&6; } 6275fi 6276 6277 6278fi 6279if test -z "$ac_cv_prog_STRIP"; then 6280 ac_ct_STRIP=$STRIP 6281 # Extract the first word of "strip", so it can be a program name with args. 6282set dummy strip; ac_word=$2 6283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6284$as_echo_n "checking for $ac_word... " >&6; } 6285if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6286 $as_echo_n "(cached) " >&6 6287else 6288 if test -n "$ac_ct_STRIP"; then 6289 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6290else 6291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6292for as_dir in $PATH 6293do 6294 IFS=$as_save_IFS 6295 test -z "$as_dir" && as_dir=. 6296 for ac_exec_ext in '' $ac_executable_extensions; do 6297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6298 ac_cv_prog_ac_ct_STRIP="strip" 6299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6300 break 2 6301 fi 6302done 6303 done 6304IFS=$as_save_IFS 6305 6306fi 6307fi 6308ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6309if test -n "$ac_ct_STRIP"; then 6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6311$as_echo "$ac_ct_STRIP" >&6; } 6312else 6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6314$as_echo "no" >&6; } 6315fi 6316 6317 if test "x$ac_ct_STRIP" = x; then 6318 STRIP=":" 6319 else 6320 case $cross_compiling:$ac_tool_warned in 6321yes:) 6322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6324ac_tool_warned=yes ;; 6325esac 6326 STRIP=$ac_ct_STRIP 6327 fi 6328else 6329 STRIP="$ac_cv_prog_STRIP" 6330fi 6331 6332test -z "$STRIP" && STRIP=: 6333 6334 6335 6336 6337 6338 6339if test -n "$ac_tool_prefix"; then 6340 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6341set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6343$as_echo_n "checking for $ac_word... " >&6; } 6344if ${ac_cv_prog_RANLIB+:} false; then : 6345 $as_echo_n "(cached) " >&6 6346else 6347 if test -n "$RANLIB"; then 6348 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6349else 6350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6351for as_dir in $PATH 6352do 6353 IFS=$as_save_IFS 6354 test -z "$as_dir" && as_dir=. 6355 for ac_exec_ext in '' $ac_executable_extensions; do 6356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6357 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6359 break 2 6360 fi 6361done 6362 done 6363IFS=$as_save_IFS 6364 6365fi 6366fi 6367RANLIB=$ac_cv_prog_RANLIB 6368if test -n "$RANLIB"; then 6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6370$as_echo "$RANLIB" >&6; } 6371else 6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6373$as_echo "no" >&6; } 6374fi 6375 6376 6377fi 6378if test -z "$ac_cv_prog_RANLIB"; then 6379 ac_ct_RANLIB=$RANLIB 6380 # Extract the first word of "ranlib", so it can be a program name with args. 6381set dummy ranlib; ac_word=$2 6382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6383$as_echo_n "checking for $ac_word... " >&6; } 6384if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6385 $as_echo_n "(cached) " >&6 6386else 6387 if test -n "$ac_ct_RANLIB"; then 6388 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6389else 6390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6391for as_dir in $PATH 6392do 6393 IFS=$as_save_IFS 6394 test -z "$as_dir" && as_dir=. 6395 for ac_exec_ext in '' $ac_executable_extensions; do 6396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6397 ac_cv_prog_ac_ct_RANLIB="ranlib" 6398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6399 break 2 6400 fi 6401done 6402 done 6403IFS=$as_save_IFS 6404 6405fi 6406fi 6407ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6408if test -n "$ac_ct_RANLIB"; then 6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6410$as_echo "$ac_ct_RANLIB" >&6; } 6411else 6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6413$as_echo "no" >&6; } 6414fi 6415 6416 if test "x$ac_ct_RANLIB" = x; then 6417 RANLIB=":" 6418 else 6419 case $cross_compiling:$ac_tool_warned in 6420yes:) 6421{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6422$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6423ac_tool_warned=yes ;; 6424esac 6425 RANLIB=$ac_ct_RANLIB 6426 fi 6427else 6428 RANLIB="$ac_cv_prog_RANLIB" 6429fi 6430 6431test -z "$RANLIB" && RANLIB=: 6432 6433 6434 6435 6436 6437 6438# Determine commands to create old-style static archives. 6439old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6440old_postinstall_cmds='chmod 644 $oldlib' 6441old_postuninstall_cmds= 6442 6443if test -n "$RANLIB"; then 6444 case $host_os in 6445 openbsd*) 6446 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6447 ;; 6448 *) 6449 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6450 ;; 6451 esac 6452 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6453fi 6454 6455case $host_os in 6456 darwin*) 6457 lock_old_archive_extraction=yes ;; 6458 *) 6459 lock_old_archive_extraction=no ;; 6460esac 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 6493 6494 6495 6496 6497 6498 6499 6500# If no C compiler was specified, use CC. 6501LTCC=${LTCC-"$CC"} 6502 6503# If no C compiler flags were specified, use CFLAGS. 6504LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6505 6506# Allow CC to be a program name with arguments. 6507compiler=$CC 6508 6509 6510# Check for command to grab the raw symbol name followed by C symbol from nm. 6511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6512$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6513if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6514 $as_echo_n "(cached) " >&6 6515else 6516 6517# These are sane defaults that work on at least a few old systems. 6518# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6519 6520# Character class describing NM global symbol codes. 6521symcode='[BCDEGRST]' 6522 6523# Regexp to match symbols that can be accessed directly from C. 6524sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6525 6526# Define system-specific variables. 6527case $host_os in 6528aix*) 6529 symcode='[BCDT]' 6530 ;; 6531cygwin* | mingw* | pw32* | cegcc*) 6532 symcode='[ABCDGISTW]' 6533 ;; 6534hpux*) 6535 if test "$host_cpu" = ia64; then 6536 symcode='[ABCDEGRST]' 6537 fi 6538 ;; 6539irix* | nonstopux*) 6540 symcode='[BCDEGRST]' 6541 ;; 6542osf*) 6543 symcode='[BCDEGQRST]' 6544 ;; 6545solaris*) 6546 symcode='[BDRT]' 6547 ;; 6548sco3.2v5*) 6549 symcode='[DT]' 6550 ;; 6551sysv4.2uw2*) 6552 symcode='[DT]' 6553 ;; 6554sysv5* | sco5v6* | unixware* | OpenUNIX*) 6555 symcode='[ABDT]' 6556 ;; 6557sysv4) 6558 symcode='[DFNSTU]' 6559 ;; 6560esac 6561 6562# If we're using GNU nm, then use its standard symbol codes. 6563case `$NM -V 2>&1` in 6564*GNU* | *'with BFD'*) 6565 symcode='[ABCDGIRSTW]' ;; 6566esac 6567 6568# Transform an extracted symbol line into a proper C declaration. 6569# Some systems (esp. on ia64) link data and code symbols differently, 6570# so use this general approach. 6571lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6572 6573# Transform an extracted symbol line into symbol name and symbol address 6574lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6575lt_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'" 6576 6577# Handle CRLF in mingw tool chain 6578opt_cr= 6579case $build_os in 6580mingw*) 6581 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6582 ;; 6583esac 6584 6585# Try without a prefix underscore, then with it. 6586for ac_symprfx in "" "_"; do 6587 6588 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6589 symxfrm="\\1 $ac_symprfx\\2 \\2" 6590 6591 # Write the raw and C identifiers. 6592 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6593 # Fake it for dumpbin and say T for any non-static function 6594 # and D for any global variable. 6595 # Also find C++ and __fastcall symbols from MSVC++, 6596 # which start with @ or ?. 6597 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6598" {last_section=section; section=\$ 3};"\ 6599" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6600" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6601" \$ 0!~/External *\|/{next};"\ 6602" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6603" {if(hide[section]) next};"\ 6604" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6605" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6606" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6607" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6608" ' prfx=^$ac_symprfx" 6609 else 6610 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6611 fi 6612 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6613 6614 # Check to see that the pipe works correctly. 6615 pipe_works=no 6616 6617 rm -f conftest* 6618 cat > conftest.$ac_ext <<_LT_EOF 6619#ifdef __cplusplus 6620extern "C" { 6621#endif 6622char nm_test_var; 6623void nm_test_func(void); 6624void nm_test_func(void){} 6625#ifdef __cplusplus 6626} 6627#endif 6628int main(){nm_test_var='a';nm_test_func();return(0);} 6629_LT_EOF 6630 6631 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6632 (eval $ac_compile) 2>&5 6633 ac_status=$? 6634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6635 test $ac_status = 0; }; then 6636 # Now try to grab the symbols. 6637 nlist=conftest.nm 6638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6639 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6640 ac_status=$? 6641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6642 test $ac_status = 0; } && test -s "$nlist"; then 6643 # Try sorting and uniquifying the output. 6644 if sort "$nlist" | uniq > "$nlist"T; then 6645 mv -f "$nlist"T "$nlist" 6646 else 6647 rm -f "$nlist"T 6648 fi 6649 6650 # Make sure that we snagged all the symbols we need. 6651 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6652 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6653 cat <<_LT_EOF > conftest.$ac_ext 6654/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6655#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6656/* DATA imports from DLLs on WIN32 con't be const, because runtime 6657 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6658# define LT_DLSYM_CONST 6659#elif defined(__osf__) 6660/* This system does not cope well with relocations in const data. */ 6661# define LT_DLSYM_CONST 6662#else 6663# define LT_DLSYM_CONST const 6664#endif 6665 6666#ifdef __cplusplus 6667extern "C" { 6668#endif 6669 6670_LT_EOF 6671 # Now generate the symbol file. 6672 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6673 6674 cat <<_LT_EOF >> conftest.$ac_ext 6675 6676/* The mapping between symbol names and symbols. */ 6677LT_DLSYM_CONST struct { 6678 const char *name; 6679 void *address; 6680} 6681lt__PROGRAM__LTX_preloaded_symbols[] = 6682{ 6683 { "@PROGRAM@", (void *) 0 }, 6684_LT_EOF 6685 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6686 cat <<\_LT_EOF >> conftest.$ac_ext 6687 {0, (void *) 0} 6688}; 6689 6690/* This works around a problem in FreeBSD linker */ 6691#ifdef FREEBSD_WORKAROUND 6692static const void *lt_preloaded_setup() { 6693 return lt__PROGRAM__LTX_preloaded_symbols; 6694} 6695#endif 6696 6697#ifdef __cplusplus 6698} 6699#endif 6700_LT_EOF 6701 # Now try linking the two files. 6702 mv conftest.$ac_objext conftstm.$ac_objext 6703 lt_globsym_save_LIBS=$LIBS 6704 lt_globsym_save_CFLAGS=$CFLAGS 6705 LIBS="conftstm.$ac_objext" 6706 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6708 (eval $ac_link) 2>&5 6709 ac_status=$? 6710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6711 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6712 pipe_works=yes 6713 fi 6714 LIBS=$lt_globsym_save_LIBS 6715 CFLAGS=$lt_globsym_save_CFLAGS 6716 else 6717 echo "cannot find nm_test_func in $nlist" >&5 6718 fi 6719 else 6720 echo "cannot find nm_test_var in $nlist" >&5 6721 fi 6722 else 6723 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6724 fi 6725 else 6726 echo "$progname: failed program was:" >&5 6727 cat conftest.$ac_ext >&5 6728 fi 6729 rm -rf conftest* conftst* 6730 6731 # Do not use the global_symbol_pipe unless it works. 6732 if test "$pipe_works" = yes; then 6733 break 6734 else 6735 lt_cv_sys_global_symbol_pipe= 6736 fi 6737done 6738 6739fi 6740 6741if test -z "$lt_cv_sys_global_symbol_pipe"; then 6742 lt_cv_sys_global_symbol_to_cdecl= 6743fi 6744if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6746$as_echo "failed" >&6; } 6747else 6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6749$as_echo "ok" >&6; } 6750fi 6751 6752# Response file support. 6753if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6754 nm_file_list_spec='@' 6755elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6756 nm_file_list_spec='@' 6757fi 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6786$as_echo_n "checking for sysroot... " >&6; } 6787 6788# Check whether --with-sysroot was given. 6789if test "${with_sysroot+set}" = set; then : 6790 withval=$with_sysroot; 6791else 6792 with_sysroot=no 6793fi 6794 6795 6796lt_sysroot= 6797case ${with_sysroot} in #( 6798 yes) 6799 if test "$GCC" = yes; then 6800 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6801 fi 6802 ;; #( 6803 /*) 6804 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6805 ;; #( 6806 no|'') 6807 ;; #( 6808 *) 6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6810$as_echo "${with_sysroot}" >&6; } 6811 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6812 ;; 6813esac 6814 6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6816$as_echo "${lt_sysroot:-no}" >&6; } 6817 6818 6819 6820 6821 6822# Check whether --enable-libtool-lock was given. 6823if test "${enable_libtool_lock+set}" = set; then : 6824 enableval=$enable_libtool_lock; 6825fi 6826 6827test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6828 6829# Some flags need to be propagated to the compiler or linker for good 6830# libtool support. 6831case $host in 6832ia64-*-hpux*) 6833 # Find out which ABI we are using. 6834 echo 'int i;' > conftest.$ac_ext 6835 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6836 (eval $ac_compile) 2>&5 6837 ac_status=$? 6838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6839 test $ac_status = 0; }; then 6840 case `/usr/bin/file conftest.$ac_objext` in 6841 *ELF-32*) 6842 HPUX_IA64_MODE="32" 6843 ;; 6844 *ELF-64*) 6845 HPUX_IA64_MODE="64" 6846 ;; 6847 esac 6848 fi 6849 rm -rf conftest* 6850 ;; 6851*-*-irix6*) 6852 # Find out which ABI we are using. 6853 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6854 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6855 (eval $ac_compile) 2>&5 6856 ac_status=$? 6857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6858 test $ac_status = 0; }; then 6859 if test "$lt_cv_prog_gnu_ld" = yes; then 6860 case `/usr/bin/file conftest.$ac_objext` in 6861 *32-bit*) 6862 LD="${LD-ld} -melf32bsmip" 6863 ;; 6864 *N32*) 6865 LD="${LD-ld} -melf32bmipn32" 6866 ;; 6867 *64-bit*) 6868 LD="${LD-ld} -melf64bmip" 6869 ;; 6870 esac 6871 else 6872 case `/usr/bin/file conftest.$ac_objext` in 6873 *32-bit*) 6874 LD="${LD-ld} -32" 6875 ;; 6876 *N32*) 6877 LD="${LD-ld} -n32" 6878 ;; 6879 *64-bit*) 6880 LD="${LD-ld} -64" 6881 ;; 6882 esac 6883 fi 6884 fi 6885 rm -rf conftest* 6886 ;; 6887 6888x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6889s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6890 # Find out which ABI we are using. 6891 echo 'int i;' > conftest.$ac_ext 6892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6893 (eval $ac_compile) 2>&5 6894 ac_status=$? 6895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6896 test $ac_status = 0; }; then 6897 case `/usr/bin/file conftest.o` in 6898 *32-bit*) 6899 case $host in 6900 x86_64-*kfreebsd*-gnu) 6901 LD="${LD-ld} -m elf_i386_fbsd" 6902 ;; 6903 x86_64-*linux*) 6904 LD="${LD-ld} -m elf_i386" 6905 ;; 6906 ppc64-*linux*|powerpc64-*linux*) 6907 LD="${LD-ld} -m elf32ppclinux" 6908 ;; 6909 s390x-*linux*) 6910 LD="${LD-ld} -m elf_s390" 6911 ;; 6912 sparc64-*linux*) 6913 LD="${LD-ld} -m elf32_sparc" 6914 ;; 6915 esac 6916 ;; 6917 *64-bit*) 6918 case $host in 6919 x86_64-*kfreebsd*-gnu) 6920 LD="${LD-ld} -m elf_x86_64_fbsd" 6921 ;; 6922 x86_64-*linux*) 6923 LD="${LD-ld} -m elf_x86_64" 6924 ;; 6925 ppc*-*linux*|powerpc*-*linux*) 6926 LD="${LD-ld} -m elf64ppc" 6927 ;; 6928 s390*-*linux*|s390*-*tpf*) 6929 LD="${LD-ld} -m elf64_s390" 6930 ;; 6931 sparc*-*linux*) 6932 LD="${LD-ld} -m elf64_sparc" 6933 ;; 6934 esac 6935 ;; 6936 esac 6937 fi 6938 rm -rf conftest* 6939 ;; 6940 6941*-*-sco3.2v5*) 6942 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6943 SAVE_CFLAGS="$CFLAGS" 6944 CFLAGS="$CFLAGS -belf" 6945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6946$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6947if ${lt_cv_cc_needs_belf+:} false; then : 6948 $as_echo_n "(cached) " >&6 6949else 6950 ac_ext=c 6951ac_cpp='$CPP $CPPFLAGS' 6952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6954ac_compiler_gnu=$ac_cv_c_compiler_gnu 6955 6956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6957/* end confdefs.h. */ 6958 6959int 6960main () 6961{ 6962 6963 ; 6964 return 0; 6965} 6966_ACEOF 6967if ac_fn_c_try_link "$LINENO"; then : 6968 lt_cv_cc_needs_belf=yes 6969else 6970 lt_cv_cc_needs_belf=no 6971fi 6972rm -f core conftest.err conftest.$ac_objext \ 6973 conftest$ac_exeext conftest.$ac_ext 6974 ac_ext=c 6975ac_cpp='$CPP $CPPFLAGS' 6976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6978ac_compiler_gnu=$ac_cv_c_compiler_gnu 6979 6980fi 6981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6982$as_echo "$lt_cv_cc_needs_belf" >&6; } 6983 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6984 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6985 CFLAGS="$SAVE_CFLAGS" 6986 fi 6987 ;; 6988*-*solaris*) 6989 # Find out which ABI we are using. 6990 echo 'int i;' > conftest.$ac_ext 6991 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6992 (eval $ac_compile) 2>&5 6993 ac_status=$? 6994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6995 test $ac_status = 0; }; then 6996 case `/usr/bin/file conftest.o` in 6997 *64-bit*) 6998 case $lt_cv_prog_gnu_ld in 6999 yes*) 7000 case $host in 7001 i?86-*-solaris*) 7002 LD="${LD-ld} -m elf_x86_64" 7003 ;; 7004 sparc*-*-solaris*) 7005 LD="${LD-ld} -m elf64_sparc" 7006 ;; 7007 esac 7008 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7009 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7010 LD="${LD-ld}_sol2" 7011 fi 7012 ;; 7013 *) 7014 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7015 LD="${LD-ld} -64" 7016 fi 7017 ;; 7018 esac 7019 ;; 7020 esac 7021 fi 7022 rm -rf conftest* 7023 ;; 7024esac 7025 7026need_locks="$enable_libtool_lock" 7027 7028if test -n "$ac_tool_prefix"; then 7029 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7030set dummy ${ac_tool_prefix}mt; ac_word=$2 7031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7032$as_echo_n "checking for $ac_word... " >&6; } 7033if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7034 $as_echo_n "(cached) " >&6 7035else 7036 if test -n "$MANIFEST_TOOL"; then 7037 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7038else 7039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7040for as_dir in $PATH 7041do 7042 IFS=$as_save_IFS 7043 test -z "$as_dir" && as_dir=. 7044 for ac_exec_ext in '' $ac_executable_extensions; do 7045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7046 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7048 break 2 7049 fi 7050done 7051 done 7052IFS=$as_save_IFS 7053 7054fi 7055fi 7056MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7057if test -n "$MANIFEST_TOOL"; then 7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7059$as_echo "$MANIFEST_TOOL" >&6; } 7060else 7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7062$as_echo "no" >&6; } 7063fi 7064 7065 7066fi 7067if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7068 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7069 # Extract the first word of "mt", so it can be a program name with args. 7070set dummy mt; ac_word=$2 7071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7072$as_echo_n "checking for $ac_word... " >&6; } 7073if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7074 $as_echo_n "(cached) " >&6 7075else 7076 if test -n "$ac_ct_MANIFEST_TOOL"; then 7077 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7078else 7079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7080for as_dir in $PATH 7081do 7082 IFS=$as_save_IFS 7083 test -z "$as_dir" && as_dir=. 7084 for ac_exec_ext in '' $ac_executable_extensions; do 7085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7086 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7088 break 2 7089 fi 7090done 7091 done 7092IFS=$as_save_IFS 7093 7094fi 7095fi 7096ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7097if test -n "$ac_ct_MANIFEST_TOOL"; then 7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7099$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7100else 7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7102$as_echo "no" >&6; } 7103fi 7104 7105 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7106 MANIFEST_TOOL=":" 7107 else 7108 case $cross_compiling:$ac_tool_warned in 7109yes:) 7110{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7111$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7112ac_tool_warned=yes ;; 7113esac 7114 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7115 fi 7116else 7117 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7118fi 7119 7120test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7122$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7123if ${lt_cv_path_mainfest_tool+:} false; then : 7124 $as_echo_n "(cached) " >&6 7125else 7126 lt_cv_path_mainfest_tool=no 7127 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7128 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7129 cat conftest.err >&5 7130 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7131 lt_cv_path_mainfest_tool=yes 7132 fi 7133 rm -f conftest* 7134fi 7135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7136$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7137if test "x$lt_cv_path_mainfest_tool" != xyes; then 7138 MANIFEST_TOOL=: 7139fi 7140 7141 7142 7143 7144 7145 7146 case $host_os in 7147 rhapsody* | darwin*) 7148 if test -n "$ac_tool_prefix"; then 7149 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7150set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7152$as_echo_n "checking for $ac_word... " >&6; } 7153if ${ac_cv_prog_DSYMUTIL+:} false; then : 7154 $as_echo_n "(cached) " >&6 7155else 7156 if test -n "$DSYMUTIL"; then 7157 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7158else 7159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7160for as_dir in $PATH 7161do 7162 IFS=$as_save_IFS 7163 test -z "$as_dir" && as_dir=. 7164 for ac_exec_ext in '' $ac_executable_extensions; do 7165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7166 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7168 break 2 7169 fi 7170done 7171 done 7172IFS=$as_save_IFS 7173 7174fi 7175fi 7176DSYMUTIL=$ac_cv_prog_DSYMUTIL 7177if test -n "$DSYMUTIL"; then 7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7179$as_echo "$DSYMUTIL" >&6; } 7180else 7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7182$as_echo "no" >&6; } 7183fi 7184 7185 7186fi 7187if test -z "$ac_cv_prog_DSYMUTIL"; then 7188 ac_ct_DSYMUTIL=$DSYMUTIL 7189 # Extract the first word of "dsymutil", so it can be a program name with args. 7190set dummy dsymutil; ac_word=$2 7191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7192$as_echo_n "checking for $ac_word... " >&6; } 7193if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7194 $as_echo_n "(cached) " >&6 7195else 7196 if test -n "$ac_ct_DSYMUTIL"; then 7197 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7198else 7199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7200for as_dir in $PATH 7201do 7202 IFS=$as_save_IFS 7203 test -z "$as_dir" && as_dir=. 7204 for ac_exec_ext in '' $ac_executable_extensions; do 7205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7206 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7208 break 2 7209 fi 7210done 7211 done 7212IFS=$as_save_IFS 7213 7214fi 7215fi 7216ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7217if test -n "$ac_ct_DSYMUTIL"; then 7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7219$as_echo "$ac_ct_DSYMUTIL" >&6; } 7220else 7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7222$as_echo "no" >&6; } 7223fi 7224 7225 if test "x$ac_ct_DSYMUTIL" = x; then 7226 DSYMUTIL=":" 7227 else 7228 case $cross_compiling:$ac_tool_warned in 7229yes:) 7230{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7231$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7232ac_tool_warned=yes ;; 7233esac 7234 DSYMUTIL=$ac_ct_DSYMUTIL 7235 fi 7236else 7237 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7238fi 7239 7240 if test -n "$ac_tool_prefix"; then 7241 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7242set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7244$as_echo_n "checking for $ac_word... " >&6; } 7245if ${ac_cv_prog_NMEDIT+:} false; then : 7246 $as_echo_n "(cached) " >&6 7247else 7248 if test -n "$NMEDIT"; then 7249 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7250else 7251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7252for as_dir in $PATH 7253do 7254 IFS=$as_save_IFS 7255 test -z "$as_dir" && as_dir=. 7256 for ac_exec_ext in '' $ac_executable_extensions; do 7257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7258 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7260 break 2 7261 fi 7262done 7263 done 7264IFS=$as_save_IFS 7265 7266fi 7267fi 7268NMEDIT=$ac_cv_prog_NMEDIT 7269if test -n "$NMEDIT"; then 7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7271$as_echo "$NMEDIT" >&6; } 7272else 7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7274$as_echo "no" >&6; } 7275fi 7276 7277 7278fi 7279if test -z "$ac_cv_prog_NMEDIT"; then 7280 ac_ct_NMEDIT=$NMEDIT 7281 # Extract the first word of "nmedit", so it can be a program name with args. 7282set dummy nmedit; ac_word=$2 7283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7284$as_echo_n "checking for $ac_word... " >&6; } 7285if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7286 $as_echo_n "(cached) " >&6 7287else 7288 if test -n "$ac_ct_NMEDIT"; then 7289 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7290else 7291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7292for as_dir in $PATH 7293do 7294 IFS=$as_save_IFS 7295 test -z "$as_dir" && as_dir=. 7296 for ac_exec_ext in '' $ac_executable_extensions; do 7297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7298 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7300 break 2 7301 fi 7302done 7303 done 7304IFS=$as_save_IFS 7305 7306fi 7307fi 7308ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7309if test -n "$ac_ct_NMEDIT"; then 7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7311$as_echo "$ac_ct_NMEDIT" >&6; } 7312else 7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7314$as_echo "no" >&6; } 7315fi 7316 7317 if test "x$ac_ct_NMEDIT" = x; then 7318 NMEDIT=":" 7319 else 7320 case $cross_compiling:$ac_tool_warned in 7321yes:) 7322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7324ac_tool_warned=yes ;; 7325esac 7326 NMEDIT=$ac_ct_NMEDIT 7327 fi 7328else 7329 NMEDIT="$ac_cv_prog_NMEDIT" 7330fi 7331 7332 if test -n "$ac_tool_prefix"; then 7333 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7334set dummy ${ac_tool_prefix}lipo; ac_word=$2 7335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7336$as_echo_n "checking for $ac_word... " >&6; } 7337if ${ac_cv_prog_LIPO+:} false; then : 7338 $as_echo_n "(cached) " >&6 7339else 7340 if test -n "$LIPO"; then 7341 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7342else 7343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7344for as_dir in $PATH 7345do 7346 IFS=$as_save_IFS 7347 test -z "$as_dir" && as_dir=. 7348 for ac_exec_ext in '' $ac_executable_extensions; do 7349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7350 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7352 break 2 7353 fi 7354done 7355 done 7356IFS=$as_save_IFS 7357 7358fi 7359fi 7360LIPO=$ac_cv_prog_LIPO 7361if test -n "$LIPO"; then 7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7363$as_echo "$LIPO" >&6; } 7364else 7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7366$as_echo "no" >&6; } 7367fi 7368 7369 7370fi 7371if test -z "$ac_cv_prog_LIPO"; then 7372 ac_ct_LIPO=$LIPO 7373 # Extract the first word of "lipo", so it can be a program name with args. 7374set dummy lipo; ac_word=$2 7375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7376$as_echo_n "checking for $ac_word... " >&6; } 7377if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7378 $as_echo_n "(cached) " >&6 7379else 7380 if test -n "$ac_ct_LIPO"; then 7381 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7382else 7383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7384for as_dir in $PATH 7385do 7386 IFS=$as_save_IFS 7387 test -z "$as_dir" && as_dir=. 7388 for ac_exec_ext in '' $ac_executable_extensions; do 7389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7390 ac_cv_prog_ac_ct_LIPO="lipo" 7391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7392 break 2 7393 fi 7394done 7395 done 7396IFS=$as_save_IFS 7397 7398fi 7399fi 7400ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7401if test -n "$ac_ct_LIPO"; then 7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7403$as_echo "$ac_ct_LIPO" >&6; } 7404else 7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7406$as_echo "no" >&6; } 7407fi 7408 7409 if test "x$ac_ct_LIPO" = x; then 7410 LIPO=":" 7411 else 7412 case $cross_compiling:$ac_tool_warned in 7413yes:) 7414{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7415$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7416ac_tool_warned=yes ;; 7417esac 7418 LIPO=$ac_ct_LIPO 7419 fi 7420else 7421 LIPO="$ac_cv_prog_LIPO" 7422fi 7423 7424 if test -n "$ac_tool_prefix"; then 7425 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7426set dummy ${ac_tool_prefix}otool; ac_word=$2 7427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7428$as_echo_n "checking for $ac_word... " >&6; } 7429if ${ac_cv_prog_OTOOL+:} false; then : 7430 $as_echo_n "(cached) " >&6 7431else 7432 if test -n "$OTOOL"; then 7433 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7434else 7435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7436for as_dir in $PATH 7437do 7438 IFS=$as_save_IFS 7439 test -z "$as_dir" && as_dir=. 7440 for ac_exec_ext in '' $ac_executable_extensions; do 7441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7442 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7444 break 2 7445 fi 7446done 7447 done 7448IFS=$as_save_IFS 7449 7450fi 7451fi 7452OTOOL=$ac_cv_prog_OTOOL 7453if test -n "$OTOOL"; then 7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7455$as_echo "$OTOOL" >&6; } 7456else 7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7458$as_echo "no" >&6; } 7459fi 7460 7461 7462fi 7463if test -z "$ac_cv_prog_OTOOL"; then 7464 ac_ct_OTOOL=$OTOOL 7465 # Extract the first word of "otool", so it can be a program name with args. 7466set dummy otool; ac_word=$2 7467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7468$as_echo_n "checking for $ac_word... " >&6; } 7469if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7470 $as_echo_n "(cached) " >&6 7471else 7472 if test -n "$ac_ct_OTOOL"; then 7473 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7474else 7475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7476for as_dir in $PATH 7477do 7478 IFS=$as_save_IFS 7479 test -z "$as_dir" && as_dir=. 7480 for ac_exec_ext in '' $ac_executable_extensions; do 7481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7482 ac_cv_prog_ac_ct_OTOOL="otool" 7483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7484 break 2 7485 fi 7486done 7487 done 7488IFS=$as_save_IFS 7489 7490fi 7491fi 7492ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7493if test -n "$ac_ct_OTOOL"; then 7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7495$as_echo "$ac_ct_OTOOL" >&6; } 7496else 7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7498$as_echo "no" >&6; } 7499fi 7500 7501 if test "x$ac_ct_OTOOL" = x; then 7502 OTOOL=":" 7503 else 7504 case $cross_compiling:$ac_tool_warned in 7505yes:) 7506{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7507$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7508ac_tool_warned=yes ;; 7509esac 7510 OTOOL=$ac_ct_OTOOL 7511 fi 7512else 7513 OTOOL="$ac_cv_prog_OTOOL" 7514fi 7515 7516 if test -n "$ac_tool_prefix"; then 7517 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7518set dummy ${ac_tool_prefix}otool64; ac_word=$2 7519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7520$as_echo_n "checking for $ac_word... " >&6; } 7521if ${ac_cv_prog_OTOOL64+:} false; then : 7522 $as_echo_n "(cached) " >&6 7523else 7524 if test -n "$OTOOL64"; then 7525 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7526else 7527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7528for as_dir in $PATH 7529do 7530 IFS=$as_save_IFS 7531 test -z "$as_dir" && as_dir=. 7532 for ac_exec_ext in '' $ac_executable_extensions; do 7533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7534 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7536 break 2 7537 fi 7538done 7539 done 7540IFS=$as_save_IFS 7541 7542fi 7543fi 7544OTOOL64=$ac_cv_prog_OTOOL64 7545if test -n "$OTOOL64"; then 7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7547$as_echo "$OTOOL64" >&6; } 7548else 7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7550$as_echo "no" >&6; } 7551fi 7552 7553 7554fi 7555if test -z "$ac_cv_prog_OTOOL64"; then 7556 ac_ct_OTOOL64=$OTOOL64 7557 # Extract the first word of "otool64", so it can be a program name with args. 7558set dummy otool64; ac_word=$2 7559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7560$as_echo_n "checking for $ac_word... " >&6; } 7561if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7562 $as_echo_n "(cached) " >&6 7563else 7564 if test -n "$ac_ct_OTOOL64"; then 7565 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7566else 7567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7568for as_dir in $PATH 7569do 7570 IFS=$as_save_IFS 7571 test -z "$as_dir" && as_dir=. 7572 for ac_exec_ext in '' $ac_executable_extensions; do 7573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7574 ac_cv_prog_ac_ct_OTOOL64="otool64" 7575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7576 break 2 7577 fi 7578done 7579 done 7580IFS=$as_save_IFS 7581 7582fi 7583fi 7584ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7585if test -n "$ac_ct_OTOOL64"; then 7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7587$as_echo "$ac_ct_OTOOL64" >&6; } 7588else 7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7590$as_echo "no" >&6; } 7591fi 7592 7593 if test "x$ac_ct_OTOOL64" = x; then 7594 OTOOL64=":" 7595 else 7596 case $cross_compiling:$ac_tool_warned in 7597yes:) 7598{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7599$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7600ac_tool_warned=yes ;; 7601esac 7602 OTOOL64=$ac_ct_OTOOL64 7603 fi 7604else 7605 OTOOL64="$ac_cv_prog_OTOOL64" 7606fi 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7635$as_echo_n "checking for -single_module linker flag... " >&6; } 7636if ${lt_cv_apple_cc_single_mod+:} false; then : 7637 $as_echo_n "(cached) " >&6 7638else 7639 lt_cv_apple_cc_single_mod=no 7640 if test -z "${LT_MULTI_MODULE}"; then 7641 # By default we will add the -single_module flag. You can override 7642 # by either setting the environment variable LT_MULTI_MODULE 7643 # non-empty at configure time, or by adding -multi_module to the 7644 # link flags. 7645 rm -rf libconftest.dylib* 7646 echo "int foo(void){return 1;}" > conftest.c 7647 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7648-dynamiclib -Wl,-single_module conftest.c" >&5 7649 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7650 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7651 _lt_result=$? 7652 # If there is a non-empty error log, and "single_module" 7653 # appears in it, assume the flag caused a linker warning 7654 if test -s conftest.err && $GREP single_module conftest.err; then 7655 cat conftest.err >&5 7656 # Otherwise, if the output was created with a 0 exit code from 7657 # the compiler, it worked. 7658 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7659 lt_cv_apple_cc_single_mod=yes 7660 else 7661 cat conftest.err >&5 7662 fi 7663 rm -rf libconftest.dylib* 7664 rm -f conftest.* 7665 fi 7666fi 7667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7668$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7669 7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7671$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7672if ${lt_cv_ld_exported_symbols_list+:} false; then : 7673 $as_echo_n "(cached) " >&6 7674else 7675 lt_cv_ld_exported_symbols_list=no 7676 save_LDFLAGS=$LDFLAGS 7677 echo "_main" > conftest.sym 7678 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7680/* end confdefs.h. */ 7681 7682int 7683main () 7684{ 7685 7686 ; 7687 return 0; 7688} 7689_ACEOF 7690if ac_fn_c_try_link "$LINENO"; then : 7691 lt_cv_ld_exported_symbols_list=yes 7692else 7693 lt_cv_ld_exported_symbols_list=no 7694fi 7695rm -f core conftest.err conftest.$ac_objext \ 7696 conftest$ac_exeext conftest.$ac_ext 7697 LDFLAGS="$save_LDFLAGS" 7698 7699fi 7700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7701$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7702 7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7704$as_echo_n "checking for -force_load linker flag... " >&6; } 7705if ${lt_cv_ld_force_load+:} false; then : 7706 $as_echo_n "(cached) " >&6 7707else 7708 lt_cv_ld_force_load=no 7709 cat > conftest.c << _LT_EOF 7710int forced_loaded() { return 2;} 7711_LT_EOF 7712 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7713 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7714 echo "$AR cru libconftest.a conftest.o" >&5 7715 $AR cru libconftest.a conftest.o 2>&5 7716 echo "$RANLIB libconftest.a" >&5 7717 $RANLIB libconftest.a 2>&5 7718 cat > conftest.c << _LT_EOF 7719int main() { return 0;} 7720_LT_EOF 7721 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7722 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7723 _lt_result=$? 7724 if test -s conftest.err && $GREP force_load conftest.err; then 7725 cat conftest.err >&5 7726 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7727 lt_cv_ld_force_load=yes 7728 else 7729 cat conftest.err >&5 7730 fi 7731 rm -f conftest.err libconftest.a conftest conftest.c 7732 rm -rf conftest.dSYM 7733 7734fi 7735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7736$as_echo "$lt_cv_ld_force_load" >&6; } 7737 case $host_os in 7738 rhapsody* | darwin1.[012]) 7739 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7740 darwin1.*) 7741 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7742 darwin*) # darwin 5.x on 7743 # if running on 10.5 or later, the deployment target defaults 7744 # to the OS version, if on x86, and 10.4, the deployment 7745 # target defaults to 10.4. Don't you love it? 7746 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7747 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7748 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7749 10.[012]*) 7750 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7751 10.*) 7752 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7753 esac 7754 ;; 7755 esac 7756 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7757 _lt_dar_single_mod='$single_module' 7758 fi 7759 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7760 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7761 else 7762 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7763 fi 7764 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7765 _lt_dsymutil='~$DSYMUTIL $lib || :' 7766 else 7767 _lt_dsymutil= 7768 fi 7769 ;; 7770 esac 7771 7772ac_ext=c 7773ac_cpp='$CPP $CPPFLAGS' 7774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7776ac_compiler_gnu=$ac_cv_c_compiler_gnu 7777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7778$as_echo_n "checking how to run the C preprocessor... " >&6; } 7779# On Suns, sometimes $CPP names a directory. 7780if test -n "$CPP" && test -d "$CPP"; then 7781 CPP= 7782fi 7783if test -z "$CPP"; then 7784 if ${ac_cv_prog_CPP+:} false; then : 7785 $as_echo_n "(cached) " >&6 7786else 7787 # Double quotes because CPP needs to be expanded 7788 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7789 do 7790 ac_preproc_ok=false 7791for ac_c_preproc_warn_flag in '' yes 7792do 7793 # Use a header file that comes with gcc, so configuring glibc 7794 # with a fresh cross-compiler works. 7795 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7796 # <limits.h> exists even on freestanding compilers. 7797 # On the NeXT, cc -E runs the code through the compiler's parser, 7798 # not just through cpp. "Syntax error" is here to catch this case. 7799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7800/* end confdefs.h. */ 7801#ifdef __STDC__ 7802# include <limits.h> 7803#else 7804# include <assert.h> 7805#endif 7806 Syntax error 7807_ACEOF 7808if ac_fn_c_try_cpp "$LINENO"; then : 7809 7810else 7811 # Broken: fails on valid input. 7812continue 7813fi 7814rm -f conftest.err conftest.i conftest.$ac_ext 7815 7816 # OK, works on sane cases. Now check whether nonexistent headers 7817 # can be detected and how. 7818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7819/* end confdefs.h. */ 7820#include <ac_nonexistent.h> 7821_ACEOF 7822if ac_fn_c_try_cpp "$LINENO"; then : 7823 # Broken: success on invalid input. 7824continue 7825else 7826 # Passes both tests. 7827ac_preproc_ok=: 7828break 7829fi 7830rm -f conftest.err conftest.i conftest.$ac_ext 7831 7832done 7833# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7834rm -f conftest.i conftest.err conftest.$ac_ext 7835if $ac_preproc_ok; then : 7836 break 7837fi 7838 7839 done 7840 ac_cv_prog_CPP=$CPP 7841 7842fi 7843 CPP=$ac_cv_prog_CPP 7844else 7845 ac_cv_prog_CPP=$CPP 7846fi 7847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7848$as_echo "$CPP" >&6; } 7849ac_preproc_ok=false 7850for ac_c_preproc_warn_flag in '' yes 7851do 7852 # Use a header file that comes with gcc, so configuring glibc 7853 # with a fresh cross-compiler works. 7854 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7855 # <limits.h> exists even on freestanding compilers. 7856 # On the NeXT, cc -E runs the code through the compiler's parser, 7857 # not just through cpp. "Syntax error" is here to catch this case. 7858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7859/* end confdefs.h. */ 7860#ifdef __STDC__ 7861# include <limits.h> 7862#else 7863# include <assert.h> 7864#endif 7865 Syntax error 7866_ACEOF 7867if ac_fn_c_try_cpp "$LINENO"; then : 7868 7869else 7870 # Broken: fails on valid input. 7871continue 7872fi 7873rm -f conftest.err conftest.i conftest.$ac_ext 7874 7875 # OK, works on sane cases. Now check whether nonexistent headers 7876 # can be detected and how. 7877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7878/* end confdefs.h. */ 7879#include <ac_nonexistent.h> 7880_ACEOF 7881if ac_fn_c_try_cpp "$LINENO"; then : 7882 # Broken: success on invalid input. 7883continue 7884else 7885 # Passes both tests. 7886ac_preproc_ok=: 7887break 7888fi 7889rm -f conftest.err conftest.i conftest.$ac_ext 7890 7891done 7892# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7893rm -f conftest.i conftest.err conftest.$ac_ext 7894if $ac_preproc_ok; then : 7895 7896else 7897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7898$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7899as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7900See \`config.log' for more details" "$LINENO" 5; } 7901fi 7902 7903ac_ext=c 7904ac_cpp='$CPP $CPPFLAGS' 7905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7907ac_compiler_gnu=$ac_cv_c_compiler_gnu 7908 7909 7910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7911$as_echo_n "checking for ANSI C header files... " >&6; } 7912if ${ac_cv_header_stdc+:} false; then : 7913 $as_echo_n "(cached) " >&6 7914else 7915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7916/* end confdefs.h. */ 7917#include <stdlib.h> 7918#include <stdarg.h> 7919#include <string.h> 7920#include <float.h> 7921 7922int 7923main () 7924{ 7925 7926 ; 7927 return 0; 7928} 7929_ACEOF 7930if ac_fn_c_try_compile "$LINENO"; then : 7931 ac_cv_header_stdc=yes 7932else 7933 ac_cv_header_stdc=no 7934fi 7935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7936 7937if test $ac_cv_header_stdc = yes; then 7938 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7940/* end confdefs.h. */ 7941#include <string.h> 7942 7943_ACEOF 7944if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7945 $EGREP "memchr" >/dev/null 2>&1; then : 7946 7947else 7948 ac_cv_header_stdc=no 7949fi 7950rm -f conftest* 7951 7952fi 7953 7954if test $ac_cv_header_stdc = yes; then 7955 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7957/* end confdefs.h. */ 7958#include <stdlib.h> 7959 7960_ACEOF 7961if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7962 $EGREP "free" >/dev/null 2>&1; then : 7963 7964else 7965 ac_cv_header_stdc=no 7966fi 7967rm -f conftest* 7968 7969fi 7970 7971if test $ac_cv_header_stdc = yes; then 7972 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7973 if test "$cross_compiling" = yes; then : 7974 : 7975else 7976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7977/* end confdefs.h. */ 7978#include <ctype.h> 7979#include <stdlib.h> 7980#if ((' ' & 0x0FF) == 0x020) 7981# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7982# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7983#else 7984# define ISLOWER(c) \ 7985 (('a' <= (c) && (c) <= 'i') \ 7986 || ('j' <= (c) && (c) <= 'r') \ 7987 || ('s' <= (c) && (c) <= 'z')) 7988# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7989#endif 7990 7991#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7992int 7993main () 7994{ 7995 int i; 7996 for (i = 0; i < 256; i++) 7997 if (XOR (islower (i), ISLOWER (i)) 7998 || toupper (i) != TOUPPER (i)) 7999 return 2; 8000 return 0; 8001} 8002_ACEOF 8003if ac_fn_c_try_run "$LINENO"; then : 8004 8005else 8006 ac_cv_header_stdc=no 8007fi 8008rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8009 conftest.$ac_objext conftest.beam conftest.$ac_ext 8010fi 8011 8012fi 8013fi 8014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8015$as_echo "$ac_cv_header_stdc" >&6; } 8016if test $ac_cv_header_stdc = yes; then 8017 8018$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8019 8020fi 8021 8022# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8023for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8024 inttypes.h stdint.h unistd.h 8025do : 8026 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8027ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8028" 8029if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8030 cat >>confdefs.h <<_ACEOF 8031#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8032_ACEOF 8033 8034fi 8035 8036done 8037 8038 8039for ac_header in dlfcn.h 8040do : 8041 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8042" 8043if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8044 cat >>confdefs.h <<_ACEOF 8045#define HAVE_DLFCN_H 1 8046_ACEOF 8047 8048fi 8049 8050done 8051 8052 8053 8054 8055 8056# Set options 8057enable_win32_dll=yes 8058 8059case $host in 8060*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 8061 if test -n "$ac_tool_prefix"; then 8062 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 8063set dummy ${ac_tool_prefix}as; ac_word=$2 8064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8065$as_echo_n "checking for $ac_word... " >&6; } 8066if ${ac_cv_prog_AS+:} false; then : 8067 $as_echo_n "(cached) " >&6 8068else 8069 if test -n "$AS"; then 8070 ac_cv_prog_AS="$AS" # Let the user override the test. 8071else 8072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8073for as_dir in $PATH 8074do 8075 IFS=$as_save_IFS 8076 test -z "$as_dir" && as_dir=. 8077 for ac_exec_ext in '' $ac_executable_extensions; do 8078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8079 ac_cv_prog_AS="${ac_tool_prefix}as" 8080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8081 break 2 8082 fi 8083done 8084 done 8085IFS=$as_save_IFS 8086 8087fi 8088fi 8089AS=$ac_cv_prog_AS 8090if test -n "$AS"; then 8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8092$as_echo "$AS" >&6; } 8093else 8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8095$as_echo "no" >&6; } 8096fi 8097 8098 8099fi 8100if test -z "$ac_cv_prog_AS"; then 8101 ac_ct_AS=$AS 8102 # Extract the first word of "as", so it can be a program name with args. 8103set dummy as; ac_word=$2 8104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8105$as_echo_n "checking for $ac_word... " >&6; } 8106if ${ac_cv_prog_ac_ct_AS+:} false; then : 8107 $as_echo_n "(cached) " >&6 8108else 8109 if test -n "$ac_ct_AS"; then 8110 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 8111else 8112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8113for as_dir in $PATH 8114do 8115 IFS=$as_save_IFS 8116 test -z "$as_dir" && as_dir=. 8117 for ac_exec_ext in '' $ac_executable_extensions; do 8118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8119 ac_cv_prog_ac_ct_AS="as" 8120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8121 break 2 8122 fi 8123done 8124 done 8125IFS=$as_save_IFS 8126 8127fi 8128fi 8129ac_ct_AS=$ac_cv_prog_ac_ct_AS 8130if test -n "$ac_ct_AS"; then 8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 8132$as_echo "$ac_ct_AS" >&6; } 8133else 8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8135$as_echo "no" >&6; } 8136fi 8137 8138 if test "x$ac_ct_AS" = x; then 8139 AS="false" 8140 else 8141 case $cross_compiling:$ac_tool_warned in 8142yes:) 8143{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8144$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8145ac_tool_warned=yes ;; 8146esac 8147 AS=$ac_ct_AS 8148 fi 8149else 8150 AS="$ac_cv_prog_AS" 8151fi 8152 8153 if test -n "$ac_tool_prefix"; then 8154 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8155set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8157$as_echo_n "checking for $ac_word... " >&6; } 8158if ${ac_cv_prog_DLLTOOL+:} false; then : 8159 $as_echo_n "(cached) " >&6 8160else 8161 if test -n "$DLLTOOL"; then 8162 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8163else 8164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8165for as_dir in $PATH 8166do 8167 IFS=$as_save_IFS 8168 test -z "$as_dir" && as_dir=. 8169 for ac_exec_ext in '' $ac_executable_extensions; do 8170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8171 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8173 break 2 8174 fi 8175done 8176 done 8177IFS=$as_save_IFS 8178 8179fi 8180fi 8181DLLTOOL=$ac_cv_prog_DLLTOOL 8182if test -n "$DLLTOOL"; then 8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8184$as_echo "$DLLTOOL" >&6; } 8185else 8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8187$as_echo "no" >&6; } 8188fi 8189 8190 8191fi 8192if test -z "$ac_cv_prog_DLLTOOL"; then 8193 ac_ct_DLLTOOL=$DLLTOOL 8194 # Extract the first word of "dlltool", so it can be a program name with args. 8195set dummy dlltool; ac_word=$2 8196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8197$as_echo_n "checking for $ac_word... " >&6; } 8198if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8199 $as_echo_n "(cached) " >&6 8200else 8201 if test -n "$ac_ct_DLLTOOL"; then 8202 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8203else 8204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8205for as_dir in $PATH 8206do 8207 IFS=$as_save_IFS 8208 test -z "$as_dir" && as_dir=. 8209 for ac_exec_ext in '' $ac_executable_extensions; do 8210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8211 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8213 break 2 8214 fi 8215done 8216 done 8217IFS=$as_save_IFS 8218 8219fi 8220fi 8221ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8222if test -n "$ac_ct_DLLTOOL"; then 8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8224$as_echo "$ac_ct_DLLTOOL" >&6; } 8225else 8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8227$as_echo "no" >&6; } 8228fi 8229 8230 if test "x$ac_ct_DLLTOOL" = x; then 8231 DLLTOOL="false" 8232 else 8233 case $cross_compiling:$ac_tool_warned in 8234yes:) 8235{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8236$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8237ac_tool_warned=yes ;; 8238esac 8239 DLLTOOL=$ac_ct_DLLTOOL 8240 fi 8241else 8242 DLLTOOL="$ac_cv_prog_DLLTOOL" 8243fi 8244 8245 if test -n "$ac_tool_prefix"; then 8246 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8247set dummy ${ac_tool_prefix}objdump; ac_word=$2 8248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8249$as_echo_n "checking for $ac_word... " >&6; } 8250if ${ac_cv_prog_OBJDUMP+:} false; then : 8251 $as_echo_n "(cached) " >&6 8252else 8253 if test -n "$OBJDUMP"; then 8254 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8255else 8256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8257for as_dir in $PATH 8258do 8259 IFS=$as_save_IFS 8260 test -z "$as_dir" && as_dir=. 8261 for ac_exec_ext in '' $ac_executable_extensions; do 8262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8263 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8265 break 2 8266 fi 8267done 8268 done 8269IFS=$as_save_IFS 8270 8271fi 8272fi 8273OBJDUMP=$ac_cv_prog_OBJDUMP 8274if test -n "$OBJDUMP"; then 8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8276$as_echo "$OBJDUMP" >&6; } 8277else 8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8279$as_echo "no" >&6; } 8280fi 8281 8282 8283fi 8284if test -z "$ac_cv_prog_OBJDUMP"; then 8285 ac_ct_OBJDUMP=$OBJDUMP 8286 # Extract the first word of "objdump", so it can be a program name with args. 8287set dummy objdump; ac_word=$2 8288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8289$as_echo_n "checking for $ac_word... " >&6; } 8290if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8291 $as_echo_n "(cached) " >&6 8292else 8293 if test -n "$ac_ct_OBJDUMP"; then 8294 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8295else 8296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8297for as_dir in $PATH 8298do 8299 IFS=$as_save_IFS 8300 test -z "$as_dir" && as_dir=. 8301 for ac_exec_ext in '' $ac_executable_extensions; do 8302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8303 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8305 break 2 8306 fi 8307done 8308 done 8309IFS=$as_save_IFS 8310 8311fi 8312fi 8313ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8314if test -n "$ac_ct_OBJDUMP"; then 8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8316$as_echo "$ac_ct_OBJDUMP" >&6; } 8317else 8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8319$as_echo "no" >&6; } 8320fi 8321 8322 if test "x$ac_ct_OBJDUMP" = x; then 8323 OBJDUMP="false" 8324 else 8325 case $cross_compiling:$ac_tool_warned in 8326yes:) 8327{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8328$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8329ac_tool_warned=yes ;; 8330esac 8331 OBJDUMP=$ac_ct_OBJDUMP 8332 fi 8333else 8334 OBJDUMP="$ac_cv_prog_OBJDUMP" 8335fi 8336 8337 ;; 8338esac 8339 8340test -z "$AS" && AS=as 8341 8342 8343 8344 8345 8346test -z "$DLLTOOL" && DLLTOOL=dlltool 8347 8348 8349 8350 8351 8352test -z "$OBJDUMP" && OBJDUMP=objdump 8353 8354 8355 8356 8357 8358 8359 8360 enable_dlopen=no 8361 8362 8363 8364 # Check whether --enable-shared was given. 8365if test "${enable_shared+set}" = set; then : 8366 enableval=$enable_shared; p=${PACKAGE-default} 8367 case $enableval in 8368 yes) enable_shared=yes ;; 8369 no) enable_shared=no ;; 8370 *) 8371 enable_shared=no 8372 # Look at the argument we got. We use all the common list separators. 8373 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8374 for pkg in $enableval; do 8375 IFS="$lt_save_ifs" 8376 if test "X$pkg" = "X$p"; then 8377 enable_shared=yes 8378 fi 8379 done 8380 IFS="$lt_save_ifs" 8381 ;; 8382 esac 8383else 8384 enable_shared=yes 8385fi 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 # Check whether --enable-static was given. 8396if test "${enable_static+set}" = set; then : 8397 enableval=$enable_static; p=${PACKAGE-default} 8398 case $enableval in 8399 yes) enable_static=yes ;; 8400 no) enable_static=no ;; 8401 *) 8402 enable_static=no 8403 # Look at the argument we got. We use all the common list separators. 8404 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8405 for pkg in $enableval; do 8406 IFS="$lt_save_ifs" 8407 if test "X$pkg" = "X$p"; then 8408 enable_static=yes 8409 fi 8410 done 8411 IFS="$lt_save_ifs" 8412 ;; 8413 esac 8414else 8415 enable_static=yes 8416fi 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427# Check whether --with-pic was given. 8428if test "${with_pic+set}" = set; then : 8429 withval=$with_pic; lt_p=${PACKAGE-default} 8430 case $withval in 8431 yes|no) pic_mode=$withval ;; 8432 *) 8433 pic_mode=default 8434 # Look at the argument we got. We use all the common list separators. 8435 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8436 for lt_pkg in $withval; do 8437 IFS="$lt_save_ifs" 8438 if test "X$lt_pkg" = "X$lt_p"; then 8439 pic_mode=yes 8440 fi 8441 done 8442 IFS="$lt_save_ifs" 8443 ;; 8444 esac 8445else 8446 pic_mode=default 8447fi 8448 8449 8450test -z "$pic_mode" && pic_mode=default 8451 8452 8453 8454 8455 8456 8457 8458 # Check whether --enable-fast-install was given. 8459if test "${enable_fast_install+set}" = set; then : 8460 enableval=$enable_fast_install; p=${PACKAGE-default} 8461 case $enableval in 8462 yes) enable_fast_install=yes ;; 8463 no) enable_fast_install=no ;; 8464 *) 8465 enable_fast_install=no 8466 # Look at the argument we got. We use all the common list separators. 8467 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8468 for pkg in $enableval; do 8469 IFS="$lt_save_ifs" 8470 if test "X$pkg" = "X$p"; then 8471 enable_fast_install=yes 8472 fi 8473 done 8474 IFS="$lt_save_ifs" 8475 ;; 8476 esac 8477else 8478 enable_fast_install=yes 8479fi 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491# This can be used to rebuild libtool when needed 8492LIBTOOL_DEPS="$ltmain" 8493 8494# Always use our own libtool. 8495LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526test -z "$LN_S" && LN_S="ln -s" 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541if test -n "${ZSH_VERSION+set}" ; then 8542 setopt NO_GLOB_SUBST 8543fi 8544 8545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8546$as_echo_n "checking for objdir... " >&6; } 8547if ${lt_cv_objdir+:} false; then : 8548 $as_echo_n "(cached) " >&6 8549else 8550 rm -f .libs 2>/dev/null 8551mkdir .libs 2>/dev/null 8552if test -d .libs; then 8553 lt_cv_objdir=.libs 8554else 8555 # MS-DOS does not allow filenames that begin with a dot. 8556 lt_cv_objdir=_libs 8557fi 8558rmdir .libs 2>/dev/null 8559fi 8560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8561$as_echo "$lt_cv_objdir" >&6; } 8562objdir=$lt_cv_objdir 8563 8564 8565 8566 8567 8568cat >>confdefs.h <<_ACEOF 8569#define LT_OBJDIR "$lt_cv_objdir/" 8570_ACEOF 8571 8572 8573 8574 8575case $host_os in 8576aix3*) 8577 # AIX sometimes has problems with the GCC collect2 program. For some 8578 # reason, if we set the COLLECT_NAMES environment variable, the problems 8579 # vanish in a puff of smoke. 8580 if test "X${COLLECT_NAMES+set}" != Xset; then 8581 COLLECT_NAMES= 8582 export COLLECT_NAMES 8583 fi 8584 ;; 8585esac 8586 8587# Global variables: 8588ofile=libtool 8589can_build_shared=yes 8590 8591# All known linkers require a `.a' archive for static linking (except MSVC, 8592# which needs '.lib'). 8593libext=a 8594 8595with_gnu_ld="$lt_cv_prog_gnu_ld" 8596 8597old_CC="$CC" 8598old_CFLAGS="$CFLAGS" 8599 8600# Set sane defaults for various variables 8601test -z "$CC" && CC=cc 8602test -z "$LTCC" && LTCC=$CC 8603test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8604test -z "$LD" && LD=ld 8605test -z "$ac_objext" && ac_objext=o 8606 8607for cc_temp in $compiler""; do 8608 case $cc_temp in 8609 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8610 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8611 \-*) ;; 8612 *) break;; 8613 esac 8614done 8615cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8616 8617 8618# Only perform the check for file, if the check method requires it 8619test -z "$MAGIC_CMD" && MAGIC_CMD=file 8620case $deplibs_check_method in 8621file_magic*) 8622 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8624$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8625if ${lt_cv_path_MAGIC_CMD+:} false; then : 8626 $as_echo_n "(cached) " >&6 8627else 8628 case $MAGIC_CMD in 8629[\\/*] | ?:[\\/]*) 8630 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8631 ;; 8632*) 8633 lt_save_MAGIC_CMD="$MAGIC_CMD" 8634 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8635 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8636 for ac_dir in $ac_dummy; do 8637 IFS="$lt_save_ifs" 8638 test -z "$ac_dir" && ac_dir=. 8639 if test -f $ac_dir/${ac_tool_prefix}file; then 8640 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8641 if test -n "$file_magic_test_file"; then 8642 case $deplibs_check_method in 8643 "file_magic "*) 8644 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8645 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8646 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8647 $EGREP "$file_magic_regex" > /dev/null; then 8648 : 8649 else 8650 cat <<_LT_EOF 1>&2 8651 8652*** Warning: the command libtool uses to detect shared libraries, 8653*** $file_magic_cmd, produces output that libtool cannot recognize. 8654*** The result is that libtool may fail to recognize shared libraries 8655*** as such. This will affect the creation of libtool libraries that 8656*** depend on shared libraries, but programs linked with such libtool 8657*** libraries will work regardless of this problem. Nevertheless, you 8658*** may want to report the problem to your system manager and/or to 8659*** [email protected] 8660 8661_LT_EOF 8662 fi ;; 8663 esac 8664 fi 8665 break 8666 fi 8667 done 8668 IFS="$lt_save_ifs" 8669 MAGIC_CMD="$lt_save_MAGIC_CMD" 8670 ;; 8671esac 8672fi 8673 8674MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8675if test -n "$MAGIC_CMD"; then 8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8677$as_echo "$MAGIC_CMD" >&6; } 8678else 8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8680$as_echo "no" >&6; } 8681fi 8682 8683 8684 8685 8686 8687if test -z "$lt_cv_path_MAGIC_CMD"; then 8688 if test -n "$ac_tool_prefix"; then 8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8690$as_echo_n "checking for file... " >&6; } 8691if ${lt_cv_path_MAGIC_CMD+:} false; then : 8692 $as_echo_n "(cached) " >&6 8693else 8694 case $MAGIC_CMD in 8695[\\/*] | ?:[\\/]*) 8696 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8697 ;; 8698*) 8699 lt_save_MAGIC_CMD="$MAGIC_CMD" 8700 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8701 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8702 for ac_dir in $ac_dummy; do 8703 IFS="$lt_save_ifs" 8704 test -z "$ac_dir" && ac_dir=. 8705 if test -f $ac_dir/file; then 8706 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8707 if test -n "$file_magic_test_file"; then 8708 case $deplibs_check_method in 8709 "file_magic "*) 8710 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8711 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8712 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8713 $EGREP "$file_magic_regex" > /dev/null; then 8714 : 8715 else 8716 cat <<_LT_EOF 1>&2 8717 8718*** Warning: the command libtool uses to detect shared libraries, 8719*** $file_magic_cmd, produces output that libtool cannot recognize. 8720*** The result is that libtool may fail to recognize shared libraries 8721*** as such. This will affect the creation of libtool libraries that 8722*** depend on shared libraries, but programs linked with such libtool 8723*** libraries will work regardless of this problem. Nevertheless, you 8724*** may want to report the problem to your system manager and/or to 8725*** [email protected] 8726 8727_LT_EOF 8728 fi ;; 8729 esac 8730 fi 8731 break 8732 fi 8733 done 8734 IFS="$lt_save_ifs" 8735 MAGIC_CMD="$lt_save_MAGIC_CMD" 8736 ;; 8737esac 8738fi 8739 8740MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8741if test -n "$MAGIC_CMD"; then 8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8743$as_echo "$MAGIC_CMD" >&6; } 8744else 8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8746$as_echo "no" >&6; } 8747fi 8748 8749 8750 else 8751 MAGIC_CMD=: 8752 fi 8753fi 8754 8755 fi 8756 ;; 8757esac 8758 8759# Use C for the default configuration in the libtool script 8760 8761lt_save_CC="$CC" 8762ac_ext=c 8763ac_cpp='$CPP $CPPFLAGS' 8764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8766ac_compiler_gnu=$ac_cv_c_compiler_gnu 8767 8768 8769# Source file extension for C test sources. 8770ac_ext=c 8771 8772# Object file extension for compiled C test sources. 8773objext=o 8774objext=$objext 8775 8776# Code to be used in simple compile tests 8777lt_simple_compile_test_code="int some_variable = 0;" 8778 8779# Code to be used in simple link tests 8780lt_simple_link_test_code='int main(){return(0);}' 8781 8782 8783 8784 8785 8786 8787 8788# If no C compiler was specified, use CC. 8789LTCC=${LTCC-"$CC"} 8790 8791# If no C compiler flags were specified, use CFLAGS. 8792LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8793 8794# Allow CC to be a program name with arguments. 8795compiler=$CC 8796 8797# Save the default compiler, since it gets overwritten when the other 8798# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8799compiler_DEFAULT=$CC 8800 8801# save warnings/boilerplate of simple test code 8802ac_outfile=conftest.$ac_objext 8803echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8804eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8805_lt_compiler_boilerplate=`cat conftest.err` 8806$RM conftest* 8807 8808ac_outfile=conftest.$ac_objext 8809echo "$lt_simple_link_test_code" >conftest.$ac_ext 8810eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8811_lt_linker_boilerplate=`cat conftest.err` 8812$RM -r conftest* 8813 8814 8815## CAVEAT EMPTOR: 8816## There is no encapsulation within the following macros, do not change 8817## the running order or otherwise move them around unless you know exactly 8818## what you are doing... 8819if test -n "$compiler"; then 8820 8821lt_prog_compiler_no_builtin_flag= 8822 8823if test "$GCC" = yes; then 8824 case $cc_basename in 8825 nvcc*) 8826 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8827 *) 8828 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8829 esac 8830 8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8832$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8833if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8834 $as_echo_n "(cached) " >&6 8835else 8836 lt_cv_prog_compiler_rtti_exceptions=no 8837 ac_outfile=conftest.$ac_objext 8838 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8839 lt_compiler_flag="-fno-rtti -fno-exceptions" 8840 # Insert the option either (1) after the last *FLAGS variable, or 8841 # (2) before a word containing "conftest.", or (3) at the end. 8842 # Note that $ac_compile itself does not contain backslashes and begins 8843 # with a dollar sign (not a hyphen), so the echo should work correctly. 8844 # The option is referenced via a variable to avoid confusing sed. 8845 lt_compile=`echo "$ac_compile" | $SED \ 8846 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8847 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8848 -e 's:$: $lt_compiler_flag:'` 8849 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8850 (eval "$lt_compile" 2>conftest.err) 8851 ac_status=$? 8852 cat conftest.err >&5 8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8854 if (exit $ac_status) && test -s "$ac_outfile"; then 8855 # The compiler can only warn and ignore the option if not recognized 8856 # So say no if there are warnings other than the usual output. 8857 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8858 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8859 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8860 lt_cv_prog_compiler_rtti_exceptions=yes 8861 fi 8862 fi 8863 $RM conftest* 8864 8865fi 8866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8867$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8868 8869if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8870 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8871else 8872 : 8873fi 8874 8875fi 8876 8877 8878 8879 8880 8881 8882 lt_prog_compiler_wl= 8883lt_prog_compiler_pic= 8884lt_prog_compiler_static= 8885 8886 8887 if test "$GCC" = yes; then 8888 lt_prog_compiler_wl='-Wl,' 8889 lt_prog_compiler_static='-static' 8890 8891 case $host_os in 8892 aix*) 8893 # All AIX code is PIC. 8894 if test "$host_cpu" = ia64; then 8895 # AIX 5 now supports IA64 processor 8896 lt_prog_compiler_static='-Bstatic' 8897 fi 8898 ;; 8899 8900 amigaos*) 8901 case $host_cpu in 8902 powerpc) 8903 # see comment about AmigaOS4 .so support 8904 lt_prog_compiler_pic='-fPIC' 8905 ;; 8906 m68k) 8907 # FIXME: we need at least 68020 code to build shared libraries, but 8908 # adding the `-m68020' flag to GCC prevents building anything better, 8909 # like `-m68040'. 8910 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8911 ;; 8912 esac 8913 ;; 8914 8915 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8916 # PIC is the default for these OSes. 8917 ;; 8918 8919 mingw* | cygwin* | pw32* | os2* | cegcc*) 8920 # This hack is so that the source file can tell whether it is being 8921 # built for inclusion in a dll (and should export symbols for example). 8922 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8923 # (--disable-auto-import) libraries 8924 lt_prog_compiler_pic='-DDLL_EXPORT' 8925 ;; 8926 8927 darwin* | rhapsody*) 8928 # PIC is the default on this platform 8929 # Common symbols not allowed in MH_DYLIB files 8930 lt_prog_compiler_pic='-fno-common' 8931 ;; 8932 8933 haiku*) 8934 # PIC is the default for Haiku. 8935 # The "-static" flag exists, but is broken. 8936 lt_prog_compiler_static= 8937 ;; 8938 8939 hpux*) 8940 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8941 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8942 # sets the default TLS model and affects inlining. 8943 case $host_cpu in 8944 hppa*64*) 8945 # +Z the default 8946 ;; 8947 *) 8948 lt_prog_compiler_pic='-fPIC' 8949 ;; 8950 esac 8951 ;; 8952 8953 interix[3-9]*) 8954 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8955 # Instead, we relocate shared libraries at runtime. 8956 ;; 8957 8958 msdosdjgpp*) 8959 # Just because we use GCC doesn't mean we suddenly get shared libraries 8960 # on systems that don't support them. 8961 lt_prog_compiler_can_build_shared=no 8962 enable_shared=no 8963 ;; 8964 8965 *nto* | *qnx*) 8966 # QNX uses GNU C++, but need to define -shared option too, otherwise 8967 # it will coredump. 8968 lt_prog_compiler_pic='-fPIC -shared' 8969 ;; 8970 8971 sysv4*MP*) 8972 if test -d /usr/nec; then 8973 lt_prog_compiler_pic=-Kconform_pic 8974 fi 8975 ;; 8976 8977 *) 8978 lt_prog_compiler_pic='-fPIC' 8979 ;; 8980 esac 8981 8982 case $cc_basename in 8983 nvcc*) # Cuda Compiler Driver 2.2 8984 lt_prog_compiler_wl='-Xlinker ' 8985 if test -n "$lt_prog_compiler_pic"; then 8986 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8987 fi 8988 ;; 8989 esac 8990 else 8991 # PORTME Check for flag to pass linker flags through the system compiler. 8992 case $host_os in 8993 aix*) 8994 lt_prog_compiler_wl='-Wl,' 8995 if test "$host_cpu" = ia64; then 8996 # AIX 5 now supports IA64 processor 8997 lt_prog_compiler_static='-Bstatic' 8998 else 8999 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9000 fi 9001 ;; 9002 9003 mingw* | cygwin* | pw32* | os2* | cegcc*) 9004 # This hack is so that the source file can tell whether it is being 9005 # built for inclusion in a dll (and should export symbols for example). 9006 lt_prog_compiler_pic='-DDLL_EXPORT' 9007 ;; 9008 9009 hpux9* | hpux10* | hpux11*) 9010 lt_prog_compiler_wl='-Wl,' 9011 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9012 # not for PA HP-UX. 9013 case $host_cpu in 9014 hppa*64*|ia64*) 9015 # +Z the default 9016 ;; 9017 *) 9018 lt_prog_compiler_pic='+Z' 9019 ;; 9020 esac 9021 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9022 lt_prog_compiler_static='${wl}-a ${wl}archive' 9023 ;; 9024 9025 irix5* | irix6* | nonstopux*) 9026 lt_prog_compiler_wl='-Wl,' 9027 # PIC (with -KPIC) is the default. 9028 lt_prog_compiler_static='-non_shared' 9029 ;; 9030 9031 linux* | k*bsd*-gnu | kopensolaris*-gnu) 9032 case $cc_basename in 9033 # old Intel for x86_64 which still supported -KPIC. 9034 ecc*) 9035 lt_prog_compiler_wl='-Wl,' 9036 lt_prog_compiler_pic='-KPIC' 9037 lt_prog_compiler_static='-static' 9038 ;; 9039 # icc used to be incompatible with GCC. 9040 # ICC 10 doesn't accept -KPIC any more. 9041 icc* | ifort*) 9042 lt_prog_compiler_wl='-Wl,' 9043 lt_prog_compiler_pic='-fPIC' 9044 lt_prog_compiler_static='-static' 9045 ;; 9046 # Lahey Fortran 8.1. 9047 lf95*) 9048 lt_prog_compiler_wl='-Wl,' 9049 lt_prog_compiler_pic='--shared' 9050 lt_prog_compiler_static='--static' 9051 ;; 9052 nagfor*) 9053 # NAG Fortran compiler 9054 lt_prog_compiler_wl='-Wl,-Wl,,' 9055 lt_prog_compiler_pic='-PIC' 9056 lt_prog_compiler_static='-Bstatic' 9057 ;; 9058 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9059 # Portland Group compilers (*not* the Pentium gcc compiler, 9060 # which looks to be a dead project) 9061 lt_prog_compiler_wl='-Wl,' 9062 lt_prog_compiler_pic='-fpic' 9063 lt_prog_compiler_static='-Bstatic' 9064 ;; 9065 ccc*) 9066 lt_prog_compiler_wl='-Wl,' 9067 # All Alpha code is PIC. 9068 lt_prog_compiler_static='-non_shared' 9069 ;; 9070 xl* | bgxl* | bgf* | mpixl*) 9071 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9072 lt_prog_compiler_wl='-Wl,' 9073 lt_prog_compiler_pic='-qpic' 9074 lt_prog_compiler_static='-qstaticlink' 9075 ;; 9076 *) 9077 case `$CC -V 2>&1 | sed 5q` in 9078 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9079 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9080 lt_prog_compiler_pic='-KPIC' 9081 lt_prog_compiler_static='-Bstatic' 9082 lt_prog_compiler_wl='' 9083 ;; 9084 *Sun\ F* | *Sun*Fortran*) 9085 lt_prog_compiler_pic='-KPIC' 9086 lt_prog_compiler_static='-Bstatic' 9087 lt_prog_compiler_wl='-Qoption ld ' 9088 ;; 9089 *Sun\ C*) 9090 # Sun C 5.9 9091 lt_prog_compiler_pic='-KPIC' 9092 lt_prog_compiler_static='-Bstatic' 9093 lt_prog_compiler_wl='-Wl,' 9094 ;; 9095 *Intel*\ [CF]*Compiler*) 9096 lt_prog_compiler_wl='-Wl,' 9097 lt_prog_compiler_pic='-fPIC' 9098 lt_prog_compiler_static='-static' 9099 ;; 9100 *Portland\ Group*) 9101 lt_prog_compiler_wl='-Wl,' 9102 lt_prog_compiler_pic='-fpic' 9103 lt_prog_compiler_static='-Bstatic' 9104 ;; 9105 esac 9106 ;; 9107 esac 9108 ;; 9109 9110 newsos6) 9111 lt_prog_compiler_pic='-KPIC' 9112 lt_prog_compiler_static='-Bstatic' 9113 ;; 9114 9115 *nto* | *qnx*) 9116 # QNX uses GNU C++, but need to define -shared option too, otherwise 9117 # it will coredump. 9118 lt_prog_compiler_pic='-fPIC -shared' 9119 ;; 9120 9121 osf3* | osf4* | osf5*) 9122 lt_prog_compiler_wl='-Wl,' 9123 # All OSF/1 code is PIC. 9124 lt_prog_compiler_static='-non_shared' 9125 ;; 9126 9127 rdos*) 9128 lt_prog_compiler_static='-non_shared' 9129 ;; 9130 9131 solaris*) 9132 lt_prog_compiler_pic='-KPIC' 9133 lt_prog_compiler_static='-Bstatic' 9134 case $cc_basename in 9135 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9136 lt_prog_compiler_wl='-Qoption ld ';; 9137 *) 9138 lt_prog_compiler_wl='-Wl,';; 9139 esac 9140 ;; 9141 9142 sunos4*) 9143 lt_prog_compiler_wl='-Qoption ld ' 9144 lt_prog_compiler_pic='-PIC' 9145 lt_prog_compiler_static='-Bstatic' 9146 ;; 9147 9148 sysv4 | sysv4.2uw2* | sysv4.3*) 9149 lt_prog_compiler_wl='-Wl,' 9150 lt_prog_compiler_pic='-KPIC' 9151 lt_prog_compiler_static='-Bstatic' 9152 ;; 9153 9154 sysv4*MP*) 9155 if test -d /usr/nec ;then 9156 lt_prog_compiler_pic='-Kconform_pic' 9157 lt_prog_compiler_static='-Bstatic' 9158 fi 9159 ;; 9160 9161 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9162 lt_prog_compiler_wl='-Wl,' 9163 lt_prog_compiler_pic='-KPIC' 9164 lt_prog_compiler_static='-Bstatic' 9165 ;; 9166 9167 unicos*) 9168 lt_prog_compiler_wl='-Wl,' 9169 lt_prog_compiler_can_build_shared=no 9170 ;; 9171 9172 uts4*) 9173 lt_prog_compiler_pic='-pic' 9174 lt_prog_compiler_static='-Bstatic' 9175 ;; 9176 9177 *) 9178 lt_prog_compiler_can_build_shared=no 9179 ;; 9180 esac 9181 fi 9182 9183case $host_os in 9184 # For platforms which do not support PIC, -DPIC is meaningless: 9185 *djgpp*) 9186 lt_prog_compiler_pic= 9187 ;; 9188 *) 9189 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9190 ;; 9191esac 9192 9193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9194$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9195if ${lt_cv_prog_compiler_pic+:} false; then : 9196 $as_echo_n "(cached) " >&6 9197else 9198 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9199fi 9200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9201$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9202lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9203 9204# 9205# Check to make sure the PIC flag actually works. 9206# 9207if test -n "$lt_prog_compiler_pic"; then 9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9209$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9210if ${lt_cv_prog_compiler_pic_works+:} false; then : 9211 $as_echo_n "(cached) " >&6 9212else 9213 lt_cv_prog_compiler_pic_works=no 9214 ac_outfile=conftest.$ac_objext 9215 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9216 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9217 # Insert the option either (1) after the last *FLAGS variable, or 9218 # (2) before a word containing "conftest.", or (3) at the end. 9219 # Note that $ac_compile itself does not contain backslashes and begins 9220 # with a dollar sign (not a hyphen), so the echo should work correctly. 9221 # The option is referenced via a variable to avoid confusing sed. 9222 lt_compile=`echo "$ac_compile" | $SED \ 9223 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9224 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9225 -e 's:$: $lt_compiler_flag:'` 9226 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9227 (eval "$lt_compile" 2>conftest.err) 9228 ac_status=$? 9229 cat conftest.err >&5 9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9231 if (exit $ac_status) && test -s "$ac_outfile"; then 9232 # The compiler can only warn and ignore the option if not recognized 9233 # So say no if there are warnings other than the usual output. 9234 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9235 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9236 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9237 lt_cv_prog_compiler_pic_works=yes 9238 fi 9239 fi 9240 $RM conftest* 9241 9242fi 9243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9244$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9245 9246if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9247 case $lt_prog_compiler_pic in 9248 "" | " "*) ;; 9249 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9250 esac 9251else 9252 lt_prog_compiler_pic= 9253 lt_prog_compiler_can_build_shared=no 9254fi 9255 9256fi 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268# 9269# Check to make sure the static flag actually works. 9270# 9271wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9273$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9274if ${lt_cv_prog_compiler_static_works+:} false; then : 9275 $as_echo_n "(cached) " >&6 9276else 9277 lt_cv_prog_compiler_static_works=no 9278 save_LDFLAGS="$LDFLAGS" 9279 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9280 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9281 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9282 # The linker can only warn and ignore the option if not recognized 9283 # So say no if there are warnings 9284 if test -s conftest.err; then 9285 # Append any errors to the config.log. 9286 cat conftest.err 1>&5 9287 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9288 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9289 if diff conftest.exp conftest.er2 >/dev/null; then 9290 lt_cv_prog_compiler_static_works=yes 9291 fi 9292 else 9293 lt_cv_prog_compiler_static_works=yes 9294 fi 9295 fi 9296 $RM -r conftest* 9297 LDFLAGS="$save_LDFLAGS" 9298 9299fi 9300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9301$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9302 9303if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9304 : 9305else 9306 lt_prog_compiler_static= 9307fi 9308 9309 9310 9311 9312 9313 9314 9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9316$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9317if ${lt_cv_prog_compiler_c_o+:} false; then : 9318 $as_echo_n "(cached) " >&6 9319else 9320 lt_cv_prog_compiler_c_o=no 9321 $RM -r conftest 2>/dev/null 9322 mkdir conftest 9323 cd conftest 9324 mkdir out 9325 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9326 9327 lt_compiler_flag="-o out/conftest2.$ac_objext" 9328 # Insert the option either (1) after the last *FLAGS variable, or 9329 # (2) before a word containing "conftest.", or (3) at the end. 9330 # Note that $ac_compile itself does not contain backslashes and begins 9331 # with a dollar sign (not a hyphen), so the echo should work correctly. 9332 lt_compile=`echo "$ac_compile" | $SED \ 9333 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9334 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9335 -e 's:$: $lt_compiler_flag:'` 9336 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9337 (eval "$lt_compile" 2>out/conftest.err) 9338 ac_status=$? 9339 cat out/conftest.err >&5 9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9341 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9342 then 9343 # The compiler can only warn and ignore the option if not recognized 9344 # So say no if there are warnings 9345 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9346 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9347 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9348 lt_cv_prog_compiler_c_o=yes 9349 fi 9350 fi 9351 chmod u+w . 2>&5 9352 $RM conftest* 9353 # SGI C++ compiler will create directory out/ii_files/ for 9354 # template instantiation 9355 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9356 $RM out/* && rmdir out 9357 cd .. 9358 $RM -r conftest 9359 $RM conftest* 9360 9361fi 9362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9363$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9364 9365 9366 9367 9368 9369 9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9371$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9372if ${lt_cv_prog_compiler_c_o+:} false; then : 9373 $as_echo_n "(cached) " >&6 9374else 9375 lt_cv_prog_compiler_c_o=no 9376 $RM -r conftest 2>/dev/null 9377 mkdir conftest 9378 cd conftest 9379 mkdir out 9380 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9381 9382 lt_compiler_flag="-o out/conftest2.$ac_objext" 9383 # Insert the option either (1) after the last *FLAGS variable, or 9384 # (2) before a word containing "conftest.", or (3) at the end. 9385 # Note that $ac_compile itself does not contain backslashes and begins 9386 # with a dollar sign (not a hyphen), so the echo should work correctly. 9387 lt_compile=`echo "$ac_compile" | $SED \ 9388 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9389 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9390 -e 's:$: $lt_compiler_flag:'` 9391 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9392 (eval "$lt_compile" 2>out/conftest.err) 9393 ac_status=$? 9394 cat out/conftest.err >&5 9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9396 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9397 then 9398 # The compiler can only warn and ignore the option if not recognized 9399 # So say no if there are warnings 9400 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9401 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9402 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9403 lt_cv_prog_compiler_c_o=yes 9404 fi 9405 fi 9406 chmod u+w . 2>&5 9407 $RM conftest* 9408 # SGI C++ compiler will create directory out/ii_files/ for 9409 # template instantiation 9410 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9411 $RM out/* && rmdir out 9412 cd .. 9413 $RM -r conftest 9414 $RM conftest* 9415 9416fi 9417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9418$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9419 9420 9421 9422 9423hard_links="nottested" 9424if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9425 # do not overwrite the value of need_locks provided by the user 9426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9427$as_echo_n "checking if we can lock with hard links... " >&6; } 9428 hard_links=yes 9429 $RM conftest* 9430 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9431 touch conftest.a 9432 ln conftest.a conftest.b 2>&5 || hard_links=no 9433 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9435$as_echo "$hard_links" >&6; } 9436 if test "$hard_links" = no; then 9437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9438$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9439 need_locks=warn 9440 fi 9441else 9442 need_locks=no 9443fi 9444 9445 9446 9447 9448 9449 9450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9451$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9452 9453 runpath_var= 9454 allow_undefined_flag= 9455 always_export_symbols=no 9456 archive_cmds= 9457 archive_expsym_cmds= 9458 compiler_needs_object=no 9459 enable_shared_with_static_runtimes=no 9460 export_dynamic_flag_spec= 9461 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9462 hardcode_automatic=no 9463 hardcode_direct=no 9464 hardcode_direct_absolute=no 9465 hardcode_libdir_flag_spec= 9466 hardcode_libdir_separator= 9467 hardcode_minus_L=no 9468 hardcode_shlibpath_var=unsupported 9469 inherit_rpath=no 9470 link_all_deplibs=unknown 9471 module_cmds= 9472 module_expsym_cmds= 9473 old_archive_from_new_cmds= 9474 old_archive_from_expsyms_cmds= 9475 thread_safe_flag_spec= 9476 whole_archive_flag_spec= 9477 # include_expsyms should be a list of space-separated symbols to be *always* 9478 # included in the symbol list 9479 include_expsyms= 9480 # exclude_expsyms can be an extended regexp of symbols to exclude 9481 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9482 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9483 # as well as any symbol that contains `d'. 9484 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9485 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9486 # platforms (ab)use it in PIC code, but their linkers get confused if 9487 # the symbol is explicitly referenced. Since portable code cannot 9488 # rely on this symbol name, it's probably fine to never include it in 9489 # preloaded symbol tables. 9490 # Exclude shared library initialization/finalization symbols. 9491 extract_expsyms_cmds= 9492 9493 case $host_os in 9494 cygwin* | mingw* | pw32* | cegcc*) 9495 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9496 # When not using gcc, we currently assume that we are using 9497 # Microsoft Visual C++. 9498 if test "$GCC" != yes; then 9499 with_gnu_ld=no 9500 fi 9501 ;; 9502 interix*) 9503 # we just hope/assume this is gcc and not c89 (= MSVC++) 9504 with_gnu_ld=yes 9505 ;; 9506 openbsd*) 9507 with_gnu_ld=no 9508 ;; 9509 esac 9510 9511 ld_shlibs=yes 9512 9513 # On some targets, GNU ld is compatible enough with the native linker 9514 # that we're better off using the native interface for both. 9515 lt_use_gnu_ld_interface=no 9516 if test "$with_gnu_ld" = yes; then 9517 case $host_os in 9518 aix*) 9519 # The AIX port of GNU ld has always aspired to compatibility 9520 # with the native linker. However, as the warning in the GNU ld 9521 # block says, versions before 2.19.5* couldn't really create working 9522 # shared libraries, regardless of the interface used. 9523 case `$LD -v 2>&1` in 9524 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9525 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9526 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9527 *) 9528 lt_use_gnu_ld_interface=yes 9529 ;; 9530 esac 9531 ;; 9532 *) 9533 lt_use_gnu_ld_interface=yes 9534 ;; 9535 esac 9536 fi 9537 9538 if test "$lt_use_gnu_ld_interface" = yes; then 9539 # If archive_cmds runs LD, not CC, wlarc should be empty 9540 wlarc='${wl}' 9541 9542 # Set some defaults for GNU ld with shared library support. These 9543 # are reset later if shared libraries are not supported. Putting them 9544 # here allows them to be overridden if necessary. 9545 runpath_var=LD_RUN_PATH 9546 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9547 export_dynamic_flag_spec='${wl}--export-dynamic' 9548 # ancient GNU ld didn't support --whole-archive et. al. 9549 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9550 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9551 else 9552 whole_archive_flag_spec= 9553 fi 9554 supports_anon_versioning=no 9555 case `$LD -v 2>&1` in 9556 *GNU\ gold*) supports_anon_versioning=yes ;; 9557 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9558 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9559 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9560 *\ 2.11.*) ;; # other 2.11 versions 9561 *) supports_anon_versioning=yes ;; 9562 esac 9563 9564 # See if GNU ld supports shared libraries. 9565 case $host_os in 9566 aix[3-9]*) 9567 # On AIX/PPC, the GNU linker is very broken 9568 if test "$host_cpu" != ia64; then 9569 ld_shlibs=no 9570 cat <<_LT_EOF 1>&2 9571 9572*** Warning: the GNU linker, at least up to release 2.19, is reported 9573*** to be unable to reliably create shared libraries on AIX. 9574*** Therefore, libtool is disabling shared libraries support. If you 9575*** really care for shared libraries, you may want to install binutils 9576*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9577*** You will then need to restart the configuration process. 9578 9579_LT_EOF 9580 fi 9581 ;; 9582 9583 amigaos*) 9584 case $host_cpu in 9585 powerpc) 9586 # see comment about AmigaOS4 .so support 9587 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9588 archive_expsym_cmds='' 9589 ;; 9590 m68k) 9591 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)' 9592 hardcode_libdir_flag_spec='-L$libdir' 9593 hardcode_minus_L=yes 9594 ;; 9595 esac 9596 ;; 9597 9598 beos*) 9599 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9600 allow_undefined_flag=unsupported 9601 # Joseph Beckenbach <[email protected]> says some releases of gcc 9602 # support --undefined. This deserves some investigation. FIXME 9603 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9604 else 9605 ld_shlibs=no 9606 fi 9607 ;; 9608 9609 cygwin* | mingw* | pw32* | cegcc*) 9610 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9611 # as there is no search path for DLLs. 9612 hardcode_libdir_flag_spec='-L$libdir' 9613 export_dynamic_flag_spec='${wl}--export-all-symbols' 9614 allow_undefined_flag=unsupported 9615 always_export_symbols=no 9616 enable_shared_with_static_runtimes=yes 9617 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' 9618 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9619 9620 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9621 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9622 # If the export-symbols file already is a .def file (1st line 9623 # is EXPORTS), use it as is; otherwise, prepend... 9624 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9625 cp $export_symbols $output_objdir/$soname.def; 9626 else 9627 echo EXPORTS > $output_objdir/$soname.def; 9628 cat $export_symbols >> $output_objdir/$soname.def; 9629 fi~ 9630 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9631 else 9632 ld_shlibs=no 9633 fi 9634 ;; 9635 9636 haiku*) 9637 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9638 link_all_deplibs=yes 9639 ;; 9640 9641 interix[3-9]*) 9642 hardcode_direct=no 9643 hardcode_shlibpath_var=no 9644 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9645 export_dynamic_flag_spec='${wl}-E' 9646 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9647 # Instead, shared libraries are loaded at an image base (0x10000000 by 9648 # default) and relocated if they conflict, which is a slow very memory 9649 # consuming and fragmenting process. To avoid this, we pick a random, 9650 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9651 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9652 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9653 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' 9654 ;; 9655 9656 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9657 tmp_diet=no 9658 if test "$host_os" = linux-dietlibc; then 9659 case $cc_basename in 9660 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9661 esac 9662 fi 9663 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9664 && test "$tmp_diet" = no 9665 then 9666 tmp_addflag=' $pic_flag' 9667 tmp_sharedflag='-shared' 9668 case $cc_basename,$host_cpu in 9669 pgcc*) # Portland Group C compiler 9670 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' 9671 tmp_addflag=' $pic_flag' 9672 ;; 9673 pgf77* | pgf90* | pgf95* | pgfortran*) 9674 # Portland Group f77 and f90 compilers 9675 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' 9676 tmp_addflag=' $pic_flag -Mnomain' ;; 9677 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9678 tmp_addflag=' -i_dynamic' ;; 9679 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9680 tmp_addflag=' -i_dynamic -nofor_main' ;; 9681 ifc* | ifort*) # Intel Fortran compiler 9682 tmp_addflag=' -nofor_main' ;; 9683 lf95*) # Lahey Fortran 8.1 9684 whole_archive_flag_spec= 9685 tmp_sharedflag='--shared' ;; 9686 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9687 tmp_sharedflag='-qmkshrobj' 9688 tmp_addflag= ;; 9689 nvcc*) # Cuda Compiler Driver 2.2 9690 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' 9691 compiler_needs_object=yes 9692 ;; 9693 esac 9694 case `$CC -V 2>&1 | sed 5q` in 9695 *Sun\ C*) # Sun C 5.9 9696 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' 9697 compiler_needs_object=yes 9698 tmp_sharedflag='-G' ;; 9699 *Sun\ F*) # Sun Fortran 8.3 9700 tmp_sharedflag='-G' ;; 9701 esac 9702 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9703 9704 if test "x$supports_anon_versioning" = xyes; then 9705 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9706 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9707 echo "local: *; };" >> $output_objdir/$libname.ver~ 9708 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9709 fi 9710 9711 case $cc_basename in 9712 xlf* | bgf* | bgxlf* | mpixlf*) 9713 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9714 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9715 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9716 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9717 if test "x$supports_anon_versioning" = xyes; then 9718 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9719 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9720 echo "local: *; };" >> $output_objdir/$libname.ver~ 9721 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9722 fi 9723 ;; 9724 esac 9725 else 9726 ld_shlibs=no 9727 fi 9728 ;; 9729 9730 netbsd*) 9731 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9732 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9733 wlarc= 9734 else 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 fi 9738 ;; 9739 9740 solaris*) 9741 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9742 ld_shlibs=no 9743 cat <<_LT_EOF 1>&2 9744 9745*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9746*** create shared libraries on Solaris systems. Therefore, libtool 9747*** is disabling shared libraries support. We urge you to upgrade GNU 9748*** binutils to release 2.9.1 or newer. Another option is to modify 9749*** your PATH or compiler configuration so that the native linker is 9750*** used, and then restart. 9751 9752_LT_EOF 9753 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9754 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9755 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9756 else 9757 ld_shlibs=no 9758 fi 9759 ;; 9760 9761 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9762 case `$LD -v 2>&1` in 9763 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9764 ld_shlibs=no 9765 cat <<_LT_EOF 1>&2 9766 9767*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9768*** reliably create shared libraries on SCO systems. Therefore, libtool 9769*** is disabling shared libraries support. We urge you to upgrade GNU 9770*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9771*** your PATH or compiler configuration so that the native linker is 9772*** used, and then restart. 9773 9774_LT_EOF 9775 ;; 9776 *) 9777 # For security reasons, it is highly recommended that you always 9778 # use absolute paths for naming shared libraries, and exclude the 9779 # DT_RUNPATH tag from executables and libraries. But doing so 9780 # requires that you compile everything twice, which is a pain. 9781 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9782 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9783 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9784 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9785 else 9786 ld_shlibs=no 9787 fi 9788 ;; 9789 esac 9790 ;; 9791 9792 sunos4*) 9793 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9794 wlarc= 9795 hardcode_direct=yes 9796 hardcode_shlibpath_var=no 9797 ;; 9798 9799 *) 9800 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9801 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9802 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9803 else 9804 ld_shlibs=no 9805 fi 9806 ;; 9807 esac 9808 9809 if test "$ld_shlibs" = no; then 9810 runpath_var= 9811 hardcode_libdir_flag_spec= 9812 export_dynamic_flag_spec= 9813 whole_archive_flag_spec= 9814 fi 9815 else 9816 # PORTME fill in a description of your system's linker (not GNU ld) 9817 case $host_os in 9818 aix3*) 9819 allow_undefined_flag=unsupported 9820 always_export_symbols=yes 9821 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' 9822 # Note: this linker hardcodes the directories in LIBPATH if there 9823 # are no directories specified by -L. 9824 hardcode_minus_L=yes 9825 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9826 # Neither direct hardcoding nor static linking is supported with a 9827 # broken collect2. 9828 hardcode_direct=unsupported 9829 fi 9830 ;; 9831 9832 aix[4-9]*) 9833 if test "$host_cpu" = ia64; then 9834 # On IA64, the linker does run time linking by default, so we don't 9835 # have to do anything special. 9836 aix_use_runtimelinking=no 9837 exp_sym_flag='-Bexport' 9838 no_entry_flag="" 9839 else 9840 # If we're using GNU nm, then we don't want the "-C" option. 9841 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9842 # Also, AIX nm treats weak defined symbols like other global 9843 # defined symbols, whereas GNU nm marks them as "W". 9844 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9845 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' 9846 else 9847 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' 9848 fi 9849 aix_use_runtimelinking=no 9850 9851 # Test if we are trying to use run time linking or normal 9852 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9853 # need to do runtime linking. 9854 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9855 for ld_flag in $LDFLAGS; do 9856 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9857 aix_use_runtimelinking=yes 9858 break 9859 fi 9860 done 9861 ;; 9862 esac 9863 9864 exp_sym_flag='-bexport' 9865 no_entry_flag='-bnoentry' 9866 fi 9867 9868 # When large executables or shared objects are built, AIX ld can 9869 # have problems creating the table of contents. If linking a library 9870 # or program results in "error TOC overflow" add -mminimal-toc to 9871 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9872 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9873 9874 archive_cmds='' 9875 hardcode_direct=yes 9876 hardcode_direct_absolute=yes 9877 hardcode_libdir_separator=':' 9878 link_all_deplibs=yes 9879 file_list_spec='${wl}-f,' 9880 9881 if test "$GCC" = yes; then 9882 case $host_os in aix4.[012]|aix4.[012].*) 9883 # We only want to do this on AIX 4.2 and lower, the check 9884 # below for broken collect2 doesn't work under 4.3+ 9885 collect2name=`${CC} -print-prog-name=collect2` 9886 if test -f "$collect2name" && 9887 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9888 then 9889 # We have reworked collect2 9890 : 9891 else 9892 # We have old collect2 9893 hardcode_direct=unsupported 9894 # It fails to find uninstalled libraries when the uninstalled 9895 # path is not listed in the libpath. Setting hardcode_minus_L 9896 # to unsupported forces relinking 9897 hardcode_minus_L=yes 9898 hardcode_libdir_flag_spec='-L$libdir' 9899 hardcode_libdir_separator= 9900 fi 9901 ;; 9902 esac 9903 shared_flag='-shared' 9904 if test "$aix_use_runtimelinking" = yes; then 9905 shared_flag="$shared_flag "'${wl}-G' 9906 fi 9907 else 9908 # not using gcc 9909 if test "$host_cpu" = ia64; then 9910 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9911 # chokes on -Wl,-G. The following line is correct: 9912 shared_flag='-G' 9913 else 9914 if test "$aix_use_runtimelinking" = yes; then 9915 shared_flag='${wl}-G' 9916 else 9917 shared_flag='${wl}-bM:SRE' 9918 fi 9919 fi 9920 fi 9921 9922 export_dynamic_flag_spec='${wl}-bexpall' 9923 # It seems that -bexpall does not export symbols beginning with 9924 # underscore (_), so it is better to generate a list of symbols to export. 9925 always_export_symbols=yes 9926 if test "$aix_use_runtimelinking" = yes; then 9927 # Warning - without using the other runtime loading flags (-brtl), 9928 # -berok will link without error, but may produce a broken library. 9929 allow_undefined_flag='-berok' 9930 # Determine the default libpath from the value encoded in an 9931 # empty executable. 9932 if test "${lt_cv_aix_libpath+set}" = set; then 9933 aix_libpath=$lt_cv_aix_libpath 9934else 9935 if ${lt_cv_aix_libpath_+:} false; then : 9936 $as_echo_n "(cached) " >&6 9937else 9938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9939/* end confdefs.h. */ 9940 9941int 9942main () 9943{ 9944 9945 ; 9946 return 0; 9947} 9948_ACEOF 9949if ac_fn_c_try_link "$LINENO"; then : 9950 9951 lt_aix_libpath_sed=' 9952 /Import File Strings/,/^$/ { 9953 /^0/ { 9954 s/^0 *\([^ ]*\) *$/\1/ 9955 p 9956 } 9957 }' 9958 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9959 # Check for a 64-bit object if we didn't find anything. 9960 if test -z "$lt_cv_aix_libpath_"; then 9961 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9962 fi 9963fi 9964rm -f core conftest.err conftest.$ac_objext \ 9965 conftest$ac_exeext conftest.$ac_ext 9966 if test -z "$lt_cv_aix_libpath_"; then 9967 lt_cv_aix_libpath_="/usr/lib:/lib" 9968 fi 9969 9970fi 9971 9972 aix_libpath=$lt_cv_aix_libpath_ 9973fi 9974 9975 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9976 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" 9977 else 9978 if test "$host_cpu" = ia64; then 9979 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9980 allow_undefined_flag="-z nodefs" 9981 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" 9982 else 9983 # Determine the default libpath from the value encoded in an 9984 # empty executable. 9985 if test "${lt_cv_aix_libpath+set}" = set; then 9986 aix_libpath=$lt_cv_aix_libpath 9987else 9988 if ${lt_cv_aix_libpath_+:} false; then : 9989 $as_echo_n "(cached) " >&6 9990else 9991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9992/* end confdefs.h. */ 9993 9994int 9995main () 9996{ 9997 9998 ; 9999 return 0; 10000} 10001_ACEOF 10002if ac_fn_c_try_link "$LINENO"; then : 10003 10004 lt_aix_libpath_sed=' 10005 /Import File Strings/,/^$/ { 10006 /^0/ { 10007 s/^0 *\([^ ]*\) *$/\1/ 10008 p 10009 } 10010 }' 10011 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10012 # Check for a 64-bit object if we didn't find anything. 10013 if test -z "$lt_cv_aix_libpath_"; then 10014 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10015 fi 10016fi 10017rm -f core conftest.err conftest.$ac_objext \ 10018 conftest$ac_exeext conftest.$ac_ext 10019 if test -z "$lt_cv_aix_libpath_"; then 10020 lt_cv_aix_libpath_="/usr/lib:/lib" 10021 fi 10022 10023fi 10024 10025 aix_libpath=$lt_cv_aix_libpath_ 10026fi 10027 10028 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10029 # Warning - without using the other run time loading flags, 10030 # -berok will link without error, but may produce a broken library. 10031 no_undefined_flag=' ${wl}-bernotok' 10032 allow_undefined_flag=' ${wl}-berok' 10033 if test "$with_gnu_ld" = yes; then 10034 # We only use this code for GNU lds that support --whole-archive. 10035 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10036 else 10037 # Exported symbols can be pulled into shared objects from archives 10038 whole_archive_flag_spec='$convenience' 10039 fi 10040 archive_cmds_need_lc=yes 10041 # This is similar to how AIX traditionally builds its shared libraries. 10042 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' 10043 fi 10044 fi 10045 ;; 10046 10047 amigaos*) 10048 case $host_cpu in 10049 powerpc) 10050 # see comment about AmigaOS4 .so support 10051 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10052 archive_expsym_cmds='' 10053 ;; 10054 m68k) 10055 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)' 10056 hardcode_libdir_flag_spec='-L$libdir' 10057 hardcode_minus_L=yes 10058 ;; 10059 esac 10060 ;; 10061 10062 bsdi[45]*) 10063 export_dynamic_flag_spec=-rdynamic 10064 ;; 10065 10066 cygwin* | mingw* | pw32* | cegcc*) 10067 # When not using gcc, we currently assume that we are using 10068 # Microsoft Visual C++. 10069 # hardcode_libdir_flag_spec is actually meaningless, as there is 10070 # no search path for DLLs. 10071 case $cc_basename in 10072 cl*) 10073 # Native MSVC 10074 hardcode_libdir_flag_spec=' ' 10075 allow_undefined_flag=unsupported 10076 always_export_symbols=yes 10077 file_list_spec='@' 10078 # Tell ltmain to make .lib files, not .a files. 10079 libext=lib 10080 # Tell ltmain to make .dll files, not .so files. 10081 shrext_cmds=".dll" 10082 # FIXME: Setting linknames here is a bad hack. 10083 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 10084 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10085 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 10086 else 10087 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 10088 fi~ 10089 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10090 linknames=' 10091 # The linker will not automatically build a static lib if we build a DLL. 10092 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10093 enable_shared_with_static_runtimes=yes 10094 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10095 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10096 # Don't use ranlib 10097 old_postinstall_cmds='chmod 644 $oldlib' 10098 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10099 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10100 case $lt_outputfile in 10101 *.exe|*.EXE) ;; 10102 *) 10103 lt_outputfile="$lt_outputfile.exe" 10104 lt_tool_outputfile="$lt_tool_outputfile.exe" 10105 ;; 10106 esac~ 10107 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 10108 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10109 $RM "$lt_outputfile.manifest"; 10110 fi' 10111 ;; 10112 *) 10113 # Assume MSVC wrapper 10114 hardcode_libdir_flag_spec=' ' 10115 allow_undefined_flag=unsupported 10116 # Tell ltmain to make .lib files, not .a files. 10117 libext=lib 10118 # Tell ltmain to make .dll files, not .so files. 10119 shrext_cmds=".dll" 10120 # FIXME: Setting linknames here is a bad hack. 10121 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10122 # The linker will automatically build a .lib file if we build a DLL. 10123 old_archive_from_new_cmds='true' 10124 # FIXME: Should let the user specify the lib program. 10125 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10126 enable_shared_with_static_runtimes=yes 10127 ;; 10128 esac 10129 ;; 10130 10131 darwin* | rhapsody*) 10132 10133 10134 archive_cmds_need_lc=no 10135 hardcode_direct=no 10136 hardcode_automatic=yes 10137 hardcode_shlibpath_var=unsupported 10138 if test "$lt_cv_ld_force_load" = "yes"; then 10139 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\"`' 10140 10141 else 10142 whole_archive_flag_spec='' 10143 fi 10144 link_all_deplibs=yes 10145 allow_undefined_flag="$_lt_dar_allow_undefined" 10146 case $cc_basename in 10147 ifort*) _lt_dar_can_shared=yes ;; 10148 *) _lt_dar_can_shared=$GCC ;; 10149 esac 10150 if test "$_lt_dar_can_shared" = "yes"; then 10151 output_verbose_link_cmd=func_echo_all 10152 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10153 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10154 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}" 10155 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}" 10156 10157 else 10158 ld_shlibs=no 10159 fi 10160 10161 ;; 10162 10163 dgux*) 10164 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10165 hardcode_libdir_flag_spec='-L$libdir' 10166 hardcode_shlibpath_var=no 10167 ;; 10168 10169 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10170 # support. Future versions do this automatically, but an explicit c++rt0.o 10171 # does not break anything, and helps significantly (at the cost of a little 10172 # extra space). 10173 freebsd2.2*) 10174 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10175 hardcode_libdir_flag_spec='-R$libdir' 10176 hardcode_direct=yes 10177 hardcode_shlibpath_var=no 10178 ;; 10179 10180 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10181 freebsd2.*) 10182 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10183 hardcode_direct=yes 10184 hardcode_minus_L=yes 10185 hardcode_shlibpath_var=no 10186 ;; 10187 10188 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10189 freebsd* | dragonfly*) 10190 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10191 hardcode_libdir_flag_spec='-R$libdir' 10192 hardcode_direct=yes 10193 hardcode_shlibpath_var=no 10194 ;; 10195 10196 hpux9*) 10197 if test "$GCC" = yes; then 10198 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' 10199 else 10200 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' 10201 fi 10202 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10203 hardcode_libdir_separator=: 10204 hardcode_direct=yes 10205 10206 # hardcode_minus_L: Not really in the search PATH, 10207 # but as the default location of the library. 10208 hardcode_minus_L=yes 10209 export_dynamic_flag_spec='${wl}-E' 10210 ;; 10211 10212 hpux10*) 10213 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10214 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10215 else 10216 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10217 fi 10218 if test "$with_gnu_ld" = no; then 10219 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10220 hardcode_libdir_separator=: 10221 hardcode_direct=yes 10222 hardcode_direct_absolute=yes 10223 export_dynamic_flag_spec='${wl}-E' 10224 # hardcode_minus_L: Not really in the search PATH, 10225 # but as the default location of the library. 10226 hardcode_minus_L=yes 10227 fi 10228 ;; 10229 10230 hpux11*) 10231 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10232 case $host_cpu in 10233 hppa*64*) 10234 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10235 ;; 10236 ia64*) 10237 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10238 ;; 10239 *) 10240 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10241 ;; 10242 esac 10243 else 10244 case $host_cpu in 10245 hppa*64*) 10246 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10247 ;; 10248 ia64*) 10249 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10250 ;; 10251 *) 10252 10253 # Older versions of the 11.00 compiler do not understand -b yet 10254 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10256$as_echo_n "checking if $CC understands -b... " >&6; } 10257if ${lt_cv_prog_compiler__b+:} false; then : 10258 $as_echo_n "(cached) " >&6 10259else 10260 lt_cv_prog_compiler__b=no 10261 save_LDFLAGS="$LDFLAGS" 10262 LDFLAGS="$LDFLAGS -b" 10263 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10264 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10265 # The linker can only warn and ignore the option if not recognized 10266 # So say no if there are warnings 10267 if test -s conftest.err; then 10268 # Append any errors to the config.log. 10269 cat conftest.err 1>&5 10270 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10271 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10272 if diff conftest.exp conftest.er2 >/dev/null; then 10273 lt_cv_prog_compiler__b=yes 10274 fi 10275 else 10276 lt_cv_prog_compiler__b=yes 10277 fi 10278 fi 10279 $RM -r conftest* 10280 LDFLAGS="$save_LDFLAGS" 10281 10282fi 10283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10284$as_echo "$lt_cv_prog_compiler__b" >&6; } 10285 10286if test x"$lt_cv_prog_compiler__b" = xyes; then 10287 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10288else 10289 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10290fi 10291 10292 ;; 10293 esac 10294 fi 10295 if test "$with_gnu_ld" = no; then 10296 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10297 hardcode_libdir_separator=: 10298 10299 case $host_cpu in 10300 hppa*64*|ia64*) 10301 hardcode_direct=no 10302 hardcode_shlibpath_var=no 10303 ;; 10304 *) 10305 hardcode_direct=yes 10306 hardcode_direct_absolute=yes 10307 export_dynamic_flag_spec='${wl}-E' 10308 10309 # hardcode_minus_L: Not really in the search PATH, 10310 # but as the default location of the library. 10311 hardcode_minus_L=yes 10312 ;; 10313 esac 10314 fi 10315 ;; 10316 10317 irix5* | irix6* | nonstopux*) 10318 if test "$GCC" = yes; then 10319 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' 10320 # Try to use the -exported_symbol ld option, if it does not 10321 # work, assume that -exports_file does not work either and 10322 # implicitly export all symbols. 10323 # This should be the same for all languages, so no per-tag cache variable. 10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10325$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10326if ${lt_cv_irix_exported_symbol+:} false; then : 10327 $as_echo_n "(cached) " >&6 10328else 10329 save_LDFLAGS="$LDFLAGS" 10330 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10332/* end confdefs.h. */ 10333int foo (void) { return 0; } 10334_ACEOF 10335if ac_fn_c_try_link "$LINENO"; then : 10336 lt_cv_irix_exported_symbol=yes 10337else 10338 lt_cv_irix_exported_symbol=no 10339fi 10340rm -f core conftest.err conftest.$ac_objext \ 10341 conftest$ac_exeext conftest.$ac_ext 10342 LDFLAGS="$save_LDFLAGS" 10343fi 10344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10345$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10346 if test "$lt_cv_irix_exported_symbol" = yes; then 10347 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' 10348 fi 10349 else 10350 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' 10351 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' 10352 fi 10353 archive_cmds_need_lc='no' 10354 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10355 hardcode_libdir_separator=: 10356 inherit_rpath=yes 10357 link_all_deplibs=yes 10358 ;; 10359 10360 netbsd*) 10361 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10362 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10363 else 10364 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10365 fi 10366 hardcode_libdir_flag_spec='-R$libdir' 10367 hardcode_direct=yes 10368 hardcode_shlibpath_var=no 10369 ;; 10370 10371 newsos6) 10372 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10373 hardcode_direct=yes 10374 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10375 hardcode_libdir_separator=: 10376 hardcode_shlibpath_var=no 10377 ;; 10378 10379 *nto* | *qnx*) 10380 ;; 10381 10382 openbsd*) 10383 if test -f /usr/libexec/ld.so; then 10384 hardcode_direct=yes 10385 hardcode_shlibpath_var=no 10386 hardcode_direct_absolute=yes 10387 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10388 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10389 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10390 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10391 export_dynamic_flag_spec='${wl}-E' 10392 else 10393 case $host_os in 10394 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10395 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10396 hardcode_libdir_flag_spec='-R$libdir' 10397 ;; 10398 *) 10399 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10400 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10401 ;; 10402 esac 10403 fi 10404 else 10405 ld_shlibs=no 10406 fi 10407 ;; 10408 10409 os2*) 10410 hardcode_libdir_flag_spec='-L$libdir' 10411 hardcode_minus_L=yes 10412 allow_undefined_flag=unsupported 10413 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' 10414 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10415 ;; 10416 10417 osf3*) 10418 if test "$GCC" = yes; then 10419 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10420 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' 10421 else 10422 allow_undefined_flag=' -expect_unresolved \*' 10423 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' 10424 fi 10425 archive_cmds_need_lc='no' 10426 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10427 hardcode_libdir_separator=: 10428 ;; 10429 10430 osf4* | osf5*) # as osf3* with the addition of -msym flag 10431 if test "$GCC" = yes; then 10432 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10433 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' 10434 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10435 else 10436 allow_undefined_flag=' -expect_unresolved \*' 10437 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' 10438 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~ 10439 $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' 10440 10441 # Both c and cxx compiler support -rpath directly 10442 hardcode_libdir_flag_spec='-rpath $libdir' 10443 fi 10444 archive_cmds_need_lc='no' 10445 hardcode_libdir_separator=: 10446 ;; 10447 10448 solaris*) 10449 no_undefined_flag=' -z defs' 10450 if test "$GCC" = yes; then 10451 wlarc='${wl}' 10452 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10453 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10454 $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' 10455 else 10456 case `$CC -V 2>&1` in 10457 *"Compilers 5.0"*) 10458 wlarc='' 10459 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10460 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10461 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10462 ;; 10463 *) 10464 wlarc='${wl}' 10465 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10466 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10467 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10468 ;; 10469 esac 10470 fi 10471 hardcode_libdir_flag_spec='-R$libdir' 10472 hardcode_shlibpath_var=no 10473 case $host_os in 10474 solaris2.[0-5] | solaris2.[0-5].*) ;; 10475 *) 10476 # The compiler driver will combine and reorder linker options, 10477 # but understands `-z linker_flag'. GCC discards it without `$wl', 10478 # but is careful enough not to reorder. 10479 # Supported since Solaris 2.6 (maybe 2.5.1?) 10480 if test "$GCC" = yes; then 10481 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10482 else 10483 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10484 fi 10485 ;; 10486 esac 10487 link_all_deplibs=yes 10488 ;; 10489 10490 sunos4*) 10491 if test "x$host_vendor" = xsequent; then 10492 # Use $CC to link under sequent, because it throws in some extra .o 10493 # files that make .init and .fini sections work. 10494 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10495 else 10496 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10497 fi 10498 hardcode_libdir_flag_spec='-L$libdir' 10499 hardcode_direct=yes 10500 hardcode_minus_L=yes 10501 hardcode_shlibpath_var=no 10502 ;; 10503 10504 sysv4) 10505 case $host_vendor in 10506 sni) 10507 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10508 hardcode_direct=yes # is this really true??? 10509 ;; 10510 siemens) 10511 ## LD is ld it makes a PLAMLIB 10512 ## CC just makes a GrossModule. 10513 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10514 reload_cmds='$CC -r -o $output$reload_objs' 10515 hardcode_direct=no 10516 ;; 10517 motorola) 10518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10519 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10520 ;; 10521 esac 10522 runpath_var='LD_RUN_PATH' 10523 hardcode_shlibpath_var=no 10524 ;; 10525 10526 sysv4.3*) 10527 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10528 hardcode_shlibpath_var=no 10529 export_dynamic_flag_spec='-Bexport' 10530 ;; 10531 10532 sysv4*MP*) 10533 if test -d /usr/nec; then 10534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10535 hardcode_shlibpath_var=no 10536 runpath_var=LD_RUN_PATH 10537 hardcode_runpath_var=yes 10538 ld_shlibs=yes 10539 fi 10540 ;; 10541 10542 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10543 no_undefined_flag='${wl}-z,text' 10544 archive_cmds_need_lc=no 10545 hardcode_shlibpath_var=no 10546 runpath_var='LD_RUN_PATH' 10547 10548 if test "$GCC" = yes; then 10549 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10550 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10551 else 10552 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10553 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10554 fi 10555 ;; 10556 10557 sysv5* | sco3.2v5* | sco5v6*) 10558 # Note: We can NOT use -z defs as we might desire, because we do not 10559 # link with -lc, and that would cause any symbols used from libc to 10560 # always be unresolved, which means just about no library would 10561 # ever link correctly. If we're not using GNU ld we use -z text 10562 # though, which does catch some bad symbols but isn't as heavy-handed 10563 # as -z defs. 10564 no_undefined_flag='${wl}-z,text' 10565 allow_undefined_flag='${wl}-z,nodefs' 10566 archive_cmds_need_lc=no 10567 hardcode_shlibpath_var=no 10568 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10569 hardcode_libdir_separator=':' 10570 link_all_deplibs=yes 10571 export_dynamic_flag_spec='${wl}-Bexport' 10572 runpath_var='LD_RUN_PATH' 10573 10574 if test "$GCC" = yes; then 10575 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10576 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10577 else 10578 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10579 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10580 fi 10581 ;; 10582 10583 uts4*) 10584 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10585 hardcode_libdir_flag_spec='-L$libdir' 10586 hardcode_shlibpath_var=no 10587 ;; 10588 10589 *) 10590 ld_shlibs=no 10591 ;; 10592 esac 10593 10594 if test x$host_vendor = xsni; then 10595 case $host in 10596 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10597 export_dynamic_flag_spec='${wl}-Blargedynsym' 10598 ;; 10599 esac 10600 fi 10601 fi 10602 10603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10604$as_echo "$ld_shlibs" >&6; } 10605test "$ld_shlibs" = no && can_build_shared=no 10606 10607with_gnu_ld=$with_gnu_ld 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623# 10624# Do we need to explicitly link libc? 10625# 10626case "x$archive_cmds_need_lc" in 10627x|xyes) 10628 # Assume -lc should be added 10629 archive_cmds_need_lc=yes 10630 10631 if test "$enable_shared" = yes && test "$GCC" = yes; then 10632 case $archive_cmds in 10633 *'~'*) 10634 # FIXME: we may have to deal with multi-command sequences. 10635 ;; 10636 '$CC '*) 10637 # Test whether the compiler implicitly links with -lc since on some 10638 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10639 # to ld, don't add -lc before -lgcc. 10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10641$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10642if ${lt_cv_archive_cmds_need_lc+:} false; then : 10643 $as_echo_n "(cached) " >&6 10644else 10645 $RM conftest* 10646 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10647 10648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10649 (eval $ac_compile) 2>&5 10650 ac_status=$? 10651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10652 test $ac_status = 0; } 2>conftest.err; then 10653 soname=conftest 10654 lib=conftest 10655 libobjs=conftest.$ac_objext 10656 deplibs= 10657 wl=$lt_prog_compiler_wl 10658 pic_flag=$lt_prog_compiler_pic 10659 compiler_flags=-v 10660 linker_flags=-v 10661 verstring= 10662 output_objdir=. 10663 libname=conftest 10664 lt_save_allow_undefined_flag=$allow_undefined_flag 10665 allow_undefined_flag= 10666 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10667 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10668 ac_status=$? 10669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10670 test $ac_status = 0; } 10671 then 10672 lt_cv_archive_cmds_need_lc=no 10673 else 10674 lt_cv_archive_cmds_need_lc=yes 10675 fi 10676 allow_undefined_flag=$lt_save_allow_undefined_flag 10677 else 10678 cat conftest.err 1>&5 10679 fi 10680 $RM conftest* 10681 10682fi 10683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10684$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10685 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10686 ;; 10687 esac 10688 fi 10689 ;; 10690esac 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 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10844$as_echo_n "checking dynamic linker characteristics... " >&6; } 10845 10846if test "$GCC" = yes; then 10847 case $host_os in 10848 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10849 *) lt_awk_arg="/^libraries:/" ;; 10850 esac 10851 case $host_os in 10852 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10853 *) lt_sed_strip_eq="s,=/,/,g" ;; 10854 esac 10855 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10856 case $lt_search_path_spec in 10857 *\;*) 10858 # if the path contains ";" then we assume it to be the separator 10859 # otherwise default to the standard path separator (i.e. ":") - it is 10860 # assumed that no part of a normal pathname contains ";" but that should 10861 # okay in the real world where ";" in dirpaths is itself problematic. 10862 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10863 ;; 10864 *) 10865 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10866 ;; 10867 esac 10868 # Ok, now we have the path, separated by spaces, we can step through it 10869 # and add multilib dir if necessary. 10870 lt_tmp_lt_search_path_spec= 10871 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10872 for lt_sys_path in $lt_search_path_spec; do 10873 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10874 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10875 else 10876 test -d "$lt_sys_path" && \ 10877 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10878 fi 10879 done 10880 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10881BEGIN {RS=" "; FS="/|\n";} { 10882 lt_foo=""; 10883 lt_count=0; 10884 for (lt_i = NF; lt_i > 0; lt_i--) { 10885 if ($lt_i != "" && $lt_i != ".") { 10886 if ($lt_i == "..") { 10887 lt_count++; 10888 } else { 10889 if (lt_count == 0) { 10890 lt_foo="/" $lt_i lt_foo; 10891 } else { 10892 lt_count--; 10893 } 10894 } 10895 } 10896 } 10897 if (lt_foo != "") { lt_freq[lt_foo]++; } 10898 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10899}'` 10900 # AWK program above erroneously prepends '/' to C:/dos/paths 10901 # for these hosts. 10902 case $host_os in 10903 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10904 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10905 esac 10906 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10907else 10908 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10909fi 10910library_names_spec= 10911libname_spec='lib$name' 10912soname_spec= 10913shrext_cmds=".so" 10914postinstall_cmds= 10915postuninstall_cmds= 10916finish_cmds= 10917finish_eval= 10918shlibpath_var= 10919shlibpath_overrides_runpath=unknown 10920version_type=none 10921dynamic_linker="$host_os ld.so" 10922sys_lib_dlsearch_path_spec="/lib /usr/lib" 10923need_lib_prefix=unknown 10924hardcode_into_libs=no 10925 10926# when you set need_version to no, make sure it does not cause -set_version 10927# flags to be left without arguments 10928need_version=unknown 10929 10930case $host_os in 10931aix3*) 10932 version_type=linux # correct to gnu/linux during the next big refactor 10933 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10934 shlibpath_var=LIBPATH 10935 10936 # AIX 3 has no versioning support, so we append a major version to the name. 10937 soname_spec='${libname}${release}${shared_ext}$major' 10938 ;; 10939 10940aix[4-9]*) 10941 version_type=linux # correct to gnu/linux during the next big refactor 10942 need_lib_prefix=no 10943 need_version=no 10944 hardcode_into_libs=yes 10945 if test "$host_cpu" = ia64; then 10946 # AIX 5 supports IA64 10947 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10948 shlibpath_var=LD_LIBRARY_PATH 10949 else 10950 # With GCC up to 2.95.x, collect2 would create an import file 10951 # for dependence libraries. The import file would start with 10952 # the line `#! .'. This would cause the generated library to 10953 # depend on `.', always an invalid library. This was fixed in 10954 # development snapshots of GCC prior to 3.0. 10955 case $host_os in 10956 aix4 | aix4.[01] | aix4.[01].*) 10957 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10958 echo ' yes ' 10959 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10960 : 10961 else 10962 can_build_shared=no 10963 fi 10964 ;; 10965 esac 10966 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10967 # soname into executable. Probably we can add versioning support to 10968 # collect2, so additional links can be useful in future. 10969 if test "$aix_use_runtimelinking" = yes; then 10970 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10971 # instead of lib<name>.a to let people know that these are not 10972 # typical AIX shared libraries. 10973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10974 else 10975 # We preserve .a as extension for shared libraries through AIX4.2 10976 # and later when we are not doing run time linking. 10977 library_names_spec='${libname}${release}.a $libname.a' 10978 soname_spec='${libname}${release}${shared_ext}$major' 10979 fi 10980 shlibpath_var=LIBPATH 10981 fi 10982 ;; 10983 10984amigaos*) 10985 case $host_cpu in 10986 powerpc) 10987 # Since July 2007 AmigaOS4 officially supports .so libraries. 10988 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10990 ;; 10991 m68k) 10992 library_names_spec='$libname.ixlibrary $libname.a' 10993 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10994 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' 10995 ;; 10996 esac 10997 ;; 10998 10999beos*) 11000 library_names_spec='${libname}${shared_ext}' 11001 dynamic_linker="$host_os ld.so" 11002 shlibpath_var=LIBRARY_PATH 11003 ;; 11004 11005bsdi[45]*) 11006 version_type=linux # correct to gnu/linux during the next big refactor 11007 need_version=no 11008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11009 soname_spec='${libname}${release}${shared_ext}$major' 11010 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11011 shlibpath_var=LD_LIBRARY_PATH 11012 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11013 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11014 # the default ld.so.conf also contains /usr/contrib/lib and 11015 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11016 # libtool to hard-code these into programs 11017 ;; 11018 11019cygwin* | mingw* | pw32* | cegcc*) 11020 version_type=windows 11021 shrext_cmds=".dll" 11022 need_version=no 11023 need_lib_prefix=no 11024 11025 case $GCC,$cc_basename in 11026 yes,*) 11027 # gcc 11028 library_names_spec='$libname.dll.a' 11029 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11030 postinstall_cmds='base_file=`basename \${file}`~ 11031 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11032 dldir=$destdir/`dirname \$dlpath`~ 11033 test -d \$dldir || mkdir -p \$dldir~ 11034 $install_prog $dir/$dlname \$dldir/$dlname~ 11035 chmod a+x \$dldir/$dlname~ 11036 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11037 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11038 fi' 11039 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11040 dlpath=$dir/\$dldll~ 11041 $RM \$dlpath' 11042 shlibpath_overrides_runpath=yes 11043 11044 case $host_os in 11045 cygwin*) 11046 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11047 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11048 11049 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11050 ;; 11051 mingw* | cegcc*) 11052 # MinGW DLLs use traditional 'lib' prefix 11053 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11054 ;; 11055 pw32*) 11056 # pw32 DLLs use 'pw' prefix rather than 'lib' 11057 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11058 ;; 11059 esac 11060 dynamic_linker='Win32 ld.exe' 11061 ;; 11062 11063 *,cl*) 11064 # Native MSVC 11065 libname_spec='$name' 11066 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11067 library_names_spec='${libname}.dll.lib' 11068 11069 case $build_os in 11070 mingw*) 11071 sys_lib_search_path_spec= 11072 lt_save_ifs=$IFS 11073 IFS=';' 11074 for lt_path in $LIB 11075 do 11076 IFS=$lt_save_ifs 11077 # Let DOS variable expansion print the short 8.3 style file name. 11078 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11079 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11080 done 11081 IFS=$lt_save_ifs 11082 # Convert to MSYS style. 11083 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11084 ;; 11085 cygwin*) 11086 # Convert to unix form, then to dos form, then back to unix form 11087 # but this time dos style (no spaces!) so that the unix form looks 11088 # like /cygdrive/c/PROGRA~1:/cygdr... 11089 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11090 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11091 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11092 ;; 11093 *) 11094 sys_lib_search_path_spec="$LIB" 11095 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11096 # It is most probably a Windows format PATH. 11097 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11098 else 11099 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11100 fi 11101 # FIXME: find the short name or the path components, as spaces are 11102 # common. (e.g. "Program Files" -> "PROGRA~1") 11103 ;; 11104 esac 11105 11106 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11107 postinstall_cmds='base_file=`basename \${file}`~ 11108 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11109 dldir=$destdir/`dirname \$dlpath`~ 11110 test -d \$dldir || mkdir -p \$dldir~ 11111 $install_prog $dir/$dlname \$dldir/$dlname' 11112 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11113 dlpath=$dir/\$dldll~ 11114 $RM \$dlpath' 11115 shlibpath_overrides_runpath=yes 11116 dynamic_linker='Win32 link.exe' 11117 ;; 11118 11119 *) 11120 # Assume MSVC wrapper 11121 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11122 dynamic_linker='Win32 ld.exe' 11123 ;; 11124 esac 11125 # FIXME: first we should search . and the directory the executable is in 11126 shlibpath_var=PATH 11127 ;; 11128 11129darwin* | rhapsody*) 11130 dynamic_linker="$host_os dyld" 11131 version_type=darwin 11132 need_lib_prefix=no 11133 need_version=no 11134 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11135 soname_spec='${libname}${release}${major}$shared_ext' 11136 shlibpath_overrides_runpath=yes 11137 shlibpath_var=DYLD_LIBRARY_PATH 11138 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11139 11140 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11141 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11142 ;; 11143 11144dgux*) 11145 version_type=linux # correct to gnu/linux during the next big refactor 11146 need_lib_prefix=no 11147 need_version=no 11148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11149 soname_spec='${libname}${release}${shared_ext}$major' 11150 shlibpath_var=LD_LIBRARY_PATH 11151 ;; 11152 11153freebsd* | dragonfly*) 11154 # DragonFly does not have aout. When/if they implement a new 11155 # versioning mechanism, adjust this. 11156 if test -x /usr/bin/objformat; then 11157 objformat=`/usr/bin/objformat` 11158 else 11159 case $host_os in 11160 freebsd[23].*) objformat=aout ;; 11161 *) objformat=elf ;; 11162 esac 11163 fi 11164 version_type=freebsd-$objformat 11165 case $version_type in 11166 freebsd-elf*) 11167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11168 need_version=no 11169 need_lib_prefix=no 11170 ;; 11171 freebsd-*) 11172 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11173 need_version=yes 11174 ;; 11175 esac 11176 shlibpath_var=LD_LIBRARY_PATH 11177 case $host_os in 11178 freebsd2.*) 11179 shlibpath_overrides_runpath=yes 11180 ;; 11181 freebsd3.[01]* | freebsdelf3.[01]*) 11182 shlibpath_overrides_runpath=yes 11183 hardcode_into_libs=yes 11184 ;; 11185 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11186 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11187 shlibpath_overrides_runpath=no 11188 hardcode_into_libs=yes 11189 ;; 11190 *) # from 4.6 on, and DragonFly 11191 shlibpath_overrides_runpath=yes 11192 hardcode_into_libs=yes 11193 ;; 11194 esac 11195 ;; 11196 11197gnu*) 11198 version_type=linux # correct to gnu/linux during the next big refactor 11199 need_lib_prefix=no 11200 need_version=no 11201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11202 soname_spec='${libname}${release}${shared_ext}$major' 11203 shlibpath_var=LD_LIBRARY_PATH 11204 shlibpath_overrides_runpath=no 11205 hardcode_into_libs=yes 11206 ;; 11207 11208haiku*) 11209 version_type=linux # correct to gnu/linux during the next big refactor 11210 need_lib_prefix=no 11211 need_version=no 11212 dynamic_linker="$host_os runtime_loader" 11213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11214 soname_spec='${libname}${release}${shared_ext}$major' 11215 shlibpath_var=LIBRARY_PATH 11216 shlibpath_overrides_runpath=yes 11217 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11218 hardcode_into_libs=yes 11219 ;; 11220 11221hpux9* | hpux10* | hpux11*) 11222 # Give a soname corresponding to the major version so that dld.sl refuses to 11223 # link against other versions. 11224 version_type=sunos 11225 need_lib_prefix=no 11226 need_version=no 11227 case $host_cpu in 11228 ia64*) 11229 shrext_cmds='.so' 11230 hardcode_into_libs=yes 11231 dynamic_linker="$host_os dld.so" 11232 shlibpath_var=LD_LIBRARY_PATH 11233 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11235 soname_spec='${libname}${release}${shared_ext}$major' 11236 if test "X$HPUX_IA64_MODE" = X32; then 11237 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11238 else 11239 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11240 fi 11241 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11242 ;; 11243 hppa*64*) 11244 shrext_cmds='.sl' 11245 hardcode_into_libs=yes 11246 dynamic_linker="$host_os dld.sl" 11247 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11248 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11250 soname_spec='${libname}${release}${shared_ext}$major' 11251 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11252 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11253 ;; 11254 *) 11255 shrext_cmds='.sl' 11256 dynamic_linker="$host_os dld.sl" 11257 shlibpath_var=SHLIB_PATH 11258 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11260 soname_spec='${libname}${release}${shared_ext}$major' 11261 ;; 11262 esac 11263 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11264 postinstall_cmds='chmod 555 $lib' 11265 # or fails outright, so override atomically: 11266 install_override_mode=555 11267 ;; 11268 11269interix[3-9]*) 11270 version_type=linux # correct to gnu/linux during the next big refactor 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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11276 shlibpath_var=LD_LIBRARY_PATH 11277 shlibpath_overrides_runpath=no 11278 hardcode_into_libs=yes 11279 ;; 11280 11281irix5* | irix6* | nonstopux*) 11282 case $host_os in 11283 nonstopux*) version_type=nonstopux ;; 11284 *) 11285 if test "$lt_cv_prog_gnu_ld" = yes; then 11286 version_type=linux # correct to gnu/linux during the next big refactor 11287 else 11288 version_type=irix 11289 fi ;; 11290 esac 11291 need_lib_prefix=no 11292 need_version=no 11293 soname_spec='${libname}${release}${shared_ext}$major' 11294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11295 case $host_os in 11296 irix5* | nonstopux*) 11297 libsuff= shlibsuff= 11298 ;; 11299 *) 11300 case $LD in # libtool.m4 will add one of these switches to LD 11301 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11302 libsuff= shlibsuff= libmagic=32-bit;; 11303 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11304 libsuff=32 shlibsuff=N32 libmagic=N32;; 11305 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11306 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11307 *) libsuff= shlibsuff= libmagic=never-match;; 11308 esac 11309 ;; 11310 esac 11311 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11312 shlibpath_overrides_runpath=no 11313 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11314 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11315 hardcode_into_libs=yes 11316 ;; 11317 11318# No shared lib support for Linux oldld, aout, or coff. 11319linux*oldld* | linux*aout* | linux*coff*) 11320 dynamic_linker=no 11321 ;; 11322 11323# This must be glibc/ELF. 11324linux* | k*bsd*-gnu | kopensolaris*-gnu) 11325 version_type=linux # correct to gnu/linux during the next big refactor 11326 need_lib_prefix=no 11327 need_version=no 11328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11329 soname_spec='${libname}${release}${shared_ext}$major' 11330 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11331 shlibpath_var=LD_LIBRARY_PATH 11332 shlibpath_overrides_runpath=no 11333 11334 # Some binutils ld are patched to set DT_RUNPATH 11335 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11336 $as_echo_n "(cached) " >&6 11337else 11338 lt_cv_shlibpath_overrides_runpath=no 11339 save_LDFLAGS=$LDFLAGS 11340 save_libdir=$libdir 11341 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11342 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11344/* end confdefs.h. */ 11345 11346int 11347main () 11348{ 11349 11350 ; 11351 return 0; 11352} 11353_ACEOF 11354if ac_fn_c_try_link "$LINENO"; then : 11355 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11356 lt_cv_shlibpath_overrides_runpath=yes 11357fi 11358fi 11359rm -f core conftest.err conftest.$ac_objext \ 11360 conftest$ac_exeext conftest.$ac_ext 11361 LDFLAGS=$save_LDFLAGS 11362 libdir=$save_libdir 11363 11364fi 11365 11366 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11367 11368 # This implies no fast_install, which is unacceptable. 11369 # Some rework will be needed to allow for fast_install 11370 # before this can be enabled. 11371 hardcode_into_libs=yes 11372 11373 # Append ld.so.conf contents to the search path 11374 if test -f /etc/ld.so.conf; then 11375 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' ' '` 11376 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11377 fi 11378 11379 # We used to test for /lib/ld.so.1 and disable shared libraries on 11380 # powerpc, because MkLinux only supported shared libraries with the 11381 # GNU dynamic linker. Since this was broken with cross compilers, 11382 # most powerpc-linux boxes support dynamic linking these days and 11383 # people can always --disable-shared, the test was removed, and we 11384 # assume the GNU/Linux dynamic linker is in use. 11385 dynamic_linker='GNU/Linux ld.so' 11386 ;; 11387 11388netbsd*) 11389 version_type=sunos 11390 need_lib_prefix=no 11391 need_version=no 11392 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11395 dynamic_linker='NetBSD (a.out) ld.so' 11396 else 11397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11398 soname_spec='${libname}${release}${shared_ext}$major' 11399 dynamic_linker='NetBSD ld.elf_so' 11400 fi 11401 shlibpath_var=LD_LIBRARY_PATH 11402 shlibpath_overrides_runpath=yes 11403 hardcode_into_libs=yes 11404 ;; 11405 11406newsos6) 11407 version_type=linux # correct to gnu/linux during the next big refactor 11408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11409 shlibpath_var=LD_LIBRARY_PATH 11410 shlibpath_overrides_runpath=yes 11411 ;; 11412 11413*nto* | *qnx*) 11414 version_type=qnx 11415 need_lib_prefix=no 11416 need_version=no 11417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11418 soname_spec='${libname}${release}${shared_ext}$major' 11419 shlibpath_var=LD_LIBRARY_PATH 11420 shlibpath_overrides_runpath=no 11421 hardcode_into_libs=yes 11422 dynamic_linker='ldqnx.so' 11423 ;; 11424 11425openbsd*) 11426 version_type=sunos 11427 sys_lib_dlsearch_path_spec="/usr/lib" 11428 need_lib_prefix=no 11429 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11430 case $host_os in 11431 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11432 *) need_version=no ;; 11433 esac 11434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11436 shlibpath_var=LD_LIBRARY_PATH 11437 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11438 case $host_os in 11439 openbsd2.[89] | openbsd2.[89].*) 11440 shlibpath_overrides_runpath=no 11441 ;; 11442 *) 11443 shlibpath_overrides_runpath=yes 11444 ;; 11445 esac 11446 else 11447 shlibpath_overrides_runpath=yes 11448 fi 11449 ;; 11450 11451os2*) 11452 libname_spec='$name' 11453 shrext_cmds=".dll" 11454 need_lib_prefix=no 11455 library_names_spec='$libname${shared_ext} $libname.a' 11456 dynamic_linker='OS/2 ld.exe' 11457 shlibpath_var=LIBPATH 11458 ;; 11459 11460osf3* | osf4* | osf5*) 11461 version_type=osf 11462 need_lib_prefix=no 11463 need_version=no 11464 soname_spec='${libname}${release}${shared_ext}$major' 11465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11466 shlibpath_var=LD_LIBRARY_PATH 11467 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11468 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11469 ;; 11470 11471rdos*) 11472 dynamic_linker=no 11473 ;; 11474 11475solaris*) 11476 version_type=linux # correct to gnu/linux during the next big refactor 11477 need_lib_prefix=no 11478 need_version=no 11479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11480 soname_spec='${libname}${release}${shared_ext}$major' 11481 shlibpath_var=LD_LIBRARY_PATH 11482 shlibpath_overrides_runpath=yes 11483 hardcode_into_libs=yes 11484 # ldd complains unless libraries are executable 11485 postinstall_cmds='chmod +x $lib' 11486 ;; 11487 11488sunos4*) 11489 version_type=sunos 11490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11491 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11492 shlibpath_var=LD_LIBRARY_PATH 11493 shlibpath_overrides_runpath=yes 11494 if test "$with_gnu_ld" = yes; then 11495 need_lib_prefix=no 11496 fi 11497 need_version=yes 11498 ;; 11499 11500sysv4 | sysv4.3*) 11501 version_type=linux # correct to gnu/linux during the next big refactor 11502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11503 soname_spec='${libname}${release}${shared_ext}$major' 11504 shlibpath_var=LD_LIBRARY_PATH 11505 case $host_vendor in 11506 sni) 11507 shlibpath_overrides_runpath=no 11508 need_lib_prefix=no 11509 runpath_var=LD_RUN_PATH 11510 ;; 11511 siemens) 11512 need_lib_prefix=no 11513 ;; 11514 motorola) 11515 need_lib_prefix=no 11516 need_version=no 11517 shlibpath_overrides_runpath=no 11518 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11519 ;; 11520 esac 11521 ;; 11522 11523sysv4*MP*) 11524 if test -d /usr/nec ;then 11525 version_type=linux # correct to gnu/linux during the next big refactor 11526 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11527 soname_spec='$libname${shared_ext}.$major' 11528 shlibpath_var=LD_LIBRARY_PATH 11529 fi 11530 ;; 11531 11532sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11533 version_type=freebsd-elf 11534 need_lib_prefix=no 11535 need_version=no 11536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11537 soname_spec='${libname}${release}${shared_ext}$major' 11538 shlibpath_var=LD_LIBRARY_PATH 11539 shlibpath_overrides_runpath=yes 11540 hardcode_into_libs=yes 11541 if test "$with_gnu_ld" = yes; then 11542 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11543 else 11544 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11545 case $host_os in 11546 sco3.2v5*) 11547 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11548 ;; 11549 esac 11550 fi 11551 sys_lib_dlsearch_path_spec='/usr/lib' 11552 ;; 11553 11554tpf*) 11555 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11556 version_type=linux # correct to gnu/linux during the next big refactor 11557 need_lib_prefix=no 11558 need_version=no 11559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11560 shlibpath_var=LD_LIBRARY_PATH 11561 shlibpath_overrides_runpath=no 11562 hardcode_into_libs=yes 11563 ;; 11564 11565uts4*) 11566 version_type=linux # correct to gnu/linux during the next big refactor 11567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11568 soname_spec='${libname}${release}${shared_ext}$major' 11569 shlibpath_var=LD_LIBRARY_PATH 11570 ;; 11571 11572*) 11573 dynamic_linker=no 11574 ;; 11575esac 11576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11577$as_echo "$dynamic_linker" >&6; } 11578test "$dynamic_linker" = no && can_build_shared=no 11579 11580variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11581if test "$GCC" = yes; then 11582 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11583fi 11584 11585if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11586 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11587fi 11588if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11589 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11590fi 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 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11684$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11685hardcode_action= 11686if test -n "$hardcode_libdir_flag_spec" || 11687 test -n "$runpath_var" || 11688 test "X$hardcode_automatic" = "Xyes" ; then 11689 11690 # We can hardcode non-existent directories. 11691 if test "$hardcode_direct" != no && 11692 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11693 # have to relink, otherwise we might link with an installed library 11694 # when we should be linking with a yet-to-be-installed one 11695 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11696 test "$hardcode_minus_L" != no; then 11697 # Linking always hardcodes the temporary library directory. 11698 hardcode_action=relink 11699 else 11700 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11701 hardcode_action=immediate 11702 fi 11703else 11704 # We cannot hardcode anything, or else we can only hardcode existing 11705 # directories. 11706 hardcode_action=unsupported 11707fi 11708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11709$as_echo "$hardcode_action" >&6; } 11710 11711if test "$hardcode_action" = relink || 11712 test "$inherit_rpath" = yes; then 11713 # Fast installation is not supported 11714 enable_fast_install=no 11715elif test "$shlibpath_overrides_runpath" = yes || 11716 test "$enable_shared" = no; then 11717 # Fast installation is not necessary 11718 enable_fast_install=needless 11719fi 11720 11721 11722 11723 11724 11725 11726 if test "x$enable_dlopen" != xyes; then 11727 enable_dlopen=unknown 11728 enable_dlopen_self=unknown 11729 enable_dlopen_self_static=unknown 11730else 11731 lt_cv_dlopen=no 11732 lt_cv_dlopen_libs= 11733 11734 case $host_os in 11735 beos*) 11736 lt_cv_dlopen="load_add_on" 11737 lt_cv_dlopen_libs= 11738 lt_cv_dlopen_self=yes 11739 ;; 11740 11741 mingw* | pw32* | cegcc*) 11742 lt_cv_dlopen="LoadLibrary" 11743 lt_cv_dlopen_libs= 11744 ;; 11745 11746 cygwin*) 11747 lt_cv_dlopen="dlopen" 11748 lt_cv_dlopen_libs= 11749 ;; 11750 11751 darwin*) 11752 # if libdl is installed we need to link against it 11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11754$as_echo_n "checking for dlopen in -ldl... " >&6; } 11755if ${ac_cv_lib_dl_dlopen+:} false; then : 11756 $as_echo_n "(cached) " >&6 11757else 11758 ac_check_lib_save_LIBS=$LIBS 11759LIBS="-ldl $LIBS" 11760cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11761/* end confdefs.h. */ 11762 11763/* Override any GCC internal prototype to avoid an error. 11764 Use char because int might match the return type of a GCC 11765 builtin and then its argument prototype would still apply. */ 11766#ifdef __cplusplus 11767extern "C" 11768#endif 11769char dlopen (); 11770int 11771main () 11772{ 11773return dlopen (); 11774 ; 11775 return 0; 11776} 11777_ACEOF 11778if ac_fn_c_try_link "$LINENO"; then : 11779 ac_cv_lib_dl_dlopen=yes 11780else 11781 ac_cv_lib_dl_dlopen=no 11782fi 11783rm -f core conftest.err conftest.$ac_objext \ 11784 conftest$ac_exeext conftest.$ac_ext 11785LIBS=$ac_check_lib_save_LIBS 11786fi 11787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11788$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11789if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11790 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11791else 11792 11793 lt_cv_dlopen="dyld" 11794 lt_cv_dlopen_libs= 11795 lt_cv_dlopen_self=yes 11796 11797fi 11798 11799 ;; 11800 11801 *) 11802 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11803if test "x$ac_cv_func_shl_load" = xyes; then : 11804 lt_cv_dlopen="shl_load" 11805else 11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11807$as_echo_n "checking for shl_load in -ldld... " >&6; } 11808if ${ac_cv_lib_dld_shl_load+:} false; then : 11809 $as_echo_n "(cached) " >&6 11810else 11811 ac_check_lib_save_LIBS=$LIBS 11812LIBS="-ldld $LIBS" 11813cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11814/* end confdefs.h. */ 11815 11816/* Override any GCC internal prototype to avoid an error. 11817 Use char because int might match the return type of a GCC 11818 builtin and then its argument prototype would still apply. */ 11819#ifdef __cplusplus 11820extern "C" 11821#endif 11822char shl_load (); 11823int 11824main () 11825{ 11826return shl_load (); 11827 ; 11828 return 0; 11829} 11830_ACEOF 11831if ac_fn_c_try_link "$LINENO"; then : 11832 ac_cv_lib_dld_shl_load=yes 11833else 11834 ac_cv_lib_dld_shl_load=no 11835fi 11836rm -f core conftest.err conftest.$ac_objext \ 11837 conftest$ac_exeext conftest.$ac_ext 11838LIBS=$ac_check_lib_save_LIBS 11839fi 11840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11841$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11842if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11843 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11844else 11845 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11846if test "x$ac_cv_func_dlopen" = xyes; then : 11847 lt_cv_dlopen="dlopen" 11848else 11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11850$as_echo_n "checking for dlopen in -ldl... " >&6; } 11851if ${ac_cv_lib_dl_dlopen+:} false; then : 11852 $as_echo_n "(cached) " >&6 11853else 11854 ac_check_lib_save_LIBS=$LIBS 11855LIBS="-ldl $LIBS" 11856cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11857/* end confdefs.h. */ 11858 11859/* Override any GCC internal prototype to avoid an error. 11860 Use char because int might match the return type of a GCC 11861 builtin and then its argument prototype would still apply. */ 11862#ifdef __cplusplus 11863extern "C" 11864#endif 11865char dlopen (); 11866int 11867main () 11868{ 11869return dlopen (); 11870 ; 11871 return 0; 11872} 11873_ACEOF 11874if ac_fn_c_try_link "$LINENO"; then : 11875 ac_cv_lib_dl_dlopen=yes 11876else 11877 ac_cv_lib_dl_dlopen=no 11878fi 11879rm -f core conftest.err conftest.$ac_objext \ 11880 conftest$ac_exeext conftest.$ac_ext 11881LIBS=$ac_check_lib_save_LIBS 11882fi 11883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11884$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11885if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11886 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11887else 11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11889$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11890if ${ac_cv_lib_svld_dlopen+:} false; then : 11891 $as_echo_n "(cached) " >&6 11892else 11893 ac_check_lib_save_LIBS=$LIBS 11894LIBS="-lsvld $LIBS" 11895cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11896/* end confdefs.h. */ 11897 11898/* Override any GCC internal prototype to avoid an error. 11899 Use char because int might match the return type of a GCC 11900 builtin and then its argument prototype would still apply. */ 11901#ifdef __cplusplus 11902extern "C" 11903#endif 11904char dlopen (); 11905int 11906main () 11907{ 11908return dlopen (); 11909 ; 11910 return 0; 11911} 11912_ACEOF 11913if ac_fn_c_try_link "$LINENO"; then : 11914 ac_cv_lib_svld_dlopen=yes 11915else 11916 ac_cv_lib_svld_dlopen=no 11917fi 11918rm -f core conftest.err conftest.$ac_objext \ 11919 conftest$ac_exeext conftest.$ac_ext 11920LIBS=$ac_check_lib_save_LIBS 11921fi 11922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11923$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11924if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11925 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11926else 11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11928$as_echo_n "checking for dld_link in -ldld... " >&6; } 11929if ${ac_cv_lib_dld_dld_link+:} false; then : 11930 $as_echo_n "(cached) " >&6 11931else 11932 ac_check_lib_save_LIBS=$LIBS 11933LIBS="-ldld $LIBS" 11934cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11935/* end confdefs.h. */ 11936 11937/* Override any GCC internal prototype to avoid an error. 11938 Use char because int might match the return type of a GCC 11939 builtin and then its argument prototype would still apply. */ 11940#ifdef __cplusplus 11941extern "C" 11942#endif 11943char dld_link (); 11944int 11945main () 11946{ 11947return dld_link (); 11948 ; 11949 return 0; 11950} 11951_ACEOF 11952if ac_fn_c_try_link "$LINENO"; then : 11953 ac_cv_lib_dld_dld_link=yes 11954else 11955 ac_cv_lib_dld_dld_link=no 11956fi 11957rm -f core conftest.err conftest.$ac_objext \ 11958 conftest$ac_exeext conftest.$ac_ext 11959LIBS=$ac_check_lib_save_LIBS 11960fi 11961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11962$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11963if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11964 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11965fi 11966 11967 11968fi 11969 11970 11971fi 11972 11973 11974fi 11975 11976 11977fi 11978 11979 11980fi 11981 11982 ;; 11983 esac 11984 11985 if test "x$lt_cv_dlopen" != xno; then 11986 enable_dlopen=yes 11987 else 11988 enable_dlopen=no 11989 fi 11990 11991 case $lt_cv_dlopen in 11992 dlopen) 11993 save_CPPFLAGS="$CPPFLAGS" 11994 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11995 11996 save_LDFLAGS="$LDFLAGS" 11997 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11998 11999 save_LIBS="$LIBS" 12000 LIBS="$lt_cv_dlopen_libs $LIBS" 12001 12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12003$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12004if ${lt_cv_dlopen_self+:} false; then : 12005 $as_echo_n "(cached) " >&6 12006else 12007 if test "$cross_compiling" = yes; then : 12008 lt_cv_dlopen_self=cross 12009else 12010 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12011 lt_status=$lt_dlunknown 12012 cat > conftest.$ac_ext <<_LT_EOF 12013#line $LINENO "configure" 12014#include "confdefs.h" 12015 12016#if HAVE_DLFCN_H 12017#include <dlfcn.h> 12018#endif 12019 12020#include <stdio.h> 12021 12022#ifdef RTLD_GLOBAL 12023# define LT_DLGLOBAL RTLD_GLOBAL 12024#else 12025# ifdef DL_GLOBAL 12026# define LT_DLGLOBAL DL_GLOBAL 12027# else 12028# define LT_DLGLOBAL 0 12029# endif 12030#endif 12031 12032/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12033 find out it does not work in some platform. */ 12034#ifndef LT_DLLAZY_OR_NOW 12035# ifdef RTLD_LAZY 12036# define LT_DLLAZY_OR_NOW RTLD_LAZY 12037# else 12038# ifdef DL_LAZY 12039# define LT_DLLAZY_OR_NOW DL_LAZY 12040# else 12041# ifdef RTLD_NOW 12042# define LT_DLLAZY_OR_NOW RTLD_NOW 12043# else 12044# ifdef DL_NOW 12045# define LT_DLLAZY_OR_NOW DL_NOW 12046# else 12047# define LT_DLLAZY_OR_NOW 0 12048# endif 12049# endif 12050# endif 12051# endif 12052#endif 12053 12054/* When -fvisbility=hidden is used, assume the code has been annotated 12055 correspondingly for the symbols needed. */ 12056#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12057int fnord () __attribute__((visibility("default"))); 12058#endif 12059 12060int fnord () { return 42; } 12061int main () 12062{ 12063 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12064 int status = $lt_dlunknown; 12065 12066 if (self) 12067 { 12068 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12069 else 12070 { 12071 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12072 else puts (dlerror ()); 12073 } 12074 /* dlclose (self); */ 12075 } 12076 else 12077 puts (dlerror ()); 12078 12079 return status; 12080} 12081_LT_EOF 12082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12083 (eval $ac_link) 2>&5 12084 ac_status=$? 12085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12086 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12087 (./conftest; exit; ) >&5 2>/dev/null 12088 lt_status=$? 12089 case x$lt_status in 12090 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12091 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12092 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12093 esac 12094 else : 12095 # compilation failed 12096 lt_cv_dlopen_self=no 12097 fi 12098fi 12099rm -fr conftest* 12100 12101 12102fi 12103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12104$as_echo "$lt_cv_dlopen_self" >&6; } 12105 12106 if test "x$lt_cv_dlopen_self" = xyes; then 12107 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12109$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12110if ${lt_cv_dlopen_self_static+:} false; then : 12111 $as_echo_n "(cached) " >&6 12112else 12113 if test "$cross_compiling" = yes; then : 12114 lt_cv_dlopen_self_static=cross 12115else 12116 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12117 lt_status=$lt_dlunknown 12118 cat > conftest.$ac_ext <<_LT_EOF 12119#line $LINENO "configure" 12120#include "confdefs.h" 12121 12122#if HAVE_DLFCN_H 12123#include <dlfcn.h> 12124#endif 12125 12126#include <stdio.h> 12127 12128#ifdef RTLD_GLOBAL 12129# define LT_DLGLOBAL RTLD_GLOBAL 12130#else 12131# ifdef DL_GLOBAL 12132# define LT_DLGLOBAL DL_GLOBAL 12133# else 12134# define LT_DLGLOBAL 0 12135# endif 12136#endif 12137 12138/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12139 find out it does not work in some platform. */ 12140#ifndef LT_DLLAZY_OR_NOW 12141# ifdef RTLD_LAZY 12142# define LT_DLLAZY_OR_NOW RTLD_LAZY 12143# else 12144# ifdef DL_LAZY 12145# define LT_DLLAZY_OR_NOW DL_LAZY 12146# else 12147# ifdef RTLD_NOW 12148# define LT_DLLAZY_OR_NOW RTLD_NOW 12149# else 12150# ifdef DL_NOW 12151# define LT_DLLAZY_OR_NOW DL_NOW 12152# else 12153# define LT_DLLAZY_OR_NOW 0 12154# endif 12155# endif 12156# endif 12157# endif 12158#endif 12159 12160/* When -fvisbility=hidden is used, assume the code has been annotated 12161 correspondingly for the symbols needed. */ 12162#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12163int fnord () __attribute__((visibility("default"))); 12164#endif 12165 12166int fnord () { return 42; } 12167int main () 12168{ 12169 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12170 int status = $lt_dlunknown; 12171 12172 if (self) 12173 { 12174 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12175 else 12176 { 12177 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12178 else puts (dlerror ()); 12179 } 12180 /* dlclose (self); */ 12181 } 12182 else 12183 puts (dlerror ()); 12184 12185 return status; 12186} 12187_LT_EOF 12188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12189 (eval $ac_link) 2>&5 12190 ac_status=$? 12191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12192 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12193 (./conftest; exit; ) >&5 2>/dev/null 12194 lt_status=$? 12195 case x$lt_status in 12196 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12197 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12198 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12199 esac 12200 else : 12201 # compilation failed 12202 lt_cv_dlopen_self_static=no 12203 fi 12204fi 12205rm -fr conftest* 12206 12207 12208fi 12209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12210$as_echo "$lt_cv_dlopen_self_static" >&6; } 12211 fi 12212 12213 CPPFLAGS="$save_CPPFLAGS" 12214 LDFLAGS="$save_LDFLAGS" 12215 LIBS="$save_LIBS" 12216 ;; 12217 esac 12218 12219 case $lt_cv_dlopen_self in 12220 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12221 *) enable_dlopen_self=unknown ;; 12222 esac 12223 12224 case $lt_cv_dlopen_self_static in 12225 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12226 *) enable_dlopen_self_static=unknown ;; 12227 esac 12228fi 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246striplib= 12247old_striplib= 12248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12249$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12250if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12251 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12252 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12254$as_echo "yes" >&6; } 12255else 12256# FIXME - insert some real tests, host_os isn't really good enough 12257 case $host_os in 12258 darwin*) 12259 if test -n "$STRIP" ; then 12260 striplib="$STRIP -x" 12261 old_striplib="$STRIP -S" 12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12263$as_echo "yes" >&6; } 12264 else 12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12266$as_echo "no" >&6; } 12267 fi 12268 ;; 12269 *) 12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12271$as_echo "no" >&6; } 12272 ;; 12273 esac 12274fi 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 # Report which library types will actually be built 12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12289$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12291$as_echo "$can_build_shared" >&6; } 12292 12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12294$as_echo_n "checking whether to build shared libraries... " >&6; } 12295 test "$can_build_shared" = "no" && enable_shared=no 12296 12297 # On AIX, shared libraries and static libraries use the same namespace, and 12298 # are all built from PIC. 12299 case $host_os in 12300 aix3*) 12301 test "$enable_shared" = yes && enable_static=no 12302 if test -n "$RANLIB"; then 12303 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12304 postinstall_cmds='$RANLIB $lib' 12305 fi 12306 ;; 12307 12308 aix[4-9]*) 12309 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12310 test "$enable_shared" = yes && enable_static=no 12311 fi 12312 ;; 12313 esac 12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12315$as_echo "$enable_shared" >&6; } 12316 12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12318$as_echo_n "checking whether to build static libraries... " >&6; } 12319 # Make sure either enable_shared or enable_static is yes. 12320 test "$enable_shared" = yes || enable_static=yes 12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12322$as_echo "$enable_static" >&6; } 12323 12324 12325 12326 12327fi 12328ac_ext=c 12329ac_cpp='$CPP $CPPFLAGS' 12330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12332ac_compiler_gnu=$ac_cv_c_compiler_gnu 12333 12334CC="$lt_save_CC" 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 ac_config_commands="$ac_config_commands libtool" 12351 12352 12353 12354 12355# Only expand once: 12356 12357 12358ac_ext=cpp 12359ac_cpp='$CXXCPP $CPPFLAGS' 12360ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12361ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12362ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12363if test -z "$CXX"; then 12364 if test -n "$CCC"; then 12365 CXX=$CCC 12366 else 12367 if test -n "$ac_tool_prefix"; then 12368 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12369 do 12370 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12371set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12373$as_echo_n "checking for $ac_word... " >&6; } 12374if ${ac_cv_prog_CXX+:} false; then : 12375 $as_echo_n "(cached) " >&6 12376else 12377 if test -n "$CXX"; then 12378 ac_cv_prog_CXX="$CXX" # Let the user override the test. 12379else 12380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12381for as_dir in $PATH 12382do 12383 IFS=$as_save_IFS 12384 test -z "$as_dir" && as_dir=. 12385 for ac_exec_ext in '' $ac_executable_extensions; do 12386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12387 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 12388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12389 break 2 12390 fi 12391done 12392 done 12393IFS=$as_save_IFS 12394 12395fi 12396fi 12397CXX=$ac_cv_prog_CXX 12398if test -n "$CXX"; then 12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 12400$as_echo "$CXX" >&6; } 12401else 12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12403$as_echo "no" >&6; } 12404fi 12405 12406 12407 test -n "$CXX" && break 12408 done 12409fi 12410if test -z "$CXX"; then 12411 ac_ct_CXX=$CXX 12412 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12413do 12414 # Extract the first word of "$ac_prog", so it can be a program name with args. 12415set dummy $ac_prog; ac_word=$2 12416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12417$as_echo_n "checking for $ac_word... " >&6; } 12418if ${ac_cv_prog_ac_ct_CXX+:} false; then : 12419 $as_echo_n "(cached) " >&6 12420else 12421 if test -n "$ac_ct_CXX"; then 12422 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 12423else 12424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12425for as_dir in $PATH 12426do 12427 IFS=$as_save_IFS 12428 test -z "$as_dir" && as_dir=. 12429 for ac_exec_ext in '' $ac_executable_extensions; do 12430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12431 ac_cv_prog_ac_ct_CXX="$ac_prog" 12432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12433 break 2 12434 fi 12435done 12436 done 12437IFS=$as_save_IFS 12438 12439fi 12440fi 12441ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 12442if test -n "$ac_ct_CXX"; then 12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 12444$as_echo "$ac_ct_CXX" >&6; } 12445else 12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12447$as_echo "no" >&6; } 12448fi 12449 12450 12451 test -n "$ac_ct_CXX" && break 12452done 12453 12454 if test "x$ac_ct_CXX" = x; then 12455 CXX="g++" 12456 else 12457 case $cross_compiling:$ac_tool_warned in 12458yes:) 12459{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12461ac_tool_warned=yes ;; 12462esac 12463 CXX=$ac_ct_CXX 12464 fi 12465fi 12466 12467 fi 12468fi 12469# Provide some information about the compiler. 12470$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 12471set X $ac_compile 12472ac_compiler=$2 12473for ac_option in --version -v -V -qversion; do 12474 { { ac_try="$ac_compiler $ac_option >&5" 12475case "(($ac_try" in 12476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12477 *) ac_try_echo=$ac_try;; 12478esac 12479eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12480$as_echo "$ac_try_echo"; } >&5 12481 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12482 ac_status=$? 12483 if test -s conftest.err; then 12484 sed '10a\ 12485... rest of stderr output deleted ... 12486 10q' conftest.err >conftest.er1 12487 cat conftest.er1 >&5 12488 fi 12489 rm -f conftest.er1 conftest.err 12490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12491 test $ac_status = 0; } 12492done 12493 12494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 12495$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 12496if ${ac_cv_cxx_compiler_gnu+:} false; then : 12497 $as_echo_n "(cached) " >&6 12498else 12499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12500/* end confdefs.h. */ 12501 12502int 12503main () 12504{ 12505#ifndef __GNUC__ 12506 choke me 12507#endif 12508 12509 ; 12510 return 0; 12511} 12512_ACEOF 12513if ac_fn_cxx_try_compile "$LINENO"; then : 12514 ac_compiler_gnu=yes 12515else 12516 ac_compiler_gnu=no 12517fi 12518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12519ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 12520 12521fi 12522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 12523$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 12524if test $ac_compiler_gnu = yes; then 12525 GXX=yes 12526else 12527 GXX= 12528fi 12529ac_test_CXXFLAGS=${CXXFLAGS+set} 12530ac_save_CXXFLAGS=$CXXFLAGS 12531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 12532$as_echo_n "checking whether $CXX accepts -g... " >&6; } 12533if ${ac_cv_prog_cxx_g+:} false; then : 12534 $as_echo_n "(cached) " >&6 12535else 12536 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 12537 ac_cxx_werror_flag=yes 12538 ac_cv_prog_cxx_g=no 12539 CXXFLAGS="-g" 12540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12541/* end confdefs.h. */ 12542 12543int 12544main () 12545{ 12546 12547 ; 12548 return 0; 12549} 12550_ACEOF 12551if ac_fn_cxx_try_compile "$LINENO"; then : 12552 ac_cv_prog_cxx_g=yes 12553else 12554 CXXFLAGS="" 12555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12556/* end confdefs.h. */ 12557 12558int 12559main () 12560{ 12561 12562 ; 12563 return 0; 12564} 12565_ACEOF 12566if ac_fn_cxx_try_compile "$LINENO"; then : 12567 12568else 12569 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 12570 CXXFLAGS="-g" 12571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12572/* end confdefs.h. */ 12573 12574int 12575main () 12576{ 12577 12578 ; 12579 return 0; 12580} 12581_ACEOF 12582if ac_fn_cxx_try_compile "$LINENO"; then : 12583 ac_cv_prog_cxx_g=yes 12584fi 12585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12586fi 12587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12588fi 12589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12590 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 12591fi 12592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 12593$as_echo "$ac_cv_prog_cxx_g" >&6; } 12594if test "$ac_test_CXXFLAGS" = set; then 12595 CXXFLAGS=$ac_save_CXXFLAGS 12596elif test $ac_cv_prog_cxx_g = yes; then 12597 if test "$GXX" = yes; then 12598 CXXFLAGS="-g -O2" 12599 else 12600 CXXFLAGS="-g" 12601 fi 12602else 12603 if test "$GXX" = yes; then 12604 CXXFLAGS="-O2" 12605 else 12606 CXXFLAGS= 12607 fi 12608fi 12609ac_ext=c 12610ac_cpp='$CPP $CPPFLAGS' 12611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12613ac_compiler_gnu=$ac_cv_c_compiler_gnu 12614 12615depcc="$CXX" am_compiler_list= 12616 12617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 12618$as_echo_n "checking dependency style of $depcc... " >&6; } 12619if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 12620 $as_echo_n "(cached) " >&6 12621else 12622 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12623 # We make a subdir and do the tests there. Otherwise we can end up 12624 # making bogus files that we don't know about and never remove. For 12625 # instance it was reported that on HP-UX the gcc test will end up 12626 # making a dummy file named `D' -- because `-MD' means `put the output 12627 # in D'. 12628 rm -rf conftest.dir 12629 mkdir conftest.dir 12630 # Copy depcomp to subdir because otherwise we won't find it if we're 12631 # using a relative directory. 12632 cp "$am_depcomp" conftest.dir 12633 cd conftest.dir 12634 # We will build objects and dependencies in a subdirectory because 12635 # it helps to detect inapplicable dependency modes. For instance 12636 # both Tru64's cc and ICC support -MD to output dependencies as a 12637 # side effect of compilation, but ICC will put the dependencies in 12638 # the current directory while Tru64 will put them in the object 12639 # directory. 12640 mkdir sub 12641 12642 am_cv_CXX_dependencies_compiler_type=none 12643 if test "$am_compiler_list" = ""; then 12644 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12645 fi 12646 am__universal=false 12647 case " $depcc " in #( 12648 *\ -arch\ *\ -arch\ *) am__universal=true ;; 12649 esac 12650 12651 for depmode in $am_compiler_list; do 12652 # Setup a source with many dependencies, because some compilers 12653 # like to wrap large dependency lists on column 80 (with \), and 12654 # we should not choose a depcomp mode which is confused by this. 12655 # 12656 # We need to recreate these files for each test, as the compiler may 12657 # overwrite some of them when testing with obscure command lines. 12658 # This happens at least with the AIX C compiler. 12659 : > sub/conftest.c 12660 for i in 1 2 3 4 5 6; do 12661 echo '#include "conftst'$i'.h"' >> sub/conftest.c 12662 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 12663 # Solaris 8's {/usr,}/bin/sh. 12664 touch sub/conftst$i.h 12665 done 12666 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12667 12668 # We check with `-c' and `-o' for the sake of the "dashmstdout" 12669 # mode. It turns out that the SunPro C++ compiler does not properly 12670 # handle `-M -o', and we need to detect this. Also, some Intel 12671 # versions had trouble with output in subdirs 12672 am__obj=sub/conftest.${OBJEXT-o} 12673 am__minus_obj="-o $am__obj" 12674 case $depmode in 12675 gcc) 12676 # This depmode causes a compiler race in universal mode. 12677 test "$am__universal" = false || continue 12678 ;; 12679 nosideeffect) 12680 # after this tag, mechanisms are not by side-effect, so they'll 12681 # only be used when explicitly requested 12682 if test "x$enable_dependency_tracking" = xyes; then 12683 continue 12684 else 12685 break 12686 fi 12687 ;; 12688 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 12689 # This compiler won't grok `-c -o', but also, the minuso test has 12690 # not run yet. These depmodes are late enough in the game, and 12691 # so weak that their functioning should not be impacted. 12692 am__obj=conftest.${OBJEXT-o} 12693 am__minus_obj= 12694 ;; 12695 none) break ;; 12696 esac 12697 if depmode=$depmode \ 12698 source=sub/conftest.c object=$am__obj \ 12699 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12700 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 12701 >/dev/null 2>conftest.err && 12702 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12703 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12704 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 12705 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12706 # icc doesn't choke on unknown options, it will just issue warnings 12707 # or remarks (even with -Werror). So we grep stderr for any message 12708 # that says an option was ignored or not supported. 12709 # When given -MP, icc 7.0 and 7.1 complain thusly: 12710 # icc: Command line warning: ignoring option '-M'; no argument required 12711 # The diagnosis changed in icc 8.0: 12712 # icc: Command line remark: option '-MP' not supported 12713 if (grep 'ignoring option' conftest.err || 12714 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 12715 am_cv_CXX_dependencies_compiler_type=$depmode 12716 break 12717 fi 12718 fi 12719 done 12720 12721 cd .. 12722 rm -rf conftest.dir 12723else 12724 am_cv_CXX_dependencies_compiler_type=none 12725fi 12726 12727fi 12728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 12729$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 12730CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 12731 12732 if 12733 test "x$enable_dependency_tracking" != xno \ 12734 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 12735 am__fastdepCXX_TRUE= 12736 am__fastdepCXX_FALSE='#' 12737else 12738 am__fastdepCXX_TRUE='#' 12739 am__fastdepCXX_FALSE= 12740fi 12741 12742 12743 12744 12745 12746func_stripname_cnf () 12747{ 12748 case ${2} in 12749 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 12750 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 12751 esac 12752} # func_stripname_cnf 12753 12754 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 12755 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 12756 (test "X$CXX" != "Xg++"))) ; then 12757 ac_ext=cpp 12758ac_cpp='$CXXCPP $CPPFLAGS' 12759ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12760ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12761ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12763$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12764if test -z "$CXXCPP"; then 12765 if ${ac_cv_prog_CXXCPP+:} false; then : 12766 $as_echo_n "(cached) " >&6 12767else 12768 # Double quotes because CXXCPP needs to be expanded 12769 for CXXCPP in "$CXX -E" "/lib/cpp" 12770 do 12771 ac_preproc_ok=false 12772for ac_cxx_preproc_warn_flag in '' yes 12773do 12774 # Use a header file that comes with gcc, so configuring glibc 12775 # with a fresh cross-compiler works. 12776 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12777 # <limits.h> exists even on freestanding compilers. 12778 # On the NeXT, cc -E runs the code through the compiler's parser, 12779 # not just through cpp. "Syntax error" is here to catch this case. 12780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12781/* end confdefs.h. */ 12782#ifdef __STDC__ 12783# include <limits.h> 12784#else 12785# include <assert.h> 12786#endif 12787 Syntax error 12788_ACEOF 12789if ac_fn_cxx_try_cpp "$LINENO"; then : 12790 12791else 12792 # Broken: fails on valid input. 12793continue 12794fi 12795rm -f conftest.err conftest.i conftest.$ac_ext 12796 12797 # OK, works on sane cases. Now check whether nonexistent headers 12798 # can be detected and how. 12799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12800/* end confdefs.h. */ 12801#include <ac_nonexistent.h> 12802_ACEOF 12803if ac_fn_cxx_try_cpp "$LINENO"; then : 12804 # Broken: success on invalid input. 12805continue 12806else 12807 # Passes both tests. 12808ac_preproc_ok=: 12809break 12810fi 12811rm -f conftest.err conftest.i conftest.$ac_ext 12812 12813done 12814# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12815rm -f conftest.i conftest.err conftest.$ac_ext 12816if $ac_preproc_ok; then : 12817 break 12818fi 12819 12820 done 12821 ac_cv_prog_CXXCPP=$CXXCPP 12822 12823fi 12824 CXXCPP=$ac_cv_prog_CXXCPP 12825else 12826 ac_cv_prog_CXXCPP=$CXXCPP 12827fi 12828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12829$as_echo "$CXXCPP" >&6; } 12830ac_preproc_ok=false 12831for ac_cxx_preproc_warn_flag in '' yes 12832do 12833 # Use a header file that comes with gcc, so configuring glibc 12834 # with a fresh cross-compiler works. 12835 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12836 # <limits.h> exists even on freestanding compilers. 12837 # On the NeXT, cc -E runs the code through the compiler's parser, 12838 # not just through cpp. "Syntax error" is here to catch this case. 12839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12840/* end confdefs.h. */ 12841#ifdef __STDC__ 12842# include <limits.h> 12843#else 12844# include <assert.h> 12845#endif 12846 Syntax error 12847_ACEOF 12848if ac_fn_cxx_try_cpp "$LINENO"; then : 12849 12850else 12851 # Broken: fails on valid input. 12852continue 12853fi 12854rm -f conftest.err conftest.i conftest.$ac_ext 12855 12856 # OK, works on sane cases. Now check whether nonexistent headers 12857 # can be detected and how. 12858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12859/* end confdefs.h. */ 12860#include <ac_nonexistent.h> 12861_ACEOF 12862if ac_fn_cxx_try_cpp "$LINENO"; then : 12863 # Broken: success on invalid input. 12864continue 12865else 12866 # Passes both tests. 12867ac_preproc_ok=: 12868break 12869fi 12870rm -f conftest.err conftest.i conftest.$ac_ext 12871 12872done 12873# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12874rm -f conftest.i conftest.err conftest.$ac_ext 12875if $ac_preproc_ok; then : 12876 12877else 12878 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12879$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12880as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 12881See \`config.log' for more details" "$LINENO" 5; } 12882fi 12883 12884ac_ext=c 12885ac_cpp='$CPP $CPPFLAGS' 12886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12888ac_compiler_gnu=$ac_cv_c_compiler_gnu 12889 12890else 12891 _lt_caught_CXX_error=yes 12892fi 12893 12894ac_ext=cpp 12895ac_cpp='$CXXCPP $CPPFLAGS' 12896ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12897ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12898ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12899 12900archive_cmds_need_lc_CXX=no 12901allow_undefined_flag_CXX= 12902always_export_symbols_CXX=no 12903archive_expsym_cmds_CXX= 12904compiler_needs_object_CXX=no 12905export_dynamic_flag_spec_CXX= 12906hardcode_direct_CXX=no 12907hardcode_direct_absolute_CXX=no 12908hardcode_libdir_flag_spec_CXX= 12909hardcode_libdir_separator_CXX= 12910hardcode_minus_L_CXX=no 12911hardcode_shlibpath_var_CXX=unsupported 12912hardcode_automatic_CXX=no 12913inherit_rpath_CXX=no 12914module_cmds_CXX= 12915module_expsym_cmds_CXX= 12916link_all_deplibs_CXX=unknown 12917old_archive_cmds_CXX=$old_archive_cmds 12918reload_flag_CXX=$reload_flag 12919reload_cmds_CXX=$reload_cmds 12920no_undefined_flag_CXX= 12921whole_archive_flag_spec_CXX= 12922enable_shared_with_static_runtimes_CXX=no 12923 12924# Source file extension for C++ test sources. 12925ac_ext=cpp 12926 12927# Object file extension for compiled C++ test sources. 12928objext=o 12929objext_CXX=$objext 12930 12931# No sense in running all these tests if we already determined that 12932# the CXX compiler isn't working. Some variables (like enable_shared) 12933# are currently assumed to apply to all compilers on this platform, 12934# and will be corrupted by setting them based on a non-working compiler. 12935if test "$_lt_caught_CXX_error" != yes; then 12936 # Code to be used in simple compile tests 12937 lt_simple_compile_test_code="int some_variable = 0;" 12938 12939 # Code to be used in simple link tests 12940 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12941 12942 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12943 12944 12945 12946 12947 12948 12949# If no C compiler was specified, use CC. 12950LTCC=${LTCC-"$CC"} 12951 12952# If no C compiler flags were specified, use CFLAGS. 12953LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12954 12955# Allow CC to be a program name with arguments. 12956compiler=$CC 12957 12958 12959 # save warnings/boilerplate of simple test code 12960 ac_outfile=conftest.$ac_objext 12961echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12962eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12963_lt_compiler_boilerplate=`cat conftest.err` 12964$RM conftest* 12965 12966 ac_outfile=conftest.$ac_objext 12967echo "$lt_simple_link_test_code" >conftest.$ac_ext 12968eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12969_lt_linker_boilerplate=`cat conftest.err` 12970$RM -r conftest* 12971 12972 12973 # Allow CC to be a program name with arguments. 12974 lt_save_CC=$CC 12975 lt_save_CFLAGS=$CFLAGS 12976 lt_save_LD=$LD 12977 lt_save_GCC=$GCC 12978 GCC=$GXX 12979 lt_save_with_gnu_ld=$with_gnu_ld 12980 lt_save_path_LD=$lt_cv_path_LD 12981 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12982 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12983 else 12984 $as_unset lt_cv_prog_gnu_ld 12985 fi 12986 if test -n "${lt_cv_path_LDCXX+set}"; then 12987 lt_cv_path_LD=$lt_cv_path_LDCXX 12988 else 12989 $as_unset lt_cv_path_LD 12990 fi 12991 test -z "${LDCXX+set}" || LD=$LDCXX 12992 CC=${CXX-"c++"} 12993 CFLAGS=$CXXFLAGS 12994 compiler=$CC 12995 compiler_CXX=$CC 12996 for cc_temp in $compiler""; do 12997 case $cc_temp in 12998 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12999 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13000 \-*) ;; 13001 *) break;; 13002 esac 13003done 13004cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13005 13006 13007 if test -n "$compiler"; then 13008 # We don't want -fno-exception when compiling C++ code, so set the 13009 # no_builtin_flag separately 13010 if test "$GXX" = yes; then 13011 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13012 else 13013 lt_prog_compiler_no_builtin_flag_CXX= 13014 fi 13015 13016 if test "$GXX" = yes; then 13017 # Set up default GNU C++ configuration 13018 13019 13020 13021# Check whether --with-gnu-ld was given. 13022if test "${with_gnu_ld+set}" = set; then : 13023 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 13024else 13025 with_gnu_ld=no 13026fi 13027 13028ac_prog=ld 13029if test "$GCC" = yes; then 13030 # Check if gcc -print-prog-name=ld gives a path. 13031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13032$as_echo_n "checking for ld used by $CC... " >&6; } 13033 case $host in 13034 *-*-mingw*) 13035 # gcc leaves a trailing carriage return which upsets mingw 13036 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13037 *) 13038 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13039 esac 13040 case $ac_prog in 13041 # Accept absolute paths. 13042 [\\/]* | ?:[\\/]*) 13043 re_direlt='/[^/][^/]*/\.\./' 13044 # Canonicalize the pathname of ld 13045 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13046 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13047 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13048 done 13049 test -z "$LD" && LD="$ac_prog" 13050 ;; 13051 "") 13052 # If it fails, then pretend we aren't using GCC. 13053 ac_prog=ld 13054 ;; 13055 *) 13056 # If it is relative, then search for the first ld in PATH. 13057 with_gnu_ld=unknown 13058 ;; 13059 esac 13060elif test "$with_gnu_ld" = yes; then 13061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13062$as_echo_n "checking for GNU ld... " >&6; } 13063else 13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13065$as_echo_n "checking for non-GNU ld... " >&6; } 13066fi 13067if ${lt_cv_path_LD+:} false; then : 13068 $as_echo_n "(cached) " >&6 13069else 13070 if test -z "$LD"; then 13071 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 13072 for ac_dir in $PATH; do 13073 IFS="$lt_save_ifs" 13074 test -z "$ac_dir" && ac_dir=. 13075 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13076 lt_cv_path_LD="$ac_dir/$ac_prog" 13077 # Check to see if the program is GNU ld. I'd rather use --version, 13078 # but apparently some variants of GNU ld only accept -v. 13079 # Break only if it was the GNU/non-GNU ld that we prefer. 13080 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13081 *GNU* | *'with BFD'*) 13082 test "$with_gnu_ld" != no && break 13083 ;; 13084 *) 13085 test "$with_gnu_ld" != yes && break 13086 ;; 13087 esac 13088 fi 13089 done 13090 IFS="$lt_save_ifs" 13091else 13092 lt_cv_path_LD="$LD" # Let the user override the test with a path. 13093fi 13094fi 13095 13096LD="$lt_cv_path_LD" 13097if test -n "$LD"; then 13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13099$as_echo "$LD" >&6; } 13100else 13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13102$as_echo "no" >&6; } 13103fi 13104test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13106$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13107if ${lt_cv_prog_gnu_ld+:} false; then : 13108 $as_echo_n "(cached) " >&6 13109else 13110 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13111case `$LD -v 2>&1 </dev/null` in 13112*GNU* | *'with BFD'*) 13113 lt_cv_prog_gnu_ld=yes 13114 ;; 13115*) 13116 lt_cv_prog_gnu_ld=no 13117 ;; 13118esac 13119fi 13120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13121$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13122with_gnu_ld=$lt_cv_prog_gnu_ld 13123 13124 13125 13126 13127 13128 13129 13130 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13131 # archiving commands below assume that GNU ld is being used. 13132 if test "$with_gnu_ld" = yes; then 13133 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13134 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' 13135 13136 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13137 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13138 13139 # If archive_cmds runs LD, not CC, wlarc should be empty 13140 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13141 # investigate it a little bit more. (MM) 13142 wlarc='${wl}' 13143 13144 # ancient GNU ld didn't support --whole-archive et. al. 13145 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13146 $GREP 'no-whole-archive' > /dev/null; then 13147 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13148 else 13149 whole_archive_flag_spec_CXX= 13150 fi 13151 else 13152 with_gnu_ld=no 13153 wlarc= 13154 13155 # A generic and very simple default shared library creation 13156 # command for GNU C++ for the case where it uses the native 13157 # linker, instead of GNU ld. If possible, this setting should 13158 # overridden to take advantage of the native linker features on 13159 # the platform it is being used on. 13160 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13161 fi 13162 13163 # Commands to make compiler produce verbose output that lists 13164 # what "hidden" libraries, object files and flags are used when 13165 # linking a shared library. 13166 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13167 13168 else 13169 GXX=no 13170 with_gnu_ld=no 13171 wlarc= 13172 fi 13173 13174 # PORTME: fill in a description of your system's C++ link characteristics 13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13176$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13177 ld_shlibs_CXX=yes 13178 case $host_os in 13179 aix3*) 13180 # FIXME: insert proper C++ library support 13181 ld_shlibs_CXX=no 13182 ;; 13183 aix[4-9]*) 13184 if test "$host_cpu" = ia64; then 13185 # On IA64, the linker does run time linking by default, so we don't 13186 # have to do anything special. 13187 aix_use_runtimelinking=no 13188 exp_sym_flag='-Bexport' 13189 no_entry_flag="" 13190 else 13191 aix_use_runtimelinking=no 13192 13193 # Test if we are trying to use run time linking or normal 13194 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13195 # need to do runtime linking. 13196 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13197 for ld_flag in $LDFLAGS; do 13198 case $ld_flag in 13199 *-brtl*) 13200 aix_use_runtimelinking=yes 13201 break 13202 ;; 13203 esac 13204 done 13205 ;; 13206 esac 13207 13208 exp_sym_flag='-bexport' 13209 no_entry_flag='-bnoentry' 13210 fi 13211 13212 # When large executables or shared objects are built, AIX ld can 13213 # have problems creating the table of contents. If linking a library 13214 # or program results in "error TOC overflow" add -mminimal-toc to 13215 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13216 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13217 13218 archive_cmds_CXX='' 13219 hardcode_direct_CXX=yes 13220 hardcode_direct_absolute_CXX=yes 13221 hardcode_libdir_separator_CXX=':' 13222 link_all_deplibs_CXX=yes 13223 file_list_spec_CXX='${wl}-f,' 13224 13225 if test "$GXX" = yes; then 13226 case $host_os in aix4.[012]|aix4.[012].*) 13227 # We only want to do this on AIX 4.2 and lower, the check 13228 # below for broken collect2 doesn't work under 4.3+ 13229 collect2name=`${CC} -print-prog-name=collect2` 13230 if test -f "$collect2name" && 13231 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13232 then 13233 # We have reworked collect2 13234 : 13235 else 13236 # We have old collect2 13237 hardcode_direct_CXX=unsupported 13238 # It fails to find uninstalled libraries when the uninstalled 13239 # path is not listed in the libpath. Setting hardcode_minus_L 13240 # to unsupported forces relinking 13241 hardcode_minus_L_CXX=yes 13242 hardcode_libdir_flag_spec_CXX='-L$libdir' 13243 hardcode_libdir_separator_CXX= 13244 fi 13245 esac 13246 shared_flag='-shared' 13247 if test "$aix_use_runtimelinking" = yes; then 13248 shared_flag="$shared_flag "'${wl}-G' 13249 fi 13250 else 13251 # not using gcc 13252 if test "$host_cpu" = ia64; then 13253 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13254 # chokes on -Wl,-G. The following line is correct: 13255 shared_flag='-G' 13256 else 13257 if test "$aix_use_runtimelinking" = yes; then 13258 shared_flag='${wl}-G' 13259 else 13260 shared_flag='${wl}-bM:SRE' 13261 fi 13262 fi 13263 fi 13264 13265 export_dynamic_flag_spec_CXX='${wl}-bexpall' 13266 # It seems that -bexpall does not export symbols beginning with 13267 # underscore (_), so it is better to generate a list of symbols to 13268 # export. 13269 always_export_symbols_CXX=yes 13270 if test "$aix_use_runtimelinking" = yes; then 13271 # Warning - without using the other runtime loading flags (-brtl), 13272 # -berok will link without error, but may produce a broken library. 13273 allow_undefined_flag_CXX='-berok' 13274 # Determine the default libpath from the value encoded in an empty 13275 # executable. 13276 if test "${lt_cv_aix_libpath+set}" = set; then 13277 aix_libpath=$lt_cv_aix_libpath 13278else 13279 if ${lt_cv_aix_libpath__CXX+:} false; then : 13280 $as_echo_n "(cached) " >&6 13281else 13282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13283/* end confdefs.h. */ 13284 13285int 13286main () 13287{ 13288 13289 ; 13290 return 0; 13291} 13292_ACEOF 13293if ac_fn_cxx_try_link "$LINENO"; then : 13294 13295 lt_aix_libpath_sed=' 13296 /Import File Strings/,/^$/ { 13297 /^0/ { 13298 s/^0 *\([^ ]*\) *$/\1/ 13299 p 13300 } 13301 }' 13302 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13303 # Check for a 64-bit object if we didn't find anything. 13304 if test -z "$lt_cv_aix_libpath__CXX"; then 13305 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13306 fi 13307fi 13308rm -f core conftest.err conftest.$ac_objext \ 13309 conftest$ac_exeext conftest.$ac_ext 13310 if test -z "$lt_cv_aix_libpath__CXX"; then 13311 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 13312 fi 13313 13314fi 13315 13316 aix_libpath=$lt_cv_aix_libpath__CXX 13317fi 13318 13319 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13320 13321 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" 13322 else 13323 if test "$host_cpu" = ia64; then 13324 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 13325 allow_undefined_flag_CXX="-z nodefs" 13326 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" 13327 else 13328 # Determine the default libpath from the value encoded in an 13329 # empty executable. 13330 if test "${lt_cv_aix_libpath+set}" = set; then 13331 aix_libpath=$lt_cv_aix_libpath 13332else 13333 if ${lt_cv_aix_libpath__CXX+:} false; then : 13334 $as_echo_n "(cached) " >&6 13335else 13336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13337/* end confdefs.h. */ 13338 13339int 13340main () 13341{ 13342 13343 ; 13344 return 0; 13345} 13346_ACEOF 13347if ac_fn_cxx_try_link "$LINENO"; then : 13348 13349 lt_aix_libpath_sed=' 13350 /Import File Strings/,/^$/ { 13351 /^0/ { 13352 s/^0 *\([^ ]*\) *$/\1/ 13353 p 13354 } 13355 }' 13356 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13357 # Check for a 64-bit object if we didn't find anything. 13358 if test -z "$lt_cv_aix_libpath__CXX"; then 13359 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13360 fi 13361fi 13362rm -f core conftest.err conftest.$ac_objext \ 13363 conftest$ac_exeext conftest.$ac_ext 13364 if test -z "$lt_cv_aix_libpath__CXX"; then 13365 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 13366 fi 13367 13368fi 13369 13370 aix_libpath=$lt_cv_aix_libpath__CXX 13371fi 13372 13373 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13374 # Warning - without using the other run time loading flags, 13375 # -berok will link without error, but may produce a broken library. 13376 no_undefined_flag_CXX=' ${wl}-bernotok' 13377 allow_undefined_flag_CXX=' ${wl}-berok' 13378 if test "$with_gnu_ld" = yes; then 13379 # We only use this code for GNU lds that support --whole-archive. 13380 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13381 else 13382 # Exported symbols can be pulled into shared objects from archives 13383 whole_archive_flag_spec_CXX='$convenience' 13384 fi 13385 archive_cmds_need_lc_CXX=yes 13386 # This is similar to how AIX traditionally builds its shared 13387 # libraries. 13388 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' 13389 fi 13390 fi 13391 ;; 13392 13393 beos*) 13394 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13395 allow_undefined_flag_CXX=unsupported 13396 # Joseph Beckenbach <[email protected]> says some releases of gcc 13397 # support --undefined. This deserves some investigation. FIXME 13398 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13399 else 13400 ld_shlibs_CXX=no 13401 fi 13402 ;; 13403 13404 chorus*) 13405 case $cc_basename in 13406 *) 13407 # FIXME: insert proper C++ library support 13408 ld_shlibs_CXX=no 13409 ;; 13410 esac 13411 ;; 13412 13413 cygwin* | mingw* | pw32* | cegcc*) 13414 case $GXX,$cc_basename in 13415 ,cl* | no,cl*) 13416 # Native MSVC 13417 # hardcode_libdir_flag_spec is actually meaningless, as there is 13418 # no search path for DLLs. 13419 hardcode_libdir_flag_spec_CXX=' ' 13420 allow_undefined_flag_CXX=unsupported 13421 always_export_symbols_CXX=yes 13422 file_list_spec_CXX='@' 13423 # Tell ltmain to make .lib files, not .a files. 13424 libext=lib 13425 # Tell ltmain to make .dll files, not .so files. 13426 shrext_cmds=".dll" 13427 # FIXME: Setting linknames here is a bad hack. 13428 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 13429 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13430 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 13431 else 13432 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 13433 fi~ 13434 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13435 linknames=' 13436 # The linker will not automatically build a static lib if we build a DLL. 13437 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 13438 enable_shared_with_static_runtimes_CXX=yes 13439 # Don't use ranlib 13440 old_postinstall_cmds_CXX='chmod 644 $oldlib' 13441 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 13442 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13443 case $lt_outputfile in 13444 *.exe|*.EXE) ;; 13445 *) 13446 lt_outputfile="$lt_outputfile.exe" 13447 lt_tool_outputfile="$lt_tool_outputfile.exe" 13448 ;; 13449 esac~ 13450 func_to_tool_file "$lt_outputfile"~ 13451 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 13452 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13453 $RM "$lt_outputfile.manifest"; 13454 fi' 13455 ;; 13456 *) 13457 # g++ 13458 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13459 # as there is no search path for DLLs. 13460 hardcode_libdir_flag_spec_CXX='-L$libdir' 13461 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 13462 allow_undefined_flag_CXX=unsupported 13463 always_export_symbols_CXX=no 13464 enable_shared_with_static_runtimes_CXX=yes 13465 13466 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13467 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' 13468 # If the export-symbols file already is a .def file (1st line 13469 # is EXPORTS), use it as is; otherwise, prepend... 13470 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13471 cp $export_symbols $output_objdir/$soname.def; 13472 else 13473 echo EXPORTS > $output_objdir/$soname.def; 13474 cat $export_symbols >> $output_objdir/$soname.def; 13475 fi~ 13476 $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' 13477 else 13478 ld_shlibs_CXX=no 13479 fi 13480 ;; 13481 esac 13482 ;; 13483 darwin* | rhapsody*) 13484 13485 13486 archive_cmds_need_lc_CXX=no 13487 hardcode_direct_CXX=no 13488 hardcode_automatic_CXX=yes 13489 hardcode_shlibpath_var_CXX=unsupported 13490 if test "$lt_cv_ld_force_load" = "yes"; then 13491 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\"`' 13492 13493 else 13494 whole_archive_flag_spec_CXX='' 13495 fi 13496 link_all_deplibs_CXX=yes 13497 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 13498 case $cc_basename in 13499 ifort*) _lt_dar_can_shared=yes ;; 13500 *) _lt_dar_can_shared=$GCC ;; 13501 esac 13502 if test "$_lt_dar_can_shared" = "yes"; then 13503 output_verbose_link_cmd=func_echo_all 13504 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}" 13505 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 13506 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}" 13507 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}" 13508 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 13509 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}" 13510 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}" 13511 fi 13512 13513 else 13514 ld_shlibs_CXX=no 13515 fi 13516 13517 ;; 13518 13519 dgux*) 13520 case $cc_basename in 13521 ec++*) 13522 # FIXME: insert proper C++ library support 13523 ld_shlibs_CXX=no 13524 ;; 13525 ghcx*) 13526 # Green Hills C++ Compiler 13527 # FIXME: insert proper C++ library support 13528 ld_shlibs_CXX=no 13529 ;; 13530 *) 13531 # FIXME: insert proper C++ library support 13532 ld_shlibs_CXX=no 13533 ;; 13534 esac 13535 ;; 13536 13537 freebsd2.*) 13538 # C++ shared libraries reported to be fairly broken before 13539 # switch to ELF 13540 ld_shlibs_CXX=no 13541 ;; 13542 13543 freebsd-elf*) 13544 archive_cmds_need_lc_CXX=no 13545 ;; 13546 13547 freebsd* | dragonfly*) 13548 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13549 # conventions 13550 ld_shlibs_CXX=yes 13551 ;; 13552 13553 gnu*) 13554 ;; 13555 13556 haiku*) 13557 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13558 link_all_deplibs_CXX=yes 13559 ;; 13560 13561 hpux9*) 13562 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13563 hardcode_libdir_separator_CXX=: 13564 export_dynamic_flag_spec_CXX='${wl}-E' 13565 hardcode_direct_CXX=yes 13566 hardcode_minus_L_CXX=yes # Not in the search PATH, 13567 # but as the default 13568 # location of the library. 13569 13570 case $cc_basename in 13571 CC*) 13572 # FIXME: insert proper C++ library support 13573 ld_shlibs_CXX=no 13574 ;; 13575 aCC*) 13576 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' 13577 # Commands to make compiler produce verbose output that lists 13578 # what "hidden" libraries, object files and flags are used when 13579 # linking a shared library. 13580 # 13581 # There doesn't appear to be a way to prevent this compiler from 13582 # explicitly linking system object files so we need to strip them 13583 # from the output so that they don't get included in the library 13584 # dependencies. 13585 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"' 13586 ;; 13587 *) 13588 if test "$GXX" = yes; then 13589 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' 13590 else 13591 # FIXME: insert proper C++ library support 13592 ld_shlibs_CXX=no 13593 fi 13594 ;; 13595 esac 13596 ;; 13597 13598 hpux10*|hpux11*) 13599 if test $with_gnu_ld = no; then 13600 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13601 hardcode_libdir_separator_CXX=: 13602 13603 case $host_cpu in 13604 hppa*64*|ia64*) 13605 ;; 13606 *) 13607 export_dynamic_flag_spec_CXX='${wl}-E' 13608 ;; 13609 esac 13610 fi 13611 case $host_cpu in 13612 hppa*64*|ia64*) 13613 hardcode_direct_CXX=no 13614 hardcode_shlibpath_var_CXX=no 13615 ;; 13616 *) 13617 hardcode_direct_CXX=yes 13618 hardcode_direct_absolute_CXX=yes 13619 hardcode_minus_L_CXX=yes # Not in the search PATH, 13620 # but as the default 13621 # location of the library. 13622 ;; 13623 esac 13624 13625 case $cc_basename in 13626 CC*) 13627 # FIXME: insert proper C++ library support 13628 ld_shlibs_CXX=no 13629 ;; 13630 aCC*) 13631 case $host_cpu in 13632 hppa*64*) 13633 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13634 ;; 13635 ia64*) 13636 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13637 ;; 13638 *) 13639 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13640 ;; 13641 esac 13642 # Commands to make compiler produce verbose output that lists 13643 # what "hidden" libraries, object files and flags are used when 13644 # linking a shared library. 13645 # 13646 # There doesn't appear to be a way to prevent this compiler from 13647 # explicitly linking system object files so we need to strip them 13648 # from the output so that they don't get included in the library 13649 # dependencies. 13650 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"' 13651 ;; 13652 *) 13653 if test "$GXX" = yes; then 13654 if test $with_gnu_ld = no; then 13655 case $host_cpu in 13656 hppa*64*) 13657 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13658 ;; 13659 ia64*) 13660 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13661 ;; 13662 *) 13663 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' 13664 ;; 13665 esac 13666 fi 13667 else 13668 # FIXME: insert proper C++ library support 13669 ld_shlibs_CXX=no 13670 fi 13671 ;; 13672 esac 13673 ;; 13674 13675 interix[3-9]*) 13676 hardcode_direct_CXX=no 13677 hardcode_shlibpath_var_CXX=no 13678 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13679 export_dynamic_flag_spec_CXX='${wl}-E' 13680 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13681 # Instead, shared libraries are loaded at an image base (0x10000000 by 13682 # default) and relocated if they conflict, which is a slow very memory 13683 # consuming and fragmenting process. To avoid this, we pick a random, 13684 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13685 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13686 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' 13687 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' 13688 ;; 13689 irix5* | irix6*) 13690 case $cc_basename in 13691 CC*) 13692 # SGI C++ 13693 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' 13694 13695 # Archives containing C++ object files must be created using 13696 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13697 # necessary to make sure instantiated templates are included 13698 # in the archive. 13699 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13700 ;; 13701 *) 13702 if test "$GXX" = yes; then 13703 if test "$with_gnu_ld" = no; then 13704 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' 13705 else 13706 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' 13707 fi 13708 fi 13709 link_all_deplibs_CXX=yes 13710 ;; 13711 esac 13712 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13713 hardcode_libdir_separator_CXX=: 13714 inherit_rpath_CXX=yes 13715 ;; 13716 13717 linux* | k*bsd*-gnu | kopensolaris*-gnu) 13718 case $cc_basename in 13719 KCC*) 13720 # Kuck and Associates, Inc. (KAI) C++ Compiler 13721 13722 # KCC will only create a shared library if the output file 13723 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13724 # to its proper name (with version) after linking. 13725 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' 13726 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' 13727 # Commands to make compiler produce verbose output that lists 13728 # what "hidden" libraries, object files and flags are used when 13729 # linking a shared library. 13730 # 13731 # There doesn't appear to be a way to prevent this compiler from 13732 # explicitly linking system object files so we need to strip them 13733 # from the output so that they don't get included in the library 13734 # dependencies. 13735 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"' 13736 13737 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13738 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13739 13740 # Archives containing C++ object files must be created using 13741 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13742 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13743 ;; 13744 icpc* | ecpc* ) 13745 # Intel C++ 13746 with_gnu_ld=yes 13747 # version 8.0 and above of icpc choke on multiply defined symbols 13748 # if we add $predep_objects and $postdep_objects, however 7.1 and 13749 # earlier do not add the objects themselves. 13750 case `$CC -V 2>&1` in 13751 *"Version 7."*) 13752 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13753 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' 13754 ;; 13755 *) # Version 8.0 or newer 13756 tmp_idyn= 13757 case $host_cpu in 13758 ia64*) tmp_idyn=' -i_dynamic';; 13759 esac 13760 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13761 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' 13762 ;; 13763 esac 13764 archive_cmds_need_lc_CXX=no 13765 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13766 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13767 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13768 ;; 13769 pgCC* | pgcpp*) 13770 # Portland Group C++ compiler 13771 case `$CC -V` in 13772 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 13773 prelink_cmds_CXX='tpldir=Template.dir~ 13774 rm -rf $tpldir~ 13775 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13776 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 13777 old_archive_cmds_CXX='tpldir=Template.dir~ 13778 rm -rf $tpldir~ 13779 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13780 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 13781 $RANLIB $oldlib' 13782 archive_cmds_CXX='tpldir=Template.dir~ 13783 rm -rf $tpldir~ 13784 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13785 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13786 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13787 rm -rf $tpldir~ 13788 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13789 $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' 13790 ;; 13791 *) # Version 6 and above use weak symbols 13792 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13793 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' 13794 ;; 13795 esac 13796 13797 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 13798 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13799 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' 13800 ;; 13801 cxx*) 13802 # Compaq C++ 13803 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13804 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' 13805 13806 runpath_var=LD_RUN_PATH 13807 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13808 hardcode_libdir_separator_CXX=: 13809 13810 # Commands to make compiler produce verbose output that lists 13811 # what "hidden" libraries, object files and flags are used when 13812 # linking a shared library. 13813 # 13814 # There doesn't appear to be a way to prevent this compiler from 13815 # explicitly linking system object files so we need to strip them 13816 # from the output so that they don't get included in the library 13817 # dependencies. 13818 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' 13819 ;; 13820 xl* | mpixl* | bgxl*) 13821 # IBM XL 8.0 on PPC, with GNU ld 13822 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13823 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13824 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13825 if test "x$supports_anon_versioning" = xyes; then 13826 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13827 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13828 echo "local: *; };" >> $output_objdir/$libname.ver~ 13829 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13830 fi 13831 ;; 13832 *) 13833 case `$CC -V 2>&1 | sed 5q` in 13834 *Sun\ C*) 13835 # Sun C++ 5.9 13836 no_undefined_flag_CXX=' -zdefs' 13837 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13838 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' 13839 hardcode_libdir_flag_spec_CXX='-R$libdir' 13840 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' 13841 compiler_needs_object_CXX=yes 13842 13843 # Not sure whether something based on 13844 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13845 # would be better. 13846 output_verbose_link_cmd='func_echo_all' 13847 13848 # Archives containing C++ object files must be created using 13849 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13850 # necessary to make sure instantiated templates are included 13851 # in the archive. 13852 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13853 ;; 13854 esac 13855 ;; 13856 esac 13857 ;; 13858 13859 lynxos*) 13860 # FIXME: insert proper C++ library support 13861 ld_shlibs_CXX=no 13862 ;; 13863 13864 m88k*) 13865 # FIXME: insert proper C++ library support 13866 ld_shlibs_CXX=no 13867 ;; 13868 13869 mvs*) 13870 case $cc_basename in 13871 cxx*) 13872 # FIXME: insert proper C++ library support 13873 ld_shlibs_CXX=no 13874 ;; 13875 *) 13876 # FIXME: insert proper C++ library support 13877 ld_shlibs_CXX=no 13878 ;; 13879 esac 13880 ;; 13881 13882 netbsd*) 13883 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13884 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13885 wlarc= 13886 hardcode_libdir_flag_spec_CXX='-R$libdir' 13887 hardcode_direct_CXX=yes 13888 hardcode_shlibpath_var_CXX=no 13889 fi 13890 # Workaround some broken pre-1.5 toolchains 13891 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13892 ;; 13893 13894 *nto* | *qnx*) 13895 ld_shlibs_CXX=yes 13896 ;; 13897 13898 openbsd2*) 13899 # C++ shared libraries are fairly broken 13900 ld_shlibs_CXX=no 13901 ;; 13902 13903 openbsd*) 13904 if test -f /usr/libexec/ld.so; then 13905 hardcode_direct_CXX=yes 13906 hardcode_shlibpath_var_CXX=no 13907 hardcode_direct_absolute_CXX=yes 13908 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13909 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13910 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13911 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 13912 export_dynamic_flag_spec_CXX='${wl}-E' 13913 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13914 fi 13915 output_verbose_link_cmd=func_echo_all 13916 else 13917 ld_shlibs_CXX=no 13918 fi 13919 ;; 13920 13921 osf3* | osf4* | osf5*) 13922 case $cc_basename in 13923 KCC*) 13924 # Kuck and Associates, Inc. (KAI) C++ Compiler 13925 13926 # KCC will only create a shared library if the output file 13927 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13928 # to its proper name (with version) after linking. 13929 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' 13930 13931 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13932 hardcode_libdir_separator_CXX=: 13933 13934 # Archives containing C++ object files must be created using 13935 # the KAI C++ compiler. 13936 case $host in 13937 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13938 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13939 esac 13940 ;; 13941 RCC*) 13942 # Rational C++ 2.4.1 13943 # FIXME: insert proper C++ library support 13944 ld_shlibs_CXX=no 13945 ;; 13946 cxx*) 13947 case $host in 13948 osf3*) 13949 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13950 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' 13951 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13952 ;; 13953 *) 13954 allow_undefined_flag_CXX=' -expect_unresolved \*' 13955 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' 13956 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13957 echo "-hidden">> $lib.exp~ 13958 $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~ 13959 $RM $lib.exp' 13960 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13961 ;; 13962 esac 13963 13964 hardcode_libdir_separator_CXX=: 13965 13966 # Commands to make compiler produce verbose output that lists 13967 # what "hidden" libraries, object files and flags are used when 13968 # linking a shared library. 13969 # 13970 # There doesn't appear to be a way to prevent this compiler from 13971 # explicitly linking system object files so we need to strip them 13972 # from the output so that they don't get included in the library 13973 # dependencies. 13974 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"' 13975 ;; 13976 *) 13977 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13978 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13979 case $host in 13980 osf3*) 13981 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' 13982 ;; 13983 *) 13984 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' 13985 ;; 13986 esac 13987 13988 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13989 hardcode_libdir_separator_CXX=: 13990 13991 # Commands to make compiler produce verbose output that lists 13992 # what "hidden" libraries, object files and flags are used when 13993 # linking a shared library. 13994 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13995 13996 else 13997 # FIXME: insert proper C++ library support 13998 ld_shlibs_CXX=no 13999 fi 14000 ;; 14001 esac 14002 ;; 14003 14004 psos*) 14005 # FIXME: insert proper C++ library support 14006 ld_shlibs_CXX=no 14007 ;; 14008 14009 sunos4*) 14010 case $cc_basename in 14011 CC*) 14012 # Sun C++ 4.x 14013 # FIXME: insert proper C++ library support 14014 ld_shlibs_CXX=no 14015 ;; 14016 lcc*) 14017 # Lucid 14018 # FIXME: insert proper C++ library support 14019 ld_shlibs_CXX=no 14020 ;; 14021 *) 14022 # FIXME: insert proper C++ library support 14023 ld_shlibs_CXX=no 14024 ;; 14025 esac 14026 ;; 14027 14028 solaris*) 14029 case $cc_basename in 14030 CC* | sunCC*) 14031 # Sun C++ 4.2, 5.x and Centerline C++ 14032 archive_cmds_need_lc_CXX=yes 14033 no_undefined_flag_CXX=' -zdefs' 14034 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14035 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14036 $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' 14037 14038 hardcode_libdir_flag_spec_CXX='-R$libdir' 14039 hardcode_shlibpath_var_CXX=no 14040 case $host_os in 14041 solaris2.[0-5] | solaris2.[0-5].*) ;; 14042 *) 14043 # The compiler driver will combine and reorder linker options, 14044 # but understands `-z linker_flag'. 14045 # Supported since Solaris 2.6 (maybe 2.5.1?) 14046 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 14047 ;; 14048 esac 14049 link_all_deplibs_CXX=yes 14050 14051 output_verbose_link_cmd='func_echo_all' 14052 14053 # Archives containing C++ object files must be created using 14054 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14055 # necessary to make sure instantiated templates are included 14056 # in the archive. 14057 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14058 ;; 14059 gcx*) 14060 # Green Hills C++ Compiler 14061 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14062 14063 # The C++ compiler must be used to create the archive. 14064 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14065 ;; 14066 *) 14067 # GNU C++ compiler with Solaris linker 14068 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 14069 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 14070 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14071 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14072 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14073 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14074 14075 # Commands to make compiler produce verbose output that lists 14076 # what "hidden" libraries, object files and flags are used when 14077 # linking a shared library. 14078 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14079 else 14080 # g++ 2.7 appears to require `-G' NOT `-shared' on this 14081 # platform. 14082 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14083 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14084 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14085 14086 # Commands to make compiler produce verbose output that lists 14087 # what "hidden" libraries, object files and flags are used when 14088 # linking a shared library. 14089 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14090 fi 14091 14092 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 14093 case $host_os in 14094 solaris2.[0-5] | solaris2.[0-5].*) ;; 14095 *) 14096 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 14097 ;; 14098 esac 14099 fi 14100 ;; 14101 esac 14102 ;; 14103 14104 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14105 no_undefined_flag_CXX='${wl}-z,text' 14106 archive_cmds_need_lc_CXX=no 14107 hardcode_shlibpath_var_CXX=no 14108 runpath_var='LD_RUN_PATH' 14109 14110 case $cc_basename in 14111 CC*) 14112 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14113 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14114 ;; 14115 *) 14116 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14117 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14118 ;; 14119 esac 14120 ;; 14121 14122 sysv5* | sco3.2v5* | sco5v6*) 14123 # Note: We can NOT use -z defs as we might desire, because we do not 14124 # link with -lc, and that would cause any symbols used from libc to 14125 # always be unresolved, which means just about no library would 14126 # ever link correctly. If we're not using GNU ld we use -z text 14127 # though, which does catch some bad symbols but isn't as heavy-handed 14128 # as -z defs. 14129 no_undefined_flag_CXX='${wl}-z,text' 14130 allow_undefined_flag_CXX='${wl}-z,nodefs' 14131 archive_cmds_need_lc_CXX=no 14132 hardcode_shlibpath_var_CXX=no 14133 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 14134 hardcode_libdir_separator_CXX=':' 14135 link_all_deplibs_CXX=yes 14136 export_dynamic_flag_spec_CXX='${wl}-Bexport' 14137 runpath_var='LD_RUN_PATH' 14138 14139 case $cc_basename in 14140 CC*) 14141 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14142 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14143 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14144 '"$old_archive_cmds_CXX" 14145 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14146 '"$reload_cmds_CXX" 14147 ;; 14148 *) 14149 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14150 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14151 ;; 14152 esac 14153 ;; 14154 14155 tandem*) 14156 case $cc_basename in 14157 NCC*) 14158 # NonStop-UX NCC 3.20 14159 # FIXME: insert proper C++ library support 14160 ld_shlibs_CXX=no 14161 ;; 14162 *) 14163 # FIXME: insert proper C++ library support 14164 ld_shlibs_CXX=no 14165 ;; 14166 esac 14167 ;; 14168 14169 vxworks*) 14170 # FIXME: insert proper C++ library support 14171 ld_shlibs_CXX=no 14172 ;; 14173 14174 *) 14175 # FIXME: insert proper C++ library support 14176 ld_shlibs_CXX=no 14177 ;; 14178 esac 14179 14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14181$as_echo "$ld_shlibs_CXX" >&6; } 14182 test "$ld_shlibs_CXX" = no && can_build_shared=no 14183 14184 GCC_CXX="$GXX" 14185 LD_CXX="$LD" 14186 14187 ## CAVEAT EMPTOR: 14188 ## There is no encapsulation within the following macros, do not change 14189 ## the running order or otherwise move them around unless you know exactly 14190 ## what you are doing... 14191 # Dependencies to place before and after the object being linked: 14192predep_objects_CXX= 14193postdep_objects_CXX= 14194predeps_CXX= 14195postdeps_CXX= 14196compiler_lib_search_path_CXX= 14197 14198cat > conftest.$ac_ext <<_LT_EOF 14199class Foo 14200{ 14201public: 14202 Foo (void) { a = 0; } 14203private: 14204 int a; 14205}; 14206_LT_EOF 14207 14208 14209_lt_libdeps_save_CFLAGS=$CFLAGS 14210case "$CC $CFLAGS " in #( 14211*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14212*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14213*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 14214esac 14215 14216if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14217 (eval $ac_compile) 2>&5 14218 ac_status=$? 14219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14220 test $ac_status = 0; }; then 14221 # Parse the compiler output and extract the necessary 14222 # objects, libraries and library flags. 14223 14224 # Sentinel used to keep track of whether or not we are before 14225 # the conftest object file. 14226 pre_test_object_deps_done=no 14227 14228 for p in `eval "$output_verbose_link_cmd"`; do 14229 case ${prev}${p} in 14230 14231 -L* | -R* | -l*) 14232 # Some compilers place space between "-{L,R}" and the path. 14233 # Remove the space. 14234 if test $p = "-L" || 14235 test $p = "-R"; then 14236 prev=$p 14237 continue 14238 fi 14239 14240 # Expand the sysroot to ease extracting the directories later. 14241 if test -z "$prev"; then 14242 case $p in 14243 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14244 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14245 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14246 esac 14247 fi 14248 case $p in 14249 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14250 esac 14251 if test "$pre_test_object_deps_done" = no; then 14252 case ${prev} in 14253 -L | -R) 14254 # Internal compiler library paths should come after those 14255 # provided the user. The postdeps already come after the 14256 # user supplied libs so there is no need to process them. 14257 if test -z "$compiler_lib_search_path_CXX"; then 14258 compiler_lib_search_path_CXX="${prev}${p}" 14259 else 14260 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 14261 fi 14262 ;; 14263 # The "-l" case would never come before the object being 14264 # linked, so don't bother handling this case. 14265 esac 14266 else 14267 if test -z "$postdeps_CXX"; then 14268 postdeps_CXX="${prev}${p}" 14269 else 14270 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 14271 fi 14272 fi 14273 prev= 14274 ;; 14275 14276 *.lto.$objext) ;; # Ignore GCC LTO objects 14277 *.$objext) 14278 # This assumes that the test object file only shows up 14279 # once in the compiler output. 14280 if test "$p" = "conftest.$objext"; then 14281 pre_test_object_deps_done=yes 14282 continue 14283 fi 14284 14285 if test "$pre_test_object_deps_done" = no; then 14286 if test -z "$predep_objects_CXX"; then 14287 predep_objects_CXX="$p" 14288 else 14289 predep_objects_CXX="$predep_objects_CXX $p" 14290 fi 14291 else 14292 if test -z "$postdep_objects_CXX"; then 14293 postdep_objects_CXX="$p" 14294 else 14295 postdep_objects_CXX="$postdep_objects_CXX $p" 14296 fi 14297 fi 14298 ;; 14299 14300 *) ;; # Ignore the rest. 14301 14302 esac 14303 done 14304 14305 # Clean up. 14306 rm -f a.out a.exe 14307else 14308 echo "libtool.m4: error: problem compiling CXX test program" 14309fi 14310 14311$RM -f confest.$objext 14312CFLAGS=$_lt_libdeps_save_CFLAGS 14313 14314# PORTME: override above test on systems where it is broken 14315case $host_os in 14316interix[3-9]*) 14317 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14318 # hack all around it, let's just trust "g++" to DTRT. 14319 predep_objects_CXX= 14320 postdep_objects_CXX= 14321 postdeps_CXX= 14322 ;; 14323 14324linux*) 14325 case `$CC -V 2>&1 | sed 5q` in 14326 *Sun\ C*) 14327 # Sun C++ 5.9 14328 14329 # The more standards-conforming stlport4 library is 14330 # incompatible with the Cstd library. Avoid specifying 14331 # it if it's in CXXFLAGS. Ignore libCrun as 14332 # -library=stlport4 depends on it. 14333 case " $CXX $CXXFLAGS " in 14334 *" -library=stlport4 "*) 14335 solaris_use_stlport4=yes 14336 ;; 14337 esac 14338 14339 if test "$solaris_use_stlport4" != yes; then 14340 postdeps_CXX='-library=Cstd -library=Crun' 14341 fi 14342 ;; 14343 esac 14344 ;; 14345 14346solaris*) 14347 case $cc_basename in 14348 CC* | sunCC*) 14349 # The more standards-conforming stlport4 library is 14350 # incompatible with the Cstd library. Avoid specifying 14351 # it if it's in CXXFLAGS. Ignore libCrun as 14352 # -library=stlport4 depends on it. 14353 case " $CXX $CXXFLAGS " in 14354 *" -library=stlport4 "*) 14355 solaris_use_stlport4=yes 14356 ;; 14357 esac 14358 14359 # Adding this requires a known-good setup of shared libraries for 14360 # Sun compiler versions before 5.6, else PIC objects from an old 14361 # archive will be linked into the output, leading to subtle bugs. 14362 if test "$solaris_use_stlport4" != yes; then 14363 postdeps_CXX='-library=Cstd -library=Crun' 14364 fi 14365 ;; 14366 esac 14367 ;; 14368esac 14369 14370 14371case " $postdeps_CXX " in 14372*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14373esac 14374 compiler_lib_search_dirs_CXX= 14375if test -n "${compiler_lib_search_path_CXX}"; then 14376 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 14377fi 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393 14394 14395 14396 14397 14398 14399 14400 14401 14402 14403 14404 14405 14406 14407 14408 14409 lt_prog_compiler_wl_CXX= 14410lt_prog_compiler_pic_CXX= 14411lt_prog_compiler_static_CXX= 14412 14413 14414 # C++ specific cases for pic, static, wl, etc. 14415 if test "$GXX" = yes; then 14416 lt_prog_compiler_wl_CXX='-Wl,' 14417 lt_prog_compiler_static_CXX='-static' 14418 14419 case $host_os in 14420 aix*) 14421 # All AIX code is PIC. 14422 if test "$host_cpu" = ia64; then 14423 # AIX 5 now supports IA64 processor 14424 lt_prog_compiler_static_CXX='-Bstatic' 14425 fi 14426 ;; 14427 14428 amigaos*) 14429 case $host_cpu in 14430 powerpc) 14431 # see comment about AmigaOS4 .so support 14432 lt_prog_compiler_pic_CXX='-fPIC' 14433 ;; 14434 m68k) 14435 # FIXME: we need at least 68020 code to build shared libraries, but 14436 # adding the `-m68020' flag to GCC prevents building anything better, 14437 # like `-m68040'. 14438 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14439 ;; 14440 esac 14441 ;; 14442 14443 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14444 # PIC is the default for these OSes. 14445 ;; 14446 mingw* | cygwin* | os2* | pw32* | cegcc*) 14447 # This hack is so that the source file can tell whether it is being 14448 # built for inclusion in a dll (and should export symbols for example). 14449 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14450 # (--disable-auto-import) libraries 14451 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14452 ;; 14453 darwin* | rhapsody*) 14454 # PIC is the default on this platform 14455 # Common symbols not allowed in MH_DYLIB files 14456 lt_prog_compiler_pic_CXX='-fno-common' 14457 ;; 14458 *djgpp*) 14459 # DJGPP does not support shared libraries at all 14460 lt_prog_compiler_pic_CXX= 14461 ;; 14462 haiku*) 14463 # PIC is the default for Haiku. 14464 # The "-static" flag exists, but is broken. 14465 lt_prog_compiler_static_CXX= 14466 ;; 14467 interix[3-9]*) 14468 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14469 # Instead, we relocate shared libraries at runtime. 14470 ;; 14471 sysv4*MP*) 14472 if test -d /usr/nec; then 14473 lt_prog_compiler_pic_CXX=-Kconform_pic 14474 fi 14475 ;; 14476 hpux*) 14477 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14478 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14479 # sets the default TLS model and affects inlining. 14480 case $host_cpu in 14481 hppa*64*) 14482 ;; 14483 *) 14484 lt_prog_compiler_pic_CXX='-fPIC' 14485 ;; 14486 esac 14487 ;; 14488 *qnx* | *nto*) 14489 # QNX uses GNU C++, but need to define -shared option too, otherwise 14490 # it will coredump. 14491 lt_prog_compiler_pic_CXX='-fPIC -shared' 14492 ;; 14493 *) 14494 lt_prog_compiler_pic_CXX='-fPIC' 14495 ;; 14496 esac 14497 else 14498 case $host_os in 14499 aix[4-9]*) 14500 # All AIX code is PIC. 14501 if test "$host_cpu" = ia64; then 14502 # AIX 5 now supports IA64 processor 14503 lt_prog_compiler_static_CXX='-Bstatic' 14504 else 14505 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14506 fi 14507 ;; 14508 chorus*) 14509 case $cc_basename in 14510 cxch68*) 14511 # Green Hills C++ Compiler 14512 # _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" 14513 ;; 14514 esac 14515 ;; 14516 mingw* | cygwin* | os2* | pw32* | cegcc*) 14517 # This hack is so that the source file can tell whether it is being 14518 # built for inclusion in a dll (and should export symbols for example). 14519 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14520 ;; 14521 dgux*) 14522 case $cc_basename in 14523 ec++*) 14524 lt_prog_compiler_pic_CXX='-KPIC' 14525 ;; 14526 ghcx*) 14527 # Green Hills C++ Compiler 14528 lt_prog_compiler_pic_CXX='-pic' 14529 ;; 14530 *) 14531 ;; 14532 esac 14533 ;; 14534 freebsd* | dragonfly*) 14535 # FreeBSD uses GNU C++ 14536 ;; 14537 hpux9* | hpux10* | hpux11*) 14538 case $cc_basename in 14539 CC*) 14540 lt_prog_compiler_wl_CXX='-Wl,' 14541 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14542 if test "$host_cpu" != ia64; then 14543 lt_prog_compiler_pic_CXX='+Z' 14544 fi 14545 ;; 14546 aCC*) 14547 lt_prog_compiler_wl_CXX='-Wl,' 14548 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14549 case $host_cpu in 14550 hppa*64*|ia64*) 14551 # +Z the default 14552 ;; 14553 *) 14554 lt_prog_compiler_pic_CXX='+Z' 14555 ;; 14556 esac 14557 ;; 14558 *) 14559 ;; 14560 esac 14561 ;; 14562 interix*) 14563 # This is c89, which is MS Visual C++ (no shared libs) 14564 # Anyone wants to do a port? 14565 ;; 14566 irix5* | irix6* | nonstopux*) 14567 case $cc_basename in 14568 CC*) 14569 lt_prog_compiler_wl_CXX='-Wl,' 14570 lt_prog_compiler_static_CXX='-non_shared' 14571 # CC pic flag -KPIC is the default. 14572 ;; 14573 *) 14574 ;; 14575 esac 14576 ;; 14577 linux* | k*bsd*-gnu | kopensolaris*-gnu) 14578 case $cc_basename in 14579 KCC*) 14580 # KAI C++ Compiler 14581 lt_prog_compiler_wl_CXX='--backend -Wl,' 14582 lt_prog_compiler_pic_CXX='-fPIC' 14583 ;; 14584 ecpc* ) 14585 # old Intel C++ for x86_64 which still supported -KPIC. 14586 lt_prog_compiler_wl_CXX='-Wl,' 14587 lt_prog_compiler_pic_CXX='-KPIC' 14588 lt_prog_compiler_static_CXX='-static' 14589 ;; 14590 icpc* ) 14591 # Intel C++, used to be incompatible with GCC. 14592 # ICC 10 doesn't accept -KPIC any more. 14593 lt_prog_compiler_wl_CXX='-Wl,' 14594 lt_prog_compiler_pic_CXX='-fPIC' 14595 lt_prog_compiler_static_CXX='-static' 14596 ;; 14597 pgCC* | pgcpp*) 14598 # Portland Group C++ compiler 14599 lt_prog_compiler_wl_CXX='-Wl,' 14600 lt_prog_compiler_pic_CXX='-fpic' 14601 lt_prog_compiler_static_CXX='-Bstatic' 14602 ;; 14603 cxx*) 14604 # Compaq C++ 14605 # Make sure the PIC flag is empty. It appears that all Alpha 14606 # Linux and Compaq Tru64 Unix objects are PIC. 14607 lt_prog_compiler_pic_CXX= 14608 lt_prog_compiler_static_CXX='-non_shared' 14609 ;; 14610 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14611 # IBM XL 8.0, 9.0 on PPC and BlueGene 14612 lt_prog_compiler_wl_CXX='-Wl,' 14613 lt_prog_compiler_pic_CXX='-qpic' 14614 lt_prog_compiler_static_CXX='-qstaticlink' 14615 ;; 14616 *) 14617 case `$CC -V 2>&1 | sed 5q` in 14618 *Sun\ C*) 14619 # Sun C++ 5.9 14620 lt_prog_compiler_pic_CXX='-KPIC' 14621 lt_prog_compiler_static_CXX='-Bstatic' 14622 lt_prog_compiler_wl_CXX='-Qoption ld ' 14623 ;; 14624 esac 14625 ;; 14626 esac 14627 ;; 14628 lynxos*) 14629 ;; 14630 m88k*) 14631 ;; 14632 mvs*) 14633 case $cc_basename in 14634 cxx*) 14635 lt_prog_compiler_pic_CXX='-W c,exportall' 14636 ;; 14637 *) 14638 ;; 14639 esac 14640 ;; 14641 netbsd*) 14642 ;; 14643 *qnx* | *nto*) 14644 # QNX uses GNU C++, but need to define -shared option too, otherwise 14645 # it will coredump. 14646 lt_prog_compiler_pic_CXX='-fPIC -shared' 14647 ;; 14648 osf3* | osf4* | osf5*) 14649 case $cc_basename in 14650 KCC*) 14651 lt_prog_compiler_wl_CXX='--backend -Wl,' 14652 ;; 14653 RCC*) 14654 # Rational C++ 2.4.1 14655 lt_prog_compiler_pic_CXX='-pic' 14656 ;; 14657 cxx*) 14658 # Digital/Compaq C++ 14659 lt_prog_compiler_wl_CXX='-Wl,' 14660 # Make sure the PIC flag is empty. It appears that all Alpha 14661 # Linux and Compaq Tru64 Unix objects are PIC. 14662 lt_prog_compiler_pic_CXX= 14663 lt_prog_compiler_static_CXX='-non_shared' 14664 ;; 14665 *) 14666 ;; 14667 esac 14668 ;; 14669 psos*) 14670 ;; 14671 solaris*) 14672 case $cc_basename in 14673 CC* | sunCC*) 14674 # Sun C++ 4.2, 5.x and Centerline C++ 14675 lt_prog_compiler_pic_CXX='-KPIC' 14676 lt_prog_compiler_static_CXX='-Bstatic' 14677 lt_prog_compiler_wl_CXX='-Qoption ld ' 14678 ;; 14679 gcx*) 14680 # Green Hills C++ Compiler 14681 lt_prog_compiler_pic_CXX='-PIC' 14682 ;; 14683 *) 14684 ;; 14685 esac 14686 ;; 14687 sunos4*) 14688 case $cc_basename in 14689 CC*) 14690 # Sun C++ 4.x 14691 lt_prog_compiler_pic_CXX='-pic' 14692 lt_prog_compiler_static_CXX='-Bstatic' 14693 ;; 14694 lcc*) 14695 # Lucid 14696 lt_prog_compiler_pic_CXX='-pic' 14697 ;; 14698 *) 14699 ;; 14700 esac 14701 ;; 14702 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14703 case $cc_basename in 14704 CC*) 14705 lt_prog_compiler_wl_CXX='-Wl,' 14706 lt_prog_compiler_pic_CXX='-KPIC' 14707 lt_prog_compiler_static_CXX='-Bstatic' 14708 ;; 14709 esac 14710 ;; 14711 tandem*) 14712 case $cc_basename in 14713 NCC*) 14714 # NonStop-UX NCC 3.20 14715 lt_prog_compiler_pic_CXX='-KPIC' 14716 ;; 14717 *) 14718 ;; 14719 esac 14720 ;; 14721 vxworks*) 14722 ;; 14723 *) 14724 lt_prog_compiler_can_build_shared_CXX=no 14725 ;; 14726 esac 14727 fi 14728 14729case $host_os in 14730 # For platforms which do not support PIC, -DPIC is meaningless: 14731 *djgpp*) 14732 lt_prog_compiler_pic_CXX= 14733 ;; 14734 *) 14735 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14736 ;; 14737esac 14738 14739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14740$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14741if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 14742 $as_echo_n "(cached) " >&6 14743else 14744 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 14745fi 14746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 14747$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 14748lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 14749 14750# 14751# Check to make sure the PIC flag actually works. 14752# 14753if test -n "$lt_prog_compiler_pic_CXX"; then 14754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14755$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14756if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 14757 $as_echo_n "(cached) " >&6 14758else 14759 lt_cv_prog_compiler_pic_works_CXX=no 14760 ac_outfile=conftest.$ac_objext 14761 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14762 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 14763 # Insert the option either (1) after the last *FLAGS variable, or 14764 # (2) before a word containing "conftest.", or (3) at the end. 14765 # Note that $ac_compile itself does not contain backslashes and begins 14766 # with a dollar sign (not a hyphen), so the echo should work correctly. 14767 # The option is referenced via a variable to avoid confusing sed. 14768 lt_compile=`echo "$ac_compile" | $SED \ 14769 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14770 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14771 -e 's:$: $lt_compiler_flag:'` 14772 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14773 (eval "$lt_compile" 2>conftest.err) 14774 ac_status=$? 14775 cat conftest.err >&5 14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14777 if (exit $ac_status) && test -s "$ac_outfile"; then 14778 # The compiler can only warn and ignore the option if not recognized 14779 # So say no if there are warnings other than the usual output. 14780 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14781 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14782 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14783 lt_cv_prog_compiler_pic_works_CXX=yes 14784 fi 14785 fi 14786 $RM conftest* 14787 14788fi 14789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14790$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14791 14792if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 14793 case $lt_prog_compiler_pic_CXX in 14794 "" | " "*) ;; 14795 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14796 esac 14797else 14798 lt_prog_compiler_pic_CXX= 14799 lt_prog_compiler_can_build_shared_CXX=no 14800fi 14801 14802fi 14803 14804 14805 14806 14807 14808# 14809# Check to make sure the static flag actually works. 14810# 14811wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14813$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14814if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 14815 $as_echo_n "(cached) " >&6 14816else 14817 lt_cv_prog_compiler_static_works_CXX=no 14818 save_LDFLAGS="$LDFLAGS" 14819 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14820 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14821 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14822 # The linker can only warn and ignore the option if not recognized 14823 # So say no if there are warnings 14824 if test -s conftest.err; then 14825 # Append any errors to the config.log. 14826 cat conftest.err 1>&5 14827 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14828 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14829 if diff conftest.exp conftest.er2 >/dev/null; then 14830 lt_cv_prog_compiler_static_works_CXX=yes 14831 fi 14832 else 14833 lt_cv_prog_compiler_static_works_CXX=yes 14834 fi 14835 fi 14836 $RM -r conftest* 14837 LDFLAGS="$save_LDFLAGS" 14838 14839fi 14840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14841$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14842 14843if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 14844 : 14845else 14846 lt_prog_compiler_static_CXX= 14847fi 14848 14849 14850 14851 14852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14853$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14854if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14855 $as_echo_n "(cached) " >&6 14856else 14857 lt_cv_prog_compiler_c_o_CXX=no 14858 $RM -r conftest 2>/dev/null 14859 mkdir conftest 14860 cd conftest 14861 mkdir out 14862 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14863 14864 lt_compiler_flag="-o out/conftest2.$ac_objext" 14865 # Insert the option either (1) after the last *FLAGS variable, or 14866 # (2) before a word containing "conftest.", or (3) at the end. 14867 # Note that $ac_compile itself does not contain backslashes and begins 14868 # with a dollar sign (not a hyphen), so the echo should work correctly. 14869 lt_compile=`echo "$ac_compile" | $SED \ 14870 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14871 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14872 -e 's:$: $lt_compiler_flag:'` 14873 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14874 (eval "$lt_compile" 2>out/conftest.err) 14875 ac_status=$? 14876 cat out/conftest.err >&5 14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14878 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14879 then 14880 # The compiler can only warn and ignore the option if not recognized 14881 # So say no if there are warnings 14882 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14883 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14884 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14885 lt_cv_prog_compiler_c_o_CXX=yes 14886 fi 14887 fi 14888 chmod u+w . 2>&5 14889 $RM conftest* 14890 # SGI C++ compiler will create directory out/ii_files/ for 14891 # template instantiation 14892 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14893 $RM out/* && rmdir out 14894 cd .. 14895 $RM -r conftest 14896 $RM conftest* 14897 14898fi 14899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14900$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14901 14902 14903 14904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14905$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14906if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14907 $as_echo_n "(cached) " >&6 14908else 14909 lt_cv_prog_compiler_c_o_CXX=no 14910 $RM -r conftest 2>/dev/null 14911 mkdir conftest 14912 cd conftest 14913 mkdir out 14914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14915 14916 lt_compiler_flag="-o out/conftest2.$ac_objext" 14917 # Insert the option either (1) after the last *FLAGS variable, or 14918 # (2) before a word containing "conftest.", or (3) at the end. 14919 # Note that $ac_compile itself does not contain backslashes and begins 14920 # with a dollar sign (not a hyphen), so the echo should work correctly. 14921 lt_compile=`echo "$ac_compile" | $SED \ 14922 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14923 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14924 -e 's:$: $lt_compiler_flag:'` 14925 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14926 (eval "$lt_compile" 2>out/conftest.err) 14927 ac_status=$? 14928 cat out/conftest.err >&5 14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14930 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14931 then 14932 # The compiler can only warn and ignore the option if not recognized 14933 # So say no if there are warnings 14934 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14935 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14936 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14937 lt_cv_prog_compiler_c_o_CXX=yes 14938 fi 14939 fi 14940 chmod u+w . 2>&5 14941 $RM conftest* 14942 # SGI C++ compiler will create directory out/ii_files/ for 14943 # template instantiation 14944 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14945 $RM out/* && rmdir out 14946 cd .. 14947 $RM -r conftest 14948 $RM conftest* 14949 14950fi 14951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14952$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14953 14954 14955 14956 14957hard_links="nottested" 14958if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14959 # do not overwrite the value of need_locks provided by the user 14960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14961$as_echo_n "checking if we can lock with hard links... " >&6; } 14962 hard_links=yes 14963 $RM conftest* 14964 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14965 touch conftest.a 14966 ln conftest.a conftest.b 2>&5 || hard_links=no 14967 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14969$as_echo "$hard_links" >&6; } 14970 if test "$hard_links" = no; then 14971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14972$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14973 need_locks=warn 14974 fi 14975else 14976 need_locks=no 14977fi 14978 14979 14980 14981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14982$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14983 14984 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14985 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14986 case $host_os in 14987 aix[4-9]*) 14988 # If we're using GNU nm, then we don't want the "-C" option. 14989 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14990 # Also, AIX nm treats weak defined symbols like other global defined 14991 # symbols, whereas GNU nm marks them as "W". 14992 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14993 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' 14994 else 14995 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' 14996 fi 14997 ;; 14998 pw32*) 14999 export_symbols_cmds_CXX="$ltdll_cmds" 15000 ;; 15001 cygwin* | mingw* | cegcc*) 15002 case $cc_basename in 15003 cl*) 15004 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15005 ;; 15006 *) 15007 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' 15008 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15009 ;; 15010 esac 15011 ;; 15012 *) 15013 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15014 ;; 15015 esac 15016 15017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15018$as_echo "$ld_shlibs_CXX" >&6; } 15019test "$ld_shlibs_CXX" = no && can_build_shared=no 15020 15021with_gnu_ld_CXX=$with_gnu_ld 15022 15023 15024 15025 15026 15027 15028# 15029# Do we need to explicitly link libc? 15030# 15031case "x$archive_cmds_need_lc_CXX" in 15032x|xyes) 15033 # Assume -lc should be added 15034 archive_cmds_need_lc_CXX=yes 15035 15036 if test "$enable_shared" = yes && test "$GCC" = yes; then 15037 case $archive_cmds_CXX in 15038 *'~'*) 15039 # FIXME: we may have to deal with multi-command sequences. 15040 ;; 15041 '$CC '*) 15042 # Test whether the compiler implicitly links with -lc since on some 15043 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15044 # to ld, don't add -lc before -lgcc. 15045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15046$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15047if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 15048 $as_echo_n "(cached) " >&6 15049else 15050 $RM conftest* 15051 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15052 15053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15054 (eval $ac_compile) 2>&5 15055 ac_status=$? 15056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15057 test $ac_status = 0; } 2>conftest.err; then 15058 soname=conftest 15059 lib=conftest 15060 libobjs=conftest.$ac_objext 15061 deplibs= 15062 wl=$lt_prog_compiler_wl_CXX 15063 pic_flag=$lt_prog_compiler_pic_CXX 15064 compiler_flags=-v 15065 linker_flags=-v 15066 verstring= 15067 output_objdir=. 15068 libname=conftest 15069 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15070 allow_undefined_flag_CXX= 15071 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15072 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15073 ac_status=$? 15074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15075 test $ac_status = 0; } 15076 then 15077 lt_cv_archive_cmds_need_lc_CXX=no 15078 else 15079 lt_cv_archive_cmds_need_lc_CXX=yes 15080 fi 15081 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15082 else 15083 cat conftest.err 1>&5 15084 fi 15085 $RM conftest* 15086 15087fi 15088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 15089$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 15090 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 15091 ;; 15092 esac 15093 fi 15094 ;; 15095esac 15096 15097 15098 15099 15100 15101 15102 15103 15104 15105 15106 15107 15108 15109 15110 15111 15112 15113 15114 15115 15116 15117 15118 15119 15120 15121 15122 15123 15124 15125 15126 15127 15128 15129 15130 15131 15132 15133 15134 15135 15136 15137 15138 15139 15140 15141 15142 15143 15144 15145 15146 15147 15148 15149 15150 15151 15152 15153 15154 15155 15156 15157 15158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15159$as_echo_n "checking dynamic linker characteristics... " >&6; } 15160 15161library_names_spec= 15162libname_spec='lib$name' 15163soname_spec= 15164shrext_cmds=".so" 15165postinstall_cmds= 15166postuninstall_cmds= 15167finish_cmds= 15168finish_eval= 15169shlibpath_var= 15170shlibpath_overrides_runpath=unknown 15171version_type=none 15172dynamic_linker="$host_os ld.so" 15173sys_lib_dlsearch_path_spec="/lib /usr/lib" 15174need_lib_prefix=unknown 15175hardcode_into_libs=no 15176 15177# when you set need_version to no, make sure it does not cause -set_version 15178# flags to be left without arguments 15179need_version=unknown 15180 15181case $host_os in 15182aix3*) 15183 version_type=linux # correct to gnu/linux during the next big refactor 15184 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15185 shlibpath_var=LIBPATH 15186 15187 # AIX 3 has no versioning support, so we append a major version to the name. 15188 soname_spec='${libname}${release}${shared_ext}$major' 15189 ;; 15190 15191aix[4-9]*) 15192 version_type=linux # correct to gnu/linux during the next big refactor 15193 need_lib_prefix=no 15194 need_version=no 15195 hardcode_into_libs=yes 15196 if test "$host_cpu" = ia64; then 15197 # AIX 5 supports IA64 15198 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15199 shlibpath_var=LD_LIBRARY_PATH 15200 else 15201 # With GCC up to 2.95.x, collect2 would create an import file 15202 # for dependence libraries. The import file would start with 15203 # the line `#! .'. This would cause the generated library to 15204 # depend on `.', always an invalid library. This was fixed in 15205 # development snapshots of GCC prior to 3.0. 15206 case $host_os in 15207 aix4 | aix4.[01] | aix4.[01].*) 15208 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15209 echo ' yes ' 15210 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 15211 : 15212 else 15213 can_build_shared=no 15214 fi 15215 ;; 15216 esac 15217 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15218 # soname into executable. Probably we can add versioning support to 15219 # collect2, so additional links can be useful in future. 15220 if test "$aix_use_runtimelinking" = yes; then 15221 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15222 # instead of lib<name>.a to let people know that these are not 15223 # typical AIX shared libraries. 15224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15225 else 15226 # We preserve .a as extension for shared libraries through AIX4.2 15227 # and later when we are not doing run time linking. 15228 library_names_spec='${libname}${release}.a $libname.a' 15229 soname_spec='${libname}${release}${shared_ext}$major' 15230 fi 15231 shlibpath_var=LIBPATH 15232 fi 15233 ;; 15234 15235amigaos*) 15236 case $host_cpu in 15237 powerpc) 15238 # Since July 2007 AmigaOS4 officially supports .so libraries. 15239 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15241 ;; 15242 m68k) 15243 library_names_spec='$libname.ixlibrary $libname.a' 15244 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15245 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' 15246 ;; 15247 esac 15248 ;; 15249 15250beos*) 15251 library_names_spec='${libname}${shared_ext}' 15252 dynamic_linker="$host_os ld.so" 15253 shlibpath_var=LIBRARY_PATH 15254 ;; 15255 15256bsdi[45]*) 15257 version_type=linux # correct to gnu/linux during the next big refactor 15258 need_version=no 15259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15260 soname_spec='${libname}${release}${shared_ext}$major' 15261 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15262 shlibpath_var=LD_LIBRARY_PATH 15263 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15264 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15265 # the default ld.so.conf also contains /usr/contrib/lib and 15266 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15267 # libtool to hard-code these into programs 15268 ;; 15269 15270cygwin* | mingw* | pw32* | cegcc*) 15271 version_type=windows 15272 shrext_cmds=".dll" 15273 need_version=no 15274 need_lib_prefix=no 15275 15276 case $GCC,$cc_basename in 15277 yes,*) 15278 # gcc 15279 library_names_spec='$libname.dll.a' 15280 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15281 postinstall_cmds='base_file=`basename \${file}`~ 15282 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15283 dldir=$destdir/`dirname \$dlpath`~ 15284 test -d \$dldir || mkdir -p \$dldir~ 15285 $install_prog $dir/$dlname \$dldir/$dlname~ 15286 chmod a+x \$dldir/$dlname~ 15287 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15288 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15289 fi' 15290 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15291 dlpath=$dir/\$dldll~ 15292 $RM \$dlpath' 15293 shlibpath_overrides_runpath=yes 15294 15295 case $host_os in 15296 cygwin*) 15297 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15298 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15299 15300 ;; 15301 mingw* | cegcc*) 15302 # MinGW DLLs use traditional 'lib' prefix 15303 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15304 ;; 15305 pw32*) 15306 # pw32 DLLs use 'pw' prefix rather than 'lib' 15307 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15308 ;; 15309 esac 15310 dynamic_linker='Win32 ld.exe' 15311 ;; 15312 15313 *,cl*) 15314 # Native MSVC 15315 libname_spec='$name' 15316 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15317 library_names_spec='${libname}.dll.lib' 15318 15319 case $build_os in 15320 mingw*) 15321 sys_lib_search_path_spec= 15322 lt_save_ifs=$IFS 15323 IFS=';' 15324 for lt_path in $LIB 15325 do 15326 IFS=$lt_save_ifs 15327 # Let DOS variable expansion print the short 8.3 style file name. 15328 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15329 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15330 done 15331 IFS=$lt_save_ifs 15332 # Convert to MSYS style. 15333 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15334 ;; 15335 cygwin*) 15336 # Convert to unix form, then to dos form, then back to unix form 15337 # but this time dos style (no spaces!) so that the unix form looks 15338 # like /cygdrive/c/PROGRA~1:/cygdr... 15339 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15340 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15341 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15342 ;; 15343 *) 15344 sys_lib_search_path_spec="$LIB" 15345 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15346 # It is most probably a Windows format PATH. 15347 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15348 else 15349 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15350 fi 15351 # FIXME: find the short name or the path components, as spaces are 15352 # common. (e.g. "Program Files" -> "PROGRA~1") 15353 ;; 15354 esac 15355 15356 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15357 postinstall_cmds='base_file=`basename \${file}`~ 15358 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15359 dldir=$destdir/`dirname \$dlpath`~ 15360 test -d \$dldir || mkdir -p \$dldir~ 15361 $install_prog $dir/$dlname \$dldir/$dlname' 15362 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15363 dlpath=$dir/\$dldll~ 15364 $RM \$dlpath' 15365 shlibpath_overrides_runpath=yes 15366 dynamic_linker='Win32 link.exe' 15367 ;; 15368 15369 *) 15370 # Assume MSVC wrapper 15371 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15372 dynamic_linker='Win32 ld.exe' 15373 ;; 15374 esac 15375 # FIXME: first we should search . and the directory the executable is in 15376 shlibpath_var=PATH 15377 ;; 15378 15379darwin* | rhapsody*) 15380 dynamic_linker="$host_os dyld" 15381 version_type=darwin 15382 need_lib_prefix=no 15383 need_version=no 15384 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15385 soname_spec='${libname}${release}${major}$shared_ext' 15386 shlibpath_overrides_runpath=yes 15387 shlibpath_var=DYLD_LIBRARY_PATH 15388 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15389 15390 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15391 ;; 15392 15393dgux*) 15394 version_type=linux # correct to gnu/linux during the next big refactor 15395 need_lib_prefix=no 15396 need_version=no 15397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15398 soname_spec='${libname}${release}${shared_ext}$major' 15399 shlibpath_var=LD_LIBRARY_PATH 15400 ;; 15401 15402freebsd* | dragonfly*) 15403 # DragonFly does not have aout. When/if they implement a new 15404 # versioning mechanism, adjust this. 15405 if test -x /usr/bin/objformat; then 15406 objformat=`/usr/bin/objformat` 15407 else 15408 case $host_os in 15409 freebsd[23].*) objformat=aout ;; 15410 *) objformat=elf ;; 15411 esac 15412 fi 15413 version_type=freebsd-$objformat 15414 case $version_type in 15415 freebsd-elf*) 15416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15417 need_version=no 15418 need_lib_prefix=no 15419 ;; 15420 freebsd-*) 15421 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15422 need_version=yes 15423 ;; 15424 esac 15425 shlibpath_var=LD_LIBRARY_PATH 15426 case $host_os in 15427 freebsd2.*) 15428 shlibpath_overrides_runpath=yes 15429 ;; 15430 freebsd3.[01]* | freebsdelf3.[01]*) 15431 shlibpath_overrides_runpath=yes 15432 hardcode_into_libs=yes 15433 ;; 15434 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15435 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15436 shlibpath_overrides_runpath=no 15437 hardcode_into_libs=yes 15438 ;; 15439 *) # from 4.6 on, and DragonFly 15440 shlibpath_overrides_runpath=yes 15441 hardcode_into_libs=yes 15442 ;; 15443 esac 15444 ;; 15445 15446gnu*) 15447 version_type=linux # correct to gnu/linux during the next big refactor 15448 need_lib_prefix=no 15449 need_version=no 15450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15451 soname_spec='${libname}${release}${shared_ext}$major' 15452 shlibpath_var=LD_LIBRARY_PATH 15453 shlibpath_overrides_runpath=no 15454 hardcode_into_libs=yes 15455 ;; 15456 15457haiku*) 15458 version_type=linux # correct to gnu/linux during the next big refactor 15459 need_lib_prefix=no 15460 need_version=no 15461 dynamic_linker="$host_os runtime_loader" 15462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15463 soname_spec='${libname}${release}${shared_ext}$major' 15464 shlibpath_var=LIBRARY_PATH 15465 shlibpath_overrides_runpath=yes 15466 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15467 hardcode_into_libs=yes 15468 ;; 15469 15470hpux9* | hpux10* | hpux11*) 15471 # Give a soname corresponding to the major version so that dld.sl refuses to 15472 # link against other versions. 15473 version_type=sunos 15474 need_lib_prefix=no 15475 need_version=no 15476 case $host_cpu in 15477 ia64*) 15478 shrext_cmds='.so' 15479 hardcode_into_libs=yes 15480 dynamic_linker="$host_os dld.so" 15481 shlibpath_var=LD_LIBRARY_PATH 15482 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15484 soname_spec='${libname}${release}${shared_ext}$major' 15485 if test "X$HPUX_IA64_MODE" = X32; then 15486 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15487 else 15488 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15489 fi 15490 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15491 ;; 15492 hppa*64*) 15493 shrext_cmds='.sl' 15494 hardcode_into_libs=yes 15495 dynamic_linker="$host_os dld.sl" 15496 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15497 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15499 soname_spec='${libname}${release}${shared_ext}$major' 15500 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15501 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15502 ;; 15503 *) 15504 shrext_cmds='.sl' 15505 dynamic_linker="$host_os dld.sl" 15506 shlibpath_var=SHLIB_PATH 15507 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15509 soname_spec='${libname}${release}${shared_ext}$major' 15510 ;; 15511 esac 15512 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15513 postinstall_cmds='chmod 555 $lib' 15514 # or fails outright, so override atomically: 15515 install_override_mode=555 15516 ;; 15517 15518interix[3-9]*) 15519 version_type=linux # correct to gnu/linux during the next big refactor 15520 need_lib_prefix=no 15521 need_version=no 15522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15523 soname_spec='${libname}${release}${shared_ext}$major' 15524 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15525 shlibpath_var=LD_LIBRARY_PATH 15526 shlibpath_overrides_runpath=no 15527 hardcode_into_libs=yes 15528 ;; 15529 15530irix5* | irix6* | nonstopux*) 15531 case $host_os in 15532 nonstopux*) version_type=nonstopux ;; 15533 *) 15534 if test "$lt_cv_prog_gnu_ld" = yes; then 15535 version_type=linux # correct to gnu/linux during the next big refactor 15536 else 15537 version_type=irix 15538 fi ;; 15539 esac 15540 need_lib_prefix=no 15541 need_version=no 15542 soname_spec='${libname}${release}${shared_ext}$major' 15543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15544 case $host_os in 15545 irix5* | nonstopux*) 15546 libsuff= shlibsuff= 15547 ;; 15548 *) 15549 case $LD in # libtool.m4 will add one of these switches to LD 15550 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15551 libsuff= shlibsuff= libmagic=32-bit;; 15552 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15553 libsuff=32 shlibsuff=N32 libmagic=N32;; 15554 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15555 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15556 *) libsuff= shlibsuff= libmagic=never-match;; 15557 esac 15558 ;; 15559 esac 15560 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15561 shlibpath_overrides_runpath=no 15562 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15563 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15564 hardcode_into_libs=yes 15565 ;; 15566 15567# No shared lib support for Linux oldld, aout, or coff. 15568linux*oldld* | linux*aout* | linux*coff*) 15569 dynamic_linker=no 15570 ;; 15571 15572# This must be glibc/ELF. 15573linux* | k*bsd*-gnu | kopensolaris*-gnu) 15574 version_type=linux # correct to gnu/linux during the next big refactor 15575 need_lib_prefix=no 15576 need_version=no 15577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15578 soname_spec='${libname}${release}${shared_ext}$major' 15579 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15580 shlibpath_var=LD_LIBRARY_PATH 15581 shlibpath_overrides_runpath=no 15582 15583 # Some binutils ld are patched to set DT_RUNPATH 15584 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15585 $as_echo_n "(cached) " >&6 15586else 15587 lt_cv_shlibpath_overrides_runpath=no 15588 save_LDFLAGS=$LDFLAGS 15589 save_libdir=$libdir 15590 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15591 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15593/* end confdefs.h. */ 15594 15595int 15596main () 15597{ 15598 15599 ; 15600 return 0; 15601} 15602_ACEOF 15603if ac_fn_cxx_try_link "$LINENO"; then : 15604 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15605 lt_cv_shlibpath_overrides_runpath=yes 15606fi 15607fi 15608rm -f core conftest.err conftest.$ac_objext \ 15609 conftest$ac_exeext conftest.$ac_ext 15610 LDFLAGS=$save_LDFLAGS 15611 libdir=$save_libdir 15612 15613fi 15614 15615 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15616 15617 # This implies no fast_install, which is unacceptable. 15618 # Some rework will be needed to allow for fast_install 15619 # before this can be enabled. 15620 hardcode_into_libs=yes 15621 15622 # Append ld.so.conf contents to the search path 15623 if test -f /etc/ld.so.conf; then 15624 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' ' '` 15625 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15626 fi 15627 15628 # We used to test for /lib/ld.so.1 and disable shared libraries on 15629 # powerpc, because MkLinux only supported shared libraries with the 15630 # GNU dynamic linker. Since this was broken with cross compilers, 15631 # most powerpc-linux boxes support dynamic linking these days and 15632 # people can always --disable-shared, the test was removed, and we 15633 # assume the GNU/Linux dynamic linker is in use. 15634 dynamic_linker='GNU/Linux ld.so' 15635 ;; 15636 15637netbsd*) 15638 version_type=sunos 15639 need_lib_prefix=no 15640 need_version=no 15641 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15643 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15644 dynamic_linker='NetBSD (a.out) ld.so' 15645 else 15646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15647 soname_spec='${libname}${release}${shared_ext}$major' 15648 dynamic_linker='NetBSD ld.elf_so' 15649 fi 15650 shlibpath_var=LD_LIBRARY_PATH 15651 shlibpath_overrides_runpath=yes 15652 hardcode_into_libs=yes 15653 ;; 15654 15655newsos6) 15656 version_type=linux # correct to gnu/linux during the next big refactor 15657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15658 shlibpath_var=LD_LIBRARY_PATH 15659 shlibpath_overrides_runpath=yes 15660 ;; 15661 15662*nto* | *qnx*) 15663 version_type=qnx 15664 need_lib_prefix=no 15665 need_version=no 15666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15667 soname_spec='${libname}${release}${shared_ext}$major' 15668 shlibpath_var=LD_LIBRARY_PATH 15669 shlibpath_overrides_runpath=no 15670 hardcode_into_libs=yes 15671 dynamic_linker='ldqnx.so' 15672 ;; 15673 15674openbsd*) 15675 version_type=sunos 15676 sys_lib_dlsearch_path_spec="/usr/lib" 15677 need_lib_prefix=no 15678 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15679 case $host_os in 15680 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15681 *) need_version=no ;; 15682 esac 15683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15684 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15685 shlibpath_var=LD_LIBRARY_PATH 15686 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15687 case $host_os in 15688 openbsd2.[89] | openbsd2.[89].*) 15689 shlibpath_overrides_runpath=no 15690 ;; 15691 *) 15692 shlibpath_overrides_runpath=yes 15693 ;; 15694 esac 15695 else 15696 shlibpath_overrides_runpath=yes 15697 fi 15698 ;; 15699 15700os2*) 15701 libname_spec='$name' 15702 shrext_cmds=".dll" 15703 need_lib_prefix=no 15704 library_names_spec='$libname${shared_ext} $libname.a' 15705 dynamic_linker='OS/2 ld.exe' 15706 shlibpath_var=LIBPATH 15707 ;; 15708 15709osf3* | osf4* | osf5*) 15710 version_type=osf 15711 need_lib_prefix=no 15712 need_version=no 15713 soname_spec='${libname}${release}${shared_ext}$major' 15714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15715 shlibpath_var=LD_LIBRARY_PATH 15716 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15717 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15718 ;; 15719 15720rdos*) 15721 dynamic_linker=no 15722 ;; 15723 15724solaris*) 15725 version_type=linux # correct to gnu/linux during the next big refactor 15726 need_lib_prefix=no 15727 need_version=no 15728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15729 soname_spec='${libname}${release}${shared_ext}$major' 15730 shlibpath_var=LD_LIBRARY_PATH 15731 shlibpath_overrides_runpath=yes 15732 hardcode_into_libs=yes 15733 # ldd complains unless libraries are executable 15734 postinstall_cmds='chmod +x $lib' 15735 ;; 15736 15737sunos4*) 15738 version_type=sunos 15739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15740 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15741 shlibpath_var=LD_LIBRARY_PATH 15742 shlibpath_overrides_runpath=yes 15743 if test "$with_gnu_ld" = yes; then 15744 need_lib_prefix=no 15745 fi 15746 need_version=yes 15747 ;; 15748 15749sysv4 | sysv4.3*) 15750 version_type=linux # correct to gnu/linux during the next big refactor 15751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15752 soname_spec='${libname}${release}${shared_ext}$major' 15753 shlibpath_var=LD_LIBRARY_PATH 15754 case $host_vendor in 15755 sni) 15756 shlibpath_overrides_runpath=no 15757 need_lib_prefix=no 15758 runpath_var=LD_RUN_PATH 15759 ;; 15760 siemens) 15761 need_lib_prefix=no 15762 ;; 15763 motorola) 15764 need_lib_prefix=no 15765 need_version=no 15766 shlibpath_overrides_runpath=no 15767 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15768 ;; 15769 esac 15770 ;; 15771 15772sysv4*MP*) 15773 if test -d /usr/nec ;then 15774 version_type=linux # correct to gnu/linux during the next big refactor 15775 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15776 soname_spec='$libname${shared_ext}.$major' 15777 shlibpath_var=LD_LIBRARY_PATH 15778 fi 15779 ;; 15780 15781sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15782 version_type=freebsd-elf 15783 need_lib_prefix=no 15784 need_version=no 15785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15786 soname_spec='${libname}${release}${shared_ext}$major' 15787 shlibpath_var=LD_LIBRARY_PATH 15788 shlibpath_overrides_runpath=yes 15789 hardcode_into_libs=yes 15790 if test "$with_gnu_ld" = yes; then 15791 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15792 else 15793 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15794 case $host_os in 15795 sco3.2v5*) 15796 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15797 ;; 15798 esac 15799 fi 15800 sys_lib_dlsearch_path_spec='/usr/lib' 15801 ;; 15802 15803tpf*) 15804 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15805 version_type=linux # correct to gnu/linux during the next big refactor 15806 need_lib_prefix=no 15807 need_version=no 15808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15809 shlibpath_var=LD_LIBRARY_PATH 15810 shlibpath_overrides_runpath=no 15811 hardcode_into_libs=yes 15812 ;; 15813 15814uts4*) 15815 version_type=linux # correct to gnu/linux during the next big refactor 15816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15817 soname_spec='${libname}${release}${shared_ext}$major' 15818 shlibpath_var=LD_LIBRARY_PATH 15819 ;; 15820 15821*) 15822 dynamic_linker=no 15823 ;; 15824esac 15825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15826$as_echo "$dynamic_linker" >&6; } 15827test "$dynamic_linker" = no && can_build_shared=no 15828 15829variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15830if test "$GCC" = yes; then 15831 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15832fi 15833 15834if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 15835 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15836fi 15837if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 15838 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15839fi 15840 15841 15842 15843 15844 15845 15846 15847 15848 15849 15850 15851 15852 15853 15854 15855 15856 15857 15858 15859 15860 15861 15862 15863 15864 15865 15866 15867 15868 15869 15870 15871 15872 15873 15874 15875 15876 15877 15878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15879$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15880hardcode_action_CXX= 15881if test -n "$hardcode_libdir_flag_spec_CXX" || 15882 test -n "$runpath_var_CXX" || 15883 test "X$hardcode_automatic_CXX" = "Xyes" ; then 15884 15885 # We can hardcode non-existent directories. 15886 if test "$hardcode_direct_CXX" != no && 15887 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15888 # have to relink, otherwise we might link with an installed library 15889 # when we should be linking with a yet-to-be-installed one 15890 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 15891 test "$hardcode_minus_L_CXX" != no; then 15892 # Linking always hardcodes the temporary library directory. 15893 hardcode_action_CXX=relink 15894 else 15895 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15896 hardcode_action_CXX=immediate 15897 fi 15898else 15899 # We cannot hardcode anything, or else we can only hardcode existing 15900 # directories. 15901 hardcode_action_CXX=unsupported 15902fi 15903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 15904$as_echo "$hardcode_action_CXX" >&6; } 15905 15906if test "$hardcode_action_CXX" = relink || 15907 test "$inherit_rpath_CXX" = yes; then 15908 # Fast installation is not supported 15909 enable_fast_install=no 15910elif test "$shlibpath_overrides_runpath" = yes || 15911 test "$enable_shared" = no; then 15912 # Fast installation is not necessary 15913 enable_fast_install=needless 15914fi 15915 15916 15917 15918 15919 15920 15921 15922 fi # test -n "$compiler" 15923 15924 CC=$lt_save_CC 15925 CFLAGS=$lt_save_CFLAGS 15926 LDCXX=$LD 15927 LD=$lt_save_LD 15928 GCC=$lt_save_GCC 15929 with_gnu_ld=$lt_save_with_gnu_ld 15930 lt_cv_path_LDCXX=$lt_cv_path_LD 15931 lt_cv_path_LD=$lt_save_path_LD 15932 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15933 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15934fi # test "$_lt_caught_CXX_error" != yes 15935 15936ac_ext=c 15937ac_cpp='$CPP $CPPFLAGS' 15938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15940ac_compiler_gnu=$ac_cv_c_compiler_gnu 15941 15942 15943 15944# Enable support for silent build rules 15945# Check whether --enable-silent-rules was given. 15946if test "${enable_silent_rules+set}" = set; then : 15947 enableval=$enable_silent_rules; 15948fi 15949 15950case $enable_silent_rules in 15951yes) AM_DEFAULT_VERBOSITY=0;; 15952no) AM_DEFAULT_VERBOSITY=1;; 15953*) AM_DEFAULT_VERBOSITY=1;; 15954esac 15955AM_BACKSLASH='\' 15956 15957 15958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lc" >&5 15959$as_echo_n "checking for main in -lc... " >&6; } 15960if ${ac_cv_lib_c_main+:} false; then : 15961 $as_echo_n "(cached) " >&6 15962else 15963 ac_check_lib_save_LIBS=$LIBS 15964LIBS="-lc $LIBS" 15965cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15966/* end confdefs.h. */ 15967 15968 15969int 15970main () 15971{ 15972return main (); 15973 ; 15974 return 0; 15975} 15976_ACEOF 15977if ac_fn_c_try_link "$LINENO"; then : 15978 ac_cv_lib_c_main=yes 15979else 15980 ac_cv_lib_c_main=no 15981fi 15982rm -f core conftest.err conftest.$ac_objext \ 15983 conftest$ac_exeext conftest.$ac_ext 15984LIBS=$ac_check_lib_save_LIBS 15985fi 15986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_main" >&5 15987$as_echo "$ac_cv_lib_c_main" >&6; } 15988if test "x$ac_cv_lib_c_main" = xyes; then : 15989 cat >>confdefs.h <<_ACEOF 15990#define HAVE_LIBC 1 15991_ACEOF 15992 15993 LIBS="-lc $LIBS" 15994 15995fi 15996 15997 15998case "${host_os}" in 15999 cygwin* | mingw32* | beos* | darwin*) 16000 ;; 16001 *) 16002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 16003$as_echo_n "checking for sin in -lm... " >&6; } 16004if ${ac_cv_lib_m_sin+:} false; then : 16005 $as_echo_n "(cached) " >&6 16006else 16007 ac_check_lib_save_LIBS=$LIBS 16008LIBS="-lm $LIBS" 16009cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16010/* end confdefs.h. */ 16011 16012/* Override any GCC internal prototype to avoid an error. 16013 Use char because int might match the return type of a GCC 16014 builtin and then its argument prototype would still apply. */ 16015#ifdef __cplusplus 16016extern "C" 16017#endif 16018char sin (); 16019int 16020main () 16021{ 16022return sin (); 16023 ; 16024 return 0; 16025} 16026_ACEOF 16027if ac_fn_c_try_link "$LINENO"; then : 16028 ac_cv_lib_m_sin=yes 16029else 16030 ac_cv_lib_m_sin=no 16031fi 16032rm -f core conftest.err conftest.$ac_objext \ 16033 conftest$ac_exeext conftest.$ac_ext 16034LIBS=$ac_check_lib_save_LIBS 16035fi 16036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 16037$as_echo "$ac_cv_lib_m_sin" >&6; } 16038if test "x$ac_cv_lib_m_sin" = xyes; then : 16039 cat >>confdefs.h <<_ACEOF 16040#define HAVE_LIBM 1 16041_ACEOF 16042 16043 LIBS="-lm $LIBS" 16044 16045fi 16046 16047 ;; 16048esac 16049 16050tiff_libs_private= 16051 16052 16053for ac_header in assert.h fcntl.h io.h limits.h malloc.h search.h sys/time.h unistd.h 16054do : 16055 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16056ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16057if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16058 cat >>confdefs.h <<_ACEOF 16059#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16060_ACEOF 16061 16062fi 16063 16064done 16065 16066 16067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 16068$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 16069if ${ac_cv_c_const+:} false; then : 16070 $as_echo_n "(cached) " >&6 16071else 16072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16073/* end confdefs.h. */ 16074 16075int 16076main () 16077{ 16078/* FIXME: Include the comments suggested by Paul. */ 16079#ifndef __cplusplus 16080 /* Ultrix mips cc rejects this. */ 16081 typedef int charset[2]; 16082 const charset cs; 16083 /* SunOS 4.1.1 cc rejects this. */ 16084 char const *const *pcpcc; 16085 char **ppc; 16086 /* NEC SVR4.0.2 mips cc rejects this. */ 16087 struct point {int x, y;}; 16088 static struct point const zero = {0,0}; 16089 /* AIX XL C 1.02.0.0 rejects this. 16090 It does not let you subtract one const X* pointer from another in 16091 an arm of an if-expression whose if-part is not a constant 16092 expression */ 16093 const char *g = "string"; 16094 pcpcc = &g + (g ? g-g : 0); 16095 /* HPUX 7.0 cc rejects these. */ 16096 ++pcpcc; 16097 ppc = (char**) pcpcc; 16098 pcpcc = (char const *const *) ppc; 16099 { /* SCO 3.2v4 cc rejects this. */ 16100 char *t; 16101 char const *s = 0 ? (char *) 0 : (char const *) 0; 16102 16103 *t++ = 0; 16104 if (s) return 0; 16105 } 16106 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 16107 int x[] = {25, 17}; 16108 const int *foo = &x[0]; 16109 ++foo; 16110 } 16111 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 16112 typedef const int *iptr; 16113 iptr p = 0; 16114 ++p; 16115 } 16116 { /* AIX XL C 1.02.0.0 rejects this saying 16117 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 16118 struct s { int j; const int *ap[3]; }; 16119 struct s *b; b->j = 5; 16120 } 16121 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 16122 const int foo = 10; 16123 if (!foo) return 0; 16124 } 16125 return !cs[0] && !zero.x; 16126#endif 16127 16128 ; 16129 return 0; 16130} 16131_ACEOF 16132if ac_fn_c_try_compile "$LINENO"; then : 16133 ac_cv_c_const=yes 16134else 16135 ac_cv_c_const=no 16136fi 16137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16138fi 16139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 16140$as_echo "$ac_cv_c_const" >&6; } 16141if test $ac_cv_c_const = no; then 16142 16143$as_echo "#define const /**/" >>confdefs.h 16144 16145fi 16146 16147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 16148$as_echo_n "checking for inline... " >&6; } 16149if ${ac_cv_c_inline+:} false; then : 16150 $as_echo_n "(cached) " >&6 16151else 16152 ac_cv_c_inline=no 16153for ac_kw in inline __inline__ __inline; do 16154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16155/* end confdefs.h. */ 16156#ifndef __cplusplus 16157typedef int foo_t; 16158static $ac_kw foo_t static_foo () {return 0; } 16159$ac_kw foo_t foo () {return 0; } 16160#endif 16161 16162_ACEOF 16163if ac_fn_c_try_compile "$LINENO"; then : 16164 ac_cv_c_inline=$ac_kw 16165fi 16166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16167 test "$ac_cv_c_inline" != no && break 16168done 16169 16170fi 16171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 16172$as_echo "$ac_cv_c_inline" >&6; } 16173 16174case $ac_cv_c_inline in 16175 inline | yes) ;; 16176 *) 16177 case $ac_cv_c_inline in 16178 no) ac_val=;; 16179 *) ac_val=$ac_cv_c_inline;; 16180 esac 16181 cat >>confdefs.h <<_ACEOF 16182#ifndef __cplusplus 16183#define inline $ac_val 16184#endif 16185_ACEOF 16186 ;; 16187esac 16188 16189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 16190$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 16191if ${ac_cv_c_bigendian+:} false; then : 16192 $as_echo_n "(cached) " >&6 16193else 16194 ac_cv_c_bigendian=unknown 16195 # See if we're dealing with a universal compiler. 16196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16197/* end confdefs.h. */ 16198#ifndef __APPLE_CC__ 16199 not a universal capable compiler 16200 #endif 16201 typedef int dummy; 16202 16203_ACEOF 16204if ac_fn_c_try_compile "$LINENO"; then : 16205 16206 # Check for potential -arch flags. It is not universal unless 16207 # there are at least two -arch flags with different values. 16208 ac_arch= 16209 ac_prev= 16210 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 16211 if test -n "$ac_prev"; then 16212 case $ac_word in 16213 i?86 | x86_64 | ppc | ppc64) 16214 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 16215 ac_arch=$ac_word 16216 else 16217 ac_cv_c_bigendian=universal 16218 break 16219 fi 16220 ;; 16221 esac 16222 ac_prev= 16223 elif test "x$ac_word" = "x-arch"; then 16224 ac_prev=arch 16225 fi 16226 done 16227fi 16228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16229 if test $ac_cv_c_bigendian = unknown; then 16230 # See if sys/param.h defines the BYTE_ORDER macro. 16231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16232/* end confdefs.h. */ 16233#include <sys/types.h> 16234 #include <sys/param.h> 16235 16236int 16237main () 16238{ 16239#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 16240 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 16241 && LITTLE_ENDIAN) 16242 bogus endian macros 16243 #endif 16244 16245 ; 16246 return 0; 16247} 16248_ACEOF 16249if ac_fn_c_try_compile "$LINENO"; then : 16250 # It does; now see whether it defined to BIG_ENDIAN or not. 16251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16252/* end confdefs.h. */ 16253#include <sys/types.h> 16254 #include <sys/param.h> 16255 16256int 16257main () 16258{ 16259#if BYTE_ORDER != BIG_ENDIAN 16260 not big endian 16261 #endif 16262 16263 ; 16264 return 0; 16265} 16266_ACEOF 16267if ac_fn_c_try_compile "$LINENO"; then : 16268 ac_cv_c_bigendian=yes 16269else 16270 ac_cv_c_bigendian=no 16271fi 16272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16273fi 16274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16275 fi 16276 if test $ac_cv_c_bigendian = unknown; then 16277 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 16278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16279/* end confdefs.h. */ 16280#include <limits.h> 16281 16282int 16283main () 16284{ 16285#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 16286 bogus endian macros 16287 #endif 16288 16289 ; 16290 return 0; 16291} 16292_ACEOF 16293if ac_fn_c_try_compile "$LINENO"; then : 16294 # It does; now see whether it defined to _BIG_ENDIAN or not. 16295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16296/* end confdefs.h. */ 16297#include <limits.h> 16298 16299int 16300main () 16301{ 16302#ifndef _BIG_ENDIAN 16303 not big endian 16304 #endif 16305 16306 ; 16307 return 0; 16308} 16309_ACEOF 16310if ac_fn_c_try_compile "$LINENO"; then : 16311 ac_cv_c_bigendian=yes 16312else 16313 ac_cv_c_bigendian=no 16314fi 16315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16316fi 16317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16318 fi 16319 if test $ac_cv_c_bigendian = unknown; then 16320 # Compile a test program. 16321 if test "$cross_compiling" = yes; then : 16322 # Try to guess by grepping values from an object file. 16323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16324/* end confdefs.h. */ 16325short int ascii_mm[] = 16326 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 16327 short int ascii_ii[] = 16328 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 16329 int use_ascii (int i) { 16330 return ascii_mm[i] + ascii_ii[i]; 16331 } 16332 short int ebcdic_ii[] = 16333 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 16334 short int ebcdic_mm[] = 16335 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 16336 int use_ebcdic (int i) { 16337 return ebcdic_mm[i] + ebcdic_ii[i]; 16338 } 16339 extern int foo; 16340 16341int 16342main () 16343{ 16344return use_ascii (foo) == use_ebcdic (foo); 16345 ; 16346 return 0; 16347} 16348_ACEOF 16349if ac_fn_c_try_compile "$LINENO"; then : 16350 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 16351 ac_cv_c_bigendian=yes 16352 fi 16353 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 16354 if test "$ac_cv_c_bigendian" = unknown; then 16355 ac_cv_c_bigendian=no 16356 else 16357 # finding both strings is unlikely to happen, but who knows? 16358 ac_cv_c_bigendian=unknown 16359 fi 16360 fi 16361fi 16362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16363else 16364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16365/* end confdefs.h. */ 16366$ac_includes_default 16367int 16368main () 16369{ 16370 16371 /* Are we little or big endian? From Harbison&Steele. */ 16372 union 16373 { 16374 long int l; 16375 char c[sizeof (long int)]; 16376 } u; 16377 u.l = 1; 16378 return u.c[sizeof (long int) - 1] == 1; 16379 16380 ; 16381 return 0; 16382} 16383_ACEOF 16384if ac_fn_c_try_run "$LINENO"; then : 16385 ac_cv_c_bigendian=no 16386else 16387 ac_cv_c_bigendian=yes 16388fi 16389rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16390 conftest.$ac_objext conftest.beam conftest.$ac_ext 16391fi 16392 16393 fi 16394fi 16395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 16396$as_echo "$ac_cv_c_bigendian" >&6; } 16397 case $ac_cv_c_bigendian in #( 16398 yes) 16399 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 16400;; #( 16401 no) 16402 ;; #( 16403 universal) 16404 16405$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 16406 16407 ;; #( 16408 *) 16409 as_fn_error $? "unknown endianness 16410 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 16411 esac 16412 16413ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 16414if test "x$ac_cv_type_off_t" = xyes; then : 16415 16416else 16417 16418cat >>confdefs.h <<_ACEOF 16419#define off_t long int 16420_ACEOF 16421 16422fi 16423 16424ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 16425if test "x$ac_cv_type_size_t" = xyes; then : 16426 16427else 16428 16429cat >>confdefs.h <<_ACEOF 16430#define size_t unsigned int 16431_ACEOF 16432 16433fi 16434 16435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 16436$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 16437if ${ac_cv_header_time+:} false; then : 16438 $as_echo_n "(cached) " >&6 16439else 16440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16441/* end confdefs.h. */ 16442#include <sys/types.h> 16443#include <sys/time.h> 16444#include <time.h> 16445 16446int 16447main () 16448{ 16449if ((struct tm *) 0) 16450return 0; 16451 ; 16452 return 0; 16453} 16454_ACEOF 16455if ac_fn_c_try_compile "$LINENO"; then : 16456 ac_cv_header_time=yes 16457else 16458 ac_cv_header_time=no 16459fi 16460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16461fi 16462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 16463$as_echo "$ac_cv_header_time" >&6; } 16464if test $ac_cv_header_time = yes; then 16465 16466$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 16467 16468fi 16469 16470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 16471$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 16472if ${ac_cv_struct_tm+:} false; then : 16473 $as_echo_n "(cached) " >&6 16474else 16475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16476/* end confdefs.h. */ 16477#include <sys/types.h> 16478#include <time.h> 16479 16480int 16481main () 16482{ 16483struct tm tm; 16484 int *p = &tm.tm_sec; 16485 return !p; 16486 ; 16487 return 0; 16488} 16489_ACEOF 16490if ac_fn_c_try_compile "$LINENO"; then : 16491 ac_cv_struct_tm=time.h 16492else 16493 ac_cv_struct_tm=sys/time.h 16494fi 16495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16496fi 16497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 16498$as_echo "$ac_cv_struct_tm" >&6; } 16499if test $ac_cv_struct_tm = sys/time.h; then 16500 16501$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 16502 16503fi 16504 16505 16506 16507# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT 16508# The cast to long int works around a bug in the HP C Compiler 16509# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16510# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16511# This bug is HP SR number 8606223364. 16512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5 16513$as_echo_n "checking size of signed short... " >&6; } 16514if ${ac_cv_sizeof_signed_short+:} false; then : 16515 $as_echo_n "(cached) " >&6 16516else 16517 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then : 16518 16519else 16520 if test "$ac_cv_type_signed_short" = yes; then 16521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16522$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16523as_fn_error 77 "cannot compute sizeof (signed short) 16524See \`config.log' for more details" "$LINENO" 5; } 16525 else 16526 ac_cv_sizeof_signed_short=0 16527 fi 16528fi 16529 16530fi 16531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5 16532$as_echo "$ac_cv_sizeof_signed_short" >&6; } 16533 16534 16535 16536cat >>confdefs.h <<_ACEOF 16537#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short 16538_ACEOF 16539 16540 16541 16542# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT 16543# The cast to long int works around a bug in the HP C Compiler 16544# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16545# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16546# This bug is HP SR number 8606223364. 16547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5 16548$as_echo_n "checking size of unsigned short... " >&6; } 16549if ${ac_cv_sizeof_unsigned_short+:} false; then : 16550 $as_echo_n "(cached) " >&6 16551else 16552 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then : 16553 16554else 16555 if test "$ac_cv_type_unsigned_short" = yes; then 16556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16557$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16558as_fn_error 77 "cannot compute sizeof (unsigned short) 16559See \`config.log' for more details" "$LINENO" 5; } 16560 else 16561 ac_cv_sizeof_unsigned_short=0 16562 fi 16563fi 16564 16565fi 16566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5 16567$as_echo "$ac_cv_sizeof_unsigned_short" >&6; } 16568 16569 16570 16571cat >>confdefs.h <<_ACEOF 16572#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short 16573_ACEOF 16574 16575 16576 16577# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT 16578# The cast to long int works around a bug in the HP C Compiler 16579# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16580# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16581# This bug is HP SR number 8606223364. 16582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5 16583$as_echo_n "checking size of signed int... " >&6; } 16584if ${ac_cv_sizeof_signed_int+:} false; then : 16585 $as_echo_n "(cached) " >&6 16586else 16587 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int" "$ac_includes_default"; then : 16588 16589else 16590 if test "$ac_cv_type_signed_int" = yes; then 16591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16593as_fn_error 77 "cannot compute sizeof (signed int) 16594See \`config.log' for more details" "$LINENO" 5; } 16595 else 16596 ac_cv_sizeof_signed_int=0 16597 fi 16598fi 16599 16600fi 16601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5 16602$as_echo "$ac_cv_sizeof_signed_int" >&6; } 16603 16604 16605 16606cat >>confdefs.h <<_ACEOF 16607#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int 16608_ACEOF 16609 16610 16611 16612# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT 16613# The cast to long int works around a bug in the HP C Compiler 16614# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16615# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16616# This bug is HP SR number 8606223364. 16617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 16618$as_echo_n "checking size of unsigned int... " >&6; } 16619if ${ac_cv_sizeof_unsigned_int+:} false; then : 16620 $as_echo_n "(cached) " >&6 16621else 16622 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then : 16623 16624else 16625 if test "$ac_cv_type_unsigned_int" = yes; then 16626 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16627$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16628as_fn_error 77 "cannot compute sizeof (unsigned int) 16629See \`config.log' for more details" "$LINENO" 5; } 16630 else 16631 ac_cv_sizeof_unsigned_int=0 16632 fi 16633fi 16634 16635fi 16636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 16637$as_echo "$ac_cv_sizeof_unsigned_int" >&6; } 16638 16639 16640 16641cat >>confdefs.h <<_ACEOF 16642#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int 16643_ACEOF 16644 16645 16646 16647# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG 16648# The cast to long int works around a bug in the HP C Compiler 16649# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16650# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16651# This bug is HP SR number 8606223364. 16652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5 16653$as_echo_n "checking size of signed long... " >&6; } 16654if ${ac_cv_sizeof_signed_long+:} false; then : 16655 $as_echo_n "(cached) " >&6 16656else 16657 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then : 16658 16659else 16660 if test "$ac_cv_type_signed_long" = yes; then 16661 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16662$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16663as_fn_error 77 "cannot compute sizeof (signed long) 16664See \`config.log' for more details" "$LINENO" 5; } 16665 else 16666 ac_cv_sizeof_signed_long=0 16667 fi 16668fi 16669 16670fi 16671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5 16672$as_echo "$ac_cv_sizeof_signed_long" >&6; } 16673 16674 16675 16676cat >>confdefs.h <<_ACEOF 16677#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long 16678_ACEOF 16679 16680 16681 16682# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG 16683# The cast to long int works around a bug in the HP C Compiler 16684# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16685# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16686# This bug is HP SR number 8606223364. 16687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 16688$as_echo_n "checking size of unsigned long... " >&6; } 16689if ${ac_cv_sizeof_unsigned_long+:} false; then : 16690 $as_echo_n "(cached) " >&6 16691else 16692 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : 16693 16694else 16695 if test "$ac_cv_type_unsigned_long" = yes; then 16696 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16697$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16698as_fn_error 77 "cannot compute sizeof (unsigned long) 16699See \`config.log' for more details" "$LINENO" 5; } 16700 else 16701 ac_cv_sizeof_unsigned_long=0 16702 fi 16703fi 16704 16705fi 16706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 16707$as_echo "$ac_cv_sizeof_unsigned_long" >&6; } 16708 16709 16710 16711cat >>confdefs.h <<_ACEOF 16712#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 16713_ACEOF 16714 16715 16716 16717# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. 16718# If 'long long' is not supported then the value defined is zero. 16719# The cast to long int works around a bug in the HP C Compiler 16720# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16721# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16722# This bug is HP SR number 8606223364. 16723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5 16724$as_echo_n "checking size of signed long long... " >&6; } 16725if ${ac_cv_sizeof_signed_long_long+:} false; then : 16726 $as_echo_n "(cached) " >&6 16727else 16728 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then : 16729 16730else 16731 if test "$ac_cv_type_signed_long_long" = yes; then 16732 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16733$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16734as_fn_error 77 "cannot compute sizeof (signed long long) 16735See \`config.log' for more details" "$LINENO" 5; } 16736 else 16737 ac_cv_sizeof_signed_long_long=0 16738 fi 16739fi 16740 16741fi 16742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5 16743$as_echo "$ac_cv_sizeof_signed_long_long" >&6; } 16744 16745 16746 16747cat >>confdefs.h <<_ACEOF 16748#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long 16749_ACEOF 16750 16751 16752 16753# Obtain size of a 'unsigned long long' and define as 16754# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not 16755# supported then the value defined is zero. 16756# The cast to long int works around a bug in the HP C Compiler 16757# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16758# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16759# This bug is HP SR number 8606223364. 16760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5 16761$as_echo_n "checking size of unsigned long long... " >&6; } 16762if ${ac_cv_sizeof_unsigned_long_long+:} false; then : 16763 $as_echo_n "(cached) " >&6 16764else 16765 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then : 16766 16767else 16768 if test "$ac_cv_type_unsigned_long_long" = yes; then 16769 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16770$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16771as_fn_error 77 "cannot compute sizeof (unsigned long long) 16772See \`config.log' for more details" "$LINENO" 5; } 16773 else 16774 ac_cv_sizeof_unsigned_long_long=0 16775 fi 16776fi 16777 16778fi 16779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5 16780$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } 16781 16782 16783 16784cat >>confdefs.h <<_ACEOF 16785#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long 16786_ACEOF 16787 16788 16789 16790# Obtain the size of an 'unsigned char *' and define as 16791# SIZEOF_UNSIGNED_CHAR_P. Result is available in 16792# ac_cv_sizeof_unsigned_char_p. 16793# The cast to long int works around a bug in the HP C Compiler 16794# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16795# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16796# This bug is HP SR number 8606223364. 16797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned char *" >&5 16798$as_echo_n "checking size of unsigned char *... " >&6; } 16799if ${ac_cv_sizeof_unsigned_char_p+:} false; then : 16800 $as_echo_n "(cached) " >&6 16801else 16802 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned char *))" "ac_cv_sizeof_unsigned_char_p" "$ac_includes_default"; then : 16803 16804else 16805 if test "$ac_cv_type_unsigned_char_p" = yes; then 16806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16807$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16808as_fn_error 77 "cannot compute sizeof (unsigned char *) 16809See \`config.log' for more details" "$LINENO" 5; } 16810 else 16811 ac_cv_sizeof_unsigned_char_p=0 16812 fi 16813fi 16814 16815fi 16816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_char_p" >&5 16817$as_echo "$ac_cv_sizeof_unsigned_char_p" >&6; } 16818 16819 16820 16821cat >>confdefs.h <<_ACEOF 16822#define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p 16823_ACEOF 16824 16825 16826 16827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5 16828$as_echo_n "checking for signed 8-bit type... " >&6; } 16829INT8_T='signed char' 16830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5 16831$as_echo "$INT8_T" >&6; } 16832 16833cat >>confdefs.h <<_ACEOF 16834#define TIFF_INT8_T $INT8_T 16835_ACEOF 16836 16837 16838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5 16839$as_echo_n "checking for unsigned 8-bit type... " >&6; } 16840UINT8_T='unsigned char' 16841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5 16842$as_echo "$UINT8_T" >&6; } 16843 16844cat >>confdefs.h <<_ACEOF 16845#define TIFF_UINT8_T $UINT8_T 16846_ACEOF 16847 16848 16849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5 16850$as_echo_n "checking for signed 16-bit type... " >&6; } 16851INT16_T='signed short' 16852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5 16853$as_echo "$INT16_T" >&6; } 16854 16855cat >>confdefs.h <<_ACEOF 16856#define TIFF_INT16_T $INT16_T 16857_ACEOF 16858 16859 16860 16861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5 16862$as_echo_n "checking for unsigned 16-bit type... " >&6; } 16863UINT16_T='unsigned short' 16864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5 16865$as_echo "$UINT16_T" >&6; } 16866 16867cat >>confdefs.h <<_ACEOF 16868#define TIFF_UINT16_T $UINT16_T 16869_ACEOF 16870 16871 16872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5 16873$as_echo_n "checking for signed 32-bit type... " >&6; } 16874INT32_T='none' 16875INT32_FORMAT='none' 16876if test $ac_cv_sizeof_signed_int -eq 4 16877then 16878 INT32_T='signed int' 16879 INT32_FORMAT='"%d"' 16880elif test $ac_cv_sizeof_signed_long -eq 4 16881then 16882 INT32_T='signed long' 16883 INT32_FORMAT='"%ld"' 16884fi 16885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5 16886$as_echo "$INT32_T" >&6; } 16887 16888cat >>confdefs.h <<_ACEOF 16889#define TIFF_INT32_T $INT32_T 16890_ACEOF 16891 16892 16893cat >>confdefs.h <<_ACEOF 16894#define TIFF_INT32_FORMAT $INT32_FORMAT 16895_ACEOF 16896 16897 16898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5 16899$as_echo_n "checking for unsigned 32-bit type... " >&6; } 16900UINT32_T='none' 16901UINT32_FORMAT='none' 16902if test $ac_cv_sizeof_unsigned_int -eq 4 16903then 16904 UINT32_T='unsigned int' 16905 UINT32_FORMAT='"%u"' 16906elif test $ac_cv_sizeof_unsigned_long -eq 4 16907then 16908 UINT32_T='unsigned long' 16909 UINT32_FORMAT='"%lu"' 16910fi 16911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5 16912$as_echo "$UINT32_T" >&6; } 16913 16914cat >>confdefs.h <<_ACEOF 16915#define TIFF_UINT32_T $UINT32_T 16916_ACEOF 16917 16918 16919cat >>confdefs.h <<_ACEOF 16920#define TIFF_UINT32_FORMAT $UINT32_FORMAT 16921_ACEOF 16922 16923 16924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5 16925$as_echo_n "checking for signed 64-bit type... " >&6; } 16926INT64_T='none' 16927INT64_FORMAT='none' 16928if test $ac_cv_sizeof_signed_long -eq 8 16929then 16930 INT64_T='signed long' 16931 INT64_FORMAT='"%ld"' 16932elif test $ac_cv_sizeof_signed_long_long -eq 8 16933then 16934 INT64_T='signed long long' 16935 case "${host_os}" in 16936 mingw32*) 16937 # MinGW32 understands 'long long', but uses printf from WIN32 CRT 16938 INT64_FORMAT='"%I64d"' 16939 ;; 16940 *) 16941 INT64_FORMAT='"%lld"' 16942 ;; 16943 esac 16944fi 16945 16946 16947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5 16948$as_echo "$INT64_T" >&6; } 16949 16950cat >>confdefs.h <<_ACEOF 16951#define TIFF_INT64_T $INT64_T 16952_ACEOF 16953 16954 16955cat >>confdefs.h <<_ACEOF 16956#define TIFF_INT64_FORMAT $INT64_FORMAT 16957_ACEOF 16958 16959 16960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5 16961$as_echo_n "checking for unsigned 64-bit type... " >&6; } 16962UINT64_T='none' 16963UINT64_FORMAT='none' 16964if test $ac_cv_sizeof_unsigned_long -eq 8 16965then 16966 UINT64_T='unsigned long' 16967 UINT64_FORMAT='"%lu"' 16968elif test $ac_cv_sizeof_unsigned_long_long -eq 8 16969then 16970 UINT64_T='unsigned long long' 16971 case "${host_os}" in 16972 mingw32*) 16973 # MinGW32 understands 'unsigned long long', but uses printf from WIN32 CRT 16974 UINT64_FORMAT='"%I64u"' 16975 ;; 16976 *) 16977 UINT64_FORMAT='"%llu"' 16978 ;; 16979 esac 16980fi 16981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5 16982$as_echo "$UINT64_T" >&6; } 16983 16984cat >>confdefs.h <<_ACEOF 16985#define TIFF_UINT64_T $UINT64_T 16986_ACEOF 16987 16988 16989cat >>confdefs.h <<_ACEOF 16990#define TIFF_UINT64_FORMAT $UINT64_FORMAT 16991_ACEOF 16992 16993 16994# Determine TIFF equivalent of ssize_t 16995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed size type" >&5 16996$as_echo_n "checking for signed size type... " >&6; } 16997SSIZE_T='unknown' 16998SSIZE_FORMAT='unknown' 16999if test $ac_cv_sizeof_signed_long -eq $ac_cv_sizeof_unsigned_char_p 17000then 17001 SSIZE_T='signed long' 17002 SSIZE_FORMAT='"%ld"' 17003elif test $ac_cv_sizeof_signed_long_long -eq $ac_cv_sizeof_unsigned_char_p 17004then 17005 SSIZE_T='signed long long' 17006 SSIZE_FORMAT='"%lld"' 17007fi 17008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSIZE_T" >&5 17009$as_echo "$SSIZE_T" >&6; } 17010 17011cat >>confdefs.h <<_ACEOF 17012#define TIFF_SSIZE_T $SSIZE_T 17013_ACEOF 17014 17015 17016cat >>confdefs.h <<_ACEOF 17017#define TIFF_SSIZE_FORMAT $SSIZE_FORMAT 17018_ACEOF 17019 17020 17021# Determine the type to use for the difference between two pointers. 17022# We will default to the POSIX ptrdiff_t if it is available, but will 17023# be prepared for the case when it is not. 17024PTRDIFF_T='unknown' 17025PTRDIFF_FORMAT='"%ld"' 17026ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 17027if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 17028 PTRDIFF_T=ptrdiff_t 17029fi 17030 17031if test $PTRDIFF_T = unknown 17032then 17033 PTRDIFF_T=$SSIZE_T 17034 PTRDIFF_FORMAT=$SSIZE_FORMAT 17035fi 17036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5 17037$as_echo_n "checking for pointer difference type... " >&6; } 17038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTRDIFF_T" >&5 17039$as_echo "$PTRDIFF_T" >&6; } 17040 17041cat >>confdefs.h <<_ACEOF 17042#define TIFF_PTRDIFF_T $PTRDIFF_T 17043_ACEOF 17044 17045 17046cat >>confdefs.h <<_ACEOF 17047#define TIFF_PTRDIFF_FORMAT $PTRDIFF_FORMAT 17048_ACEOF 17049 17050 17051ac_fn_c_check_type "$LINENO" "int8" "ac_cv_type_int8" " 17052#if HAVE_INTTYPES_H 17053# include <inttypes.h> 17054#endif 17055 17056" 17057if test "x$ac_cv_type_int8" = xyes; then : 17058 17059cat >>confdefs.h <<_ACEOF 17060#define HAVE_INT8 1 17061_ACEOF 17062 17063 17064fi 17065ac_fn_c_check_type "$LINENO" "int16" "ac_cv_type_int16" " 17066#if HAVE_INTTYPES_H 17067# include <inttypes.h> 17068#endif 17069 17070" 17071if test "x$ac_cv_type_int16" = xyes; then : 17072 17073cat >>confdefs.h <<_ACEOF 17074#define HAVE_INT16 1 17075_ACEOF 17076 17077 17078fi 17079ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" " 17080#if HAVE_INTTYPES_H 17081# include <inttypes.h> 17082#endif 17083 17084" 17085if test "x$ac_cv_type_int32" = xyes; then : 17086 17087cat >>confdefs.h <<_ACEOF 17088#define HAVE_INT32 1 17089_ACEOF 17090 17091 17092fi 17093 17094 17095for ac_func in floor isascii memmove memset mmap pow setmode sqrt strchr strrchr strstr strtol strtoull 17096do : 17097 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17098ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17099if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17100 cat >>confdefs.h <<_ACEOF 17101#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17102_ACEOF 17103 17104fi 17105done 17106 17107 17108ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt" 17109if test "x$ac_cv_func_getopt" = xyes; then : 17110 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h 17111 17112else 17113 case " $LIBOBJS " in 17114 *" getopt.$ac_objext "* ) ;; 17115 *) LIBOBJS="$LIBOBJS getopt.$ac_objext" 17116 ;; 17117esac 17118 17119fi 17120 17121 17122ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 17123if test "x$ac_cv_func_strcasecmp" = xyes; then : 17124 $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h 17125 17126else 17127 case " $LIBOBJS " in 17128 *" strcasecmp.$ac_objext "* ) ;; 17129 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" 17130 ;; 17131esac 17132 17133fi 17134 17135 17136ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul" 17137if test "x$ac_cv_func_strtoul" = xyes; then : 17138 $as_echo "#define HAVE_STRTOUL 1" >>confdefs.h 17139 17140else 17141 case " $LIBOBJS " in 17142 *" strtoul.$ac_objext "* ) ;; 17143 *) LIBOBJS="$LIBOBJS strtoul.$ac_objext" 17144 ;; 17145esac 17146 17147fi 17148 17149 17150ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull" 17151if test "x$ac_cv_func_strtoull" = xyes; then : 17152 $as_echo "#define HAVE_STRTOULL 1" >>confdefs.h 17153 17154else 17155 case " $LIBOBJS " in 17156 *" strtoull.$ac_objext "* ) ;; 17157 *) LIBOBJS="$LIBOBJS strtoull.$ac_objext" 17158 ;; 17159esac 17160 17161fi 17162 17163 17164ac_fn_c_check_func "$LINENO" "lfind" "ac_cv_func_lfind" 17165if test "x$ac_cv_func_lfind" = xyes; then : 17166 $as_echo "#define HAVE_LFIND 1" >>confdefs.h 17167 17168else 17169 case " $LIBOBJS " in 17170 *" lfind.$ac_objext "* ) ;; 17171 *) LIBOBJS="$LIBOBJS lfind.$ac_objext" 17172 ;; 17173esac 17174 17175fi 17176 17177 17178 17179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking native cpu bit order" >&5 17180$as_echo_n "checking native cpu bit order... " >&6; } 17181case "$host_cpu" in 17182 i*86*|x86_64*) 17183 HOST_FILLORDER=FILLORDER_LSB2MSB 17184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lsb2msb" >&5 17185$as_echo "lsb2msb" >&6; } 17186 ;; 17187 *) 17188 HOST_FILLORDER=FILLORDER_MSB2LSB 17189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: msb2lsb" >&5 17190$as_echo "msb2lsb" >&6; } 17191 ;; 17192esac 17193 17194cat >>confdefs.h <<_ACEOF 17195#define HOST_FILLORDER $HOST_FILLORDER 17196_ACEOF 17197 17198 17199if test "$ac_cv_c_bigendian" = yes ; then 17200 HOST_BIGENDIAN=1 17201else 17202 HOST_BIGENDIAN=0 17203fi 17204 17205cat >>confdefs.h <<_ACEOF 17206#define HOST_BIGENDIAN $HOST_BIGENDIAN 17207_ACEOF 17208 17209 17210#_POSIX_C_SOURCE=2 17211#AC_DEFINE_UNQUOTED(_POSIX_C_SOURCE, $_POSIX_C_SOURCE, [Define this macro to a positive integer to control which POSIX functionality is made available.]) 17212 17213HAVE_IEEEFP=1 17214 17215cat >>confdefs.h <<_ACEOF 17216#define HAVE_IEEEFP $HAVE_IEEEFP 17217_ACEOF 17218 17219 17220 17221# Check whether --enable-rpath was given. 17222if test "${enable_rpath+set}" = set; then : 17223 enableval=$enable_rpath; HAVE_RPATH=$enableval 17224else 17225 HAVE_RPATH=no 17226fi 17227 17228 if test "$HAVE_RPATH" = "yes"; then 17229 HAVE_RPATH_TRUE= 17230 HAVE_RPATH_FALSE='#' 17231else 17232 HAVE_RPATH_TRUE='#' 17233 HAVE_RPATH_FALSE= 17234fi 17235 17236 17237 17238# Check whether --enable-largefile was given. 17239if test "${enable_largefile+set}" = set; then : 17240 enableval=$enable_largefile; 17241fi 17242 17243if test "$enable_largefile" != no; then 17244 17245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 17246$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 17247if ${ac_cv_sys_largefile_CC+:} false; then : 17248 $as_echo_n "(cached) " >&6 17249else 17250 ac_cv_sys_largefile_CC=no 17251 if test "$GCC" != yes; then 17252 ac_save_CC=$CC 17253 while :; do 17254 # IRIX 6.2 and later do not support large files by default, 17255 # so use the C compiler's -n32 option if that helps. 17256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17257/* end confdefs.h. */ 17258#include <sys/types.h> 17259 /* Check that off_t can represent 2**63 - 1 correctly. 17260 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17261 since some C++ compilers masquerading as C compilers 17262 incorrectly reject 9223372036854775807. */ 17263#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 17264 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17265 && LARGE_OFF_T % 2147483647 == 1) 17266 ? 1 : -1]; 17267int 17268main () 17269{ 17270 17271 ; 17272 return 0; 17273} 17274_ACEOF 17275 if ac_fn_c_try_compile "$LINENO"; then : 17276 break 17277fi 17278rm -f core conftest.err conftest.$ac_objext 17279 CC="$CC -n32" 17280 if ac_fn_c_try_compile "$LINENO"; then : 17281 ac_cv_sys_largefile_CC=' -n32'; break 17282fi 17283rm -f core conftest.err conftest.$ac_objext 17284 break 17285 done 17286 CC=$ac_save_CC 17287 rm -f conftest.$ac_ext 17288 fi 17289fi 17290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 17291$as_echo "$ac_cv_sys_largefile_CC" >&6; } 17292 if test "$ac_cv_sys_largefile_CC" != no; then 17293 CC=$CC$ac_cv_sys_largefile_CC 17294 fi 17295 17296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 17297$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 17298if ${ac_cv_sys_file_offset_bits+:} false; then : 17299 $as_echo_n "(cached) " >&6 17300else 17301 while :; do 17302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17303/* end confdefs.h. */ 17304#include <sys/types.h> 17305 /* Check that off_t can represent 2**63 - 1 correctly. 17306 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17307 since some C++ compilers masquerading as C compilers 17308 incorrectly reject 9223372036854775807. */ 17309#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 17310 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17311 && LARGE_OFF_T % 2147483647 == 1) 17312 ? 1 : -1]; 17313int 17314main () 17315{ 17316 17317 ; 17318 return 0; 17319} 17320_ACEOF 17321if ac_fn_c_try_compile "$LINENO"; then : 17322 ac_cv_sys_file_offset_bits=no; break 17323fi 17324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17326/* end confdefs.h. */ 17327#define _FILE_OFFSET_BITS 64 17328#include <sys/types.h> 17329 /* Check that off_t can represent 2**63 - 1 correctly. 17330 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17331 since some C++ compilers masquerading as C compilers 17332 incorrectly reject 9223372036854775807. */ 17333#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 17334 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17335 && LARGE_OFF_T % 2147483647 == 1) 17336 ? 1 : -1]; 17337int 17338main () 17339{ 17340 17341 ; 17342 return 0; 17343} 17344_ACEOF 17345if ac_fn_c_try_compile "$LINENO"; then : 17346 ac_cv_sys_file_offset_bits=64; break 17347fi 17348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17349 ac_cv_sys_file_offset_bits=unknown 17350 break 17351done 17352fi 17353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 17354$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 17355case $ac_cv_sys_file_offset_bits in #( 17356 no | unknown) ;; 17357 *) 17358cat >>confdefs.h <<_ACEOF 17359#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 17360_ACEOF 17361;; 17362esac 17363rm -rf conftest* 17364 if test $ac_cv_sys_file_offset_bits = unknown; then 17365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 17366$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 17367if ${ac_cv_sys_large_files+:} false; then : 17368 $as_echo_n "(cached) " >&6 17369else 17370 while :; do 17371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17372/* end confdefs.h. */ 17373#include <sys/types.h> 17374 /* Check that off_t can represent 2**63 - 1 correctly. 17375 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17376 since some C++ compilers masquerading as C compilers 17377 incorrectly reject 9223372036854775807. */ 17378#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 17379 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17380 && LARGE_OFF_T % 2147483647 == 1) 17381 ? 1 : -1]; 17382int 17383main () 17384{ 17385 17386 ; 17387 return 0; 17388} 17389_ACEOF 17390if ac_fn_c_try_compile "$LINENO"; then : 17391 ac_cv_sys_large_files=no; break 17392fi 17393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17395/* end confdefs.h. */ 17396#define _LARGE_FILES 1 17397#include <sys/types.h> 17398 /* Check that off_t can represent 2**63 - 1 correctly. 17399 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17400 since some C++ compilers masquerading as C compilers 17401 incorrectly reject 9223372036854775807. */ 17402#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 17403 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17404 && LARGE_OFF_T % 2147483647 == 1) 17405 ? 1 : -1]; 17406int 17407main () 17408{ 17409 17410 ; 17411 return 0; 17412} 17413_ACEOF 17414if ac_fn_c_try_compile "$LINENO"; then : 17415 ac_cv_sys_large_files=1; break 17416fi 17417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17418 ac_cv_sys_large_files=unknown 17419 break 17420done 17421fi 17422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 17423$as_echo "$ac_cv_sys_large_files" >&6; } 17424case $ac_cv_sys_large_files in #( 17425 no | unknown) ;; 17426 *) 17427cat >>confdefs.h <<_ACEOF 17428#define _LARGE_FILES $ac_cv_sys_large_files 17429_ACEOF 17430;; 17431esac 17432rm -rf conftest* 17433 fi 17434fi 17435 17436 17437 17438LIBTIFF_DOCDIR=\${prefix}/share/doc/${PACKAGE}-${LIBTIFF_VERSION} 17439 17440 17441# Check whether --with-docdir was given. 17442if test "${with_docdir+set}" = set; then : 17443 withval=$with_docdir; 17444fi 17445 17446if test "x$with_docdir" != "x" ; then 17447 LIBTIFF_DOCDIR=$with_docdir 17448fi 17449 17450 17451 17452 17453# Check whether --enable-ccitt was given. 17454if test "${enable_ccitt+set}" = set; then : 17455 enableval=$enable_ccitt; HAVE_CCITT=$enableval 17456else 17457 HAVE_CCITT=yes 17458fi 17459 17460 17461if test "$HAVE_CCITT" = "yes" ; then 17462 17463$as_echo "#define CCITT_SUPPORT 1" >>confdefs.h 17464 17465fi 17466 17467# Check whether --enable-packbits was given. 17468if test "${enable_packbits+set}" = set; then : 17469 enableval=$enable_packbits; HAVE_PACKBITS=$enableval 17470else 17471 HAVE_PACKBITS=yes 17472fi 17473 17474 17475if test "$HAVE_PACKBITS" = "yes" ; then 17476 17477$as_echo "#define PACKBITS_SUPPORT 1" >>confdefs.h 17478 17479fi 17480 17481# Check whether --enable-lzw was given. 17482if test "${enable_lzw+set}" = set; then : 17483 enableval=$enable_lzw; HAVE_LZW=$enableval 17484else 17485 HAVE_LZW=yes 17486fi 17487 17488 17489if test "$HAVE_LZW" = "yes" ; then 17490 17491$as_echo "#define LZW_SUPPORT 1" >>confdefs.h 17492 17493fi 17494 17495# Check whether --enable-thunder was given. 17496if test "${enable_thunder+set}" = set; then : 17497 enableval=$enable_thunder; HAVE_THUNDER=$enableval 17498else 17499 HAVE_THUNDER=yes 17500fi 17501 17502 17503if test "$HAVE_THUNDER" = "yes" ; then 17504 17505$as_echo "#define THUNDER_SUPPORT 1" >>confdefs.h 17506 17507fi 17508 17509HAVE_NEXT=yes 17510 17511# Check whether --enable-next was given. 17512if test "${enable_next+set}" = set; then : 17513 enableval=$enable_next; HAVE_NEXT=$enableval 17514else 17515 HAVE_NEXT=yes 17516fi 17517 17518 17519if test "$HAVE_NEXT" = "yes" ; then 17520 17521$as_echo "#define NEXT_SUPPORT 1" >>confdefs.h 17522 17523fi 17524 17525# Check whether --enable-logluv was given. 17526if test "${enable_logluv+set}" = set; then : 17527 enableval=$enable_logluv; HAVE_LOGLUV=$enableval 17528else 17529 HAVE_LOGLUV=yes 17530fi 17531 17532 17533if test "$HAVE_LOGLUV" = "yes" ; then 17534 17535$as_echo "#define LOGLUV_SUPPORT 1" >>confdefs.h 17536 17537fi 17538 17539 17540# Check whether --enable-mdi was given. 17541if test "${enable_mdi+set}" = set; then : 17542 enableval=$enable_mdi; HAVE_MDI=$enableval 17543else 17544 HAVE_MDI=yes 17545fi 17546 17547 17548if test "$HAVE_MDI" = "yes" ; then 17549 17550$as_echo "#define MDI_SUPPORT 1" >>confdefs.h 17551 17552fi 17553 17554 17555HAVE_ZLIB=no 17556 17557# Check whether --enable-zlib was given. 17558if test "${enable_zlib+set}" = set; then : 17559 enableval=$enable_zlib; 17560fi 17561 17562 17563# Check whether --with-zlib-include-dir was given. 17564if test "${with_zlib_include_dir+set}" = set; then : 17565 withval=$with_zlib_include_dir; 17566fi 17567 17568 17569# Check whether --with-zlib-lib-dir was given. 17570if test "${with_zlib_lib_dir+set}" = set; then : 17571 withval=$with_zlib_lib_dir; 17572fi 17573 17574 17575if test "x$enable_zlib" != "xno" ; then 17576 17577 if test "x$with_zlib_lib_dir" != "x" ; then 17578 LDFLAGS="-L$with_zlib_lib_dir $LDFLAGS" 17579 fi 17580 17581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5 17582$as_echo_n "checking for inflateEnd in -lz... " >&6; } 17583if ${ac_cv_lib_z_inflateEnd+:} false; then : 17584 $as_echo_n "(cached) " >&6 17585else 17586 ac_check_lib_save_LIBS=$LIBS 17587LIBS="-lz $LIBS" 17588cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17589/* end confdefs.h. */ 17590 17591/* Override any GCC internal prototype to avoid an error. 17592 Use char because int might match the return type of a GCC 17593 builtin and then its argument prototype would still apply. */ 17594#ifdef __cplusplus 17595extern "C" 17596#endif 17597char inflateEnd (); 17598int 17599main () 17600{ 17601return inflateEnd (); 17602 ; 17603 return 0; 17604} 17605_ACEOF 17606if ac_fn_c_try_link "$LINENO"; then : 17607 ac_cv_lib_z_inflateEnd=yes 17608else 17609 ac_cv_lib_z_inflateEnd=no 17610fi 17611rm -f core conftest.err conftest.$ac_objext \ 17612 conftest$ac_exeext conftest.$ac_ext 17613LIBS=$ac_check_lib_save_LIBS 17614fi 17615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5 17616$as_echo "$ac_cv_lib_z_inflateEnd" >&6; } 17617if test "x$ac_cv_lib_z_inflateEnd" = xyes; then : 17618 zlib_lib=yes 17619else 17620 zlib_lib=no 17621fi 17622 17623 if test "$zlib_lib" = "no" -a "x$with_zlib_lib_dir" != "x"; then 17624 as_fn_error $? "Zlib library not found at $with_zlib_lib_dir" "$LINENO" 5 17625 fi 17626 17627 if test "x$with_zlib_include_dir" != "x" ; then 17628 CPPFLAGS="-I$with_zlib_include_dir $CPPFLAGS" 17629 fi 17630 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 17631if test "x$ac_cv_header_zlib_h" = xyes; then : 17632 zlib_h=yes 17633else 17634 zlib_h=no 17635fi 17636 17637 17638 if test "$zlib_h" = "no" -a "x$with_zlib_include_dir" != "x" ; then 17639 as_fn_error $? "Zlib headers not found at $with_zlib_include_dir" "$LINENO" 5 17640 fi 17641 17642 if test "$zlib_lib" = "yes" -a "$zlib_h" = "yes" ; then 17643 HAVE_ZLIB=yes 17644 fi 17645 17646fi 17647 17648if test "$HAVE_ZLIB" = "yes" ; then 17649 17650$as_echo "#define ZIP_SUPPORT 1" >>confdefs.h 17651 17652 LIBS="-lz $LIBS" 17653 tiff_libs_private="-lz ${tiff_libs_private}" 17654 17655 if test "$HAVE_RPATH" = "yes" -a "x$with_zlib_lib_dir" != "x" ; then 17656 LIBDIR="-R $with_zlib_lib_dir $LIBDIR" 17657 fi 17658 17659fi 17660 17661 17662# Check whether --enable-pixarlog was given. 17663if test "${enable_pixarlog+set}" = set; then : 17664 enableval=$enable_pixarlog; HAVE_PIXARLOG=$enableval 17665else 17666 HAVE_PIXARLOG=yes 17667fi 17668 17669 17670if test "$HAVE_ZLIB" = "yes" -a "$HAVE_PIXARLOG" = "yes" ; then 17671 17672$as_echo "#define PIXARLOG_SUPPORT 1" >>confdefs.h 17673 17674else 17675 HAVE_PIXARLOG=no 17676fi 17677 17678 17679HAVE_JPEG=no 17680 17681# Check whether --enable-jpeg was given. 17682if test "${enable_jpeg+set}" = set; then : 17683 enableval=$enable_jpeg; 17684fi 17685 17686 17687# Check whether --with-jpeg-include-dir was given. 17688if test "${with_jpeg_include_dir+set}" = set; then : 17689 withval=$with_jpeg_include_dir; 17690fi 17691 17692 17693# Check whether --with-jpeg-lib-dir was given. 17694if test "${with_jpeg_lib_dir+set}" = set; then : 17695 withval=$with_jpeg_lib_dir; 17696fi 17697 17698 17699if test "x$enable_jpeg" != "xno" ; then 17700 17701 if test "x$with_jpeg_lib_dir" != "x" ; then 17702 LDFLAGS="-L$with_jpeg_lib_dir $LDFLAGS" 17703 17704 fi 17705 17706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_scanlines in -ljpeg" >&5 17707$as_echo_n "checking for jpeg_read_scanlines in -ljpeg... " >&6; } 17708if ${ac_cv_lib_jpeg_jpeg_read_scanlines+:} false; then : 17709 $as_echo_n "(cached) " >&6 17710else 17711 ac_check_lib_save_LIBS=$LIBS 17712LIBS="-ljpeg $LIBS" 17713cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17714/* end confdefs.h. */ 17715 17716/* Override any GCC internal prototype to avoid an error. 17717 Use char because int might match the return type of a GCC 17718 builtin and then its argument prototype would still apply. */ 17719#ifdef __cplusplus 17720extern "C" 17721#endif 17722char jpeg_read_scanlines (); 17723int 17724main () 17725{ 17726return jpeg_read_scanlines (); 17727 ; 17728 return 0; 17729} 17730_ACEOF 17731if ac_fn_c_try_link "$LINENO"; then : 17732 ac_cv_lib_jpeg_jpeg_read_scanlines=yes 17733else 17734 ac_cv_lib_jpeg_jpeg_read_scanlines=no 17735fi 17736rm -f core conftest.err conftest.$ac_objext \ 17737 conftest$ac_exeext conftest.$ac_ext 17738LIBS=$ac_check_lib_save_LIBS 17739fi 17740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_scanlines" >&5 17741$as_echo "$ac_cv_lib_jpeg_jpeg_read_scanlines" >&6; } 17742if test "x$ac_cv_lib_jpeg_jpeg_read_scanlines" = xyes; then : 17743 jpeg_lib=yes 17744else 17745 jpeg_lib=no 17746fi 17747 17748 if test "$jpeg_lib" = "no" -a "x$with_jpeg_lib_dir" != "x" ; then 17749 as_fn_error $? "IJG JPEG library not found at $with_jpeg_lib_dir" "$LINENO" 5 17750 fi 17751 17752 if test "x$with_jpeg_include_dir" != "x" ; then 17753 CPPFLAGS="-I$with_jpeg_include_dir $CPPFLAGS" 17754 fi 17755 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 17756if test "x$ac_cv_header_jpeglib_h" = xyes; then : 17757 jpeg_h=yes 17758else 17759 jpeg_h=no 17760fi 17761 17762 17763 if test "$jpeg_h" = "no" -a "x$with_jpeg_include_dir" != "x" ; then 17764 as_fn_error $? "IJG JPEG library headers not found at $with_jpeg_include_dir" "$LINENO" 5 17765 fi 17766 17767 if test "$jpeg_lib" = "yes" -a "$jpeg_h" = "yes" ; then 17768 HAVE_JPEG=yes 17769 fi 17770 17771fi 17772 17773if test "$HAVE_JPEG" = "yes" ; then 17774 17775$as_echo "#define JPEG_SUPPORT 1" >>confdefs.h 17776 17777 LIBS="-ljpeg $LIBS" 17778 tiff_libs_private="-ljpeg ${tiff_libs_private}" 17779 17780 if test "$HAVE_RPATH" = "yes" -a "x$with_jpeg_lib_dir" != "x" ; then 17781 LIBDIR="-R $with_jpeg_lib_dir $LIBDIR" 17782 fi 17783 17784fi 17785 17786 17787# Check whether --enable-old-jpeg was given. 17788if test "${enable_old_jpeg+set}" = set; then : 17789 enableval=$enable_old_jpeg; HAVE_OJPEG=${enableval} 17790else 17791 HAVE_OJPEG=yes 17792fi 17793 17794 17795if test "$HAVE_JPEG" = "yes" -a "$HAVE_OJPEG" = "yes" ; then 17796 17797$as_echo "#define OJPEG_SUPPORT 1" >>confdefs.h 17798 17799else 17800 HAVE_OJPEG=no 17801fi 17802 17803 17804HAVE_JBIG=no 17805 17806# Check whether --enable-jbig was given. 17807if test "${enable_jbig+set}" = set; then : 17808 enableval=$enable_jbig; 17809fi 17810 17811 17812# Check whether --with-jbig-include-dir was given. 17813if test "${with_jbig_include_dir+set}" = set; then : 17814 withval=$with_jbig_include_dir; 17815fi 17816 17817 17818# Check whether --with-jbig-lib-dir was given. 17819if test "${with_jbig_lib_dir+set}" = set; then : 17820 withval=$with_jbig_lib_dir; 17821fi 17822 17823 17824if test "x$enable_jbig" != "xno" ; then 17825 17826 if test "x$with_jbig_lib_dir" != "x" ; then 17827 LDFLAGS="-L$with_jbig_lib_dir $LDFLAGS" 17828 17829 fi 17830 17831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5 17832$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; } 17833if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then : 17834 $as_echo_n "(cached) " >&6 17835else 17836 ac_check_lib_save_LIBS=$LIBS 17837LIBS="-ljbig $LIBS" 17838cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17839/* end confdefs.h. */ 17840 17841/* Override any GCC internal prototype to avoid an error. 17842 Use char because int might match the return type of a GCC 17843 builtin and then its argument prototype would still apply. */ 17844#ifdef __cplusplus 17845extern "C" 17846#endif 17847char jbg_dec_init (); 17848int 17849main () 17850{ 17851return jbg_dec_init (); 17852 ; 17853 return 0; 17854} 17855_ACEOF 17856if ac_fn_c_try_link "$LINENO"; then : 17857 ac_cv_lib_jbig_jbg_dec_init=yes 17858else 17859 ac_cv_lib_jbig_jbg_dec_init=no 17860fi 17861rm -f core conftest.err conftest.$ac_objext \ 17862 conftest$ac_exeext conftest.$ac_ext 17863LIBS=$ac_check_lib_save_LIBS 17864fi 17865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5 17866$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; } 17867if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then : 17868 jbig_lib=yes 17869else 17870 jbig_lib=no 17871fi 17872 17873 if test "$jbig_lib" = "no" -a "x$with_jbig_lib_dir" != "x" ; then 17874 as_fn_error $? "JBIG-KIT library not found at $with_jbig_lib_dir" "$LINENO" 5 17875 fi 17876 17877 if test "x$with_jbig_include_dir" != "x" ; then 17878 CPPFLAGS="-I$with_jbig_include_dir $CPPFLAGS" 17879 fi 17880 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default" 17881if test "x$ac_cv_header_jbig_h" = xyes; then : 17882 jbig_h=yes 17883else 17884 jbig_h=no 17885fi 17886 17887 17888 if test "$jbig_h" = "no" -a "x$with_jbig_include_dir" != "x" ; then 17889 as_fn_error $? "JBIG-KIT library headers not found at $with_jbig_include_dir" "$LINENO" 5 17890 fi 17891 17892 if test "$jbig_lib" = "yes" -a "$jbig_h" = "yes" ; then 17893 HAVE_JBIG=yes 17894 fi 17895 17896fi 17897 17898if test "$HAVE_JBIG" = "yes" ; then 17899 17900$as_echo "#define JBIG_SUPPORT 1" >>confdefs.h 17901 17902 LIBS="-ljbig $LIBS" 17903 tiff_libs_private="-ljbig ${tiff_libs_private}" 17904 17905 if test "$HAVE_RPATH" = "yes" -a "x$with_jbig_lib_dir" != "x" ; then 17906 LIBDIR="-R $with_jbig_lib_dir $LIBDIR" 17907 fi 17908 17909 # Older versions of jbigkit lack jbg_newlen 17910 for ac_func in jbg_newlen 17911do : 17912 ac_fn_c_check_func "$LINENO" "jbg_newlen" "ac_cv_func_jbg_newlen" 17913if test "x$ac_cv_func_jbg_newlen" = xyes; then : 17914 cat >>confdefs.h <<_ACEOF 17915#define HAVE_JBG_NEWLEN 1 17916_ACEOF 17917 17918fi 17919done 17920 17921 17922fi 17923 17924 17925HAVE_LZMA=no 17926 17927# Check whether --enable-lzma was given. 17928if test "${enable_lzma+set}" = set; then : 17929 enableval=$enable_lzma; 17930fi 17931 17932 17933# Check whether --with-lzma-include-dir was given. 17934if test "${with_lzma_include_dir+set}" = set; then : 17935 withval=$with_lzma_include_dir; 17936fi 17937 17938 17939# Check whether --with-lzma-lib-dir was given. 17940if test "${with_lzma_lib_dir+set}" = set; then : 17941 withval=$with_lzma_lib_dir; 17942fi 17943 17944 17945if test "x$enable_lzma" != "xno" ; then 17946 17947 if test "x$with_lzma_lib_dir" != "x" ; then 17948 LDFLAGS="-L$with_lzma_lib_dir $LDFLAGS" 17949 fi 17950 17951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5 17952$as_echo_n "checking for lzma_code in -llzma... " >&6; } 17953if ${ac_cv_lib_lzma_lzma_code+:} false; then : 17954 $as_echo_n "(cached) " >&6 17955else 17956 ac_check_lib_save_LIBS=$LIBS 17957LIBS="-llzma $LIBS" 17958cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17959/* end confdefs.h. */ 17960 17961/* Override any GCC internal prototype to avoid an error. 17962 Use char because int might match the return type of a GCC 17963 builtin and then its argument prototype would still apply. */ 17964#ifdef __cplusplus 17965extern "C" 17966#endif 17967char lzma_code (); 17968int 17969main () 17970{ 17971return lzma_code (); 17972 ; 17973 return 0; 17974} 17975_ACEOF 17976if ac_fn_c_try_link "$LINENO"; then : 17977 ac_cv_lib_lzma_lzma_code=yes 17978else 17979 ac_cv_lib_lzma_lzma_code=no 17980fi 17981rm -f core conftest.err conftest.$ac_objext \ 17982 conftest$ac_exeext conftest.$ac_ext 17983LIBS=$ac_check_lib_save_LIBS 17984fi 17985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5 17986$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; } 17987if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then : 17988 lzma_lib=yes 17989else 17990 lzma_lib=no 17991fi 17992 17993 if test "$lzma_lib" = "no" -a "x$with_lzma_lib_dir" != "x"; then 17994 as_fn_error $? "lzma library not found at $with_lzma_lib_dir" "$LINENO" 5 17995 fi 17996 17997 if test "x$with_lzma_include_dir" != "x" ; then 17998 CPPFLAGS="-I$with_lzma_include_dir $CPPFLAGS" 17999 fi 18000 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default" 18001if test "x$ac_cv_header_lzma_h" = xyes; then : 18002 lzma_h=yes 18003else 18004 lzma_h=no 18005fi 18006 18007 18008 if test "$lzma_h" = "no" -a "x$with_lzma_include_dir" != "x" ; then 18009 as_fn_error $? "Liblzma headers not found at $with_lzma_include_dir" "$LINENO" 5 18010 fi 18011 18012 if test "$lzma_lib" = "yes" -a "$lzma_h" = "yes" ; then 18013 HAVE_LZMA=yes 18014 fi 18015 18016fi 18017 18018if test "$HAVE_LZMA" = "yes" ; then 18019 18020$as_echo "#define LZMA_SUPPORT 1" >>confdefs.h 18021 18022 LIBS="-llzma $LIBS" 18023 tiff_libs_private="-llzma ${tiff_libs_private}" 18024 18025 if test "$HAVE_RPATH" = "yes" -a "x$with_lzma_lib_dir" != "x" ; then 18026 LIBDIR="-R $with_lzma_lib_dir $LIBDIR" 18027 fi 18028 18029fi 18030 18031 18032HAVE_JPEG12=no 18033 18034# Check whether --enable-jpeg12 was given. 18035if test "${enable_jpeg12+set}" = set; then : 18036 enableval=$enable_jpeg12; 18037fi 18038 18039 18040# Check whether --with-jpeg12-include-dir was given. 18041if test "${with_jpeg12_include_dir+set}" = set; then : 18042 withval=$with_jpeg12_include_dir; 18043fi 18044 18045 18046# Check whether --with-jpeg12-lib was given. 18047if test "${with_jpeg12_lib+set}" = set; then : 18048 withval=$with_jpeg12_lib; 18049fi 18050 18051 18052if test "x$enable_jpeg12" == "xyes" ; then 18053 18054 if test "x$with_jpeg12_lib" != "x" ; then 18055 LIBS="$with_jpeg12_lib $LIBS" 18056 fi 18057 18058 HAVE_JPEG12=yes 18059 18060 18061$as_echo "#define JPEG_DUAL_MODE_8_12 1" >>confdefs.h 18062 18063 if test "x$with_jpeg12_include_dir" != "x" ; then 18064 18065cat >>confdefs.h <<_ACEOF 18066#define LIBJPEG_12_PATH "$with_jpeg12_include_dir/jpeglib.h" 18067_ACEOF 18068 18069 fi 18070fi 18071 18072 18073 18074# Check whether --enable-cxx was given. 18075if test "${enable_cxx+set}" = set; then : 18076 enableval=$enable_cxx; HAVE_CXX=$enableval 18077else 18078 HAVE_CXX=yes 18079fi 18080 18081 18082if test "$HAVE_CXX" = "yes" ; then 18083 18084$as_echo "#define CXX_SUPPORT 1" >>confdefs.h 18085 18086else 18087 HAVE_CXX=no 18088fi 18089 18090 if test "$HAVE_CXX" = "yes"; then 18091 HAVE_CXX_TRUE= 18092 HAVE_CXX_FALSE='#' 18093else 18094 HAVE_CXX_TRUE='#' 18095 HAVE_CXX_FALSE= 18096fi 18097 18098 18099 18100HAVE_OPENGL=no 18101 18102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 18103$as_echo_n "checking for X... " >&6; } 18104 18105 18106# Check whether --with-x was given. 18107if test "${with_x+set}" = set; then : 18108 withval=$with_x; 18109fi 18110 18111# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 18112if test "x$with_x" = xno; then 18113 # The user explicitly disabled X. 18114 have_x=disabled 18115else 18116 case $x_includes,$x_libraries in #( 18117 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 18118 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 18119 $as_echo_n "(cached) " >&6 18120else 18121 # One or both of the vars are not set, and there is no cached value. 18122ac_x_includes=no ac_x_libraries=no 18123rm -f -r conftest.dir 18124if mkdir conftest.dir; then 18125 cd conftest.dir 18126 cat >Imakefile <<'_ACEOF' 18127incroot: 18128 @echo incroot='${INCROOT}' 18129usrlibdir: 18130 @echo usrlibdir='${USRLIBDIR}' 18131libdir: 18132 @echo libdir='${LIBDIR}' 18133_ACEOF 18134 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 18135 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 18136 for ac_var in incroot usrlibdir libdir; do 18137 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 18138 done 18139 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 18140 for ac_extension in a so sl dylib la dll; do 18141 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 18142 test -f "$ac_im_libdir/libX11.$ac_extension"; then 18143 ac_im_usrlibdir=$ac_im_libdir; break 18144 fi 18145 done 18146 # Screen out bogus values from the imake configuration. They are 18147 # bogus both because they are the default anyway, and because 18148 # using them would break gcc on systems where it needs fixed includes. 18149 case $ac_im_incroot in 18150 /usr/include) ac_x_includes= ;; 18151 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 18152 esac 18153 case $ac_im_usrlibdir in 18154 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 18155 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 18156 esac 18157 fi 18158 cd .. 18159 rm -f -r conftest.dir 18160fi 18161 18162# Standard set of common directories for X headers. 18163# Check X11 before X11Rn because it is often a symlink to the current release. 18164ac_x_header_dirs=' 18165/usr/X11/include 18166/usr/X11R7/include 18167/usr/X11R6/include 18168/usr/X11R5/include 18169/usr/X11R4/include 18170 18171/usr/include/X11 18172/usr/include/X11R7 18173/usr/include/X11R6 18174/usr/include/X11R5 18175/usr/include/X11R4 18176 18177/usr/local/X11/include 18178/usr/local/X11R7/include 18179/usr/local/X11R6/include 18180/usr/local/X11R5/include 18181/usr/local/X11R4/include 18182 18183/usr/local/include/X11 18184/usr/local/include/X11R7 18185/usr/local/include/X11R6 18186/usr/local/include/X11R5 18187/usr/local/include/X11R4 18188 18189/usr/X386/include 18190/usr/x386/include 18191/usr/XFree86/include/X11 18192 18193/usr/include 18194/usr/local/include 18195/usr/unsupported/include 18196/usr/athena/include 18197/usr/local/x11r5/include 18198/usr/lpp/Xamples/include 18199 18200/usr/openwin/include 18201/usr/openwin/share/include' 18202 18203if test "$ac_x_includes" = no; then 18204 # Guess where to find include files, by looking for Xlib.h. 18205 # First, try using that file with no special directory specified. 18206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18207/* end confdefs.h. */ 18208#include <X11/Xlib.h> 18209_ACEOF 18210if ac_fn_c_try_cpp "$LINENO"; then : 18211 # We can compile using X headers with no special include directory. 18212ac_x_includes= 18213else 18214 for ac_dir in $ac_x_header_dirs; do 18215 if test -r "$ac_dir/X11/Xlib.h"; then 18216 ac_x_includes=$ac_dir 18217 break 18218 fi 18219done 18220fi 18221rm -f conftest.err conftest.i conftest.$ac_ext 18222fi # $ac_x_includes = no 18223 18224if test "$ac_x_libraries" = no; then 18225 # Check for the libraries. 18226 # See if we find them without any special options. 18227 # Don't add to $LIBS permanently. 18228 ac_save_LIBS=$LIBS 18229 LIBS="-lX11 $LIBS" 18230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18231/* end confdefs.h. */ 18232#include <X11/Xlib.h> 18233int 18234main () 18235{ 18236XrmInitialize () 18237 ; 18238 return 0; 18239} 18240_ACEOF 18241if ac_fn_c_try_link "$LINENO"; then : 18242 LIBS=$ac_save_LIBS 18243# We can link X programs with no special library path. 18244ac_x_libraries= 18245else 18246 LIBS=$ac_save_LIBS 18247for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 18248do 18249 # Don't even attempt the hair of trying to link an X program! 18250 for ac_extension in a so sl dylib la dll; do 18251 if test -r "$ac_dir/libX11.$ac_extension"; then 18252 ac_x_libraries=$ac_dir 18253 break 2 18254 fi 18255 done 18256done 18257fi 18258rm -f core conftest.err conftest.$ac_objext \ 18259 conftest$ac_exeext conftest.$ac_ext 18260fi # $ac_x_libraries = no 18261 18262case $ac_x_includes,$ac_x_libraries in #( 18263 no,* | *,no | *\'*) 18264 # Didn't find X, or a directory has "'" in its name. 18265 ac_cv_have_x="have_x=no";; #( 18266 *) 18267 # Record where we found X for the cache. 18268 ac_cv_have_x="have_x=yes\ 18269 ac_x_includes='$ac_x_includes'\ 18270 ac_x_libraries='$ac_x_libraries'" 18271esac 18272fi 18273;; #( 18274 *) have_x=yes;; 18275 esac 18276 eval "$ac_cv_have_x" 18277fi # $with_x != no 18278 18279if test "$have_x" != yes; then 18280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 18281$as_echo "$have_x" >&6; } 18282 no_x=yes 18283else 18284 # If each of the values was on the command line, it overrides each guess. 18285 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 18286 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 18287 # Update the cache value to reflect the command line values. 18288 ac_cv_have_x="have_x=yes\ 18289 ac_x_includes='$x_includes'\ 18290 ac_x_libraries='$x_libraries'" 18291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 18292$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 18293fi 18294 18295if test "$no_x" = yes; then 18296 # Not all programs may use this symbol, but it does not hurt to define it. 18297 18298$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 18299 18300 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 18301else 18302 if test -n "$x_includes"; then 18303 X_CFLAGS="$X_CFLAGS -I$x_includes" 18304 fi 18305 18306 # It would also be nice to do this for all -L options, not just this one. 18307 if test -n "$x_libraries"; then 18308 X_LIBS="$X_LIBS -L$x_libraries" 18309 # For Solaris; some versions of Sun CC require a space after -R and 18310 # others require no space. Words are not sufficient . . . . 18311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 18312$as_echo_n "checking whether -R must be followed by a space... " >&6; } 18313 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 18314 ac_xsave_c_werror_flag=$ac_c_werror_flag 18315 ac_c_werror_flag=yes 18316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18317/* end confdefs.h. */ 18318 18319int 18320main () 18321{ 18322 18323 ; 18324 return 0; 18325} 18326_ACEOF 18327if ac_fn_c_try_link "$LINENO"; then : 18328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18329$as_echo "no" >&6; } 18330 X_LIBS="$X_LIBS -R$x_libraries" 18331else 18332 LIBS="$ac_xsave_LIBS -R $x_libraries" 18333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18334/* end confdefs.h. */ 18335 18336int 18337main () 18338{ 18339 18340 ; 18341 return 0; 18342} 18343_ACEOF 18344if ac_fn_c_try_link "$LINENO"; then : 18345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18346$as_echo "yes" >&6; } 18347 X_LIBS="$X_LIBS -R $x_libraries" 18348else 18349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 18350$as_echo "neither works" >&6; } 18351fi 18352rm -f core conftest.err conftest.$ac_objext \ 18353 conftest$ac_exeext conftest.$ac_ext 18354fi 18355rm -f core conftest.err conftest.$ac_objext \ 18356 conftest$ac_exeext conftest.$ac_ext 18357 ac_c_werror_flag=$ac_xsave_c_werror_flag 18358 LIBS=$ac_xsave_LIBS 18359 fi 18360 18361 # Check for system-dependent libraries X programs must link with. 18362 # Do this before checking for the system-independent R6 libraries 18363 # (-lICE), since we may need -lsocket or whatever for X linking. 18364 18365 if test "$ISC" = yes; then 18366 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 18367 else 18368 # Martyn Johnson says this is needed for Ultrix, if the X 18369 # libraries were built with DECnet support. And Karl Berry says 18370 # the Alpha needs dnet_stub (dnet does not exist). 18371 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 18372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18373/* end confdefs.h. */ 18374 18375/* Override any GCC internal prototype to avoid an error. 18376 Use char because int might match the return type of a GCC 18377 builtin and then its argument prototype would still apply. */ 18378#ifdef __cplusplus 18379extern "C" 18380#endif 18381char XOpenDisplay (); 18382int 18383main () 18384{ 18385return XOpenDisplay (); 18386 ; 18387 return 0; 18388} 18389_ACEOF 18390if ac_fn_c_try_link "$LINENO"; then : 18391 18392else 18393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 18394$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 18395if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 18396 $as_echo_n "(cached) " >&6 18397else 18398 ac_check_lib_save_LIBS=$LIBS 18399LIBS="-ldnet $LIBS" 18400cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18401/* end confdefs.h. */ 18402 18403/* Override any GCC internal prototype to avoid an error. 18404 Use char because int might match the return type of a GCC 18405 builtin and then its argument prototype would still apply. */ 18406#ifdef __cplusplus 18407extern "C" 18408#endif 18409char dnet_ntoa (); 18410int 18411main () 18412{ 18413return dnet_ntoa (); 18414 ; 18415 return 0; 18416} 18417_ACEOF 18418if ac_fn_c_try_link "$LINENO"; then : 18419 ac_cv_lib_dnet_dnet_ntoa=yes 18420else 18421 ac_cv_lib_dnet_dnet_ntoa=no 18422fi 18423rm -f core conftest.err conftest.$ac_objext \ 18424 conftest$ac_exeext conftest.$ac_ext 18425LIBS=$ac_check_lib_save_LIBS 18426fi 18427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 18428$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 18429if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 18430 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 18431fi 18432 18433 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 18434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 18435$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 18436if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 18437 $as_echo_n "(cached) " >&6 18438else 18439 ac_check_lib_save_LIBS=$LIBS 18440LIBS="-ldnet_stub $LIBS" 18441cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18442/* end confdefs.h. */ 18443 18444/* Override any GCC internal prototype to avoid an error. 18445 Use char because int might match the return type of a GCC 18446 builtin and then its argument prototype would still apply. */ 18447#ifdef __cplusplus 18448extern "C" 18449#endif 18450char dnet_ntoa (); 18451int 18452main () 18453{ 18454return dnet_ntoa (); 18455 ; 18456 return 0; 18457} 18458_ACEOF 18459if ac_fn_c_try_link "$LINENO"; then : 18460 ac_cv_lib_dnet_stub_dnet_ntoa=yes 18461else 18462 ac_cv_lib_dnet_stub_dnet_ntoa=no 18463fi 18464rm -f core conftest.err conftest.$ac_objext \ 18465 conftest$ac_exeext conftest.$ac_ext 18466LIBS=$ac_check_lib_save_LIBS 18467fi 18468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 18469$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 18470if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 18471 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 18472fi 18473 18474 fi 18475fi 18476rm -f core conftest.err conftest.$ac_objext \ 18477 conftest$ac_exeext conftest.$ac_ext 18478 LIBS="$ac_xsave_LIBS" 18479 18480 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT, 18481 # to get the SysV transport functions. 18482 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 18483 # needs -lnsl. 18484 # The nsl library prevents programs from opening the X display 18485 # on Irix 5.2, according to T.E. Dickey. 18486 # The functions gethostbyname, getservbyname, and inet_addr are 18487 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 18488 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 18489if test "x$ac_cv_func_gethostbyname" = xyes; then : 18490 18491fi 18492 18493 if test $ac_cv_func_gethostbyname = no; then 18494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 18495$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 18496if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 18497 $as_echo_n "(cached) " >&6 18498else 18499 ac_check_lib_save_LIBS=$LIBS 18500LIBS="-lnsl $LIBS" 18501cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18502/* end confdefs.h. */ 18503 18504/* Override any GCC internal prototype to avoid an error. 18505 Use char because int might match the return type of a GCC 18506 builtin and then its argument prototype would still apply. */ 18507#ifdef __cplusplus 18508extern "C" 18509#endif 18510char gethostbyname (); 18511int 18512main () 18513{ 18514return gethostbyname (); 18515 ; 18516 return 0; 18517} 18518_ACEOF 18519if ac_fn_c_try_link "$LINENO"; then : 18520 ac_cv_lib_nsl_gethostbyname=yes 18521else 18522 ac_cv_lib_nsl_gethostbyname=no 18523fi 18524rm -f core conftest.err conftest.$ac_objext \ 18525 conftest$ac_exeext conftest.$ac_ext 18526LIBS=$ac_check_lib_save_LIBS 18527fi 18528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 18529$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 18530if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 18531 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 18532fi 18533 18534 if test $ac_cv_lib_nsl_gethostbyname = no; then 18535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 18536$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 18537if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 18538 $as_echo_n "(cached) " >&6 18539else 18540 ac_check_lib_save_LIBS=$LIBS 18541LIBS="-lbsd $LIBS" 18542cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18543/* end confdefs.h. */ 18544 18545/* Override any GCC internal prototype to avoid an error. 18546 Use char because int might match the return type of a GCC 18547 builtin and then its argument prototype would still apply. */ 18548#ifdef __cplusplus 18549extern "C" 18550#endif 18551char gethostbyname (); 18552int 18553main () 18554{ 18555return gethostbyname (); 18556 ; 18557 return 0; 18558} 18559_ACEOF 18560if ac_fn_c_try_link "$LINENO"; then : 18561 ac_cv_lib_bsd_gethostbyname=yes 18562else 18563 ac_cv_lib_bsd_gethostbyname=no 18564fi 18565rm -f core conftest.err conftest.$ac_objext \ 18566 conftest$ac_exeext conftest.$ac_ext 18567LIBS=$ac_check_lib_save_LIBS 18568fi 18569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 18570$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 18571if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 18572 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 18573fi 18574 18575 fi 18576 fi 18577 18578 # [email protected] says without -lsocket, 18579 # socket/setsockopt and other routines are undefined under SCO ODT 18580 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 18581 # on later versions), says Simon Leinen: it contains gethostby* 18582 # variants that don't use the name server (or something). -lsocket 18583 # must be given before -lnsl if both are needed. We assume that 18584 # if connect needs -lnsl, so does gethostbyname. 18585 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 18586if test "x$ac_cv_func_connect" = xyes; then : 18587 18588fi 18589 18590 if test $ac_cv_func_connect = no; then 18591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 18592$as_echo_n "checking for connect in -lsocket... " >&6; } 18593if ${ac_cv_lib_socket_connect+:} false; then : 18594 $as_echo_n "(cached) " >&6 18595else 18596 ac_check_lib_save_LIBS=$LIBS 18597LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 18598cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18599/* end confdefs.h. */ 18600 18601/* Override any GCC internal prototype to avoid an error. 18602 Use char because int might match the return type of a GCC 18603 builtin and then its argument prototype would still apply. */ 18604#ifdef __cplusplus 18605extern "C" 18606#endif 18607char connect (); 18608int 18609main () 18610{ 18611return connect (); 18612 ; 18613 return 0; 18614} 18615_ACEOF 18616if ac_fn_c_try_link "$LINENO"; then : 18617 ac_cv_lib_socket_connect=yes 18618else 18619 ac_cv_lib_socket_connect=no 18620fi 18621rm -f core conftest.err conftest.$ac_objext \ 18622 conftest$ac_exeext conftest.$ac_ext 18623LIBS=$ac_check_lib_save_LIBS 18624fi 18625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 18626$as_echo "$ac_cv_lib_socket_connect" >&6; } 18627if test "x$ac_cv_lib_socket_connect" = xyes; then : 18628 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 18629fi 18630 18631 fi 18632 18633 # Guillermo Gomez says -lposix is necessary on A/UX. 18634 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 18635if test "x$ac_cv_func_remove" = xyes; then : 18636 18637fi 18638 18639 if test $ac_cv_func_remove = no; then 18640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 18641$as_echo_n "checking for remove in -lposix... " >&6; } 18642if ${ac_cv_lib_posix_remove+:} false; then : 18643 $as_echo_n "(cached) " >&6 18644else 18645 ac_check_lib_save_LIBS=$LIBS 18646LIBS="-lposix $LIBS" 18647cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18648/* end confdefs.h. */ 18649 18650/* Override any GCC internal prototype to avoid an error. 18651 Use char because int might match the return type of a GCC 18652 builtin and then its argument prototype would still apply. */ 18653#ifdef __cplusplus 18654extern "C" 18655#endif 18656char remove (); 18657int 18658main () 18659{ 18660return remove (); 18661 ; 18662 return 0; 18663} 18664_ACEOF 18665if ac_fn_c_try_link "$LINENO"; then : 18666 ac_cv_lib_posix_remove=yes 18667else 18668 ac_cv_lib_posix_remove=no 18669fi 18670rm -f core conftest.err conftest.$ac_objext \ 18671 conftest$ac_exeext conftest.$ac_ext 18672LIBS=$ac_check_lib_save_LIBS 18673fi 18674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 18675$as_echo "$ac_cv_lib_posix_remove" >&6; } 18676if test "x$ac_cv_lib_posix_remove" = xyes; then : 18677 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 18678fi 18679 18680 fi 18681 18682 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 18683 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 18684if test "x$ac_cv_func_shmat" = xyes; then : 18685 18686fi 18687 18688 if test $ac_cv_func_shmat = no; then 18689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 18690$as_echo_n "checking for shmat in -lipc... " >&6; } 18691if ${ac_cv_lib_ipc_shmat+:} false; then : 18692 $as_echo_n "(cached) " >&6 18693else 18694 ac_check_lib_save_LIBS=$LIBS 18695LIBS="-lipc $LIBS" 18696cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18697/* end confdefs.h. */ 18698 18699/* Override any GCC internal prototype to avoid an error. 18700 Use char because int might match the return type of a GCC 18701 builtin and then its argument prototype would still apply. */ 18702#ifdef __cplusplus 18703extern "C" 18704#endif 18705char shmat (); 18706int 18707main () 18708{ 18709return shmat (); 18710 ; 18711 return 0; 18712} 18713_ACEOF 18714if ac_fn_c_try_link "$LINENO"; then : 18715 ac_cv_lib_ipc_shmat=yes 18716else 18717 ac_cv_lib_ipc_shmat=no 18718fi 18719rm -f core conftest.err conftest.$ac_objext \ 18720 conftest$ac_exeext conftest.$ac_ext 18721LIBS=$ac_check_lib_save_LIBS 18722fi 18723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 18724$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 18725if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 18726 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 18727fi 18728 18729 fi 18730 fi 18731 18732 # Check for libraries that X11R6 Xt/Xaw programs need. 18733 ac_save_LDFLAGS=$LDFLAGS 18734 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 18735 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 18736 # check for ICE first), but we must link in the order -lSM -lICE or 18737 # we get undefined symbols. So assume we have SM if we have ICE. 18738 # These have to be linked with before -lX11, unlike the other 18739 # libraries we check for below, so use a different variable. 18740 # John Interrante, Karl Berry 18741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 18742$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 18743if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 18744 $as_echo_n "(cached) " >&6 18745else 18746 ac_check_lib_save_LIBS=$LIBS 18747LIBS="-lICE $X_EXTRA_LIBS $LIBS" 18748cat 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 IceConnectionNumber (); 18758int 18759main () 18760{ 18761return IceConnectionNumber (); 18762 ; 18763 return 0; 18764} 18765_ACEOF 18766if ac_fn_c_try_link "$LINENO"; then : 18767 ac_cv_lib_ICE_IceConnectionNumber=yes 18768else 18769 ac_cv_lib_ICE_IceConnectionNumber=no 18770fi 18771rm -f core conftest.err conftest.$ac_objext \ 18772 conftest$ac_exeext conftest.$ac_ext 18773LIBS=$ac_check_lib_save_LIBS 18774fi 18775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 18776$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 18777if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 18778 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 18779fi 18780 18781 LDFLAGS=$ac_save_LDFLAGS 18782 18783fi 18784 18785 18786 18787 18788 18789ac_ext=c 18790ac_cpp='$CPP $CPPFLAGS' 18791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18793ac_compiler_gnu=$ac_cv_c_compiler_gnu 18794 18795ax_pthread_ok=no 18796 18797 18798if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 18799 save_CFLAGS="$CFLAGS" 18800 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 18801 save_LIBS="$LIBS" 18802 LIBS="$PTHREAD_LIBS $LIBS" 18803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 18804$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 18805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18806/* end confdefs.h. */ 18807 18808/* Override any GCC internal prototype to avoid an error. 18809 Use char because int might match the return type of a GCC 18810 builtin and then its argument prototype would still apply. */ 18811#ifdef __cplusplus 18812extern "C" 18813#endif 18814char pthread_join (); 18815int 18816main () 18817{ 18818return pthread_join (); 18819 ; 18820 return 0; 18821} 18822_ACEOF 18823if ac_fn_c_try_link "$LINENO"; then : 18824 ax_pthread_ok=yes 18825fi 18826rm -f core conftest.err conftest.$ac_objext \ 18827 conftest$ac_exeext conftest.$ac_ext 18828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 18829$as_echo "$ax_pthread_ok" >&6; } 18830 if test x"$ax_pthread_ok" = xno; then 18831 PTHREAD_LIBS="" 18832 PTHREAD_CFLAGS="" 18833 fi 18834 LIBS="$save_LIBS" 18835 CFLAGS="$save_CFLAGS" 18836fi 18837 18838 18839 18840ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 18841 18842 18843 18844case "${host_cpu}-${host_os}" in 18845 *solaris*) 18846 18847 18848 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 18849 ;; 18850 18851 *-darwin*) 18852 ax_pthread_flags="-pthread $ax_pthread_flags" 18853 ;; 18854esac 18855 18856if test x"$ax_pthread_ok" = xno; then 18857for flag in $ax_pthread_flags; do 18858 18859 case $flag in 18860 none) 18861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 18862$as_echo_n "checking whether pthreads work without any flags... " >&6; } 18863 ;; 18864 18865 -*) 18866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 18867$as_echo_n "checking whether pthreads work with $flag... " >&6; } 18868 PTHREAD_CFLAGS="$flag" 18869 ;; 18870 18871 pthread-config) 18872 # Extract the first word of "pthread-config", so it can be a program name with args. 18873set dummy pthread-config; ac_word=$2 18874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18875$as_echo_n "checking for $ac_word... " >&6; } 18876if ${ac_cv_prog_ax_pthread_config+:} false; then : 18877 $as_echo_n "(cached) " >&6 18878else 18879 if test -n "$ax_pthread_config"; then 18880 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 18881else 18882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18883for as_dir in $PATH 18884do 18885 IFS=$as_save_IFS 18886 test -z "$as_dir" && as_dir=. 18887 for ac_exec_ext in '' $ac_executable_extensions; do 18888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18889 ac_cv_prog_ax_pthread_config="yes" 18890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18891 break 2 18892 fi 18893done 18894 done 18895IFS=$as_save_IFS 18896 18897 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 18898fi 18899fi 18900ax_pthread_config=$ac_cv_prog_ax_pthread_config 18901if test -n "$ax_pthread_config"; then 18902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 18903$as_echo "$ax_pthread_config" >&6; } 18904else 18905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18906$as_echo "no" >&6; } 18907fi 18908 18909 18910 if test x"$ax_pthread_config" = xno; then continue; fi 18911 PTHREAD_CFLAGS="`pthread-config --cflags`" 18912 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 18913 ;; 18914 18915 *) 18916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 18917$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 18918 PTHREAD_LIBS="-l$flag" 18919 ;; 18920 esac 18921 18922 save_LIBS="$LIBS" 18923 save_CFLAGS="$CFLAGS" 18924 LIBS="$PTHREAD_LIBS $LIBS" 18925 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 18926 18927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18928/* end confdefs.h. */ 18929#include <pthread.h> 18930 static void routine(void* a) {a=0;} 18931 static void* start_routine(void* a) {return a;} 18932int 18933main () 18934{ 18935pthread_t th; pthread_attr_t attr; 18936 pthread_create(&th,0,start_routine,0); 18937 pthread_join(th, 0); 18938 pthread_attr_init(&attr); 18939 pthread_cleanup_push(routine, 0); 18940 pthread_cleanup_pop(0); 18941 ; 18942 return 0; 18943} 18944_ACEOF 18945if ac_fn_c_try_link "$LINENO"; then : 18946 ax_pthread_ok=yes 18947fi 18948rm -f core conftest.err conftest.$ac_objext \ 18949 conftest$ac_exeext conftest.$ac_ext 18950 18951 LIBS="$save_LIBS" 18952 CFLAGS="$save_CFLAGS" 18953 18954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 18955$as_echo "$ax_pthread_ok" >&6; } 18956 if test "x$ax_pthread_ok" = xyes; then 18957 break; 18958 fi 18959 18960 PTHREAD_LIBS="" 18961 PTHREAD_CFLAGS="" 18962done 18963fi 18964 18965if test "x$ax_pthread_ok" = xyes; then 18966 save_LIBS="$LIBS" 18967 LIBS="$PTHREAD_LIBS $LIBS" 18968 save_CFLAGS="$CFLAGS" 18969 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 18970 18971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 18972$as_echo_n "checking for joinable pthread attribute... " >&6; } 18973 attr_name=unknown 18974 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 18975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18976/* end confdefs.h. */ 18977#include <pthread.h> 18978int 18979main () 18980{ 18981int attr=$attr; return attr; 18982 ; 18983 return 0; 18984} 18985_ACEOF 18986if ac_fn_c_try_link "$LINENO"; then : 18987 attr_name=$attr; break 18988fi 18989rm -f core conftest.err conftest.$ac_objext \ 18990 conftest$ac_exeext conftest.$ac_ext 18991 done 18992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 18993$as_echo "$attr_name" >&6; } 18994 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 18995 18996cat >>confdefs.h <<_ACEOF 18997#define PTHREAD_CREATE_JOINABLE $attr_name 18998_ACEOF 18999 19000 fi 19001 19002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 19003$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 19004 flag=no 19005 case "${host_cpu}-${host_os}" in 19006 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 19007 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 19008 esac 19009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 19010$as_echo "${flag}" >&6; } 19011 if test "x$flag" != xno; then 19012 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 19013 fi 19014 19015 LIBS="$save_LIBS" 19016 CFLAGS="$save_CFLAGS" 19017 19018 if test x"$GCC" != xyes; then 19019 for ac_prog in xlc_r cc_r 19020do 19021 # Extract the first word of "$ac_prog", so it can be a program name with args. 19022set dummy $ac_prog; ac_word=$2 19023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19024$as_echo_n "checking for $ac_word... " >&6; } 19025if ${ac_cv_prog_PTHREAD_CC+:} false; then : 19026 $as_echo_n "(cached) " >&6 19027else 19028 if test -n "$PTHREAD_CC"; then 19029 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 19030else 19031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19032for as_dir in $PATH 19033do 19034 IFS=$as_save_IFS 19035 test -z "$as_dir" && as_dir=. 19036 for ac_exec_ext in '' $ac_executable_extensions; do 19037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19038 ac_cv_prog_PTHREAD_CC="$ac_prog" 19039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19040 break 2 19041 fi 19042done 19043 done 19044IFS=$as_save_IFS 19045 19046fi 19047fi 19048PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 19049if test -n "$PTHREAD_CC"; then 19050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 19051$as_echo "$PTHREAD_CC" >&6; } 19052else 19053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19054$as_echo "no" >&6; } 19055fi 19056 19057 19058 test -n "$PTHREAD_CC" && break 19059done 19060test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 19061 19062 else 19063 PTHREAD_CC=$CC 19064 fi 19065else 19066 PTHREAD_CC="$CC" 19067fi 19068 19069 19070 19071 19072 19073if test x"$ax_pthread_ok" = xyes; then 19074 19075$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 19076 19077 : 19078else 19079 ax_pthread_ok=no 19080 19081fi 19082ac_ext=c 19083ac_cpp='$CPP $CPPFLAGS' 19084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19086ac_compiler_gnu=$ac_cv_c_compiler_gnu 19087 19088 19089 19090 19091ac_ext=c 19092ac_cpp='$CPP $CPPFLAGS' 19093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19095ac_compiler_gnu=$ac_cv_c_compiler_gnu 19096 19097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5 19098$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; } 19099if ${ax_cv_c_compiler_ms+:} false; then : 19100 $as_echo_n "(cached) " >&6 19101else 19102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19103/* end confdefs.h. */ 19104 19105int 19106main () 19107{ 19108#ifndef _MSC_VER 19109 choke me 19110#endif 19111 19112 ; 19113 return 0; 19114} 19115_ACEOF 19116if ac_fn_c_try_compile "$LINENO"; then : 19117 ax_compiler_ms=yes 19118else 19119 ax_compiler_ms=no 19120fi 19121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19122ax_cv_c_compiler_ms=$ax_compiler_ms 19123 19124fi 19125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5 19126$as_echo "$ax_cv_c_compiler_ms" >&6; } 19127if test X$ax_compiler_ms = Xno; then : 19128 GL_CFLAGS="${PTHREAD_CFLAGS}"; GL_LIBS="${PTHREAD_LIBS} -lm" 19129fi 19130 19131if test "X$no_x" != "Xyes"; then : 19132 if test -n "$x_includes"; then : 19133 GL_CFLAGS="-I${x_includes} ${GL_CFLAGS}" 19134fi 19135 if test -n "$x_libraries"; then : 19136 GL_LIBS="-L${x_libraries} -lX11 ${GL_LIBS}" 19137fi 19138fi 19139 19140ax_save_CPPFLAGS="${CPPFLAGS}" 19141CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 19142for ac_header in GL/gl.h OpenGL/gl.h 19143do : 19144 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19145ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19146if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19147 cat >>confdefs.h <<_ACEOF 19148#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19149_ACEOF 19150 19151fi 19152 19153done 19154 19155CPPFLAGS="${ax_save_CPPFLAGS}" 19156 19157for ac_header in windows.h 19158do : 19159 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" 19160if test "x$ac_cv_header_windows_h" = xyes; then : 19161 cat >>confdefs.h <<_ACEOF 19162#define HAVE_WINDOWS_H 1 19163_ACEOF 19164 19165fi 19166 19167done 19168 19169 19170 19171 19172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL library" >&5 19173$as_echo_n "checking for OpenGL library... " >&6; } 19174if ${ax_cv_check_gl_libgl+:} false; then : 19175 $as_echo_n "(cached) " >&6 19176else 19177 ax_cv_check_gl_libgl="no" 19178case $host_cpu in 19179 x86_64) ax_check_gl_libdir=lib64 ;; 19180 *) ax_check_gl_libdir=lib ;; 19181esac 19182ax_save_CPPFLAGS="${CPPFLAGS}" 19183CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 19184ax_save_LIBS="${LIBS}" 19185LIBS="" 19186ax_check_libs="-lopengl32 -lGL" 19187for ax_lib in ${ax_check_libs}; do 19188 if test X$ax_compiler_ms = Xyes; then : 19189 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` 19190else 19191 ax_try_lib="${ax_lib}" 19192fi 19193 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" 19194cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19195/* end confdefs.h. */ 19196 19197# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 19198# include <windows.h> 19199# endif 19200# ifdef HAVE_GL_GL_H 19201# include <GL/gl.h> 19202# elif defined(HAVE_OPENGL_GL_H) 19203# include <OpenGL/gl.h> 19204# else 19205# error no gl.h 19206# endif 19207int 19208main () 19209{ 19210glBegin(0) 19211 ; 19212 return 0; 19213} 19214_ACEOF 19215if ac_fn_c_try_link "$LINENO"; then : 19216 ax_cv_check_gl_libgl="${ax_try_lib}"; break 19217else 19218 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}" 19219cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19220/* end confdefs.h. */ 19221 19222# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 19223# include <windows.h> 19224# endif 19225# ifdef HAVE_GL_GL_H 19226# include <GL/gl.h> 19227# elif defined(HAVE_OPENGL_GL_H) 19228# include <OpenGL/gl.h> 19229# else 19230# error no gl.h 19231# endif 19232int 19233main () 19234{ 19235glBegin(0) 19236 ; 19237 return 0; 19238} 19239_ACEOF 19240if ac_fn_c_try_link "$LINENO"; then : 19241 ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_nvidia_flags}"; break 19242else 19243 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}" 19244cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19245/* end confdefs.h. */ 19246 19247# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 19248# include <windows.h> 19249# endif 19250# ifdef HAVE_GL_GL_H 19251# include <GL/gl.h> 19252# elif defined(HAVE_OPENGL_GL_H) 19253# include <OpenGL/gl.h> 19254# else 19255# error no gl.h 19256# endif 19257int 19258main () 19259{ 19260glBegin(0) 19261 ; 19262 return 0; 19263} 19264_ACEOF 19265if ac_fn_c_try_link "$LINENO"; then : 19266 ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_dylib_flag}"; break 19267fi 19268rm -f core conftest.err conftest.$ac_objext \ 19269 conftest$ac_exeext conftest.$ac_ext 19270fi 19271rm -f core conftest.err conftest.$ac_objext \ 19272 conftest$ac_exeext conftest.$ac_ext 19273fi 19274rm -f core conftest.err conftest.$ac_objext \ 19275 conftest$ac_exeext conftest.$ac_ext 19276done 19277 19278if test "X$ax_cv_check_gl_libgl" = Xno -a "X$no_x" = Xyes; then : 19279 LIBS='-framework OpenGL' 19280cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19281/* end confdefs.h. */ 19282 19283# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 19284# include <windows.h> 19285# endif 19286# ifdef HAVE_GL_GL_H 19287# include <GL/gl.h> 19288# elif defined(HAVE_OPENGL_GL_H) 19289# include <OpenGL/gl.h> 19290# else 19291# error no gl.h 19292# endif 19293int 19294main () 19295{ 19296glBegin(0) 19297 ; 19298 return 0; 19299} 19300_ACEOF 19301if ac_fn_c_try_link "$LINENO"; then : 19302 ax_cv_check_gl_libgl="$LIBS" 19303fi 19304rm -f core conftest.err conftest.$ac_objext \ 19305 conftest$ac_exeext conftest.$ac_ext 19306fi 19307 19308LIBS=${ax_save_LIBS} 19309CPPFLAGS=${ax_save_CPPFLAGS} 19310fi 19311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_libgl" >&5 19312$as_echo "$ax_cv_check_gl_libgl" >&6; } 19313 19314if test "X$ax_cv_check_gl_libgl" = Xno; then : 19315 no_gl=yes; GL_CFLAGS=""; GL_LIBS="" 19316else 19317 GL_LIBS="${ax_cv_check_gl_libgl} ${GL_LIBS}" 19318fi 19319ac_ext=c 19320ac_cpp='$CPP $CPPFLAGS' 19321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19323ac_compiler_gnu=$ac_cv_c_compiler_gnu 19324 19325 19326 19327 19328 19329GLU_CFLAGS="${GL_CFLAGS}" 19330 19331ax_save_CPPFLAGS="${CPPFLAGS}" 19332CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 19333for ac_header in GL/glu.h OpenGL/glu.h 19334do : 19335 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19336ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19337if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19338 cat >>confdefs.h <<_ACEOF 19339#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19340_ACEOF 19341 19342fi 19343 19344done 19345 19346CPPFLAGS="${ax_save_CPPFLAGS}" 19347 19348 19349 19350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL Utility library" >&5 19351$as_echo_n "checking for OpenGL Utility library... " >&6; } 19352if ${ax_cv_check_glu_libglu+:} false; then : 19353 $as_echo_n "(cached) " >&6 19354else 19355 ax_cv_check_glu_libglu="no" 19356ax_save_CPPFLAGS="${CPPFLAGS}" 19357CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 19358ax_save_LIBS="${LIBS}" 19359 19360LIBS="${GL_LIBS} ${ax_save_LIBS}" 19361ac_ext=cpp 19362ac_cpp='$CXXCPP $CPPFLAGS' 19363ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19364ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19365ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19366 19367if test X$ax_compiler_ms = Xyes; then : 19368 ac_ext=c 19369ac_cpp='$CPP $CPPFLAGS' 19370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19372ac_compiler_gnu=$ac_cv_c_compiler_gnu 19373 19374fi 19375cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19376/* end confdefs.h. */ 19377 19378# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 19379# include <windows.h> 19380# endif 19381# ifdef HAVE_GL_GLU_H 19382# include <GL/glu.h> 19383# elif defined(HAVE_OPENGL_GLU_H) 19384# include <OpenGL/glu.h> 19385# else 19386# error no glu.h 19387# endif 19388int 19389main () 19390{ 19391gluBeginCurve(0) 19392 ; 19393 return 0; 19394} 19395_ACEOF 19396if ac_fn_c_try_link "$LINENO"; then : 19397 ax_cv_check_glu_libglu=yes 19398else 19399 LIBS="" 19400ax_check_libs="-lglu32 -lGLU" 19401for ax_lib in ${ax_check_libs}; do 19402 if test X$ax_compiler_ms = Xyes; then : 19403 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` 19404else 19405 ax_try_lib="${ax_lib}" 19406fi 19407 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" 19408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19409/* end confdefs.h. */ 19410 19411# if defined(HAVE_WINDOWS_H) && defined(_WIN32) 19412# include <windows.h> 19413# endif 19414# ifdef HAVE_GL_GLU_H 19415# include <GL/glu.h> 19416# elif defined(HAVE_OPENGL_GLU_H) 19417# include <OpenGL/glu.h> 19418# else 19419# error no glu.h 19420# endif 19421int 19422main () 19423{ 19424gluBeginCurve(0) 19425 ; 19426 return 0; 19427} 19428_ACEOF 19429if ac_fn_c_try_link "$LINENO"; then : 19430 ax_cv_check_glu_libglu="${ax_try_lib}"; break 19431fi 19432rm -f core conftest.err conftest.$ac_objext \ 19433 conftest$ac_exeext conftest.$ac_ext 19434done 19435 19436fi 19437rm -f core conftest.err conftest.$ac_objext \ 19438 conftest$ac_exeext conftest.$ac_ext 19439if test X$ax_compiler_ms = Xyes; then : 19440 ac_ext=cpp 19441ac_cpp='$CXXCPP $CPPFLAGS' 19442ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19443ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19444ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19445 19446fi 19447ac_ext=c 19448ac_cpp='$CPP $CPPFLAGS' 19449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19451ac_compiler_gnu=$ac_cv_c_compiler_gnu 19452 19453 19454LIBS=${ax_save_LIBS} 19455CPPFLAGS=${ax_save_CPPFLAGS} 19456fi 19457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_libglu" >&5 19458$as_echo "$ax_cv_check_glu_libglu" >&6; } 19459if test "X$ax_cv_check_glu_libglu" = Xno; then : 19460 no_glu=yes; GLU_CFLAGS=""; GLU_LIBS="" 19461else 19462 if test "X$ax_cv_check_glu_libglu" = Xyes; then : 19463 GLU_LIBS="$GL_LIBS" 19464else 19465 GLU_LIBS="${ax_cv_check_glu_libglu} ${GL_LIBS}" 19466fi 19467fi 19468 19469 19470 19471if test "X$ax_cv_check_glu_libglu" != Xno; then : 19472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for varargs GLU tesselator callback function type" >&5 19473$as_echo_n "checking for varargs GLU tesselator callback function type... " >&6; } 19474if ${ax_cv_varargs_glu_tesscb+:} false; then : 19475 $as_echo_n "(cached) " >&6 19476else 19477 ax_cv_varargs_glu_tesscb=no 19478ax_save_CFLAGS="$CFLAGS" 19479CFLAGS="$GL_CFLAGS $CFLAGS" 19480cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19481/* end confdefs.h. */ 19482 19483# ifdef HAVE_GL_GLU_H 19484# include <GL/glu.h> 19485# else 19486# include <OpenGL/glu.h> 19487# endif 19488int 19489main () 19490{ 19491GLvoid (*func)(...); gluTessCallback(0, 0, func) 19492 ; 19493 return 0; 19494} 19495_ACEOF 19496if ac_fn_c_try_compile "$LINENO"; then : 19497 ax_cv_varargs_glu_tesscb=yes 19498fi 19499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19500CFLAGS="$ax_save_CFLAGS" 19501fi 19502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_varargs_glu_tesscb" >&5 19503$as_echo "$ax_cv_varargs_glu_tesscb" >&6; } 19504if test X$ax_cv_varargs_glu_tesscb = Xyes; then : 19505 19506$as_echo "#define HAVE_VARARGS_GLU_TESSCB 1" >>confdefs.h 19507 19508fi 19509fi 19510 19511 19512ax_save_CPPFLAGS="${CPPFLAGS}" 19513CPPFLAGS="${GLU_CFLAGS} ${CPPFLAGS}" 19514for ac_header in GL/glut.h GLUT/glut.h 19515do : 19516 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19517ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19518if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19519 cat >>confdefs.h <<_ACEOF 19520#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19521_ACEOF 19522 19523fi 19524 19525done 19526 19527CPPFLAGS="${ax_save_CPPFLAGS}" 19528 19529GLUT_CFLAGS=${GLU_CFLAGS} 19530GLUT_LIBS=${GLU_LIBS} 19531 19532 19533 19534if test X$no_x != Xyes; then : 19535 GLUT_LIBS="${X_PRE_LIBS} -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}" 19536fi 19537 19538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLUT library" >&5 19539$as_echo_n "checking for GLUT library... " >&6; } 19540if ${ax_cv_check_glut_libglut+:} false; then : 19541 $as_echo_n "(cached) " >&6 19542else 19543 ax_cv_check_glut_libglut="no" 19544ac_ext=c 19545ac_cpp='$CPP $CPPFLAGS' 19546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19548ac_compiler_gnu=$ac_cv_c_compiler_gnu 19549 19550ax_save_CPPFLAGS="${CPPFLAGS}" 19551CPPFLAGS="${GLUT_CFLAGS} ${CPPFLAGS}" 19552ax_save_LIBS="${LIBS}" 19553LIBS="" 19554ax_check_libs="-lglut32 -lglut" 19555for ax_lib in ${ax_check_libs}; do 19556 if test X$ax_compiler_ms = Xyes; then : 19557 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` 19558else 19559 ax_try_lib="${ax_lib}" 19560fi 19561 LIBS="${ax_try_lib} ${GLUT_LIBS} ${ax_save_LIBS}" 19562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19563/* end confdefs.h. */ 19564 19565# if HAVE_WINDOWS_H && defined(_WIN32) 19566# include <windows.h> 19567# endif 19568# ifdef HAVE_GL_GLUT_H 19569# include <GL/glut.h> 19570# elif defined(HAVE_GLUT_GLUT_H) 19571# include <GLUT/glut.h> 19572# else 19573# error no glut.h 19574# endif 19575int 19576main () 19577{ 19578glutMainLoop() 19579 ; 19580 return 0; 19581} 19582_ACEOF 19583if ac_fn_c_try_link "$LINENO"; then : 19584 ax_cv_check_glut_libglut="${ax_try_lib}"; break 19585fi 19586rm -f core conftest.err conftest.$ac_objext \ 19587 conftest$ac_exeext conftest.$ac_ext 19588done 19589 19590if test "X$ax_cv_check_glut_libglut" = Xno -a "X$no_x" = Xyes; then : 19591 LIBS='-framework GLUT' 19592cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19593/* end confdefs.h. */ 19594 19595# if HAVE_WINDOWS_H && defined(_WIN32) 19596# include <windows.h> 19597# endif 19598# ifdef HAVE_GL_GLUT_H 19599# include <GL/glut.h> 19600# elif defined(HAVE_GLUT_GLUT_H) 19601# include <GLUT/glut.h> 19602# else 19603# error no glut.h 19604# endif 19605int 19606main () 19607{ 19608glutMainLoop() 19609 ; 19610 return 0; 19611} 19612_ACEOF 19613if ac_fn_c_try_link "$LINENO"; then : 19614 ax_cv_check_glut_libglut="$LIBS" 19615fi 19616rm -f core conftest.err conftest.$ac_objext \ 19617 conftest$ac_exeext conftest.$ac_ext 19618fi 19619 19620CPPFLAGS="${ax_save_CPPFLAGS}" 19621LIBS="${ax_save_LIBS}" 19622ac_ext=c 19623ac_cpp='$CPP $CPPFLAGS' 19624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19626ac_compiler_gnu=$ac_cv_c_compiler_gnu 19627 19628fi 19629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glut_libglut" >&5 19630$as_echo "$ax_cv_check_glut_libglut" >&6; } 19631 19632if test "X$ax_cv_check_glut_libglut" = Xno; then : 19633 no_glut="yes"; GLUT_CFLAGS=""; GLUT_LIBS="" 19634else 19635 GLUT_LIBS="${ax_cv_check_glut_libglut} ${GLUT_LIBS}" 19636fi 19637 19638 19639 19640 19641 19642if test "$no_x" != "yes" -a "$no_gl" != "yes" \ 19643 -a "$no_glu" != "yes" -a "$no_glut" != "yes" ; then 19644 HAVE_OPENGL=yes 19645fi 19646 19647 if test "$HAVE_OPENGL" = "yes"; then 19648 HAVE_OPENGL_TRUE= 19649 HAVE_OPENGL_FALSE='#' 19650else 19651 HAVE_OPENGL_TRUE='#' 19652 HAVE_OPENGL_FALSE= 19653fi 19654 19655 19656 19657win32_io_ok=no 19658case "${host_os}" in 19659 cygwin*) 19660 ;; 19661 *) 19662 if test x"$ac_cv_header_windows_h" = xyes; then 19663 win32_io_ok=yes 19664 19665$as_echo "#define USE_WIN32_FILEIO 1" >>confdefs.h 19666 19667 fi 19668 ;; 19669esac 19670 if test "$win32_io_ok" = yes; then 19671 WIN32_IO_TRUE= 19672 WIN32_IO_FALSE='#' 19673else 19674 WIN32_IO_TRUE='#' 19675 WIN32_IO_FALSE= 19676fi 19677 19678 19679 19680 19681 19682 19683 19684 19685 19686# Check whether --enable-strip-chopping was given. 19687if test "${enable_strip_chopping+set}" = set; then : 19688 enableval=$enable_strip_chopping; HAVE_STRIPCHOP=$enableval 19689else 19690 HAVE_STRIPCHOP=yes 19691fi 19692 19693 19694# Check whether --with-default-strip-size was given. 19695if test "${with_default_strip_size+set}" = set; then : 19696 withval=$with_default_strip_size; 19697fi 19698 19699 19700if test "$HAVE_STRIPCHOP" = "yes" \ 19701 -a "x$with_default_strip_size" != "xno"; then 19702 19703$as_echo "#define STRIPCHOP_DEFAULT TIFF_STRIPCHOP" >>confdefs.h 19704 19705 19706 if test "x$with_default_strip_size" = "x" \ 19707 -o "x$with_default_strip_size" = "xyes"; then 19708 with_default_strip_size="8192" 19709 fi 19710 19711 19712cat >>confdefs.h <<_ACEOF 19713#define STRIP_SIZE_DEFAULT $with_default_strip_size 19714_ACEOF 19715 19716 19717fi 19718 19719 19720# Check whether --enable-defer-strile-load was given. 19721if test "${enable_defer_strile_load+set}" = set; then : 19722 enableval=$enable_defer_strile_load; HAVE_DEFER_STRILE_LOAD=$enableval 19723else 19724 HAVE_DEFER_STRILE_LOAD=no 19725fi 19726 19727 19728if test "$HAVE_DEFER_STRILE_LOAD" = "yes" ; then 19729 19730$as_echo "#define DEFER_STRILE_LOAD 1" >>confdefs.h 19731 19732 19733fi 19734 19735 19736# Check whether --enable-chunky-strip-read was given. 19737if test "${enable_chunky_strip_read+set}" = set; then : 19738 enableval=$enable_chunky_strip_read; HAVE_CHUNKY_STRIP_READ=$enableval 19739else 19740 HAVE_CHUNKY_STRIP_READ=no 19741fi 19742 19743 19744if test "$HAVE_CHUNKY_STRIP_READ" = "yes" ; then 19745 19746$as_echo "#define CHUNKY_STRIP_READ_SUPPORT 1" >>confdefs.h 19747 19748 19749fi 19750 19751 19752$as_echo "#define SUBIFD_SUPPORT 1" >>confdefs.h 19753 19754 19755 19756# Check whether --enable-extrasample-as-alpha was given. 19757if test "${enable_extrasample_as_alpha+set}" = set; then : 19758 enableval=$enable_extrasample_as_alpha; HAVE_EXTRASAMPLE_AS_ALPHA=$enableval 19759else 19760 HAVE_EXTRASAMPLE_AS_ALPHA=yes 19761fi 19762 19763 19764if test "$HAVE_EXTRASAMPLE_AS_ALPHA" = "yes" ; then 19765 19766$as_echo "#define DEFAULT_EXTRASAMPLE_AS_ALPHA 1" >>confdefs.h 19767 19768fi 19769 19770 19771# Check whether --enable-check-ycbcr-subsampling was given. 19772if test "${enable_check_ycbcr_subsampling+set}" = set; then : 19773 enableval=$enable_check_ycbcr_subsampling; CHECK_JPEG_YCBCR_SUBSAMPLING=$enableval 19774else 19775 CHECK_JPEG_YCBCR_SUBSAMPLING=yes 19776fi 19777 19778 19779if test "$CHECK_JPEG_YCBCR_SUBSAMPLING" = "yes" ; then 19780 19781$as_echo "#define CHECK_JPEG_YCBCR_SUBSAMPLING 1" >>confdefs.h 19782 19783fi 19784 19785 19786 19787 19788ac_config_headers="$ac_config_headers libtiff/tif_config.h libtiff/tiffconf.h" 19789 19790 19791ac_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" 19792 19793cat >confcache <<\_ACEOF 19794# This file is a shell script that caches the results of configure 19795# tests run on this system so they can be shared between configure 19796# scripts and configure runs, see configure's option --config-cache. 19797# It is not useful on other systems. If it contains results you don't 19798# want to keep, you may remove or edit it. 19799# 19800# config.status only pays attention to the cache file if you give it 19801# the --recheck option to rerun configure. 19802# 19803# `ac_cv_env_foo' variables (set or unset) will be overridden when 19804# loading this file, other *unset* `ac_cv_foo' will be assigned the 19805# following values. 19806 19807_ACEOF 19808 19809# The following way of writing the cache mishandles newlines in values, 19810# but we know of no workaround that is simple, portable, and efficient. 19811# So, we kill variables containing newlines. 19812# Ultrix sh set writes to stderr and can't be redirected directly, 19813# and sets the high bit in the cache file unless we assign to the vars. 19814( 19815 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19816 eval ac_val=\$$ac_var 19817 case $ac_val in #( 19818 *${as_nl}*) 19819 case $ac_var in #( 19820 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19821$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19822 esac 19823 case $ac_var in #( 19824 _ | IFS | as_nl) ;; #( 19825 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19826 *) { eval $ac_var=; unset $ac_var;} ;; 19827 esac ;; 19828 esac 19829 done 19830 19831 (set) 2>&1 | 19832 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19833 *${as_nl}ac_space=\ *) 19834 # `set' does not quote correctly, so add quotes: double-quote 19835 # substitution turns \\\\ into \\, and sed turns \\ into \. 19836 sed -n \ 19837 "s/'/'\\\\''/g; 19838 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19839 ;; #( 19840 *) 19841 # `set' quotes correctly as required by POSIX, so do not add quotes. 19842 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19843 ;; 19844 esac | 19845 sort 19846) | 19847 sed ' 19848 /^ac_cv_env_/b end 19849 t clear 19850 :clear 19851 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19852 t end 19853 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19854 :end' >>confcache 19855if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19856 if test -w "$cache_file"; then 19857 if test "x$cache_file" != "x/dev/null"; then 19858 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19859$as_echo "$as_me: updating cache $cache_file" >&6;} 19860 if test ! -f "$cache_file" || test -h "$cache_file"; then 19861 cat confcache >"$cache_file" 19862 else 19863 case $cache_file in #( 19864 */* | ?:*) 19865 mv -f confcache "$cache_file"$$ && 19866 mv -f "$cache_file"$$ "$cache_file" ;; #( 19867 *) 19868 mv -f confcache "$cache_file" ;; 19869 esac 19870 fi 19871 fi 19872 else 19873 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19874$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19875 fi 19876fi 19877rm -f confcache 19878 19879test "x$prefix" = xNONE && prefix=$ac_default_prefix 19880# Let make expand exec_prefix. 19881test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19882 19883DEFS=-DHAVE_CONFIG_H 19884 19885ac_libobjs= 19886ac_ltlibobjs= 19887U= 19888for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19889 # 1. Remove the extension, and $U if already installed. 19890 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19891 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19892 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19893 # will be set to the directory where LIBOBJS objects are built. 19894 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19895 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19896done 19897LIBOBJS=$ac_libobjs 19898 19899LTLIBOBJS=$ac_ltlibobjs 19900 19901 19902 if test -n "$EXEEXT"; then 19903 am__EXEEXT_TRUE= 19904 am__EXEEXT_FALSE='#' 19905else 19906 am__EXEEXT_TRUE='#' 19907 am__EXEEXT_FALSE= 19908fi 19909 19910if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 19911 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 19912Usually this means the macro was only invoked conditionally." "$LINENO" 5 19913fi 19914if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19915 as_fn_error $? "conditional \"AMDEP\" was never defined. 19916Usually this means the macro was only invoked conditionally." "$LINENO" 5 19917fi 19918if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19919 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19920Usually this means the macro was only invoked conditionally." "$LINENO" 5 19921fi 19922if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 19923 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 19924Usually this means the macro was only invoked conditionally." "$LINENO" 5 19925fi 19926 19927if test -z "${HAVE_RPATH_TRUE}" && test -z "${HAVE_RPATH_FALSE}"; then 19928 as_fn_error $? "conditional \"HAVE_RPATH\" was never defined. 19929Usually this means the macro was only invoked conditionally." "$LINENO" 5 19930fi 19931if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then 19932 as_fn_error $? "conditional \"HAVE_CXX\" was never defined. 19933Usually this means the macro was only invoked conditionally." "$LINENO" 5 19934fi 19935if test -z "${HAVE_OPENGL_TRUE}" && test -z "${HAVE_OPENGL_FALSE}"; then 19936 as_fn_error $? "conditional \"HAVE_OPENGL\" was never defined. 19937Usually this means the macro was only invoked conditionally." "$LINENO" 5 19938fi 19939if test -z "${WIN32_IO_TRUE}" && test -z "${WIN32_IO_FALSE}"; then 19940 as_fn_error $? "conditional \"WIN32_IO\" was never defined. 19941Usually this means the macro was only invoked conditionally." "$LINENO" 5 19942fi 19943 19944: "${CONFIG_STATUS=./config.status}" 19945ac_write_fail=0 19946ac_clean_files_save=$ac_clean_files 19947ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19948{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19949$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19950as_write_fail=0 19951cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19952#! $SHELL 19953# Generated by $as_me. 19954# Run this file to recreate the current configuration. 19955# Compiler output produced by configure, useful for debugging 19956# configure, is in config.log if it exists. 19957 19958debug=false 19959ac_cs_recheck=false 19960ac_cs_silent=false 19961 19962SHELL=\${CONFIG_SHELL-$SHELL} 19963export SHELL 19964_ASEOF 19965cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19966## -------------------- ## 19967## M4sh Initialization. ## 19968## -------------------- ## 19969 19970# Be more Bourne compatible 19971DUALCASE=1; export DUALCASE # for MKS sh 19972if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19973 emulate sh 19974 NULLCMD=: 19975 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19976 # is contrary to our usage. Disable this feature. 19977 alias -g '${1+"$@"}'='"$@"' 19978 setopt NO_GLOB_SUBST 19979else 19980 case `(set -o) 2>/dev/null` in #( 19981 *posix*) : 19982 set -o posix ;; #( 19983 *) : 19984 ;; 19985esac 19986fi 19987 19988 19989as_nl=' 19990' 19991export as_nl 19992# Printing a long string crashes Solaris 7 /usr/bin/printf. 19993as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19994as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19995as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19996# Prefer a ksh shell builtin over an external printf program on Solaris, 19997# but without wasting forks for bash or zsh. 19998if test -z "$BASH_VERSION$ZSH_VERSION" \ 19999 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 20000 as_echo='print -r --' 20001 as_echo_n='print -rn --' 20002elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 20003 as_echo='printf %s\n' 20004 as_echo_n='printf %s' 20005else 20006 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 20007 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 20008 as_echo_n='/usr/ucb/echo -n' 20009 else 20010 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 20011 as_echo_n_body='eval 20012 arg=$1; 20013 case $arg in #( 20014 *"$as_nl"*) 20015 expr "X$arg" : "X\\(.*\\)$as_nl"; 20016 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 20017 esac; 20018 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 20019 ' 20020 export as_echo_n_body 20021 as_echo_n='sh -c $as_echo_n_body as_echo' 20022 fi 20023 export as_echo_body 20024 as_echo='sh -c $as_echo_body as_echo' 20025fi 20026 20027# The user is always right. 20028if test "${PATH_SEPARATOR+set}" != set; then 20029 PATH_SEPARATOR=: 20030 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20031 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20032 PATH_SEPARATOR=';' 20033 } 20034fi 20035 20036 20037# IFS 20038# We need space, tab and new line, in precisely that order. Quoting is 20039# there to prevent editors from complaining about space-tab. 20040# (If _AS_PATH_WALK were called with IFS unset, it would disable word 20041# splitting by setting IFS to empty value.) 20042IFS=" "" $as_nl" 20043 20044# Find who we are. Look in the path if we contain no directory separator. 20045as_myself= 20046case $0 in #(( 20047 *[\\/]* ) as_myself=$0 ;; 20048 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20049for as_dir in $PATH 20050do 20051 IFS=$as_save_IFS 20052 test -z "$as_dir" && as_dir=. 20053 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20054 done 20055IFS=$as_save_IFS 20056 20057 ;; 20058esac 20059# We did not find ourselves, most probably we were run as `sh COMMAND' 20060# in which case we are not to be found in the path. 20061if test "x$as_myself" = x; then 20062 as_myself=$0 20063fi 20064if test ! -f "$as_myself"; then 20065 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20066 exit 1 20067fi 20068 20069# Unset variables that we do not need and which cause bugs (e.g. in 20070# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 20071# suppresses any "Segmentation fault" message there. '((' could 20072# trigger a bug in pdksh 5.2.14. 20073for as_var in BASH_ENV ENV MAIL MAILPATH 20074do eval test x\${$as_var+set} = xset \ 20075 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20076done 20077PS1='$ ' 20078PS2='> ' 20079PS4='+ ' 20080 20081# NLS nuisances. 20082LC_ALL=C 20083export LC_ALL 20084LANGUAGE=C 20085export LANGUAGE 20086 20087# CDPATH. 20088(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20089 20090 20091# as_fn_error STATUS ERROR [LINENO LOG_FD] 20092# ---------------------------------------- 20093# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20094# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20095# script with STATUS, using 1 if that was 0. 20096as_fn_error () 20097{ 20098 as_status=$1; test $as_status -eq 0 && as_status=1 20099 if test "$4"; then 20100 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20101 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20102 fi 20103 $as_echo "$as_me: error: $2" >&2 20104 as_fn_exit $as_status 20105} # as_fn_error 20106 20107 20108# as_fn_set_status STATUS 20109# ----------------------- 20110# Set $? to STATUS, without forking. 20111as_fn_set_status () 20112{ 20113 return $1 20114} # as_fn_set_status 20115 20116# as_fn_exit STATUS 20117# ----------------- 20118# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20119as_fn_exit () 20120{ 20121 set +e 20122 as_fn_set_status $1 20123 exit $1 20124} # as_fn_exit 20125 20126# as_fn_unset VAR 20127# --------------- 20128# Portably unset VAR. 20129as_fn_unset () 20130{ 20131 { eval $1=; unset $1;} 20132} 20133as_unset=as_fn_unset 20134# as_fn_append VAR VALUE 20135# ---------------------- 20136# Append the text in VALUE to the end of the definition contained in VAR. Take 20137# advantage of any shell optimizations that allow amortized linear growth over 20138# repeated appends, instead of the typical quadratic growth present in naive 20139# implementations. 20140if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 20141 eval 'as_fn_append () 20142 { 20143 eval $1+=\$2 20144 }' 20145else 20146 as_fn_append () 20147 { 20148 eval $1=\$$1\$2 20149 } 20150fi # as_fn_append 20151 20152# as_fn_arith ARG... 20153# ------------------ 20154# Perform arithmetic evaluation on the ARGs, and store the result in the 20155# global $as_val. Take advantage of shells that can avoid forks. The arguments 20156# must be portable across $(()) and expr. 20157if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 20158 eval 'as_fn_arith () 20159 { 20160 as_val=$(( $* )) 20161 }' 20162else 20163 as_fn_arith () 20164 { 20165 as_val=`expr "$@" || test $? -eq 1` 20166 } 20167fi # as_fn_arith 20168 20169 20170if expr a : '\(a\)' >/dev/null 2>&1 && 20171 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20172 as_expr=expr 20173else 20174 as_expr=false 20175fi 20176 20177if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20178 as_basename=basename 20179else 20180 as_basename=false 20181fi 20182 20183if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20184 as_dirname=dirname 20185else 20186 as_dirname=false 20187fi 20188 20189as_me=`$as_basename -- "$0" || 20190$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20191 X"$0" : 'X\(//\)$' \| \ 20192 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20193$as_echo X/"$0" | 20194 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20195 s//\1/ 20196 q 20197 } 20198 /^X\/\(\/\/\)$/{ 20199 s//\1/ 20200 q 20201 } 20202 /^X\/\(\/\).*/{ 20203 s//\1/ 20204 q 20205 } 20206 s/.*/./; q'` 20207 20208# Avoid depending upon Character Ranges. 20209as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20210as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20211as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20212as_cr_digits='0123456789' 20213as_cr_alnum=$as_cr_Letters$as_cr_digits 20214 20215ECHO_C= ECHO_N= ECHO_T= 20216case `echo -n x` in #((((( 20217-n*) 20218 case `echo 'xy\c'` in 20219 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20220 xy) ECHO_C='\c';; 20221 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20222 ECHO_T=' ';; 20223 esac;; 20224*) 20225 ECHO_N='-n';; 20226esac 20227 20228rm -f conf$$ conf$$.exe conf$$.file 20229if test -d conf$$.dir; then 20230 rm -f conf$$.dir/conf$$.file 20231else 20232 rm -f conf$$.dir 20233 mkdir conf$$.dir 2>/dev/null 20234fi 20235if (echo >conf$$.file) 2>/dev/null; then 20236 if ln -s conf$$.file conf$$ 2>/dev/null; then 20237 as_ln_s='ln -s' 20238 # ... but there are two gotchas: 20239 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20240 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20241 # In both cases, we have to default to `cp -p'. 20242 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20243 as_ln_s='cp -p' 20244 elif ln conf$$.file conf$$ 2>/dev/null; then 20245 as_ln_s=ln 20246 else 20247 as_ln_s='cp -p' 20248 fi 20249else 20250 as_ln_s='cp -p' 20251fi 20252rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20253rmdir conf$$.dir 2>/dev/null 20254 20255 20256# as_fn_mkdir_p 20257# ------------- 20258# Create "$as_dir" as a directory, including parents if necessary. 20259as_fn_mkdir_p () 20260{ 20261 20262 case $as_dir in #( 20263 -*) as_dir=./$as_dir;; 20264 esac 20265 test -d "$as_dir" || eval $as_mkdir_p || { 20266 as_dirs= 20267 while :; do 20268 case $as_dir in #( 20269 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20270 *) as_qdir=$as_dir;; 20271 esac 20272 as_dirs="'$as_qdir' $as_dirs" 20273 as_dir=`$as_dirname -- "$as_dir" || 20274$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20275 X"$as_dir" : 'X\(//\)[^/]' \| \ 20276 X"$as_dir" : 'X\(//\)$' \| \ 20277 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20278$as_echo X"$as_dir" | 20279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20280 s//\1/ 20281 q 20282 } 20283 /^X\(\/\/\)[^/].*/{ 20284 s//\1/ 20285 q 20286 } 20287 /^X\(\/\/\)$/{ 20288 s//\1/ 20289 q 20290 } 20291 /^X\(\/\).*/{ 20292 s//\1/ 20293 q 20294 } 20295 s/.*/./; q'` 20296 test -d "$as_dir" && break 20297 done 20298 test -z "$as_dirs" || eval "mkdir $as_dirs" 20299 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20300 20301 20302} # as_fn_mkdir_p 20303if mkdir -p . 2>/dev/null; then 20304 as_mkdir_p='mkdir -p "$as_dir"' 20305else 20306 test -d ./-p && rmdir ./-p 20307 as_mkdir_p=false 20308fi 20309 20310if test -x / >/dev/null 2>&1; then 20311 as_test_x='test -x' 20312else 20313 if ls -dL / >/dev/null 2>&1; then 20314 as_ls_L_option=L 20315 else 20316 as_ls_L_option= 20317 fi 20318 as_test_x=' 20319 eval sh -c '\'' 20320 if test -d "$1"; then 20321 test -d "$1/."; 20322 else 20323 case $1 in #( 20324 -*)set "./$1";; 20325 esac; 20326 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 20327 ???[sx]*):;;*)false;;esac;fi 20328 '\'' sh 20329 ' 20330fi 20331as_executable_p=$as_test_x 20332 20333# Sed expression to map a string onto a valid CPP name. 20334as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20335 20336# Sed expression to map a string onto a valid variable name. 20337as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20338 20339 20340exec 6>&1 20341## ----------------------------------- ## 20342## Main body of $CONFIG_STATUS script. ## 20343## ----------------------------------- ## 20344_ASEOF 20345test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20346 20347cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20348# Save the log message, to keep $0 and so on meaningful, and to 20349# report actual input values of CONFIG_FILES etc. instead of their 20350# values after options handling. 20351ac_log=" 20352This file was extended by LibTIFF Software $as_me 4.0.0, which was 20353generated by GNU Autoconf 2.68. Invocation command line was 20354 20355 CONFIG_FILES = $CONFIG_FILES 20356 CONFIG_HEADERS = $CONFIG_HEADERS 20357 CONFIG_LINKS = $CONFIG_LINKS 20358 CONFIG_COMMANDS = $CONFIG_COMMANDS 20359 $ $0 $@ 20360 20361on `(hostname || uname -n) 2>/dev/null | sed 1q` 20362" 20363 20364_ACEOF 20365 20366case $ac_config_files in *" 20367"*) set x $ac_config_files; shift; ac_config_files=$*;; 20368esac 20369 20370case $ac_config_headers in *" 20371"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20372esac 20373 20374 20375cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20376# Files that config.status was made for. 20377config_files="$ac_config_files" 20378config_headers="$ac_config_headers" 20379config_commands="$ac_config_commands" 20380 20381_ACEOF 20382 20383cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20384ac_cs_usage="\ 20385\`$as_me' instantiates files and other configuration actions 20386from templates according to the current configuration. Unless the files 20387and actions are specified as TAGs, all are instantiated by default. 20388 20389Usage: $0 [OPTION]... [TAG]... 20390 20391 -h, --help print this help, then exit 20392 -V, --version print version number and configuration settings, then exit 20393 --config print configuration, then exit 20394 -q, --quiet, --silent 20395 do not print progress messages 20396 -d, --debug don't remove temporary files 20397 --recheck update $as_me by reconfiguring in the same conditions 20398 --file=FILE[:TEMPLATE] 20399 instantiate the configuration file FILE 20400 --header=FILE[:TEMPLATE] 20401 instantiate the configuration header FILE 20402 20403Configuration files: 20404$config_files 20405 20406Configuration headers: 20407$config_headers 20408 20409Configuration commands: 20410$config_commands 20411 20412Report bugs to <[email protected]>." 20413 20414_ACEOF 20415cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20416ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 20417ac_cs_version="\\ 20418LibTIFF Software config.status 4.0.0 20419configured by $0, generated by GNU Autoconf 2.68, 20420 with options \\"\$ac_cs_config\\" 20421 20422Copyright (C) 2010 Free Software Foundation, Inc. 20423This config.status script is free software; the Free Software Foundation 20424gives unlimited permission to copy, distribute and modify it." 20425 20426ac_pwd='$ac_pwd' 20427srcdir='$srcdir' 20428INSTALL='$INSTALL' 20429MKDIR_P='$MKDIR_P' 20430AWK='$AWK' 20431test -n "\$AWK" || AWK=awk 20432_ACEOF 20433 20434cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20435# The default lists apply if the user does not specify any file. 20436ac_need_defaults=: 20437while test $# != 0 20438do 20439 case $1 in 20440 --*=?*) 20441 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20442 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20443 ac_shift=: 20444 ;; 20445 --*=) 20446 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20447 ac_optarg= 20448 ac_shift=: 20449 ;; 20450 *) 20451 ac_option=$1 20452 ac_optarg=$2 20453 ac_shift=shift 20454 ;; 20455 esac 20456 20457 case $ac_option in 20458 # Handling of the options. 20459 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20460 ac_cs_recheck=: ;; 20461 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20462 $as_echo "$ac_cs_version"; exit ;; 20463 --config | --confi | --conf | --con | --co | --c ) 20464 $as_echo "$ac_cs_config"; exit ;; 20465 --debug | --debu | --deb | --de | --d | -d ) 20466 debug=: ;; 20467 --file | --fil | --fi | --f ) 20468 $ac_shift 20469 case $ac_optarg in 20470 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20471 '') as_fn_error $? "missing file argument" ;; 20472 esac 20473 as_fn_append CONFIG_FILES " '$ac_optarg'" 20474 ac_need_defaults=false;; 20475 --header | --heade | --head | --hea ) 20476 $ac_shift 20477 case $ac_optarg in 20478 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20479 esac 20480 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20481 ac_need_defaults=false;; 20482 --he | --h) 20483 # Conflict between --help and --header 20484 as_fn_error $? "ambiguous option: \`$1' 20485Try \`$0 --help' for more information.";; 20486 --help | --hel | -h ) 20487 $as_echo "$ac_cs_usage"; exit ;; 20488 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20489 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20490 ac_cs_silent=: ;; 20491 20492 # This is an error. 20493 -*) as_fn_error $? "unrecognized option: \`$1' 20494Try \`$0 --help' for more information." ;; 20495 20496 *) as_fn_append ac_config_targets " $1" 20497 ac_need_defaults=false ;; 20498 20499 esac 20500 shift 20501done 20502 20503ac_configure_extra_args= 20504 20505if $ac_cs_silent; then 20506 exec 6>/dev/null 20507 ac_configure_extra_args="$ac_configure_extra_args --silent" 20508fi 20509 20510_ACEOF 20511cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20512if \$ac_cs_recheck; then 20513 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20514 shift 20515 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 20516 CONFIG_SHELL='$SHELL' 20517 export CONFIG_SHELL 20518 exec "\$@" 20519fi 20520 20521_ACEOF 20522cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20523exec 5>>config.log 20524{ 20525 echo 20526 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20527## Running $as_me. ## 20528_ASBOX 20529 $as_echo "$ac_log" 20530} >&5 20531 20532_ACEOF 20533cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20534# 20535# INIT-COMMANDS 20536# 20537AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 20538 20539 20540# The HP-UX ksh and POSIX shell print the target directory to stdout 20541# if CDPATH is set. 20542(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20543 20544sed_quote_subst='$sed_quote_subst' 20545double_quote_subst='$double_quote_subst' 20546delay_variable_subst='$delay_variable_subst' 20547macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20548macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20549AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 20550DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20551OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20552enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20553enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20554pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20555enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20556SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20557ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20558PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20559host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20560host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20561host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20562build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20563build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20564build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20565SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20566Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20567GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20568EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20569FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20570LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20571NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20572LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20573max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20574ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20575exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20576lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20577lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20578lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20579lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20580lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20581reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20582reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20583deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20584file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20585file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20586want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20587sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20588AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20589AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20590archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20591STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20592RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20593old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20594old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20595old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20596lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20597CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20598CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20599compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20600GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20601lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20602lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20603lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20604lt_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"`' 20605nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20606lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20607objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20608MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20609lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20610lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20611lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20612lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20613lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20614need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20615MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20616DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20617NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20618LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20619OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20620OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20621libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20622shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20623extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20624archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20625enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20626export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20627whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20628compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20629old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20630old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20631archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20632archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20633module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20634module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20635with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20636allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20637no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20638hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20639hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20640hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20641hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20642hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20643hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20644hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20645inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20646link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20647always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20648export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20649exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20650include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20651prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20652postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20653file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20654variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20655need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20656need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20657version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20658runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20659shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20660shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20661libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20662library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20663soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20664install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20665postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20666postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20667finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20668finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20669hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20670sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20671sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 20672hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20673enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20674enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20675enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20676old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20677striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20678compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 20679predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 20680postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 20681predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 20682postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 20683compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 20684LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 20685reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 20686reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20687old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20688compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 20689GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 20690lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 20691lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 20692lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 20693lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 20694lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 20695archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 20696enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 20697export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 20698whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 20699compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 20700old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20701old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20702archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20703archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20704module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20705module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20706with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 20707allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 20708no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 20709hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 20710hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 20711hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 20712hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 20713hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 20714hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 20715hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 20716inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 20717link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 20718always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 20719export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20720exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 20721include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 20722prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20723postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20724file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 20725hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 20726compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 20727predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 20728postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 20729predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 20730postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 20731compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 20732 20733LTCC='$LTCC' 20734LTCFLAGS='$LTCFLAGS' 20735compiler='$compiler_DEFAULT' 20736 20737# A function that is used when there is no print builtin or printf. 20738func_fallback_echo () 20739{ 20740 eval 'cat <<_LTECHO_EOF 20741\$1 20742_LTECHO_EOF' 20743} 20744 20745# Quote evaled strings. 20746for var in AS \ 20747DLLTOOL \ 20748OBJDUMP \ 20749SHELL \ 20750ECHO \ 20751PATH_SEPARATOR \ 20752SED \ 20753GREP \ 20754EGREP \ 20755FGREP \ 20756LD \ 20757NM \ 20758LN_S \ 20759lt_SP2NL \ 20760lt_NL2SP \ 20761reload_flag \ 20762deplibs_check_method \ 20763file_magic_cmd \ 20764file_magic_glob \ 20765want_nocaseglob \ 20766sharedlib_from_linklib_cmd \ 20767AR \ 20768AR_FLAGS \ 20769archiver_list_spec \ 20770STRIP \ 20771RANLIB \ 20772CC \ 20773CFLAGS \ 20774compiler \ 20775lt_cv_sys_global_symbol_pipe \ 20776lt_cv_sys_global_symbol_to_cdecl \ 20777lt_cv_sys_global_symbol_to_c_name_address \ 20778lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20779nm_file_list_spec \ 20780lt_prog_compiler_no_builtin_flag \ 20781lt_prog_compiler_pic \ 20782lt_prog_compiler_wl \ 20783lt_prog_compiler_static \ 20784lt_cv_prog_compiler_c_o \ 20785need_locks \ 20786MANIFEST_TOOL \ 20787DSYMUTIL \ 20788NMEDIT \ 20789LIPO \ 20790OTOOL \ 20791OTOOL64 \ 20792shrext_cmds \ 20793export_dynamic_flag_spec \ 20794whole_archive_flag_spec \ 20795compiler_needs_object \ 20796with_gnu_ld \ 20797allow_undefined_flag \ 20798no_undefined_flag \ 20799hardcode_libdir_flag_spec \ 20800hardcode_libdir_separator \ 20801exclude_expsyms \ 20802include_expsyms \ 20803file_list_spec \ 20804variables_saved_for_relink \ 20805libname_spec \ 20806library_names_spec \ 20807soname_spec \ 20808install_override_mode \ 20809finish_eval \ 20810old_striplib \ 20811striplib \ 20812compiler_lib_search_dirs \ 20813predep_objects \ 20814postdep_objects \ 20815predeps \ 20816postdeps \ 20817compiler_lib_search_path \ 20818LD_CXX \ 20819reload_flag_CXX \ 20820compiler_CXX \ 20821lt_prog_compiler_no_builtin_flag_CXX \ 20822lt_prog_compiler_pic_CXX \ 20823lt_prog_compiler_wl_CXX \ 20824lt_prog_compiler_static_CXX \ 20825lt_cv_prog_compiler_c_o_CXX \ 20826export_dynamic_flag_spec_CXX \ 20827whole_archive_flag_spec_CXX \ 20828compiler_needs_object_CXX \ 20829with_gnu_ld_CXX \ 20830allow_undefined_flag_CXX \ 20831no_undefined_flag_CXX \ 20832hardcode_libdir_flag_spec_CXX \ 20833hardcode_libdir_separator_CXX \ 20834exclude_expsyms_CXX \ 20835include_expsyms_CXX \ 20836file_list_spec_CXX \ 20837compiler_lib_search_dirs_CXX \ 20838predep_objects_CXX \ 20839postdep_objects_CXX \ 20840predeps_CXX \ 20841postdeps_CXX \ 20842compiler_lib_search_path_CXX; do 20843 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20844 *[\\\\\\\`\\"\\\$]*) 20845 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 20846 ;; 20847 *) 20848 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20849 ;; 20850 esac 20851done 20852 20853# Double-quote double-evaled strings. 20854for var in reload_cmds \ 20855old_postinstall_cmds \ 20856old_postuninstall_cmds \ 20857old_archive_cmds \ 20858extract_expsyms_cmds \ 20859old_archive_from_new_cmds \ 20860old_archive_from_expsyms_cmds \ 20861archive_cmds \ 20862archive_expsym_cmds \ 20863module_cmds \ 20864module_expsym_cmds \ 20865export_symbols_cmds \ 20866prelink_cmds \ 20867postlink_cmds \ 20868postinstall_cmds \ 20869postuninstall_cmds \ 20870finish_cmds \ 20871sys_lib_search_path_spec \ 20872sys_lib_dlsearch_path_spec \ 20873reload_cmds_CXX \ 20874old_archive_cmds_CXX \ 20875old_archive_from_new_cmds_CXX \ 20876old_archive_from_expsyms_cmds_CXX \ 20877archive_cmds_CXX \ 20878archive_expsym_cmds_CXX \ 20879module_cmds_CXX \ 20880module_expsym_cmds_CXX \ 20881export_symbols_cmds_CXX \ 20882prelink_cmds_CXX \ 20883postlink_cmds_CXX; do 20884 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20885 *[\\\\\\\`\\"\\\$]*) 20886 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 20887 ;; 20888 *) 20889 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20890 ;; 20891 esac 20892done 20893 20894ac_aux_dir='$ac_aux_dir' 20895xsi_shell='$xsi_shell' 20896lt_shell_append='$lt_shell_append' 20897 20898# See if we are running on zsh, and set the options which allow our 20899# commands through without removal of \ escapes INIT. 20900if test -n "\${ZSH_VERSION+set}" ; then 20901 setopt NO_GLOB_SUBST 20902fi 20903 20904 20905 PACKAGE='$PACKAGE' 20906 VERSION='$VERSION' 20907 TIMESTAMP='$TIMESTAMP' 20908 RM='$RM' 20909 ofile='$ofile' 20910 20911 20912 20913 20914 20915 20916_ACEOF 20917 20918cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20919 20920# Handling of arguments. 20921for ac_config_target in $ac_config_targets 20922do 20923 case $ac_config_target in 20924 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20925 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20926 "libtiff/tif_config.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tif_config.h" ;; 20927 "libtiff/tiffconf.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tiffconf.h" ;; 20928 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20929 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;; 20930 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; 20931 "contrib/addtiffo/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/addtiffo/Makefile" ;; 20932 "contrib/dbs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/Makefile" ;; 20933 "contrib/dbs/xtiff/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/xtiff/Makefile" ;; 20934 "contrib/iptcutil/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/iptcutil/Makefile" ;; 20935 "contrib/mfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mfs/Makefile" ;; 20936 "contrib/pds/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/pds/Makefile" ;; 20937 "contrib/ras/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/ras/Makefile" ;; 20938 "contrib/stream/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/stream/Makefile" ;; 20939 "contrib/tags/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/tags/Makefile" ;; 20940 "contrib/win_dib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/win_dib/Makefile" ;; 20941 "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;; 20942 "html/images/Makefile") CONFIG_FILES="$CONFIG_FILES html/images/Makefile" ;; 20943 "html/man/Makefile") CONFIG_FILES="$CONFIG_FILES html/man/Makefile" ;; 20944 "libtiff-4.pc") CONFIG_FILES="$CONFIG_FILES libtiff-4.pc" ;; 20945 "libtiff/Makefile") CONFIG_FILES="$CONFIG_FILES libtiff/Makefile" ;; 20946 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20947 "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;; 20948 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 20949 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 20950 20951 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20952 esac 20953done 20954 20955 20956# If the user did not use the arguments to specify the items to instantiate, 20957# then the envvar interface is used. Set only those that are not. 20958# We use the long form for the default assignment because of an extremely 20959# bizarre bug on SunOS 4.1.3. 20960if $ac_need_defaults; then 20961 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20962 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20963 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20964fi 20965 20966# Have a temporary directory for convenience. Make it in the build tree 20967# simply because there is no reason against having it here, and in addition, 20968# creating and moving files from /tmp can sometimes cause problems. 20969# Hook for its removal unless debugging. 20970# Note that there is a small window in which the directory will not be cleaned: 20971# after its creation but before its name has been assigned to `$tmp'. 20972$debug || 20973{ 20974 tmp= ac_tmp= 20975 trap 'exit_status=$? 20976 : "${ac_tmp:=$tmp}" 20977 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20978' 0 20979 trap 'as_fn_exit 1' 1 2 13 15 20980} 20981# Create a (secure) tmp directory for tmp files. 20982 20983{ 20984 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20985 test -d "$tmp" 20986} || 20987{ 20988 tmp=./conf$$-$RANDOM 20989 (umask 077 && mkdir "$tmp") 20990} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20991ac_tmp=$tmp 20992 20993# Set up the scripts for CONFIG_FILES section. 20994# No need to generate them if there are no CONFIG_FILES. 20995# This happens for instance with `./config.status config.h'. 20996if test -n "$CONFIG_FILES"; then 20997 20998 20999ac_cr=`echo X | tr X '\015'` 21000# On cygwin, bash can eat \r inside `` if the user requested igncr. 21001# But we know of no other shell where ac_cr would be empty at this 21002# point, so we can use a bashism as a fallback. 21003if test "x$ac_cr" = x; then 21004 eval ac_cr=\$\'\\r\' 21005fi 21006ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21007if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21008 ac_cs_awk_cr='\\r' 21009else 21010 ac_cs_awk_cr=$ac_cr 21011fi 21012 21013echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21014_ACEOF 21015 21016 21017{ 21018 echo "cat >conf$$subs.awk <<_ACEOF" && 21019 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21020 echo "_ACEOF" 21021} >conf$$subs.sh || 21022 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21023ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21024ac_delim='%!_!# ' 21025for ac_last_try in false false false false false :; do 21026 . ./conf$$subs.sh || 21027 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21028 21029 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21030 if test $ac_delim_n = $ac_delim_num; then 21031 break 21032 elif $ac_last_try; then 21033 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21034 else 21035 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21036 fi 21037done 21038rm -f conf$$subs.sh 21039 21040cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21041cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21042_ACEOF 21043sed -n ' 21044h 21045s/^/S["/; s/!.*/"]=/ 21046p 21047g 21048s/^[^!]*!// 21049:repl 21050t repl 21051s/'"$ac_delim"'$// 21052t delim 21053:nl 21054h 21055s/\(.\{148\}\)..*/\1/ 21056t more1 21057s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21058p 21059n 21060b repl 21061:more1 21062s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21063p 21064g 21065s/.\{148\}// 21066t nl 21067:delim 21068h 21069s/\(.\{148\}\)..*/\1/ 21070t more2 21071s/["\\]/\\&/g; s/^/"/; s/$/"/ 21072p 21073b 21074:more2 21075s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21076p 21077g 21078s/.\{148\}// 21079t delim 21080' <conf$$subs.awk | sed ' 21081/^[^""]/{ 21082 N 21083 s/\n// 21084} 21085' >>$CONFIG_STATUS || ac_write_fail=1 21086rm -f conf$$subs.awk 21087cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21088_ACAWK 21089cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21090 for (key in S) S_is_set[key] = 1 21091 FS = "" 21092 21093} 21094{ 21095 line = $ 0 21096 nfields = split(line, field, "@") 21097 substed = 0 21098 len = length(field[1]) 21099 for (i = 2; i < nfields; i++) { 21100 key = field[i] 21101 keylen = length(key) 21102 if (S_is_set[key]) { 21103 value = S[key] 21104 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21105 len += length(value) + length(field[++i]) 21106 substed = 1 21107 } else 21108 len += 1 + keylen 21109 } 21110 21111 print line 21112} 21113 21114_ACAWK 21115_ACEOF 21116cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21117if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21118 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21119else 21120 cat 21121fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21122 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21123_ACEOF 21124 21125# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21126# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21127# trailing colons and then remove the whole line if VPATH becomes empty 21128# (actually we leave an empty line to preserve line numbers). 21129if test "x$srcdir" = x.; then 21130 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21131h 21132s/// 21133s/^/:/ 21134s/[ ]*$/:/ 21135s/:\$(srcdir):/:/g 21136s/:\${srcdir}:/:/g 21137s/:@srcdir@:/:/g 21138s/^:*// 21139s/:*$// 21140x 21141s/\(=[ ]*\).*/\1/ 21142G 21143s/\n// 21144s/^[^=]*=[ ]*$// 21145}' 21146fi 21147 21148cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21149fi # test -n "$CONFIG_FILES" 21150 21151# Set up the scripts for CONFIG_HEADERS section. 21152# No need to generate them if there are no CONFIG_HEADERS. 21153# This happens for instance with `./config.status Makefile'. 21154if test -n "$CONFIG_HEADERS"; then 21155cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21156BEGIN { 21157_ACEOF 21158 21159# Transform confdefs.h into an awk script `defines.awk', embedded as 21160# here-document in config.status, that substitutes the proper values into 21161# config.h.in to produce config.h. 21162 21163# Create a delimiter string that does not exist in confdefs.h, to ease 21164# handling of long lines. 21165ac_delim='%!_!# ' 21166for ac_last_try in false false :; do 21167 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21168 if test -z "$ac_tt"; then 21169 break 21170 elif $ac_last_try; then 21171 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21172 else 21173 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21174 fi 21175done 21176 21177# For the awk script, D is an array of macro values keyed by name, 21178# likewise P contains macro parameters if any. Preserve backslash 21179# newline sequences. 21180 21181ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21182sed -n ' 21183s/.\{148\}/&'"$ac_delim"'/g 21184t rset 21185:rset 21186s/^[ ]*#[ ]*define[ ][ ]*/ / 21187t def 21188d 21189:def 21190s/\\$// 21191t bsnl 21192s/["\\]/\\&/g 21193s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21194D["\1"]=" \3"/p 21195s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21196d 21197:bsnl 21198s/["\\]/\\&/g 21199s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21200D["\1"]=" \3\\\\\\n"\\/p 21201t cont 21202s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21203t cont 21204d 21205:cont 21206n 21207s/.\{148\}/&'"$ac_delim"'/g 21208t clear 21209:clear 21210s/\\$// 21211t bsnlc 21212s/["\\]/\\&/g; s/^/"/; s/$/"/p 21213d 21214:bsnlc 21215s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21216b cont 21217' <confdefs.h | sed ' 21218s/'"$ac_delim"'/"\\\ 21219"/g' >>$CONFIG_STATUS || ac_write_fail=1 21220 21221cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21222 for (key in D) D_is_set[key] = 1 21223 FS = "" 21224} 21225/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21226 line = \$ 0 21227 split(line, arg, " ") 21228 if (arg[1] == "#") { 21229 defundef = arg[2] 21230 mac1 = arg[3] 21231 } else { 21232 defundef = substr(arg[1], 2) 21233 mac1 = arg[2] 21234 } 21235 split(mac1, mac2, "(") #) 21236 macro = mac2[1] 21237 prefix = substr(line, 1, index(line, defundef) - 1) 21238 if (D_is_set[macro]) { 21239 # Preserve the white space surrounding the "#". 21240 print prefix "define", macro P[macro] D[macro] 21241 next 21242 } else { 21243 # Replace #undef with comments. This is necessary, for example, 21244 # in the case of _POSIX_SOURCE, which is predefined and required 21245 # on some systems where configure will not decide to define it. 21246 if (defundef == "undef") { 21247 print "/*", prefix defundef, macro, "*/" 21248 next 21249 } 21250 } 21251} 21252{ print } 21253_ACAWK 21254_ACEOF 21255cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21256 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21257fi # test -n "$CONFIG_HEADERS" 21258 21259 21260eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21261shift 21262for ac_tag 21263do 21264 case $ac_tag in 21265 :[FHLC]) ac_mode=$ac_tag; continue;; 21266 esac 21267 case $ac_mode$ac_tag in 21268 :[FHL]*:*);; 21269 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21270 :[FH]-) ac_tag=-:-;; 21271 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21272 esac 21273 ac_save_IFS=$IFS 21274 IFS=: 21275 set x $ac_tag 21276 IFS=$ac_save_IFS 21277 shift 21278 ac_file=$1 21279 shift 21280 21281 case $ac_mode in 21282 :L) ac_source=$1;; 21283 :[FH]) 21284 ac_file_inputs= 21285 for ac_f 21286 do 21287 case $ac_f in 21288 -) ac_f="$ac_tmp/stdin";; 21289 *) # Look for the file first in the build tree, then in the source tree 21290 # (if the path is not absolute). The absolute path cannot be DOS-style, 21291 # because $ac_f cannot contain `:'. 21292 test -f "$ac_f" || 21293 case $ac_f in 21294 [\\/$]*) false;; 21295 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21296 esac || 21297 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21298 esac 21299 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21300 as_fn_append ac_file_inputs " '$ac_f'" 21301 done 21302 21303 # Let's still pretend it is `configure' which instantiates (i.e., don't 21304 # use $as_me), people would be surprised to read: 21305 # /* config.h. Generated by config.status. */ 21306 configure_input='Generated from '` 21307 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21308 `' by configure.' 21309 if test x"$ac_file" != x-; then 21310 configure_input="$ac_file. $configure_input" 21311 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21312$as_echo "$as_me: creating $ac_file" >&6;} 21313 fi 21314 # Neutralize special characters interpreted by sed in replacement strings. 21315 case $configure_input in #( 21316 *\&* | *\|* | *\\* ) 21317 ac_sed_conf_input=`$as_echo "$configure_input" | 21318 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21319 *) ac_sed_conf_input=$configure_input;; 21320 esac 21321 21322 case $ac_tag in 21323 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21324 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21325 esac 21326 ;; 21327 esac 21328 21329 ac_dir=`$as_dirname -- "$ac_file" || 21330$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21331 X"$ac_file" : 'X\(//\)[^/]' \| \ 21332 X"$ac_file" : 'X\(//\)$' \| \ 21333 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21334$as_echo X"$ac_file" | 21335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21336 s//\1/ 21337 q 21338 } 21339 /^X\(\/\/\)[^/].*/{ 21340 s//\1/ 21341 q 21342 } 21343 /^X\(\/\/\)$/{ 21344 s//\1/ 21345 q 21346 } 21347 /^X\(\/\).*/{ 21348 s//\1/ 21349 q 21350 } 21351 s/.*/./; q'` 21352 as_dir="$ac_dir"; as_fn_mkdir_p 21353 ac_builddir=. 21354 21355case "$ac_dir" in 21356.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21357*) 21358 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 21359 # A ".." for each directory in $ac_dir_suffix. 21360 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21361 case $ac_top_builddir_sub in 21362 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21363 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21364 esac ;; 21365esac 21366ac_abs_top_builddir=$ac_pwd 21367ac_abs_builddir=$ac_pwd$ac_dir_suffix 21368# for backward compatibility: 21369ac_top_builddir=$ac_top_build_prefix 21370 21371case $srcdir in 21372 .) # We are building in place. 21373 ac_srcdir=. 21374 ac_top_srcdir=$ac_top_builddir_sub 21375 ac_abs_top_srcdir=$ac_pwd ;; 21376 [\\/]* | ?:[\\/]* ) # Absolute name. 21377 ac_srcdir=$srcdir$ac_dir_suffix; 21378 ac_top_srcdir=$srcdir 21379 ac_abs_top_srcdir=$srcdir ;; 21380 *) # Relative name. 21381 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21382 ac_top_srcdir=$ac_top_build_prefix$srcdir 21383 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21384esac 21385ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21386 21387 21388 case $ac_mode in 21389 :F) 21390 # 21391 # CONFIG_FILE 21392 # 21393 21394 case $INSTALL in 21395 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21396 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21397 esac 21398 ac_MKDIR_P=$MKDIR_P 21399 case $MKDIR_P in 21400 [\\/$]* | ?:[\\/]* ) ;; 21401 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21402 esac 21403_ACEOF 21404 21405cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21406# If the template does not know about datarootdir, expand it. 21407# FIXME: This hack should be removed a few years after 2.60. 21408ac_datarootdir_hack=; ac_datarootdir_seen= 21409ac_sed_dataroot=' 21410/datarootdir/ { 21411 p 21412 q 21413} 21414/@datadir@/p 21415/@docdir@/p 21416/@infodir@/p 21417/@localedir@/p 21418/@mandir@/p' 21419case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21420*datarootdir*) ac_datarootdir_seen=yes;; 21421*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21423$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21424_ACEOF 21425cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21426 ac_datarootdir_hack=' 21427 s&@datadir@&$datadir&g 21428 s&@docdir@&$docdir&g 21429 s&@infodir@&$infodir&g 21430 s&@localedir@&$localedir&g 21431 s&@mandir@&$mandir&g 21432 s&\\\${datarootdir}&$datarootdir&g' ;; 21433esac 21434_ACEOF 21435 21436# Neutralize VPATH when `$srcdir' = `.'. 21437# Shell code in configure.ac might set extrasub. 21438# FIXME: do we really want to maintain this feature? 21439cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21440ac_sed_extra="$ac_vpsub 21441$extrasub 21442_ACEOF 21443cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21444:t 21445/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21446s|@configure_input@|$ac_sed_conf_input|;t t 21447s&@top_builddir@&$ac_top_builddir_sub&;t t 21448s&@top_build_prefix@&$ac_top_build_prefix&;t t 21449s&@srcdir@&$ac_srcdir&;t t 21450s&@abs_srcdir@&$ac_abs_srcdir&;t t 21451s&@top_srcdir@&$ac_top_srcdir&;t t 21452s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21453s&@builddir@&$ac_builddir&;t t 21454s&@abs_builddir@&$ac_abs_builddir&;t t 21455s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21456s&@INSTALL@&$ac_INSTALL&;t t 21457s&@MKDIR_P@&$ac_MKDIR_P&;t t 21458$ac_datarootdir_hack 21459" 21460eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21461 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21462 21463test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21464 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21465 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21466 "$ac_tmp/out"`; test -z "$ac_out"; } && 21467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21468which seems to be undefined. Please make sure it is defined" >&5 21469$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21470which seems to be undefined. Please make sure it is defined" >&2;} 21471 21472 rm -f "$ac_tmp/stdin" 21473 case $ac_file in 21474 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21475 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21476 esac \ 21477 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21478 ;; 21479 :H) 21480 # 21481 # CONFIG_HEADER 21482 # 21483 if test x"$ac_file" != x-; then 21484 { 21485 $as_echo "/* $configure_input */" \ 21486 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21487 } >"$ac_tmp/config.h" \ 21488 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21489 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21490 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21491$as_echo "$as_me: $ac_file is unchanged" >&6;} 21492 else 21493 rm -f "$ac_file" 21494 mv "$ac_tmp/config.h" "$ac_file" \ 21495 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21496 fi 21497 else 21498 $as_echo "/* $configure_input */" \ 21499 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21500 || as_fn_error $? "could not create -" "$LINENO" 5 21501 fi 21502# Compute "$ac_file"'s index in $config_headers. 21503_am_arg="$ac_file" 21504_am_stamp_count=1 21505for _am_header in $config_headers :; do 21506 case $_am_header in 21507 $_am_arg | $_am_arg:* ) 21508 break ;; 21509 * ) 21510 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21511 esac 21512done 21513echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21514$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21515 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21516 X"$_am_arg" : 'X\(//\)$' \| \ 21517 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21518$as_echo X"$_am_arg" | 21519 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21520 s//\1/ 21521 q 21522 } 21523 /^X\(\/\/\)[^/].*/{ 21524 s//\1/ 21525 q 21526 } 21527 /^X\(\/\/\)$/{ 21528 s//\1/ 21529 q 21530 } 21531 /^X\(\/\).*/{ 21532 s//\1/ 21533 q 21534 } 21535 s/.*/./; q'`/stamp-h$_am_stamp_count 21536 ;; 21537 21538 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21539$as_echo "$as_me: executing $ac_file commands" >&6;} 21540 ;; 21541 esac 21542 21543 21544 case $ac_file$ac_mode in 21545 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21546 # Autoconf 2.62 quotes --file arguments for eval, but not when files 21547 # are listed without --file. Let's play safe and only enable the eval 21548 # if we detect the quoting. 21549 case $CONFIG_FILES in 21550 *\'*) eval set x "$CONFIG_FILES" ;; 21551 *) set x $CONFIG_FILES ;; 21552 esac 21553 shift 21554 for mf 21555 do 21556 # Strip MF so we end up with the name of the file. 21557 mf=`echo "$mf" | sed -e 's/:.*$//'` 21558 # Check whether this is an Automake generated Makefile or not. 21559 # We used to match only the files named `Makefile.in', but 21560 # some people rename them; so instead we look at the file content. 21561 # Grep'ing the first line is not enough: some people post-process 21562 # each Makefile.in and add a new line on top of each file to say so. 21563 # Grep'ing the whole file is not good either: AIX grep has a line 21564 # limit of 2048, but all sed's we know have understand at least 4000. 21565 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 21566 dirpart=`$as_dirname -- "$mf" || 21567$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21568 X"$mf" : 'X\(//\)[^/]' \| \ 21569 X"$mf" : 'X\(//\)$' \| \ 21570 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 21571$as_echo X"$mf" | 21572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21573 s//\1/ 21574 q 21575 } 21576 /^X\(\/\/\)[^/].*/{ 21577 s//\1/ 21578 q 21579 } 21580 /^X\(\/\/\)$/{ 21581 s//\1/ 21582 q 21583 } 21584 /^X\(\/\).*/{ 21585 s//\1/ 21586 q 21587 } 21588 s/.*/./; q'` 21589 else 21590 continue 21591 fi 21592 # Extract the definition of DEPDIR, am__include, and am__quote 21593 # from the Makefile without running `make'. 21594 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 21595 test -z "$DEPDIR" && continue 21596 am__include=`sed -n 's/^am__include = //p' < "$mf"` 21597 test -z "am__include" && continue 21598 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 21599 # When using ansi2knr, U may be empty or an underscore; expand it 21600 U=`sed -n 's/^U = //p' < "$mf"` 21601 # Find all dependency output files, they are included files with 21602 # $(DEPDIR) in their names. We invoke sed twice because it is the 21603 # simplest approach to changing $(DEPDIR) to its actual value in the 21604 # expansion. 21605 for file in `sed -n " 21606 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 21607 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 21608 # Make sure the directory exists. 21609 test -f "$dirpart/$file" && continue 21610 fdir=`$as_dirname -- "$file" || 21611$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21612 X"$file" : 'X\(//\)[^/]' \| \ 21613 X"$file" : 'X\(//\)$' \| \ 21614 X"$file" : 'X\(/\)' \| . 2>/dev/null || 21615$as_echo X"$file" | 21616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21617 s//\1/ 21618 q 21619 } 21620 /^X\(\/\/\)[^/].*/{ 21621 s//\1/ 21622 q 21623 } 21624 /^X\(\/\/\)$/{ 21625 s//\1/ 21626 q 21627 } 21628 /^X\(\/\).*/{ 21629 s//\1/ 21630 q 21631 } 21632 s/.*/./; q'` 21633 as_dir=$dirpart/$fdir; as_fn_mkdir_p 21634 # echo "creating $dirpart/$file" 21635 echo '# dummy' > "$dirpart/$file" 21636 done 21637 done 21638} 21639 ;; 21640 "libtool":C) 21641 21642 # See if we are running on zsh, and set the options which allow our 21643 # commands through without removal of \ escapes. 21644 if test -n "${ZSH_VERSION+set}" ; then 21645 setopt NO_GLOB_SUBST 21646 fi 21647 21648 cfgfile="${ofile}T" 21649 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21650 $RM "$cfgfile" 21651 21652 cat <<_LT_EOF >> "$cfgfile" 21653#! $SHELL 21654 21655# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 21656# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 21657# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21658# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21659# 21660# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 21661# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 21662# Foundation, Inc. 21663# Written by Gordon Matzigkeit, 1996 21664# 21665# This file is part of GNU Libtool. 21666# 21667# GNU Libtool is free software; you can redistribute it and/or 21668# modify it under the terms of the GNU General Public License as 21669# published by the Free Software Foundation; either version 2 of 21670# the License, or (at your option) any later version. 21671# 21672# As a special exception to the GNU General Public License, 21673# if you distribute this file as part of a program or library that 21674# is built using GNU Libtool, you may include this file under the 21675# same distribution terms that you use for the rest of that program. 21676# 21677# GNU Libtool is distributed in the hope that it will be useful, 21678# but WITHOUT ANY WARRANTY; without even the implied warranty of 21679# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21680# GNU General Public License for more details. 21681# 21682# You should have received a copy of the GNU General Public License 21683# along with GNU Libtool; see the file COPYING. If not, a copy 21684# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 21685# obtained by writing to the Free Software Foundation, Inc., 21686# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 21687 21688 21689# The names of the tagged configurations supported by this script. 21690available_tags="CXX " 21691 21692# ### BEGIN LIBTOOL CONFIG 21693 21694# Which release of libtool.m4 was used? 21695macro_version=$macro_version 21696macro_revision=$macro_revision 21697 21698# Assembler program. 21699AS=$lt_AS 21700 21701# DLL creation program. 21702DLLTOOL=$lt_DLLTOOL 21703 21704# Object dumper program. 21705OBJDUMP=$lt_OBJDUMP 21706 21707# Whether or not to build shared libraries. 21708build_libtool_libs=$enable_shared 21709 21710# Whether or not to build static libraries. 21711build_old_libs=$enable_static 21712 21713# What type of objects to build. 21714pic_mode=$pic_mode 21715 21716# Whether or not to optimize for fast installation. 21717fast_install=$enable_fast_install 21718 21719# Shell to use when invoking shell scripts. 21720SHELL=$lt_SHELL 21721 21722# An echo program that protects backslashes. 21723ECHO=$lt_ECHO 21724 21725# The PATH separator for the build system. 21726PATH_SEPARATOR=$lt_PATH_SEPARATOR 21727 21728# The host system. 21729host_alias=$host_alias 21730host=$host 21731host_os=$host_os 21732 21733# The build system. 21734build_alias=$build_alias 21735build=$build 21736build_os=$build_os 21737 21738# A sed program that does not truncate output. 21739SED=$lt_SED 21740 21741# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21742Xsed="\$SED -e 1s/^X//" 21743 21744# A grep program that handles long lines. 21745GREP=$lt_GREP 21746 21747# An ERE matcher. 21748EGREP=$lt_EGREP 21749 21750# A literal string matcher. 21751FGREP=$lt_FGREP 21752 21753# A BSD- or MS-compatible name lister. 21754NM=$lt_NM 21755 21756# Whether we need soft or hard links. 21757LN_S=$lt_LN_S 21758 21759# What is the maximum length of a command? 21760max_cmd_len=$max_cmd_len 21761 21762# Object file suffix (normally "o"). 21763objext=$ac_objext 21764 21765# Executable file suffix (normally ""). 21766exeext=$exeext 21767 21768# whether the shell understands "unset". 21769lt_unset=$lt_unset 21770 21771# turn spaces into newlines. 21772SP2NL=$lt_lt_SP2NL 21773 21774# turn newlines into spaces. 21775NL2SP=$lt_lt_NL2SP 21776 21777# convert \$build file names to \$host format. 21778to_host_file_cmd=$lt_cv_to_host_file_cmd 21779 21780# convert \$build files to toolchain format. 21781to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21782 21783# Method to check whether dependent libraries are shared objects. 21784deplibs_check_method=$lt_deplibs_check_method 21785 21786# Command to use when deplibs_check_method = "file_magic". 21787file_magic_cmd=$lt_file_magic_cmd 21788 21789# How to find potential files when deplibs_check_method = "file_magic". 21790file_magic_glob=$lt_file_magic_glob 21791 21792# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21793want_nocaseglob=$lt_want_nocaseglob 21794 21795# Command to associate shared and link libraries. 21796sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21797 21798# The archiver. 21799AR=$lt_AR 21800 21801# Flags to create an archive. 21802AR_FLAGS=$lt_AR_FLAGS 21803 21804# How to feed a file listing to the archiver. 21805archiver_list_spec=$lt_archiver_list_spec 21806 21807# A symbol stripping program. 21808STRIP=$lt_STRIP 21809 21810# Commands used to install an old-style archive. 21811RANLIB=$lt_RANLIB 21812old_postinstall_cmds=$lt_old_postinstall_cmds 21813old_postuninstall_cmds=$lt_old_postuninstall_cmds 21814 21815# Whether to use a lock for old archive extraction. 21816lock_old_archive_extraction=$lock_old_archive_extraction 21817 21818# A C compiler. 21819LTCC=$lt_CC 21820 21821# LTCC compiler flags. 21822LTCFLAGS=$lt_CFLAGS 21823 21824# Take the output of nm and produce a listing of raw symbols and C names. 21825global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21826 21827# Transform the output of nm in a proper C declaration. 21828global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21829 21830# Transform the output of nm in a C name address pair. 21831global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21832 21833# Transform the output of nm in a C name address pair when lib prefix is needed. 21834global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21835 21836# Specify filename containing input files for \$NM. 21837nm_file_list_spec=$lt_nm_file_list_spec 21838 21839# The root where to search for dependent libraries,and in which our libraries should be installed. 21840lt_sysroot=$lt_sysroot 21841 21842# The name of the directory that contains temporary libtool files. 21843objdir=$objdir 21844 21845# Used to examine libraries when file_magic_cmd begins with "file". 21846MAGIC_CMD=$MAGIC_CMD 21847 21848# Must we lock files when doing compilation? 21849need_locks=$lt_need_locks 21850 21851# Manifest tool. 21852MANIFEST_TOOL=$lt_MANIFEST_TOOL 21853 21854# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21855DSYMUTIL=$lt_DSYMUTIL 21856 21857# Tool to change global to local symbols on Mac OS X. 21858NMEDIT=$lt_NMEDIT 21859 21860# Tool to manipulate fat objects and archives on Mac OS X. 21861LIPO=$lt_LIPO 21862 21863# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21864OTOOL=$lt_OTOOL 21865 21866# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21867OTOOL64=$lt_OTOOL64 21868 21869# Old archive suffix (normally "a"). 21870libext=$libext 21871 21872# Shared library suffix (normally ".so"). 21873shrext_cmds=$lt_shrext_cmds 21874 21875# The commands to extract the exported symbol list from a shared archive. 21876extract_expsyms_cmds=$lt_extract_expsyms_cmds 21877 21878# Variables whose values should be saved in libtool wrapper scripts and 21879# restored at link time. 21880variables_saved_for_relink=$lt_variables_saved_for_relink 21881 21882# Do we need the "lib" prefix for modules? 21883need_lib_prefix=$need_lib_prefix 21884 21885# Do we need a version for libraries? 21886need_version=$need_version 21887 21888# Library versioning type. 21889version_type=$version_type 21890 21891# Shared library runtime path variable. 21892runpath_var=$runpath_var 21893 21894# Shared library path variable. 21895shlibpath_var=$shlibpath_var 21896 21897# Is shlibpath searched before the hard-coded library search path? 21898shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21899 21900# Format of library name prefix. 21901libname_spec=$lt_libname_spec 21902 21903# List of archive names. First name is the real one, the rest are links. 21904# The last name is the one that the linker finds with -lNAME 21905library_names_spec=$lt_library_names_spec 21906 21907# The coded name of the library, if different from the real name. 21908soname_spec=$lt_soname_spec 21909 21910# Permission mode override for installation of shared libraries. 21911install_override_mode=$lt_install_override_mode 21912 21913# Command to use after installation of a shared archive. 21914postinstall_cmds=$lt_postinstall_cmds 21915 21916# Command to use after uninstallation of a shared archive. 21917postuninstall_cmds=$lt_postuninstall_cmds 21918 21919# Commands used to finish a libtool library installation in a directory. 21920finish_cmds=$lt_finish_cmds 21921 21922# As "finish_cmds", except a single script fragment to be evaled but 21923# not shown. 21924finish_eval=$lt_finish_eval 21925 21926# Whether we should hardcode library paths into libraries. 21927hardcode_into_libs=$hardcode_into_libs 21928 21929# Compile-time system search path for libraries. 21930sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21931 21932# Run-time system search path for libraries. 21933sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 21934 21935# Whether dlopen is supported. 21936dlopen_support=$enable_dlopen 21937 21938# Whether dlopen of programs is supported. 21939dlopen_self=$enable_dlopen_self 21940 21941# Whether dlopen of statically linked programs is supported. 21942dlopen_self_static=$enable_dlopen_self_static 21943 21944# Commands to strip libraries. 21945old_striplib=$lt_old_striplib 21946striplib=$lt_striplib 21947 21948 21949# The linker used to build libraries. 21950LD=$lt_LD 21951 21952# How to create reloadable object files. 21953reload_flag=$lt_reload_flag 21954reload_cmds=$lt_reload_cmds 21955 21956# Commands used to build an old-style archive. 21957old_archive_cmds=$lt_old_archive_cmds 21958 21959# A language specific compiler. 21960CC=$lt_compiler 21961 21962# Is the compiler the GNU compiler? 21963with_gcc=$GCC 21964 21965# Compiler flag to turn off builtin functions. 21966no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21967 21968# Additional compiler flags for building library objects. 21969pic_flag=$lt_lt_prog_compiler_pic 21970 21971# How to pass a linker flag through the compiler. 21972wl=$lt_lt_prog_compiler_wl 21973 21974# Compiler flag to prevent dynamic linking. 21975link_static_flag=$lt_lt_prog_compiler_static 21976 21977# Does compiler simultaneously support -c and -o options? 21978compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21979 21980# Whether or not to add -lc for building shared libraries. 21981build_libtool_need_lc=$archive_cmds_need_lc 21982 21983# Whether or not to disallow shared libs when runtime libs are static. 21984allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21985 21986# Compiler flag to allow reflexive dlopens. 21987export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21988 21989# Compiler flag to generate shared objects directly from archives. 21990whole_archive_flag_spec=$lt_whole_archive_flag_spec 21991 21992# Whether the compiler copes with passing no objects directly. 21993compiler_needs_object=$lt_compiler_needs_object 21994 21995# Create an old-style archive from a shared archive. 21996old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21997 21998# Create a temporary old-style archive to link instead of a shared archive. 21999old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22000 22001# Commands used to build a shared archive. 22002archive_cmds=$lt_archive_cmds 22003archive_expsym_cmds=$lt_archive_expsym_cmds 22004 22005# Commands used to build a loadable module if different from building 22006# a shared archive. 22007module_cmds=$lt_module_cmds 22008module_expsym_cmds=$lt_module_expsym_cmds 22009 22010# Whether we are building with GNU ld or not. 22011with_gnu_ld=$lt_with_gnu_ld 22012 22013# Flag that allows shared libraries with undefined symbols to be built. 22014allow_undefined_flag=$lt_allow_undefined_flag 22015 22016# Flag that enforces no undefined symbols. 22017no_undefined_flag=$lt_no_undefined_flag 22018 22019# Flag to hardcode \$libdir into a binary during linking. 22020# This must work even if \$libdir does not exist 22021hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22022 22023# Whether we need a single "-rpath" flag with a separated argument. 22024hardcode_libdir_separator=$lt_hardcode_libdir_separator 22025 22026# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 22027# DIR into the resulting binary. 22028hardcode_direct=$hardcode_direct 22029 22030# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 22031# DIR into the resulting binary and the resulting library dependency is 22032# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 22033# library is relocated. 22034hardcode_direct_absolute=$hardcode_direct_absolute 22035 22036# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22037# into the resulting binary. 22038hardcode_minus_L=$hardcode_minus_L 22039 22040# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22041# into the resulting binary. 22042hardcode_shlibpath_var=$hardcode_shlibpath_var 22043 22044# Set to "yes" if building a shared library automatically hardcodes DIR 22045# into the library and all subsequent libraries and executables linked 22046# against it. 22047hardcode_automatic=$hardcode_automatic 22048 22049# Set to yes if linker adds runtime paths of dependent libraries 22050# to runtime path list. 22051inherit_rpath=$inherit_rpath 22052 22053# Whether libtool must link a program against all its dependency libraries. 22054link_all_deplibs=$link_all_deplibs 22055 22056# Set to "yes" if exported symbols are required. 22057always_export_symbols=$always_export_symbols 22058 22059# The commands to list exported symbols. 22060export_symbols_cmds=$lt_export_symbols_cmds 22061 22062# Symbols that should not be listed in the preloaded symbols. 22063exclude_expsyms=$lt_exclude_expsyms 22064 22065# Symbols that must always be exported. 22066include_expsyms=$lt_include_expsyms 22067 22068# Commands necessary for linking programs (against libraries) with templates. 22069prelink_cmds=$lt_prelink_cmds 22070 22071# Commands necessary for finishing linking programs. 22072postlink_cmds=$lt_postlink_cmds 22073 22074# Specify filename containing input files. 22075file_list_spec=$lt_file_list_spec 22076 22077# How to hardcode a shared library path into an executable. 22078hardcode_action=$hardcode_action 22079 22080# The directories searched by this compiler when creating a shared library. 22081compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 22082 22083# Dependencies to place before and after the objects being linked to 22084# create a shared library. 22085predep_objects=$lt_predep_objects 22086postdep_objects=$lt_postdep_objects 22087predeps=$lt_predeps 22088postdeps=$lt_postdeps 22089 22090# The library search path used internally by the compiler when linking 22091# a shared library. 22092compiler_lib_search_path=$lt_compiler_lib_search_path 22093 22094# ### END LIBTOOL CONFIG 22095 22096_LT_EOF 22097 22098 case $host_os in 22099 aix3*) 22100 cat <<\_LT_EOF >> "$cfgfile" 22101# AIX sometimes has problems with the GCC collect2 program. For some 22102# reason, if we set the COLLECT_NAMES environment variable, the problems 22103# vanish in a puff of smoke. 22104if test "X${COLLECT_NAMES+set}" != Xset; then 22105 COLLECT_NAMES= 22106 export COLLECT_NAMES 22107fi 22108_LT_EOF 22109 ;; 22110 esac 22111 22112 22113ltmain="$ac_aux_dir/ltmain.sh" 22114 22115 22116 # We use sed instead of cat because bash on DJGPP gets confused if 22117 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22118 # text mode, it properly converts lines to CR/LF. This bash problem 22119 # is reportedly fixed, but why not run on old versions too? 22120 sed '$q' "$ltmain" >> "$cfgfile" \ 22121 || (rm -f "$cfgfile"; exit 1) 22122 22123 if test x"$xsi_shell" = xyes; then 22124 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 22125func_dirname ()\ 22126{\ 22127\ case ${1} in\ 22128\ */*) func_dirname_result="${1%/*}${2}" ;;\ 22129\ * ) func_dirname_result="${3}" ;;\ 22130\ esac\ 22131} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 22132 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22133 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22134test 0 -eq $? || _lt_function_replace_fail=: 22135 22136 22137 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 22138func_basename ()\ 22139{\ 22140\ func_basename_result="${1##*/}"\ 22141} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 22142 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22143 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22144test 0 -eq $? || _lt_function_replace_fail=: 22145 22146 22147 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 22148func_dirname_and_basename ()\ 22149{\ 22150\ case ${1} in\ 22151\ */*) func_dirname_result="${1%/*}${2}" ;;\ 22152\ * ) func_dirname_result="${3}" ;;\ 22153\ esac\ 22154\ func_basename_result="${1##*/}"\ 22155} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 22156 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22157 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22158test 0 -eq $? || _lt_function_replace_fail=: 22159 22160 22161 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 22162func_stripname ()\ 22163{\ 22164\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 22165\ # positional parameters, so assign one to ordinary parameter first.\ 22166\ func_stripname_result=${3}\ 22167\ func_stripname_result=${func_stripname_result#"${1}"}\ 22168\ func_stripname_result=${func_stripname_result%"${2}"}\ 22169} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 22170 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22171 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22172test 0 -eq $? || _lt_function_replace_fail=: 22173 22174 22175 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 22176func_split_long_opt ()\ 22177{\ 22178\ func_split_long_opt_name=${1%%=*}\ 22179\ func_split_long_opt_arg=${1#*=}\ 22180} # Extended-shell func_split_long_opt 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 22185 22186 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 22187func_split_short_opt ()\ 22188{\ 22189\ func_split_short_opt_arg=${1#??}\ 22190\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 22191} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 22192 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22193 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22194test 0 -eq $? || _lt_function_replace_fail=: 22195 22196 22197 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 22198func_lo2o ()\ 22199{\ 22200\ case ${1} in\ 22201\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 22202\ *) func_lo2o_result=${1} ;;\ 22203\ esac\ 22204} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 22205 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22206 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22207test 0 -eq $? || _lt_function_replace_fail=: 22208 22209 22210 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 22211func_xform ()\ 22212{\ 22213 func_xform_result=${1%.*}.lo\ 22214} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 22215 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22216 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22217test 0 -eq $? || _lt_function_replace_fail=: 22218 22219 22220 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 22221func_arith ()\ 22222{\ 22223 func_arith_result=$(( $* ))\ 22224} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 22225 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22226 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22227test 0 -eq $? || _lt_function_replace_fail=: 22228 22229 22230 sed -e '/^func_len ()$/,/^} # func_len /c\ 22231func_len ()\ 22232{\ 22233 func_len_result=${#1}\ 22234} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 22235 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22236 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22237test 0 -eq $? || _lt_function_replace_fail=: 22238 22239fi 22240 22241if test x"$lt_shell_append" = xyes; then 22242 sed -e '/^func_append ()$/,/^} # func_append /c\ 22243func_append ()\ 22244{\ 22245 eval "${1}+=\\${2}"\ 22246} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 22247 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22248 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22249test 0 -eq $? || _lt_function_replace_fail=: 22250 22251 22252 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 22253func_append_quoted ()\ 22254{\ 22255\ func_quote_for_eval "${2}"\ 22256\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 22257} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 22258 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22259 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22260test 0 -eq $? || _lt_function_replace_fail=: 22261 22262 22263 # Save a `func_append' function call where possible by direct use of '+=' 22264 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 22265 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22266 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22267 test 0 -eq $? || _lt_function_replace_fail=: 22268else 22269 # Save a `func_append' function call even when '+=' is not available 22270 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 22271 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22272 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22273 test 0 -eq $? || _lt_function_replace_fail=: 22274fi 22275 22276if test x"$_lt_function_replace_fail" = x":"; then 22277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 22278$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 22279fi 22280 22281 22282 mv -f "$cfgfile" "$ofile" || 22283 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22284 chmod +x "$ofile" 22285 22286 22287 cat <<_LT_EOF >> "$ofile" 22288 22289# ### BEGIN LIBTOOL TAG CONFIG: CXX 22290 22291# The linker used to build libraries. 22292LD=$lt_LD_CXX 22293 22294# How to create reloadable object files. 22295reload_flag=$lt_reload_flag_CXX 22296reload_cmds=$lt_reload_cmds_CXX 22297 22298# Commands used to build an old-style archive. 22299old_archive_cmds=$lt_old_archive_cmds_CXX 22300 22301# A language specific compiler. 22302CC=$lt_compiler_CXX 22303 22304# Is the compiler the GNU compiler? 22305with_gcc=$GCC_CXX 22306 22307# Compiler flag to turn off builtin functions. 22308no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 22309 22310# Additional compiler flags for building library objects. 22311pic_flag=$lt_lt_prog_compiler_pic_CXX 22312 22313# How to pass a linker flag through the compiler. 22314wl=$lt_lt_prog_compiler_wl_CXX 22315 22316# Compiler flag to prevent dynamic linking. 22317link_static_flag=$lt_lt_prog_compiler_static_CXX 22318 22319# Does compiler simultaneously support -c and -o options? 22320compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 22321 22322# Whether or not to add -lc for building shared libraries. 22323build_libtool_need_lc=$archive_cmds_need_lc_CXX 22324 22325# Whether or not to disallow shared libs when runtime libs are static. 22326allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 22327 22328# Compiler flag to allow reflexive dlopens. 22329export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 22330 22331# Compiler flag to generate shared objects directly from archives. 22332whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 22333 22334# Whether the compiler copes with passing no objects directly. 22335compiler_needs_object=$lt_compiler_needs_object_CXX 22336 22337# Create an old-style archive from a shared archive. 22338old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 22339 22340# Create a temporary old-style archive to link instead of a shared archive. 22341old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 22342 22343# Commands used to build a shared archive. 22344archive_cmds=$lt_archive_cmds_CXX 22345archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 22346 22347# Commands used to build a loadable module if different from building 22348# a shared archive. 22349module_cmds=$lt_module_cmds_CXX 22350module_expsym_cmds=$lt_module_expsym_cmds_CXX 22351 22352# Whether we are building with GNU ld or not. 22353with_gnu_ld=$lt_with_gnu_ld_CXX 22354 22355# Flag that allows shared libraries with undefined symbols to be built. 22356allow_undefined_flag=$lt_allow_undefined_flag_CXX 22357 22358# Flag that enforces no undefined symbols. 22359no_undefined_flag=$lt_no_undefined_flag_CXX 22360 22361# Flag to hardcode \$libdir into a binary during linking. 22362# This must work even if \$libdir does not exist 22363hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 22364 22365# Whether we need a single "-rpath" flag with a separated argument. 22366hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 22367 22368# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 22369# DIR into the resulting binary. 22370hardcode_direct=$hardcode_direct_CXX 22371 22372# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 22373# DIR into the resulting binary and the resulting library dependency is 22374# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 22375# library is relocated. 22376hardcode_direct_absolute=$hardcode_direct_absolute_CXX 22377 22378# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22379# into the resulting binary. 22380hardcode_minus_L=$hardcode_minus_L_CXX 22381 22382# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22383# into the resulting binary. 22384hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 22385 22386# Set to "yes" if building a shared library automatically hardcodes DIR 22387# into the library and all subsequent libraries and executables linked 22388# against it. 22389hardcode_automatic=$hardcode_automatic_CXX 22390 22391# Set to yes if linker adds runtime paths of dependent libraries 22392# to runtime path list. 22393inherit_rpath=$inherit_rpath_CXX 22394 22395# Whether libtool must link a program against all its dependency libraries. 22396link_all_deplibs=$link_all_deplibs_CXX 22397 22398# Set to "yes" if exported symbols are required. 22399always_export_symbols=$always_export_symbols_CXX 22400 22401# The commands to list exported symbols. 22402export_symbols_cmds=$lt_export_symbols_cmds_CXX 22403 22404# Symbols that should not be listed in the preloaded symbols. 22405exclude_expsyms=$lt_exclude_expsyms_CXX 22406 22407# Symbols that must always be exported. 22408include_expsyms=$lt_include_expsyms_CXX 22409 22410# Commands necessary for linking programs (against libraries) with templates. 22411prelink_cmds=$lt_prelink_cmds_CXX 22412 22413# Commands necessary for finishing linking programs. 22414postlink_cmds=$lt_postlink_cmds_CXX 22415 22416# Specify filename containing input files. 22417file_list_spec=$lt_file_list_spec_CXX 22418 22419# How to hardcode a shared library path into an executable. 22420hardcode_action=$hardcode_action_CXX 22421 22422# The directories searched by this compiler when creating a shared library. 22423compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 22424 22425# Dependencies to place before and after the objects being linked to 22426# create a shared library. 22427predep_objects=$lt_predep_objects_CXX 22428postdep_objects=$lt_postdep_objects_CXX 22429predeps=$lt_predeps_CXX 22430postdeps=$lt_postdeps_CXX 22431 22432# The library search path used internally by the compiler when linking 22433# a shared library. 22434compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 22435 22436# ### END LIBTOOL TAG CONFIG: CXX 22437_LT_EOF 22438 22439 ;; 22440 22441 esac 22442done # for ac_tag 22443 22444 22445as_fn_exit 0 22446_ACEOF 22447ac_clean_files=$ac_clean_files_save 22448 22449test $ac_write_fail = 0 || 22450 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22451 22452 22453# configure is writing to config.log, and then calls config.status. 22454# config.status does its own redirection, appending to config.log. 22455# Unfortunately, on DOS this fails, as config.log is still kept open 22456# by configure, so config.status won't be able to write to it; its 22457# output is simply discarded. So we exec the FD to /dev/null, 22458# effectively closing config.log, so it can be properly (re)opened and 22459# appended to by config.status. When coming back to configure, we 22460# need to make the FD available again. 22461if test "$no_create" != yes; then 22462 ac_cs_success=: 22463 ac_config_status_args= 22464 test "$silent" = yes && 22465 ac_config_status_args="$ac_config_status_args --quiet" 22466 exec 5>/dev/null 22467 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22468 exec 5>>config.log 22469 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22470 # would make configure fail if this is the last instruction. 22471 $ac_cs_success || as_fn_exit 1 22472fi 22473if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22475$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22476fi 22477 22478 22479 22480echo "" 22481echo "Libtiff is now configured for ${host}" 22482echo "" 22483echo " Installation directory: ${prefix}" 22484echo " Documentation directory: ${LIBTIFF_DOCDIR}" 22485echo " C compiler: ${CC} ${CFLAGS}" 22486echo " C++ compiler: ${CXX} ${CXXFLAGS}" 22487echo " Enable runtime linker paths: ${HAVE_RPATH}" 22488echo " Support Microsoft Document Imaging: ${HAVE_MDI}" 22489echo " Use win32 IO: ${win32_io_ok}" 22490echo "" 22491echo " Support for internal codecs:" 22492echo " CCITT Group 3 & 4 algorithms: ${HAVE_CCITT}" 22493echo " Macintosh PackBits algorithm: ${HAVE_PACKBITS}" 22494echo " LZW algorithm: ${HAVE_LZW}" 22495echo " ThunderScan 4-bit RLE algorithm: ${HAVE_THUNDER}" 22496echo " NeXT 2-bit RLE algorithm: ${HAVE_NEXT}" 22497echo " LogLuv high dynamic range encoding: ${HAVE_LOGLUV}" 22498echo "" 22499echo " Support for external codecs:" 22500echo " ZLIB support: ${HAVE_ZLIB}" 22501echo " Pixar log-format algorithm: ${HAVE_PIXARLOG}" 22502echo " JPEG support: ${HAVE_JPEG}" 22503echo " Old JPEG support: ${HAVE_OJPEG}" 22504echo " JPEG 8/12 bit dual mode: ${HAVE_JPEG12}" 22505echo " ISO JBIG support: ${HAVE_JBIG}" 22506echo " LZMA2 support: ${HAVE_LZMA}" 22507echo "" 22508echo " C++ support: ${HAVE_CXX}" 22509echo "" 22510echo " OpenGL support: ${HAVE_OPENGL}" 22511echo "" 22512 22513