1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59. 4# 5# Copyright (C) 2003 Free Software Foundation, Inc. 6# This configure script is free software; the Free Software Foundation 7# gives unlimited permission to copy, distribute and modify it. 8## --------------------- ## 9## M4sh Initialization. ## 10## --------------------- ## 11 12# Be Bourne compatible 13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 emulate sh 15 NULLCMD=: 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17 # is contrary to our usage. Disable this feature. 18 alias -g '${1+"$@"}'='"$@"' 19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 set -o posix 21fi 22DUALCASE=1; export DUALCASE # for MKS sh 23 24# Support unset when possible. 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27else 28 as_unset=false 29fi 30 31 32# Work around bugs in pre-3.0 UWIN ksh. 33$as_unset ENV MAIL MAILPATH 34PS1='$ ' 35PS2='> ' 36PS4='+ ' 37 38# NLS nuisances. 39for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49done 50 51# Required to use basename. 52if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54else 55 as_expr=false 56fi 57 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60else 61 as_basename=false 62fi 63 64 65# Name of the executable. 66as_me=`$as_basename "$0" || 67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78# PATH needs CR, and LINENO needs CR and PATH. 79# Avoid depending upon Character Ranges. 80as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83as_cr_digits='0123456789' 84as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86# The user is always right. 87if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110for as_dir in $PATH 111do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152done 153;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184} 185 186 187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192esac 193 194if expr a : '\(a\)' >/dev/null 2>&1; then 195 as_expr=expr 196else 197 as_expr=false 198fi 199 200rm -f conf$$ conf$$.exe conf$$.file 201echo >conf$$.file 202if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 207 as_ln_s='cp -p' 208 else 209 as_ln_s='ln -s' 210 fi 211elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213else 214 as_ln_s='cp -p' 215fi 216rm -f conf$$ conf$$.exe conf$$.file 217 218if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220else 221 test -d ./-p && rmdir ./-p 222 as_mkdir_p=false 223fi 224 225as_executable_p="test -f" 226 227# Sed expression to map a string onto a valid CPP name. 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 229 230# Sed expression to map a string onto a valid variable name. 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 232 233 234# IFS 235# We need space, tab and new line, in precisely that order. 236as_nl=' 237' 238IFS=" $as_nl" 239 240# CDPATH. 241$as_unset CDPATH 242 243 244 245# Check that we are running under the correct shell. 246SHELL=${CONFIG_SHELL-/bin/sh} 247 248case X$ECHO in 249X*--fallback-echo) 250 # Remove one level of quotation (which was required for Make). 251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 252 ;; 253esac 254 255echo=${ECHO-echo} 256if test "X$1" = X--no-reexec; then 257 # Discard the --no-reexec flag, and continue. 258 shift 259elif test "X$1" = X--fallback-echo; then 260 # Avoid inline document here, it may be left over 261 : 262elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 263 # Yippee, $echo works! 264 : 265else 266 # Restart under the correct shell. 267 exec $SHELL "$0" --no-reexec ${1+"$@"} 268fi 269 270if test "X$1" = X--fallback-echo; then 271 # used as fallback echo 272 shift 273 cat <<EOF 274$* 275EOF 276 exit 0 277fi 278 279# The HP-UX ksh and POSIX shell print the target directory to stdout 280# if CDPATH is set. 281if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 282 283if test -z "$ECHO"; then 284if test "X${echo_test_string+set}" != Xset; then 285# find a string as large as possible, as long as the shell can cope with it 286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 288 if (echo_test_string="`eval $cmd`") 2>/dev/null && 289 echo_test_string="`eval $cmd`" && 290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 291 then 292 break 293 fi 294 done 295fi 296 297if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 299 test "X$echo_testing_string" = "X$echo_test_string"; then 300 : 301else 302 # The Solaris, AIX, and Digital Unix default echo programs unquote 303 # backslashes. This makes it impossible to quote backslashes using 304 # echo "$something" | sed 's/\\/\\\\/g' 305 # 306 # So, first we look for a working echo in the user's PATH. 307 308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 309 for dir in $PATH /usr/ucb; do 310 IFS="$lt_save_ifs" 311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 314 test "X$echo_testing_string" = "X$echo_test_string"; then 315 echo="$dir/echo" 316 break 317 fi 318 done 319 IFS="$lt_save_ifs" 320 321 if test "X$echo" = Xecho; then 322 # We didn't find a better echo, so look for alternatives. 323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 325 test "X$echo_testing_string" = "X$echo_test_string"; then 326 # This shell has a builtin print -r that does the trick. 327 echo='print -r' 328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 329 test "X$CONFIG_SHELL" != X/bin/ksh; then 330 # If we have ksh, try running configure again with it. 331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 332 export ORIGINAL_CONFIG_SHELL 333 CONFIG_SHELL=/bin/ksh 334 export CONFIG_SHELL 335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 336 else 337 # Try using printf. 338 echo='printf %s\n' 339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 341 test "X$echo_testing_string" = "X$echo_test_string"; then 342 # Cool, printf works 343 : 344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 345 test "X$echo_testing_string" = 'X\t' && 346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 347 test "X$echo_testing_string" = "X$echo_test_string"; then 348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 349 export CONFIG_SHELL 350 SHELL="$CONFIG_SHELL" 351 export SHELL 352 echo="$CONFIG_SHELL $0 --fallback-echo" 353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 354 test "X$echo_testing_string" = 'X\t' && 355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 356 test "X$echo_testing_string" = "X$echo_test_string"; then 357 echo="$CONFIG_SHELL $0 --fallback-echo" 358 else 359 # maybe with a smaller string... 360 prev=: 361 362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 364 then 365 break 366 fi 367 prev="$cmd" 368 done 369 370 if test "$prev" != 'sed 50q "$0"'; then 371 echo_test_string=`eval $prev` 372 export echo_test_string 373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 374 else 375 # Oops. We lost completely, so just stick with echo. 376 echo=echo 377 fi 378 fi 379 fi 380 fi 381fi 382fi 383 384# Copy echo and quote the copy suitably for passing to libtool from 385# the Makefile, instead of quoting the original, which is used later. 386ECHO=$echo 387if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 389fi 390 391 392 393 394tagnames=${tagnames+${tagnames},}CXX 395 396tagnames=${tagnames+${tagnames},}F77 397 398# Name of the host. 399# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 400# so uname gets run too. 401ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 402 403exec 6>&1 404 405# 406# Initializations. 407# 408ac_default_prefix=/usr/local 409ac_config_libobj_dir=. 410cross_compiling=no 411subdirs= 412MFLAGS= 413MAKEFLAGS= 414SHELL=${CONFIG_SHELL-/bin/sh} 415 416# Maximum number of lines to put in a shell here document. 417# This variable seems obsolete. It should probably be removed, and 418# only ac_max_sed_lines should be used. 419: ${ac_max_here_lines=38} 420 421# Identity of this package. 422PACKAGE_NAME= 423PACKAGE_TARNAME= 424PACKAGE_VERSION= 425PACKAGE_STRING= 426PACKAGE_BUGREPORT= 427 428ac_unique_file="src/cdaudio.c" 429# Factoring default headers for most tests. 430ac_includes_default="\ 431#include <stdio.h> 432#if HAVE_SYS_TYPES_H 433# include <sys/types.h> 434#endif 435#if HAVE_SYS_STAT_H 436# include <sys/stat.h> 437#endif 438#if STDC_HEADERS 439# include <stdlib.h> 440# include <stddef.h> 441#else 442# if HAVE_STDLIB_H 443# include <stdlib.h> 444# endif 445#endif 446#if HAVE_STRING_H 447# if !STDC_HEADERS && HAVE_MEMORY_H 448# include <memory.h> 449# endif 450# include <string.h> 451#endif 452#if HAVE_STRINGS_H 453# include <strings.h> 454#endif 455#if HAVE_INTTYPES_H 456# include <inttypes.h> 457#else 458# if HAVE_STDINT_H 459# include <stdint.h> 460# endif 461#endif 462#if HAVE_UNISTD_H 463# include <unistd.h> 464#endif" 465 466ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP U ANSI2KNR LN_S build build_cpu build_vendor build_os host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL IRIX_TRUE IRIX_FALSE BEOS_TRUE BEOS_FALSE REENTRANT LIB_LDADD LIBCDAUDIO_VERSION LIBCDAUDIO_VERSION_MAJOR LIBCDAUDIO_VERSION_MINOR LIBCDAUDIO_VERSION_MICRO cdaudioname LIBOBJS LTLIBOBJS' 467ac_subst_files='' 468 469# Initialize some variables set by options. 470ac_init_help= 471ac_init_version=false 472# The variables have the same names as the options, with 473# dashes changed to underlines. 474cache_file=/dev/null 475exec_prefix=NONE 476no_create= 477no_recursion= 478prefix=NONE 479program_prefix=NONE 480program_suffix=NONE 481program_transform_name=s,x,x, 482silent= 483site= 484srcdir= 485verbose= 486x_includes=NONE 487x_libraries=NONE 488 489# Installation directory options. 490# These are left unexpanded so users can "make install exec_prefix=/foo" 491# and all the variables that are supposed to be based on exec_prefix 492# by default will actually change. 493# Use braces instead of parens because sh, perl, etc. also accept them. 494bindir='${exec_prefix}/bin' 495sbindir='${exec_prefix}/sbin' 496libexecdir='${exec_prefix}/libexec' 497datadir='${prefix}/share' 498sysconfdir='${prefix}/etc' 499sharedstatedir='${prefix}/com' 500localstatedir='${prefix}/var' 501libdir='${exec_prefix}/lib' 502includedir='${prefix}/include' 503oldincludedir='/usr/include' 504infodir='${prefix}/info' 505mandir='${prefix}/man' 506 507ac_prev= 508for ac_option 509do 510 # If the previous option needs an argument, assign it. 511 if test -n "$ac_prev"; then 512 eval "$ac_prev=\$ac_option" 513 ac_prev= 514 continue 515 fi 516 517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 518 519 # Accept the important Cygnus configure options, so we can diagnose typos. 520 521 case $ac_option in 522 523 -bindir | --bindir | --bindi | --bind | --bin | --bi) 524 ac_prev=bindir ;; 525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 526 bindir=$ac_optarg ;; 527 528 -build | --build | --buil | --bui | --bu) 529 ac_prev=build_alias ;; 530 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 531 build_alias=$ac_optarg ;; 532 533 -cache-file | --cache-file | --cache-fil | --cache-fi \ 534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 535 ac_prev=cache_file ;; 536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 538 cache_file=$ac_optarg ;; 539 540 --config-cache | -C) 541 cache_file=config.cache ;; 542 543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 544 ac_prev=datadir ;; 545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 546 | --da=*) 547 datadir=$ac_optarg ;; 548 549 -disable-* | --disable-*) 550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 551 # Reject names that are not valid shell variable names. 552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 554 { (exit 1); exit 1; }; } 555 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 556 eval "enable_$ac_feature=no" ;; 557 558 -enable-* | --enable-*) 559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 560 # Reject names that are not valid shell variable names. 561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 563 { (exit 1); exit 1; }; } 564 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 565 case $ac_option in 566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 567 *) ac_optarg=yes ;; 568 esac 569 eval "enable_$ac_feature='$ac_optarg'" ;; 570 571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 573 | --exec | --exe | --ex) 574 ac_prev=exec_prefix ;; 575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 577 | --exec=* | --exe=* | --ex=*) 578 exec_prefix=$ac_optarg ;; 579 580 -gas | --gas | --ga | --g) 581 # Obsolete; use --with-gas. 582 with_gas=yes ;; 583 584 -help | --help | --hel | --he | -h) 585 ac_init_help=long ;; 586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 587 ac_init_help=recursive ;; 588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 589 ac_init_help=short ;; 590 591 -host | --host | --hos | --ho) 592 ac_prev=host_alias ;; 593 -host=* | --host=* | --hos=* | --ho=*) 594 host_alias=$ac_optarg ;; 595 596 -includedir | --includedir | --includedi | --included | --include \ 597 | --includ | --inclu | --incl | --inc) 598 ac_prev=includedir ;; 599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 600 | --includ=* | --inclu=* | --incl=* | --inc=*) 601 includedir=$ac_optarg ;; 602 603 -infodir | --infodir | --infodi | --infod | --info | --inf) 604 ac_prev=infodir ;; 605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 606 infodir=$ac_optarg ;; 607 608 -libdir | --libdir | --libdi | --libd) 609 ac_prev=libdir ;; 610 -libdir=* | --libdir=* | --libdi=* | --libd=*) 611 libdir=$ac_optarg ;; 612 613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 614 | --libexe | --libex | --libe) 615 ac_prev=libexecdir ;; 616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 617 | --libexe=* | --libex=* | --libe=*) 618 libexecdir=$ac_optarg ;; 619 620 -localstatedir | --localstatedir | --localstatedi | --localstated \ 621 | --localstate | --localstat | --localsta | --localst \ 622 | --locals | --local | --loca | --loc | --lo) 623 ac_prev=localstatedir ;; 624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 627 localstatedir=$ac_optarg ;; 628 629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 630 ac_prev=mandir ;; 631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 632 mandir=$ac_optarg ;; 633 634 -nfp | --nfp | --nf) 635 # Obsolete; use --without-fp. 636 with_fp=no ;; 637 638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 639 | --no-cr | --no-c | -n) 640 no_create=yes ;; 641 642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 644 no_recursion=yes ;; 645 646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 648 | --oldin | --oldi | --old | --ol | --o) 649 ac_prev=oldincludedir ;; 650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 653 oldincludedir=$ac_optarg ;; 654 655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 656 ac_prev=prefix ;; 657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 658 prefix=$ac_optarg ;; 659 660 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 661 | --program-pre | --program-pr | --program-p) 662 ac_prev=program_prefix ;; 663 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 665 program_prefix=$ac_optarg ;; 666 667 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 668 | --program-suf | --program-su | --program-s) 669 ac_prev=program_suffix ;; 670 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 672 program_suffix=$ac_optarg ;; 673 674 -program-transform-name | --program-transform-name \ 675 | --program-transform-nam | --program-transform-na \ 676 | --program-transform-n | --program-transform- \ 677 | --program-transform | --program-transfor \ 678 | --program-transfo | --program-transf \ 679 | --program-trans | --program-tran \ 680 | --progr-tra | --program-tr | --program-t) 681 ac_prev=program_transform_name ;; 682 -program-transform-name=* | --program-transform-name=* \ 683 | --program-transform-nam=* | --program-transform-na=* \ 684 | --program-transform-n=* | --program-transform-=* \ 685 | --program-transform=* | --program-transfor=* \ 686 | --program-transfo=* | --program-transf=* \ 687 | --program-trans=* | --program-tran=* \ 688 | --progr-tra=* | --program-tr=* | --program-t=*) 689 program_transform_name=$ac_optarg ;; 690 691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 692 | -silent | --silent | --silen | --sile | --sil) 693 silent=yes ;; 694 695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 696 ac_prev=sbindir ;; 697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 698 | --sbi=* | --sb=*) 699 sbindir=$ac_optarg ;; 700 701 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 703 | --sharedst | --shareds | --shared | --share | --shar \ 704 | --sha | --sh) 705 ac_prev=sharedstatedir ;; 706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 709 | --sha=* | --sh=*) 710 sharedstatedir=$ac_optarg ;; 711 712 -site | --site | --sit) 713 ac_prev=site ;; 714 -site=* | --site=* | --sit=*) 715 site=$ac_optarg ;; 716 717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 718 ac_prev=srcdir ;; 719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 720 srcdir=$ac_optarg ;; 721 722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 723 | --syscon | --sysco | --sysc | --sys | --sy) 724 ac_prev=sysconfdir ;; 725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 727 sysconfdir=$ac_optarg ;; 728 729 -target | --target | --targe | --targ | --tar | --ta | --t) 730 ac_prev=target_alias ;; 731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 732 target_alias=$ac_optarg ;; 733 734 -v | -verbose | --verbose | --verbos | --verbo | --verb) 735 verbose=yes ;; 736 737 -version | --version | --versio | --versi | --vers | -V) 738 ac_init_version=: ;; 739 740 -with-* | --with-*) 741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 742 # Reject names that are not valid shell variable names. 743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 744 { echo "$as_me: error: invalid package name: $ac_package" >&2 745 { (exit 1); exit 1; }; } 746 ac_package=`echo $ac_package| sed 's/-/_/g'` 747 case $ac_option in 748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 749 *) ac_optarg=yes ;; 750 esac 751 eval "with_$ac_package='$ac_optarg'" ;; 752 753 -without-* | --without-*) 754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 755 # Reject names that are not valid shell variable names. 756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 757 { echo "$as_me: error: invalid package name: $ac_package" >&2 758 { (exit 1); exit 1; }; } 759 ac_package=`echo $ac_package | sed 's/-/_/g'` 760 eval "with_$ac_package=no" ;; 761 762 --x) 763 # Obsolete; use --with-x. 764 with_x=yes ;; 765 766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 767 | --x-incl | --x-inc | --x-in | --x-i) 768 ac_prev=x_includes ;; 769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 771 x_includes=$ac_optarg ;; 772 773 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 775 ac_prev=x_libraries ;; 776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 778 x_libraries=$ac_optarg ;; 779 780 -*) { echo "$as_me: error: unrecognized option: $ac_option 781Try \`$0 --help' for more information." >&2 782 { (exit 1); exit 1; }; } 783 ;; 784 785 *=*) 786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 787 # Reject names that are not valid shell variable names. 788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 790 { (exit 1); exit 1; }; } 791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 792 eval "$ac_envvar='$ac_optarg'" 793 export $ac_envvar ;; 794 795 *) 796 # FIXME: should be removed in autoconf 3.0. 797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 801 ;; 802 803 esac 804done 805 806if test -n "$ac_prev"; then 807 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 808 { echo "$as_me: error: missing argument to $ac_option" >&2 809 { (exit 1); exit 1; }; } 810fi 811 812# Be sure to have absolute paths. 813for ac_var in exec_prefix prefix 814do 815 eval ac_val=$`echo $ac_var` 816 case $ac_val in 817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 819 { (exit 1); exit 1; }; };; 820 esac 821done 822 823# Be sure to have absolute paths. 824for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 825 localstatedir libdir includedir oldincludedir infodir mandir 826do 827 eval ac_val=$`echo $ac_var` 828 case $ac_val in 829 [\\/$]* | ?:[\\/]* ) ;; 830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 831 { (exit 1); exit 1; }; };; 832 esac 833done 834 835# There might be people who depend on the old broken behavior: `$host' 836# used to hold the argument of --host etc. 837# FIXME: To remove some day. 838build=$build_alias 839host=$host_alias 840target=$target_alias 841 842# FIXME: To remove some day. 843if test "x$host_alias" != x; then 844 if test "x$build_alias" = x; then 845 cross_compiling=maybe 846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 847 If a cross compiler is detected then cross compile mode will be used." >&2 848 elif test "x$build_alias" != "x$host_alias"; then 849 cross_compiling=yes 850 fi 851fi 852 853ac_tool_prefix= 854test -n "$host_alias" && ac_tool_prefix=$host_alias- 855 856test "$silent" = yes && exec 6>/dev/null 857 858 859# Find the source files, if location was not specified. 860if test -z "$srcdir"; then 861 ac_srcdir_defaulted=yes 862 # Try the directory containing this script, then its parent. 863 ac_confdir=`(dirname "$0") 2>/dev/null || 864$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 865 X"$0" : 'X\(//\)[^/]' \| \ 866 X"$0" : 'X\(//\)$' \| \ 867 X"$0" : 'X\(/\)' \| \ 868 . : '\(.\)' 2>/dev/null || 869echo X"$0" | 870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 871 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 872 /^X\(\/\/\)$/{ s//\1/; q; } 873 /^X\(\/\).*/{ s//\1/; q; } 874 s/.*/./; q'` 875 srcdir=$ac_confdir 876 if test ! -r $srcdir/$ac_unique_file; then 877 srcdir=.. 878 fi 879else 880 ac_srcdir_defaulted=no 881fi 882if test ! -r $srcdir/$ac_unique_file; then 883 if test "$ac_srcdir_defaulted" = yes; then 884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 885 { (exit 1); exit 1; }; } 886 else 887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 888 { (exit 1); exit 1; }; } 889 fi 890fi 891(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 893 { (exit 1); exit 1; }; } 894srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 895ac_env_build_alias_set=${build_alias+set} 896ac_env_build_alias_value=$build_alias 897ac_cv_env_build_alias_set=${build_alias+set} 898ac_cv_env_build_alias_value=$build_alias 899ac_env_host_alias_set=${host_alias+set} 900ac_env_host_alias_value=$host_alias 901ac_cv_env_host_alias_set=${host_alias+set} 902ac_cv_env_host_alias_value=$host_alias 903ac_env_target_alias_set=${target_alias+set} 904ac_env_target_alias_value=$target_alias 905ac_cv_env_target_alias_set=${target_alias+set} 906ac_cv_env_target_alias_value=$target_alias 907ac_env_CC_set=${CC+set} 908ac_env_CC_value=$CC 909ac_cv_env_CC_set=${CC+set} 910ac_cv_env_CC_value=$CC 911ac_env_CFLAGS_set=${CFLAGS+set} 912ac_env_CFLAGS_value=$CFLAGS 913ac_cv_env_CFLAGS_set=${CFLAGS+set} 914ac_cv_env_CFLAGS_value=$CFLAGS 915ac_env_LDFLAGS_set=${LDFLAGS+set} 916ac_env_LDFLAGS_value=$LDFLAGS 917ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 918ac_cv_env_LDFLAGS_value=$LDFLAGS 919ac_env_CPPFLAGS_set=${CPPFLAGS+set} 920ac_env_CPPFLAGS_value=$CPPFLAGS 921ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 922ac_cv_env_CPPFLAGS_value=$CPPFLAGS 923ac_env_CPP_set=${CPP+set} 924ac_env_CPP_value=$CPP 925ac_cv_env_CPP_set=${CPP+set} 926ac_cv_env_CPP_value=$CPP 927ac_env_CXX_set=${CXX+set} 928ac_env_CXX_value=$CXX 929ac_cv_env_CXX_set=${CXX+set} 930ac_cv_env_CXX_value=$CXX 931ac_env_CXXFLAGS_set=${CXXFLAGS+set} 932ac_env_CXXFLAGS_value=$CXXFLAGS 933ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 934ac_cv_env_CXXFLAGS_value=$CXXFLAGS 935ac_env_CXXCPP_set=${CXXCPP+set} 936ac_env_CXXCPP_value=$CXXCPP 937ac_cv_env_CXXCPP_set=${CXXCPP+set} 938ac_cv_env_CXXCPP_value=$CXXCPP 939ac_env_F77_set=${F77+set} 940ac_env_F77_value=$F77 941ac_cv_env_F77_set=${F77+set} 942ac_cv_env_F77_value=$F77 943ac_env_FFLAGS_set=${FFLAGS+set} 944ac_env_FFLAGS_value=$FFLAGS 945ac_cv_env_FFLAGS_set=${FFLAGS+set} 946ac_cv_env_FFLAGS_value=$FFLAGS 947 948# 949# Report the --help message. 950# 951if test "$ac_init_help" = "long"; then 952 # Omit some internal or obsolete options to make the list less imposing. 953 # This message is too long to be a string in the A/UX 3.1 sh. 954 cat <<_ACEOF 955\`configure' configures this package to adapt to many kinds of systems. 956 957Usage: $0 [OPTION]... [VAR=VALUE]... 958 959To assign environment variables (e.g., CC, CFLAGS...), specify them as 960VAR=VALUE. See below for descriptions of some of the useful variables. 961 962Defaults for the options are specified in brackets. 963 964Configuration: 965 -h, --help display this help and exit 966 --help=short display options specific to this package 967 --help=recursive display the short help of all the included packages 968 -V, --version display version information and exit 969 -q, --quiet, --silent do not print \`checking...' messages 970 --cache-file=FILE cache test results in FILE [disabled] 971 -C, --config-cache alias for \`--cache-file=config.cache' 972 -n, --no-create do not create output files 973 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 974 975_ACEOF 976 977 cat <<_ACEOF 978Installation directories: 979 --prefix=PREFIX install architecture-independent files in PREFIX 980 [$ac_default_prefix] 981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 982 [PREFIX] 983 984By default, \`make install' will install all the files in 985\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 986an installation prefix other than \`$ac_default_prefix' using \`--prefix', 987for instance \`--prefix=\$HOME'. 988 989For better control, use the options below. 990 991Fine tuning of the installation directories: 992 --bindir=DIR user executables [EPREFIX/bin] 993 --sbindir=DIR system admin executables [EPREFIX/sbin] 994 --libexecdir=DIR program executables [EPREFIX/libexec] 995 --datadir=DIR read-only architecture-independent data [PREFIX/share] 996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 998 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 999 --libdir=DIR object code libraries [EPREFIX/lib] 1000 --includedir=DIR C header files [PREFIX/include] 1001 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1002 --infodir=DIR info documentation [PREFIX/info] 1003 --mandir=DIR man documentation [PREFIX/man] 1004_ACEOF 1005 1006 cat <<\_ACEOF 1007 1008Program names: 1009 --program-prefix=PREFIX prepend PREFIX to installed program names 1010 --program-suffix=SUFFIX append SUFFIX to installed program names 1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1012 1013System types: 1014 --build=BUILD configure for building on BUILD [guessed] 1015 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1016_ACEOF 1017fi 1018 1019if test -n "$ac_init_help"; then 1020 1021 cat <<\_ACEOF 1022 1023Optional Features: 1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1026 --enable-maintainer-mode enable make rules and dependencies not useful 1027 (and sometimes confusing) to the casual installer 1028 --disable-dependency-tracking speeds up one-time build 1029 --enable-dependency-tracking do not reject slow dependency extractors 1030 --enable-shared[=PKGS] 1031 build shared libraries [default=yes] 1032 --enable-static[=PKGS] 1033 build static libraries [default=yes] 1034 --enable-fast-install[=PKGS] 1035 optimize for fast installation [default=yes] 1036 --disable-libtool-lock avoid locking (might break parallel builds) 1037 --enable-threads build a thread-safe version of libcdaudio 1038 (default=guessed) 1039 --enable-xbox-fix include fix for compilation on XBox (default=no) 1040 1041Optional Packages: 1042 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1043 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1044 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1045 --with-pic try to use only PIC/non-PIC objects [default=use 1046 both] 1047 --with-tags[=TAGS] 1048 include additional configurations [automatic] 1049 1050Some influential environment variables: 1051 CC C compiler command 1052 CFLAGS C compiler flags 1053 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1054 nonstandard directory <lib dir> 1055 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1056 headers in a nonstandard directory <include dir> 1057 CPP C preprocessor 1058 CXX C++ compiler command 1059 CXXFLAGS C++ compiler flags 1060 CXXCPP C++ preprocessor 1061 F77 Fortran 77 compiler command 1062 FFLAGS Fortran 77 compiler flags 1063 1064Use these variables to override the choices made by `configure' or to help 1065it to find libraries and programs with nonstandard names/locations. 1066 1067_ACEOF 1068fi 1069 1070if test "$ac_init_help" = "recursive"; then 1071 # If there are subdirs, report their specific --help. 1072 ac_popdir=`pwd` 1073 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1074 test -d $ac_dir || continue 1075 ac_builddir=. 1076 1077if test "$ac_dir" != .; then 1078 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1079 # A "../" for each directory in $ac_dir_suffix. 1080 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1081else 1082 ac_dir_suffix= ac_top_builddir= 1083fi 1084 1085case $srcdir in 1086 .) # No --srcdir option. We are building in place. 1087 ac_srcdir=. 1088 if test -z "$ac_top_builddir"; then 1089 ac_top_srcdir=. 1090 else 1091 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1092 fi ;; 1093 [\\/]* | ?:[\\/]* ) # Absolute path. 1094 ac_srcdir=$srcdir$ac_dir_suffix; 1095 ac_top_srcdir=$srcdir ;; 1096 *) # Relative path. 1097 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1098 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1099esac 1100 1101# Do not use `cd foo && pwd` to compute absolute paths, because 1102# the directories may not exist. 1103case `pwd` in 1104.) ac_abs_builddir="$ac_dir";; 1105*) 1106 case "$ac_dir" in 1107 .) ac_abs_builddir=`pwd`;; 1108 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1109 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1110 esac;; 1111esac 1112case $ac_abs_builddir in 1113.) ac_abs_top_builddir=${ac_top_builddir}.;; 1114*) 1115 case ${ac_top_builddir}. in 1116 .) ac_abs_top_builddir=$ac_abs_builddir;; 1117 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1118 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1119 esac;; 1120esac 1121case $ac_abs_builddir in 1122.) ac_abs_srcdir=$ac_srcdir;; 1123*) 1124 case $ac_srcdir in 1125 .) ac_abs_srcdir=$ac_abs_builddir;; 1126 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1127 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1128 esac;; 1129esac 1130case $ac_abs_builddir in 1131.) ac_abs_top_srcdir=$ac_top_srcdir;; 1132*) 1133 case $ac_top_srcdir in 1134 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1135 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1136 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1137 esac;; 1138esac 1139 1140 cd $ac_dir 1141 # Check for guested configure; otherwise get Cygnus style configure. 1142 if test -f $ac_srcdir/configure.gnu; then 1143 echo 1144 $SHELL $ac_srcdir/configure.gnu --help=recursive 1145 elif test -f $ac_srcdir/configure; then 1146 echo 1147 $SHELL $ac_srcdir/configure --help=recursive 1148 elif test -f $ac_srcdir/configure.ac || 1149 test -f $ac_srcdir/configure.in; then 1150 echo 1151 $ac_configure --help 1152 else 1153 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1154 fi 1155 cd "$ac_popdir" 1156 done 1157fi 1158 1159test -n "$ac_init_help" && exit 0 1160if $ac_init_version; then 1161 cat <<\_ACEOF 1162 1163Copyright (C) 2003 Free Software Foundation, Inc. 1164This configure script is free software; the Free Software Foundation 1165gives unlimited permission to copy, distribute and modify it. 1166_ACEOF 1167 exit 0 1168fi 1169exec 5>config.log 1170cat >&5 <<_ACEOF 1171This file contains any messages produced by compilers while 1172running configure, to aid debugging if configure makes a mistake. 1173 1174It was created by $as_me, which was 1175generated by GNU Autoconf 2.59. Invocation command line was 1176 1177 $ $0 $@ 1178 1179_ACEOF 1180{ 1181cat <<_ASUNAME 1182## --------- ## 1183## Platform. ## 1184## --------- ## 1185 1186hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1187uname -m = `(uname -m) 2>/dev/null || echo unknown` 1188uname -r = `(uname -r) 2>/dev/null || echo unknown` 1189uname -s = `(uname -s) 2>/dev/null || echo unknown` 1190uname -v = `(uname -v) 2>/dev/null || echo unknown` 1191 1192/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1193/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1194 1195/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1196/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1197/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1198hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1199/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1200/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1201/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1202 1203_ASUNAME 1204 1205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1206for as_dir in $PATH 1207do 1208 IFS=$as_save_IFS 1209 test -z "$as_dir" && as_dir=. 1210 echo "PATH: $as_dir" 1211done 1212 1213} >&5 1214 1215cat >&5 <<_ACEOF 1216 1217 1218## ----------- ## 1219## Core tests. ## 1220## ----------- ## 1221 1222_ACEOF 1223 1224 1225# Keep a trace of the command line. 1226# Strip out --no-create and --no-recursion so they do not pile up. 1227# Strip out --silent because we don't want to record it for future runs. 1228# Also quote any args containing shell meta-characters. 1229# Make two passes to allow for proper duplicate-argument suppression. 1230ac_configure_args= 1231ac_configure_args0= 1232ac_configure_args1= 1233ac_sep= 1234ac_must_keep_next=false 1235for ac_pass in 1 2 1236do 1237 for ac_arg 1238 do 1239 case $ac_arg in 1240 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1242 | -silent | --silent | --silen | --sile | --sil) 1243 continue ;; 1244 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1245 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1246 esac 1247 case $ac_pass in 1248 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1249 2) 1250 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1251 if test $ac_must_keep_next = true; then 1252 ac_must_keep_next=false # Got value, back to normal. 1253 else 1254 case $ac_arg in 1255 *=* | --config-cache | -C | -disable-* | --disable-* \ 1256 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1257 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1258 | -with-* | --with-* | -without-* | --without-* | --x) 1259 case "$ac_configure_args0 " in 1260 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1261 esac 1262 ;; 1263 -* ) ac_must_keep_next=true ;; 1264 esac 1265 fi 1266 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1267 # Get rid of the leading space. 1268 ac_sep=" " 1269 ;; 1270 esac 1271 done 1272done 1273$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1274$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1275 1276# When interrupted or exit'd, cleanup temporary files, and complete 1277# config.log. We remove comments because anyway the quotes in there 1278# would cause problems or look ugly. 1279# WARNING: Be sure not to use single quotes in there, as some shells, 1280# such as our DU 5.0 friend, will then `close' the trap. 1281trap 'exit_status=$? 1282 # Save into config.log some information that might help in debugging. 1283 { 1284 echo 1285 1286 cat <<\_ASBOX 1287## ---------------- ## 1288## Cache variables. ## 1289## ---------------- ## 1290_ASBOX 1291 echo 1292 # The following way of writing the cache mishandles newlines in values, 1293{ 1294 (set) 2>&1 | 1295 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1296 *ac_space=\ *) 1297 sed -n \ 1298 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1299 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1300 ;; 1301 *) 1302 sed -n \ 1303 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1304 ;; 1305 esac; 1306} 1307 echo 1308 1309 cat <<\_ASBOX 1310## ----------------- ## 1311## Output variables. ## 1312## ----------------- ## 1313_ASBOX 1314 echo 1315 for ac_var in $ac_subst_vars 1316 do 1317 eval ac_val=$`echo $ac_var` 1318 echo "$ac_var='"'"'$ac_val'"'"'" 1319 done | sort 1320 echo 1321 1322 if test -n "$ac_subst_files"; then 1323 cat <<\_ASBOX 1324## ------------- ## 1325## Output files. ## 1326## ------------- ## 1327_ASBOX 1328 echo 1329 for ac_var in $ac_subst_files 1330 do 1331 eval ac_val=$`echo $ac_var` 1332 echo "$ac_var='"'"'$ac_val'"'"'" 1333 done | sort 1334 echo 1335 fi 1336 1337 if test -s confdefs.h; then 1338 cat <<\_ASBOX 1339## ----------- ## 1340## confdefs.h. ## 1341## ----------- ## 1342_ASBOX 1343 echo 1344 sed "/^$/d" confdefs.h | sort 1345 echo 1346 fi 1347 test "$ac_signal" != 0 && 1348 echo "$as_me: caught signal $ac_signal" 1349 echo "$as_me: exit $exit_status" 1350 } >&5 1351 rm -f core *.core && 1352 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1353 exit $exit_status 1354 ' 0 1355for ac_signal in 1 2 13 15; do 1356 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1357done 1358ac_signal=0 1359 1360# confdefs.h avoids OS command line length limits that DEFS can exceed. 1361rm -rf conftest* confdefs.h 1362# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1363echo >confdefs.h 1364 1365# Predefined preprocessor variables. 1366 1367cat >>confdefs.h <<_ACEOF 1368#define PACKAGE_NAME "$PACKAGE_NAME" 1369_ACEOF 1370 1371 1372cat >>confdefs.h <<_ACEOF 1373#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1374_ACEOF 1375 1376 1377cat >>confdefs.h <<_ACEOF 1378#define PACKAGE_VERSION "$PACKAGE_VERSION" 1379_ACEOF 1380 1381 1382cat >>confdefs.h <<_ACEOF 1383#define PACKAGE_STRING "$PACKAGE_STRING" 1384_ACEOF 1385 1386 1387cat >>confdefs.h <<_ACEOF 1388#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1389_ACEOF 1390 1391 1392# Let the site file select an alternate cache file if it wants to. 1393# Prefer explicitly selected file to automatically selected ones. 1394if test -z "$CONFIG_SITE"; then 1395 if test "x$prefix" != xNONE; then 1396 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1397 else 1398 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1399 fi 1400fi 1401for ac_site_file in $CONFIG_SITE; do 1402 if test -r "$ac_site_file"; then 1403 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1404echo "$as_me: loading site script $ac_site_file" >&6;} 1405 sed 's/^/| /' "$ac_site_file" >&5 1406 . "$ac_site_file" 1407 fi 1408done 1409 1410if test -r "$cache_file"; then 1411 # Some versions of bash will fail to source /dev/null (special 1412 # files actually), so we avoid doing that. 1413 if test -f "$cache_file"; then 1414 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1415echo "$as_me: loading cache $cache_file" >&6;} 1416 case $cache_file in 1417 [\\/]* | ?:[\\/]* ) . $cache_file;; 1418 *) . ./$cache_file;; 1419 esac 1420 fi 1421else 1422 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1423echo "$as_me: creating cache $cache_file" >&6;} 1424 >$cache_file 1425fi 1426 1427# Check that the precious variables saved in the cache have kept the same 1428# value. 1429ac_cache_corrupted=false 1430for ac_var in `(set) 2>&1 | 1431 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1432 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1433 eval ac_new_set=\$ac_env_${ac_var}_set 1434 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1435 eval ac_new_val="\$ac_env_${ac_var}_value" 1436 case $ac_old_set,$ac_new_set in 1437 set,) 1438 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1439echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1440 ac_cache_corrupted=: ;; 1441 ,set) 1442 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1443echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1444 ac_cache_corrupted=: ;; 1445 ,);; 1446 *) 1447 if test "x$ac_old_val" != "x$ac_new_val"; then 1448 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1449echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1450 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1451echo "$as_me: former value: $ac_old_val" >&2;} 1452 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1453echo "$as_me: current value: $ac_new_val" >&2;} 1454 ac_cache_corrupted=: 1455 fi;; 1456 esac 1457 # Pass precious variables to config.status. 1458 if test "$ac_new_set" = set; then 1459 case $ac_new_val in 1460 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1461 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1462 *) ac_arg=$ac_var=$ac_new_val ;; 1463 esac 1464 case " $ac_configure_args " in 1465 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1466 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1467 esac 1468 fi 1469done 1470if $ac_cache_corrupted; then 1471 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1472echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1473 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1474echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1475 { (exit 1); exit 1; }; } 1476fi 1477 1478ac_ext=c 1479ac_cpp='$CPP $CPPFLAGS' 1480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1482ac_compiler_gnu=$ac_cv_c_compiler_gnu 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503LIBCDAUDIO_VERSION_MAJOR=0 1504LIBCDAUDIO_VERSION_MINOR=99 1505LIBCDAUDIO_VERSION_MICRO=12 1506LIBCDAUDIO_VERSION=$LIBCDAUDIO_VERSION_MAJOR.$LIBCDAUDIO_VERSION_MINOR.$LIBCDAUDIO_VERSION_MICRO 1507LIBCDAUDIO_VERSION_STRING="0.99.12p2" 1508 1509PACKAGE=libcdaudio 1510 1511am__api_version="1.8" 1512ac_aux_dir= 1513for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1514 if test -f $ac_dir/install-sh; then 1515 ac_aux_dir=$ac_dir 1516 ac_install_sh="$ac_aux_dir/install-sh -c" 1517 break 1518 elif test -f $ac_dir/install.sh; then 1519 ac_aux_dir=$ac_dir 1520 ac_install_sh="$ac_aux_dir/install.sh -c" 1521 break 1522 elif test -f $ac_dir/shtool; then 1523 ac_aux_dir=$ac_dir 1524 ac_install_sh="$ac_aux_dir/shtool install -c" 1525 break 1526 fi 1527done 1528if test -z "$ac_aux_dir"; then 1529 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1530echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1531 { (exit 1); exit 1; }; } 1532fi 1533ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1534ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1535ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1536 1537# Find a good install program. We prefer a C program (faster), 1538# so one script is as good as another. But avoid the broken or 1539# incompatible versions: 1540# SysV /etc/install, /usr/sbin/install 1541# SunOS /usr/etc/install 1542# IRIX /sbin/install 1543# AIX /bin/install 1544# AmigaOS /C/install, which installs bootblocks on floppy discs 1545# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1546# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1547# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1548# OS/2's system install, which has a completely different semantic 1549# ./install, which can be erroneously created by make from ./install.sh. 1550echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1551echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1552if test -z "$INSTALL"; then 1553if test "${ac_cv_path_install+set}" = set; then 1554 echo $ECHO_N "(cached) $ECHO_C" >&6 1555else 1556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1557for as_dir in $PATH 1558do 1559 IFS=$as_save_IFS 1560 test -z "$as_dir" && as_dir=. 1561 # Account for people who put trailing slashes in PATH elements. 1562case $as_dir/ in 1563 ./ | .// | /cC/* | \ 1564 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1565 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1566 /usr/ucb/* ) ;; 1567 *) 1568 # OSF1 and SCO ODT 3.0 have their own names for install. 1569 # Don't use installbsd from OSF since it installs stuff as root 1570 # by default. 1571 for ac_prog in ginstall scoinst install; do 1572 for ac_exec_ext in '' $ac_executable_extensions; do 1573 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1574 if test $ac_prog = install && 1575 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1576 # AIX install. It has an incompatible calling convention. 1577 : 1578 elif test $ac_prog = install && 1579 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1580 # program-specific install script used by HP pwplus--don't use. 1581 : 1582 else 1583 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1584 break 3 1585 fi 1586 fi 1587 done 1588 done 1589 ;; 1590esac 1591done 1592 1593 1594fi 1595 if test "${ac_cv_path_install+set}" = set; then 1596 INSTALL=$ac_cv_path_install 1597 else 1598 # As a last resort, use the slow shell script. We don't cache a 1599 # path for INSTALL within a source directory, because that will 1600 # break other packages using the cache if that directory is 1601 # removed, or if the path is relative. 1602 INSTALL=$ac_install_sh 1603 fi 1604fi 1605echo "$as_me:$LINENO: result: $INSTALL" >&5 1606echo "${ECHO_T}$INSTALL" >&6 1607 1608# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1609# It thinks the first close brace ends the variable substitution. 1610test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1611 1612test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1613 1614test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1615 1616echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1617echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1618# Just in case 1619sleep 1 1620echo timestamp > conftest.file 1621# Do `set' in a subshell so we don't clobber the current shell's 1622# arguments. Must try -L first in case configure is actually a 1623# symlink; some systems play weird games with the mod time of symlinks 1624# (eg FreeBSD returns the mod time of the symlink's containing 1625# directory). 1626if ( 1627 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1628 if test "$*" = "X"; then 1629 # -L didn't work. 1630 set X `ls -t $srcdir/configure conftest.file` 1631 fi 1632 rm -f conftest.file 1633 if test "$*" != "X $srcdir/configure conftest.file" \ 1634 && test "$*" != "X conftest.file $srcdir/configure"; then 1635 1636 # If neither matched, then we have a broken ls. This can happen 1637 # if, for instance, CONFIG_SHELL is bash and it inherits a 1638 # broken ls alias from the environment. This has actually 1639 # happened. Such a system could not be considered "sane". 1640 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1641alias in your environment" >&5 1642echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1643alias in your environment" >&2;} 1644 { (exit 1); exit 1; }; } 1645 fi 1646 1647 test "$2" = conftest.file 1648 ) 1649then 1650 # Ok. 1651 : 1652else 1653 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1654Check your system clock" >&5 1655echo "$as_me: error: newly created file is older than distributed files! 1656Check your system clock" >&2;} 1657 { (exit 1); exit 1; }; } 1658fi 1659echo "$as_me:$LINENO: result: yes" >&5 1660echo "${ECHO_T}yes" >&6 1661test "$program_prefix" != NONE && 1662 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1663# Use a double $ so make ignores it. 1664test "$program_suffix" != NONE && 1665 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1666# Double any \ or $. echo might interpret backslashes. 1667# By default was `s,x,x', remove it if useless. 1668cat <<\_ACEOF >conftest.sed 1669s/[\\$]/&&/g;s/;s,x,x,$// 1670_ACEOF 1671program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1672rm conftest.sed 1673 1674# expand $ac_aux_dir to an absolute path 1675am_aux_dir=`cd $ac_aux_dir && pwd` 1676 1677test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1678# Use eval to expand $SHELL 1679if eval "$MISSING --run true"; then 1680 am_missing_run="$MISSING --run " 1681else 1682 am_missing_run= 1683 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1684echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1685fi 1686 1687if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1688 # Keeping the `.' argument allows $(mkdir_p) to be used without 1689 # argument. Indeed, we sometimes output rules like 1690 # $(mkdir_p) $(somedir) 1691 # where $(somedir) is conditionally defined. 1692 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more 1693 # expensive solution, as it forces Make to start a sub-shell.) 1694 mkdir_p='mkdir -p -- .' 1695else 1696 # On NextStep and OpenStep, the `mkdir' command does not 1697 # recognize any option. It will interpret all options as 1698 # directories to create, and then abort because `.' already 1699 # exists. 1700 for d in ./-p ./--version; 1701 do 1702 test -d $d && rmdir $d 1703 done 1704 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1705 if test -f "$ac_aux_dir/mkinstalldirs"; then 1706 mkdir_p='$(mkinstalldirs)' 1707 else 1708 mkdir_p='$(install_sh) -d' 1709 fi 1710fi 1711 1712for ac_prog in gawk mawk nawk awk 1713do 1714 # Extract the first word of "$ac_prog", so it can be a program name with args. 1715set dummy $ac_prog; ac_word=$2 1716echo "$as_me:$LINENO: checking for $ac_word" >&5 1717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1718if test "${ac_cv_prog_AWK+set}" = set; then 1719 echo $ECHO_N "(cached) $ECHO_C" >&6 1720else 1721 if test -n "$AWK"; then 1722 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1723else 1724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1725for as_dir in $PATH 1726do 1727 IFS=$as_save_IFS 1728 test -z "$as_dir" && as_dir=. 1729 for ac_exec_ext in '' $ac_executable_extensions; do 1730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1731 ac_cv_prog_AWK="$ac_prog" 1732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1733 break 2 1734 fi 1735done 1736done 1737 1738fi 1739fi 1740AWK=$ac_cv_prog_AWK 1741if test -n "$AWK"; then 1742 echo "$as_me:$LINENO: result: $AWK" >&5 1743echo "${ECHO_T}$AWK" >&6 1744else 1745 echo "$as_me:$LINENO: result: no" >&5 1746echo "${ECHO_T}no" >&6 1747fi 1748 1749 test -n "$AWK" && break 1750done 1751 1752echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1753echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1754set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1755if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1756 echo $ECHO_N "(cached) $ECHO_C" >&6 1757else 1758 cat >conftest.make <<\_ACEOF 1759all: 1760 @echo 'ac_maketemp="$(MAKE)"' 1761_ACEOF 1762# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1763eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1764if test -n "$ac_maketemp"; then 1765 eval ac_cv_prog_make_${ac_make}_set=yes 1766else 1767 eval ac_cv_prog_make_${ac_make}_set=no 1768fi 1769rm -f conftest.make 1770fi 1771if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1772 echo "$as_me:$LINENO: result: yes" >&5 1773echo "${ECHO_T}yes" >&6 1774 SET_MAKE= 1775else 1776 echo "$as_me:$LINENO: result: no" >&5 1777echo "${ECHO_T}no" >&6 1778 SET_MAKE="MAKE=${MAKE-make}" 1779fi 1780 1781rm -rf .tst 2>/dev/null 1782mkdir .tst 2>/dev/null 1783if test -d .tst; then 1784 am__leading_dot=. 1785else 1786 am__leading_dot=_ 1787fi 1788rmdir .tst 2>/dev/null 1789 1790# test to see if srcdir already configured 1791if test "`cd $srcdir && pwd`" != "`pwd`" && 1792 test -f $srcdir/config.status; then 1793 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1794echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1795 { (exit 1); exit 1; }; } 1796fi 1797 1798# test whether we have cygpath 1799if test -z "$CYGPATH_W"; then 1800 if (cygpath --version) >/dev/null 2>/dev/null; then 1801 CYGPATH_W='cygpath -w' 1802 else 1803 CYGPATH_W=echo 1804 fi 1805fi 1806 1807 1808# Define the identity of the package. 1809 PACKAGE=$PACKAGE 1810 VERSION=${LIBCDAUDIO_VERSION_STRING} 1811 1812 1813cat >>confdefs.h <<_ACEOF 1814#define PACKAGE "$PACKAGE" 1815_ACEOF 1816 1817 1818cat >>confdefs.h <<_ACEOF 1819#define VERSION "$VERSION" 1820_ACEOF 1821 1822# Some tools Automake needs. 1823 1824ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1825 1826 1827AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1828 1829 1830AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1831 1832 1833AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1834 1835 1836MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1837 1838 1839AMTAR=${AMTAR-"${am_missing_run}tar"} 1840 1841install_sh=${install_sh-"$am_aux_dir/install-sh"} 1842 1843# Installed binaries are usually stripped using `strip' when the user 1844# run `make install-strip'. However `strip' might not be the right 1845# tool to use in cross-compilation environments, therefore Automake 1846# will honor the `STRIP' environment variable to overrule this program. 1847if test "$cross_compiling" != no; then 1848 if test -n "$ac_tool_prefix"; then 1849 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1850set dummy ${ac_tool_prefix}strip; ac_word=$2 1851echo "$as_me:$LINENO: checking for $ac_word" >&5 1852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1853if test "${ac_cv_prog_STRIP+set}" = set; then 1854 echo $ECHO_N "(cached) $ECHO_C" >&6 1855else 1856 if test -n "$STRIP"; then 1857 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1858else 1859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1860for as_dir in $PATH 1861do 1862 IFS=$as_save_IFS 1863 test -z "$as_dir" && as_dir=. 1864 for ac_exec_ext in '' $ac_executable_extensions; do 1865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1866 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1868 break 2 1869 fi 1870done 1871done 1872 1873fi 1874fi 1875STRIP=$ac_cv_prog_STRIP 1876if test -n "$STRIP"; then 1877 echo "$as_me:$LINENO: result: $STRIP" >&5 1878echo "${ECHO_T}$STRIP" >&6 1879else 1880 echo "$as_me:$LINENO: result: no" >&5 1881echo "${ECHO_T}no" >&6 1882fi 1883 1884fi 1885if test -z "$ac_cv_prog_STRIP"; then 1886 ac_ct_STRIP=$STRIP 1887 # Extract the first word of "strip", so it can be a program name with args. 1888set dummy strip; ac_word=$2 1889echo "$as_me:$LINENO: checking for $ac_word" >&5 1890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1891if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1892 echo $ECHO_N "(cached) $ECHO_C" >&6 1893else 1894 if test -n "$ac_ct_STRIP"; then 1895 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1896else 1897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1898for as_dir in $PATH 1899do 1900 IFS=$as_save_IFS 1901 test -z "$as_dir" && as_dir=. 1902 for ac_exec_ext in '' $ac_executable_extensions; do 1903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1904 ac_cv_prog_ac_ct_STRIP="strip" 1905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1906 break 2 1907 fi 1908done 1909done 1910 1911 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1912fi 1913fi 1914ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1915if test -n "$ac_ct_STRIP"; then 1916 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1917echo "${ECHO_T}$ac_ct_STRIP" >&6 1918else 1919 echo "$as_me:$LINENO: result: no" >&5 1920echo "${ECHO_T}no" >&6 1921fi 1922 1923 STRIP=$ac_ct_STRIP 1924else 1925 STRIP="$ac_cv_prog_STRIP" 1926fi 1927 1928fi 1929INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1930 1931# We need awk for the "check" target. The system "awk" is bad on 1932# some platforms. 1933 1934 1935 1936echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 1937echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 1938 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 1939if test "${enable_maintainer_mode+set}" = set; then 1940 enableval="$enable_maintainer_mode" 1941 USE_MAINTAINER_MODE=$enableval 1942else 1943 USE_MAINTAINER_MODE=no 1944fi; 1945 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 1946echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 1947 1948 1949if test $USE_MAINTAINER_MODE = yes; then 1950 MAINTAINER_MODE_TRUE= 1951 MAINTAINER_MODE_FALSE='#' 1952else 1953 MAINTAINER_MODE_TRUE='#' 1954 MAINTAINER_MODE_FALSE= 1955fi 1956 1957 MAINT=$MAINTAINER_MODE_TRUE 1958 1959 1960 1961 ac_config_headers="$ac_config_headers config.h" 1962 1963 1964for ac_prog in gawk mawk nawk awk 1965do 1966 # Extract the first word of "$ac_prog", so it can be a program name with args. 1967set dummy $ac_prog; ac_word=$2 1968echo "$as_me:$LINENO: checking for $ac_word" >&5 1969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1970if test "${ac_cv_prog_AWK+set}" = set; then 1971 echo $ECHO_N "(cached) $ECHO_C" >&6 1972else 1973 if test -n "$AWK"; then 1974 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1975else 1976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1977for as_dir in $PATH 1978do 1979 IFS=$as_save_IFS 1980 test -z "$as_dir" && as_dir=. 1981 for ac_exec_ext in '' $ac_executable_extensions; do 1982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1983 ac_cv_prog_AWK="$ac_prog" 1984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1985 break 2 1986 fi 1987done 1988done 1989 1990fi 1991fi 1992AWK=$ac_cv_prog_AWK 1993if test -n "$AWK"; then 1994 echo "$as_me:$LINENO: result: $AWK" >&5 1995echo "${ECHO_T}$AWK" >&6 1996else 1997 echo "$as_me:$LINENO: result: no" >&5 1998echo "${ECHO_T}no" >&6 1999fi 2000 2001 test -n "$AWK" && break 2002done 2003 2004ac_ext=c 2005ac_cpp='$CPP $CPPFLAGS' 2006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2008ac_compiler_gnu=$ac_cv_c_compiler_gnu 2009if test -n "$ac_tool_prefix"; then 2010 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2011set dummy ${ac_tool_prefix}gcc; ac_word=$2 2012echo "$as_me:$LINENO: checking for $ac_word" >&5 2013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2014if test "${ac_cv_prog_CC+set}" = set; then 2015 echo $ECHO_N "(cached) $ECHO_C" >&6 2016else 2017 if test -n "$CC"; then 2018 ac_cv_prog_CC="$CC" # Let the user override the test. 2019else 2020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2021for as_dir in $PATH 2022do 2023 IFS=$as_save_IFS 2024 test -z "$as_dir" && as_dir=. 2025 for ac_exec_ext in '' $ac_executable_extensions; do 2026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2027 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2029 break 2 2030 fi 2031done 2032done 2033 2034fi 2035fi 2036CC=$ac_cv_prog_CC 2037if test -n "$CC"; then 2038 echo "$as_me:$LINENO: result: $CC" >&5 2039echo "${ECHO_T}$CC" >&6 2040else 2041 echo "$as_me:$LINENO: result: no" >&5 2042echo "${ECHO_T}no" >&6 2043fi 2044 2045fi 2046if test -z "$ac_cv_prog_CC"; then 2047 ac_ct_CC=$CC 2048 # Extract the first word of "gcc", so it can be a program name with args. 2049set dummy gcc; ac_word=$2 2050echo "$as_me:$LINENO: checking for $ac_word" >&5 2051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2052if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2053 echo $ECHO_N "(cached) $ECHO_C" >&6 2054else 2055 if test -n "$ac_ct_CC"; then 2056 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2057else 2058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2059for as_dir in $PATH 2060do 2061 IFS=$as_save_IFS 2062 test -z "$as_dir" && as_dir=. 2063 for ac_exec_ext in '' $ac_executable_extensions; do 2064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2065 ac_cv_prog_ac_ct_CC="gcc" 2066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2067 break 2 2068 fi 2069done 2070done 2071 2072fi 2073fi 2074ac_ct_CC=$ac_cv_prog_ac_ct_CC 2075if test -n "$ac_ct_CC"; then 2076 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2077echo "${ECHO_T}$ac_ct_CC" >&6 2078else 2079 echo "$as_me:$LINENO: result: no" >&5 2080echo "${ECHO_T}no" >&6 2081fi 2082 2083 CC=$ac_ct_CC 2084else 2085 CC="$ac_cv_prog_CC" 2086fi 2087 2088if test -z "$CC"; then 2089 if test -n "$ac_tool_prefix"; then 2090 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2091set dummy ${ac_tool_prefix}cc; ac_word=$2 2092echo "$as_me:$LINENO: checking for $ac_word" >&5 2093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2094if test "${ac_cv_prog_CC+set}" = set; then 2095 echo $ECHO_N "(cached) $ECHO_C" >&6 2096else 2097 if test -n "$CC"; then 2098 ac_cv_prog_CC="$CC" # Let the user override the test. 2099else 2100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2101for as_dir in $PATH 2102do 2103 IFS=$as_save_IFS 2104 test -z "$as_dir" && as_dir=. 2105 for ac_exec_ext in '' $ac_executable_extensions; do 2106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2107 ac_cv_prog_CC="${ac_tool_prefix}cc" 2108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2109 break 2 2110 fi 2111done 2112done 2113 2114fi 2115fi 2116CC=$ac_cv_prog_CC 2117if test -n "$CC"; then 2118 echo "$as_me:$LINENO: result: $CC" >&5 2119echo "${ECHO_T}$CC" >&6 2120else 2121 echo "$as_me:$LINENO: result: no" >&5 2122echo "${ECHO_T}no" >&6 2123fi 2124 2125fi 2126if test -z "$ac_cv_prog_CC"; then 2127 ac_ct_CC=$CC 2128 # Extract the first word of "cc", so it can be a program name with args. 2129set dummy cc; ac_word=$2 2130echo "$as_me:$LINENO: checking for $ac_word" >&5 2131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2132if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2133 echo $ECHO_N "(cached) $ECHO_C" >&6 2134else 2135 if test -n "$ac_ct_CC"; then 2136 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2137else 2138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2139for as_dir in $PATH 2140do 2141 IFS=$as_save_IFS 2142 test -z "$as_dir" && as_dir=. 2143 for ac_exec_ext in '' $ac_executable_extensions; do 2144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2145 ac_cv_prog_ac_ct_CC="cc" 2146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2147 break 2 2148 fi 2149done 2150done 2151 2152fi 2153fi 2154ac_ct_CC=$ac_cv_prog_ac_ct_CC 2155if test -n "$ac_ct_CC"; then 2156 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2157echo "${ECHO_T}$ac_ct_CC" >&6 2158else 2159 echo "$as_me:$LINENO: result: no" >&5 2160echo "${ECHO_T}no" >&6 2161fi 2162 2163 CC=$ac_ct_CC 2164else 2165 CC="$ac_cv_prog_CC" 2166fi 2167 2168fi 2169if test -z "$CC"; then 2170 # Extract the first word of "cc", so it can be a program name with args. 2171set dummy cc; ac_word=$2 2172echo "$as_me:$LINENO: checking for $ac_word" >&5 2173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2174if test "${ac_cv_prog_CC+set}" = set; then 2175 echo $ECHO_N "(cached) $ECHO_C" >&6 2176else 2177 if test -n "$CC"; then 2178 ac_cv_prog_CC="$CC" # Let the user override the test. 2179else 2180 ac_prog_rejected=no 2181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2182for as_dir in $PATH 2183do 2184 IFS=$as_save_IFS 2185 test -z "$as_dir" && as_dir=. 2186 for ac_exec_ext in '' $ac_executable_extensions; do 2187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2188 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2189 ac_prog_rejected=yes 2190 continue 2191 fi 2192 ac_cv_prog_CC="cc" 2193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2194 break 2 2195 fi 2196done 2197done 2198 2199if test $ac_prog_rejected = yes; then 2200 # We found a bogon in the path, so make sure we never use it. 2201 set dummy $ac_cv_prog_CC 2202 shift 2203 if test $# != 0; then 2204 # We chose a different compiler from the bogus one. 2205 # However, it has the same basename, so the bogon will be chosen 2206 # first if we set CC to just the basename; use the full file name. 2207 shift 2208 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2209 fi 2210fi 2211fi 2212fi 2213CC=$ac_cv_prog_CC 2214if test -n "$CC"; then 2215 echo "$as_me:$LINENO: result: $CC" >&5 2216echo "${ECHO_T}$CC" >&6 2217else 2218 echo "$as_me:$LINENO: result: no" >&5 2219echo "${ECHO_T}no" >&6 2220fi 2221 2222fi 2223if test -z "$CC"; then 2224 if test -n "$ac_tool_prefix"; then 2225 for ac_prog in cl 2226 do 2227 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2228set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2229echo "$as_me:$LINENO: checking for $ac_word" >&5 2230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2231if test "${ac_cv_prog_CC+set}" = set; then 2232 echo $ECHO_N "(cached) $ECHO_C" >&6 2233else 2234 if test -n "$CC"; then 2235 ac_cv_prog_CC="$CC" # Let the user override the test. 2236else 2237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2238for as_dir in $PATH 2239do 2240 IFS=$as_save_IFS 2241 test -z "$as_dir" && as_dir=. 2242 for ac_exec_ext in '' $ac_executable_extensions; do 2243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2244 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2246 break 2 2247 fi 2248done 2249done 2250 2251fi 2252fi 2253CC=$ac_cv_prog_CC 2254if test -n "$CC"; then 2255 echo "$as_me:$LINENO: result: $CC" >&5 2256echo "${ECHO_T}$CC" >&6 2257else 2258 echo "$as_me:$LINENO: result: no" >&5 2259echo "${ECHO_T}no" >&6 2260fi 2261 2262 test -n "$CC" && break 2263 done 2264fi 2265if test -z "$CC"; then 2266 ac_ct_CC=$CC 2267 for ac_prog in cl 2268do 2269 # Extract the first word of "$ac_prog", so it can be a program name with args. 2270set dummy $ac_prog; ac_word=$2 2271echo "$as_me:$LINENO: checking for $ac_word" >&5 2272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2273if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2274 echo $ECHO_N "(cached) $ECHO_C" >&6 2275else 2276 if test -n "$ac_ct_CC"; then 2277 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2278else 2279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2280for as_dir in $PATH 2281do 2282 IFS=$as_save_IFS 2283 test -z "$as_dir" && as_dir=. 2284 for ac_exec_ext in '' $ac_executable_extensions; do 2285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2286 ac_cv_prog_ac_ct_CC="$ac_prog" 2287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2288 break 2 2289 fi 2290done 2291done 2292 2293fi 2294fi 2295ac_ct_CC=$ac_cv_prog_ac_ct_CC 2296if test -n "$ac_ct_CC"; then 2297 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2298echo "${ECHO_T}$ac_ct_CC" >&6 2299else 2300 echo "$as_me:$LINENO: result: no" >&5 2301echo "${ECHO_T}no" >&6 2302fi 2303 2304 test -n "$ac_ct_CC" && break 2305done 2306 2307 CC=$ac_ct_CC 2308fi 2309 2310fi 2311 2312 2313test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2314See \`config.log' for more details." >&5 2315echo "$as_me: error: no acceptable C compiler found in \$PATH 2316See \`config.log' for more details." >&2;} 2317 { (exit 1); exit 1; }; } 2318 2319# Provide some information about the compiler. 2320echo "$as_me:$LINENO:" \ 2321 "checking for C compiler version" >&5 2322ac_compiler=`set X $ac_compile; echo $2` 2323{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2324 (eval $ac_compiler --version </dev/null >&5) 2>&5 2325 ac_status=$? 2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2327 (exit $ac_status); } 2328{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2329 (eval $ac_compiler -v </dev/null >&5) 2>&5 2330 ac_status=$? 2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2332 (exit $ac_status); } 2333{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2334 (eval $ac_compiler -V </dev/null >&5) 2>&5 2335 ac_status=$? 2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2337 (exit $ac_status); } 2338 2339cat >conftest.$ac_ext <<_ACEOF 2340/* confdefs.h. */ 2341_ACEOF 2342cat confdefs.h >>conftest.$ac_ext 2343cat >>conftest.$ac_ext <<_ACEOF 2344/* end confdefs.h. */ 2345 2346int 2347main () 2348{ 2349 2350 ; 2351 return 0; 2352} 2353_ACEOF 2354ac_clean_files_save=$ac_clean_files 2355ac_clean_files="$ac_clean_files a.out a.exe b.out" 2356# Try to create an executable without -o first, disregard a.out. 2357# It will help us diagnose broken compilers, and finding out an intuition 2358# of exeext. 2359echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2360echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2361ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2362if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2363 (eval $ac_link_default) 2>&5 2364 ac_status=$? 2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2366 (exit $ac_status); }; then 2367 # Find the output, starting from the most likely. This scheme is 2368# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2369# resort. 2370 2371# Be careful to initialize this variable, since it used to be cached. 2372# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2373ac_cv_exeext= 2374# b.out is created by i960 compilers. 2375for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2376do 2377 test -f "$ac_file" || continue 2378 case $ac_file in 2379 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2380 ;; 2381 conftest.$ac_ext ) 2382 # This is the source file. 2383 ;; 2384 [ab].out ) 2385 # We found the default executable, but exeext='' is most 2386 # certainly right. 2387 break;; 2388 *.* ) 2389 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2390 # FIXME: I believe we export ac_cv_exeext for Libtool, 2391 # but it would be cool to find out if it's true. Does anybody 2392 # maintain Libtool? --akim. 2393 export ac_cv_exeext 2394 break;; 2395 * ) 2396 break;; 2397 esac 2398done 2399else 2400 echo "$as_me: failed program was:" >&5 2401sed 's/^/| /' conftest.$ac_ext >&5 2402 2403{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2404See \`config.log' for more details." >&5 2405echo "$as_me: error: C compiler cannot create executables 2406See \`config.log' for more details." >&2;} 2407 { (exit 77); exit 77; }; } 2408fi 2409 2410ac_exeext=$ac_cv_exeext 2411echo "$as_me:$LINENO: result: $ac_file" >&5 2412echo "${ECHO_T}$ac_file" >&6 2413 2414# Check the compiler produces executables we can run. If not, either 2415# the compiler is broken, or we cross compile. 2416echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2417echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2418# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2419# If not cross compiling, check that we can run a simple program. 2420if test "$cross_compiling" != yes; then 2421 if { ac_try='./$ac_file' 2422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2423 (eval $ac_try) 2>&5 2424 ac_status=$? 2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2426 (exit $ac_status); }; }; then 2427 cross_compiling=no 2428 else 2429 if test "$cross_compiling" = maybe; then 2430 cross_compiling=yes 2431 else 2432 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2433If you meant to cross compile, use \`--host'. 2434See \`config.log' for more details." >&5 2435echo "$as_me: error: cannot run C compiled programs. 2436If you meant to cross compile, use \`--host'. 2437See \`config.log' for more details." >&2;} 2438 { (exit 1); exit 1; }; } 2439 fi 2440 fi 2441fi 2442echo "$as_me:$LINENO: result: yes" >&5 2443echo "${ECHO_T}yes" >&6 2444 2445rm -f a.out a.exe conftest$ac_cv_exeext b.out 2446ac_clean_files=$ac_clean_files_save 2447# Check the compiler produces executables we can run. If not, either 2448# the compiler is broken, or we cross compile. 2449echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2450echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2451echo "$as_me:$LINENO: result: $cross_compiling" >&5 2452echo "${ECHO_T}$cross_compiling" >&6 2453 2454echo "$as_me:$LINENO: checking for suffix of executables" >&5 2455echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2457 (eval $ac_link) 2>&5 2458 ac_status=$? 2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2460 (exit $ac_status); }; then 2461 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2462# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2463# work properly (i.e., refer to `conftest.exe'), while it won't with 2464# `rm'. 2465for ac_file in conftest.exe conftest conftest.*; do 2466 test -f "$ac_file" || continue 2467 case $ac_file in 2468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2469 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2470 export ac_cv_exeext 2471 break;; 2472 * ) break;; 2473 esac 2474done 2475else 2476 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2477See \`config.log' for more details." >&5 2478echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2479See \`config.log' for more details." >&2;} 2480 { (exit 1); exit 1; }; } 2481fi 2482 2483rm -f conftest$ac_cv_exeext 2484echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2485echo "${ECHO_T}$ac_cv_exeext" >&6 2486 2487rm -f conftest.$ac_ext 2488EXEEXT=$ac_cv_exeext 2489ac_exeext=$EXEEXT 2490echo "$as_me:$LINENO: checking for suffix of object files" >&5 2491echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2492if test "${ac_cv_objext+set}" = set; then 2493 echo $ECHO_N "(cached) $ECHO_C" >&6 2494else 2495 cat >conftest.$ac_ext <<_ACEOF 2496/* confdefs.h. */ 2497_ACEOF 2498cat confdefs.h >>conftest.$ac_ext 2499cat >>conftest.$ac_ext <<_ACEOF 2500/* end confdefs.h. */ 2501 2502int 2503main () 2504{ 2505 2506 ; 2507 return 0; 2508} 2509_ACEOF 2510rm -f conftest.o conftest.obj 2511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2512 (eval $ac_compile) 2>&5 2513 ac_status=$? 2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2515 (exit $ac_status); }; then 2516 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2517 case $ac_file in 2518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2519 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2520 break;; 2521 esac 2522done 2523else 2524 echo "$as_me: failed program was:" >&5 2525sed 's/^/| /' conftest.$ac_ext >&5 2526 2527{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2528See \`config.log' for more details." >&5 2529echo "$as_me: error: cannot compute suffix of object files: cannot compile 2530See \`config.log' for more details." >&2;} 2531 { (exit 1); exit 1; }; } 2532fi 2533 2534rm -f conftest.$ac_cv_objext conftest.$ac_ext 2535fi 2536echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2537echo "${ECHO_T}$ac_cv_objext" >&6 2538OBJEXT=$ac_cv_objext 2539ac_objext=$OBJEXT 2540echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2541echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2542if test "${ac_cv_c_compiler_gnu+set}" = set; then 2543 echo $ECHO_N "(cached) $ECHO_C" >&6 2544else 2545 cat >conftest.$ac_ext <<_ACEOF 2546/* confdefs.h. */ 2547_ACEOF 2548cat confdefs.h >>conftest.$ac_ext 2549cat >>conftest.$ac_ext <<_ACEOF 2550/* end confdefs.h. */ 2551 2552int 2553main () 2554{ 2555#ifndef __GNUC__ 2556 choke me 2557#endif 2558 2559 ; 2560 return 0; 2561} 2562_ACEOF 2563rm -f conftest.$ac_objext 2564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2565 (eval $ac_compile) 2>conftest.er1 2566 ac_status=$? 2567 grep -v '^ *+' conftest.er1 >conftest.err 2568 rm -f conftest.er1 2569 cat conftest.err >&5 2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2571 (exit $ac_status); } && 2572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2574 (eval $ac_try) 2>&5 2575 ac_status=$? 2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2577 (exit $ac_status); }; } && 2578 { ac_try='test -s conftest.$ac_objext' 2579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2580 (eval $ac_try) 2>&5 2581 ac_status=$? 2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2583 (exit $ac_status); }; }; then 2584 ac_compiler_gnu=yes 2585else 2586 echo "$as_me: failed program was:" >&5 2587sed 's/^/| /' conftest.$ac_ext >&5 2588 2589ac_compiler_gnu=no 2590fi 2591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2592ac_cv_c_compiler_gnu=$ac_compiler_gnu 2593 2594fi 2595echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2596echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2597GCC=`test $ac_compiler_gnu = yes && echo yes` 2598ac_test_CFLAGS=${CFLAGS+set} 2599ac_save_CFLAGS=$CFLAGS 2600CFLAGS="-g" 2601echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2602echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2603if test "${ac_cv_prog_cc_g+set}" = set; then 2604 echo $ECHO_N "(cached) $ECHO_C" >&6 2605else 2606 cat >conftest.$ac_ext <<_ACEOF 2607/* confdefs.h. */ 2608_ACEOF 2609cat confdefs.h >>conftest.$ac_ext 2610cat >>conftest.$ac_ext <<_ACEOF 2611/* end confdefs.h. */ 2612 2613int 2614main () 2615{ 2616 2617 ; 2618 return 0; 2619} 2620_ACEOF 2621rm -f conftest.$ac_objext 2622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2623 (eval $ac_compile) 2>conftest.er1 2624 ac_status=$? 2625 grep -v '^ *+' conftest.er1 >conftest.err 2626 rm -f conftest.er1 2627 cat conftest.err >&5 2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2629 (exit $ac_status); } && 2630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2632 (eval $ac_try) 2>&5 2633 ac_status=$? 2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2635 (exit $ac_status); }; } && 2636 { ac_try='test -s conftest.$ac_objext' 2637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2638 (eval $ac_try) 2>&5 2639 ac_status=$? 2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2641 (exit $ac_status); }; }; then 2642 ac_cv_prog_cc_g=yes 2643else 2644 echo "$as_me: failed program was:" >&5 2645sed 's/^/| /' conftest.$ac_ext >&5 2646 2647ac_cv_prog_cc_g=no 2648fi 2649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2650fi 2651echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2652echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2653if test "$ac_test_CFLAGS" = set; then 2654 CFLAGS=$ac_save_CFLAGS 2655elif test $ac_cv_prog_cc_g = yes; then 2656 if test "$GCC" = yes; then 2657 CFLAGS="-g -O2" 2658 else 2659 CFLAGS="-g" 2660 fi 2661else 2662 if test "$GCC" = yes; then 2663 CFLAGS="-O2" 2664 else 2665 CFLAGS= 2666 fi 2667fi 2668echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2669echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2670if test "${ac_cv_prog_cc_stdc+set}" = set; then 2671 echo $ECHO_N "(cached) $ECHO_C" >&6 2672else 2673 ac_cv_prog_cc_stdc=no 2674ac_save_CC=$CC 2675cat >conftest.$ac_ext <<_ACEOF 2676/* confdefs.h. */ 2677_ACEOF 2678cat confdefs.h >>conftest.$ac_ext 2679cat >>conftest.$ac_ext <<_ACEOF 2680/* end confdefs.h. */ 2681#include <stdarg.h> 2682#include <stdio.h> 2683#include <sys/types.h> 2684#include <sys/stat.h> 2685/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2686struct buf { int x; }; 2687FILE * (*rcsopen) (struct buf *, struct stat *, int); 2688static char *e (p, i) 2689 char **p; 2690 int i; 2691{ 2692 return p[i]; 2693} 2694static char *f (char * (*g) (char **, int), char **p, ...) 2695{ 2696 char *s; 2697 va_list v; 2698 va_start (v,p); 2699 s = g (p, va_arg (v,int)); 2700 va_end (v); 2701 return s; 2702} 2703 2704/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2705 function prototypes and stuff, but not '\xHH' hex character constants. 2706 These don't provoke an error unfortunately, instead are silently treated 2707 as 'x'. The following induces an error, until -std1 is added to get 2708 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2709 array size at least. It's necessary to write '\x00'==0 to get something 2710 that's true only with -std1. */ 2711int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2712 2713int test (int i, double x); 2714struct s1 {int (*f) (int a);}; 2715struct s2 {int (*f) (double a);}; 2716int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2717int argc; 2718char **argv; 2719int 2720main () 2721{ 2722return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2723 ; 2724 return 0; 2725} 2726_ACEOF 2727# Don't try gcc -ansi; that turns off useful extensions and 2728# breaks some systems' header files. 2729# AIX -qlanglvl=ansi 2730# Ultrix and OSF/1 -std1 2731# HP-UX 10.20 and later -Ae 2732# HP-UX older versions -Aa -D_HPUX_SOURCE 2733# SVR4 -Xc -D__EXTENSIONS__ 2734for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2735do 2736 CC="$ac_save_CC $ac_arg" 2737 rm -f conftest.$ac_objext 2738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2739 (eval $ac_compile) 2>conftest.er1 2740 ac_status=$? 2741 grep -v '^ *+' conftest.er1 >conftest.err 2742 rm -f conftest.er1 2743 cat conftest.err >&5 2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2745 (exit $ac_status); } && 2746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2748 (eval $ac_try) 2>&5 2749 ac_status=$? 2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2751 (exit $ac_status); }; } && 2752 { ac_try='test -s conftest.$ac_objext' 2753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2754 (eval $ac_try) 2>&5 2755 ac_status=$? 2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2757 (exit $ac_status); }; }; then 2758 ac_cv_prog_cc_stdc=$ac_arg 2759break 2760else 2761 echo "$as_me: failed program was:" >&5 2762sed 's/^/| /' conftest.$ac_ext >&5 2763 2764fi 2765rm -f conftest.err conftest.$ac_objext 2766done 2767rm -f conftest.$ac_ext conftest.$ac_objext 2768CC=$ac_save_CC 2769 2770fi 2771 2772case "x$ac_cv_prog_cc_stdc" in 2773 x|xno) 2774 echo "$as_me:$LINENO: result: none needed" >&5 2775echo "${ECHO_T}none needed" >&6 ;; 2776 *) 2777 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2778echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2779 CC="$CC $ac_cv_prog_cc_stdc" ;; 2780esac 2781 2782# Some people use a C++ compiler to compile C. Since we use `exit', 2783# in C++ we need to declare it. In case someone uses the same compiler 2784# for both compiling C and C++ we need to have the C++ compiler decide 2785# the declaration of exit, since it's the most demanding environment. 2786cat >conftest.$ac_ext <<_ACEOF 2787#ifndef __cplusplus 2788 choke me 2789#endif 2790_ACEOF 2791rm -f conftest.$ac_objext 2792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2793 (eval $ac_compile) 2>conftest.er1 2794 ac_status=$? 2795 grep -v '^ *+' conftest.er1 >conftest.err 2796 rm -f conftest.er1 2797 cat conftest.err >&5 2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2799 (exit $ac_status); } && 2800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2802 (eval $ac_try) 2>&5 2803 ac_status=$? 2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2805 (exit $ac_status); }; } && 2806 { ac_try='test -s conftest.$ac_objext' 2807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2808 (eval $ac_try) 2>&5 2809 ac_status=$? 2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2811 (exit $ac_status); }; }; then 2812 for ac_declaration in \ 2813 '' \ 2814 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2815 'extern "C" void std::exit (int); using std::exit;' \ 2816 'extern "C" void exit (int) throw ();' \ 2817 'extern "C" void exit (int);' \ 2818 'void exit (int);' 2819do 2820 cat >conftest.$ac_ext <<_ACEOF 2821/* confdefs.h. */ 2822_ACEOF 2823cat confdefs.h >>conftest.$ac_ext 2824cat >>conftest.$ac_ext <<_ACEOF 2825/* end confdefs.h. */ 2826$ac_declaration 2827#include <stdlib.h> 2828int 2829main () 2830{ 2831exit (42); 2832 ; 2833 return 0; 2834} 2835_ACEOF 2836rm -f conftest.$ac_objext 2837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2838 (eval $ac_compile) 2>conftest.er1 2839 ac_status=$? 2840 grep -v '^ *+' conftest.er1 >conftest.err 2841 rm -f conftest.er1 2842 cat conftest.err >&5 2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2844 (exit $ac_status); } && 2845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2847 (eval $ac_try) 2>&5 2848 ac_status=$? 2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2850 (exit $ac_status); }; } && 2851 { ac_try='test -s conftest.$ac_objext' 2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2853 (eval $ac_try) 2>&5 2854 ac_status=$? 2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2856 (exit $ac_status); }; }; then 2857 : 2858else 2859 echo "$as_me: failed program was:" >&5 2860sed 's/^/| /' conftest.$ac_ext >&5 2861 2862continue 2863fi 2864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2865 cat >conftest.$ac_ext <<_ACEOF 2866/* confdefs.h. */ 2867_ACEOF 2868cat confdefs.h >>conftest.$ac_ext 2869cat >>conftest.$ac_ext <<_ACEOF 2870/* end confdefs.h. */ 2871$ac_declaration 2872int 2873main () 2874{ 2875exit (42); 2876 ; 2877 return 0; 2878} 2879_ACEOF 2880rm -f conftest.$ac_objext 2881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2882 (eval $ac_compile) 2>conftest.er1 2883 ac_status=$? 2884 grep -v '^ *+' conftest.er1 >conftest.err 2885 rm -f conftest.er1 2886 cat conftest.err >&5 2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2888 (exit $ac_status); } && 2889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2891 (eval $ac_try) 2>&5 2892 ac_status=$? 2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2894 (exit $ac_status); }; } && 2895 { ac_try='test -s conftest.$ac_objext' 2896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2897 (eval $ac_try) 2>&5 2898 ac_status=$? 2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2900 (exit $ac_status); }; }; then 2901 break 2902else 2903 echo "$as_me: failed program was:" >&5 2904sed 's/^/| /' conftest.$ac_ext >&5 2905 2906fi 2907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2908done 2909rm -f conftest* 2910if test -n "$ac_declaration"; then 2911 echo '#ifdef __cplusplus' >>confdefs.h 2912 echo $ac_declaration >>confdefs.h 2913 echo '#endif' >>confdefs.h 2914fi 2915 2916else 2917 echo "$as_me: failed program was:" >&5 2918sed 's/^/| /' conftest.$ac_ext >&5 2919 2920fi 2921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2922ac_ext=c 2923ac_cpp='$CPP $CPPFLAGS' 2924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2926ac_compiler_gnu=$ac_cv_c_compiler_gnu 2927DEPDIR="${am__leading_dot}deps" 2928 2929 ac_config_commands="$ac_config_commands depfiles" 2930 2931 2932am_make=${MAKE-make} 2933cat > confinc << 'END' 2934am__doit: 2935 @echo done 2936.PHONY: am__doit 2937END 2938# If we don't find an include directive, just comment out the code. 2939echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2940echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2941am__include="#" 2942am__quote= 2943_am_result=none 2944# First try GNU make style include. 2945echo "include confinc" > confmf 2946# We grep out `Entering directory' and `Leaving directory' 2947# messages which can occur if `w' ends up in MAKEFLAGS. 2948# In particular we don't look at `^make:' because GNU make might 2949# be invoked under some other name (usually "gmake"), in which 2950# case it prints its new name instead of `make'. 2951if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2952 am__include=include 2953 am__quote= 2954 _am_result=GNU 2955fi 2956# Now try BSD make style include. 2957if test "$am__include" = "#"; then 2958 echo '.include "confinc"' > confmf 2959 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2960 am__include=.include 2961 am__quote="\"" 2962 _am_result=BSD 2963 fi 2964fi 2965 2966 2967echo "$as_me:$LINENO: result: $_am_result" >&5 2968echo "${ECHO_T}$_am_result" >&6 2969rm -f confinc confmf 2970 2971# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2972if test "${enable_dependency_tracking+set}" = set; then 2973 enableval="$enable_dependency_tracking" 2974 2975fi; 2976if test "x$enable_dependency_tracking" != xno; then 2977 am_depcomp="$ac_aux_dir/depcomp" 2978 AMDEPBACKSLASH='\' 2979fi 2980 2981 2982if test "x$enable_dependency_tracking" != xno; then 2983 AMDEP_TRUE= 2984 AMDEP_FALSE='#' 2985else 2986 AMDEP_TRUE='#' 2987 AMDEP_FALSE= 2988fi 2989 2990 2991 2992 2993depcc="$CC" am_compiler_list= 2994 2995echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 2996echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2997if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 2998 echo $ECHO_N "(cached) $ECHO_C" >&6 2999else 3000 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3001 # We make a subdir and do the tests there. Otherwise we can end up 3002 # making bogus files that we don't know about and never remove. For 3003 # instance it was reported that on HP-UX the gcc test will end up 3004 # making a dummy file named `D' -- because `-MD' means `put the output 3005 # in D'. 3006 mkdir conftest.dir 3007 # Copy depcomp to subdir because otherwise we won't find it if we're 3008 # using a relative directory. 3009 cp "$am_depcomp" conftest.dir 3010 cd conftest.dir 3011 # We will build objects and dependencies in a subdirectory because 3012 # it helps to detect inapplicable dependency modes. For instance 3013 # both Tru64's cc and ICC support -MD to output dependencies as a 3014 # side effect of compilation, but ICC will put the dependencies in 3015 # the current directory while Tru64 will put them in the object 3016 # directory. 3017 mkdir sub 3018 3019 am_cv_CC_dependencies_compiler_type=none 3020 if test "$am_compiler_list" = ""; then 3021 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3022 fi 3023 for depmode in $am_compiler_list; do 3024 # Setup a source with many dependencies, because some compilers 3025 # like to wrap large dependency lists on column 80 (with \), and 3026 # we should not choose a depcomp mode which is confused by this. 3027 # 3028 # We need to recreate these files for each test, as the compiler may 3029 # overwrite some of them when testing with obscure command lines. 3030 # This happens at least with the AIX C compiler. 3031 : > sub/conftest.c 3032 for i in 1 2 3 4 5 6; do 3033 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3034 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3035 # Solaris 8's {/usr,}/bin/sh. 3036 touch sub/conftst$i.h 3037 done 3038 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3039 3040 case $depmode in 3041 nosideeffect) 3042 # after this tag, mechanisms are not by side-effect, so they'll 3043 # only be used when explicitly requested 3044 if test "x$enable_dependency_tracking" = xyes; then 3045 continue 3046 else 3047 break 3048 fi 3049 ;; 3050 none) break ;; 3051 esac 3052 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3053 # mode. It turns out that the SunPro C++ compiler does not properly 3054 # handle `-M -o', and we need to detect this. 3055 if depmode=$depmode \ 3056 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3057 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3058 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3059 >/dev/null 2>conftest.err && 3060 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3061 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3062 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3063 # icc doesn't choke on unknown options, it will just issue warnings 3064 # or remarks (even with -Werror). So we grep stderr for any message 3065 # that says an option was ignored or not supported. 3066 # When given -MP, icc 7.0 and 7.1 complain thusly: 3067 # icc: Command line warning: ignoring option '-M'; no argument required 3068 # The diagnosis changed in icc 8.0: 3069 # icc: Command line remark: option '-MP' not supported 3070 if (grep 'ignoring option' conftest.err || 3071 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3072 am_cv_CC_dependencies_compiler_type=$depmode 3073 break 3074 fi 3075 fi 3076 done 3077 3078 cd .. 3079 rm -rf conftest.dir 3080else 3081 am_cv_CC_dependencies_compiler_type=none 3082fi 3083 3084fi 3085echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3086echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3087CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3088 3089 3090 3091if 3092 test "x$enable_dependency_tracking" != xno \ 3093 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3094 am__fastdepCC_TRUE= 3095 am__fastdepCC_FALSE='#' 3096else 3097 am__fastdepCC_TRUE='#' 3098 am__fastdepCC_FALSE= 3099fi 3100 3101 3102ac_ext=c 3103ac_cpp='$CPP $CPPFLAGS' 3104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3106ac_compiler_gnu=$ac_cv_c_compiler_gnu 3107echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3108echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3109# On Suns, sometimes $CPP names a directory. 3110if test -n "$CPP" && test -d "$CPP"; then 3111 CPP= 3112fi 3113if test -z "$CPP"; then 3114 if test "${ac_cv_prog_CPP+set}" = set; then 3115 echo $ECHO_N "(cached) $ECHO_C" >&6 3116else 3117 # Double quotes because CPP needs to be expanded 3118 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3119 do 3120 ac_preproc_ok=false 3121for ac_c_preproc_warn_flag in '' yes 3122do 3123 # Use a header file that comes with gcc, so configuring glibc 3124 # with a fresh cross-compiler works. 3125 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3126 # <limits.h> exists even on freestanding compilers. 3127 # On the NeXT, cc -E runs the code through the compiler's parser, 3128 # not just through cpp. "Syntax error" is here to catch this case. 3129 cat >conftest.$ac_ext <<_ACEOF 3130/* confdefs.h. */ 3131_ACEOF 3132cat confdefs.h >>conftest.$ac_ext 3133cat >>conftest.$ac_ext <<_ACEOF 3134/* end confdefs.h. */ 3135#ifdef __STDC__ 3136# include <limits.h> 3137#else 3138# include <assert.h> 3139#endif 3140 Syntax error 3141_ACEOF 3142if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3144 ac_status=$? 3145 grep -v '^ *+' conftest.er1 >conftest.err 3146 rm -f conftest.er1 3147 cat conftest.err >&5 3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3149 (exit $ac_status); } >/dev/null; then 3150 if test -s conftest.err; then 3151 ac_cpp_err=$ac_c_preproc_warn_flag 3152 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3153 else 3154 ac_cpp_err= 3155 fi 3156else 3157 ac_cpp_err=yes 3158fi 3159if test -z "$ac_cpp_err"; then 3160 : 3161else 3162 echo "$as_me: failed program was:" >&5 3163sed 's/^/| /' conftest.$ac_ext >&5 3164 3165 # Broken: fails on valid input. 3166continue 3167fi 3168rm -f conftest.err conftest.$ac_ext 3169 3170 # OK, works on sane cases. Now check whether non-existent headers 3171 # can be detected and how. 3172 cat >conftest.$ac_ext <<_ACEOF 3173/* confdefs.h. */ 3174_ACEOF 3175cat confdefs.h >>conftest.$ac_ext 3176cat >>conftest.$ac_ext <<_ACEOF 3177/* end confdefs.h. */ 3178#include <ac_nonexistent.h> 3179_ACEOF 3180if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3181 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3182 ac_status=$? 3183 grep -v '^ *+' conftest.er1 >conftest.err 3184 rm -f conftest.er1 3185 cat conftest.err >&5 3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3187 (exit $ac_status); } >/dev/null; then 3188 if test -s conftest.err; then 3189 ac_cpp_err=$ac_c_preproc_warn_flag 3190 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3191 else 3192 ac_cpp_err= 3193 fi 3194else 3195 ac_cpp_err=yes 3196fi 3197if test -z "$ac_cpp_err"; then 3198 # Broken: success on invalid input. 3199continue 3200else 3201 echo "$as_me: failed program was:" >&5 3202sed 's/^/| /' conftest.$ac_ext >&5 3203 3204 # Passes both tests. 3205ac_preproc_ok=: 3206break 3207fi 3208rm -f conftest.err conftest.$ac_ext 3209 3210done 3211# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3212rm -f conftest.err conftest.$ac_ext 3213if $ac_preproc_ok; then 3214 break 3215fi 3216 3217 done 3218 ac_cv_prog_CPP=$CPP 3219 3220fi 3221 CPP=$ac_cv_prog_CPP 3222else 3223 ac_cv_prog_CPP=$CPP 3224fi 3225echo "$as_me:$LINENO: result: $CPP" >&5 3226echo "${ECHO_T}$CPP" >&6 3227ac_preproc_ok=false 3228for ac_c_preproc_warn_flag in '' yes 3229do 3230 # Use a header file that comes with gcc, so configuring glibc 3231 # with a fresh cross-compiler works. 3232 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3233 # <limits.h> exists even on freestanding compilers. 3234 # On the NeXT, cc -E runs the code through the compiler's parser, 3235 # not just through cpp. "Syntax error" is here to catch this case. 3236 cat >conftest.$ac_ext <<_ACEOF 3237/* confdefs.h. */ 3238_ACEOF 3239cat confdefs.h >>conftest.$ac_ext 3240cat >>conftest.$ac_ext <<_ACEOF 3241/* end confdefs.h. */ 3242#ifdef __STDC__ 3243# include <limits.h> 3244#else 3245# include <assert.h> 3246#endif 3247 Syntax error 3248_ACEOF 3249if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3251 ac_status=$? 3252 grep -v '^ *+' conftest.er1 >conftest.err 3253 rm -f conftest.er1 3254 cat conftest.err >&5 3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3256 (exit $ac_status); } >/dev/null; then 3257 if test -s conftest.err; then 3258 ac_cpp_err=$ac_c_preproc_warn_flag 3259 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3260 else 3261 ac_cpp_err= 3262 fi 3263else 3264 ac_cpp_err=yes 3265fi 3266if test -z "$ac_cpp_err"; then 3267 : 3268else 3269 echo "$as_me: failed program was:" >&5 3270sed 's/^/| /' conftest.$ac_ext >&5 3271 3272 # Broken: fails on valid input. 3273continue 3274fi 3275rm -f conftest.err conftest.$ac_ext 3276 3277 # OK, works on sane cases. Now check whether non-existent headers 3278 # can be detected and how. 3279 cat >conftest.$ac_ext <<_ACEOF 3280/* confdefs.h. */ 3281_ACEOF 3282cat confdefs.h >>conftest.$ac_ext 3283cat >>conftest.$ac_ext <<_ACEOF 3284/* end confdefs.h. */ 3285#include <ac_nonexistent.h> 3286_ACEOF 3287if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3288 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3289 ac_status=$? 3290 grep -v '^ *+' conftest.er1 >conftest.err 3291 rm -f conftest.er1 3292 cat conftest.err >&5 3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3294 (exit $ac_status); } >/dev/null; then 3295 if test -s conftest.err; then 3296 ac_cpp_err=$ac_c_preproc_warn_flag 3297 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3298 else 3299 ac_cpp_err= 3300 fi 3301else 3302 ac_cpp_err=yes 3303fi 3304if test -z "$ac_cpp_err"; then 3305 # Broken: success on invalid input. 3306continue 3307else 3308 echo "$as_me: failed program was:" >&5 3309sed 's/^/| /' conftest.$ac_ext >&5 3310 3311 # Passes both tests. 3312ac_preproc_ok=: 3313break 3314fi 3315rm -f conftest.err conftest.$ac_ext 3316 3317done 3318# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3319rm -f conftest.err conftest.$ac_ext 3320if $ac_preproc_ok; then 3321 : 3322else 3323 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3324See \`config.log' for more details." >&5 3325echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3326See \`config.log' for more details." >&2;} 3327 { (exit 1); exit 1; }; } 3328fi 3329 3330ac_ext=c 3331ac_cpp='$CPP $CPPFLAGS' 3332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3334ac_compiler_gnu=$ac_cv_c_compiler_gnu 3335 3336echo "$as_me:$LINENO: checking for function prototypes" >&5 3337echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 3338if test "$ac_cv_prog_cc_stdc" != no; then 3339 echo "$as_me:$LINENO: result: yes" >&5 3340echo "${ECHO_T}yes" >&6 3341 3342cat >>confdefs.h <<\_ACEOF 3343#define PROTOTYPES 1 3344_ACEOF 3345 3346 3347cat >>confdefs.h <<\_ACEOF 3348#define __PROTOTYPES 1 3349_ACEOF 3350 3351else 3352 echo "$as_me:$LINENO: result: no" >&5 3353echo "${ECHO_T}no" >&6 3354fi 3355 3356 3357 3358echo "$as_me:$LINENO: checking for egrep" >&5 3359echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3360if test "${ac_cv_prog_egrep+set}" = set; then 3361 echo $ECHO_N "(cached) $ECHO_C" >&6 3362else 3363 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3364 then ac_cv_prog_egrep='grep -E' 3365 else ac_cv_prog_egrep='egrep' 3366 fi 3367fi 3368echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3369echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3370 EGREP=$ac_cv_prog_egrep 3371 3372 3373echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3374echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3375if test "${ac_cv_header_stdc+set}" = set; then 3376 echo $ECHO_N "(cached) $ECHO_C" >&6 3377else 3378 cat >conftest.$ac_ext <<_ACEOF 3379/* confdefs.h. */ 3380_ACEOF 3381cat confdefs.h >>conftest.$ac_ext 3382cat >>conftest.$ac_ext <<_ACEOF 3383/* end confdefs.h. */ 3384#include <stdlib.h> 3385#include <stdarg.h> 3386#include <string.h> 3387#include <float.h> 3388 3389int 3390main () 3391{ 3392 3393 ; 3394 return 0; 3395} 3396_ACEOF 3397rm -f conftest.$ac_objext 3398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3399 (eval $ac_compile) 2>conftest.er1 3400 ac_status=$? 3401 grep -v '^ *+' conftest.er1 >conftest.err 3402 rm -f conftest.er1 3403 cat conftest.err >&5 3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3405 (exit $ac_status); } && 3406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3408 (eval $ac_try) 2>&5 3409 ac_status=$? 3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3411 (exit $ac_status); }; } && 3412 { ac_try='test -s conftest.$ac_objext' 3413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3414 (eval $ac_try) 2>&5 3415 ac_status=$? 3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3417 (exit $ac_status); }; }; then 3418 ac_cv_header_stdc=yes 3419else 3420 echo "$as_me: failed program was:" >&5 3421sed 's/^/| /' conftest.$ac_ext >&5 3422 3423ac_cv_header_stdc=no 3424fi 3425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3426 3427if test $ac_cv_header_stdc = yes; then 3428 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3429 cat >conftest.$ac_ext <<_ACEOF 3430/* confdefs.h. */ 3431_ACEOF 3432cat confdefs.h >>conftest.$ac_ext 3433cat >>conftest.$ac_ext <<_ACEOF 3434/* end confdefs.h. */ 3435#include <string.h> 3436 3437_ACEOF 3438if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3439 $EGREP "memchr" >/dev/null 2>&1; then 3440 : 3441else 3442 ac_cv_header_stdc=no 3443fi 3444rm -f conftest* 3445 3446fi 3447 3448if test $ac_cv_header_stdc = yes; then 3449 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3450 cat >conftest.$ac_ext <<_ACEOF 3451/* confdefs.h. */ 3452_ACEOF 3453cat confdefs.h >>conftest.$ac_ext 3454cat >>conftest.$ac_ext <<_ACEOF 3455/* end confdefs.h. */ 3456#include <stdlib.h> 3457 3458_ACEOF 3459if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3460 $EGREP "free" >/dev/null 2>&1; then 3461 : 3462else 3463 ac_cv_header_stdc=no 3464fi 3465rm -f conftest* 3466 3467fi 3468 3469if test $ac_cv_header_stdc = yes; then 3470 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3471 if test "$cross_compiling" = yes; then 3472 : 3473else 3474 cat >conftest.$ac_ext <<_ACEOF 3475/* confdefs.h. */ 3476_ACEOF 3477cat confdefs.h >>conftest.$ac_ext 3478cat >>conftest.$ac_ext <<_ACEOF 3479/* end confdefs.h. */ 3480#include <ctype.h> 3481#if ((' ' & 0x0FF) == 0x020) 3482# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3483# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3484#else 3485# define ISLOWER(c) \ 3486 (('a' <= (c) && (c) <= 'i') \ 3487 || ('j' <= (c) && (c) <= 'r') \ 3488 || ('s' <= (c) && (c) <= 'z')) 3489# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3490#endif 3491 3492#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3493int 3494main () 3495{ 3496 int i; 3497 for (i = 0; i < 256; i++) 3498 if (XOR (islower (i), ISLOWER (i)) 3499 || toupper (i) != TOUPPER (i)) 3500 exit(2); 3501 exit (0); 3502} 3503_ACEOF 3504rm -f conftest$ac_exeext 3505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3506 (eval $ac_link) 2>&5 3507 ac_status=$? 3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3509 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3511 (eval $ac_try) 2>&5 3512 ac_status=$? 3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3514 (exit $ac_status); }; }; then 3515 : 3516else 3517 echo "$as_me: program exited with status $ac_status" >&5 3518echo "$as_me: failed program was:" >&5 3519sed 's/^/| /' conftest.$ac_ext >&5 3520 3521( exit $ac_status ) 3522ac_cv_header_stdc=no 3523fi 3524rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3525fi 3526fi 3527fi 3528echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3529echo "${ECHO_T}$ac_cv_header_stdc" >&6 3530if test $ac_cv_header_stdc = yes; then 3531 3532cat >>confdefs.h <<\_ACEOF 3533#define STDC_HEADERS 1 3534_ACEOF 3535 3536fi 3537 3538# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3549 inttypes.h stdint.h unistd.h 3550do 3551as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3552echo "$as_me:$LINENO: checking for $ac_header" >&5 3553echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3554if eval "test \"\${$as_ac_Header+set}\" = set"; then 3555 echo $ECHO_N "(cached) $ECHO_C" >&6 3556else 3557 cat >conftest.$ac_ext <<_ACEOF 3558/* confdefs.h. */ 3559_ACEOF 3560cat confdefs.h >>conftest.$ac_ext 3561cat >>conftest.$ac_ext <<_ACEOF 3562/* end confdefs.h. */ 3563$ac_includes_default 3564 3565#include <$ac_header> 3566_ACEOF 3567rm -f conftest.$ac_objext 3568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3569 (eval $ac_compile) 2>conftest.er1 3570 ac_status=$? 3571 grep -v '^ *+' conftest.er1 >conftest.err 3572 rm -f conftest.er1 3573 cat conftest.err >&5 3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3575 (exit $ac_status); } && 3576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3578 (eval $ac_try) 2>&5 3579 ac_status=$? 3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3581 (exit $ac_status); }; } && 3582 { ac_try='test -s conftest.$ac_objext' 3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3584 (eval $ac_try) 2>&5 3585 ac_status=$? 3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3587 (exit $ac_status); }; }; then 3588 eval "$as_ac_Header=yes" 3589else 3590 echo "$as_me: failed program was:" >&5 3591sed 's/^/| /' conftest.$ac_ext >&5 3592 3593eval "$as_ac_Header=no" 3594fi 3595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3596fi 3597echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3598echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3599if test `eval echo '${'$as_ac_Header'}'` = yes; then 3600 cat >>confdefs.h <<_ACEOF 3601#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3602_ACEOF 3603 3604fi 3605 3606done 3607 3608 3609 3610if test "$ac_cv_prog_cc_stdc" != no; then 3611 U= ANSI2KNR= 3612else 3613 U=_ ANSI2KNR=./ansi2knr 3614fi 3615# Ensure some checks needed by ansi2knr itself. 3616 3617 3618for ac_header in string.h 3619do 3620as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3621if eval "test \"\${$as_ac_Header+set}\" = set"; then 3622 echo "$as_me:$LINENO: checking for $ac_header" >&5 3623echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3624if eval "test \"\${$as_ac_Header+set}\" = set"; then 3625 echo $ECHO_N "(cached) $ECHO_C" >&6 3626fi 3627echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3628echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3629else 3630 # Is the header compilable? 3631echo "$as_me:$LINENO: checking $ac_header usability" >&5 3632echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3633cat >conftest.$ac_ext <<_ACEOF 3634/* confdefs.h. */ 3635_ACEOF 3636cat confdefs.h >>conftest.$ac_ext 3637cat >>conftest.$ac_ext <<_ACEOF 3638/* end confdefs.h. */ 3639$ac_includes_default 3640#include <$ac_header> 3641_ACEOF 3642rm -f conftest.$ac_objext 3643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3644 (eval $ac_compile) 2>conftest.er1 3645 ac_status=$? 3646 grep -v '^ *+' conftest.er1 >conftest.err 3647 rm -f conftest.er1 3648 cat conftest.err >&5 3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3650 (exit $ac_status); } && 3651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3653 (eval $ac_try) 2>&5 3654 ac_status=$? 3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3656 (exit $ac_status); }; } && 3657 { ac_try='test -s conftest.$ac_objext' 3658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3659 (eval $ac_try) 2>&5 3660 ac_status=$? 3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3662 (exit $ac_status); }; }; then 3663 ac_header_compiler=yes 3664else 3665 echo "$as_me: failed program was:" >&5 3666sed 's/^/| /' conftest.$ac_ext >&5 3667 3668ac_header_compiler=no 3669fi 3670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3671echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3672echo "${ECHO_T}$ac_header_compiler" >&6 3673 3674# Is the header present? 3675echo "$as_me:$LINENO: checking $ac_header presence" >&5 3676echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3677cat >conftest.$ac_ext <<_ACEOF 3678/* confdefs.h. */ 3679_ACEOF 3680cat confdefs.h >>conftest.$ac_ext 3681cat >>conftest.$ac_ext <<_ACEOF 3682/* end confdefs.h. */ 3683#include <$ac_header> 3684_ACEOF 3685if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3687 ac_status=$? 3688 grep -v '^ *+' conftest.er1 >conftest.err 3689 rm -f conftest.er1 3690 cat conftest.err >&5 3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3692 (exit $ac_status); } >/dev/null; then 3693 if test -s conftest.err; then 3694 ac_cpp_err=$ac_c_preproc_warn_flag 3695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3696 else 3697 ac_cpp_err= 3698 fi 3699else 3700 ac_cpp_err=yes 3701fi 3702if test -z "$ac_cpp_err"; then 3703 ac_header_preproc=yes 3704else 3705 echo "$as_me: failed program was:" >&5 3706sed 's/^/| /' conftest.$ac_ext >&5 3707 3708 ac_header_preproc=no 3709fi 3710rm -f conftest.err conftest.$ac_ext 3711echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3712echo "${ECHO_T}$ac_header_preproc" >&6 3713 3714# So? What about this header? 3715case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3716 yes:no: ) 3717 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3718echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 3720echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 3721 ac_header_preproc=yes 3722 ;; 3723 no:yes:* ) 3724 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3725echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3726 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3727echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3728 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 3729echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 3730 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 3731echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 3732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3733echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3734 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 3735echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 3736 ( 3737 cat <<\_ASBOX 3738## ------------------------------------------ ## 3739## Report this to the AC_PACKAGE_NAME lists. ## 3740## ------------------------------------------ ## 3741_ASBOX 3742 ) | 3743 sed "s/^/$as_me: WARNING: /" >&2 3744 ;; 3745esac 3746echo "$as_me:$LINENO: checking for $ac_header" >&5 3747echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3748if eval "test \"\${$as_ac_Header+set}\" = set"; then 3749 echo $ECHO_N "(cached) $ECHO_C" >&6 3750else 3751 eval "$as_ac_Header=\$ac_header_preproc" 3752fi 3753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3754echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3755 3756fi 3757if test `eval echo '${'$as_ac_Header'}'` = yes; then 3758 cat >>confdefs.h <<_ACEOF 3759#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3760_ACEOF 3761 3762fi 3763 3764done 3765 3766 3767ac_ext=c 3768ac_cpp='$CPP $CPPFLAGS' 3769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3771ac_compiler_gnu=$ac_cv_c_compiler_gnu 3772if test -n "$ac_tool_prefix"; then 3773 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3774set dummy ${ac_tool_prefix}gcc; ac_word=$2 3775echo "$as_me:$LINENO: checking for $ac_word" >&5 3776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3777if test "${ac_cv_prog_CC+set}" = set; then 3778 echo $ECHO_N "(cached) $ECHO_C" >&6 3779else 3780 if test -n "$CC"; then 3781 ac_cv_prog_CC="$CC" # Let the user override the test. 3782else 3783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3784for as_dir in $PATH 3785do 3786 IFS=$as_save_IFS 3787 test -z "$as_dir" && as_dir=. 3788 for ac_exec_ext in '' $ac_executable_extensions; do 3789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3790 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3792 break 2 3793 fi 3794done 3795done 3796 3797fi 3798fi 3799CC=$ac_cv_prog_CC 3800if test -n "$CC"; then 3801 echo "$as_me:$LINENO: result: $CC" >&5 3802echo "${ECHO_T}$CC" >&6 3803else 3804 echo "$as_me:$LINENO: result: no" >&5 3805echo "${ECHO_T}no" >&6 3806fi 3807 3808fi 3809if test -z "$ac_cv_prog_CC"; then 3810 ac_ct_CC=$CC 3811 # Extract the first word of "gcc", so it can be a program name with args. 3812set dummy gcc; ac_word=$2 3813echo "$as_me:$LINENO: checking for $ac_word" >&5 3814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3815if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3816 echo $ECHO_N "(cached) $ECHO_C" >&6 3817else 3818 if test -n "$ac_ct_CC"; then 3819 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3820else 3821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3822for as_dir in $PATH 3823do 3824 IFS=$as_save_IFS 3825 test -z "$as_dir" && as_dir=. 3826 for ac_exec_ext in '' $ac_executable_extensions; do 3827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3828 ac_cv_prog_ac_ct_CC="gcc" 3829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3830 break 2 3831 fi 3832done 3833done 3834 3835fi 3836fi 3837ac_ct_CC=$ac_cv_prog_ac_ct_CC 3838if test -n "$ac_ct_CC"; then 3839 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3840echo "${ECHO_T}$ac_ct_CC" >&6 3841else 3842 echo "$as_me:$LINENO: result: no" >&5 3843echo "${ECHO_T}no" >&6 3844fi 3845 3846 CC=$ac_ct_CC 3847else 3848 CC="$ac_cv_prog_CC" 3849fi 3850 3851if test -z "$CC"; then 3852 if test -n "$ac_tool_prefix"; then 3853 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3854set dummy ${ac_tool_prefix}cc; ac_word=$2 3855echo "$as_me:$LINENO: checking for $ac_word" >&5 3856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3857if test "${ac_cv_prog_CC+set}" = set; then 3858 echo $ECHO_N "(cached) $ECHO_C" >&6 3859else 3860 if test -n "$CC"; then 3861 ac_cv_prog_CC="$CC" # Let the user override the test. 3862else 3863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3864for as_dir in $PATH 3865do 3866 IFS=$as_save_IFS 3867 test -z "$as_dir" && as_dir=. 3868 for ac_exec_ext in '' $ac_executable_extensions; do 3869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3870 ac_cv_prog_CC="${ac_tool_prefix}cc" 3871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3872 break 2 3873 fi 3874done 3875done 3876 3877fi 3878fi 3879CC=$ac_cv_prog_CC 3880if test -n "$CC"; then 3881 echo "$as_me:$LINENO: result: $CC" >&5 3882echo "${ECHO_T}$CC" >&6 3883else 3884 echo "$as_me:$LINENO: result: no" >&5 3885echo "${ECHO_T}no" >&6 3886fi 3887 3888fi 3889if test -z "$ac_cv_prog_CC"; then 3890 ac_ct_CC=$CC 3891 # Extract the first word of "cc", so it can be a program name with args. 3892set dummy cc; ac_word=$2 3893echo "$as_me:$LINENO: checking for $ac_word" >&5 3894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3895if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3896 echo $ECHO_N "(cached) $ECHO_C" >&6 3897else 3898 if test -n "$ac_ct_CC"; then 3899 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3900else 3901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3902for as_dir in $PATH 3903do 3904 IFS=$as_save_IFS 3905 test -z "$as_dir" && as_dir=. 3906 for ac_exec_ext in '' $ac_executable_extensions; do 3907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3908 ac_cv_prog_ac_ct_CC="cc" 3909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3910 break 2 3911 fi 3912done 3913done 3914 3915fi 3916fi 3917ac_ct_CC=$ac_cv_prog_ac_ct_CC 3918if test -n "$ac_ct_CC"; then 3919 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3920echo "${ECHO_T}$ac_ct_CC" >&6 3921else 3922 echo "$as_me:$LINENO: result: no" >&5 3923echo "${ECHO_T}no" >&6 3924fi 3925 3926 CC=$ac_ct_CC 3927else 3928 CC="$ac_cv_prog_CC" 3929fi 3930 3931fi 3932if test -z "$CC"; then 3933 # Extract the first word of "cc", so it can be a program name with args. 3934set dummy cc; ac_word=$2 3935echo "$as_me:$LINENO: checking for $ac_word" >&5 3936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3937if test "${ac_cv_prog_CC+set}" = set; then 3938 echo $ECHO_N "(cached) $ECHO_C" >&6 3939else 3940 if test -n "$CC"; then 3941 ac_cv_prog_CC="$CC" # Let the user override the test. 3942else 3943 ac_prog_rejected=no 3944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3945for as_dir in $PATH 3946do 3947 IFS=$as_save_IFS 3948 test -z "$as_dir" && as_dir=. 3949 for ac_exec_ext in '' $ac_executable_extensions; do 3950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3951 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3952 ac_prog_rejected=yes 3953 continue 3954 fi 3955 ac_cv_prog_CC="cc" 3956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3957 break 2 3958 fi 3959done 3960done 3961 3962if test $ac_prog_rejected = yes; then 3963 # We found a bogon in the path, so make sure we never use it. 3964 set dummy $ac_cv_prog_CC 3965 shift 3966 if test $# != 0; then 3967 # We chose a different compiler from the bogus one. 3968 # However, it has the same basename, so the bogon will be chosen 3969 # first if we set CC to just the basename; use the full file name. 3970 shift 3971 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3972 fi 3973fi 3974fi 3975fi 3976CC=$ac_cv_prog_CC 3977if test -n "$CC"; then 3978 echo "$as_me:$LINENO: result: $CC" >&5 3979echo "${ECHO_T}$CC" >&6 3980else 3981 echo "$as_me:$LINENO: result: no" >&5 3982echo "${ECHO_T}no" >&6 3983fi 3984 3985fi 3986if test -z "$CC"; then 3987 if test -n "$ac_tool_prefix"; then 3988 for ac_prog in cl 3989 do 3990 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3991set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3992echo "$as_me:$LINENO: checking for $ac_word" >&5 3993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3994if test "${ac_cv_prog_CC+set}" = set; then 3995 echo $ECHO_N "(cached) $ECHO_C" >&6 3996else 3997 if test -n "$CC"; then 3998 ac_cv_prog_CC="$CC" # Let the user override the test. 3999else 4000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4001for as_dir in $PATH 4002do 4003 IFS=$as_save_IFS 4004 test -z "$as_dir" && as_dir=. 4005 for ac_exec_ext in '' $ac_executable_extensions; do 4006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4007 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4009 break 2 4010 fi 4011done 4012done 4013 4014fi 4015fi 4016CC=$ac_cv_prog_CC 4017if test -n "$CC"; then 4018 echo "$as_me:$LINENO: result: $CC" >&5 4019echo "${ECHO_T}$CC" >&6 4020else 4021 echo "$as_me:$LINENO: result: no" >&5 4022echo "${ECHO_T}no" >&6 4023fi 4024 4025 test -n "$CC" && break 4026 done 4027fi 4028if test -z "$CC"; then 4029 ac_ct_CC=$CC 4030 for ac_prog in cl 4031do 4032 # Extract the first word of "$ac_prog", so it can be a program name with args. 4033set dummy $ac_prog; ac_word=$2 4034echo "$as_me:$LINENO: checking for $ac_word" >&5 4035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4036if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 4037 echo $ECHO_N "(cached) $ECHO_C" >&6 4038else 4039 if test -n "$ac_ct_CC"; then 4040 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4041else 4042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4043for as_dir in $PATH 4044do 4045 IFS=$as_save_IFS 4046 test -z "$as_dir" && as_dir=. 4047 for ac_exec_ext in '' $ac_executable_extensions; do 4048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4049 ac_cv_prog_ac_ct_CC="$ac_prog" 4050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4051 break 2 4052 fi 4053done 4054done 4055 4056fi 4057fi 4058ac_ct_CC=$ac_cv_prog_ac_ct_CC 4059if test -n "$ac_ct_CC"; then 4060 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 4061echo "${ECHO_T}$ac_ct_CC" >&6 4062else 4063 echo "$as_me:$LINENO: result: no" >&5 4064echo "${ECHO_T}no" >&6 4065fi 4066 4067 test -n "$ac_ct_CC" && break 4068done 4069 4070 CC=$ac_ct_CC 4071fi 4072 4073fi 4074 4075 4076test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 4077See \`config.log' for more details." >&5 4078echo "$as_me: error: no acceptable C compiler found in \$PATH 4079See \`config.log' for more details." >&2;} 4080 { (exit 1); exit 1; }; } 4081 4082# Provide some information about the compiler. 4083echo "$as_me:$LINENO:" \ 4084 "checking for C compiler version" >&5 4085ac_compiler=`set X $ac_compile; echo $2` 4086{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4087 (eval $ac_compiler --version </dev/null >&5) 2>&5 4088 ac_status=$? 4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4090 (exit $ac_status); } 4091{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4092 (eval $ac_compiler -v </dev/null >&5) 2>&5 4093 ac_status=$? 4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4095 (exit $ac_status); } 4096{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4097 (eval $ac_compiler -V </dev/null >&5) 2>&5 4098 ac_status=$? 4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4100 (exit $ac_status); } 4101 4102echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 4103echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 4104if test "${ac_cv_c_compiler_gnu+set}" = set; then 4105 echo $ECHO_N "(cached) $ECHO_C" >&6 4106else 4107 cat >conftest.$ac_ext <<_ACEOF 4108/* confdefs.h. */ 4109_ACEOF 4110cat confdefs.h >>conftest.$ac_ext 4111cat >>conftest.$ac_ext <<_ACEOF 4112/* end confdefs.h. */ 4113 4114int 4115main () 4116{ 4117#ifndef __GNUC__ 4118 choke me 4119#endif 4120 4121 ; 4122 return 0; 4123} 4124_ACEOF 4125rm -f conftest.$ac_objext 4126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4127 (eval $ac_compile) 2>conftest.er1 4128 ac_status=$? 4129 grep -v '^ *+' conftest.er1 >conftest.err 4130 rm -f conftest.er1 4131 cat conftest.err >&5 4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4133 (exit $ac_status); } && 4134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4136 (eval $ac_try) 2>&5 4137 ac_status=$? 4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4139 (exit $ac_status); }; } && 4140 { ac_try='test -s conftest.$ac_objext' 4141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4142 (eval $ac_try) 2>&5 4143 ac_status=$? 4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4145 (exit $ac_status); }; }; then 4146 ac_compiler_gnu=yes 4147else 4148 echo "$as_me: failed program was:" >&5 4149sed 's/^/| /' conftest.$ac_ext >&5 4150 4151ac_compiler_gnu=no 4152fi 4153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4154ac_cv_c_compiler_gnu=$ac_compiler_gnu 4155 4156fi 4157echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 4158echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 4159GCC=`test $ac_compiler_gnu = yes && echo yes` 4160ac_test_CFLAGS=${CFLAGS+set} 4161ac_save_CFLAGS=$CFLAGS 4162CFLAGS="-g" 4163echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 4164echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 4165if test "${ac_cv_prog_cc_g+set}" = set; then 4166 echo $ECHO_N "(cached) $ECHO_C" >&6 4167else 4168 cat >conftest.$ac_ext <<_ACEOF 4169/* confdefs.h. */ 4170_ACEOF 4171cat confdefs.h >>conftest.$ac_ext 4172cat >>conftest.$ac_ext <<_ACEOF 4173/* end confdefs.h. */ 4174 4175int 4176main () 4177{ 4178 4179 ; 4180 return 0; 4181} 4182_ACEOF 4183rm -f conftest.$ac_objext 4184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4185 (eval $ac_compile) 2>conftest.er1 4186 ac_status=$? 4187 grep -v '^ *+' conftest.er1 >conftest.err 4188 rm -f conftest.er1 4189 cat conftest.err >&5 4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4191 (exit $ac_status); } && 4192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4194 (eval $ac_try) 2>&5 4195 ac_status=$? 4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4197 (exit $ac_status); }; } && 4198 { ac_try='test -s conftest.$ac_objext' 4199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4200 (eval $ac_try) 2>&5 4201 ac_status=$? 4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4203 (exit $ac_status); }; }; then 4204 ac_cv_prog_cc_g=yes 4205else 4206 echo "$as_me: failed program was:" >&5 4207sed 's/^/| /' conftest.$ac_ext >&5 4208 4209ac_cv_prog_cc_g=no 4210fi 4211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4212fi 4213echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 4214echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 4215if test "$ac_test_CFLAGS" = set; then 4216 CFLAGS=$ac_save_CFLAGS 4217elif test $ac_cv_prog_cc_g = yes; then 4218 if test "$GCC" = yes; then 4219 CFLAGS="-g -O2" 4220 else 4221 CFLAGS="-g" 4222 fi 4223else 4224 if test "$GCC" = yes; then 4225 CFLAGS="-O2" 4226 else 4227 CFLAGS= 4228 fi 4229fi 4230echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 4231echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 4232if test "${ac_cv_prog_cc_stdc+set}" = set; then 4233 echo $ECHO_N "(cached) $ECHO_C" >&6 4234else 4235 ac_cv_prog_cc_stdc=no 4236ac_save_CC=$CC 4237cat >conftest.$ac_ext <<_ACEOF 4238/* confdefs.h. */ 4239_ACEOF 4240cat confdefs.h >>conftest.$ac_ext 4241cat >>conftest.$ac_ext <<_ACEOF 4242/* end confdefs.h. */ 4243#include <stdarg.h> 4244#include <stdio.h> 4245#include <sys/types.h> 4246#include <sys/stat.h> 4247/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4248struct buf { int x; }; 4249FILE * (*rcsopen) (struct buf *, struct stat *, int); 4250static char *e (p, i) 4251 char **p; 4252 int i; 4253{ 4254 return p[i]; 4255} 4256static char *f (char * (*g) (char **, int), char **p, ...) 4257{ 4258 char *s; 4259 va_list v; 4260 va_start (v,p); 4261 s = g (p, va_arg (v,int)); 4262 va_end (v); 4263 return s; 4264} 4265 4266/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4267 function prototypes and stuff, but not '\xHH' hex character constants. 4268 These don't provoke an error unfortunately, instead are silently treated 4269 as 'x'. The following induces an error, until -std1 is added to get 4270 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4271 array size at least. It's necessary to write '\x00'==0 to get something 4272 that's true only with -std1. */ 4273int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4274 4275int test (int i, double x); 4276struct s1 {int (*f) (int a);}; 4277struct s2 {int (*f) (double a);}; 4278int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4279int argc; 4280char **argv; 4281int 4282main () 4283{ 4284return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4285 ; 4286 return 0; 4287} 4288_ACEOF 4289# Don't try gcc -ansi; that turns off useful extensions and 4290# breaks some systems' header files. 4291# AIX -qlanglvl=ansi 4292# Ultrix and OSF/1 -std1 4293# HP-UX 10.20 and later -Ae 4294# HP-UX older versions -Aa -D_HPUX_SOURCE 4295# SVR4 -Xc -D__EXTENSIONS__ 4296for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4297do 4298 CC="$ac_save_CC $ac_arg" 4299 rm -f conftest.$ac_objext 4300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4301 (eval $ac_compile) 2>conftest.er1 4302 ac_status=$? 4303 grep -v '^ *+' conftest.er1 >conftest.err 4304 rm -f conftest.er1 4305 cat conftest.err >&5 4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4307 (exit $ac_status); } && 4308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4310 (eval $ac_try) 2>&5 4311 ac_status=$? 4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4313 (exit $ac_status); }; } && 4314 { ac_try='test -s conftest.$ac_objext' 4315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4316 (eval $ac_try) 2>&5 4317 ac_status=$? 4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4319 (exit $ac_status); }; }; then 4320 ac_cv_prog_cc_stdc=$ac_arg 4321break 4322else 4323 echo "$as_me: failed program was:" >&5 4324sed 's/^/| /' conftest.$ac_ext >&5 4325 4326fi 4327rm -f conftest.err conftest.$ac_objext 4328done 4329rm -f conftest.$ac_ext conftest.$ac_objext 4330CC=$ac_save_CC 4331 4332fi 4333 4334case "x$ac_cv_prog_cc_stdc" in 4335 x|xno) 4336 echo "$as_me:$LINENO: result: none needed" >&5 4337echo "${ECHO_T}none needed" >&6 ;; 4338 *) 4339 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 4340echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 4341 CC="$CC $ac_cv_prog_cc_stdc" ;; 4342esac 4343 4344# Some people use a C++ compiler to compile C. Since we use `exit', 4345# in C++ we need to declare it. In case someone uses the same compiler 4346# for both compiling C and C++ we need to have the C++ compiler decide 4347# the declaration of exit, since it's the most demanding environment. 4348cat >conftest.$ac_ext <<_ACEOF 4349#ifndef __cplusplus 4350 choke me 4351#endif 4352_ACEOF 4353rm -f conftest.$ac_objext 4354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4355 (eval $ac_compile) 2>conftest.er1 4356 ac_status=$? 4357 grep -v '^ *+' conftest.er1 >conftest.err 4358 rm -f conftest.er1 4359 cat conftest.err >&5 4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4361 (exit $ac_status); } && 4362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4364 (eval $ac_try) 2>&5 4365 ac_status=$? 4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4367 (exit $ac_status); }; } && 4368 { ac_try='test -s conftest.$ac_objext' 4369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4370 (eval $ac_try) 2>&5 4371 ac_status=$? 4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4373 (exit $ac_status); }; }; then 4374 for ac_declaration in \ 4375 '' \ 4376 'extern "C" void std::exit (int) throw (); using std::exit;' \ 4377 'extern "C" void std::exit (int); using std::exit;' \ 4378 'extern "C" void exit (int) throw ();' \ 4379 'extern "C" void exit (int);' \ 4380 'void exit (int);' 4381do 4382 cat >conftest.$ac_ext <<_ACEOF 4383/* confdefs.h. */ 4384_ACEOF 4385cat confdefs.h >>conftest.$ac_ext 4386cat >>conftest.$ac_ext <<_ACEOF 4387/* end confdefs.h. */ 4388$ac_declaration 4389#include <stdlib.h> 4390int 4391main () 4392{ 4393exit (42); 4394 ; 4395 return 0; 4396} 4397_ACEOF 4398rm -f conftest.$ac_objext 4399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4400 (eval $ac_compile) 2>conftest.er1 4401 ac_status=$? 4402 grep -v '^ *+' conftest.er1 >conftest.err 4403 rm -f conftest.er1 4404 cat conftest.err >&5 4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4406 (exit $ac_status); } && 4407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4409 (eval $ac_try) 2>&5 4410 ac_status=$? 4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4412 (exit $ac_status); }; } && 4413 { ac_try='test -s conftest.$ac_objext' 4414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4415 (eval $ac_try) 2>&5 4416 ac_status=$? 4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4418 (exit $ac_status); }; }; then 4419 : 4420else 4421 echo "$as_me: failed program was:" >&5 4422sed 's/^/| /' conftest.$ac_ext >&5 4423 4424continue 4425fi 4426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4427 cat >conftest.$ac_ext <<_ACEOF 4428/* confdefs.h. */ 4429_ACEOF 4430cat confdefs.h >>conftest.$ac_ext 4431cat >>conftest.$ac_ext <<_ACEOF 4432/* end confdefs.h. */ 4433$ac_declaration 4434int 4435main () 4436{ 4437exit (42); 4438 ; 4439 return 0; 4440} 4441_ACEOF 4442rm -f conftest.$ac_objext 4443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4444 (eval $ac_compile) 2>conftest.er1 4445 ac_status=$? 4446 grep -v '^ *+' conftest.er1 >conftest.err 4447 rm -f conftest.er1 4448 cat conftest.err >&5 4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4450 (exit $ac_status); } && 4451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4453 (eval $ac_try) 2>&5 4454 ac_status=$? 4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4456 (exit $ac_status); }; } && 4457 { ac_try='test -s conftest.$ac_objext' 4458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4459 (eval $ac_try) 2>&5 4460 ac_status=$? 4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4462 (exit $ac_status); }; }; then 4463 break 4464else 4465 echo "$as_me: failed program was:" >&5 4466sed 's/^/| /' conftest.$ac_ext >&5 4467 4468fi 4469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4470done 4471rm -f conftest* 4472if test -n "$ac_declaration"; then 4473 echo '#ifdef __cplusplus' >>confdefs.h 4474 echo $ac_declaration >>confdefs.h 4475 echo '#endif' >>confdefs.h 4476fi 4477 4478else 4479 echo "$as_me: failed program was:" >&5 4480sed 's/^/| /' conftest.$ac_ext >&5 4481 4482fi 4483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4484ac_ext=c 4485ac_cpp='$CPP $CPPFLAGS' 4486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4488ac_compiler_gnu=$ac_cv_c_compiler_gnu 4489 4490depcc="$CC" am_compiler_list= 4491 4492echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4493echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 4494if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 4495 echo $ECHO_N "(cached) $ECHO_C" >&6 4496else 4497 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4498 # We make a subdir and do the tests there. Otherwise we can end up 4499 # making bogus files that we don't know about and never remove. For 4500 # instance it was reported that on HP-UX the gcc test will end up 4501 # making a dummy file named `D' -- because `-MD' means `put the output 4502 # in D'. 4503 mkdir conftest.dir 4504 # Copy depcomp to subdir because otherwise we won't find it if we're 4505 # using a relative directory. 4506 cp "$am_depcomp" conftest.dir 4507 cd conftest.dir 4508 # We will build objects and dependencies in a subdirectory because 4509 # it helps to detect inapplicable dependency modes. For instance 4510 # both Tru64's cc and ICC support -MD to output dependencies as a 4511 # side effect of compilation, but ICC will put the dependencies in 4512 # the current directory while Tru64 will put them in the object 4513 # directory. 4514 mkdir sub 4515 4516 am_cv_CC_dependencies_compiler_type=none 4517 if test "$am_compiler_list" = ""; then 4518 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4519 fi 4520 for depmode in $am_compiler_list; do 4521 # Setup a source with many dependencies, because some compilers 4522 # like to wrap large dependency lists on column 80 (with \), and 4523 # we should not choose a depcomp mode which is confused by this. 4524 # 4525 # We need to recreate these files for each test, as the compiler may 4526 # overwrite some of them when testing with obscure command lines. 4527 # This happens at least with the AIX C compiler. 4528 : > sub/conftest.c 4529 for i in 1 2 3 4 5 6; do 4530 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4531 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4532 # Solaris 8's {/usr,}/bin/sh. 4533 touch sub/conftst$i.h 4534 done 4535 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4536 4537 case $depmode in 4538 nosideeffect) 4539 # after this tag, mechanisms are not by side-effect, so they'll 4540 # only be used when explicitly requested 4541 if test "x$enable_dependency_tracking" = xyes; then 4542 continue 4543 else 4544 break 4545 fi 4546 ;; 4547 none) break ;; 4548 esac 4549 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4550 # mode. It turns out that the SunPro C++ compiler does not properly 4551 # handle `-M -o', and we need to detect this. 4552 if depmode=$depmode \ 4553 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4554 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4555 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4556 >/dev/null 2>conftest.err && 4557 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4558 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4559 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4560 # icc doesn't choke on unknown options, it will just issue warnings 4561 # or remarks (even with -Werror). So we grep stderr for any message 4562 # that says an option was ignored or not supported. 4563 # When given -MP, icc 7.0 and 7.1 complain thusly: 4564 # icc: Command line warning: ignoring option '-M'; no argument required 4565 # The diagnosis changed in icc 8.0: 4566 # icc: Command line remark: option '-MP' not supported 4567 if (grep 'ignoring option' conftest.err || 4568 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4569 am_cv_CC_dependencies_compiler_type=$depmode 4570 break 4571 fi 4572 fi 4573 done 4574 4575 cd .. 4576 rm -rf conftest.dir 4577else 4578 am_cv_CC_dependencies_compiler_type=none 4579fi 4580 4581fi 4582echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 4583echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 4584CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4585 4586 4587 4588if 4589 test "x$enable_dependency_tracking" != xno \ 4590 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4591 am__fastdepCC_TRUE= 4592 am__fastdepCC_FALSE='#' 4593else 4594 am__fastdepCC_TRUE='#' 4595 am__fastdepCC_FALSE= 4596fi 4597 4598 4599 4600am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc 4601 4602# Find a good install program. We prefer a C program (faster), 4603# so one script is as good as another. But avoid the broken or 4604# incompatible versions: 4605# SysV /etc/install, /usr/sbin/install 4606# SunOS /usr/etc/install 4607# IRIX /sbin/install 4608# AIX /bin/install 4609# AmigaOS /C/install, which installs bootblocks on floppy discs 4610# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4611# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4612# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4613# OS/2's system install, which has a completely different semantic 4614# ./install, which can be erroneously created by make from ./install.sh. 4615echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 4616echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 4617if test -z "$INSTALL"; then 4618if test "${ac_cv_path_install+set}" = set; then 4619 echo $ECHO_N "(cached) $ECHO_C" >&6 4620else 4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4622for as_dir in $PATH 4623do 4624 IFS=$as_save_IFS 4625 test -z "$as_dir" && as_dir=. 4626 # Account for people who put trailing slashes in PATH elements. 4627case $as_dir/ in 4628 ./ | .// | /cC/* | \ 4629 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4630 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 4631 /usr/ucb/* ) ;; 4632 *) 4633 # OSF1 and SCO ODT 3.0 have their own names for install. 4634 # Don't use installbsd from OSF since it installs stuff as root 4635 # by default. 4636 for ac_prog in ginstall scoinst install; do 4637 for ac_exec_ext in '' $ac_executable_extensions; do 4638 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 4639 if test $ac_prog = install && 4640 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4641 # AIX install. It has an incompatible calling convention. 4642 : 4643 elif test $ac_prog = install && 4644 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4645 # program-specific install script used by HP pwplus--don't use. 4646 : 4647 else 4648 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4649 break 3 4650 fi 4651 fi 4652 done 4653 done 4654 ;; 4655esac 4656done 4657 4658 4659fi 4660 if test "${ac_cv_path_install+set}" = set; then 4661 INSTALL=$ac_cv_path_install 4662 else 4663 # As a last resort, use the slow shell script. We don't cache a 4664 # path for INSTALL within a source directory, because that will 4665 # break other packages using the cache if that directory is 4666 # removed, or if the path is relative. 4667 INSTALL=$ac_install_sh 4668 fi 4669fi 4670echo "$as_me:$LINENO: result: $INSTALL" >&5 4671echo "${ECHO_T}$INSTALL" >&6 4672 4673# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4674# It thinks the first close brace ends the variable substitution. 4675test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4676 4677test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4678 4679test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4680 4681echo "$as_me:$LINENO: checking whether ln -s works" >&5 4682echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 4683LN_S=$as_ln_s 4684if test "$LN_S" = "ln -s"; then 4685 echo "$as_me:$LINENO: result: yes" >&5 4686echo "${ECHO_T}yes" >&6 4687else 4688 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4689echo "${ECHO_T}no, using $LN_S" >&6 4690fi 4691 4692echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4693echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 4694set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 4695if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 4696 echo $ECHO_N "(cached) $ECHO_C" >&6 4697else 4698 cat >conftest.make <<\_ACEOF 4699all: 4700 @echo 'ac_maketemp="$(MAKE)"' 4701_ACEOF 4702# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 4703eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 4704if test -n "$ac_maketemp"; then 4705 eval ac_cv_prog_make_${ac_make}_set=yes 4706else 4707 eval ac_cv_prog_make_${ac_make}_set=no 4708fi 4709rm -f conftest.make 4710fi 4711if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 4712 echo "$as_me:$LINENO: result: yes" >&5 4713echo "${ECHO_T}yes" >&6 4714 SET_MAKE= 4715else 4716 echo "$as_me:$LINENO: result: no" >&5 4717echo "${ECHO_T}no" >&6 4718 SET_MAKE="MAKE=${MAKE-make}" 4719fi 4720 4721# Check whether --enable-shared or --disable-shared was given. 4722if test "${enable_shared+set}" = set; then 4723 enableval="$enable_shared" 4724 p=${PACKAGE-default} 4725 case $enableval in 4726 yes) enable_shared=yes ;; 4727 no) enable_shared=no ;; 4728 *) 4729 enable_shared=no 4730 # Look at the argument we got. We use all the common list separators. 4731 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4732 for pkg in $enableval; do 4733 IFS="$lt_save_ifs" 4734 if test "X$pkg" = "X$p"; then 4735 enable_shared=yes 4736 fi 4737 done 4738 IFS="$lt_save_ifs" 4739 ;; 4740 esac 4741else 4742 enable_shared=yes 4743fi; 4744 4745# Check whether --enable-static or --disable-static was given. 4746if test "${enable_static+set}" = set; then 4747 enableval="$enable_static" 4748 p=${PACKAGE-default} 4749 case $enableval in 4750 yes) enable_static=yes ;; 4751 no) enable_static=no ;; 4752 *) 4753 enable_static=no 4754 # Look at the argument we got. We use all the common list separators. 4755 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4756 for pkg in $enableval; do 4757 IFS="$lt_save_ifs" 4758 if test "X$pkg" = "X$p"; then 4759 enable_static=yes 4760 fi 4761 done 4762 IFS="$lt_save_ifs" 4763 ;; 4764 esac 4765else 4766 enable_static=yes 4767fi; 4768 4769# Check whether --enable-fast-install or --disable-fast-install was given. 4770if test "${enable_fast_install+set}" = set; then 4771 enableval="$enable_fast_install" 4772 p=${PACKAGE-default} 4773 case $enableval in 4774 yes) enable_fast_install=yes ;; 4775 no) enable_fast_install=no ;; 4776 *) 4777 enable_fast_install=no 4778 # Look at the argument we got. We use all the common list separators. 4779 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4780 for pkg in $enableval; do 4781 IFS="$lt_save_ifs" 4782 if test "X$pkg" = "X$p"; then 4783 enable_fast_install=yes 4784 fi 4785 done 4786 IFS="$lt_save_ifs" 4787 ;; 4788 esac 4789else 4790 enable_fast_install=yes 4791fi; 4792 4793# Make sure we can run config.sub. 4794$ac_config_sub sun4 >/dev/null 2>&1 || 4795 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 4796echo "$as_me: error: cannot run $ac_config_sub" >&2;} 4797 { (exit 1); exit 1; }; } 4798 4799echo "$as_me:$LINENO: checking build system type" >&5 4800echo $ECHO_N "checking build system type... $ECHO_C" >&6 4801if test "${ac_cv_build+set}" = set; then 4802 echo $ECHO_N "(cached) $ECHO_C" >&6 4803else 4804 ac_cv_build_alias=$build_alias 4805test -z "$ac_cv_build_alias" && 4806 ac_cv_build_alias=`$ac_config_guess` 4807test -z "$ac_cv_build_alias" && 4808 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 4809echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 4810 { (exit 1); exit 1; }; } 4811ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 4812 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 4813echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 4814 { (exit 1); exit 1; }; } 4815 4816fi 4817echo "$as_me:$LINENO: result: $ac_cv_build" >&5 4818echo "${ECHO_T}$ac_cv_build" >&6 4819build=$ac_cv_build 4820build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 4821build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 4822build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 4823 4824 4825echo "$as_me:$LINENO: checking host system type" >&5 4826echo $ECHO_N "checking host system type... $ECHO_C" >&6 4827if test "${ac_cv_host+set}" = set; then 4828 echo $ECHO_N "(cached) $ECHO_C" >&6 4829else 4830 ac_cv_host_alias=$host_alias 4831test -z "$ac_cv_host_alias" && 4832 ac_cv_host_alias=$ac_cv_build_alias 4833ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 4834 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 4835echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 4836 { (exit 1); exit 1; }; } 4837 4838fi 4839echo "$as_me:$LINENO: result: $ac_cv_host" >&5 4840echo "${ECHO_T}$ac_cv_host" >&6 4841host=$ac_cv_host 4842host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 4843host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 4844host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 4845 4846 4847echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 4848echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 4849if test "${lt_cv_path_SED+set}" = set; then 4850 echo $ECHO_N "(cached) $ECHO_C" >&6 4851else 4852 # Loop through the user's path and test for sed and gsed. 4853# Then use that list of sed's as ones to test for truncation. 4854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4855for as_dir in $PATH 4856do 4857 IFS=$as_save_IFS 4858 test -z "$as_dir" && as_dir=. 4859 for lt_ac_prog in sed gsed; do 4860 for ac_exec_ext in '' $ac_executable_extensions; do 4861 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 4862 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 4863 fi 4864 done 4865 done 4866done 4867lt_ac_max=0 4868lt_ac_count=0 4869# Add /usr/xpg4/bin/sed as it is typically found on Solaris 4870# along with /bin/sed that truncates output. 4871for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 4872 test ! -f $lt_ac_sed && break 4873 cat /dev/null > conftest.in 4874 lt_ac_count=0 4875 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 4876 # Check for GNU sed and select it if it is found. 4877 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 4878 lt_cv_path_SED=$lt_ac_sed 4879 break 4880 fi 4881 while true; do 4882 cat conftest.in conftest.in >conftest.tmp 4883 mv conftest.tmp conftest.in 4884 cp conftest.in conftest.nl 4885 echo >>conftest.nl 4886 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 4887 cmp -s conftest.out conftest.nl || break 4888 # 10000 chars as input seems more than enough 4889 test $lt_ac_count -gt 10 && break 4890 lt_ac_count=`expr $lt_ac_count + 1` 4891 if test $lt_ac_count -gt $lt_ac_max; then 4892 lt_ac_max=$lt_ac_count 4893 lt_cv_path_SED=$lt_ac_sed 4894 fi 4895 done 4896done 4897SED=$lt_cv_path_SED 4898 4899fi 4900 4901echo "$as_me:$LINENO: result: $SED" >&5 4902echo "${ECHO_T}$SED" >&6 4903 4904 4905# Check whether --with-gnu-ld or --without-gnu-ld was given. 4906if test "${with_gnu_ld+set}" = set; then 4907 withval="$with_gnu_ld" 4908 test "$withval" = no || with_gnu_ld=yes 4909else 4910 with_gnu_ld=no 4911fi; 4912ac_prog=ld 4913if test "$GCC" = yes; then 4914 # Check if gcc -print-prog-name=ld gives a path. 4915 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4916echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 4917 case $host in 4918 *-*-mingw*) 4919 # gcc leaves a trailing carriage return which upsets mingw 4920 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4921 *) 4922 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4923 esac 4924 case $ac_prog in 4925 # Accept absolute paths. 4926 [\\/]* | ?:[\\/]*) 4927 re_direlt='/[^/][^/]*/\.\./' 4928 # Canonicalize the pathname of ld 4929 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4930 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4931 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4932 done 4933 test -z "$LD" && LD="$ac_prog" 4934 ;; 4935 "") 4936 # If it fails, then pretend we aren't using GCC. 4937 ac_prog=ld 4938 ;; 4939 *) 4940 # If it is relative, then search for the first ld in PATH. 4941 with_gnu_ld=unknown 4942 ;; 4943 esac 4944elif test "$with_gnu_ld" = yes; then 4945 echo "$as_me:$LINENO: checking for GNU ld" >&5 4946echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 4947else 4948 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4949echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 4950fi 4951if test "${lt_cv_path_LD+set}" = set; then 4952 echo $ECHO_N "(cached) $ECHO_C" >&6 4953else 4954 if test -z "$LD"; then 4955 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4956 for ac_dir in $PATH; do 4957 IFS="$lt_save_ifs" 4958 test -z "$ac_dir" && ac_dir=. 4959 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4960 lt_cv_path_LD="$ac_dir/$ac_prog" 4961 # Check to see if the program is GNU ld. I'd rather use --version, 4962 # but apparently some GNU ld's only accept -v. 4963 # Break only if it was the GNU/non-GNU ld that we prefer. 4964 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4965 *GNU* | *'with BFD'*) 4966 test "$with_gnu_ld" != no && break 4967 ;; 4968 *) 4969 test "$with_gnu_ld" != yes && break 4970 ;; 4971 esac 4972 fi 4973 done 4974 IFS="$lt_save_ifs" 4975else 4976 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4977fi 4978fi 4979 4980LD="$lt_cv_path_LD" 4981if test -n "$LD"; then 4982 echo "$as_me:$LINENO: result: $LD" >&5 4983echo "${ECHO_T}$LD" >&6 4984else 4985 echo "$as_me:$LINENO: result: no" >&5 4986echo "${ECHO_T}no" >&6 4987fi 4988test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4989echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4990 { (exit 1); exit 1; }; } 4991echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4992echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 4993if test "${lt_cv_prog_gnu_ld+set}" = set; then 4994 echo $ECHO_N "(cached) $ECHO_C" >&6 4995else 4996 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 4997case `$LD -v 2>&1 </dev/null` in 4998*GNU* | *'with BFD'*) 4999 lt_cv_prog_gnu_ld=yes 5000 ;; 5001*) 5002 lt_cv_prog_gnu_ld=no 5003 ;; 5004esac 5005fi 5006echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 5007echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 5008with_gnu_ld=$lt_cv_prog_gnu_ld 5009 5010 5011echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 5012echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 5013if test "${lt_cv_ld_reload_flag+set}" = set; then 5014 echo $ECHO_N "(cached) $ECHO_C" >&6 5015else 5016 lt_cv_ld_reload_flag='-r' 5017fi 5018echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 5019echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 5020reload_flag=$lt_cv_ld_reload_flag 5021case $reload_flag in 5022"" | " "*) ;; 5023*) reload_flag=" $reload_flag" ;; 5024esac 5025reload_cmds='$LD$reload_flag -o $output$reload_objs' 5026 5027echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 5028echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 5029if test "${lt_cv_path_NM+set}" = set; then 5030 echo $ECHO_N "(cached) $ECHO_C" >&6 5031else 5032 if test -n "$NM"; then 5033 # Let the user override the test. 5034 lt_cv_path_NM="$NM" 5035else 5036 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5037 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 5038 IFS="$lt_save_ifs" 5039 test -z "$ac_dir" && ac_dir=. 5040 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 5041 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5042 # Check to see if the nm accepts a BSD-compat flag. 5043 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5044 # nm: unknown option "B" ignored 5045 # Tru64's nm complains that /dev/null is an invalid object file 5046 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5047 */dev/null* | *'Invalid file or object type'*) 5048 lt_cv_path_NM="$tmp_nm -B" 5049 break 5050 ;; 5051 *) 5052 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5053 */dev/null*) 5054 lt_cv_path_NM="$tmp_nm -p" 5055 break 5056 ;; 5057 *) 5058 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5059 continue # so that we can try to find one that supports BSD flags 5060 ;; 5061 esac 5062 esac 5063 fi 5064 done 5065 IFS="$lt_save_ifs" 5066 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 5067fi 5068fi 5069echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 5070echo "${ECHO_T}$lt_cv_path_NM" >&6 5071NM="$lt_cv_path_NM" 5072 5073echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 5074echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 5075if test "${lt_cv_deplibs_check_method+set}" = set; then 5076 echo $ECHO_N "(cached) $ECHO_C" >&6 5077else 5078 lt_cv_file_magic_cmd='$MAGIC_CMD' 5079lt_cv_file_magic_test_file= 5080lt_cv_deplibs_check_method='unknown' 5081# Need to set the preceding variable on all platforms that support 5082# interlibrary dependencies. 5083# 'none' -- dependencies not supported. 5084# `unknown' -- same as none, but documents that we really don't know. 5085# 'pass_all' -- all dependencies passed with no checks. 5086# 'test_compile' -- check by making test program. 5087# 'file_magic [[regex]]' -- check by looking for files in library path 5088# which responds to the $file_magic_cmd with a given extended regex. 5089# If you have `file' or equivalent on your system and you're not sure 5090# whether `pass_all' will *always* work, you probably want this one. 5091 5092case $host_os in 5093aix4* | aix5*) 5094 lt_cv_deplibs_check_method=pass_all 5095 ;; 5096 5097beos*) 5098 lt_cv_deplibs_check_method=pass_all 5099 ;; 5100 5101bsdi4*) 5102 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5103 lt_cv_file_magic_cmd='/usr/bin/file -L' 5104 lt_cv_file_magic_test_file=/shlib/libc.so 5105 ;; 5106 5107cygwin*) 5108 # func_win32_libid is a shell function defined in ltmain.sh 5109 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5110 lt_cv_file_magic_cmd='func_win32_libid' 5111 ;; 5112 5113mingw* | pw32*) 5114 # Base MSYS/MinGW do not provide the 'file' command needed by 5115 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 5116 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5117 lt_cv_file_magic_cmd='$OBJDUMP -f' 5118 ;; 5119 5120darwin* | rhapsody*) 5121 lt_cv_deplibs_check_method=pass_all 5122 ;; 5123 5124freebsd* | kfreebsd*-gnu) 5125 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 5126 case $host_cpu in 5127 i*86 ) 5128 # Not sure whether the presence of OpenBSD here was a mistake. 5129 # Let's accept both of them until this is cleared up. 5130 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 5131 lt_cv_file_magic_cmd=/usr/bin/file 5132 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5133 ;; 5134 esac 5135 else 5136 lt_cv_deplibs_check_method=pass_all 5137 fi 5138 ;; 5139 5140gnu*) 5141 lt_cv_deplibs_check_method=pass_all 5142 ;; 5143 5144hpux10.20* | hpux11*) 5145 lt_cv_file_magic_cmd=/usr/bin/file 5146 case "$host_cpu" in 5147 ia64*) 5148 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5149 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5150 ;; 5151 hppa*64*) 5152 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' 5153 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5154 ;; 5155 *) 5156 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 5157 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5158 ;; 5159 esac 5160 ;; 5161 5162irix5* | irix6* | nonstopux*) 5163 case $LD in 5164 *-32|*"-32 ") libmagic=32-bit;; 5165 *-n32|*"-n32 ") libmagic=N32;; 5166 *-64|*"-64 ") libmagic=64-bit;; 5167 *) libmagic=never-match;; 5168 esac 5169 lt_cv_deplibs_check_method=pass_all 5170 ;; 5171 5172# This must be Linux ELF. 5173linux*) 5174 lt_cv_deplibs_check_method=pass_all 5175 ;; 5176 5177netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 5178 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 5179 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5180 else 5181 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5182 fi 5183 ;; 5184 5185newos6*) 5186 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5187 lt_cv_file_magic_cmd=/usr/bin/file 5188 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5189 ;; 5190 5191nto-qnx*) 5192 lt_cv_deplibs_check_method=unknown 5193 ;; 5194 5195openbsd*) 5196 lt_cv_file_magic_cmd=/usr/bin/file 5197 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5198 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5199 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 5200 else 5201 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 5202 fi 5203 ;; 5204 5205osf3* | osf4* | osf5*) 5206 lt_cv_deplibs_check_method=pass_all 5207 ;; 5208 5209sco3.2v5*) 5210 lt_cv_deplibs_check_method=pass_all 5211 ;; 5212 5213solaris*) 5214 lt_cv_deplibs_check_method=pass_all 5215 ;; 5216 5217sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 5218 case $host_vendor in 5219 motorola) 5220 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]' 5221 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5222 ;; 5223 ncr) 5224 lt_cv_deplibs_check_method=pass_all 5225 ;; 5226 sequent) 5227 lt_cv_file_magic_cmd='/bin/file' 5228 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5229 ;; 5230 sni) 5231 lt_cv_file_magic_cmd='/bin/file' 5232 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5233 lt_cv_file_magic_test_file=/lib/libc.so 5234 ;; 5235 siemens) 5236 lt_cv_deplibs_check_method=pass_all 5237 ;; 5238 esac 5239 ;; 5240 5241sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 5242 lt_cv_deplibs_check_method=pass_all 5243 ;; 5244esac 5245 5246fi 5247echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 5248echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 5249file_magic_cmd=$lt_cv_file_magic_cmd 5250deplibs_check_method=$lt_cv_deplibs_check_method 5251test -z "$deplibs_check_method" && deplibs_check_method=unknown 5252 5253 5254 5255 5256# If no C compiler was specified, use CC. 5257LTCC=${LTCC-"$CC"} 5258 5259# Allow CC to be a program name with arguments. 5260compiler=$CC 5261 5262# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 5263if test "${enable_libtool_lock+set}" = set; then 5264 enableval="$enable_libtool_lock" 5265 5266fi; 5267test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5268 5269# Some flags need to be propagated to the compiler or linker for good 5270# libtool support. 5271case $host in 5272ia64-*-hpux*) 5273 # Find out which ABI we are using. 5274 echo 'int i;' > conftest.$ac_ext 5275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5276 (eval $ac_compile) 2>&5 5277 ac_status=$? 5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5279 (exit $ac_status); }; then 5280 case `/usr/bin/file conftest.$ac_objext` in 5281 *ELF-32*) 5282 HPUX_IA64_MODE="32" 5283 ;; 5284 *ELF-64*) 5285 HPUX_IA64_MODE="64" 5286 ;; 5287 esac 5288 fi 5289 rm -rf conftest* 5290 ;; 5291*-*-irix6*) 5292 # Find out which ABI we are using. 5293 echo '#line 5293 "configure"' > conftest.$ac_ext 5294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5295 (eval $ac_compile) 2>&5 5296 ac_status=$? 5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5298 (exit $ac_status); }; then 5299 if test "$lt_cv_prog_gnu_ld" = yes; then 5300 case `/usr/bin/file conftest.$ac_objext` in 5301 *32-bit*) 5302 LD="${LD-ld} -melf32bsmip" 5303 ;; 5304 *N32*) 5305 LD="${LD-ld} -melf32bmipn32" 5306 ;; 5307 *64-bit*) 5308 LD="${LD-ld} -melf64bmip" 5309 ;; 5310 esac 5311 else 5312 case `/usr/bin/file conftest.$ac_objext` in 5313 *32-bit*) 5314 LD="${LD-ld} -32" 5315 ;; 5316 *N32*) 5317 LD="${LD-ld} -n32" 5318 ;; 5319 *64-bit*) 5320 LD="${LD-ld} -64" 5321 ;; 5322 esac 5323 fi 5324 fi 5325 rm -rf conftest* 5326 ;; 5327 5328x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 5329 # Find out which ABI we are using. 5330 echo 'int i;' > conftest.$ac_ext 5331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5332 (eval $ac_compile) 2>&5 5333 ac_status=$? 5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5335 (exit $ac_status); }; then 5336 case "`/usr/bin/file conftest.o`" in 5337 *32-bit*) 5338 case $host in 5339 x86_64-*linux*) 5340 LD="${LD-ld} -m elf_i386" 5341 ;; 5342 ppc64-*linux*|powerpc64-*linux*) 5343 LD="${LD-ld} -m elf32ppclinux" 5344 ;; 5345 s390x-*linux*) 5346 LD="${LD-ld} -m elf_s390" 5347 ;; 5348 sparc64-*linux*) 5349 LD="${LD-ld} -m elf32_sparc" 5350 ;; 5351 esac 5352 ;; 5353 *64-bit*) 5354 case $host in 5355 x86_64-*linux*) 5356 LD="${LD-ld} -m elf_x86_64" 5357 ;; 5358 ppc*-*linux*|powerpc*-*linux*) 5359 LD="${LD-ld} -m elf64ppc" 5360 ;; 5361 s390*-*linux*) 5362 LD="${LD-ld} -m elf64_s390" 5363 ;; 5364 sparc*-*linux*) 5365 LD="${LD-ld} -m elf64_sparc" 5366 ;; 5367 esac 5368 ;; 5369 esac 5370 fi 5371 rm -rf conftest* 5372 ;; 5373 5374*-*-sco3.2v5*) 5375 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5376 SAVE_CFLAGS="$CFLAGS" 5377 CFLAGS="$CFLAGS -belf" 5378 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5379echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 5380if test "${lt_cv_cc_needs_belf+set}" = set; then 5381 echo $ECHO_N "(cached) $ECHO_C" >&6 5382else 5383 ac_ext=c 5384ac_cpp='$CPP $CPPFLAGS' 5385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5387ac_compiler_gnu=$ac_cv_c_compiler_gnu 5388 5389 cat >conftest.$ac_ext <<_ACEOF 5390/* confdefs.h. */ 5391_ACEOF 5392cat confdefs.h >>conftest.$ac_ext 5393cat >>conftest.$ac_ext <<_ACEOF 5394/* end confdefs.h. */ 5395 5396int 5397main () 5398{ 5399 5400 ; 5401 return 0; 5402} 5403_ACEOF 5404rm -f conftest.$ac_objext conftest$ac_exeext 5405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5406 (eval $ac_link) 2>conftest.er1 5407 ac_status=$? 5408 grep -v '^ *+' conftest.er1 >conftest.err 5409 rm -f conftest.er1 5410 cat conftest.err >&5 5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5412 (exit $ac_status); } && 5413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5415 (eval $ac_try) 2>&5 5416 ac_status=$? 5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5418 (exit $ac_status); }; } && 5419 { ac_try='test -s conftest$ac_exeext' 5420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5421 (eval $ac_try) 2>&5 5422 ac_status=$? 5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5424 (exit $ac_status); }; }; then 5425 lt_cv_cc_needs_belf=yes 5426else 5427 echo "$as_me: failed program was:" >&5 5428sed 's/^/| /' conftest.$ac_ext >&5 5429 5430lt_cv_cc_needs_belf=no 5431fi 5432rm -f conftest.err conftest.$ac_objext \ 5433 conftest$ac_exeext conftest.$ac_ext 5434 ac_ext=c 5435ac_cpp='$CPP $CPPFLAGS' 5436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5438ac_compiler_gnu=$ac_cv_c_compiler_gnu 5439 5440fi 5441echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5442echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 5443 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5444 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5445 CFLAGS="$SAVE_CFLAGS" 5446 fi 5447 ;; 5448 5449esac 5450 5451need_locks="$enable_libtool_lock" 5452 5453 5454 5455for ac_header in dlfcn.h 5456do 5457as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5458if eval "test \"\${$as_ac_Header+set}\" = set"; then 5459 echo "$as_me:$LINENO: checking for $ac_header" >&5 5460echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5461if eval "test \"\${$as_ac_Header+set}\" = set"; then 5462 echo $ECHO_N "(cached) $ECHO_C" >&6 5463fi 5464echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5465echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5466else 5467 # Is the header compilable? 5468echo "$as_me:$LINENO: checking $ac_header usability" >&5 5469echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5470cat >conftest.$ac_ext <<_ACEOF 5471/* confdefs.h. */ 5472_ACEOF 5473cat confdefs.h >>conftest.$ac_ext 5474cat >>conftest.$ac_ext <<_ACEOF 5475/* end confdefs.h. */ 5476$ac_includes_default 5477#include <$ac_header> 5478_ACEOF 5479rm -f conftest.$ac_objext 5480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5481 (eval $ac_compile) 2>conftest.er1 5482 ac_status=$? 5483 grep -v '^ *+' conftest.er1 >conftest.err 5484 rm -f conftest.er1 5485 cat conftest.err >&5 5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5487 (exit $ac_status); } && 5488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5490 (eval $ac_try) 2>&5 5491 ac_status=$? 5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5493 (exit $ac_status); }; } && 5494 { ac_try='test -s conftest.$ac_objext' 5495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5496 (eval $ac_try) 2>&5 5497 ac_status=$? 5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5499 (exit $ac_status); }; }; then 5500 ac_header_compiler=yes 5501else 5502 echo "$as_me: failed program was:" >&5 5503sed 's/^/| /' conftest.$ac_ext >&5 5504 5505ac_header_compiler=no 5506fi 5507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5508echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5509echo "${ECHO_T}$ac_header_compiler" >&6 5510 5511# Is the header present? 5512echo "$as_me:$LINENO: checking $ac_header presence" >&5 5513echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5514cat >conftest.$ac_ext <<_ACEOF 5515/* confdefs.h. */ 5516_ACEOF 5517cat confdefs.h >>conftest.$ac_ext 5518cat >>conftest.$ac_ext <<_ACEOF 5519/* end confdefs.h. */ 5520#include <$ac_header> 5521_ACEOF 5522if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5524 ac_status=$? 5525 grep -v '^ *+' conftest.er1 >conftest.err 5526 rm -f conftest.er1 5527 cat conftest.err >&5 5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5529 (exit $ac_status); } >/dev/null; then 5530 if test -s conftest.err; then 5531 ac_cpp_err=$ac_c_preproc_warn_flag 5532 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5533 else 5534 ac_cpp_err= 5535 fi 5536else 5537 ac_cpp_err=yes 5538fi 5539if test -z "$ac_cpp_err"; then 5540 ac_header_preproc=yes 5541else 5542 echo "$as_me: failed program was:" >&5 5543sed 's/^/| /' conftest.$ac_ext >&5 5544 5545 ac_header_preproc=no 5546fi 5547rm -f conftest.err conftest.$ac_ext 5548echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5549echo "${ECHO_T}$ac_header_preproc" >&6 5550 5551# So? What about this header? 5552case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5553 yes:no: ) 5554 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5555echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5557echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5558 ac_header_preproc=yes 5559 ;; 5560 no:yes:* ) 5561 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5562echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5563 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5564echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5565 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5566echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5567 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5568echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5570echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5571 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5572echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5573 ( 5574 cat <<\_ASBOX 5575## ------------------------------------------ ## 5576## Report this to the AC_PACKAGE_NAME lists. ## 5577## ------------------------------------------ ## 5578_ASBOX 5579 ) | 5580 sed "s/^/$as_me: WARNING: /" >&2 5581 ;; 5582esac 5583echo "$as_me:$LINENO: checking for $ac_header" >&5 5584echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5585if eval "test \"\${$as_ac_Header+set}\" = set"; then 5586 echo $ECHO_N "(cached) $ECHO_C" >&6 5587else 5588 eval "$as_ac_Header=\$ac_header_preproc" 5589fi 5590echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5591echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5592 5593fi 5594if test `eval echo '${'$as_ac_Header'}'` = yes; then 5595 cat >>confdefs.h <<_ACEOF 5596#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5597_ACEOF 5598 5599fi 5600 5601done 5602 5603ac_ext=cc 5604ac_cpp='$CXXCPP $CPPFLAGS' 5605ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5606ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5607ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5608if test -n "$ac_tool_prefix"; then 5609 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 5610 do 5611 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5612set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5613echo "$as_me:$LINENO: checking for $ac_word" >&5 5614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5615if test "${ac_cv_prog_CXX+set}" = set; then 5616 echo $ECHO_N "(cached) $ECHO_C" >&6 5617else 5618 if test -n "$CXX"; then 5619 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5620else 5621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5622for as_dir in $PATH 5623do 5624 IFS=$as_save_IFS 5625 test -z "$as_dir" && as_dir=. 5626 for ac_exec_ext in '' $ac_executable_extensions; do 5627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5628 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5630 break 2 5631 fi 5632done 5633done 5634 5635fi 5636fi 5637CXX=$ac_cv_prog_CXX 5638if test -n "$CXX"; then 5639 echo "$as_me:$LINENO: result: $CXX" >&5 5640echo "${ECHO_T}$CXX" >&6 5641else 5642 echo "$as_me:$LINENO: result: no" >&5 5643echo "${ECHO_T}no" >&6 5644fi 5645 5646 test -n "$CXX" && break 5647 done 5648fi 5649if test -z "$CXX"; then 5650 ac_ct_CXX=$CXX 5651 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 5652do 5653 # Extract the first word of "$ac_prog", so it can be a program name with args. 5654set dummy $ac_prog; ac_word=$2 5655echo "$as_me:$LINENO: checking for $ac_word" >&5 5656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5657if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5658 echo $ECHO_N "(cached) $ECHO_C" >&6 5659else 5660 if test -n "$ac_ct_CXX"; then 5661 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5662else 5663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5664for as_dir in $PATH 5665do 5666 IFS=$as_save_IFS 5667 test -z "$as_dir" && as_dir=. 5668 for ac_exec_ext in '' $ac_executable_extensions; do 5669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5670 ac_cv_prog_ac_ct_CXX="$ac_prog" 5671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5672 break 2 5673 fi 5674done 5675done 5676 5677fi 5678fi 5679ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5680if test -n "$ac_ct_CXX"; then 5681 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5682echo "${ECHO_T}$ac_ct_CXX" >&6 5683else 5684 echo "$as_me:$LINENO: result: no" >&5 5685echo "${ECHO_T}no" >&6 5686fi 5687 5688 test -n "$ac_ct_CXX" && break 5689done 5690test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 5691 5692 CXX=$ac_ct_CXX 5693fi 5694 5695 5696# Provide some information about the compiler. 5697echo "$as_me:$LINENO:" \ 5698 "checking for C++ compiler version" >&5 5699ac_compiler=`set X $ac_compile; echo $2` 5700{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5701 (eval $ac_compiler --version </dev/null >&5) 2>&5 5702 ac_status=$? 5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5704 (exit $ac_status); } 5705{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5706 (eval $ac_compiler -v </dev/null >&5) 2>&5 5707 ac_status=$? 5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5709 (exit $ac_status); } 5710{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5711 (eval $ac_compiler -V </dev/null >&5) 2>&5 5712 ac_status=$? 5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5714 (exit $ac_status); } 5715 5716echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5717echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 5718if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5719 echo $ECHO_N "(cached) $ECHO_C" >&6 5720else 5721 cat >conftest.$ac_ext <<_ACEOF 5722/* confdefs.h. */ 5723_ACEOF 5724cat confdefs.h >>conftest.$ac_ext 5725cat >>conftest.$ac_ext <<_ACEOF 5726/* end confdefs.h. */ 5727 5728int 5729main () 5730{ 5731#ifndef __GNUC__ 5732 choke me 5733#endif 5734 5735 ; 5736 return 0; 5737} 5738_ACEOF 5739rm -f conftest.$ac_objext 5740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5741 (eval $ac_compile) 2>conftest.er1 5742 ac_status=$? 5743 grep -v '^ *+' conftest.er1 >conftest.err 5744 rm -f conftest.er1 5745 cat conftest.err >&5 5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5747 (exit $ac_status); } && 5748 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5750 (eval $ac_try) 2>&5 5751 ac_status=$? 5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5753 (exit $ac_status); }; } && 5754 { ac_try='test -s conftest.$ac_objext' 5755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5756 (eval $ac_try) 2>&5 5757 ac_status=$? 5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5759 (exit $ac_status); }; }; then 5760 ac_compiler_gnu=yes 5761else 5762 echo "$as_me: failed program was:" >&5 5763sed 's/^/| /' conftest.$ac_ext >&5 5764 5765ac_compiler_gnu=no 5766fi 5767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5768ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5769 5770fi 5771echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5772echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 5773GXX=`test $ac_compiler_gnu = yes && echo yes` 5774ac_test_CXXFLAGS=${CXXFLAGS+set} 5775ac_save_CXXFLAGS=$CXXFLAGS 5776CXXFLAGS="-g" 5777echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5778echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 5779if test "${ac_cv_prog_cxx_g+set}" = set; then 5780 echo $ECHO_N "(cached) $ECHO_C" >&6 5781else 5782 cat >conftest.$ac_ext <<_ACEOF 5783/* confdefs.h. */ 5784_ACEOF 5785cat confdefs.h >>conftest.$ac_ext 5786cat >>conftest.$ac_ext <<_ACEOF 5787/* end confdefs.h. */ 5788 5789int 5790main () 5791{ 5792 5793 ; 5794 return 0; 5795} 5796_ACEOF 5797rm -f conftest.$ac_objext 5798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5799 (eval $ac_compile) 2>conftest.er1 5800 ac_status=$? 5801 grep -v '^ *+' conftest.er1 >conftest.err 5802 rm -f conftest.er1 5803 cat conftest.err >&5 5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5805 (exit $ac_status); } && 5806 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5808 (eval $ac_try) 2>&5 5809 ac_status=$? 5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5811 (exit $ac_status); }; } && 5812 { ac_try='test -s conftest.$ac_objext' 5813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5814 (eval $ac_try) 2>&5 5815 ac_status=$? 5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5817 (exit $ac_status); }; }; then 5818 ac_cv_prog_cxx_g=yes 5819else 5820 echo "$as_me: failed program was:" >&5 5821sed 's/^/| /' conftest.$ac_ext >&5 5822 5823ac_cv_prog_cxx_g=no 5824fi 5825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5826fi 5827echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5828echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 5829if test "$ac_test_CXXFLAGS" = set; then 5830 CXXFLAGS=$ac_save_CXXFLAGS 5831elif test $ac_cv_prog_cxx_g = yes; then 5832 if test "$GXX" = yes; then 5833 CXXFLAGS="-g -O2" 5834 else 5835 CXXFLAGS="-g" 5836 fi 5837else 5838 if test "$GXX" = yes; then 5839 CXXFLAGS="-O2" 5840 else 5841 CXXFLAGS= 5842 fi 5843fi 5844for ac_declaration in \ 5845 '' \ 5846 'extern "C" void std::exit (int) throw (); using std::exit;' \ 5847 'extern "C" void std::exit (int); using std::exit;' \ 5848 'extern "C" void exit (int) throw ();' \ 5849 'extern "C" void exit (int);' \ 5850 'void exit (int);' 5851do 5852 cat >conftest.$ac_ext <<_ACEOF 5853/* confdefs.h. */ 5854_ACEOF 5855cat confdefs.h >>conftest.$ac_ext 5856cat >>conftest.$ac_ext <<_ACEOF 5857/* end confdefs.h. */ 5858$ac_declaration 5859#include <stdlib.h> 5860int 5861main () 5862{ 5863exit (42); 5864 ; 5865 return 0; 5866} 5867_ACEOF 5868rm -f conftest.$ac_objext 5869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5870 (eval $ac_compile) 2>conftest.er1 5871 ac_status=$? 5872 grep -v '^ *+' conftest.er1 >conftest.err 5873 rm -f conftest.er1 5874 cat conftest.err >&5 5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5876 (exit $ac_status); } && 5877 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5879 (eval $ac_try) 2>&5 5880 ac_status=$? 5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5882 (exit $ac_status); }; } && 5883 { ac_try='test -s conftest.$ac_objext' 5884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5885 (eval $ac_try) 2>&5 5886 ac_status=$? 5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5888 (exit $ac_status); }; }; then 5889 : 5890else 5891 echo "$as_me: failed program was:" >&5 5892sed 's/^/| /' conftest.$ac_ext >&5 5893 5894continue 5895fi 5896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5897 cat >conftest.$ac_ext <<_ACEOF 5898/* confdefs.h. */ 5899_ACEOF 5900cat confdefs.h >>conftest.$ac_ext 5901cat >>conftest.$ac_ext <<_ACEOF 5902/* end confdefs.h. */ 5903$ac_declaration 5904int 5905main () 5906{ 5907exit (42); 5908 ; 5909 return 0; 5910} 5911_ACEOF 5912rm -f conftest.$ac_objext 5913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5914 (eval $ac_compile) 2>conftest.er1 5915 ac_status=$? 5916 grep -v '^ *+' conftest.er1 >conftest.err 5917 rm -f conftest.er1 5918 cat conftest.err >&5 5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5920 (exit $ac_status); } && 5921 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5923 (eval $ac_try) 2>&5 5924 ac_status=$? 5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5926 (exit $ac_status); }; } && 5927 { ac_try='test -s conftest.$ac_objext' 5928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5929 (eval $ac_try) 2>&5 5930 ac_status=$? 5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5932 (exit $ac_status); }; }; then 5933 break 5934else 5935 echo "$as_me: failed program was:" >&5 5936sed 's/^/| /' conftest.$ac_ext >&5 5937 5938fi 5939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5940done 5941rm -f conftest* 5942if test -n "$ac_declaration"; then 5943 echo '#ifdef __cplusplus' >>confdefs.h 5944 echo $ac_declaration >>confdefs.h 5945 echo '#endif' >>confdefs.h 5946fi 5947 5948ac_ext=cc 5949ac_cpp='$CXXCPP $CPPFLAGS' 5950ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5951ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5952ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5953 5954depcc="$CXX" am_compiler_list= 5955 5956echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5957echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 5958if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5959 echo $ECHO_N "(cached) $ECHO_C" >&6 5960else 5961 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5962 # We make a subdir and do the tests there. Otherwise we can end up 5963 # making bogus files that we don't know about and never remove. For 5964 # instance it was reported that on HP-UX the gcc test will end up 5965 # making a dummy file named `D' -- because `-MD' means `put the output 5966 # in D'. 5967 mkdir conftest.dir 5968 # Copy depcomp to subdir because otherwise we won't find it if we're 5969 # using a relative directory. 5970 cp "$am_depcomp" conftest.dir 5971 cd conftest.dir 5972 # We will build objects and dependencies in a subdirectory because 5973 # it helps to detect inapplicable dependency modes. For instance 5974 # both Tru64's cc and ICC support -MD to output dependencies as a 5975 # side effect of compilation, but ICC will put the dependencies in 5976 # the current directory while Tru64 will put them in the object 5977 # directory. 5978 mkdir sub 5979 5980 am_cv_CXX_dependencies_compiler_type=none 5981 if test "$am_compiler_list" = ""; then 5982 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5983 fi 5984 for depmode in $am_compiler_list; do 5985 # Setup a source with many dependencies, because some compilers 5986 # like to wrap large dependency lists on column 80 (with \), and 5987 # we should not choose a depcomp mode which is confused by this. 5988 # 5989 # We need to recreate these files for each test, as the compiler may 5990 # overwrite some of them when testing with obscure command lines. 5991 # This happens at least with the AIX C compiler. 5992 : > sub/conftest.c 5993 for i in 1 2 3 4 5 6; do 5994 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5995 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5996 # Solaris 8's {/usr,}/bin/sh. 5997 touch sub/conftst$i.h 5998 done 5999 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6000 6001 case $depmode in 6002 nosideeffect) 6003 # after this tag, mechanisms are not by side-effect, so they'll 6004 # only be used when explicitly requested 6005 if test "x$enable_dependency_tracking" = xyes; then 6006 continue 6007 else 6008 break 6009 fi 6010 ;; 6011 none) break ;; 6012 esac 6013 # We check with `-c' and `-o' for the sake of the "dashmstdout" 6014 # mode. It turns out that the SunPro C++ compiler does not properly 6015 # handle `-M -o', and we need to detect this. 6016 if depmode=$depmode \ 6017 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 6018 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6019 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 6020 >/dev/null 2>conftest.err && 6021 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6022 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 6023 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6024 # icc doesn't choke on unknown options, it will just issue warnings 6025 # or remarks (even with -Werror). So we grep stderr for any message 6026 # that says an option was ignored or not supported. 6027 # When given -MP, icc 7.0 and 7.1 complain thusly: 6028 # icc: Command line warning: ignoring option '-M'; no argument required 6029 # The diagnosis changed in icc 8.0: 6030 # icc: Command line remark: option '-MP' not supported 6031 if (grep 'ignoring option' conftest.err || 6032 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6033 am_cv_CXX_dependencies_compiler_type=$depmode 6034 break 6035 fi 6036 fi 6037 done 6038 6039 cd .. 6040 rm -rf conftest.dir 6041else 6042 am_cv_CXX_dependencies_compiler_type=none 6043fi 6044 6045fi 6046echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 6047echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 6048CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 6049 6050 6051 6052if 6053 test "x$enable_dependency_tracking" != xno \ 6054 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 6055 am__fastdepCXX_TRUE= 6056 am__fastdepCXX_FALSE='#' 6057else 6058 am__fastdepCXX_TRUE='#' 6059 am__fastdepCXX_FALSE= 6060fi 6061 6062 6063ac_ext=cc 6064ac_cpp='$CXXCPP $CPPFLAGS' 6065ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6066ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6067ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6068echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 6069echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 6070if test -z "$CXXCPP"; then 6071 if test "${ac_cv_prog_CXXCPP+set}" = set; then 6072 echo $ECHO_N "(cached) $ECHO_C" >&6 6073else 6074 # Double quotes because CXXCPP needs to be expanded 6075 for CXXCPP in "$CXX -E" "/lib/cpp" 6076 do 6077 ac_preproc_ok=false 6078for ac_cxx_preproc_warn_flag in '' yes 6079do 6080 # Use a header file that comes with gcc, so configuring glibc 6081 # with a fresh cross-compiler works. 6082 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6083 # <limits.h> exists even on freestanding compilers. 6084 # On the NeXT, cc -E runs the code through the compiler's parser, 6085 # not just through cpp. "Syntax error" is here to catch this case. 6086 cat >conftest.$ac_ext <<_ACEOF 6087/* confdefs.h. */ 6088_ACEOF 6089cat confdefs.h >>conftest.$ac_ext 6090cat >>conftest.$ac_ext <<_ACEOF 6091/* end confdefs.h. */ 6092#ifdef __STDC__ 6093# include <limits.h> 6094#else 6095# include <assert.h> 6096#endif 6097 Syntax error 6098_ACEOF 6099if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6101 ac_status=$? 6102 grep -v '^ *+' conftest.er1 >conftest.err 6103 rm -f conftest.er1 6104 cat conftest.err >&5 6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6106 (exit $ac_status); } >/dev/null; then 6107 if test -s conftest.err; then 6108 ac_cpp_err=$ac_cxx_preproc_warn_flag 6109 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6110 else 6111 ac_cpp_err= 6112 fi 6113else 6114 ac_cpp_err=yes 6115fi 6116if test -z "$ac_cpp_err"; then 6117 : 6118else 6119 echo "$as_me: failed program was:" >&5 6120sed 's/^/| /' conftest.$ac_ext >&5 6121 6122 # Broken: fails on valid input. 6123continue 6124fi 6125rm -f conftest.err conftest.$ac_ext 6126 6127 # OK, works on sane cases. Now check whether non-existent headers 6128 # can be detected and how. 6129 cat >conftest.$ac_ext <<_ACEOF 6130/* confdefs.h. */ 6131_ACEOF 6132cat confdefs.h >>conftest.$ac_ext 6133cat >>conftest.$ac_ext <<_ACEOF 6134/* end confdefs.h. */ 6135#include <ac_nonexistent.h> 6136_ACEOF 6137if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6139 ac_status=$? 6140 grep -v '^ *+' conftest.er1 >conftest.err 6141 rm -f conftest.er1 6142 cat conftest.err >&5 6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6144 (exit $ac_status); } >/dev/null; then 6145 if test -s conftest.err; then 6146 ac_cpp_err=$ac_cxx_preproc_warn_flag 6147 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6148 else 6149 ac_cpp_err= 6150 fi 6151else 6152 ac_cpp_err=yes 6153fi 6154if test -z "$ac_cpp_err"; then 6155 # Broken: success on invalid input. 6156continue 6157else 6158 echo "$as_me: failed program was:" >&5 6159sed 's/^/| /' conftest.$ac_ext >&5 6160 6161 # Passes both tests. 6162ac_preproc_ok=: 6163break 6164fi 6165rm -f conftest.err conftest.$ac_ext 6166 6167done 6168# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6169rm -f conftest.err conftest.$ac_ext 6170if $ac_preproc_ok; then 6171 break 6172fi 6173 6174 done 6175 ac_cv_prog_CXXCPP=$CXXCPP 6176 6177fi 6178 CXXCPP=$ac_cv_prog_CXXCPP 6179else 6180 ac_cv_prog_CXXCPP=$CXXCPP 6181fi 6182echo "$as_me:$LINENO: result: $CXXCPP" >&5 6183echo "${ECHO_T}$CXXCPP" >&6 6184ac_preproc_ok=false 6185for ac_cxx_preproc_warn_flag in '' yes 6186do 6187 # Use a header file that comes with gcc, so configuring glibc 6188 # with a fresh cross-compiler works. 6189 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6190 # <limits.h> exists even on freestanding compilers. 6191 # On the NeXT, cc -E runs the code through the compiler's parser, 6192 # not just through cpp. "Syntax error" is here to catch this case. 6193 cat >conftest.$ac_ext <<_ACEOF 6194/* confdefs.h. */ 6195_ACEOF 6196cat confdefs.h >>conftest.$ac_ext 6197cat >>conftest.$ac_ext <<_ACEOF 6198/* end confdefs.h. */ 6199#ifdef __STDC__ 6200# include <limits.h> 6201#else 6202# include <assert.h> 6203#endif 6204 Syntax error 6205_ACEOF 6206if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6208 ac_status=$? 6209 grep -v '^ *+' conftest.er1 >conftest.err 6210 rm -f conftest.er1 6211 cat conftest.err >&5 6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6213 (exit $ac_status); } >/dev/null; then 6214 if test -s conftest.err; then 6215 ac_cpp_err=$ac_cxx_preproc_warn_flag 6216 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6217 else 6218 ac_cpp_err= 6219 fi 6220else 6221 ac_cpp_err=yes 6222fi 6223if test -z "$ac_cpp_err"; then 6224 : 6225else 6226 echo "$as_me: failed program was:" >&5 6227sed 's/^/| /' conftest.$ac_ext >&5 6228 6229 # Broken: fails on valid input. 6230continue 6231fi 6232rm -f conftest.err conftest.$ac_ext 6233 6234 # OK, works on sane cases. Now check whether non-existent headers 6235 # can be detected and how. 6236 cat >conftest.$ac_ext <<_ACEOF 6237/* confdefs.h. */ 6238_ACEOF 6239cat confdefs.h >>conftest.$ac_ext 6240cat >>conftest.$ac_ext <<_ACEOF 6241/* end confdefs.h. */ 6242#include <ac_nonexistent.h> 6243_ACEOF 6244if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6246 ac_status=$? 6247 grep -v '^ *+' conftest.er1 >conftest.err 6248 rm -f conftest.er1 6249 cat conftest.err >&5 6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6251 (exit $ac_status); } >/dev/null; then 6252 if test -s conftest.err; then 6253 ac_cpp_err=$ac_cxx_preproc_warn_flag 6254 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6255 else 6256 ac_cpp_err= 6257 fi 6258else 6259 ac_cpp_err=yes 6260fi 6261if test -z "$ac_cpp_err"; then 6262 # Broken: success on invalid input. 6263continue 6264else 6265 echo "$as_me: failed program was:" >&5 6266sed 's/^/| /' conftest.$ac_ext >&5 6267 6268 # Passes both tests. 6269ac_preproc_ok=: 6270break 6271fi 6272rm -f conftest.err conftest.$ac_ext 6273 6274done 6275# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6276rm -f conftest.err conftest.$ac_ext 6277if $ac_preproc_ok; then 6278 : 6279else 6280 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6281See \`config.log' for more details." >&5 6282echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6283See \`config.log' for more details." >&2;} 6284 { (exit 1); exit 1; }; } 6285fi 6286 6287ac_ext=cc 6288ac_cpp='$CXXCPP $CPPFLAGS' 6289ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6290ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6291ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6292 6293 6294ac_ext=f 6295ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6296ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6297ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6298if test -n "$ac_tool_prefix"; then 6299 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 6300 do 6301 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6302set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6303echo "$as_me:$LINENO: checking for $ac_word" >&5 6304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6305if test "${ac_cv_prog_F77+set}" = set; then 6306 echo $ECHO_N "(cached) $ECHO_C" >&6 6307else 6308 if test -n "$F77"; then 6309 ac_cv_prog_F77="$F77" # Let the user override the test. 6310else 6311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6312for as_dir in $PATH 6313do 6314 IFS=$as_save_IFS 6315 test -z "$as_dir" && as_dir=. 6316 for ac_exec_ext in '' $ac_executable_extensions; do 6317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6318 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6320 break 2 6321 fi 6322done 6323done 6324 6325fi 6326fi 6327F77=$ac_cv_prog_F77 6328if test -n "$F77"; then 6329 echo "$as_me:$LINENO: result: $F77" >&5 6330echo "${ECHO_T}$F77" >&6 6331else 6332 echo "$as_me:$LINENO: result: no" >&5 6333echo "${ECHO_T}no" >&6 6334fi 6335 6336 test -n "$F77" && break 6337 done 6338fi 6339if test -z "$F77"; then 6340 ac_ct_F77=$F77 6341 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 6342do 6343 # Extract the first word of "$ac_prog", so it can be a program name with args. 6344set dummy $ac_prog; ac_word=$2 6345echo "$as_me:$LINENO: checking for $ac_word" >&5 6346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6347if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6348 echo $ECHO_N "(cached) $ECHO_C" >&6 6349else 6350 if test -n "$ac_ct_F77"; then 6351 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6352else 6353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6354for as_dir in $PATH 6355do 6356 IFS=$as_save_IFS 6357 test -z "$as_dir" && as_dir=. 6358 for ac_exec_ext in '' $ac_executable_extensions; do 6359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6360 ac_cv_prog_ac_ct_F77="$ac_prog" 6361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6362 break 2 6363 fi 6364done 6365done 6366 6367fi 6368fi 6369ac_ct_F77=$ac_cv_prog_ac_ct_F77 6370if test -n "$ac_ct_F77"; then 6371 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6372echo "${ECHO_T}$ac_ct_F77" >&6 6373else 6374 echo "$as_me:$LINENO: result: no" >&5 6375echo "${ECHO_T}no" >&6 6376fi 6377 6378 test -n "$ac_ct_F77" && break 6379done 6380 6381 F77=$ac_ct_F77 6382fi 6383 6384 6385# Provide some information about the compiler. 6386echo "$as_me:6386:" \ 6387 "checking for Fortran 77 compiler version" >&5 6388ac_compiler=`set X $ac_compile; echo $2` 6389{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 6390 (eval $ac_compiler --version </dev/null >&5) 2>&5 6391 ac_status=$? 6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6393 (exit $ac_status); } 6394{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 6395 (eval $ac_compiler -v </dev/null >&5) 2>&5 6396 ac_status=$? 6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6398 (exit $ac_status); } 6399{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 6400 (eval $ac_compiler -V </dev/null >&5) 2>&5 6401 ac_status=$? 6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6403 (exit $ac_status); } 6404rm -f a.out 6405 6406# If we don't use `.F' as extension, the preprocessor is not run on the 6407# input file. (Note that this only needs to work for GNU compilers.) 6408ac_save_ext=$ac_ext 6409ac_ext=F 6410echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6411echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 6412if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6413 echo $ECHO_N "(cached) $ECHO_C" >&6 6414else 6415 cat >conftest.$ac_ext <<_ACEOF 6416 program main 6417#ifndef __GNUC__ 6418 choke me 6419#endif 6420 6421 end 6422_ACEOF 6423rm -f conftest.$ac_objext 6424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6425 (eval $ac_compile) 2>conftest.er1 6426 ac_status=$? 6427 grep -v '^ *+' conftest.er1 >conftest.err 6428 rm -f conftest.er1 6429 cat conftest.err >&5 6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6431 (exit $ac_status); } && 6432 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6434 (eval $ac_try) 2>&5 6435 ac_status=$? 6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6437 (exit $ac_status); }; } && 6438 { ac_try='test -s conftest.$ac_objext' 6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6440 (eval $ac_try) 2>&5 6441 ac_status=$? 6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6443 (exit $ac_status); }; }; then 6444 ac_compiler_gnu=yes 6445else 6446 echo "$as_me: failed program was:" >&5 6447sed 's/^/| /' conftest.$ac_ext >&5 6448 6449ac_compiler_gnu=no 6450fi 6451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6452ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6453 6454fi 6455echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6456echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 6457ac_ext=$ac_save_ext 6458ac_test_FFLAGS=${FFLAGS+set} 6459ac_save_FFLAGS=$FFLAGS 6460FFLAGS= 6461echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6462echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 6463if test "${ac_cv_prog_f77_g+set}" = set; then 6464 echo $ECHO_N "(cached) $ECHO_C" >&6 6465else 6466 FFLAGS=-g 6467cat >conftest.$ac_ext <<_ACEOF 6468 program main 6469 6470 end 6471_ACEOF 6472rm -f conftest.$ac_objext 6473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6474 (eval $ac_compile) 2>conftest.er1 6475 ac_status=$? 6476 grep -v '^ *+' conftest.er1 >conftest.err 6477 rm -f conftest.er1 6478 cat conftest.err >&5 6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6480 (exit $ac_status); } && 6481 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 6482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6483 (eval $ac_try) 2>&5 6484 ac_status=$? 6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6486 (exit $ac_status); }; } && 6487 { ac_try='test -s conftest.$ac_objext' 6488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6489 (eval $ac_try) 2>&5 6490 ac_status=$? 6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6492 (exit $ac_status); }; }; then 6493 ac_cv_prog_f77_g=yes 6494else 6495 echo "$as_me: failed program was:" >&5 6496sed 's/^/| /' conftest.$ac_ext >&5 6497 6498ac_cv_prog_f77_g=no 6499fi 6500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6501 6502fi 6503echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6504echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 6505if test "$ac_test_FFLAGS" = set; then 6506 FFLAGS=$ac_save_FFLAGS 6507elif test $ac_cv_prog_f77_g = yes; then 6508 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6509 FFLAGS="-g -O2" 6510 else 6511 FFLAGS="-g" 6512 fi 6513else 6514 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6515 FFLAGS="-O2" 6516 else 6517 FFLAGS= 6518 fi 6519fi 6520 6521G77=`test $ac_compiler_gnu = yes && echo yes` 6522ac_ext=c 6523ac_cpp='$CPP $CPPFLAGS' 6524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6526ac_compiler_gnu=$ac_cv_c_compiler_gnu 6527 6528 6529 6530# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6531 6532# find the maximum length of command line arguments 6533echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6534echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 6535if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6536 echo $ECHO_N "(cached) $ECHO_C" >&6 6537else 6538 i=0 6539 teststring="ABCD" 6540 6541 case $build_os in 6542 msdosdjgpp*) 6543 # On DJGPP, this test can blow up pretty badly due to problems in libc 6544 # (any single argument exceeding 2000 bytes causes a buffer overrun 6545 # during glob expansion). Even if it were fixed, the result of this 6546 # check would be larger than it should be. 6547 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6548 ;; 6549 6550 gnu*) 6551 # Under GNU Hurd, this test is not required because there is 6552 # no limit to the length of command line arguments. 6553 # Libtool will interpret -1 as no limit whatsoever 6554 lt_cv_sys_max_cmd_len=-1; 6555 ;; 6556 6557 cygwin* | mingw*) 6558 # On Win9x/ME, this test blows up -- it succeeds, but takes 6559 # about 5 minutes as the teststring grows exponentially. 6560 # Worse, since 9x/ME are not pre-emptively multitasking, 6561 # you end up with a "frozen" computer, even though with patience 6562 # the test eventually succeeds (with a max line length of 256k). 6563 # Instead, let's just punt: use the minimum linelength reported by 6564 # all of the supported platforms: 8192 (on NT/2K/XP). 6565 lt_cv_sys_max_cmd_len=8192; 6566 ;; 6567 6568 amigaos*) 6569 # On AmigaOS with pdksh, this test takes hours, literally. 6570 # So we just punt and use a minimum line length of 8192. 6571 lt_cv_sys_max_cmd_len=8192; 6572 ;; 6573 6574 *) 6575 # If test is not a shell built-in, we'll probably end up computing a 6576 # maximum length that is only half of the actual maximum length, but 6577 # we can't tell. 6578 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6579 = "XX$teststring") >/dev/null 2>&1 && 6580 new_result=`expr "X$teststring" : ".*" 2>&1` && 6581 lt_cv_sys_max_cmd_len=$new_result && 6582 test $i != 17 # 1/2 MB should be enough 6583 do 6584 i=`expr $i + 1` 6585 teststring=$teststring$teststring 6586 done 6587 teststring= 6588 # Add a significant safety factor because C++ compilers can tack on massive 6589 # amounts of additional arguments before passing them to the linker. 6590 # It appears as though 1/2 is a usable value. 6591 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6592 ;; 6593 esac 6594 6595fi 6596 6597if test -n $lt_cv_sys_max_cmd_len ; then 6598 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6599echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 6600else 6601 echo "$as_me:$LINENO: result: none" >&5 6602echo "${ECHO_T}none" >&6 6603fi 6604 6605 6606 6607 6608# Check for command to grab the raw symbol name followed by C symbol from nm. 6609echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6610echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 6611if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6612 echo $ECHO_N "(cached) $ECHO_C" >&6 6613else 6614 6615# These are sane defaults that work on at least a few old systems. 6616# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6617 6618# Character class describing NM global symbol codes. 6619symcode='[BCDEGRST]' 6620 6621# Regexp to match symbols that can be accessed directly from C. 6622sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6623 6624# Transform the above into a raw symbol and a C symbol. 6625symxfrm='\1 \2\3 \3' 6626 6627# Transform an extracted symbol line into a proper C declaration 6628lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6629 6630# Transform an extracted symbol line into symbol name and symbol address 6631lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 6632 6633# Define system-specific variables. 6634case $host_os in 6635aix*) 6636 symcode='[BCDT]' 6637 ;; 6638cygwin* | mingw* | pw32*) 6639 symcode='[ABCDGISTW]' 6640 ;; 6641hpux*) # Its linker distinguishes data from code symbols 6642 if test "$host_cpu" = ia64; then 6643 symcode='[ABCDEGRST]' 6644 fi 6645 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6646 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 6647 ;; 6648irix* | nonstopux*) 6649 symcode='[BCDEGRST]' 6650 ;; 6651osf*) 6652 symcode='[BCDEGQRST]' 6653 ;; 6654solaris* | sysv5*) 6655 symcode='[BDRT]' 6656 ;; 6657sysv4) 6658 symcode='[DFNSTU]' 6659 ;; 6660esac 6661 6662# Handle CRLF in mingw tool chain 6663opt_cr= 6664case $build_os in 6665mingw*) 6666 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6667 ;; 6668esac 6669 6670# If we're using GNU nm, then use its standard symbol codes. 6671case `$NM -V 2>&1` in 6672*GNU* | *'with BFD'*) 6673 symcode='[ABCDGIRSTW]' ;; 6674esac 6675 6676# Try without a prefix undercore, then with it. 6677for ac_symprfx in "" "_"; do 6678 6679 # Write the raw and C identifiers. 6680 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 6681 6682 # Check to see that the pipe works correctly. 6683 pipe_works=no 6684 6685 rm -f conftest* 6686 cat > conftest.$ac_ext <<EOF 6687#ifdef __cplusplus 6688extern "C" { 6689#endif 6690char nm_test_var; 6691void nm_test_func(){} 6692#ifdef __cplusplus 6693} 6694#endif 6695int main(){nm_test_var='a';nm_test_func();return(0);} 6696EOF 6697 6698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6699 (eval $ac_compile) 2>&5 6700 ac_status=$? 6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6702 (exit $ac_status); }; then 6703 # Now try to grab the symbols. 6704 nlist=conftest.nm 6705 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6706 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6707 ac_status=$? 6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6709 (exit $ac_status); } && test -s "$nlist"; then 6710 # Try sorting and uniquifying the output. 6711 if sort "$nlist" | uniq > "$nlist"T; then 6712 mv -f "$nlist"T "$nlist" 6713 else 6714 rm -f "$nlist"T 6715 fi 6716 6717 # Make sure that we snagged all the symbols we need. 6718 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6719 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6720 cat <<EOF > conftest.$ac_ext 6721#ifdef __cplusplus 6722extern "C" { 6723#endif 6724 6725EOF 6726 # Now generate the symbol file. 6727 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6728 6729 cat <<EOF >> conftest.$ac_ext 6730#if defined (__STDC__) && __STDC__ 6731# define lt_ptr_t void * 6732#else 6733# define lt_ptr_t char * 6734# define const 6735#endif 6736 6737/* The mapping between symbol names and symbols. */ 6738const struct { 6739 const char *name; 6740 lt_ptr_t address; 6741} 6742lt_preloaded_symbols[] = 6743{ 6744EOF 6745 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6746 cat <<\EOF >> conftest.$ac_ext 6747 {0, (lt_ptr_t) 0} 6748}; 6749 6750#ifdef __cplusplus 6751} 6752#endif 6753EOF 6754 # Now try linking the two files. 6755 mv conftest.$ac_objext conftstm.$ac_objext 6756 lt_save_LIBS="$LIBS" 6757 lt_save_CFLAGS="$CFLAGS" 6758 LIBS="conftstm.$ac_objext" 6759 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6761 (eval $ac_link) 2>&5 6762 ac_status=$? 6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6764 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6765 pipe_works=yes 6766 fi 6767 LIBS="$lt_save_LIBS" 6768 CFLAGS="$lt_save_CFLAGS" 6769 else 6770 echo "cannot find nm_test_func in $nlist" >&5 6771 fi 6772 else 6773 echo "cannot find nm_test_var in $nlist" >&5 6774 fi 6775 else 6776 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6777 fi 6778 else 6779 echo "$progname: failed program was:" >&5 6780 cat conftest.$ac_ext >&5 6781 fi 6782 rm -f conftest* conftst* 6783 6784 # Do not use the global_symbol_pipe unless it works. 6785 if test "$pipe_works" = yes; then 6786 break 6787 else 6788 lt_cv_sys_global_symbol_pipe= 6789 fi 6790done 6791 6792fi 6793 6794if test -z "$lt_cv_sys_global_symbol_pipe"; then 6795 lt_cv_sys_global_symbol_to_cdecl= 6796fi 6797if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6798 echo "$as_me:$LINENO: result: failed" >&5 6799echo "${ECHO_T}failed" >&6 6800else 6801 echo "$as_me:$LINENO: result: ok" >&5 6802echo "${ECHO_T}ok" >&6 6803fi 6804 6805echo "$as_me:$LINENO: checking for objdir" >&5 6806echo $ECHO_N "checking for objdir... $ECHO_C" >&6 6807if test "${lt_cv_objdir+set}" = set; then 6808 echo $ECHO_N "(cached) $ECHO_C" >&6 6809else 6810 rm -f .libs 2>/dev/null 6811mkdir .libs 2>/dev/null 6812if test -d .libs; then 6813 lt_cv_objdir=.libs 6814else 6815 # MS-DOS does not allow filenames that begin with a dot. 6816 lt_cv_objdir=_libs 6817fi 6818rmdir .libs 2>/dev/null 6819fi 6820echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6821echo "${ECHO_T}$lt_cv_objdir" >&6 6822objdir=$lt_cv_objdir 6823 6824 6825 6826 6827 6828case $host_os in 6829aix3*) 6830 # AIX sometimes has problems with the GCC collect2 program. For some 6831 # reason, if we set the COLLECT_NAMES environment variable, the problems 6832 # vanish in a puff of smoke. 6833 if test "X${COLLECT_NAMES+set}" != Xset; then 6834 COLLECT_NAMES= 6835 export COLLECT_NAMES 6836 fi 6837 ;; 6838esac 6839 6840# Sed substitution that helps us do robust quoting. It backslashifies 6841# metacharacters that are still active within double-quoted strings. 6842Xsed='sed -e s/^X//' 6843sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6844 6845# Same as above, but do not quote variable references. 6846double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6847 6848# Sed substitution to delay expansion of an escaped shell variable in a 6849# double_quote_subst'ed string. 6850delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6851 6852# Sed substitution to avoid accidental globbing in evaled expressions 6853no_glob_subst='s/\*/\\\*/g' 6854 6855# Constants: 6856rm="rm -f" 6857 6858# Global variables: 6859default_ofile=libtool 6860can_build_shared=yes 6861 6862# All known linkers require a `.a' archive for static linking (except M$VC, 6863# which needs '.lib'). 6864libext=a 6865ltmain="$ac_aux_dir/ltmain.sh" 6866ofile="$default_ofile" 6867with_gnu_ld="$lt_cv_prog_gnu_ld" 6868 6869if test -n "$ac_tool_prefix"; then 6870 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6871set dummy ${ac_tool_prefix}ar; ac_word=$2 6872echo "$as_me:$LINENO: checking for $ac_word" >&5 6873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6874if test "${ac_cv_prog_AR+set}" = set; then 6875 echo $ECHO_N "(cached) $ECHO_C" >&6 6876else 6877 if test -n "$AR"; then 6878 ac_cv_prog_AR="$AR" # Let the user override the test. 6879else 6880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6881for as_dir in $PATH 6882do 6883 IFS=$as_save_IFS 6884 test -z "$as_dir" && as_dir=. 6885 for ac_exec_ext in '' $ac_executable_extensions; do 6886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6887 ac_cv_prog_AR="${ac_tool_prefix}ar" 6888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6889 break 2 6890 fi 6891done 6892done 6893 6894fi 6895fi 6896AR=$ac_cv_prog_AR 6897if test -n "$AR"; then 6898 echo "$as_me:$LINENO: result: $AR" >&5 6899echo "${ECHO_T}$AR" >&6 6900else 6901 echo "$as_me:$LINENO: result: no" >&5 6902echo "${ECHO_T}no" >&6 6903fi 6904 6905fi 6906if test -z "$ac_cv_prog_AR"; then 6907 ac_ct_AR=$AR 6908 # Extract the first word of "ar", so it can be a program name with args. 6909set dummy ar; ac_word=$2 6910echo "$as_me:$LINENO: checking for $ac_word" >&5 6911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6912if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6913 echo $ECHO_N "(cached) $ECHO_C" >&6 6914else 6915 if test -n "$ac_ct_AR"; then 6916 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6917else 6918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6919for as_dir in $PATH 6920do 6921 IFS=$as_save_IFS 6922 test -z "$as_dir" && as_dir=. 6923 for ac_exec_ext in '' $ac_executable_extensions; do 6924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6925 ac_cv_prog_ac_ct_AR="ar" 6926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6927 break 2 6928 fi 6929done 6930done 6931 6932 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 6933fi 6934fi 6935ac_ct_AR=$ac_cv_prog_ac_ct_AR 6936if test -n "$ac_ct_AR"; then 6937 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6938echo "${ECHO_T}$ac_ct_AR" >&6 6939else 6940 echo "$as_me:$LINENO: result: no" >&5 6941echo "${ECHO_T}no" >&6 6942fi 6943 6944 AR=$ac_ct_AR 6945else 6946 AR="$ac_cv_prog_AR" 6947fi 6948 6949if test -n "$ac_tool_prefix"; then 6950 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6951set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6952echo "$as_me:$LINENO: checking for $ac_word" >&5 6953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6954if test "${ac_cv_prog_RANLIB+set}" = set; then 6955 echo $ECHO_N "(cached) $ECHO_C" >&6 6956else 6957 if test -n "$RANLIB"; then 6958 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6959else 6960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6961for as_dir in $PATH 6962do 6963 IFS=$as_save_IFS 6964 test -z "$as_dir" && as_dir=. 6965 for ac_exec_ext in '' $ac_executable_extensions; do 6966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6967 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6969 break 2 6970 fi 6971done 6972done 6973 6974fi 6975fi 6976RANLIB=$ac_cv_prog_RANLIB 6977if test -n "$RANLIB"; then 6978 echo "$as_me:$LINENO: result: $RANLIB" >&5 6979echo "${ECHO_T}$RANLIB" >&6 6980else 6981 echo "$as_me:$LINENO: result: no" >&5 6982echo "${ECHO_T}no" >&6 6983fi 6984 6985fi 6986if test -z "$ac_cv_prog_RANLIB"; then 6987 ac_ct_RANLIB=$RANLIB 6988 # Extract the first word of "ranlib", so it can be a program name with args. 6989set dummy ranlib; ac_word=$2 6990echo "$as_me:$LINENO: checking for $ac_word" >&5 6991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6992if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6993 echo $ECHO_N "(cached) $ECHO_C" >&6 6994else 6995 if test -n "$ac_ct_RANLIB"; then 6996 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6997else 6998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6999for as_dir in $PATH 7000do 7001 IFS=$as_save_IFS 7002 test -z "$as_dir" && as_dir=. 7003 for ac_exec_ext in '' $ac_executable_extensions; do 7004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7005 ac_cv_prog_ac_ct_RANLIB="ranlib" 7006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7007 break 2 7008 fi 7009done 7010done 7011 7012 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 7013fi 7014fi 7015ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7016if test -n "$ac_ct_RANLIB"; then 7017 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7018echo "${ECHO_T}$ac_ct_RANLIB" >&6 7019else 7020 echo "$as_me:$LINENO: result: no" >&5 7021echo "${ECHO_T}no" >&6 7022fi 7023 7024 RANLIB=$ac_ct_RANLIB 7025else 7026 RANLIB="$ac_cv_prog_RANLIB" 7027fi 7028 7029if test -n "$ac_tool_prefix"; then 7030 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7031set dummy ${ac_tool_prefix}strip; ac_word=$2 7032echo "$as_me:$LINENO: checking for $ac_word" >&5 7033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7034if test "${ac_cv_prog_STRIP+set}" = set; then 7035 echo $ECHO_N "(cached) $ECHO_C" >&6 7036else 7037 if test -n "$STRIP"; then 7038 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7039else 7040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7041for as_dir in $PATH 7042do 7043 IFS=$as_save_IFS 7044 test -z "$as_dir" && as_dir=. 7045 for ac_exec_ext in '' $ac_executable_extensions; do 7046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7047 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7049 break 2 7050 fi 7051done 7052done 7053 7054fi 7055fi 7056STRIP=$ac_cv_prog_STRIP 7057if test -n "$STRIP"; then 7058 echo "$as_me:$LINENO: result: $STRIP" >&5 7059echo "${ECHO_T}$STRIP" >&6 7060else 7061 echo "$as_me:$LINENO: result: no" >&5 7062echo "${ECHO_T}no" >&6 7063fi 7064 7065fi 7066if test -z "$ac_cv_prog_STRIP"; then 7067 ac_ct_STRIP=$STRIP 7068 # Extract the first word of "strip", so it can be a program name with args. 7069set dummy strip; ac_word=$2 7070echo "$as_me:$LINENO: checking for $ac_word" >&5 7071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7072if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 7073 echo $ECHO_N "(cached) $ECHO_C" >&6 7074else 7075 if test -n "$ac_ct_STRIP"; then 7076 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7077else 7078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7079for as_dir in $PATH 7080do 7081 IFS=$as_save_IFS 7082 test -z "$as_dir" && as_dir=. 7083 for ac_exec_ext in '' $ac_executable_extensions; do 7084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7085 ac_cv_prog_ac_ct_STRIP="strip" 7086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7087 break 2 7088 fi 7089done 7090done 7091 7092 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 7093fi 7094fi 7095ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7096if test -n "$ac_ct_STRIP"; then 7097 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7098echo "${ECHO_T}$ac_ct_STRIP" >&6 7099else 7100 echo "$as_me:$LINENO: result: no" >&5 7101echo "${ECHO_T}no" >&6 7102fi 7103 7104 STRIP=$ac_ct_STRIP 7105else 7106 STRIP="$ac_cv_prog_STRIP" 7107fi 7108 7109 7110old_CC="$CC" 7111old_CFLAGS="$CFLAGS" 7112 7113# Set sane defaults for various variables 7114test -z "$AR" && AR=ar 7115test -z "$AR_FLAGS" && AR_FLAGS=cru 7116test -z "$AS" && AS=as 7117test -z "$CC" && CC=cc 7118test -z "$LTCC" && LTCC=$CC 7119test -z "$DLLTOOL" && DLLTOOL=dlltool 7120test -z "$LD" && LD=ld 7121test -z "$LN_S" && LN_S="ln -s" 7122test -z "$MAGIC_CMD" && MAGIC_CMD=file 7123test -z "$NM" && NM=nm 7124test -z "$SED" && SED=sed 7125test -z "$OBJDUMP" && OBJDUMP=objdump 7126test -z "$RANLIB" && RANLIB=: 7127test -z "$STRIP" && STRIP=: 7128test -z "$ac_objext" && ac_objext=o 7129 7130# Determine commands to create old-style static archives. 7131old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 7132old_postinstall_cmds='chmod 644 $oldlib' 7133old_postuninstall_cmds= 7134 7135if test -n "$RANLIB"; then 7136 case $host_os in 7137 openbsd*) 7138 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 7139 ;; 7140 *) 7141 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 7142 ;; 7143 esac 7144 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7145fi 7146 7147# Only perform the check for file, if the check method requires it 7148case $deplibs_check_method in 7149file_magic*) 7150 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7151 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7152echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 7153if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7154 echo $ECHO_N "(cached) $ECHO_C" >&6 7155else 7156 case $MAGIC_CMD in 7157[\\/*] | ?:[\\/]*) 7158 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7159 ;; 7160*) 7161 lt_save_MAGIC_CMD="$MAGIC_CMD" 7162 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7163 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7164 for ac_dir in $ac_dummy; do 7165 IFS="$lt_save_ifs" 7166 test -z "$ac_dir" && ac_dir=. 7167 if test -f $ac_dir/${ac_tool_prefix}file; then 7168 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7169 if test -n "$file_magic_test_file"; then 7170 case $deplibs_check_method in 7171 "file_magic "*) 7172 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 7173 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7174 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7175 $EGREP "$file_magic_regex" > /dev/null; then 7176 : 7177 else 7178 cat <<EOF 1>&2 7179 7180*** Warning: the command libtool uses to detect shared libraries, 7181*** $file_magic_cmd, produces output that libtool cannot recognize. 7182*** The result is that libtool may fail to recognize shared libraries 7183*** as such. This will affect the creation of libtool libraries that 7184*** depend on shared libraries, but programs linked with such libtool 7185*** libraries will work regardless of this problem. Nevertheless, you 7186*** may want to report the problem to your system manager and/or to 7187*** bug-libtool@gnu.org 7188 7189EOF 7190 fi ;; 7191 esac 7192 fi 7193 break 7194 fi 7195 done 7196 IFS="$lt_save_ifs" 7197 MAGIC_CMD="$lt_save_MAGIC_CMD" 7198 ;; 7199esac 7200fi 7201 7202MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7203if test -n "$MAGIC_CMD"; then 7204 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7205echo "${ECHO_T}$MAGIC_CMD" >&6 7206else 7207 echo "$as_me:$LINENO: result: no" >&5 7208echo "${ECHO_T}no" >&6 7209fi 7210 7211if test -z "$lt_cv_path_MAGIC_CMD"; then 7212 if test -n "$ac_tool_prefix"; then 7213 echo "$as_me:$LINENO: checking for file" >&5 7214echo $ECHO_N "checking for file... $ECHO_C" >&6 7215if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7216 echo $ECHO_N "(cached) $ECHO_C" >&6 7217else 7218 case $MAGIC_CMD in 7219[\\/*] | ?:[\\/]*) 7220 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7221 ;; 7222*) 7223 lt_save_MAGIC_CMD="$MAGIC_CMD" 7224 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7225 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7226 for ac_dir in $ac_dummy; do 7227 IFS="$lt_save_ifs" 7228 test -z "$ac_dir" && ac_dir=. 7229 if test -f $ac_dir/file; then 7230 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7231 if test -n "$file_magic_test_file"; then 7232 case $deplibs_check_method in 7233 "file_magic "*) 7234 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 7235 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7236 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7237 $EGREP "$file_magic_regex" > /dev/null; then 7238 : 7239 else 7240 cat <<EOF 1>&2 7241 7242*** Warning: the command libtool uses to detect shared libraries, 7243*** $file_magic_cmd, produces output that libtool cannot recognize. 7244*** The result is that libtool may fail to recognize shared libraries 7245*** as such. This will affect the creation of libtool libraries that 7246*** depend on shared libraries, but programs linked with such libtool 7247*** libraries will work regardless of this problem. Nevertheless, you 7248*** may want to report the problem to your system manager and/or to 7249*** bug-libtool@gnu.org 7250 7251EOF 7252 fi ;; 7253 esac 7254 fi 7255 break 7256 fi 7257 done 7258 IFS="$lt_save_ifs" 7259 MAGIC_CMD="$lt_save_MAGIC_CMD" 7260 ;; 7261esac 7262fi 7263 7264MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7265if test -n "$MAGIC_CMD"; then 7266 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7267echo "${ECHO_T}$MAGIC_CMD" >&6 7268else 7269 echo "$as_me:$LINENO: result: no" >&5 7270echo "${ECHO_T}no" >&6 7271fi 7272 7273 else 7274 MAGIC_CMD=: 7275 fi 7276fi 7277 7278 fi 7279 ;; 7280esac 7281 7282enable_dlopen=no 7283enable_win32_dll=no 7284 7285# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 7286if test "${enable_libtool_lock+set}" = set; then 7287 enableval="$enable_libtool_lock" 7288 7289fi; 7290test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7291 7292 7293# Check whether --with-pic or --without-pic was given. 7294if test "${with_pic+set}" = set; then 7295 withval="$with_pic" 7296 pic_mode="$withval" 7297else 7298 pic_mode=default 7299fi; 7300test -z "$pic_mode" && pic_mode=default 7301 7302# Use C for the default configuration in the libtool script 7303tagname= 7304lt_save_CC="$CC" 7305ac_ext=c 7306ac_cpp='$CPP $CPPFLAGS' 7307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7309ac_compiler_gnu=$ac_cv_c_compiler_gnu 7310 7311 7312# Source file extension for C test sources. 7313ac_ext=c 7314 7315# Object file extension for compiled C test sources. 7316objext=o 7317objext=$objext 7318 7319# Code to be used in simple compile tests 7320lt_simple_compile_test_code="int some_variable = 0;\n" 7321 7322# Code to be used in simple link tests 7323lt_simple_link_test_code='int main(){return(0);}\n' 7324 7325 7326# If no C compiler was specified, use CC. 7327LTCC=${LTCC-"$CC"} 7328 7329# Allow CC to be a program name with arguments. 7330compiler=$CC 7331 7332 7333# 7334# Check for any special shared library compilation flags. 7335# 7336lt_prog_cc_shlib= 7337if test "$GCC" = no; then 7338 case $host_os in 7339 sco3.2v5*) 7340 lt_prog_cc_shlib='-belf' 7341 ;; 7342 esac 7343fi 7344if test -n "$lt_prog_cc_shlib"; then 7345 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 7346echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 7347 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 7348 else 7349 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 7350echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 7351 lt_cv_prog_cc_can_build_shared=no 7352 fi 7353fi 7354 7355 7356# 7357# Check to make sure the static flag actually works. 7358# 7359echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 7360echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 7361if test "${lt_prog_compiler_static_works+set}" = set; then 7362 echo $ECHO_N "(cached) $ECHO_C" >&6 7363else 7364 lt_prog_compiler_static_works=no 7365 save_LDFLAGS="$LDFLAGS" 7366 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" 7367 printf "$lt_simple_link_test_code" > conftest.$ac_ext 7368 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7369 # The compiler can only warn and ignore the option if not recognized 7370 # So say no if there are warnings 7371 if test -s conftest.err; then 7372 # Append any errors to the config.log. 7373 cat conftest.err 1>&5 7374 else 7375 lt_prog_compiler_static_works=yes 7376 fi 7377 fi 7378 $rm conftest* 7379 LDFLAGS="$save_LDFLAGS" 7380 7381fi 7382echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7383echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 7384 7385if test x"$lt_prog_compiler_static_works" = xyes; then 7386 : 7387else 7388 lt_prog_compiler_static= 7389fi 7390 7391 7392 7393 7394lt_prog_compiler_no_builtin_flag= 7395 7396if test "$GCC" = yes; then 7397 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7398 7399 7400echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7401echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 7402if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7403 echo $ECHO_N "(cached) $ECHO_C" >&6 7404else 7405 lt_cv_prog_compiler_rtti_exceptions=no 7406 ac_outfile=conftest.$ac_objext 7407 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7408 lt_compiler_flag="-fno-rtti -fno-exceptions" 7409 # Insert the option either (1) after the last *FLAGS variable, or 7410 # (2) before a word containing "conftest.", or (3) at the end. 7411 # Note that $ac_compile itself does not contain backslashes and begins 7412 # with a dollar sign (not a hyphen), so the echo should work correctly. 7413 # The option is referenced via a variable to avoid confusing sed. 7414 lt_compile=`echo "$ac_compile" | $SED \ 7415 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 7416 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7417 -e 's:$: $lt_compiler_flag:'` 7418 (eval echo "\"\$as_me:7418: $lt_compile\"" >&5) 7419 (eval "$lt_compile" 2>conftest.err) 7420 ac_status=$? 7421 cat conftest.err >&5 7422 echo "$as_me:7422: \$? = $ac_status" >&5 7423 if (exit $ac_status) && test -s "$ac_outfile"; then 7424 # The compiler can only warn and ignore the option if not recognized 7425 # So say no if there are warnings 7426 if test ! -s conftest.err; then 7427 lt_cv_prog_compiler_rtti_exceptions=yes 7428 fi 7429 fi 7430 $rm conftest* 7431 7432fi 7433echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7434echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 7435 7436if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7437 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7438else 7439 : 7440fi 7441 7442fi 7443 7444lt_prog_compiler_wl= 7445lt_prog_compiler_pic= 7446lt_prog_compiler_static= 7447 7448echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7449echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 7450 7451 if test "$GCC" = yes; then 7452 lt_prog_compiler_wl='-Wl,' 7453 lt_prog_compiler_static='-static' 7454 7455 case $host_os in 7456 aix*) 7457 # All AIX code is PIC. 7458 if test "$host_cpu" = ia64; then 7459 # AIX 5 now supports IA64 processor 7460 lt_prog_compiler_static='-Bstatic' 7461 fi 7462 ;; 7463 7464 amigaos*) 7465 # FIXME: we need at least 68020 code to build shared libraries, but 7466 # adding the `-m68020' flag to GCC prevents building anything better, 7467 # like `-m68040'. 7468 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7469 ;; 7470 7471 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7472 # PIC is the default for these OSes. 7473 ;; 7474 7475 mingw* | pw32* | os2*) 7476 # This hack is so that the source file can tell whether it is being 7477 # built for inclusion in a dll (and should export symbols for example). 7478 lt_prog_compiler_pic='-DDLL_EXPORT' 7479 ;; 7480 7481 darwin* | rhapsody*) 7482 # PIC is the default on this platform 7483 # Common symbols not allowed in MH_DYLIB files 7484 lt_prog_compiler_pic='-fno-common' 7485 ;; 7486 7487 msdosdjgpp*) 7488 # Just because we use GCC doesn't mean we suddenly get shared libraries 7489 # on systems that don't support them. 7490 lt_prog_compiler_can_build_shared=no 7491 enable_shared=no 7492 ;; 7493 7494 sysv4*MP*) 7495 if test -d /usr/nec; then 7496 lt_prog_compiler_pic=-Kconform_pic 7497 fi 7498 ;; 7499 7500 hpux*) 7501 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7502 # not for PA HP-UX. 7503 case "$host_cpu" in 7504 hppa*64*|ia64*) 7505 # +Z the default 7506 ;; 7507 *) 7508 lt_prog_compiler_pic='-fPIC' 7509 ;; 7510 esac 7511 ;; 7512 7513 *) 7514 lt_prog_compiler_pic='-fPIC' 7515 ;; 7516 esac 7517 else 7518 # PORTME Check for flag to pass linker flags through the system compiler. 7519 case $host_os in 7520 aix*) 7521 lt_prog_compiler_wl='-Wl,' 7522 if test "$host_cpu" = ia64; then 7523 # AIX 5 now supports IA64 processor 7524 lt_prog_compiler_static='-Bstatic' 7525 else 7526 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7527 fi 7528 ;; 7529 7530 mingw* | pw32* | os2*) 7531 # This hack is so that the source file can tell whether it is being 7532 # built for inclusion in a dll (and should export symbols for example). 7533 lt_prog_compiler_pic='-DDLL_EXPORT' 7534 ;; 7535 7536 hpux9* | hpux10* | hpux11*) 7537 lt_prog_compiler_wl='-Wl,' 7538 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7539 # not for PA HP-UX. 7540 case "$host_cpu" in 7541 hppa*64*|ia64*) 7542 # +Z the default 7543 ;; 7544 *) 7545 lt_prog_compiler_pic='+Z' 7546 ;; 7547 esac 7548 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7549 lt_prog_compiler_static='${wl}-a ${wl}archive' 7550 ;; 7551 7552 irix5* | irix6* | nonstopux*) 7553 lt_prog_compiler_wl='-Wl,' 7554 # PIC (with -KPIC) is the default. 7555 lt_prog_compiler_static='-non_shared' 7556 ;; 7557 7558 newsos6) 7559 lt_prog_compiler_pic='-KPIC' 7560 lt_prog_compiler_static='-Bstatic' 7561 ;; 7562 7563 linux*) 7564 case $CC in 7565 icc* | ecc*) 7566 lt_prog_compiler_wl='-Wl,' 7567 lt_prog_compiler_pic='-KPIC' 7568 lt_prog_compiler_static='-static' 7569 ;; 7570 ccc*) 7571 lt_prog_compiler_wl='-Wl,' 7572 # All Alpha code is PIC. 7573 lt_prog_compiler_static='-non_shared' 7574 ;; 7575 esac 7576 ;; 7577 7578 osf3* | osf4* | osf5*) 7579 lt_prog_compiler_wl='-Wl,' 7580 # All OSF/1 code is PIC. 7581 lt_prog_compiler_static='-non_shared' 7582 ;; 7583 7584 sco3.2v5*) 7585 lt_prog_compiler_pic='-Kpic' 7586 lt_prog_compiler_static='-dn' 7587 ;; 7588 7589 solaris*) 7590 lt_prog_compiler_wl='-Wl,' 7591 lt_prog_compiler_pic='-KPIC' 7592 lt_prog_compiler_static='-Bstatic' 7593 ;; 7594 7595 sunos4*) 7596 lt_prog_compiler_wl='-Qoption ld ' 7597 lt_prog_compiler_pic='-PIC' 7598 lt_prog_compiler_static='-Bstatic' 7599 ;; 7600 7601 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 7602 lt_prog_compiler_wl='-Wl,' 7603 lt_prog_compiler_pic='-KPIC' 7604 lt_prog_compiler_static='-Bstatic' 7605 ;; 7606 7607 sysv4*MP*) 7608 if test -d /usr/nec ;then 7609 lt_prog_compiler_pic='-Kconform_pic' 7610 lt_prog_compiler_static='-Bstatic' 7611 fi 7612 ;; 7613 7614 uts4*) 7615 lt_prog_compiler_pic='-pic' 7616 lt_prog_compiler_static='-Bstatic' 7617 ;; 7618 7619 *) 7620 lt_prog_compiler_can_build_shared=no 7621 ;; 7622 esac 7623 fi 7624 7625echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7626echo "${ECHO_T}$lt_prog_compiler_pic" >&6 7627 7628# 7629# Check to make sure the PIC flag actually works. 7630# 7631if test -n "$lt_prog_compiler_pic"; then 7632 7633echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7634echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 7635if test "${lt_prog_compiler_pic_works+set}" = set; then 7636 echo $ECHO_N "(cached) $ECHO_C" >&6 7637else 7638 lt_prog_compiler_pic_works=no 7639 ac_outfile=conftest.$ac_objext 7640 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7641 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7642 # Insert the option either (1) after the last *FLAGS variable, or 7643 # (2) before a word containing "conftest.", or (3) at the end. 7644 # Note that $ac_compile itself does not contain backslashes and begins 7645 # with a dollar sign (not a hyphen), so the echo should work correctly. 7646 # The option is referenced via a variable to avoid confusing sed. 7647 lt_compile=`echo "$ac_compile" | $SED \ 7648 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 7649 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7650 -e 's:$: $lt_compiler_flag:'` 7651 (eval echo "\"\$as_me:7651: $lt_compile\"" >&5) 7652 (eval "$lt_compile" 2>conftest.err) 7653 ac_status=$? 7654 cat conftest.err >&5 7655 echo "$as_me:7655: \$? = $ac_status" >&5 7656 if (exit $ac_status) && test -s "$ac_outfile"; then 7657 # The compiler can only warn and ignore the option if not recognized 7658 # So say no if there are warnings 7659 if test ! -s conftest.err; then 7660 lt_prog_compiler_pic_works=yes 7661 fi 7662 fi 7663 $rm conftest* 7664 7665fi 7666echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7667echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 7668 7669if test x"$lt_prog_compiler_pic_works" = xyes; then 7670 case $lt_prog_compiler_pic in 7671 "" | " "*) ;; 7672 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7673 esac 7674else 7675 lt_prog_compiler_pic= 7676 lt_prog_compiler_can_build_shared=no 7677fi 7678 7679fi 7680case "$host_os" in 7681 # For platforms which do not support PIC, -DPIC is meaningless: 7682 *djgpp*) 7683 lt_prog_compiler_pic= 7684 ;; 7685 *) 7686 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7687 ;; 7688esac 7689 7690echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7691echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 7692if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7693 echo $ECHO_N "(cached) $ECHO_C" >&6 7694else 7695 lt_cv_prog_compiler_c_o=no 7696 $rm -r conftest 2>/dev/null 7697 mkdir conftest 7698 cd conftest 7699 mkdir out 7700 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7701 7702 lt_compiler_flag="-o out/conftest2.$ac_objext" 7703 # Insert the option either (1) after the last *FLAGS variable, or 7704 # (2) before a word containing "conftest.", or (3) at the end. 7705 # Note that $ac_compile itself does not contain backslashes and begins 7706 # with a dollar sign (not a hyphen), so the echo should work correctly. 7707 lt_compile=`echo "$ac_compile" | $SED \ 7708 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 7709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7710 -e 's:$: $lt_compiler_flag:'` 7711 (eval echo "\"\$as_me:7711: $lt_compile\"" >&5) 7712 (eval "$lt_compile" 2>out/conftest.err) 7713 ac_status=$? 7714 cat out/conftest.err >&5 7715 echo "$as_me:7715: \$? = $ac_status" >&5 7716 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7717 then 7718 # The compiler can only warn and ignore the option if not recognized 7719 # So say no if there are warnings 7720 if test ! -s out/conftest.err; then 7721 lt_cv_prog_compiler_c_o=yes 7722 fi 7723 fi 7724 chmod u+w . 7725 $rm conftest* 7726 # SGI C++ compiler will create directory out/ii_files/ for 7727 # template instantiation 7728 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7729 $rm out/* && rmdir out 7730 cd .. 7731 rmdir conftest 7732 $rm conftest* 7733 7734fi 7735echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7736echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 7737 7738 7739hard_links="nottested" 7740if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7741 # do not overwrite the value of need_locks provided by the user 7742 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7743echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 7744 hard_links=yes 7745 $rm conftest* 7746 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7747 touch conftest.a 7748 ln conftest.a conftest.b 2>&5 || hard_links=no 7749 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7750 echo "$as_me:$LINENO: result: $hard_links" >&5 7751echo "${ECHO_T}$hard_links" >&6 7752 if test "$hard_links" = no; then 7753 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7754echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7755 need_locks=warn 7756 fi 7757else 7758 need_locks=no 7759fi 7760 7761echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7762echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 7763 7764 runpath_var= 7765 allow_undefined_flag= 7766 enable_shared_with_static_runtimes=no 7767 archive_cmds= 7768 archive_expsym_cmds= 7769 old_archive_From_new_cmds= 7770 old_archive_from_expsyms_cmds= 7771 export_dynamic_flag_spec= 7772 whole_archive_flag_spec= 7773 thread_safe_flag_spec= 7774 hardcode_libdir_flag_spec= 7775 hardcode_libdir_flag_spec_ld= 7776 hardcode_libdir_separator= 7777 hardcode_direct=no 7778 hardcode_minus_L=no 7779 hardcode_shlibpath_var=unsupported 7780 link_all_deplibs=unknown 7781 hardcode_automatic=no 7782 module_cmds= 7783 module_expsym_cmds= 7784 always_export_symbols=no 7785 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7786 # include_expsyms should be a list of space-separated symbols to be *always* 7787 # included in the symbol list 7788 include_expsyms= 7789 # exclude_expsyms can be an extended regexp of symbols to exclude 7790 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7791 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7792 # as well as any symbol that contains `d'. 7793 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7794 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7795 # platforms (ab)use it in PIC code, but their linkers get confused if 7796 # the symbol is explicitly referenced. Since portable code cannot 7797 # rely on this symbol name, it's probably fine to never include it in 7798 # preloaded symbol tables. 7799 extract_expsyms_cmds= 7800 7801 case $host_os in 7802 cygwin* | mingw* | pw32*) 7803 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7804 # When not using gcc, we currently assume that we are using 7805 # Microsoft Visual C++. 7806 if test "$GCC" != yes; then 7807 with_gnu_ld=no 7808 fi 7809 ;; 7810 openbsd*) 7811 with_gnu_ld=no 7812 ;; 7813 esac 7814 7815 ld_shlibs=yes 7816 if test "$with_gnu_ld" = yes; then 7817 # If archive_cmds runs LD, not CC, wlarc should be empty 7818 wlarc='${wl}' 7819 7820 # See if GNU ld supports shared libraries. 7821 case $host_os in 7822 aix3* | aix4* | aix5*) 7823 # On AIX/PPC, the GNU linker is very broken 7824 if test "$host_cpu" != ia64; then 7825 ld_shlibs=no 7826 cat <<EOF 1>&2 7827 7828*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7829*** to be unable to reliably create shared libraries on AIX. 7830*** Therefore, libtool is disabling shared libraries support. If you 7831*** really care for shared libraries, you may want to modify your PATH 7832*** so that a non-GNU linker is found, and then restart. 7833 7834EOF 7835 fi 7836 ;; 7837 7838 amigaos*) 7839 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)' 7840 hardcode_libdir_flag_spec='-L$libdir' 7841 hardcode_minus_L=yes 7842 7843 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7844 # that the semantics of dynamic libraries on AmigaOS, at least up 7845 # to version 4, is to share data among multiple programs linked 7846 # with the same dynamic library. Since this doesn't match the 7847 # behavior of shared libraries on other platforms, we can't use 7848 # them. 7849 ld_shlibs=no 7850 ;; 7851 7852 beos*) 7853 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7854 allow_undefined_flag=unsupported 7855 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7856 # support --undefined. This deserves some investigation. FIXME 7857 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7858 else 7859 ld_shlibs=no 7860 fi 7861 ;; 7862 7863 cygwin* | mingw* | pw32*) 7864 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7865 # as there is no search path for DLLs. 7866 hardcode_libdir_flag_spec='-L$libdir' 7867 allow_undefined_flag=unsupported 7868 always_export_symbols=no 7869 enable_shared_with_static_runtimes=yes 7870 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 7871 7872 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7873 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 7874 # If the export-symbols file already is a .def file (1st line 7875 # is EXPORTS), use it as is; otherwise, prepend... 7876 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7877 cp $export_symbols $output_objdir/$soname.def; 7878 else 7879 echo EXPORTS > $output_objdir/$soname.def; 7880 cat $export_symbols >> $output_objdir/$soname.def; 7881 fi~ 7882 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 7883 else 7884 ld_shlibs=no 7885 fi 7886 ;; 7887 7888 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 7889 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7890 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7891 wlarc= 7892 else 7893 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7894 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7895 fi 7896 ;; 7897 7898 solaris* | sysv5*) 7899 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7900 ld_shlibs=no 7901 cat <<EOF 1>&2 7902 7903*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7904*** create shared libraries on Solaris systems. Therefore, libtool 7905*** is disabling shared libraries support. We urge you to upgrade GNU 7906*** binutils to release 2.9.1 or newer. Another option is to modify 7907*** your PATH or compiler configuration so that the native linker is 7908*** used, and then restart. 7909 7910EOF 7911 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7912 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7913 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7914 else 7915 ld_shlibs=no 7916 fi 7917 ;; 7918 7919 sunos4*) 7920 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7921 wlarc= 7922 hardcode_direct=yes 7923 hardcode_shlibpath_var=no 7924 ;; 7925 7926 linux*) 7927 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7928 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7929 archive_cmds="$tmp_archive_cmds" 7930 supports_anon_versioning=no 7931 case `$LD -v 2>/dev/null` in 7932 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7933 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7934 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7935 *\ 2.11.*) ;; # other 2.11 versions 7936 *) supports_anon_versioning=yes ;; 7937 esac 7938 if test $supports_anon_versioning = yes; then 7939 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7940cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7941$echo "local: *; };" >> $output_objdir/$libname.ver~ 7942 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7943 else 7944 archive_expsym_cmds="$tmp_archive_cmds" 7945 fi 7946 link_all_deplibs=no 7947 else 7948 ld_shlibs=no 7949 fi 7950 ;; 7951 7952 *) 7953 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7954 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7955 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7956 else 7957 ld_shlibs=no 7958 fi 7959 ;; 7960 esac 7961 7962 if test "$ld_shlibs" = yes; then 7963 runpath_var=LD_RUN_PATH 7964 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7965 export_dynamic_flag_spec='${wl}--export-dynamic' 7966 # ancient GNU ld didn't support --whole-archive et. al. 7967 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7968 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7969 else 7970 whole_archive_flag_spec= 7971 fi 7972 fi 7973 else 7974 # PORTME fill in a description of your system's linker (not GNU ld) 7975 case $host_os in 7976 aix3*) 7977 allow_undefined_flag=unsupported 7978 always_export_symbols=yes 7979 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' 7980 # Note: this linker hardcodes the directories in LIBPATH if there 7981 # are no directories specified by -L. 7982 hardcode_minus_L=yes 7983 if test "$GCC" = yes && test -z "$link_static_flag"; then 7984 # Neither direct hardcoding nor static linking is supported with a 7985 # broken collect2. 7986 hardcode_direct=unsupported 7987 fi 7988 ;; 7989 7990 aix4* | aix5*) 7991 if test "$host_cpu" = ia64; then 7992 # On IA64, the linker does run time linking by default, so we don't 7993 # have to do anything special. 7994 aix_use_runtimelinking=no 7995 exp_sym_flag='-Bexport' 7996 no_entry_flag="" 7997 else 7998 # If we're using GNU nm, then we don't want the "-C" option. 7999 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8000 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8001 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 8002 else 8003 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' 8004 fi 8005 aix_use_runtimelinking=no 8006 8007 # Test if we are trying to use run time linking or normal 8008 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8009 # need to do runtime linking. 8010 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 8011 for ld_flag in $LDFLAGS; do 8012 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8013 aix_use_runtimelinking=yes 8014 break 8015 fi 8016 done 8017 esac 8018 8019 exp_sym_flag='-bexport' 8020 no_entry_flag='-bnoentry' 8021 fi 8022 8023 # When large executables or shared objects are built, AIX ld can 8024 # have problems creating the table of contents. If linking a library 8025 # or program results in "error TOC overflow" add -mminimal-toc to 8026 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8027 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8028 8029 archive_cmds='' 8030 hardcode_direct=yes 8031 hardcode_libdir_separator=':' 8032 link_all_deplibs=yes 8033 8034 if test "$GCC" = yes; then 8035 case $host_os in aix4.012|aix4.012.*) 8036 # We only want to do this on AIX 4.2 and lower, the check 8037 # below for broken collect2 doesn't work under 4.3+ 8038 collect2name=`${CC} -print-prog-name=collect2` 8039 if test -f "$collect2name" && \ 8040 strings "$collect2name" | grep resolve_lib_name >/dev/null 8041 then 8042 # We have reworked collect2 8043 hardcode_direct=yes 8044 else 8045 # We have old collect2 8046 hardcode_direct=unsupported 8047 # It fails to find uninstalled libraries when the uninstalled 8048 # path is not listed in the libpath. Setting hardcode_minus_L 8049 # to unsupported forces relinking 8050 hardcode_minus_L=yes 8051 hardcode_libdir_flag_spec='-L$libdir' 8052 hardcode_libdir_separator= 8053 fi 8054 esac 8055 shared_flag='-shared' 8056 else 8057 # not using gcc 8058 if test "$host_cpu" = ia64; then 8059 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8060 # chokes on -Wl,-G. The following line is correct: 8061 shared_flag='-G' 8062 else 8063 if test "$aix_use_runtimelinking" = yes; then 8064 shared_flag='${wl}-G' 8065 else 8066 shared_flag='${wl}-bM:SRE' 8067 fi 8068 fi 8069 fi 8070 8071 # It seems that -bexpall does not export symbols beginning with 8072 # underscore (_), so it is better to generate a list of symbols to export. 8073 always_export_symbols=yes 8074 if test "$aix_use_runtimelinking" = yes; then 8075 # Warning - without using the other runtime loading flags (-brtl), 8076 # -berok will link without error, but may produce a broken library. 8077 allow_undefined_flag='-berok' 8078 # Determine the default libpath from the value encoded in an empty executable. 8079 cat >conftest.$ac_ext <<_ACEOF 8080/* confdefs.h. */ 8081_ACEOF 8082cat confdefs.h >>conftest.$ac_ext 8083cat >>conftest.$ac_ext <<_ACEOF 8084/* end confdefs.h. */ 8085 8086int 8087main () 8088{ 8089 8090 ; 8091 return 0; 8092} 8093_ACEOF 8094rm -f conftest.$ac_objext conftest$ac_exeext 8095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8096 (eval $ac_link) 2>conftest.er1 8097 ac_status=$? 8098 grep -v '^ *+' conftest.er1 >conftest.err 8099 rm -f conftest.er1 8100 cat conftest.err >&5 8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8102 (exit $ac_status); } && 8103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8105 (eval $ac_try) 2>&5 8106 ac_status=$? 8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8108 (exit $ac_status); }; } && 8109 { ac_try='test -s conftest$ac_exeext' 8110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8111 (eval $ac_try) 2>&5 8112 ac_status=$? 8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8114 (exit $ac_status); }; }; then 8115 8116aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8117}'` 8118# Check for a 64-bit object if we didn't find anything. 8119if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8120}'`; fi 8121else 8122 echo "$as_me: failed program was:" >&5 8123sed 's/^/| /' conftest.$ac_ext >&5 8124 8125fi 8126rm -f conftest.err conftest.$ac_objext \ 8127 conftest$ac_exeext conftest.$ac_ext 8128if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8129 8130 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8131 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8132 else 8133 if test "$host_cpu" = ia64; then 8134 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8135 allow_undefined_flag="-z nodefs" 8136 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 8137 else 8138 # Determine the default libpath from the value encoded in an empty executable. 8139 cat >conftest.$ac_ext <<_ACEOF 8140/* confdefs.h. */ 8141_ACEOF 8142cat confdefs.h >>conftest.$ac_ext 8143cat >>conftest.$ac_ext <<_ACEOF 8144/* end confdefs.h. */ 8145 8146int 8147main () 8148{ 8149 8150 ; 8151 return 0; 8152} 8153_ACEOF 8154rm -f conftest.$ac_objext conftest$ac_exeext 8155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8156 (eval $ac_link) 2>conftest.er1 8157 ac_status=$? 8158 grep -v '^ *+' conftest.er1 >conftest.err 8159 rm -f conftest.er1 8160 cat conftest.err >&5 8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8162 (exit $ac_status); } && 8163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8165 (eval $ac_try) 2>&5 8166 ac_status=$? 8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8168 (exit $ac_status); }; } && 8169 { ac_try='test -s conftest$ac_exeext' 8170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8171 (eval $ac_try) 2>&5 8172 ac_status=$? 8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8174 (exit $ac_status); }; }; then 8175 8176aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8177}'` 8178# Check for a 64-bit object if we didn't find anything. 8179if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8180}'`; fi 8181else 8182 echo "$as_me: failed program was:" >&5 8183sed 's/^/| /' conftest.$ac_ext >&5 8184 8185fi 8186rm -f conftest.err conftest.$ac_objext \ 8187 conftest$ac_exeext conftest.$ac_ext 8188if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8189 8190 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8191 # Warning - without using the other run time loading flags, 8192 # -berok will link without error, but may produce a broken library. 8193 no_undefined_flag=' ${wl}-bernotok' 8194 allow_undefined_flag=' ${wl}-berok' 8195 # -bexpall does not export symbols beginning with underscore (_) 8196 always_export_symbols=yes 8197 # Exported symbols can be pulled into shared objects from archives 8198 whole_archive_flag_spec=' ' 8199 archive_cmds_need_lc=yes 8200 # This is similar to how AIX traditionally builds it's shared libraries. 8201 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 8202 fi 8203 fi 8204 ;; 8205 8206 amigaos*) 8207 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)' 8208 hardcode_libdir_flag_spec='-L$libdir' 8209 hardcode_minus_L=yes 8210 # see comment about different semantics on the GNU ld section 8211 ld_shlibs=no 8212 ;; 8213 8214 bsdi4*) 8215 export_dynamic_flag_spec=-rdynamic 8216 ;; 8217 8218 cygwin* | mingw* | pw32*) 8219 # When not using gcc, we currently assume that we are using 8220 # Microsoft Visual C++. 8221 # hardcode_libdir_flag_spec is actually meaningless, as there is 8222 # no search path for DLLs. 8223 hardcode_libdir_flag_spec=' ' 8224 allow_undefined_flag=unsupported 8225 # Tell ltmain to make .lib files, not .a files. 8226 libext=lib 8227 # Tell ltmain to make .dll files, not .so files. 8228 shrext_cmds=".dll" 8229 # FIXME: Setting linknames here is a bad hack. 8230 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8231 # The linker will automatically build a .lib file if we build a DLL. 8232 old_archive_From_new_cmds='true' 8233 # FIXME: Should let the user specify the lib program. 8234 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8235 fix_srcfile_path='`cygpath -w "$srcfile"`' 8236 enable_shared_with_static_runtimes=yes 8237 ;; 8238 8239 darwin* | rhapsody*) 8240 if test "$GXX" = yes ; then 8241 archive_cmds_need_lc=no 8242 case "$host_os" in 8243 rhapsody* | darwin1.[012]) 8244 allow_undefined_flag='-undefined suppress' 8245 ;; 8246 *) # Darwin 1.3 on 8247 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8248 allow_undefined_flag='-flat_namespace -undefined suppress' 8249 else 8250 case ${MACOSX_DEPLOYMENT_TARGET} in 8251 10.[012]) 8252 allow_undefined_flag='-flat_namespace -undefined suppress' 8253 ;; 8254 10.*) 8255 allow_undefined_flag='-undefined dynamic_lookup' 8256 ;; 8257 esac 8258 fi 8259 ;; 8260 esac 8261 lt_int_apple_cc_single_mod=no 8262 output_verbose_link_cmd='echo' 8263 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 8264 lt_int_apple_cc_single_mod=yes 8265 fi 8266 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 8267 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8268 else 8269 archive_cmds='$CC -r ${wl}-bind_at_load -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' 8270 fi 8271 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8272 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 8273 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 8274 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8275 else 8276 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8277 fi 8278 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8279 hardcode_direct=no 8280 hardcode_automatic=yes 8281 hardcode_shlibpath_var=unsupported 8282 whole_archive_flag_spec='-all_load $convenience' 8283 link_all_deplibs=yes 8284 else 8285 ld_shlibs=no 8286 fi 8287 ;; 8288 8289 dgux*) 8290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8291 hardcode_libdir_flag_spec='-L$libdir' 8292 hardcode_shlibpath_var=no 8293 ;; 8294 8295 freebsd1*) 8296 ld_shlibs=no 8297 ;; 8298 8299 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8300 # support. Future versions do this automatically, but an explicit c++rt0.o 8301 # does not break anything, and helps significantly (at the cost of a little 8302 # extra space). 8303 freebsd2.2*) 8304 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8305 hardcode_libdir_flag_spec='-R$libdir' 8306 hardcode_direct=yes 8307 hardcode_shlibpath_var=no 8308 ;; 8309 8310 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8311 freebsd2*) 8312 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8313 hardcode_direct=yes 8314 hardcode_minus_L=yes 8315 hardcode_shlibpath_var=no 8316 ;; 8317 8318 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8319 freebsd* | kfreebsd*-gnu) 8320 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8321 hardcode_libdir_flag_spec='-R$libdir' 8322 hardcode_direct=yes 8323 hardcode_shlibpath_var=no 8324 ;; 8325 8326 hpux9*) 8327 if test "$GCC" = yes; then 8328 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 8329 else 8330 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' 8331 fi 8332 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8333 hardcode_libdir_separator=: 8334 hardcode_direct=yes 8335 8336 # hardcode_minus_L: Not really in the search PATH, 8337 # but as the default location of the library. 8338 hardcode_minus_L=yes 8339 export_dynamic_flag_spec='${wl}-E' 8340 ;; 8341 8342 hpux10* | hpux11*) 8343 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8344 case "$host_cpu" in 8345 hppa*64*|ia64*) 8346 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8347 ;; 8348 *) 8349 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8350 ;; 8351 esac 8352 else 8353 case "$host_cpu" in 8354 hppa*64*|ia64*) 8355 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 8356 ;; 8357 *) 8358 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8359 ;; 8360 esac 8361 fi 8362 if test "$with_gnu_ld" = no; then 8363 case "$host_cpu" in 8364 hppa*64*) 8365 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8366 hardcode_libdir_flag_spec_ld='+b $libdir' 8367 hardcode_libdir_separator=: 8368 hardcode_direct=no 8369 hardcode_shlibpath_var=no 8370 ;; 8371 ia64*) 8372 hardcode_libdir_flag_spec='-L$libdir' 8373 hardcode_direct=no 8374 hardcode_shlibpath_var=no 8375 8376 # hardcode_minus_L: Not really in the search PATH, 8377 # but as the default location of the library. 8378 hardcode_minus_L=yes 8379 ;; 8380 *) 8381 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8382 hardcode_libdir_separator=: 8383 hardcode_direct=yes 8384 export_dynamic_flag_spec='${wl}-E' 8385 8386 # hardcode_minus_L: Not really in the search PATH, 8387 # but as the default location of the library. 8388 hardcode_minus_L=yes 8389 ;; 8390 esac 8391 fi 8392 ;; 8393 8394 irix5* | irix6* | nonstopux*) 8395 if test "$GCC" = yes; then 8396 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8397 else 8398 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 8399 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8400 fi 8401 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8402 hardcode_libdir_separator=: 8403 link_all_deplibs=yes 8404 ;; 8405 8406 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 8407 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8408 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8409 else 8410 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8411 fi 8412 hardcode_libdir_flag_spec='-R$libdir' 8413 hardcode_direct=yes 8414 hardcode_shlibpath_var=no 8415 ;; 8416 8417 newsos6) 8418 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8419 hardcode_direct=yes 8420 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8421 hardcode_libdir_separator=: 8422 hardcode_shlibpath_var=no 8423 ;; 8424 8425 openbsd*) 8426 hardcode_direct=yes 8427 hardcode_shlibpath_var=no 8428 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8429 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8430 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8431 export_dynamic_flag_spec='${wl}-E' 8432 else 8433 case $host_os in 8434 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8435 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8436 hardcode_libdir_flag_spec='-R$libdir' 8437 ;; 8438 *) 8439 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8440 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8441 ;; 8442 esac 8443 fi 8444 ;; 8445 8446 os2*) 8447 hardcode_libdir_flag_spec='-L$libdir' 8448 hardcode_minus_L=yes 8449 allow_undefined_flag=unsupported 8450 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' 8451 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8452 ;; 8453 8454 osf3*) 8455 if test "$GCC" = yes; then 8456 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8457 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8458 else 8459 allow_undefined_flag=' -expect_unresolved \*' 8460 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 8461 fi 8462 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8463 hardcode_libdir_separator=: 8464 ;; 8465 8466 osf4* | osf5*) # as osf3* with the addition of -msym flag 8467 if test "$GCC" = yes; then 8468 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8469 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8470 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8471 else 8472 allow_undefined_flag=' -expect_unresolved \*' 8473 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 8474 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8475 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 8476 8477 # Both c and cxx compiler support -rpath directly 8478 hardcode_libdir_flag_spec='-rpath $libdir' 8479 fi 8480 hardcode_libdir_separator=: 8481 ;; 8482 8483 sco3.2v5*) 8484 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8485 hardcode_shlibpath_var=no 8486 export_dynamic_flag_spec='${wl}-Bexport' 8487 runpath_var=LD_RUN_PATH 8488 hardcode_runpath_var=yes 8489 ;; 8490 8491 solaris*) 8492 no_undefined_flag=' -z text' 8493 if test "$GCC" = yes; then 8494 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8495 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8496 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8497 else 8498 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8499 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8500 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8501 fi 8502 hardcode_libdir_flag_spec='-R$libdir' 8503 hardcode_shlibpath_var=no 8504 case $host_os in 8505 solaris2.[0-5] | solaris2.[0-5].*) ;; 8506 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 8507 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 8508 esac 8509 link_all_deplibs=yes 8510 ;; 8511 8512 sunos4*) 8513 if test "x$host_vendor" = xsequent; then 8514 # Use $CC to link under sequent, because it throws in some extra .o 8515 # files that make .init and .fini sections work. 8516 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8517 else 8518 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8519 fi 8520 hardcode_libdir_flag_spec='-L$libdir' 8521 hardcode_direct=yes 8522 hardcode_minus_L=yes 8523 hardcode_shlibpath_var=no 8524 ;; 8525 8526 sysv4) 8527 case $host_vendor in 8528 sni) 8529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8530 hardcode_direct=yes # is this really true??? 8531 ;; 8532 siemens) 8533 ## LD is ld it makes a PLAMLIB 8534 ## CC just makes a GrossModule. 8535 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8536 reload_cmds='$CC -r -o $output$reload_objs' 8537 hardcode_direct=no 8538 ;; 8539 motorola) 8540 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8541 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8542 ;; 8543 esac 8544 runpath_var='LD_RUN_PATH' 8545 hardcode_shlibpath_var=no 8546 ;; 8547 8548 sysv4.3*) 8549 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8550 hardcode_shlibpath_var=no 8551 export_dynamic_flag_spec='-Bexport' 8552 ;; 8553 8554 sysv4*MP*) 8555 if test -d /usr/nec; then 8556 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8557 hardcode_shlibpath_var=no 8558 runpath_var=LD_RUN_PATH 8559 hardcode_runpath_var=yes 8560 ld_shlibs=yes 8561 fi 8562 ;; 8563 8564 sysv4.2uw2*) 8565 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8566 hardcode_direct=yes 8567 hardcode_minus_L=no 8568 hardcode_shlibpath_var=no 8569 hardcode_runpath_var=yes 8570 runpath_var=LD_RUN_PATH 8571 ;; 8572 8573 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 8574 no_undefined_flag='${wl}-z ${wl}text' 8575 if test "$GCC" = yes; then 8576 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8577 else 8578 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8579 fi 8580 runpath_var='LD_RUN_PATH' 8581 hardcode_shlibpath_var=no 8582 ;; 8583 8584 sysv5*) 8585 no_undefined_flag=' -z text' 8586 # $CC -shared without GNU ld will not create a library from C++ 8587 # object files and a static libstdc++, better avoid it by now 8588 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8589 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8590 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8591 hardcode_libdir_flag_spec= 8592 hardcode_shlibpath_var=no 8593 runpath_var='LD_RUN_PATH' 8594 ;; 8595 8596 uts4*) 8597 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8598 hardcode_libdir_flag_spec='-L$libdir' 8599 hardcode_shlibpath_var=no 8600 ;; 8601 8602 *) 8603 ld_shlibs=no 8604 ;; 8605 esac 8606 fi 8607 8608echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8609echo "${ECHO_T}$ld_shlibs" >&6 8610test "$ld_shlibs" = no && can_build_shared=no 8611 8612variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 8613if test "$GCC" = yes; then 8614 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 8615fi 8616 8617# 8618# Do we need to explicitly link libc? 8619# 8620case "x$archive_cmds_need_lc" in 8621x|xyes) 8622 # Assume -lc should be added 8623 archive_cmds_need_lc=yes 8624 8625 if test "$enable_shared" = yes && test "$GCC" = yes; then 8626 case $archive_cmds in 8627 *'~'*) 8628 # FIXME: we may have to deal with multi-command sequences. 8629 ;; 8630 '$CC '*) 8631 # Test whether the compiler implicitly links with -lc since on some 8632 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8633 # to ld, don't add -lc before -lgcc. 8634 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8635echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 8636 $rm conftest* 8637 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8638 8639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8640 (eval $ac_compile) 2>&5 8641 ac_status=$? 8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8643 (exit $ac_status); } 2>conftest.err; then 8644 soname=conftest 8645 lib=conftest 8646 libobjs=conftest.$ac_objext 8647 deplibs= 8648 wl=$lt_prog_compiler_wl 8649 compiler_flags=-v 8650 linker_flags=-v 8651 verstring= 8652 output_objdir=. 8653 libname=conftest 8654 lt_save_allow_undefined_flag=$allow_undefined_flag 8655 allow_undefined_flag= 8656 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8657 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8658 ac_status=$? 8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8660 (exit $ac_status); } 8661 then 8662 archive_cmds_need_lc=no 8663 else 8664 archive_cmds_need_lc=yes 8665 fi 8666 allow_undefined_flag=$lt_save_allow_undefined_flag 8667 else 8668 cat conftest.err 1>&5 8669 fi 8670 $rm conftest* 8671 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8672echo "${ECHO_T}$archive_cmds_need_lc" >&6 8673 ;; 8674 esac 8675 fi 8676 ;; 8677esac 8678 8679echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8680echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 8681library_names_spec= 8682libname_spec='lib$name' 8683soname_spec= 8684shrext_cmds=".so" 8685postinstall_cmds= 8686postuninstall_cmds= 8687finish_cmds= 8688finish_eval= 8689shlibpath_var= 8690shlibpath_overrides_runpath=unknown 8691version_type=none 8692dynamic_linker="$host_os ld.so" 8693sys_lib_dlsearch_path_spec="/lib /usr/lib" 8694if test "$GCC" = yes; then 8695 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8696 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8697 # if the path contains ";" then we assume it to be the separator 8698 # otherwise default to the standard path separator (i.e. ":") - it is 8699 # assumed that no part of a normal pathname contains ";" but that should 8700 # okay in the real world where ";" in dirpaths is itself problematic. 8701 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8702 else 8703 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8704 fi 8705else 8706 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8707fi 8708need_lib_prefix=unknown 8709hardcode_into_libs=no 8710 8711# when you set need_version to no, make sure it does not cause -set_version 8712# flags to be left without arguments 8713need_version=unknown 8714 8715case $host_os in 8716aix3*) 8717 version_type=linux 8718 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8719 shlibpath_var=LIBPATH 8720 8721 # AIX 3 has no versioning support, so we append a major version to the name. 8722 soname_spec='${libname}${release}${shared_ext}$major' 8723 ;; 8724 8725aix4* | aix5*) 8726 version_type=linux 8727 need_lib_prefix=no 8728 need_version=no 8729 hardcode_into_libs=yes 8730 if test "$host_cpu" = ia64; then 8731 # AIX 5 supports IA64 8732 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8733 shlibpath_var=LD_LIBRARY_PATH 8734 else 8735 # With GCC up to 2.95.x, collect2 would create an import file 8736 # for dependence libraries. The import file would start with 8737 # the line `#! .'. This would cause the generated library to 8738 # depend on `.', always an invalid library. This was fixed in 8739 # development snapshots of GCC prior to 3.0. 8740 case $host_os in 8741 aix4 | aix4.[01] | aix4.[01].*) 8742 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8743 echo ' yes ' 8744 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8745 : 8746 else 8747 can_build_shared=no 8748 fi 8749 ;; 8750 esac 8751 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8752 # soname into executable. Probably we can add versioning support to 8753 # collect2, so additional links can be useful in future. 8754 if test "$aix_use_runtimelinking" = yes; then 8755 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8756 # instead of lib<name>.a to let people know that these are not 8757 # typical AIX shared libraries. 8758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8759 else 8760 # We preserve .a as extension for shared libraries through AIX4.2 8761 # and later when we are not doing run time linking. 8762 library_names_spec='${libname}${release}.a $libname.a' 8763 soname_spec='${libname}${release}${shared_ext}$major' 8764 fi 8765 shlibpath_var=LIBPATH 8766 fi 8767 ;; 8768 8769amigaos*) 8770 library_names_spec='$libname.ixlibrary $libname.a' 8771 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8772 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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' 8773 ;; 8774 8775beos*) 8776 library_names_spec='${libname}${shared_ext}' 8777 dynamic_linker="$host_os ld.so" 8778 shlibpath_var=LIBRARY_PATH 8779 ;; 8780 8781bsdi4*) 8782 version_type=linux 8783 need_version=no 8784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8785 soname_spec='${libname}${release}${shared_ext}$major' 8786 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8787 shlibpath_var=LD_LIBRARY_PATH 8788 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8789 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8790 # the default ld.so.conf also contains /usr/contrib/lib and 8791 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8792 # libtool to hard-code these into programs 8793 ;; 8794 8795cygwin* | mingw* | pw32*) 8796 version_type=windows 8797 shrext_cmds=".dll" 8798 need_version=no 8799 need_lib_prefix=no 8800 8801 case $GCC,$host_os in 8802 yes,cygwin* | yes,mingw* | yes,pw32*) 8803 library_names_spec='$libname.dll.a' 8804 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8805 postinstall_cmds='base_file=`basename \${file}`~ 8806 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8807 dldir=$destdir/`dirname \$dlpath`~ 8808 test -d \$dldir || mkdir -p \$dldir~ 8809 $install_prog $dir/$dlname \$dldir/$dlname' 8810 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8811 dlpath=$dir/\$dldll~ 8812 $rm \$dlpath' 8813 shlibpath_overrides_runpath=yes 8814 8815 case $host_os in 8816 cygwin*) 8817 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8818 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8819 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8820 ;; 8821 mingw*) 8822 # MinGW DLLs use traditional 'lib' prefix 8823 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8824 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8825 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8826 # It is most probably a Windows format PATH printed by 8827 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8828 # path with ; separators, and with drive letters. We can handle the 8829 # drive letters (cygwin fileutils understands them), so leave them, 8830 # especially as we might pass files found there to a mingw objdump, 8831 # which wouldn't understand a cygwinified path. Ahh. 8832 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8833 else 8834 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8835 fi 8836 ;; 8837 pw32*) 8838 # pw32 DLLs use 'pw' prefix rather than 'lib' 8839 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 8840 ;; 8841 esac 8842 ;; 8843 8844 *) 8845 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8846 ;; 8847 esac 8848 dynamic_linker='Win32 ld.exe' 8849 # FIXME: first we should search . and the directory the executable is in 8850 shlibpath_var=PATH 8851 ;; 8852 8853darwin* | rhapsody*) 8854 dynamic_linker="$host_os dyld" 8855 version_type=darwin 8856 need_lib_prefix=no 8857 need_version=no 8858 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8859 soname_spec='${libname}${release}${major}$shared_ext' 8860 shlibpath_overrides_runpath=yes 8861 shlibpath_var=DYLD_LIBRARY_PATH 8862 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 8863 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8864 if test "$GCC" = yes; then 8865 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 8866 else 8867 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8868 fi 8869 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8870 ;; 8871 8872dgux*) 8873 version_type=linux 8874 need_lib_prefix=no 8875 need_version=no 8876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8877 soname_spec='${libname}${release}${shared_ext}$major' 8878 shlibpath_var=LD_LIBRARY_PATH 8879 ;; 8880 8881freebsd1*) 8882 dynamic_linker=no 8883 ;; 8884 8885kfreebsd*-gnu) 8886 version_type=linux 8887 need_lib_prefix=no 8888 need_version=no 8889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8890 soname_spec='${libname}${release}${shared_ext}$major' 8891 shlibpath_var=LD_LIBRARY_PATH 8892 shlibpath_overrides_runpath=no 8893 hardcode_into_libs=yes 8894 dynamic_linker='GNU ld.so' 8895 ;; 8896 8897freebsd*) 8898 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 8899 version_type=freebsd-$objformat 8900 case $version_type in 8901 freebsd-elf*) 8902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8903 need_version=no 8904 need_lib_prefix=no 8905 ;; 8906 freebsd-*) 8907 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8908 need_version=yes 8909 ;; 8910 esac 8911 shlibpath_var=LD_LIBRARY_PATH 8912 case $host_os in 8913 freebsd2*) 8914 shlibpath_overrides_runpath=yes 8915 ;; 8916 freebsd3.01* | freebsdelf3.01*) 8917 shlibpath_overrides_runpath=yes 8918 hardcode_into_libs=yes 8919 ;; 8920 *) # from 3.2 on 8921 shlibpath_overrides_runpath=no 8922 hardcode_into_libs=yes 8923 ;; 8924 esac 8925 ;; 8926 8927gnu*) 8928 version_type=linux 8929 need_lib_prefix=no 8930 need_version=no 8931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8932 soname_spec='${libname}${release}${shared_ext}$major' 8933 shlibpath_var=LD_LIBRARY_PATH 8934 hardcode_into_libs=yes 8935 ;; 8936 8937hpux9* | hpux10* | hpux11*) 8938 # Give a soname corresponding to the major version so that dld.sl refuses to 8939 # link against other versions. 8940 version_type=sunos 8941 need_lib_prefix=no 8942 need_version=no 8943 case "$host_cpu" in 8944 ia64*) 8945 shrext_cmds='.so' 8946 hardcode_into_libs=yes 8947 dynamic_linker="$host_os dld.so" 8948 shlibpath_var=LD_LIBRARY_PATH 8949 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8951 soname_spec='${libname}${release}${shared_ext}$major' 8952 if test "X$HPUX_IA64_MODE" = X32; then 8953 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8954 else 8955 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8956 fi 8957 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8958 ;; 8959 hppa*64*) 8960 shrext_cmds='.sl' 8961 hardcode_into_libs=yes 8962 dynamic_linker="$host_os dld.sl" 8963 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8964 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8966 soname_spec='${libname}${release}${shared_ext}$major' 8967 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8968 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8969 ;; 8970 *) 8971 shrext_cmds='.sl' 8972 dynamic_linker="$host_os dld.sl" 8973 shlibpath_var=SHLIB_PATH 8974 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8976 soname_spec='${libname}${release}${shared_ext}$major' 8977 ;; 8978 esac 8979 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8980 postinstall_cmds='chmod 555 $lib' 8981 ;; 8982 8983irix5* | irix6* | nonstopux*) 8984 case $host_os in 8985 nonstopux*) version_type=nonstopux ;; 8986 *) 8987 if test "$lt_cv_prog_gnu_ld" = yes; then 8988 version_type=linux 8989 else 8990 version_type=irix 8991 fi ;; 8992 esac 8993 need_lib_prefix=no 8994 need_version=no 8995 soname_spec='${libname}${release}${shared_ext}$major' 8996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8997 case $host_os in 8998 irix5* | nonstopux*) 8999 libsuff= shlibsuff= 9000 ;; 9001 *) 9002 case $LD in # libtool.m4 will add one of these switches to LD 9003 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9004 libsuff= shlibsuff= libmagic=32-bit;; 9005 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9006 libsuff=32 shlibsuff=N32 libmagic=N32;; 9007 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9008 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9009 *) libsuff= shlibsuff= libmagic=never-match;; 9010 esac 9011 ;; 9012 esac 9013 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9014 shlibpath_overrides_runpath=no 9015 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9016 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9017 hardcode_into_libs=yes 9018 ;; 9019 9020# No shared lib support for Linux oldld, aout, or coff. 9021linux*oldld* | linux*aout* | linux*coff*) 9022 dynamic_linker=no 9023 ;; 9024 9025# This must be Linux ELF. 9026linux*) 9027 version_type=linux 9028 need_lib_prefix=no 9029 need_version=no 9030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9031 soname_spec='${libname}${release}${shared_ext}$major' 9032 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9033 shlibpath_var=LD_LIBRARY_PATH 9034 shlibpath_overrides_runpath=no 9035 # This implies no fast_install, which is unacceptable. 9036 # Some rework will be needed to allow for fast_install 9037 # before this can be enabled. 9038 hardcode_into_libs=yes 9039 9040 # Append ld.so.conf contents to the search path 9041 if test -f /etc/ld.so.conf; then 9042 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 9043 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9044 fi 9045 9046 # We used to test for /lib/ld.so.1 and disable shared libraries on 9047 # powerpc, because MkLinux only supported shared libraries with the 9048 # GNU dynamic linker. Since this was broken with cross compilers, 9049 # most powerpc-linux boxes support dynamic linking these days and 9050 # people can always --disable-shared, the test was removed, and we 9051 # assume the GNU/Linux dynamic linker is in use. 9052 dynamic_linker='GNU/Linux ld.so' 9053 ;; 9054 9055netbsdelf*-gnu) 9056 version_type=linux 9057 need_lib_prefix=no 9058 need_version=no 9059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9060 soname_spec='${libname}${release}${shared_ext}$major' 9061 shlibpath_var=LD_LIBRARY_PATH 9062 shlibpath_overrides_runpath=no 9063 hardcode_into_libs=yes 9064 dynamic_linker='NetBSD ld.elf_so' 9065 ;; 9066 9067knetbsd*-gnu) 9068 version_type=linux 9069 need_lib_prefix=no 9070 need_version=no 9071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9072 soname_spec='${libname}${release}${shared_ext}$major' 9073 shlibpath_var=LD_LIBRARY_PATH 9074 shlibpath_overrides_runpath=no 9075 hardcode_into_libs=yes 9076 dynamic_linker='GNU ld.so' 9077 ;; 9078 9079netbsd*) 9080 version_type=sunos 9081 need_lib_prefix=no 9082 need_version=no 9083 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9085 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9086 dynamic_linker='NetBSD (a.out) ld.so' 9087 else 9088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9089 soname_spec='${libname}${release}${shared_ext}$major' 9090 dynamic_linker='NetBSD ld.elf_so' 9091 fi 9092 shlibpath_var=LD_LIBRARY_PATH 9093 shlibpath_overrides_runpath=yes 9094 hardcode_into_libs=yes 9095 ;; 9096 9097newsos6) 9098 version_type=linux 9099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9100 shlibpath_var=LD_LIBRARY_PATH 9101 shlibpath_overrides_runpath=yes 9102 ;; 9103 9104nto-qnx*) 9105 version_type=linux 9106 need_lib_prefix=no 9107 need_version=no 9108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9109 soname_spec='${libname}${release}${shared_ext}$major' 9110 shlibpath_var=LD_LIBRARY_PATH 9111 shlibpath_overrides_runpath=yes 9112 ;; 9113 9114openbsd*) 9115 version_type=sunos 9116 need_lib_prefix=no 9117 need_version=yes 9118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9120 shlibpath_var=LD_LIBRARY_PATH 9121 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9122 case $host_os in 9123 openbsd2.[89] | openbsd2.[89].*) 9124 shlibpath_overrides_runpath=no 9125 ;; 9126 *) 9127 shlibpath_overrides_runpath=yes 9128 ;; 9129 esac 9130 else 9131 shlibpath_overrides_runpath=yes 9132 fi 9133 ;; 9134 9135os2*) 9136 libname_spec='$name' 9137 shrext_cmds=".dll" 9138 need_lib_prefix=no 9139 library_names_spec='$libname${shared_ext} $libname.a' 9140 dynamic_linker='OS/2 ld.exe' 9141 shlibpath_var=LIBPATH 9142 ;; 9143 9144osf3* | osf4* | osf5*) 9145 version_type=osf 9146 need_lib_prefix=no 9147 need_version=no 9148 soname_spec='${libname}${release}${shared_ext}$major' 9149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9150 shlibpath_var=LD_LIBRARY_PATH 9151 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9152 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9153 ;; 9154 9155sco3.2v5*) 9156 version_type=osf 9157 soname_spec='${libname}${release}${shared_ext}$major' 9158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9159 shlibpath_var=LD_LIBRARY_PATH 9160 ;; 9161 9162solaris*) 9163 version_type=linux 9164 need_lib_prefix=no 9165 need_version=no 9166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9167 soname_spec='${libname}${release}${shared_ext}$major' 9168 shlibpath_var=LD_LIBRARY_PATH 9169 shlibpath_overrides_runpath=yes 9170 hardcode_into_libs=yes 9171 # ldd complains unless libraries are executable 9172 postinstall_cmds='chmod +x $lib' 9173 ;; 9174 9175sunos4*) 9176 version_type=sunos 9177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9178 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9179 shlibpath_var=LD_LIBRARY_PATH 9180 shlibpath_overrides_runpath=yes 9181 if test "$with_gnu_ld" = yes; then 9182 need_lib_prefix=no 9183 fi 9184 need_version=yes 9185 ;; 9186 9187sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9188 version_type=linux 9189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9190 soname_spec='${libname}${release}${shared_ext}$major' 9191 shlibpath_var=LD_LIBRARY_PATH 9192 case $host_vendor in 9193 sni) 9194 shlibpath_overrides_runpath=no 9195 need_lib_prefix=no 9196 export_dynamic_flag_spec='${wl}-Blargedynsym' 9197 runpath_var=LD_RUN_PATH 9198 ;; 9199 siemens) 9200 need_lib_prefix=no 9201 ;; 9202 motorola) 9203 need_lib_prefix=no 9204 need_version=no 9205 shlibpath_overrides_runpath=no 9206 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9207 ;; 9208 esac 9209 ;; 9210 9211sysv4*MP*) 9212 if test -d /usr/nec ;then 9213 version_type=linux 9214 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9215 soname_spec='$libname${shared_ext}.$major' 9216 shlibpath_var=LD_LIBRARY_PATH 9217 fi 9218 ;; 9219 9220uts4*) 9221 version_type=linux 9222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9223 soname_spec='${libname}${release}${shared_ext}$major' 9224 shlibpath_var=LD_LIBRARY_PATH 9225 ;; 9226 9227*) 9228 dynamic_linker=no 9229 ;; 9230esac 9231echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9232echo "${ECHO_T}$dynamic_linker" >&6 9233test "$dynamic_linker" = no && can_build_shared=no 9234 9235echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9236echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 9237hardcode_action= 9238if test -n "$hardcode_libdir_flag_spec" || \ 9239 test -n "$runpath_var " || \ 9240 test "X$hardcode_automatic"="Xyes" ; then 9241 9242 # We can hardcode non-existant directories. 9243 if test "$hardcode_direct" != no && 9244 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9245 # have to relink, otherwise we might link with an installed library 9246 # when we should be linking with a yet-to-be-installed one 9247 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9248 test "$hardcode_minus_L" != no; then 9249 # Linking always hardcodes the temporary library directory. 9250 hardcode_action=relink 9251 else 9252 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9253 hardcode_action=immediate 9254 fi 9255else 9256 # We cannot hardcode anything, or else we can only hardcode existing 9257 # directories. 9258 hardcode_action=unsupported 9259fi 9260echo "$as_me:$LINENO: result: $hardcode_action" >&5 9261echo "${ECHO_T}$hardcode_action" >&6 9262 9263if test "$hardcode_action" = relink; then 9264 # Fast installation is not supported 9265 enable_fast_install=no 9266elif test "$shlibpath_overrides_runpath" = yes || 9267 test "$enable_shared" = no; then 9268 # Fast installation is not necessary 9269 enable_fast_install=needless 9270fi 9271 9272striplib= 9273old_striplib= 9274echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9275echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 9276if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9277 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9278 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9279 echo "$as_me:$LINENO: result: yes" >&5 9280echo "${ECHO_T}yes" >&6 9281else 9282# FIXME - insert some real tests, host_os isn't really good enough 9283 case $host_os in 9284 darwin*) 9285 if test -n "$STRIP" ; then 9286 striplib="$STRIP -x" 9287 echo "$as_me:$LINENO: result: yes" >&5 9288echo "${ECHO_T}yes" >&6 9289 else 9290 echo "$as_me:$LINENO: result: no" >&5 9291echo "${ECHO_T}no" >&6 9292fi 9293 ;; 9294 *) 9295 echo "$as_me:$LINENO: result: no" >&5 9296echo "${ECHO_T}no" >&6 9297 ;; 9298 esac 9299fi 9300 9301if test "x$enable_dlopen" != xyes; then 9302 enable_dlopen=unknown 9303 enable_dlopen_self=unknown 9304 enable_dlopen_self_static=unknown 9305else 9306 lt_cv_dlopen=no 9307 lt_cv_dlopen_libs= 9308 9309 case $host_os in 9310 beos*) 9311 lt_cv_dlopen="load_add_on" 9312 lt_cv_dlopen_libs= 9313 lt_cv_dlopen_self=yes 9314 ;; 9315 9316 mingw* | pw32*) 9317 lt_cv_dlopen="LoadLibrary" 9318 lt_cv_dlopen_libs= 9319 ;; 9320 9321 cygwin*) 9322 lt_cv_dlopen="dlopen" 9323 lt_cv_dlopen_libs= 9324 ;; 9325 9326 darwin*) 9327 # if libdl is installed we need to link against it 9328 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9329echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 9330if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9331 echo $ECHO_N "(cached) $ECHO_C" >&6 9332else 9333 ac_check_lib_save_LIBS=$LIBS 9334LIBS="-ldl $LIBS" 9335cat >conftest.$ac_ext <<_ACEOF 9336/* confdefs.h. */ 9337_ACEOF 9338cat confdefs.h >>conftest.$ac_ext 9339cat >>conftest.$ac_ext <<_ACEOF 9340/* end confdefs.h. */ 9341 9342/* Override any gcc2 internal prototype to avoid an error. */ 9343#ifdef __cplusplus 9344extern "C" 9345#endif 9346/* We use char because int might match the return type of a gcc2 9347 builtin and then its argument prototype would still apply. */ 9348char dlopen (); 9349int 9350main () 9351{ 9352dlopen (); 9353 ; 9354 return 0; 9355} 9356_ACEOF 9357rm -f conftest.$ac_objext conftest$ac_exeext 9358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9359 (eval $ac_link) 2>conftest.er1 9360 ac_status=$? 9361 grep -v '^ *+' conftest.er1 >conftest.err 9362 rm -f conftest.er1 9363 cat conftest.err >&5 9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9365 (exit $ac_status); } && 9366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9368 (eval $ac_try) 2>&5 9369 ac_status=$? 9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9371 (exit $ac_status); }; } && 9372 { ac_try='test -s conftest$ac_exeext' 9373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9374 (eval $ac_try) 2>&5 9375 ac_status=$? 9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9377 (exit $ac_status); }; }; then 9378 ac_cv_lib_dl_dlopen=yes 9379else 9380 echo "$as_me: failed program was:" >&5 9381sed 's/^/| /' conftest.$ac_ext >&5 9382 9383ac_cv_lib_dl_dlopen=no 9384fi 9385rm -f conftest.err conftest.$ac_objext \ 9386 conftest$ac_exeext conftest.$ac_ext 9387LIBS=$ac_check_lib_save_LIBS 9388fi 9389echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9390echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 9391if test $ac_cv_lib_dl_dlopen = yes; then 9392 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9393else 9394 9395 lt_cv_dlopen="dyld" 9396 lt_cv_dlopen_libs= 9397 lt_cv_dlopen_self=yes 9398 9399fi 9400 9401 ;; 9402 9403 *) 9404 echo "$as_me:$LINENO: checking for shl_load" >&5 9405echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 9406if test "${ac_cv_func_shl_load+set}" = set; then 9407 echo $ECHO_N "(cached) $ECHO_C" >&6 9408else 9409 cat >conftest.$ac_ext <<_ACEOF 9410/* confdefs.h. */ 9411_ACEOF 9412cat confdefs.h >>conftest.$ac_ext 9413cat >>conftest.$ac_ext <<_ACEOF 9414/* end confdefs.h. */ 9415/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9416 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9417#define shl_load innocuous_shl_load 9418 9419/* System header to define __stub macros and hopefully few prototypes, 9420 which can conflict with char shl_load (); below. 9421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9422 <limits.h> exists even on freestanding compilers. */ 9423 9424#ifdef __STDC__ 9425# include <limits.h> 9426#else 9427# include <assert.h> 9428#endif 9429 9430#undef shl_load 9431 9432/* Override any gcc2 internal prototype to avoid an error. */ 9433#ifdef __cplusplus 9434extern "C" 9435{ 9436#endif 9437/* We use char because int might match the return type of a gcc2 9438 builtin and then its argument prototype would still apply. */ 9439char shl_load (); 9440/* The GNU C library defines this for functions which it implements 9441 to always fail with ENOSYS. Some functions are actually named 9442 something starting with __ and the normal name is an alias. */ 9443#if defined (__stub_shl_load) || defined (__stub___shl_load) 9444choke me 9445#else 9446char (*f) () = shl_load; 9447#endif 9448#ifdef __cplusplus 9449} 9450#endif 9451 9452int 9453main () 9454{ 9455return f != shl_load; 9456 ; 9457 return 0; 9458} 9459_ACEOF 9460rm -f conftest.$ac_objext conftest$ac_exeext 9461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9462 (eval $ac_link) 2>conftest.er1 9463 ac_status=$? 9464 grep -v '^ *+' conftest.er1 >conftest.err 9465 rm -f conftest.er1 9466 cat conftest.err >&5 9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9468 (exit $ac_status); } && 9469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9471 (eval $ac_try) 2>&5 9472 ac_status=$? 9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9474 (exit $ac_status); }; } && 9475 { ac_try='test -s conftest$ac_exeext' 9476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9477 (eval $ac_try) 2>&5 9478 ac_status=$? 9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9480 (exit $ac_status); }; }; then 9481 ac_cv_func_shl_load=yes 9482else 9483 echo "$as_me: failed program was:" >&5 9484sed 's/^/| /' conftest.$ac_ext >&5 9485 9486ac_cv_func_shl_load=no 9487fi 9488rm -f conftest.err conftest.$ac_objext \ 9489 conftest$ac_exeext conftest.$ac_ext 9490fi 9491echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9492echo "${ECHO_T}$ac_cv_func_shl_load" >&6 9493if test $ac_cv_func_shl_load = yes; then 9494 lt_cv_dlopen="shl_load" 9495else 9496 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9497echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 9498if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9499 echo $ECHO_N "(cached) $ECHO_C" >&6 9500else 9501 ac_check_lib_save_LIBS=$LIBS 9502LIBS="-ldld $LIBS" 9503cat >conftest.$ac_ext <<_ACEOF 9504/* confdefs.h. */ 9505_ACEOF 9506cat confdefs.h >>conftest.$ac_ext 9507cat >>conftest.$ac_ext <<_ACEOF 9508/* end confdefs.h. */ 9509 9510/* Override any gcc2 internal prototype to avoid an error. */ 9511#ifdef __cplusplus 9512extern "C" 9513#endif 9514/* We use char because int might match the return type of a gcc2 9515 builtin and then its argument prototype would still apply. */ 9516char shl_load (); 9517int 9518main () 9519{ 9520shl_load (); 9521 ; 9522 return 0; 9523} 9524_ACEOF 9525rm -f conftest.$ac_objext conftest$ac_exeext 9526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9527 (eval $ac_link) 2>conftest.er1 9528 ac_status=$? 9529 grep -v '^ *+' conftest.er1 >conftest.err 9530 rm -f conftest.er1 9531 cat conftest.err >&5 9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9533 (exit $ac_status); } && 9534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9536 (eval $ac_try) 2>&5 9537 ac_status=$? 9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9539 (exit $ac_status); }; } && 9540 { ac_try='test -s conftest$ac_exeext' 9541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9542 (eval $ac_try) 2>&5 9543 ac_status=$? 9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9545 (exit $ac_status); }; }; then 9546 ac_cv_lib_dld_shl_load=yes 9547else 9548 echo "$as_me: failed program was:" >&5 9549sed 's/^/| /' conftest.$ac_ext >&5 9550 9551ac_cv_lib_dld_shl_load=no 9552fi 9553rm -f conftest.err conftest.$ac_objext \ 9554 conftest$ac_exeext conftest.$ac_ext 9555LIBS=$ac_check_lib_save_LIBS 9556fi 9557echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9558echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 9559if test $ac_cv_lib_dld_shl_load = yes; then 9560 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9561else 9562 echo "$as_me:$LINENO: checking for dlopen" >&5 9563echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 9564if test "${ac_cv_func_dlopen+set}" = set; then 9565 echo $ECHO_N "(cached) $ECHO_C" >&6 9566else 9567 cat >conftest.$ac_ext <<_ACEOF 9568/* confdefs.h. */ 9569_ACEOF 9570cat confdefs.h >>conftest.$ac_ext 9571cat >>conftest.$ac_ext <<_ACEOF 9572/* end confdefs.h. */ 9573/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9574 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9575#define dlopen innocuous_dlopen 9576 9577/* System header to define __stub macros and hopefully few prototypes, 9578 which can conflict with char dlopen (); below. 9579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9580 <limits.h> exists even on freestanding compilers. */ 9581 9582#ifdef __STDC__ 9583# include <limits.h> 9584#else 9585# include <assert.h> 9586#endif 9587 9588#undef dlopen 9589 9590/* Override any gcc2 internal prototype to avoid an error. */ 9591#ifdef __cplusplus 9592extern "C" 9593{ 9594#endif 9595/* We use char because int might match the return type of a gcc2 9596 builtin and then its argument prototype would still apply. */ 9597char dlopen (); 9598/* The GNU C library defines this for functions which it implements 9599 to always fail with ENOSYS. Some functions are actually named 9600 something starting with __ and the normal name is an alias. */ 9601#if defined (__stub_dlopen) || defined (__stub___dlopen) 9602choke me 9603#else 9604char (*f) () = dlopen; 9605#endif 9606#ifdef __cplusplus 9607} 9608#endif 9609 9610int 9611main () 9612{ 9613return f != dlopen; 9614 ; 9615 return 0; 9616} 9617_ACEOF 9618rm -f conftest.$ac_objext conftest$ac_exeext 9619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9620 (eval $ac_link) 2>conftest.er1 9621 ac_status=$? 9622 grep -v '^ *+' conftest.er1 >conftest.err 9623 rm -f conftest.er1 9624 cat conftest.err >&5 9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9626 (exit $ac_status); } && 9627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9629 (eval $ac_try) 2>&5 9630 ac_status=$? 9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9632 (exit $ac_status); }; } && 9633 { ac_try='test -s conftest$ac_exeext' 9634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9635 (eval $ac_try) 2>&5 9636 ac_status=$? 9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9638 (exit $ac_status); }; }; then 9639 ac_cv_func_dlopen=yes 9640else 9641 echo "$as_me: failed program was:" >&5 9642sed 's/^/| /' conftest.$ac_ext >&5 9643 9644ac_cv_func_dlopen=no 9645fi 9646rm -f conftest.err conftest.$ac_objext \ 9647 conftest$ac_exeext conftest.$ac_ext 9648fi 9649echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9650echo "${ECHO_T}$ac_cv_func_dlopen" >&6 9651if test $ac_cv_func_dlopen = yes; then 9652 lt_cv_dlopen="dlopen" 9653else 9654 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9655echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 9656if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9657 echo $ECHO_N "(cached) $ECHO_C" >&6 9658else 9659 ac_check_lib_save_LIBS=$LIBS 9660LIBS="-ldl $LIBS" 9661cat >conftest.$ac_ext <<_ACEOF 9662/* confdefs.h. */ 9663_ACEOF 9664cat confdefs.h >>conftest.$ac_ext 9665cat >>conftest.$ac_ext <<_ACEOF 9666/* end confdefs.h. */ 9667 9668/* Override any gcc2 internal prototype to avoid an error. */ 9669#ifdef __cplusplus 9670extern "C" 9671#endif 9672/* We use char because int might match the return type of a gcc2 9673 builtin and then its argument prototype would still apply. */ 9674char dlopen (); 9675int 9676main () 9677{ 9678dlopen (); 9679 ; 9680 return 0; 9681} 9682_ACEOF 9683rm -f conftest.$ac_objext conftest$ac_exeext 9684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9685 (eval $ac_link) 2>conftest.er1 9686 ac_status=$? 9687 grep -v '^ *+' conftest.er1 >conftest.err 9688 rm -f conftest.er1 9689 cat conftest.err >&5 9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9691 (exit $ac_status); } && 9692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9694 (eval $ac_try) 2>&5 9695 ac_status=$? 9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9697 (exit $ac_status); }; } && 9698 { ac_try='test -s conftest$ac_exeext' 9699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9700 (eval $ac_try) 2>&5 9701 ac_status=$? 9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9703 (exit $ac_status); }; }; then 9704 ac_cv_lib_dl_dlopen=yes 9705else 9706 echo "$as_me: failed program was:" >&5 9707sed 's/^/| /' conftest.$ac_ext >&5 9708 9709ac_cv_lib_dl_dlopen=no 9710fi 9711rm -f conftest.err conftest.$ac_objext \ 9712 conftest$ac_exeext conftest.$ac_ext 9713LIBS=$ac_check_lib_save_LIBS 9714fi 9715echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9716echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 9717if test $ac_cv_lib_dl_dlopen = yes; then 9718 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9719else 9720 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9721echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 9722if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9723 echo $ECHO_N "(cached) $ECHO_C" >&6 9724else 9725 ac_check_lib_save_LIBS=$LIBS 9726LIBS="-lsvld $LIBS" 9727cat >conftest.$ac_ext <<_ACEOF 9728/* confdefs.h. */ 9729_ACEOF 9730cat confdefs.h >>conftest.$ac_ext 9731cat >>conftest.$ac_ext <<_ACEOF 9732/* end confdefs.h. */ 9733 9734/* Override any gcc2 internal prototype to avoid an error. */ 9735#ifdef __cplusplus 9736extern "C" 9737#endif 9738/* We use char because int might match the return type of a gcc2 9739 builtin and then its argument prototype would still apply. */ 9740char dlopen (); 9741int 9742main () 9743{ 9744dlopen (); 9745 ; 9746 return 0; 9747} 9748_ACEOF 9749rm -f conftest.$ac_objext conftest$ac_exeext 9750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9751 (eval $ac_link) 2>conftest.er1 9752 ac_status=$? 9753 grep -v '^ *+' conftest.er1 >conftest.err 9754 rm -f conftest.er1 9755 cat conftest.err >&5 9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9757 (exit $ac_status); } && 9758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9760 (eval $ac_try) 2>&5 9761 ac_status=$? 9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9763 (exit $ac_status); }; } && 9764 { ac_try='test -s conftest$ac_exeext' 9765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9766 (eval $ac_try) 2>&5 9767 ac_status=$? 9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9769 (exit $ac_status); }; }; then 9770 ac_cv_lib_svld_dlopen=yes 9771else 9772 echo "$as_me: failed program was:" >&5 9773sed 's/^/| /' conftest.$ac_ext >&5 9774 9775ac_cv_lib_svld_dlopen=no 9776fi 9777rm -f conftest.err conftest.$ac_objext \ 9778 conftest$ac_exeext conftest.$ac_ext 9779LIBS=$ac_check_lib_save_LIBS 9780fi 9781echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9782echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 9783if test $ac_cv_lib_svld_dlopen = yes; then 9784 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9785else 9786 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9787echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 9788if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9789 echo $ECHO_N "(cached) $ECHO_C" >&6 9790else 9791 ac_check_lib_save_LIBS=$LIBS 9792LIBS="-ldld $LIBS" 9793cat >conftest.$ac_ext <<_ACEOF 9794/* confdefs.h. */ 9795_ACEOF 9796cat confdefs.h >>conftest.$ac_ext 9797cat >>conftest.$ac_ext <<_ACEOF 9798/* end confdefs.h. */ 9799 9800/* Override any gcc2 internal prototype to avoid an error. */ 9801#ifdef __cplusplus 9802extern "C" 9803#endif 9804/* We use char because int might match the return type of a gcc2 9805 builtin and then its argument prototype would still apply. */ 9806char dld_link (); 9807int 9808main () 9809{ 9810dld_link (); 9811 ; 9812 return 0; 9813} 9814_ACEOF 9815rm -f conftest.$ac_objext conftest$ac_exeext 9816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9817 (eval $ac_link) 2>conftest.er1 9818 ac_status=$? 9819 grep -v '^ *+' conftest.er1 >conftest.err 9820 rm -f conftest.er1 9821 cat conftest.err >&5 9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9823 (exit $ac_status); } && 9824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9826 (eval $ac_try) 2>&5 9827 ac_status=$? 9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9829 (exit $ac_status); }; } && 9830 { ac_try='test -s conftest$ac_exeext' 9831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9832 (eval $ac_try) 2>&5 9833 ac_status=$? 9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9835 (exit $ac_status); }; }; then 9836 ac_cv_lib_dld_dld_link=yes 9837else 9838 echo "$as_me: failed program was:" >&5 9839sed 's/^/| /' conftest.$ac_ext >&5 9840 9841ac_cv_lib_dld_dld_link=no 9842fi 9843rm -f conftest.err conftest.$ac_objext \ 9844 conftest$ac_exeext conftest.$ac_ext 9845LIBS=$ac_check_lib_save_LIBS 9846fi 9847echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9848echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 9849if test $ac_cv_lib_dld_dld_link = yes; then 9850 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9851fi 9852 9853 9854fi 9855 9856 9857fi 9858 9859 9860fi 9861 9862 9863fi 9864 9865 9866fi 9867 9868 ;; 9869 esac 9870 9871 if test "x$lt_cv_dlopen" != xno; then 9872 enable_dlopen=yes 9873 else 9874 enable_dlopen=no 9875 fi 9876 9877 case $lt_cv_dlopen in 9878 dlopen) 9879 save_CPPFLAGS="$CPPFLAGS" 9880 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9881 9882 save_LDFLAGS="$LDFLAGS" 9883 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9884 9885 save_LIBS="$LIBS" 9886 LIBS="$lt_cv_dlopen_libs $LIBS" 9887 9888 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9889echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 9890if test "${lt_cv_dlopen_self+set}" = set; then 9891 echo $ECHO_N "(cached) $ECHO_C" >&6 9892else 9893 if test "$cross_compiling" = yes; then : 9894 lt_cv_dlopen_self=cross 9895else 9896 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9897 lt_status=$lt_dlunknown 9898 cat > conftest.$ac_ext <<EOF 9899#line 9899 "configure" 9900#include "confdefs.h" 9901 9902#if HAVE_DLFCN_H 9903#include <dlfcn.h> 9904#endif 9905 9906#include <stdio.h> 9907 9908#ifdef RTLD_GLOBAL 9909# define LT_DLGLOBAL RTLD_GLOBAL 9910#else 9911# ifdef DL_GLOBAL 9912# define LT_DLGLOBAL DL_GLOBAL 9913# else 9914# define LT_DLGLOBAL 0 9915# endif 9916#endif 9917 9918/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9919 find out it does not work in some platform. */ 9920#ifndef LT_DLLAZY_OR_NOW 9921# ifdef RTLD_LAZY 9922# define LT_DLLAZY_OR_NOW RTLD_LAZY 9923# else 9924# ifdef DL_LAZY 9925# define LT_DLLAZY_OR_NOW DL_LAZY 9926# else 9927# ifdef RTLD_NOW 9928# define LT_DLLAZY_OR_NOW RTLD_NOW 9929# else 9930# ifdef DL_NOW 9931# define LT_DLLAZY_OR_NOW DL_NOW 9932# else 9933# define LT_DLLAZY_OR_NOW 0 9934# endif 9935# endif 9936# endif 9937# endif 9938#endif 9939 9940#ifdef __cplusplus 9941extern "C" void exit (int); 9942#endif 9943 9944void fnord() { int i=42;} 9945int main () 9946{ 9947 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9948 int status = $lt_dlunknown; 9949 9950 if (self) 9951 { 9952 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9953 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9954 /* dlclose (self); */ 9955 } 9956 9957 exit (status); 9958} 9959EOF 9960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9961 (eval $ac_link) 2>&5 9962 ac_status=$? 9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9964 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9965 (./conftest; exit; ) 2>/dev/null 9966 lt_status=$? 9967 case x$lt_status in 9968 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9969 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9970 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 9971 esac 9972 else : 9973 # compilation failed 9974 lt_cv_dlopen_self=no 9975 fi 9976fi 9977rm -fr conftest* 9978 9979 9980fi 9981echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9982echo "${ECHO_T}$lt_cv_dlopen_self" >&6 9983 9984 if test "x$lt_cv_dlopen_self" = xyes; then 9985 LDFLAGS="$LDFLAGS $link_static_flag" 9986 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9987echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 9988if test "${lt_cv_dlopen_self_static+set}" = set; then 9989 echo $ECHO_N "(cached) $ECHO_C" >&6 9990else 9991 if test "$cross_compiling" = yes; then : 9992 lt_cv_dlopen_self_static=cross 9993else 9994 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9995 lt_status=$lt_dlunknown 9996 cat > conftest.$ac_ext <<EOF 9997#line 9997 "configure" 9998#include "confdefs.h" 9999 10000#if HAVE_DLFCN_H 10001#include <dlfcn.h> 10002#endif 10003 10004#include <stdio.h> 10005 10006#ifdef RTLD_GLOBAL 10007# define LT_DLGLOBAL RTLD_GLOBAL 10008#else 10009# ifdef DL_GLOBAL 10010# define LT_DLGLOBAL DL_GLOBAL 10011# else 10012# define LT_DLGLOBAL 0 10013# endif 10014#endif 10015 10016/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10017 find out it does not work in some platform. */ 10018#ifndef LT_DLLAZY_OR_NOW 10019# ifdef RTLD_LAZY 10020# define LT_DLLAZY_OR_NOW RTLD_LAZY 10021# else 10022# ifdef DL_LAZY 10023# define LT_DLLAZY_OR_NOW DL_LAZY 10024# else 10025# ifdef RTLD_NOW 10026# define LT_DLLAZY_OR_NOW RTLD_NOW 10027# else 10028# ifdef DL_NOW 10029# define LT_DLLAZY_OR_NOW DL_NOW 10030# else 10031# define LT_DLLAZY_OR_NOW 0 10032# endif 10033# endif 10034# endif 10035# endif 10036#endif 10037 10038#ifdef __cplusplus 10039extern "C" void exit (int); 10040#endif 10041 10042void fnord() { int i=42;} 10043int main () 10044{ 10045 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10046 int status = $lt_dlunknown; 10047 10048 if (self) 10049 { 10050 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10051 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10052 /* dlclose (self); */ 10053 } 10054 10055 exit (status); 10056} 10057EOF 10058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10059 (eval $ac_link) 2>&5 10060 ac_status=$? 10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10062 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10063 (./conftest; exit; ) 2>/dev/null 10064 lt_status=$? 10065 case x$lt_status in 10066 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10067 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10068 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 10069 esac 10070 else : 10071 # compilation failed 10072 lt_cv_dlopen_self_static=no 10073 fi 10074fi 10075rm -fr conftest* 10076 10077 10078fi 10079echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10080echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 10081 fi 10082 10083 CPPFLAGS="$save_CPPFLAGS" 10084 LDFLAGS="$save_LDFLAGS" 10085 LIBS="$save_LIBS" 10086 ;; 10087 esac 10088 10089 case $lt_cv_dlopen_self in 10090 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10091 *) enable_dlopen_self=unknown ;; 10092 esac 10093 10094 case $lt_cv_dlopen_self_static in 10095 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10096 *) enable_dlopen_self_static=unknown ;; 10097 esac 10098fi 10099 10100 10101# Report which librarie types wil actually be built 10102echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10103echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 10104echo "$as_me:$LINENO: result: $can_build_shared" >&5 10105echo "${ECHO_T}$can_build_shared" >&6 10106 10107echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10108echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 10109test "$can_build_shared" = "no" && enable_shared=no 10110 10111# On AIX, shared libraries and static libraries use the same namespace, and 10112# are all built from PIC. 10113case "$host_os" in 10114aix3*) 10115 test "$enable_shared" = yes && enable_static=no 10116 if test -n "$RANLIB"; then 10117 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10118 postinstall_cmds='$RANLIB $lib' 10119 fi 10120 ;; 10121 10122aix4* | aix5*) 10123 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10124 test "$enable_shared" = yes && enable_static=no 10125 fi 10126 ;; 10127 darwin* | rhapsody*) 10128 if test "$GCC" = yes; then 10129 archive_cmds_need_lc=no 10130 case "$host_os" in 10131 rhapsody* | darwin1.[012]) 10132 allow_undefined_flag='-undefined suppress' 10133 ;; 10134 *) # Darwin 1.3 on 10135 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 10136 allow_undefined_flag='-flat_namespace -undefined suppress' 10137 else 10138 case ${MACOSX_DEPLOYMENT_TARGET} in 10139 10.[012]) 10140 allow_undefined_flag='-flat_namespace -undefined suppress' 10141 ;; 10142 10.*) 10143 allow_undefined_flag='-undefined dynamic_lookup' 10144 ;; 10145 esac 10146 fi 10147 ;; 10148 esac 10149 output_verbose_link_cmd='echo' 10150 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' 10151 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10152 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 10153 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10154 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10155 hardcode_direct=no 10156 hardcode_automatic=yes 10157 hardcode_shlibpath_var=unsupported 10158 whole_archive_flag_spec='-all_load $convenience' 10159 link_all_deplibs=yes 10160 else 10161 ld_shlibs=no 10162 fi 10163 ;; 10164esac 10165echo "$as_me:$LINENO: result: $enable_shared" >&5 10166echo "${ECHO_T}$enable_shared" >&6 10167 10168echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10169echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 10170# Make sure either enable_shared or enable_static is yes. 10171test "$enable_shared" = yes || enable_static=yes 10172echo "$as_me:$LINENO: result: $enable_static" >&5 10173echo "${ECHO_T}$enable_static" >&6 10174 10175# The else clause should only fire when bootstrapping the 10176# libtool distribution, otherwise you forgot to ship ltmain.sh 10177# with your package, and you will get complaints that there are 10178# no rules to generate ltmain.sh. 10179if test -f "$ltmain"; then 10180 # See if we are running on zsh, and set the options which allow our commands through 10181 # without removal of \ escapes. 10182 if test -n "${ZSH_VERSION+set}" ; then 10183 setopt NO_GLOB_SUBST 10184 fi 10185 # Now quote all the things that may contain metacharacters while being 10186 # careful not to overquote the AC_SUBSTed values. We take copies of the 10187 # variables and quote the copies for generation of the libtool script. 10188 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 10189 SED SHELL STRIP \ 10190 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10191 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10192 deplibs_check_method reload_flag reload_cmds need_locks \ 10193 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10194 lt_cv_sys_global_symbol_to_c_name_address \ 10195 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10196 old_postinstall_cmds old_postuninstall_cmds \ 10197 compiler \ 10198 CC \ 10199 LD \ 10200 lt_prog_compiler_wl \ 10201 lt_prog_compiler_pic \ 10202 lt_prog_compiler_static \ 10203 lt_prog_compiler_no_builtin_flag \ 10204 export_dynamic_flag_spec \ 10205 thread_safe_flag_spec \ 10206 whole_archive_flag_spec \ 10207 enable_shared_with_static_runtimes \ 10208 old_archive_cmds \ 10209 old_archive_from_new_cmds \ 10210 predep_objects \ 10211 postdep_objects \ 10212 predeps \ 10213 postdeps \ 10214 compiler_lib_search_path \ 10215 archive_cmds \ 10216 archive_expsym_cmds \ 10217 postinstall_cmds \ 10218 postuninstall_cmds \ 10219 old_archive_from_expsyms_cmds \ 10220 allow_undefined_flag \ 10221 no_undefined_flag \ 10222 export_symbols_cmds \ 10223 hardcode_libdir_flag_spec \ 10224 hardcode_libdir_flag_spec_ld \ 10225 hardcode_libdir_separator \ 10226 hardcode_automatic \ 10227 module_cmds \ 10228 module_expsym_cmds \ 10229 lt_cv_prog_compiler_c_o \ 10230 exclude_expsyms \ 10231 include_expsyms; do 10232 10233 case $var in 10234 old_archive_cmds | \ 10235 old_archive_from_new_cmds | \ 10236 archive_cmds | \ 10237 archive_expsym_cmds | \ 10238 module_cmds | \ 10239 module_expsym_cmds | \ 10240 old_archive_from_expsyms_cmds | \ 10241 export_symbols_cmds | \ 10242 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10243 postinstall_cmds | postuninstall_cmds | \ 10244 old_postinstall_cmds | old_postuninstall_cmds | \ 10245 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10246 # Double-quote double-evaled strings. 10247 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10248 ;; 10249 *) 10250 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10251 ;; 10252 esac 10253 done 10254 10255 case $lt_echo in 10256 *'\$0 --fallback-echo"') 10257 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10258 ;; 10259 esac 10260 10261cfgfile="${ofile}T" 10262 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10263 $rm -f "$cfgfile" 10264 { echo "$as_me:$LINENO: creating $ofile" >&5 10265echo "$as_me: creating $ofile" >&6;} 10266 10267 cat <<__EOF__ >> "$cfgfile" 10268#! $SHELL 10269 10270# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10271# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10272# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10273# 10274# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 10275# Free Software Foundation, Inc. 10276# 10277# This file is part of GNU Libtool: 10278# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10279# 10280# This program is free software; you can redistribute it and/or modify 10281# it under the terms of the GNU General Public License as published by 10282# the Free Software Foundation; either version 2 of the License, or 10283# (at your option) any later version. 10284# 10285# This program is distributed in the hope that it will be useful, but 10286# WITHOUT ANY WARRANTY; without even the implied warranty of 10287# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10288# General Public License for more details. 10289# 10290# You should have received a copy of the GNU General Public License 10291# along with this program; if not, write to the Free Software 10292# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 10293# 10294# As a special exception to the GNU General Public License, if you 10295# distribute this file as part of a program that contains a 10296# configuration script generated by Autoconf, you may include it under 10297# the same distribution terms that you use for the rest of that program. 10298 10299# A sed program that does not truncate output. 10300SED=$lt_SED 10301 10302# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10303Xsed="$SED -e s/^X//" 10304 10305# The HP-UX ksh and POSIX shell print the target directory to stdout 10306# if CDPATH is set. 10307if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 10308 10309# The names of the tagged configurations supported by this script. 10310available_tags= 10311 10312# ### BEGIN LIBTOOL CONFIG 10313 10314# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10315 10316# Shell to use when invoking shell scripts. 10317SHELL=$lt_SHELL 10318 10319# Whether or not to build shared libraries. 10320build_libtool_libs=$enable_shared 10321 10322# Whether or not to build static libraries. 10323build_old_libs=$enable_static 10324 10325# Whether or not to add -lc for building shared libraries. 10326build_libtool_need_lc=$archive_cmds_need_lc 10327 10328# Whether or not to disallow shared libs when runtime libs are static 10329allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10330 10331# Whether or not to optimize for fast installation. 10332fast_install=$enable_fast_install 10333 10334# The host system. 10335host_alias=$host_alias 10336host=$host 10337 10338# An echo program that does not interpret backslashes. 10339echo=$lt_echo 10340 10341# The archiver. 10342AR=$lt_AR 10343AR_FLAGS=$lt_AR_FLAGS 10344 10345# A C compiler. 10346LTCC=$lt_LTCC 10347 10348# A language-specific compiler. 10349CC=$lt_compiler 10350 10351# Is the compiler the GNU C compiler? 10352with_gcc=$GCC 10353 10354# An ERE matcher. 10355EGREP=$lt_EGREP 10356 10357# The linker used to build libraries. 10358LD=$lt_LD 10359 10360# Whether we need hard or soft links. 10361LN_S=$lt_LN_S 10362 10363# A BSD-compatible nm program. 10364NM=$lt_NM 10365 10366# A symbol stripping program 10367STRIP=$lt_STRIP 10368 10369# Used to examine libraries when file_magic_cmd begins "file" 10370MAGIC_CMD=$MAGIC_CMD 10371 10372# Used on cygwin: DLL creation program. 10373DLLTOOL="$DLLTOOL" 10374 10375# Used on cygwin: object dumper. 10376OBJDUMP="$OBJDUMP" 10377 10378# Used on cygwin: assembler. 10379AS="$AS" 10380 10381# The name of the directory that contains temporary libtool files. 10382objdir=$objdir 10383 10384# How to create reloadable object files. 10385reload_flag=$lt_reload_flag 10386reload_cmds=$lt_reload_cmds 10387 10388# How to pass a linker flag through the compiler. 10389wl=$lt_lt_prog_compiler_wl 10390 10391# Object file suffix (normally "o"). 10392objext="$ac_objext" 10393 10394# Old archive suffix (normally "a"). 10395libext="$libext" 10396 10397# Shared library suffix (normally ".so"). 10398shrext_cmds='$shrext_cmds' 10399 10400# Executable file suffix (normally ""). 10401exeext="$exeext" 10402 10403# Additional compiler flags for building library objects. 10404pic_flag=$lt_lt_prog_compiler_pic 10405pic_mode=$pic_mode 10406 10407# What is the maximum length of a command? 10408max_cmd_len=$lt_cv_sys_max_cmd_len 10409 10410# Does compiler simultaneously support -c and -o options? 10411compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10412 10413# Must we lock files when doing compilation ? 10414need_locks=$lt_need_locks 10415 10416# Do we need the lib prefix for modules? 10417need_lib_prefix=$need_lib_prefix 10418 10419# Do we need a version for libraries? 10420need_version=$need_version 10421 10422# Whether dlopen is supported. 10423dlopen_support=$enable_dlopen 10424 10425# Whether dlopen of programs is supported. 10426dlopen_self=$enable_dlopen_self 10427 10428# Whether dlopen of statically linked programs is supported. 10429dlopen_self_static=$enable_dlopen_self_static 10430 10431# Compiler flag to prevent dynamic linking. 10432link_static_flag=$lt_lt_prog_compiler_static 10433 10434# Compiler flag to turn off builtin functions. 10435no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10436 10437# Compiler flag to allow reflexive dlopens. 10438export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10439 10440# Compiler flag to generate shared objects directly from archives. 10441whole_archive_flag_spec=$lt_whole_archive_flag_spec 10442 10443# Compiler flag to generate thread-safe objects. 10444thread_safe_flag_spec=$lt_thread_safe_flag_spec 10445 10446# Library versioning type. 10447version_type=$version_type 10448 10449# Format of library name prefix. 10450libname_spec=$lt_libname_spec 10451 10452# List of archive names. First name is the real one, the rest are links. 10453# The last name is the one that the linker finds with -lNAME. 10454library_names_spec=$lt_library_names_spec 10455 10456# The coded name of the library, if different from the real name. 10457soname_spec=$lt_soname_spec 10458 10459# Commands used to build and install an old-style archive. 10460RANLIB=$lt_RANLIB 10461old_archive_cmds=$lt_old_archive_cmds 10462old_postinstall_cmds=$lt_old_postinstall_cmds 10463old_postuninstall_cmds=$lt_old_postuninstall_cmds 10464 10465# Create an old-style archive from a shared archive. 10466old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10467 10468# Create a temporary old-style archive to link instead of a shared archive. 10469old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10470 10471# Commands used to build and install a shared archive. 10472archive_cmds=$lt_archive_cmds 10473archive_expsym_cmds=$lt_archive_expsym_cmds 10474postinstall_cmds=$lt_postinstall_cmds 10475postuninstall_cmds=$lt_postuninstall_cmds 10476 10477# Commands used to build a loadable module (assumed same as above if empty) 10478module_cmds=$lt_module_cmds 10479module_expsym_cmds=$lt_module_expsym_cmds 10480 10481# Commands to strip libraries. 10482old_striplib=$lt_old_striplib 10483striplib=$lt_striplib 10484 10485# Dependencies to place before the objects being linked to create a 10486# shared library. 10487predep_objects=$lt_predep_objects 10488 10489# Dependencies to place after the objects being linked to create a 10490# shared library. 10491postdep_objects=$lt_postdep_objects 10492 10493# Dependencies to place before the objects being linked to create a 10494# shared library. 10495predeps=$lt_predeps 10496 10497# Dependencies to place after the objects being linked to create a 10498# shared library. 10499postdeps=$lt_postdeps 10500 10501# The library search path used internally by the compiler when linking 10502# a shared library. 10503compiler_lib_search_path=$lt_compiler_lib_search_path 10504 10505# Method to check whether dependent libraries are shared objects. 10506deplibs_check_method=$lt_deplibs_check_method 10507 10508# Command to use when deplibs_check_method == file_magic. 10509file_magic_cmd=$lt_file_magic_cmd 10510 10511# Flag that allows shared libraries with undefined symbols to be built. 10512allow_undefined_flag=$lt_allow_undefined_flag 10513 10514# Flag that forces no undefined symbols. 10515no_undefined_flag=$lt_no_undefined_flag 10516 10517# Commands used to finish a libtool library installation in a directory. 10518finish_cmds=$lt_finish_cmds 10519 10520# Same as above, but a single script fragment to be evaled but not shown. 10521finish_eval=$lt_finish_eval 10522 10523# Take the output of nm and produce a listing of raw symbols and C names. 10524global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10525 10526# Transform the output of nm in a proper C declaration 10527global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10528 10529# Transform the output of nm in a C name address pair 10530global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10531 10532# This is the shared library runtime path variable. 10533runpath_var=$runpath_var 10534 10535# This is the shared library path variable. 10536shlibpath_var=$shlibpath_var 10537 10538# Is shlibpath searched before the hard-coded library search path? 10539shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10540 10541# How to hardcode a shared library path into an executable. 10542hardcode_action=$hardcode_action 10543 10544# Whether we should hardcode library paths into libraries. 10545hardcode_into_libs=$hardcode_into_libs 10546 10547# Flag to hardcode \$libdir into a binary during linking. 10548# This must work even if \$libdir does not exist. 10549hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10550 10551# If ld is used when linking, flag to hardcode \$libdir into 10552# a binary during linking. This must work even if \$libdir does 10553# not exist. 10554hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10555 10556# Whether we need a single -rpath flag with a separated argument. 10557hardcode_libdir_separator=$lt_hardcode_libdir_separator 10558 10559# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10560# resulting binary. 10561hardcode_direct=$hardcode_direct 10562 10563# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10564# resulting binary. 10565hardcode_minus_L=$hardcode_minus_L 10566 10567# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10568# the resulting binary. 10569hardcode_shlibpath_var=$hardcode_shlibpath_var 10570 10571# Set to yes if building a shared library automatically hardcodes DIR into the library 10572# and all subsequent libraries and executables linked against it. 10573hardcode_automatic=$hardcode_automatic 10574 10575# Variables whose values should be saved in libtool wrapper scripts and 10576# restored at relink time. 10577variables_saved_for_relink="$variables_saved_for_relink" 10578 10579# Whether libtool must link a program against all its dependency libraries. 10580link_all_deplibs=$link_all_deplibs 10581 10582# Compile-time system search path for libraries 10583sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10584 10585# Run-time system search path for libraries 10586sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10587 10588# Fix the shell variable \$srcfile for the compiler. 10589fix_srcfile_path="$fix_srcfile_path" 10590 10591# Set to yes if exported symbols are required. 10592always_export_symbols=$always_export_symbols 10593 10594# The commands to list exported symbols. 10595export_symbols_cmds=$lt_export_symbols_cmds 10596 10597# The commands to extract the exported symbol list from a shared archive. 10598extract_expsyms_cmds=$lt_extract_expsyms_cmds 10599 10600# Symbols that should not be listed in the preloaded symbols. 10601exclude_expsyms=$lt_exclude_expsyms 10602 10603# Symbols that must always be exported. 10604include_expsyms=$lt_include_expsyms 10605 10606# ### END LIBTOOL CONFIG 10607 10608__EOF__ 10609 10610 10611 case $host_os in 10612 aix3*) 10613 cat <<\EOF >> "$cfgfile" 10614 10615# AIX sometimes has problems with the GCC collect2 program. For some 10616# reason, if we set the COLLECT_NAMES environment variable, the problems 10617# vanish in a puff of smoke. 10618if test "X${COLLECT_NAMES+set}" != Xset; then 10619 COLLECT_NAMES= 10620 export COLLECT_NAMES 10621fi 10622EOF 10623 ;; 10624 esac 10625 10626 # We use sed instead of cat because bash on DJGPP gets confused if 10627 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10628 # text mode, it properly converts lines to CR/LF. This bash problem 10629 # is reportedly fixed, but why not run on old versions too? 10630 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10631 10632 mv -f "$cfgfile" "$ofile" || \ 10633 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10634 chmod +x "$ofile" 10635 10636else 10637 # If there is no Makefile yet, we rely on a make rule to execute 10638 # `config.status --recheck' to rerun these tests and create the 10639 # libtool script then. 10640 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10641 if test -f "$ltmain_in"; then 10642 test -f Makefile && make "$ltmain" 10643 fi 10644fi 10645 10646 10647ac_ext=c 10648ac_cpp='$CPP $CPPFLAGS' 10649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10651ac_compiler_gnu=$ac_cv_c_compiler_gnu 10652 10653CC="$lt_save_CC" 10654 10655 10656# Check whether --with-tags or --without-tags was given. 10657if test "${with_tags+set}" = set; then 10658 withval="$with_tags" 10659 tagnames="$withval" 10660fi; 10661 10662if test -f "$ltmain" && test -n "$tagnames"; then 10663 if test ! -f "${ofile}"; then 10664 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10665echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10666 fi 10667 10668 if test -z "$LTCC"; then 10669 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10670 if test -z "$LTCC"; then 10671 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10672echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10673 else 10674 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10675echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10676 fi 10677 fi 10678 10679 # Extract list of available tagged configurations in $ofile. 10680 # Note that this assumes the entire list is on one line. 10681 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10682 10683 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10684 for tagname in $tagnames; do 10685 IFS="$lt_save_ifs" 10686 # Check whether tagname contains only valid characters 10687 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10688 "") ;; 10689 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10690echo "$as_me: error: invalid tag name: $tagname" >&2;} 10691 { (exit 1); exit 1; }; } 10692 ;; 10693 esac 10694 10695 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10696 then 10697 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10698echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10699 { (exit 1); exit 1; }; } 10700 fi 10701 10702 # Update the list of available tags. 10703 if test -n "$tagname"; then 10704 echo appending configuration tag \"$tagname\" to $ofile 10705 10706 case $tagname in 10707 CXX) 10708 if test -n "$CXX" && test "X$CXX" != "Xno"; then 10709 ac_ext=cc 10710ac_cpp='$CXXCPP $CPPFLAGS' 10711ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10712ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10713ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10714 10715 10716 10717 10718archive_cmds_need_lc_CXX=no 10719allow_undefined_flag_CXX= 10720always_export_symbols_CXX=no 10721archive_expsym_cmds_CXX= 10722export_dynamic_flag_spec_CXX= 10723hardcode_direct_CXX=no 10724hardcode_libdir_flag_spec_CXX= 10725hardcode_libdir_flag_spec_ld_CXX= 10726hardcode_libdir_separator_CXX= 10727hardcode_minus_L_CXX=no 10728hardcode_automatic_CXX=no 10729module_cmds_CXX= 10730module_expsym_cmds_CXX= 10731link_all_deplibs_CXX=unknown 10732old_archive_cmds_CXX=$old_archive_cmds 10733no_undefined_flag_CXX= 10734whole_archive_flag_spec_CXX= 10735enable_shared_with_static_runtimes_CXX=no 10736 10737# Dependencies to place before and after the object being linked: 10738predep_objects_CXX= 10739postdep_objects_CXX= 10740predeps_CXX= 10741postdeps_CXX= 10742compiler_lib_search_path_CXX= 10743 10744# Source file extension for C++ test sources. 10745ac_ext=cc 10746 10747# Object file extension for compiled C++ test sources. 10748objext=o 10749objext_CXX=$objext 10750 10751# Code to be used in simple compile tests 10752lt_simple_compile_test_code="int some_variable = 0;\n" 10753 10754# Code to be used in simple link tests 10755lt_simple_link_test_code='int main(int, char *) { return(0); }\n' 10756 10757# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10758 10759# If no C compiler was specified, use CC. 10760LTCC=${LTCC-"$CC"} 10761 10762# Allow CC to be a program name with arguments. 10763compiler=$CC 10764 10765 10766# Allow CC to be a program name with arguments. 10767lt_save_CC=$CC 10768lt_save_LD=$LD 10769lt_save_GCC=$GCC 10770GCC=$GXX 10771lt_save_with_gnu_ld=$with_gnu_ld 10772lt_save_path_LD=$lt_cv_path_LD 10773if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10774 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10775else 10776 unset lt_cv_prog_gnu_ld 10777fi 10778if test -n "${lt_cv_path_LDCXX+set}"; then 10779 lt_cv_path_LD=$lt_cv_path_LDCXX 10780else 10781 unset lt_cv_path_LD 10782fi 10783test -z "${LDCXX+set}" || LD=$LDCXX 10784CC=${CXX-"c++"} 10785compiler=$CC 10786compiler_CXX=$CC 10787cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 10788 10789# We don't want -fno-exception wen compiling C++ code, so set the 10790# no_builtin_flag separately 10791if test "$GXX" = yes; then 10792 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10793else 10794 lt_prog_compiler_no_builtin_flag_CXX= 10795fi 10796 10797if test "$GXX" = yes; then 10798 # Set up default GNU C++ configuration 10799 10800 10801# Check whether --with-gnu-ld or --without-gnu-ld was given. 10802if test "${with_gnu_ld+set}" = set; then 10803 withval="$with_gnu_ld" 10804 test "$withval" = no || with_gnu_ld=yes 10805else 10806 with_gnu_ld=no 10807fi; 10808ac_prog=ld 10809if test "$GCC" = yes; then 10810 # Check if gcc -print-prog-name=ld gives a path. 10811 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10812echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 10813 case $host in 10814 *-*-mingw*) 10815 # gcc leaves a trailing carriage return which upsets mingw 10816 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10817 *) 10818 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10819 esac 10820 case $ac_prog in 10821 # Accept absolute paths. 10822 [\\/]* | ?:[\\/]*) 10823 re_direlt='/[^/][^/]*/\.\./' 10824 # Canonicalize the pathname of ld 10825 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10826 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10827 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10828 done 10829 test -z "$LD" && LD="$ac_prog" 10830 ;; 10831 "") 10832 # If it fails, then pretend we aren't using GCC. 10833 ac_prog=ld 10834 ;; 10835 *) 10836 # If it is relative, then search for the first ld in PATH. 10837 with_gnu_ld=unknown 10838 ;; 10839 esac 10840elif test "$with_gnu_ld" = yes; then 10841 echo "$as_me:$LINENO: checking for GNU ld" >&5 10842echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 10843else 10844 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10845echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 10846fi 10847if test "${lt_cv_path_LD+set}" = set; then 10848 echo $ECHO_N "(cached) $ECHO_C" >&6 10849else 10850 if test -z "$LD"; then 10851 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10852 for ac_dir in $PATH; do 10853 IFS="$lt_save_ifs" 10854 test -z "$ac_dir" && ac_dir=. 10855 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10856 lt_cv_path_LD="$ac_dir/$ac_prog" 10857 # Check to see if the program is GNU ld. I'd rather use --version, 10858 # but apparently some GNU ld's only accept -v. 10859 # Break only if it was the GNU/non-GNU ld that we prefer. 10860 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10861 *GNU* | *'with BFD'*) 10862 test "$with_gnu_ld" != no && break 10863 ;; 10864 *) 10865 test "$with_gnu_ld" != yes && break 10866 ;; 10867 esac 10868 fi 10869 done 10870 IFS="$lt_save_ifs" 10871else 10872 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10873fi 10874fi 10875 10876LD="$lt_cv_path_LD" 10877if test -n "$LD"; then 10878 echo "$as_me:$LINENO: result: $LD" >&5 10879echo "${ECHO_T}$LD" >&6 10880else 10881 echo "$as_me:$LINENO: result: no" >&5 10882echo "${ECHO_T}no" >&6 10883fi 10884test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10885echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10886 { (exit 1); exit 1; }; } 10887echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10888echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 10889if test "${lt_cv_prog_gnu_ld+set}" = set; then 10890 echo $ECHO_N "(cached) $ECHO_C" >&6 10891else 10892 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 10893case `$LD -v 2>&1 </dev/null` in 10894*GNU* | *'with BFD'*) 10895 lt_cv_prog_gnu_ld=yes 10896 ;; 10897*) 10898 lt_cv_prog_gnu_ld=no 10899 ;; 10900esac 10901fi 10902echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10903echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 10904with_gnu_ld=$lt_cv_prog_gnu_ld 10905 10906 10907 10908 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10909 # archiving commands below assume that GNU ld is being used. 10910 if test "$with_gnu_ld" = yes; then 10911 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10912 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10913 10914 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10915 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10916 10917 # If archive_cmds runs LD, not CC, wlarc should be empty 10918 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10919 # investigate it a little bit more. (MM) 10920 wlarc='${wl}' 10921 10922 # ancient GNU ld didn't support --whole-archive et. al. 10923 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10924 grep 'no-whole-archive' > /dev/null; then 10925 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10926 else 10927 whole_archive_flag_spec_CXX= 10928 fi 10929 else 10930 with_gnu_ld=no 10931 wlarc= 10932 10933 # A generic and very simple default shared library creation 10934 # command for GNU C++ for the case where it uses the native 10935 # linker, instead of GNU ld. If possible, this setting should 10936 # overridden to take advantage of the native linker features on 10937 # the platform it is being used on. 10938 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10939 fi 10940 10941 # Commands to make compiler produce verbose output that lists 10942 # what "hidden" libraries, object files and flags are used when 10943 # linking a shared library. 10944 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10945 10946else 10947 GXX=no 10948 with_gnu_ld=no 10949 wlarc= 10950fi 10951 10952# PORTME: fill in a description of your system's C++ link characteristics 10953echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10954echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 10955ld_shlibs_CXX=yes 10956case $host_os in 10957 aix3*) 10958 # FIXME: insert proper C++ library support 10959 ld_shlibs_CXX=no 10960 ;; 10961 aix4* | aix5*) 10962 if test "$host_cpu" = ia64; then 10963 # On IA64, the linker does run time linking by default, so we don't 10964 # have to do anything special. 10965 aix_use_runtimelinking=no 10966 exp_sym_flag='-Bexport' 10967 no_entry_flag="" 10968 else 10969 aix_use_runtimelinking=no 10970 10971 # Test if we are trying to use run time linking or normal 10972 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10973 # need to do runtime linking. 10974 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10975 for ld_flag in $LDFLAGS; do 10976 case $ld_flag in 10977 *-brtl*) 10978 aix_use_runtimelinking=yes 10979 break 10980 ;; 10981 esac 10982 done 10983 esac 10984 10985 exp_sym_flag='-bexport' 10986 no_entry_flag='-bnoentry' 10987 fi 10988 10989 # When large executables or shared objects are built, AIX ld can 10990 # have problems creating the table of contents. If linking a library 10991 # or program results in "error TOC overflow" add -mminimal-toc to 10992 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10993 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10994 10995 archive_cmds_CXX='' 10996 hardcode_direct_CXX=yes 10997 hardcode_libdir_separator_CXX=':' 10998 link_all_deplibs_CXX=yes 10999 11000 if test "$GXX" = yes; then 11001 case $host_os in aix4.012|aix4.012.*) 11002 # We only want to do this on AIX 4.2 and lower, the check 11003 # below for broken collect2 doesn't work under 4.3+ 11004 collect2name=`${CC} -print-prog-name=collect2` 11005 if test -f "$collect2name" && \ 11006 strings "$collect2name" | grep resolve_lib_name >/dev/null 11007 then 11008 # We have reworked collect2 11009 hardcode_direct_CXX=yes 11010 else 11011 # We have old collect2 11012 hardcode_direct_CXX=unsupported 11013 # It fails to find uninstalled libraries when the uninstalled 11014 # path is not listed in the libpath. Setting hardcode_minus_L 11015 # to unsupported forces relinking 11016 hardcode_minus_L_CXX=yes 11017 hardcode_libdir_flag_spec_CXX='-L$libdir' 11018 hardcode_libdir_separator_CXX= 11019 fi 11020 esac 11021 shared_flag='-shared' 11022 else 11023 # not using gcc 11024 if test "$host_cpu" = ia64; then 11025 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11026 # chokes on -Wl,-G. The following line is correct: 11027 shared_flag='-G' 11028 else 11029 if test "$aix_use_runtimelinking" = yes; then 11030 shared_flag='${wl}-G' 11031 else 11032 shared_flag='${wl}-bM:SRE' 11033 fi 11034 fi 11035 fi 11036 11037 # It seems that -bexpall does not export symbols beginning with 11038 # underscore (_), so it is better to generate a list of symbols to export. 11039 always_export_symbols_CXX=yes 11040 if test "$aix_use_runtimelinking" = yes; then 11041 # Warning - without using the other runtime loading flags (-brtl), 11042 # -berok will link without error, but may produce a broken library. 11043 allow_undefined_flag_CXX='-berok' 11044 # Determine the default libpath from the value encoded in an empty executable. 11045 cat >conftest.$ac_ext <<_ACEOF 11046/* confdefs.h. */ 11047_ACEOF 11048cat confdefs.h >>conftest.$ac_ext 11049cat >>conftest.$ac_ext <<_ACEOF 11050/* end confdefs.h. */ 11051 11052int 11053main () 11054{ 11055 11056 ; 11057 return 0; 11058} 11059_ACEOF 11060rm -f conftest.$ac_objext conftest$ac_exeext 11061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11062 (eval $ac_link) 2>conftest.er1 11063 ac_status=$? 11064 grep -v '^ *+' conftest.er1 >conftest.err 11065 rm -f conftest.er1 11066 cat conftest.err >&5 11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11068 (exit $ac_status); } && 11069 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11071 (eval $ac_try) 2>&5 11072 ac_status=$? 11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11074 (exit $ac_status); }; } && 11075 { ac_try='test -s conftest$ac_exeext' 11076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11077 (eval $ac_try) 2>&5 11078 ac_status=$? 11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11080 (exit $ac_status); }; }; then 11081 11082aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11083}'` 11084# Check for a 64-bit object if we didn't find anything. 11085if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11086}'`; fi 11087else 11088 echo "$as_me: failed program was:" >&5 11089sed 's/^/| /' conftest.$ac_ext >&5 11090 11091fi 11092rm -f conftest.err conftest.$ac_objext \ 11093 conftest$ac_exeext conftest.$ac_ext 11094if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11095 11096 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11097 11098 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 11099 else 11100 if test "$host_cpu" = ia64; then 11101 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11102 allow_undefined_flag_CXX="-z nodefs" 11103 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 11104 else 11105 # Determine the default libpath from the value encoded in an empty executable. 11106 cat >conftest.$ac_ext <<_ACEOF 11107/* confdefs.h. */ 11108_ACEOF 11109cat confdefs.h >>conftest.$ac_ext 11110cat >>conftest.$ac_ext <<_ACEOF 11111/* end confdefs.h. */ 11112 11113int 11114main () 11115{ 11116 11117 ; 11118 return 0; 11119} 11120_ACEOF 11121rm -f conftest.$ac_objext conftest$ac_exeext 11122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11123 (eval $ac_link) 2>conftest.er1 11124 ac_status=$? 11125 grep -v '^ *+' conftest.er1 >conftest.err 11126 rm -f conftest.er1 11127 cat conftest.err >&5 11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11129 (exit $ac_status); } && 11130 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11132 (eval $ac_try) 2>&5 11133 ac_status=$? 11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11135 (exit $ac_status); }; } && 11136 { ac_try='test -s conftest$ac_exeext' 11137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11138 (eval $ac_try) 2>&5 11139 ac_status=$? 11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11141 (exit $ac_status); }; }; then 11142 11143aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11144}'` 11145# Check for a 64-bit object if we didn't find anything. 11146if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11147}'`; fi 11148else 11149 echo "$as_me: failed program was:" >&5 11150sed 's/^/| /' conftest.$ac_ext >&5 11151 11152fi 11153rm -f conftest.err conftest.$ac_objext \ 11154 conftest$ac_exeext conftest.$ac_ext 11155if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11156 11157 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11158 # Warning - without using the other run time loading flags, 11159 # -berok will link without error, but may produce a broken library. 11160 no_undefined_flag_CXX=' ${wl}-bernotok' 11161 allow_undefined_flag_CXX=' ${wl}-berok' 11162 # -bexpall does not export symbols beginning with underscore (_) 11163 always_export_symbols_CXX=yes 11164 # Exported symbols can be pulled into shared objects from archives 11165 whole_archive_flag_spec_CXX=' ' 11166 archive_cmds_need_lc_CXX=yes 11167 # This is similar to how AIX traditionally builds it's shared libraries. 11168 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 11169 fi 11170 fi 11171 ;; 11172 chorus*) 11173 case $cc_basename in 11174 *) 11175 # FIXME: insert proper C++ library support 11176 ld_shlibs_CXX=no 11177 ;; 11178 esac 11179 ;; 11180 11181 cygwin* | mingw* | pw32*) 11182 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11183 # as there is no search path for DLLs. 11184 hardcode_libdir_flag_spec_CXX='-L$libdir' 11185 allow_undefined_flag_CXX=unsupported 11186 always_export_symbols_CXX=no 11187 enable_shared_with_static_runtimes_CXX=yes 11188 11189 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11190 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 11191 # If the export-symbols file already is a .def file (1st line 11192 # is EXPORTS), use it as is; otherwise, prepend... 11193 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11194 cp $export_symbols $output_objdir/$soname.def; 11195 else 11196 echo EXPORTS > $output_objdir/$soname.def; 11197 cat $export_symbols >> $output_objdir/$soname.def; 11198 fi~ 11199 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 11200 else 11201 ld_shlibs_CXX=no 11202 fi 11203 ;; 11204 11205 darwin* | rhapsody*) 11206 if test "$GXX" = yes; then 11207 archive_cmds_need_lc_CXX=no 11208 case "$host_os" in 11209 rhapsody* | darwin1.[012]) 11210 allow_undefined_flag_CXX='-undefined suppress' 11211 ;; 11212 *) # Darwin 1.3 on 11213 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11214 allow_undefined_flag_CXX='-flat_namespace -undefined suppress' 11215 else 11216 case ${MACOSX_DEPLOYMENT_TARGET} in 11217 10.[012]) 11218 allow_undefined_flag_CXX='-flat_namespace -undefined suppress' 11219 ;; 11220 10.*) 11221 allow_undefined_flag_CXX='-undefined dynamic_lookup' 11222 ;; 11223 esac 11224 fi 11225 ;; 11226 esac 11227 lt_int_apple_cc_single_mod=no 11228 output_verbose_link_cmd='echo' 11229 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 11230 lt_int_apple_cc_single_mod=yes 11231 fi 11232 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11233 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11234 else 11235 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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' 11236 fi 11237 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11238 11239 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 11240 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11241 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11242 else 11243 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11244 fi 11245 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11246 hardcode_direct_CXX=no 11247 hardcode_automatic_CXX=yes 11248 hardcode_shlibpath_var_CXX=unsupported 11249 whole_archive_flag_spec_CXX='-all_load $convenience' 11250 link_all_deplibs_CXX=yes 11251 else 11252 ld_shlibs_CXX=no 11253 fi 11254 ;; 11255 11256 dgux*) 11257 case $cc_basename in 11258 ec++) 11259 # FIXME: insert proper C++ library support 11260 ld_shlibs_CXX=no 11261 ;; 11262 ghcx) 11263 # Green Hills C++ Compiler 11264 # FIXME: insert proper C++ library support 11265 ld_shlibs_CXX=no 11266 ;; 11267 *) 11268 # FIXME: insert proper C++ library support 11269 ld_shlibs_CXX=no 11270 ;; 11271 esac 11272 ;; 11273 freebsd12*) 11274 # C++ shared libraries reported to be fairly broken before switch to ELF 11275 ld_shlibs_CXX=no 11276 ;; 11277 freebsd-elf*) 11278 archive_cmds_need_lc_CXX=no 11279 ;; 11280 freebsd* | kfreebsd*-gnu) 11281 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11282 # conventions 11283 ld_shlibs_CXX=yes 11284 ;; 11285 gnu*) 11286 ;; 11287 hpux9*) 11288 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11289 hardcode_libdir_separator_CXX=: 11290 export_dynamic_flag_spec_CXX='${wl}-E' 11291 hardcode_direct_CXX=yes 11292 hardcode_minus_L_CXX=yes # Not in the search PATH, 11293 # but as the default 11294 # location of the library. 11295 11296 case $cc_basename in 11297 CC) 11298 # FIXME: insert proper C++ library support 11299 ld_shlibs_CXX=no 11300 ;; 11301 aCC) 11302 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' 11303 # Commands to make compiler produce verbose output that lists 11304 # what "hidden" libraries, object files and flags are used when 11305 # linking a shared library. 11306 # 11307 # There doesn't appear to be a way to prevent this compiler from 11308 # explicitly linking system object files so we need to strip them 11309 # from the output so that they don't get included in the library 11310 # dependencies. 11311 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; echo $list' 11312 ;; 11313 *) 11314 if test "$GXX" = yes; then 11315 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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' 11316 else 11317 # FIXME: insert proper C++ library support 11318 ld_shlibs_CXX=no 11319 fi 11320 ;; 11321 esac 11322 ;; 11323 hpux10*|hpux11*) 11324 if test $with_gnu_ld = no; then 11325 case "$host_cpu" in 11326 hppa*64*) 11327 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11328 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11329 hardcode_libdir_separator_CXX=: 11330 ;; 11331 ia64*) 11332 hardcode_libdir_flag_spec_CXX='-L$libdir' 11333 ;; 11334 *) 11335 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11336 hardcode_libdir_separator_CXX=: 11337 export_dynamic_flag_spec_CXX='${wl}-E' 11338 ;; 11339 esac 11340 fi 11341 case "$host_cpu" in 11342 hppa*64*) 11343 hardcode_direct_CXX=no 11344 hardcode_shlibpath_var_CXX=no 11345 ;; 11346 ia64*) 11347 hardcode_direct_CXX=no 11348 hardcode_shlibpath_var_CXX=no 11349 hardcode_minus_L_CXX=yes # Not in the search PATH, 11350 # but as the default 11351 # location of the library. 11352 ;; 11353 *) 11354 hardcode_direct_CXX=yes 11355 hardcode_minus_L_CXX=yes # Not in the search PATH, 11356 # but as the default 11357 # location of the library. 11358 ;; 11359 esac 11360 11361 case $cc_basename in 11362 CC) 11363 # FIXME: insert proper C++ library support 11364 ld_shlibs_CXX=no 11365 ;; 11366 aCC) 11367 case "$host_cpu" in 11368 hppa*64*|ia64*) 11369 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 11370 ;; 11371 *) 11372 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11373 ;; 11374 esac 11375 # Commands to make compiler produce verbose output that lists 11376 # what "hidden" libraries, object files and flags are used when 11377 # linking a shared library. 11378 # 11379 # There doesn't appear to be a way to prevent this compiler from 11380 # explicitly linking system object files so we need to strip them 11381 # from the output so that they don't get included in the library 11382 # dependencies. 11383 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; echo $list' 11384 ;; 11385 *) 11386 if test "$GXX" = yes; then 11387 if test $with_gnu_ld = no; then 11388 case "$host_cpu" in 11389 ia64*|hppa*64*) 11390 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 11391 ;; 11392 *) 11393 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11394 ;; 11395 esac 11396 fi 11397 else 11398 # FIXME: insert proper C++ library support 11399 ld_shlibs_CXX=no 11400 fi 11401 ;; 11402 esac 11403 ;; 11404 irix5* | irix6*) 11405 case $cc_basename in 11406 CC) 11407 # SGI C++ 11408 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' 11409 11410 # Archives containing C++ object files must be created using 11411 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11412 # necessary to make sure instantiated templates are included 11413 # in the archive. 11414 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11415 ;; 11416 *) 11417 if test "$GXX" = yes; then 11418 if test "$with_gnu_ld" = no; then 11419 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' 11420 else 11421 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' 11422 fi 11423 fi 11424 link_all_deplibs_CXX=yes 11425 ;; 11426 esac 11427 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11428 hardcode_libdir_separator_CXX=: 11429 ;; 11430 linux*) 11431 case $cc_basename in 11432 KCC) 11433 # Kuck and Associates, Inc. (KAI) C++ Compiler 11434 11435 # KCC will only create a shared library if the output file 11436 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11437 # to its proper name (with version) after linking. 11438 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' 11439 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' 11440 # Commands to make compiler produce verbose output that lists 11441 # what "hidden" libraries, object files and flags are used when 11442 # linking a shared library. 11443 # 11444 # There doesn't appear to be a way to prevent this compiler from 11445 # explicitly linking system object files so we need to strip them 11446 # from the output so that they don't get included in the library 11447 # dependencies. 11448 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; echo $list' 11449 11450 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11451 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11452 11453 # Archives containing C++ object files must be created using 11454 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11455 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11456 ;; 11457 icpc) 11458 # Intel C++ 11459 with_gnu_ld=yes 11460 archive_cmds_need_lc_CXX=no 11461 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11462 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' 11463 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11464 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11465 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11466 ;; 11467 cxx) 11468 # Compaq C++ 11469 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11470 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' 11471 11472 runpath_var=LD_RUN_PATH 11473 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11474 hardcode_libdir_separator_CXX=: 11475 11476 # Commands to make compiler produce verbose output that lists 11477 # what "hidden" libraries, object files and flags are used when 11478 # linking a shared library. 11479 # 11480 # There doesn't appear to be a way to prevent this compiler from 11481 # explicitly linking system object files so we need to strip them 11482 # from the output so that they don't get included in the library 11483 # dependencies. 11484 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list' 11485 ;; 11486 esac 11487 ;; 11488 lynxos*) 11489 # FIXME: insert proper C++ library support 11490 ld_shlibs_CXX=no 11491 ;; 11492 m88k*) 11493 # FIXME: insert proper C++ library support 11494 ld_shlibs_CXX=no 11495 ;; 11496 mvs*) 11497 case $cc_basename in 11498 cxx) 11499 # FIXME: insert proper C++ library support 11500 ld_shlibs_CXX=no 11501 ;; 11502 *) 11503 # FIXME: insert proper C++ library support 11504 ld_shlibs_CXX=no 11505 ;; 11506 esac 11507 ;; 11508 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 11509 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11510 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11511 wlarc= 11512 hardcode_libdir_flag_spec_CXX='-R$libdir' 11513 hardcode_direct_CXX=yes 11514 hardcode_shlibpath_var_CXX=no 11515 fi 11516 # Workaround some broken pre-1.5 toolchains 11517 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11518 ;; 11519 osf3*) 11520 case $cc_basename in 11521 KCC) 11522 # Kuck and Associates, Inc. (KAI) C++ Compiler 11523 11524 # KCC will only create a shared library if the output file 11525 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11526 # to its proper name (with version) after linking. 11527 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' 11528 11529 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11530 hardcode_libdir_separator_CXX=: 11531 11532 # Archives containing C++ object files must be created using 11533 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11534 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11535 11536 ;; 11537 RCC) 11538 # Rational C++ 2.4.1 11539 # FIXME: insert proper C++ library support 11540 ld_shlibs_CXX=no 11541 ;; 11542 cxx) 11543 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11544 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' 11545 11546 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11547 hardcode_libdir_separator_CXX=: 11548 11549 # Commands to make compiler produce verbose output that lists 11550 # what "hidden" libraries, object files and flags are used when 11551 # linking a shared library. 11552 # 11553 # There doesn't appear to be a way to prevent this compiler from 11554 # explicitly linking system object files so we need to strip them 11555 # from the output so that they don't get included in the library 11556 # dependencies. 11557 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list' 11558 ;; 11559 *) 11560 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11561 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11562 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' 11563 11564 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11565 hardcode_libdir_separator_CXX=: 11566 11567 # Commands to make compiler produce verbose output that lists 11568 # what "hidden" libraries, object files and flags are used when 11569 # linking a shared library. 11570 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11571 11572 else 11573 # FIXME: insert proper C++ library support 11574 ld_shlibs_CXX=no 11575 fi 11576 ;; 11577 esac 11578 ;; 11579 osf4* | osf5*) 11580 case $cc_basename in 11581 KCC) 11582 # Kuck and Associates, Inc. (KAI) C++ Compiler 11583 11584 # KCC will only create a shared library if the output file 11585 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11586 # to its proper name (with version) after linking. 11587 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' 11588 11589 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11590 hardcode_libdir_separator_CXX=: 11591 11592 # Archives containing C++ object files must be created using 11593 # the KAI C++ compiler. 11594 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11595 ;; 11596 RCC) 11597 # Rational C++ 2.4.1 11598 # FIXME: insert proper C++ library support 11599 ld_shlibs_CXX=no 11600 ;; 11601 cxx) 11602 allow_undefined_flag_CXX=' -expect_unresolved \*' 11603 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' 11604 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11605 echo "-hidden">> $lib.exp~ 11606 $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 $objdir/so_locations -o $lib~ 11607 $rm $lib.exp' 11608 11609 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11610 hardcode_libdir_separator_CXX=: 11611 11612 # Commands to make compiler produce verbose output that lists 11613 # what "hidden" libraries, object files and flags are used when 11614 # linking a shared library. 11615 # 11616 # There doesn't appear to be a way to prevent this compiler from 11617 # explicitly linking system object files so we need to strip them 11618 # from the output so that they don't get included in the library 11619 # dependencies. 11620 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list' 11621 ;; 11622 *) 11623 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11624 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11625 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' 11626 11627 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11628 hardcode_libdir_separator_CXX=: 11629 11630 # Commands to make compiler produce verbose output that lists 11631 # what "hidden" libraries, object files and flags are used when 11632 # linking a shared library. 11633 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11634 11635 else 11636 # FIXME: insert proper C++ library support 11637 ld_shlibs_CXX=no 11638 fi 11639 ;; 11640 esac 11641 ;; 11642 psos*) 11643 # FIXME: insert proper C++ library support 11644 ld_shlibs_CXX=no 11645 ;; 11646 sco*) 11647 archive_cmds_need_lc_CXX=no 11648 case $cc_basename in 11649 CC) 11650 # FIXME: insert proper C++ library support 11651 ld_shlibs_CXX=no 11652 ;; 11653 *) 11654 # FIXME: insert proper C++ library support 11655 ld_shlibs_CXX=no 11656 ;; 11657 esac 11658 ;; 11659 sunos4*) 11660 case $cc_basename in 11661 CC) 11662 # Sun C++ 4.x 11663 # FIXME: insert proper C++ library support 11664 ld_shlibs_CXX=no 11665 ;; 11666 lcc) 11667 # Lucid 11668 # FIXME: insert proper C++ library support 11669 ld_shlibs_CXX=no 11670 ;; 11671 *) 11672 # FIXME: insert proper C++ library support 11673 ld_shlibs_CXX=no 11674 ;; 11675 esac 11676 ;; 11677 solaris*) 11678 case $cc_basename in 11679 CC) 11680 # Sun C++ 4.2, 5.x and Centerline C++ 11681 no_undefined_flag_CXX=' -zdefs' 11682 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11683 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11684 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11685 11686 hardcode_libdir_flag_spec_CXX='-R$libdir' 11687 hardcode_shlibpath_var_CXX=no 11688 case $host_os in 11689 solaris2.0-5 | solaris2.0-5.*) ;; 11690 *) 11691 # The C++ compiler is used as linker so we must use $wl 11692 # flag to pass the commands to the underlying system 11693 # linker. 11694 # Supported since Solaris 2.6 (maybe 2.5.1?) 11695 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 11696 ;; 11697 esac 11698 link_all_deplibs_CXX=yes 11699 11700 # Commands to make compiler produce verbose output that lists 11701 # what "hidden" libraries, object files and flags are used when 11702 # linking a shared library. 11703 # 11704 # There doesn't appear to be a way to prevent this compiler from 11705 # explicitly linking system object files so we need to strip them 11706 # from the output so that they don't get included in the library 11707 # dependencies. 11708 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11709 11710 # Archives containing C++ object files must be created using 11711 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11712 # necessary to make sure instantiated templates are included 11713 # in the archive. 11714 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11715 ;; 11716 gcx) 11717 # Green Hills C++ Compiler 11718 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11719 11720 # The C++ compiler must be used to create the archive. 11721 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11722 ;; 11723 *) 11724 # GNU C++ compiler with Solaris linker 11725 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11726 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11727 if $CC --version | grep -v '^2\.7' > /dev/null; then 11728 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11729 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11730 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11731 11732 # Commands to make compiler produce verbose output that lists 11733 # what "hidden" libraries, object files and flags are used when 11734 # linking a shared library. 11735 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11736 else 11737 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11738 # platform. 11739 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11740 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11741 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11742 11743 # Commands to make compiler produce verbose output that lists 11744 # what "hidden" libraries, object files and flags are used when 11745 # linking a shared library. 11746 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11747 fi 11748 11749 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11750 fi 11751 ;; 11752 esac 11753 ;; 11754 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 11755 archive_cmds_need_lc_CXX=no 11756 ;; 11757 tandem*) 11758 case $cc_basename in 11759 NCC) 11760 # NonStop-UX NCC 3.20 11761 # FIXME: insert proper C++ library support 11762 ld_shlibs_CXX=no 11763 ;; 11764 *) 11765 # FIXME: insert proper C++ library support 11766 ld_shlibs_CXX=no 11767 ;; 11768 esac 11769 ;; 11770 vxworks*) 11771 # FIXME: insert proper C++ library support 11772 ld_shlibs_CXX=no 11773 ;; 11774 *) 11775 # FIXME: insert proper C++ library support 11776 ld_shlibs_CXX=no 11777 ;; 11778esac 11779echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11780echo "${ECHO_T}$ld_shlibs_CXX" >&6 11781test "$ld_shlibs_CXX" = no && can_build_shared=no 11782 11783GCC_CXX="$GXX" 11784LD_CXX="$LD" 11785 11786 11787cat > conftest.$ac_ext <<EOF 11788class Foo 11789{ 11790public: 11791 Foo (void) { a = 0; } 11792private: 11793 int a; 11794}; 11795EOF 11796 11797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11798 (eval $ac_compile) 2>&5 11799 ac_status=$? 11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11801 (exit $ac_status); }; then 11802 # Parse the compiler output and extract the necessary 11803 # objects, libraries and library flags. 11804 11805 # Sentinel used to keep track of whether or not we are before 11806 # the conftest object file. 11807 pre_test_object_deps_done=no 11808 11809 # The `*' in the case matches for architectures that use `case' in 11810 # $output_verbose_cmd can trigger glob expansion during the loop 11811 # eval without this substitution. 11812 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" 11813 11814 for p in `eval $output_verbose_link_cmd`; do 11815 case $p in 11816 11817 -L* | -R* | -l*) 11818 # Some compilers place space between "-{L,R}" and the path. 11819 # Remove the space. 11820 if test $p = "-L" \ 11821 || test $p = "-R"; then 11822 prev=$p 11823 continue 11824 else 11825 prev= 11826 fi 11827 11828 if test "$pre_test_object_deps_done" = no; then 11829 case $p in 11830 -L* | -R*) 11831 # Internal compiler library paths should come after those 11832 # provided the user. The postdeps already come after the 11833 # user supplied libs so there is no need to process them. 11834 if test -z "$compiler_lib_search_path_CXX"; then 11835 compiler_lib_search_path_CXX="${prev}${p}" 11836 else 11837 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11838 fi 11839 ;; 11840 # The "-l" case would never come before the object being 11841 # linked, so don't bother handling this case. 11842 esac 11843 else 11844 if test -z "$postdeps_CXX"; then 11845 postdeps_CXX="${prev}${p}" 11846 else 11847 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11848 fi 11849 fi 11850 ;; 11851 11852 *.$objext) 11853 # This assumes that the test object file only shows up 11854 # once in the compiler output. 11855 if test "$p" = "conftest.$objext"; then 11856 pre_test_object_deps_done=yes 11857 continue 11858 fi 11859 11860 if test "$pre_test_object_deps_done" = no; then 11861 if test -z "$predep_objects_CXX"; then 11862 predep_objects_CXX="$p" 11863 else 11864 predep_objects_CXX="$predep_objects_CXX $p" 11865 fi 11866 else 11867 if test -z "$postdep_objects_CXX"; then 11868 postdep_objects_CXX="$p" 11869 else 11870 postdep_objects_CXX="$postdep_objects_CXX $p" 11871 fi 11872 fi 11873 ;; 11874 11875 *) ;; # Ignore the rest. 11876 11877 esac 11878 done 11879 11880 # Clean up. 11881 rm -f a.out a.exe 11882else 11883 echo "libtool.m4: error: problem compiling CXX test program" 11884fi 11885 11886$rm -f confest.$objext 11887 11888case " $postdeps_CXX " in 11889*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11890esac 11891 11892lt_prog_compiler_wl_CXX= 11893lt_prog_compiler_pic_CXX= 11894lt_prog_compiler_static_CXX= 11895 11896echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11897echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 11898 11899 # C++ specific cases for pic, static, wl, etc. 11900 if test "$GXX" = yes; then 11901 lt_prog_compiler_wl_CXX='-Wl,' 11902 lt_prog_compiler_static_CXX='-static' 11903 11904 case $host_os in 11905 aix*) 11906 # All AIX code is PIC. 11907 if test "$host_cpu" = ia64; then 11908 # AIX 5 now supports IA64 processor 11909 lt_prog_compiler_static_CXX='-Bstatic' 11910 fi 11911 ;; 11912 amigaos*) 11913 # FIXME: we need at least 68020 code to build shared libraries, but 11914 # adding the `-m68020' flag to GCC prevents building anything better, 11915 # like `-m68040'. 11916 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11917 ;; 11918 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11919 # PIC is the default for these OSes. 11920 ;; 11921 mingw* | os2* | pw32*) 11922 # This hack is so that the source file can tell whether it is being 11923 # built for inclusion in a dll (and should export symbols for example). 11924 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11925 ;; 11926 darwin* | rhapsody*) 11927 # PIC is the default on this platform 11928 # Common symbols not allowed in MH_DYLIB files 11929 lt_prog_compiler_pic_CXX='-fno-common' 11930 ;; 11931 *djgpp*) 11932 # DJGPP does not support shared libraries at all 11933 lt_prog_compiler_pic_CXX= 11934 ;; 11935 sysv4*MP*) 11936 if test -d /usr/nec; then 11937 lt_prog_compiler_pic_CXX=-Kconform_pic 11938 fi 11939 ;; 11940 hpux*) 11941 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11942 # not for PA HP-UX. 11943 case "$host_cpu" in 11944 hppa*64*|ia64*) 11945 ;; 11946 *) 11947 lt_prog_compiler_pic_CXX='-fPIC' 11948 ;; 11949 esac 11950 ;; 11951 *) 11952 lt_prog_compiler_pic_CXX='-fPIC' 11953 ;; 11954 esac 11955 else 11956 case $host_os in 11957 aix4* | aix5*) 11958 # All AIX code is PIC. 11959 if test "$host_cpu" = ia64; then 11960 # AIX 5 now supports IA64 processor 11961 lt_prog_compiler_static_CXX='-Bstatic' 11962 else 11963 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11964 fi 11965 ;; 11966 chorus*) 11967 case $cc_basename in 11968 cxch68) 11969 # Green Hills C++ Compiler 11970 # _LT_AC_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" 11971 ;; 11972 esac 11973 ;; 11974 dgux*) 11975 case $cc_basename in 11976 ec++) 11977 lt_prog_compiler_pic_CXX='-KPIC' 11978 ;; 11979 ghcx) 11980 # Green Hills C++ Compiler 11981 lt_prog_compiler_pic_CXX='-pic' 11982 ;; 11983 *) 11984 ;; 11985 esac 11986 ;; 11987 freebsd* | kfreebsd*-gnu) 11988 # FreeBSD uses GNU C++ 11989 ;; 11990 hpux9* | hpux10* | hpux11*) 11991 case $cc_basename in 11992 CC) 11993 lt_prog_compiler_wl_CXX='-Wl,' 11994 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 11995 if test "$host_cpu" != ia64; then 11996 lt_prog_compiler_pic_CXX='+Z' 11997 fi 11998 ;; 11999 aCC) 12000 lt_prog_compiler_wl_CXX='-Wl,' 12001 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 12002 case "$host_cpu" in 12003 hppa*64*|ia64*) 12004 # +Z the default 12005 ;; 12006 *) 12007 lt_prog_compiler_pic_CXX='+Z' 12008 ;; 12009 esac 12010 ;; 12011 *) 12012 ;; 12013 esac 12014 ;; 12015 irix5* | irix6* | nonstopux*) 12016 case $cc_basename in 12017 CC) 12018 lt_prog_compiler_wl_CXX='-Wl,' 12019 lt_prog_compiler_static_CXX='-non_shared' 12020 # CC pic flag -KPIC is the default. 12021 ;; 12022 *) 12023 ;; 12024 esac 12025 ;; 12026 linux*) 12027 case $cc_basename in 12028 KCC) 12029 # KAI C++ Compiler 12030 lt_prog_compiler_wl_CXX='--backend -Wl,' 12031 lt_prog_compiler_pic_CXX='-fPIC' 12032 ;; 12033 icpc) 12034 # Intel C++ 12035 lt_prog_compiler_wl_CXX='-Wl,' 12036 lt_prog_compiler_pic_CXX='-KPIC' 12037 lt_prog_compiler_static_CXX='-static' 12038 ;; 12039 cxx) 12040 # Compaq C++ 12041 # Make sure the PIC flag is empty. It appears that all Alpha 12042 # Linux and Compaq Tru64 Unix objects are PIC. 12043 lt_prog_compiler_pic_CXX= 12044 lt_prog_compiler_static_CXX='-non_shared' 12045 ;; 12046 *) 12047 ;; 12048 esac 12049 ;; 12050 lynxos*) 12051 ;; 12052 m88k*) 12053 ;; 12054 mvs*) 12055 case $cc_basename in 12056 cxx) 12057 lt_prog_compiler_pic_CXX='-W c,exportall' 12058 ;; 12059 *) 12060 ;; 12061 esac 12062 ;; 12063 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 12064 ;; 12065 osf3* | osf4* | osf5*) 12066 case $cc_basename in 12067 KCC) 12068 lt_prog_compiler_wl_CXX='--backend -Wl,' 12069 ;; 12070 RCC) 12071 # Rational C++ 2.4.1 12072 lt_prog_compiler_pic_CXX='-pic' 12073 ;; 12074 cxx) 12075 # Digital/Compaq C++ 12076 lt_prog_compiler_wl_CXX='-Wl,' 12077 # Make sure the PIC flag is empty. It appears that all Alpha 12078 # Linux and Compaq Tru64 Unix objects are PIC. 12079 lt_prog_compiler_pic_CXX= 12080 lt_prog_compiler_static_CXX='-non_shared' 12081 ;; 12082 *) 12083 ;; 12084 esac 12085 ;; 12086 psos*) 12087 ;; 12088 sco*) 12089 case $cc_basename in 12090 CC) 12091 lt_prog_compiler_pic_CXX='-fPIC' 12092 ;; 12093 *) 12094 ;; 12095 esac 12096 ;; 12097 solaris*) 12098 case $cc_basename in 12099 CC) 12100 # Sun C++ 4.2, 5.x and Centerline C++ 12101 lt_prog_compiler_pic_CXX='-KPIC' 12102 lt_prog_compiler_static_CXX='-Bstatic' 12103 lt_prog_compiler_wl_CXX='-Qoption ld ' 12104 ;; 12105 gcx) 12106 # Green Hills C++ Compiler 12107 lt_prog_compiler_pic_CXX='-PIC' 12108 ;; 12109 *) 12110 ;; 12111 esac 12112 ;; 12113 sunos4*) 12114 case $cc_basename in 12115 CC) 12116 # Sun C++ 4.x 12117 lt_prog_compiler_pic_CXX='-pic' 12118 lt_prog_compiler_static_CXX='-Bstatic' 12119 ;; 12120 lcc) 12121 # Lucid 12122 lt_prog_compiler_pic_CXX='-pic' 12123 ;; 12124 *) 12125 ;; 12126 esac 12127 ;; 12128 tandem*) 12129 case $cc_basename in 12130 NCC) 12131 # NonStop-UX NCC 3.20 12132 lt_prog_compiler_pic_CXX='-KPIC' 12133 ;; 12134 *) 12135 ;; 12136 esac 12137 ;; 12138 unixware*) 12139 ;; 12140 vxworks*) 12141 ;; 12142 *) 12143 lt_prog_compiler_can_build_shared_CXX=no 12144 ;; 12145 esac 12146 fi 12147 12148echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12149echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 12150 12151# 12152# Check to make sure the PIC flag actually works. 12153# 12154if test -n "$lt_prog_compiler_pic_CXX"; then 12155 12156echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12157echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 12158if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12159 echo $ECHO_N "(cached) $ECHO_C" >&6 12160else 12161 lt_prog_compiler_pic_works_CXX=no 12162 ac_outfile=conftest.$ac_objext 12163 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12164 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12165 # Insert the option either (1) after the last *FLAGS variable, or 12166 # (2) before a word containing "conftest.", or (3) at the end. 12167 # Note that $ac_compile itself does not contain backslashes and begins 12168 # with a dollar sign (not a hyphen), so the echo should work correctly. 12169 # The option is referenced via a variable to avoid confusing sed. 12170 lt_compile=`echo "$ac_compile" | $SED \ 12171 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 12172 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12173 -e 's:$: $lt_compiler_flag:'` 12174 (eval echo "\"\$as_me:12174: $lt_compile\"" >&5) 12175 (eval "$lt_compile" 2>conftest.err) 12176 ac_status=$? 12177 cat conftest.err >&5 12178 echo "$as_me:12178: \$? = $ac_status" >&5 12179 if (exit $ac_status) && test -s "$ac_outfile"; then 12180 # The compiler can only warn and ignore the option if not recognized 12181 # So say no if there are warnings 12182 if test ! -s conftest.err; then 12183 lt_prog_compiler_pic_works_CXX=yes 12184 fi 12185 fi 12186 $rm conftest* 12187 12188fi 12189echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12190echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 12191 12192if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12193 case $lt_prog_compiler_pic_CXX in 12194 "" | " "*) ;; 12195 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12196 esac 12197else 12198 lt_prog_compiler_pic_CXX= 12199 lt_prog_compiler_can_build_shared_CXX=no 12200fi 12201 12202fi 12203case "$host_os" in 12204 # For platforms which do not support PIC, -DPIC is meaningless: 12205 *djgpp*) 12206 lt_prog_compiler_pic_CXX= 12207 ;; 12208 *) 12209 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12210 ;; 12211esac 12212 12213echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12214echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 12215if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12216 echo $ECHO_N "(cached) $ECHO_C" >&6 12217else 12218 lt_cv_prog_compiler_c_o_CXX=no 12219 $rm -r conftest 2>/dev/null 12220 mkdir conftest 12221 cd conftest 12222 mkdir out 12223 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12224 12225 lt_compiler_flag="-o out/conftest2.$ac_objext" 12226 # Insert the option either (1) after the last *FLAGS variable, or 12227 # (2) before a word containing "conftest.", or (3) at the end. 12228 # Note that $ac_compile itself does not contain backslashes and begins 12229 # with a dollar sign (not a hyphen), so the echo should work correctly. 12230 lt_compile=`echo "$ac_compile" | $SED \ 12231 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 12232 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12233 -e 's:$: $lt_compiler_flag:'` 12234 (eval echo "\"\$as_me:12234: $lt_compile\"" >&5) 12235 (eval "$lt_compile" 2>out/conftest.err) 12236 ac_status=$? 12237 cat out/conftest.err >&5 12238 echo "$as_me:12238: \$? = $ac_status" >&5 12239 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12240 then 12241 # The compiler can only warn and ignore the option if not recognized 12242 # So say no if there are warnings 12243 if test ! -s out/conftest.err; then 12244 lt_cv_prog_compiler_c_o_CXX=yes 12245 fi 12246 fi 12247 chmod u+w . 12248 $rm conftest* 12249 # SGI C++ compiler will create directory out/ii_files/ for 12250 # template instantiation 12251 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12252 $rm out/* && rmdir out 12253 cd .. 12254 rmdir conftest 12255 $rm conftest* 12256 12257fi 12258echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12259echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 12260 12261 12262hard_links="nottested" 12263if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12264 # do not overwrite the value of need_locks provided by the user 12265 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12266echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 12267 hard_links=yes 12268 $rm conftest* 12269 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12270 touch conftest.a 12271 ln conftest.a conftest.b 2>&5 || hard_links=no 12272 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12273 echo "$as_me:$LINENO: result: $hard_links" >&5 12274echo "${ECHO_T}$hard_links" >&6 12275 if test "$hard_links" = no; then 12276 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12277echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12278 need_locks=warn 12279 fi 12280else 12281 need_locks=no 12282fi 12283 12284echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12285echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 12286 12287 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12288 case $host_os in 12289 aix4* | aix5*) 12290 # If we're using GNU nm, then we don't want the "-C" option. 12291 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12292 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12293 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 12294 else 12295 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' 12296 fi 12297 ;; 12298 pw32*) 12299 export_symbols_cmds_CXX="$ltdll_cmds" 12300 ;; 12301 cygwin* | mingw*) 12302 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 12303 ;; 12304 linux*) 12305 link_all_deplibs_CXX=no 12306 ;; 12307 *) 12308 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12309 ;; 12310 esac 12311 12312echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12313echo "${ECHO_T}$ld_shlibs_CXX" >&6 12314test "$ld_shlibs_CXX" = no && can_build_shared=no 12315 12316variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12317if test "$GCC" = yes; then 12318 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12319fi 12320 12321# 12322# Do we need to explicitly link libc? 12323# 12324case "x$archive_cmds_need_lc_CXX" in 12325x|xyes) 12326 # Assume -lc should be added 12327 archive_cmds_need_lc_CXX=yes 12328 12329 if test "$enable_shared" = yes && test "$GCC" = yes; then 12330 case $archive_cmds_CXX in 12331 *'~'*) 12332 # FIXME: we may have to deal with multi-command sequences. 12333 ;; 12334 '$CC '*) 12335 # Test whether the compiler implicitly links with -lc since on some 12336 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12337 # to ld, don't add -lc before -lgcc. 12338 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12339echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 12340 $rm conftest* 12341 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12342 12343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12344 (eval $ac_compile) 2>&5 12345 ac_status=$? 12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12347 (exit $ac_status); } 2>conftest.err; then 12348 soname=conftest 12349 lib=conftest 12350 libobjs=conftest.$ac_objext 12351 deplibs= 12352 wl=$lt_prog_compiler_wl_CXX 12353 compiler_flags=-v 12354 linker_flags=-v 12355 verstring= 12356 output_objdir=. 12357 libname=conftest 12358 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12359 allow_undefined_flag_CXX= 12360 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12361 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12362 ac_status=$? 12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12364 (exit $ac_status); } 12365 then 12366 archive_cmds_need_lc_CXX=no 12367 else 12368 archive_cmds_need_lc_CXX=yes 12369 fi 12370 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12371 else 12372 cat conftest.err 1>&5 12373 fi 12374 $rm conftest* 12375 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12376echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 12377 ;; 12378 esac 12379 fi 12380 ;; 12381esac 12382 12383echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12384echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 12385library_names_spec= 12386libname_spec='lib$name' 12387soname_spec= 12388shrext_cmds=".so" 12389postinstall_cmds= 12390postuninstall_cmds= 12391finish_cmds= 12392finish_eval= 12393shlibpath_var= 12394shlibpath_overrides_runpath=unknown 12395version_type=none 12396dynamic_linker="$host_os ld.so" 12397sys_lib_dlsearch_path_spec="/lib /usr/lib" 12398if test "$GCC" = yes; then 12399 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12400 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 12401 # if the path contains ";" then we assume it to be the separator 12402 # otherwise default to the standard path separator (i.e. ":") - it is 12403 # assumed that no part of a normal pathname contains ";" but that should 12404 # okay in the real world where ";" in dirpaths is itself problematic. 12405 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12406 else 12407 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12408 fi 12409else 12410 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12411fi 12412need_lib_prefix=unknown 12413hardcode_into_libs=no 12414 12415# when you set need_version to no, make sure it does not cause -set_version 12416# flags to be left without arguments 12417need_version=unknown 12418 12419case $host_os in 12420aix3*) 12421 version_type=linux 12422 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12423 shlibpath_var=LIBPATH 12424 12425 # AIX 3 has no versioning support, so we append a major version to the name. 12426 soname_spec='${libname}${release}${shared_ext}$major' 12427 ;; 12428 12429aix4* | aix5*) 12430 version_type=linux 12431 need_lib_prefix=no 12432 need_version=no 12433 hardcode_into_libs=yes 12434 if test "$host_cpu" = ia64; then 12435 # AIX 5 supports IA64 12436 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12437 shlibpath_var=LD_LIBRARY_PATH 12438 else 12439 # With GCC up to 2.95.x, collect2 would create an import file 12440 # for dependence libraries. The import file would start with 12441 # the line `#! .'. This would cause the generated library to 12442 # depend on `.', always an invalid library. This was fixed in 12443 # development snapshots of GCC prior to 3.0. 12444 case $host_os in 12445 aix4 | aix4.[01] | aix4.[01].*) 12446 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12447 echo ' yes ' 12448 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12449 : 12450 else 12451 can_build_shared=no 12452 fi 12453 ;; 12454 esac 12455 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12456 # soname into executable. Probably we can add versioning support to 12457 # collect2, so additional links can be useful in future. 12458 if test "$aix_use_runtimelinking" = yes; then 12459 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12460 # instead of lib<name>.a to let people know that these are not 12461 # typical AIX shared libraries. 12462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12463 else 12464 # We preserve .a as extension for shared libraries through AIX4.2 12465 # and later when we are not doing run time linking. 12466 library_names_spec='${libname}${release}.a $libname.a' 12467 soname_spec='${libname}${release}${shared_ext}$major' 12468 fi 12469 shlibpath_var=LIBPATH 12470 fi 12471 ;; 12472 12473amigaos*) 12474 library_names_spec='$libname.ixlibrary $libname.a' 12475 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12476 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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' 12477 ;; 12478 12479beos*) 12480 library_names_spec='${libname}${shared_ext}' 12481 dynamic_linker="$host_os ld.so" 12482 shlibpath_var=LIBRARY_PATH 12483 ;; 12484 12485bsdi4*) 12486 version_type=linux 12487 need_version=no 12488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12489 soname_spec='${libname}${release}${shared_ext}$major' 12490 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12491 shlibpath_var=LD_LIBRARY_PATH 12492 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12493 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12494 # the default ld.so.conf also contains /usr/contrib/lib and 12495 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12496 # libtool to hard-code these into programs 12497 ;; 12498 12499cygwin* | mingw* | pw32*) 12500 version_type=windows 12501 shrext_cmds=".dll" 12502 need_version=no 12503 need_lib_prefix=no 12504 12505 case $GCC,$host_os in 12506 yes,cygwin* | yes,mingw* | yes,pw32*) 12507 library_names_spec='$libname.dll.a' 12508 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12509 postinstall_cmds='base_file=`basename \${file}`~ 12510 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12511 dldir=$destdir/`dirname \$dlpath`~ 12512 test -d \$dldir || mkdir -p \$dldir~ 12513 $install_prog $dir/$dlname \$dldir/$dlname' 12514 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12515 dlpath=$dir/\$dldll~ 12516 $rm \$dlpath' 12517 shlibpath_overrides_runpath=yes 12518 12519 case $host_os in 12520 cygwin*) 12521 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12522 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12523 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12524 ;; 12525 mingw*) 12526 # MinGW DLLs use traditional 'lib' prefix 12527 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12528 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12529 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12530 # It is most probably a Windows format PATH printed by 12531 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12532 # path with ; separators, and with drive letters. We can handle the 12533 # drive letters (cygwin fileutils understands them), so leave them, 12534 # especially as we might pass files found there to a mingw objdump, 12535 # which wouldn't understand a cygwinified path. Ahh. 12536 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12537 else 12538 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12539 fi 12540 ;; 12541 pw32*) 12542 # pw32 DLLs use 'pw' prefix rather than 'lib' 12543 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 12544 ;; 12545 esac 12546 ;; 12547 12548 *) 12549 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12550 ;; 12551 esac 12552 dynamic_linker='Win32 ld.exe' 12553 # FIXME: first we should search . and the directory the executable is in 12554 shlibpath_var=PATH 12555 ;; 12556 12557darwin* | rhapsody*) 12558 dynamic_linker="$host_os dyld" 12559 version_type=darwin 12560 need_lib_prefix=no 12561 need_version=no 12562 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12563 soname_spec='${libname}${release}${major}$shared_ext' 12564 shlibpath_overrides_runpath=yes 12565 shlibpath_var=DYLD_LIBRARY_PATH 12566 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 12567 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 12568 if test "$GCC" = yes; then 12569 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 12570 else 12571 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 12572 fi 12573 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12574 ;; 12575 12576dgux*) 12577 version_type=linux 12578 need_lib_prefix=no 12579 need_version=no 12580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12581 soname_spec='${libname}${release}${shared_ext}$major' 12582 shlibpath_var=LD_LIBRARY_PATH 12583 ;; 12584 12585freebsd1*) 12586 dynamic_linker=no 12587 ;; 12588 12589kfreebsd*-gnu) 12590 version_type=linux 12591 need_lib_prefix=no 12592 need_version=no 12593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12594 soname_spec='${libname}${release}${shared_ext}$major' 12595 shlibpath_var=LD_LIBRARY_PATH 12596 shlibpath_overrides_runpath=no 12597 hardcode_into_libs=yes 12598 dynamic_linker='GNU ld.so' 12599 ;; 12600 12601freebsd*) 12602 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 12603 version_type=freebsd-$objformat 12604 case $version_type in 12605 freebsd-elf*) 12606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12607 need_version=no 12608 need_lib_prefix=no 12609 ;; 12610 freebsd-*) 12611 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12612 need_version=yes 12613 ;; 12614 esac 12615 shlibpath_var=LD_LIBRARY_PATH 12616 case $host_os in 12617 freebsd2*) 12618 shlibpath_overrides_runpath=yes 12619 ;; 12620 freebsd3.01* | freebsdelf3.01*) 12621 shlibpath_overrides_runpath=yes 12622 hardcode_into_libs=yes 12623 ;; 12624 *) # from 3.2 on 12625 shlibpath_overrides_runpath=no 12626 hardcode_into_libs=yes 12627 ;; 12628 esac 12629 ;; 12630 12631gnu*) 12632 version_type=linux 12633 need_lib_prefix=no 12634 need_version=no 12635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12636 soname_spec='${libname}${release}${shared_ext}$major' 12637 shlibpath_var=LD_LIBRARY_PATH 12638 hardcode_into_libs=yes 12639 ;; 12640 12641hpux9* | hpux10* | hpux11*) 12642 # Give a soname corresponding to the major version so that dld.sl refuses to 12643 # link against other versions. 12644 version_type=sunos 12645 need_lib_prefix=no 12646 need_version=no 12647 case "$host_cpu" in 12648 ia64*) 12649 shrext_cmds='.so' 12650 hardcode_into_libs=yes 12651 dynamic_linker="$host_os dld.so" 12652 shlibpath_var=LD_LIBRARY_PATH 12653 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12655 soname_spec='${libname}${release}${shared_ext}$major' 12656 if test "X$HPUX_IA64_MODE" = X32; then 12657 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12658 else 12659 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12660 fi 12661 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12662 ;; 12663 hppa*64*) 12664 shrext_cmds='.sl' 12665 hardcode_into_libs=yes 12666 dynamic_linker="$host_os dld.sl" 12667 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12668 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12670 soname_spec='${libname}${release}${shared_ext}$major' 12671 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12672 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12673 ;; 12674 *) 12675 shrext_cmds='.sl' 12676 dynamic_linker="$host_os dld.sl" 12677 shlibpath_var=SHLIB_PATH 12678 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12680 soname_spec='${libname}${release}${shared_ext}$major' 12681 ;; 12682 esac 12683 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12684 postinstall_cmds='chmod 555 $lib' 12685 ;; 12686 12687irix5* | irix6* | nonstopux*) 12688 case $host_os in 12689 nonstopux*) version_type=nonstopux ;; 12690 *) 12691 if test "$lt_cv_prog_gnu_ld" = yes; then 12692 version_type=linux 12693 else 12694 version_type=irix 12695 fi ;; 12696 esac 12697 need_lib_prefix=no 12698 need_version=no 12699 soname_spec='${libname}${release}${shared_ext}$major' 12700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12701 case $host_os in 12702 irix5* | nonstopux*) 12703 libsuff= shlibsuff= 12704 ;; 12705 *) 12706 case $LD in # libtool.m4 will add one of these switches to LD 12707 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12708 libsuff= shlibsuff= libmagic=32-bit;; 12709 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12710 libsuff=32 shlibsuff=N32 libmagic=N32;; 12711 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12712 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12713 *) libsuff= shlibsuff= libmagic=never-match;; 12714 esac 12715 ;; 12716 esac 12717 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12718 shlibpath_overrides_runpath=no 12719 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12720 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12721 hardcode_into_libs=yes 12722 ;; 12723 12724# No shared lib support for Linux oldld, aout, or coff. 12725linux*oldld* | linux*aout* | linux*coff*) 12726 dynamic_linker=no 12727 ;; 12728 12729# This must be Linux ELF. 12730linux*) 12731 version_type=linux 12732 need_lib_prefix=no 12733 need_version=no 12734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12735 soname_spec='${libname}${release}${shared_ext}$major' 12736 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12737 shlibpath_var=LD_LIBRARY_PATH 12738 shlibpath_overrides_runpath=no 12739 # This implies no fast_install, which is unacceptable. 12740 # Some rework will be needed to allow for fast_install 12741 # before this can be enabled. 12742 hardcode_into_libs=yes 12743 12744 # Append ld.so.conf contents to the search path 12745 if test -f /etc/ld.so.conf; then 12746 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 12747 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12748 fi 12749 12750 # We used to test for /lib/ld.so.1 and disable shared libraries on 12751 # powerpc, because MkLinux only supported shared libraries with the 12752 # GNU dynamic linker. Since this was broken with cross compilers, 12753 # most powerpc-linux boxes support dynamic linking these days and 12754 # people can always --disable-shared, the test was removed, and we 12755 # assume the GNU/Linux dynamic linker is in use. 12756 dynamic_linker='GNU/Linux ld.so' 12757 ;; 12758 12759netbsdelf*-gnu) 12760 version_type=linux 12761 need_lib_prefix=no 12762 need_version=no 12763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12764 soname_spec='${libname}${release}${shared_ext}$major' 12765 shlibpath_var=LD_LIBRARY_PATH 12766 shlibpath_overrides_runpath=no 12767 hardcode_into_libs=yes 12768 dynamic_linker='NetBSD ld.elf_so' 12769 ;; 12770 12771knetbsd*-gnu) 12772 version_type=linux 12773 need_lib_prefix=no 12774 need_version=no 12775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12776 soname_spec='${libname}${release}${shared_ext}$major' 12777 shlibpath_var=LD_LIBRARY_PATH 12778 shlibpath_overrides_runpath=no 12779 hardcode_into_libs=yes 12780 dynamic_linker='GNU ld.so' 12781 ;; 12782 12783netbsd*) 12784 version_type=sunos 12785 need_lib_prefix=no 12786 need_version=no 12787 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12789 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12790 dynamic_linker='NetBSD (a.out) ld.so' 12791 else 12792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12793 soname_spec='${libname}${release}${shared_ext}$major' 12794 dynamic_linker='NetBSD ld.elf_so' 12795 fi 12796 shlibpath_var=LD_LIBRARY_PATH 12797 shlibpath_overrides_runpath=yes 12798 hardcode_into_libs=yes 12799 ;; 12800 12801newsos6) 12802 version_type=linux 12803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12804 shlibpath_var=LD_LIBRARY_PATH 12805 shlibpath_overrides_runpath=yes 12806 ;; 12807 12808nto-qnx*) 12809 version_type=linux 12810 need_lib_prefix=no 12811 need_version=no 12812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12813 soname_spec='${libname}${release}${shared_ext}$major' 12814 shlibpath_var=LD_LIBRARY_PATH 12815 shlibpath_overrides_runpath=yes 12816 ;; 12817 12818openbsd*) 12819 version_type=sunos 12820 need_lib_prefix=no 12821 need_version=yes 12822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12823 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12824 shlibpath_var=LD_LIBRARY_PATH 12825 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12826 case $host_os in 12827 openbsd2.[89] | openbsd2.[89].*) 12828 shlibpath_overrides_runpath=no 12829 ;; 12830 *) 12831 shlibpath_overrides_runpath=yes 12832 ;; 12833 esac 12834 else 12835 shlibpath_overrides_runpath=yes 12836 fi 12837 ;; 12838 12839os2*) 12840 libname_spec='$name' 12841 shrext_cmds=".dll" 12842 need_lib_prefix=no 12843 library_names_spec='$libname${shared_ext} $libname.a' 12844 dynamic_linker='OS/2 ld.exe' 12845 shlibpath_var=LIBPATH 12846 ;; 12847 12848osf3* | osf4* | osf5*) 12849 version_type=osf 12850 need_lib_prefix=no 12851 need_version=no 12852 soname_spec='${libname}${release}${shared_ext}$major' 12853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12854 shlibpath_var=LD_LIBRARY_PATH 12855 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12856 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12857 ;; 12858 12859sco3.2v5*) 12860 version_type=osf 12861 soname_spec='${libname}${release}${shared_ext}$major' 12862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12863 shlibpath_var=LD_LIBRARY_PATH 12864 ;; 12865 12866solaris*) 12867 version_type=linux 12868 need_lib_prefix=no 12869 need_version=no 12870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12871 soname_spec='${libname}${release}${shared_ext}$major' 12872 shlibpath_var=LD_LIBRARY_PATH 12873 shlibpath_overrides_runpath=yes 12874 hardcode_into_libs=yes 12875 # ldd complains unless libraries are executable 12876 postinstall_cmds='chmod +x $lib' 12877 ;; 12878 12879sunos4*) 12880 version_type=sunos 12881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12882 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12883 shlibpath_var=LD_LIBRARY_PATH 12884 shlibpath_overrides_runpath=yes 12885 if test "$with_gnu_ld" = yes; then 12886 need_lib_prefix=no 12887 fi 12888 need_version=yes 12889 ;; 12890 12891sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12892 version_type=linux 12893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12894 soname_spec='${libname}${release}${shared_ext}$major' 12895 shlibpath_var=LD_LIBRARY_PATH 12896 case $host_vendor in 12897 sni) 12898 shlibpath_overrides_runpath=no 12899 need_lib_prefix=no 12900 export_dynamic_flag_spec='${wl}-Blargedynsym' 12901 runpath_var=LD_RUN_PATH 12902 ;; 12903 siemens) 12904 need_lib_prefix=no 12905 ;; 12906 motorola) 12907 need_lib_prefix=no 12908 need_version=no 12909 shlibpath_overrides_runpath=no 12910 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12911 ;; 12912 esac 12913 ;; 12914 12915sysv4*MP*) 12916 if test -d /usr/nec ;then 12917 version_type=linux 12918 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12919 soname_spec='$libname${shared_ext}.$major' 12920 shlibpath_var=LD_LIBRARY_PATH 12921 fi 12922 ;; 12923 12924uts4*) 12925 version_type=linux 12926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12927 soname_spec='${libname}${release}${shared_ext}$major' 12928 shlibpath_var=LD_LIBRARY_PATH 12929 ;; 12930 12931*) 12932 dynamic_linker=no 12933 ;; 12934esac 12935echo "$as_me:$LINENO: result: $dynamic_linker" >&5 12936echo "${ECHO_T}$dynamic_linker" >&6 12937test "$dynamic_linker" = no && can_build_shared=no 12938 12939echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12940echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 12941hardcode_action_CXX= 12942if test -n "$hardcode_libdir_flag_spec_CXX" || \ 12943 test -n "$runpath_var CXX" || \ 12944 test "X$hardcode_automatic_CXX"="Xyes" ; then 12945 12946 # We can hardcode non-existant directories. 12947 if test "$hardcode_direct_CXX" != no && 12948 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12949 # have to relink, otherwise we might link with an installed library 12950 # when we should be linking with a yet-to-be-installed one 12951 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 12952 test "$hardcode_minus_L_CXX" != no; then 12953 # Linking always hardcodes the temporary library directory. 12954 hardcode_action_CXX=relink 12955 else 12956 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12957 hardcode_action_CXX=immediate 12958 fi 12959else 12960 # We cannot hardcode anything, or else we can only hardcode existing 12961 # directories. 12962 hardcode_action_CXX=unsupported 12963fi 12964echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 12965echo "${ECHO_T}$hardcode_action_CXX" >&6 12966 12967if test "$hardcode_action_CXX" = relink; then 12968 # Fast installation is not supported 12969 enable_fast_install=no 12970elif test "$shlibpath_overrides_runpath" = yes || 12971 test "$enable_shared" = no; then 12972 # Fast installation is not necessary 12973 enable_fast_install=needless 12974fi 12975 12976striplib= 12977old_striplib= 12978echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 12979echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 12980if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 12981 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12982 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12983 echo "$as_me:$LINENO: result: yes" >&5 12984echo "${ECHO_T}yes" >&6 12985else 12986# FIXME - insert some real tests, host_os isn't really good enough 12987 case $host_os in 12988 darwin*) 12989 if test -n "$STRIP" ; then 12990 striplib="$STRIP -x" 12991 echo "$as_me:$LINENO: result: yes" >&5 12992echo "${ECHO_T}yes" >&6 12993 else 12994 echo "$as_me:$LINENO: result: no" >&5 12995echo "${ECHO_T}no" >&6 12996fi 12997 ;; 12998 *) 12999 echo "$as_me:$LINENO: result: no" >&5 13000echo "${ECHO_T}no" >&6 13001 ;; 13002 esac 13003fi 13004 13005if test "x$enable_dlopen" != xyes; then 13006 enable_dlopen=unknown 13007 enable_dlopen_self=unknown 13008 enable_dlopen_self_static=unknown 13009else 13010 lt_cv_dlopen=no 13011 lt_cv_dlopen_libs= 13012 13013 case $host_os in 13014 beos*) 13015 lt_cv_dlopen="load_add_on" 13016 lt_cv_dlopen_libs= 13017 lt_cv_dlopen_self=yes 13018 ;; 13019 13020 mingw* | pw32*) 13021 lt_cv_dlopen="LoadLibrary" 13022 lt_cv_dlopen_libs= 13023 ;; 13024 13025 cygwin*) 13026 lt_cv_dlopen="dlopen" 13027 lt_cv_dlopen_libs= 13028 ;; 13029 13030 darwin*) 13031 # if libdl is installed we need to link against it 13032 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 13033echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 13034if test "${ac_cv_lib_dl_dlopen+set}" = set; then 13035 echo $ECHO_N "(cached) $ECHO_C" >&6 13036else 13037 ac_check_lib_save_LIBS=$LIBS 13038LIBS="-ldl $LIBS" 13039cat >conftest.$ac_ext <<_ACEOF 13040/* confdefs.h. */ 13041_ACEOF 13042cat confdefs.h >>conftest.$ac_ext 13043cat >>conftest.$ac_ext <<_ACEOF 13044/* end confdefs.h. */ 13045 13046/* Override any gcc2 internal prototype to avoid an error. */ 13047#ifdef __cplusplus 13048extern "C" 13049#endif 13050/* We use char because int might match the return type of a gcc2 13051 builtin and then its argument prototype would still apply. */ 13052char dlopen (); 13053int 13054main () 13055{ 13056dlopen (); 13057 ; 13058 return 0; 13059} 13060_ACEOF 13061rm -f conftest.$ac_objext conftest$ac_exeext 13062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13063 (eval $ac_link) 2>conftest.er1 13064 ac_status=$? 13065 grep -v '^ *+' conftest.er1 >conftest.err 13066 rm -f conftest.er1 13067 cat conftest.err >&5 13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13069 (exit $ac_status); } && 13070 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 13071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13072 (eval $ac_try) 2>&5 13073 ac_status=$? 13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13075 (exit $ac_status); }; } && 13076 { ac_try='test -s conftest$ac_exeext' 13077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13078 (eval $ac_try) 2>&5 13079 ac_status=$? 13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13081 (exit $ac_status); }; }; then 13082 ac_cv_lib_dl_dlopen=yes 13083else 13084 echo "$as_me: failed program was:" >&5 13085sed 's/^/| /' conftest.$ac_ext >&5 13086 13087ac_cv_lib_dl_dlopen=no 13088fi 13089rm -f conftest.err conftest.$ac_objext \ 13090 conftest$ac_exeext conftest.$ac_ext 13091LIBS=$ac_check_lib_save_LIBS 13092fi 13093echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 13094echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 13095if test $ac_cv_lib_dl_dlopen = yes; then 13096 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13097else 13098 13099 lt_cv_dlopen="dyld" 13100 lt_cv_dlopen_libs= 13101 lt_cv_dlopen_self=yes 13102 13103fi 13104 13105 ;; 13106 13107 *) 13108 echo "$as_me:$LINENO: checking for shl_load" >&5 13109echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 13110if test "${ac_cv_func_shl_load+set}" = set; then 13111 echo $ECHO_N "(cached) $ECHO_C" >&6 13112else 13113 cat >conftest.$ac_ext <<_ACEOF 13114/* confdefs.h. */ 13115_ACEOF 13116cat confdefs.h >>conftest.$ac_ext 13117cat >>conftest.$ac_ext <<_ACEOF 13118/* end confdefs.h. */ 13119/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 13120 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13121#define shl_load innocuous_shl_load 13122 13123/* System header to define __stub macros and hopefully few prototypes, 13124 which can conflict with char shl_load (); below. 13125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13126 <limits.h> exists even on freestanding compilers. */ 13127 13128#ifdef __STDC__ 13129# include <limits.h> 13130#else 13131# include <assert.h> 13132#endif 13133 13134#undef shl_load 13135 13136/* Override any gcc2 internal prototype to avoid an error. */ 13137#ifdef __cplusplus 13138extern "C" 13139{ 13140#endif 13141/* We use char because int might match the return type of a gcc2 13142 builtin and then its argument prototype would still apply. */ 13143char shl_load (); 13144/* The GNU C library defines this for functions which it implements 13145 to always fail with ENOSYS. Some functions are actually named 13146 something starting with __ and the normal name is an alias. */ 13147#if defined (__stub_shl_load) || defined (__stub___shl_load) 13148choke me 13149#else 13150char (*f) () = shl_load; 13151#endif 13152#ifdef __cplusplus 13153} 13154#endif 13155 13156int 13157main () 13158{ 13159return f != shl_load; 13160 ; 13161 return 0; 13162} 13163_ACEOF 13164rm -f conftest.$ac_objext conftest$ac_exeext 13165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13166 (eval $ac_link) 2>conftest.er1 13167 ac_status=$? 13168 grep -v '^ *+' conftest.er1 >conftest.err 13169 rm -f conftest.er1 13170 cat conftest.err >&5 13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13172 (exit $ac_status); } && 13173 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 13174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13175 (eval $ac_try) 2>&5 13176 ac_status=$? 13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13178 (exit $ac_status); }; } && 13179 { ac_try='test -s conftest$ac_exeext' 13180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13181 (eval $ac_try) 2>&5 13182 ac_status=$? 13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13184 (exit $ac_status); }; }; then 13185 ac_cv_func_shl_load=yes 13186else 13187 echo "$as_me: failed program was:" >&5 13188sed 's/^/| /' conftest.$ac_ext >&5 13189 13190ac_cv_func_shl_load=no 13191fi 13192rm -f conftest.err conftest.$ac_objext \ 13193 conftest$ac_exeext conftest.$ac_ext 13194fi 13195echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 13196echo "${ECHO_T}$ac_cv_func_shl_load" >&6 13197if test $ac_cv_func_shl_load = yes; then 13198 lt_cv_dlopen="shl_load" 13199else 13200 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 13201echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 13202if test "${ac_cv_lib_dld_shl_load+set}" = set; then 13203 echo $ECHO_N "(cached) $ECHO_C" >&6 13204else 13205 ac_check_lib_save_LIBS=$LIBS 13206LIBS="-ldld $LIBS" 13207cat >conftest.$ac_ext <<_ACEOF 13208/* confdefs.h. */ 13209_ACEOF 13210cat confdefs.h >>conftest.$ac_ext 13211cat >>conftest.$ac_ext <<_ACEOF 13212/* end confdefs.h. */ 13213 13214/* Override any gcc2 internal prototype to avoid an error. */ 13215#ifdef __cplusplus 13216extern "C" 13217#endif 13218/* We use char because int might match the return type of a gcc2 13219 builtin and then its argument prototype would still apply. */ 13220char shl_load (); 13221int 13222main () 13223{ 13224shl_load (); 13225 ; 13226 return 0; 13227} 13228_ACEOF 13229rm -f conftest.$ac_objext conftest$ac_exeext 13230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13231 (eval $ac_link) 2>conftest.er1 13232 ac_status=$? 13233 grep -v '^ *+' conftest.er1 >conftest.err 13234 rm -f conftest.er1 13235 cat conftest.err >&5 13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13237 (exit $ac_status); } && 13238 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 13239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13240 (eval $ac_try) 2>&5 13241 ac_status=$? 13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13243 (exit $ac_status); }; } && 13244 { ac_try='test -s conftest$ac_exeext' 13245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13246 (eval $ac_try) 2>&5 13247 ac_status=$? 13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13249 (exit $ac_status); }; }; then 13250 ac_cv_lib_dld_shl_load=yes 13251else 13252 echo "$as_me: failed program was:" >&5 13253sed 's/^/| /' conftest.$ac_ext >&5 13254 13255ac_cv_lib_dld_shl_load=no 13256fi 13257rm -f conftest.err conftest.$ac_objext \ 13258 conftest$ac_exeext conftest.$ac_ext 13259LIBS=$ac_check_lib_save_LIBS 13260fi 13261echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 13262echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 13263if test $ac_cv_lib_dld_shl_load = yes; then 13264 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 13265else 13266 echo "$as_me:$LINENO: checking for dlopen" >&5 13267echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 13268if test "${ac_cv_func_dlopen+set}" = set; then 13269 echo $ECHO_N "(cached) $ECHO_C" >&6 13270else 13271 cat >conftest.$ac_ext <<_ACEOF 13272/* confdefs.h. */ 13273_ACEOF 13274cat confdefs.h >>conftest.$ac_ext 13275cat >>conftest.$ac_ext <<_ACEOF 13276/* end confdefs.h. */ 13277/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 13278 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13279#define dlopen innocuous_dlopen 13280 13281/* System header to define __stub macros and hopefully few prototypes, 13282 which can conflict with char dlopen (); below. 13283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13284 <limits.h> exists even on freestanding compilers. */ 13285 13286#ifdef __STDC__ 13287# include <limits.h> 13288#else 13289# include <assert.h> 13290#endif 13291 13292#undef dlopen 13293 13294/* Override any gcc2 internal prototype to avoid an error. */ 13295#ifdef __cplusplus 13296extern "C" 13297{ 13298#endif 13299/* We use char because int might match the return type of a gcc2 13300 builtin and then its argument prototype would still apply. */ 13301char dlopen (); 13302/* The GNU C library defines this for functions which it implements 13303 to always fail with ENOSYS. Some functions are actually named 13304 something starting with __ and the normal name is an alias. */ 13305#if defined (__stub_dlopen) || defined (__stub___dlopen) 13306choke me 13307#else 13308char (*f) () = dlopen; 13309#endif 13310#ifdef __cplusplus 13311} 13312#endif 13313 13314int 13315main () 13316{ 13317return f != dlopen; 13318 ; 13319 return 0; 13320} 13321_ACEOF 13322rm -f conftest.$ac_objext conftest$ac_exeext 13323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13324 (eval $ac_link) 2>conftest.er1 13325 ac_status=$? 13326 grep -v '^ *+' conftest.er1 >conftest.err 13327 rm -f conftest.er1 13328 cat conftest.err >&5 13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13330 (exit $ac_status); } && 13331 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 13332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13333 (eval $ac_try) 2>&5 13334 ac_status=$? 13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13336 (exit $ac_status); }; } && 13337 { ac_try='test -s conftest$ac_exeext' 13338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13339 (eval $ac_try) 2>&5 13340 ac_status=$? 13341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13342 (exit $ac_status); }; }; then 13343 ac_cv_func_dlopen=yes 13344else 13345 echo "$as_me: failed program was:" >&5 13346sed 's/^/| /' conftest.$ac_ext >&5 13347 13348ac_cv_func_dlopen=no 13349fi 13350rm -f conftest.err conftest.$ac_objext \ 13351 conftest$ac_exeext conftest.$ac_ext 13352fi 13353echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 13354echo "${ECHO_T}$ac_cv_func_dlopen" >&6 13355if test $ac_cv_func_dlopen = yes; then 13356 lt_cv_dlopen="dlopen" 13357else 13358 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 13359echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 13360if test "${ac_cv_lib_dl_dlopen+set}" = set; then 13361 echo $ECHO_N "(cached) $ECHO_C" >&6 13362else 13363 ac_check_lib_save_LIBS=$LIBS 13364LIBS="-ldl $LIBS" 13365cat >conftest.$ac_ext <<_ACEOF 13366/* confdefs.h. */ 13367_ACEOF 13368cat confdefs.h >>conftest.$ac_ext 13369cat >>conftest.$ac_ext <<_ACEOF 13370/* end confdefs.h. */ 13371 13372/* Override any gcc2 internal prototype to avoid an error. */ 13373#ifdef __cplusplus 13374extern "C" 13375#endif 13376/* We use char because int might match the return type of a gcc2 13377 builtin and then its argument prototype would still apply. */ 13378char dlopen (); 13379int 13380main () 13381{ 13382dlopen (); 13383 ; 13384 return 0; 13385} 13386_ACEOF 13387rm -f conftest.$ac_objext conftest$ac_exeext 13388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13389 (eval $ac_link) 2>conftest.er1 13390 ac_status=$? 13391 grep -v '^ *+' conftest.er1 >conftest.err 13392 rm -f conftest.er1 13393 cat conftest.err >&5 13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13395 (exit $ac_status); } && 13396 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 13397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13398 (eval $ac_try) 2>&5 13399 ac_status=$? 13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13401 (exit $ac_status); }; } && 13402 { ac_try='test -s conftest$ac_exeext' 13403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13404 (eval $ac_try) 2>&5 13405 ac_status=$? 13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13407 (exit $ac_status); }; }; then 13408 ac_cv_lib_dl_dlopen=yes 13409else 13410 echo "$as_me: failed program was:" >&5 13411sed 's/^/| /' conftest.$ac_ext >&5 13412 13413ac_cv_lib_dl_dlopen=no 13414fi 13415rm -f conftest.err conftest.$ac_objext \ 13416 conftest$ac_exeext conftest.$ac_ext 13417LIBS=$ac_check_lib_save_LIBS 13418fi 13419echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 13420echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 13421if test $ac_cv_lib_dl_dlopen = yes; then 13422 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13423else 13424 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 13425echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 13426if test "${ac_cv_lib_svld_dlopen+set}" = set; then 13427 echo $ECHO_N "(cached) $ECHO_C" >&6 13428else 13429 ac_check_lib_save_LIBS=$LIBS 13430LIBS="-lsvld $LIBS" 13431cat >conftest.$ac_ext <<_ACEOF 13432/* confdefs.h. */ 13433_ACEOF 13434cat confdefs.h >>conftest.$ac_ext 13435cat >>conftest.$ac_ext <<_ACEOF 13436/* end confdefs.h. */ 13437 13438/* Override any gcc2 internal prototype to avoid an error. */ 13439#ifdef __cplusplus 13440extern "C" 13441#endif 13442/* We use char because int might match the return type of a gcc2 13443 builtin and then its argument prototype would still apply. */ 13444char dlopen (); 13445int 13446main () 13447{ 13448dlopen (); 13449 ; 13450 return 0; 13451} 13452_ACEOF 13453rm -f conftest.$ac_objext conftest$ac_exeext 13454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13455 (eval $ac_link) 2>conftest.er1 13456 ac_status=$? 13457 grep -v '^ *+' conftest.er1 >conftest.err 13458 rm -f conftest.er1 13459 cat conftest.err >&5 13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13461 (exit $ac_status); } && 13462 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 13463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13464 (eval $ac_try) 2>&5 13465 ac_status=$? 13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13467 (exit $ac_status); }; } && 13468 { ac_try='test -s conftest$ac_exeext' 13469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13470 (eval $ac_try) 2>&5 13471 ac_status=$? 13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13473 (exit $ac_status); }; }; then 13474 ac_cv_lib_svld_dlopen=yes 13475else 13476 echo "$as_me: failed program was:" >&5 13477sed 's/^/| /' conftest.$ac_ext >&5 13478 13479ac_cv_lib_svld_dlopen=no 13480fi 13481rm -f conftest.err conftest.$ac_objext \ 13482 conftest$ac_exeext conftest.$ac_ext 13483LIBS=$ac_check_lib_save_LIBS 13484fi 13485echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 13486echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 13487if test $ac_cv_lib_svld_dlopen = yes; then 13488 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 13489else 13490 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 13491echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 13492if test "${ac_cv_lib_dld_dld_link+set}" = set; then 13493 echo $ECHO_N "(cached) $ECHO_C" >&6 13494else 13495 ac_check_lib_save_LIBS=$LIBS 13496LIBS="-ldld $LIBS" 13497cat >conftest.$ac_ext <<_ACEOF 13498/* confdefs.h. */ 13499_ACEOF 13500cat confdefs.h >>conftest.$ac_ext 13501cat >>conftest.$ac_ext <<_ACEOF 13502/* end confdefs.h. */ 13503 13504/* Override any gcc2 internal prototype to avoid an error. */ 13505#ifdef __cplusplus 13506extern "C" 13507#endif 13508/* We use char because int might match the return type of a gcc2 13509 builtin and then its argument prototype would still apply. */ 13510char dld_link (); 13511int 13512main () 13513{ 13514dld_link (); 13515 ; 13516 return 0; 13517} 13518_ACEOF 13519rm -f conftest.$ac_objext conftest$ac_exeext 13520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13521 (eval $ac_link) 2>conftest.er1 13522 ac_status=$? 13523 grep -v '^ *+' conftest.er1 >conftest.err 13524 rm -f conftest.er1 13525 cat conftest.err >&5 13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13527 (exit $ac_status); } && 13528 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 13529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13530 (eval $ac_try) 2>&5 13531 ac_status=$? 13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13533 (exit $ac_status); }; } && 13534 { ac_try='test -s conftest$ac_exeext' 13535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13536 (eval $ac_try) 2>&5 13537 ac_status=$? 13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13539 (exit $ac_status); }; }; then 13540 ac_cv_lib_dld_dld_link=yes 13541else 13542 echo "$as_me: failed program was:" >&5 13543sed 's/^/| /' conftest.$ac_ext >&5 13544 13545ac_cv_lib_dld_dld_link=no 13546fi 13547rm -f conftest.err conftest.$ac_objext \ 13548 conftest$ac_exeext conftest.$ac_ext 13549LIBS=$ac_check_lib_save_LIBS 13550fi 13551echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 13552echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 13553if test $ac_cv_lib_dld_dld_link = yes; then 13554 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 13555fi 13556 13557 13558fi 13559 13560 13561fi 13562 13563 13564fi 13565 13566 13567fi 13568 13569 13570fi 13571 13572 ;; 13573 esac 13574 13575 if test "x$lt_cv_dlopen" != xno; then 13576 enable_dlopen=yes 13577 else 13578 enable_dlopen=no 13579 fi 13580 13581 case $lt_cv_dlopen in 13582 dlopen) 13583 save_CPPFLAGS="$CPPFLAGS" 13584 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13585 13586 save_LDFLAGS="$LDFLAGS" 13587 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13588 13589 save_LIBS="$LIBS" 13590 LIBS="$lt_cv_dlopen_libs $LIBS" 13591 13592 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 13593echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 13594if test "${lt_cv_dlopen_self+set}" = set; then 13595 echo $ECHO_N "(cached) $ECHO_C" >&6 13596else 13597 if test "$cross_compiling" = yes; then : 13598 lt_cv_dlopen_self=cross 13599else 13600 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13601 lt_status=$lt_dlunknown 13602 cat > conftest.$ac_ext <<EOF 13603#line 13603 "configure" 13604#include "confdefs.h" 13605 13606#if HAVE_DLFCN_H 13607#include <dlfcn.h> 13608#endif 13609 13610#include <stdio.h> 13611 13612#ifdef RTLD_GLOBAL 13613# define LT_DLGLOBAL RTLD_GLOBAL 13614#else 13615# ifdef DL_GLOBAL 13616# define LT_DLGLOBAL DL_GLOBAL 13617# else 13618# define LT_DLGLOBAL 0 13619# endif 13620#endif 13621 13622/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13623 find out it does not work in some platform. */ 13624#ifndef LT_DLLAZY_OR_NOW 13625# ifdef RTLD_LAZY 13626# define LT_DLLAZY_OR_NOW RTLD_LAZY 13627# else 13628# ifdef DL_LAZY 13629# define LT_DLLAZY_OR_NOW DL_LAZY 13630# else 13631# ifdef RTLD_NOW 13632# define LT_DLLAZY_OR_NOW RTLD_NOW 13633# else 13634# ifdef DL_NOW 13635# define LT_DLLAZY_OR_NOW DL_NOW 13636# else 13637# define LT_DLLAZY_OR_NOW 0 13638# endif 13639# endif 13640# endif 13641# endif 13642#endif 13643 13644#ifdef __cplusplus 13645extern "C" void exit (int); 13646#endif 13647 13648void fnord() { int i=42;} 13649int main () 13650{ 13651 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13652 int status = $lt_dlunknown; 13653 13654 if (self) 13655 { 13656 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13657 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13658 /* dlclose (self); */ 13659 } 13660 13661 exit (status); 13662} 13663EOF 13664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13665 (eval $ac_link) 2>&5 13666 ac_status=$? 13667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13668 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 13669 (./conftest; exit; ) 2>/dev/null 13670 lt_status=$? 13671 case x$lt_status in 13672 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13673 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13674 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 13675 esac 13676 else : 13677 # compilation failed 13678 lt_cv_dlopen_self=no 13679 fi 13680fi 13681rm -fr conftest* 13682 13683 13684fi 13685echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 13686echo "${ECHO_T}$lt_cv_dlopen_self" >&6 13687 13688 if test "x$lt_cv_dlopen_self" = xyes; then 13689 LDFLAGS="$LDFLAGS $link_static_flag" 13690 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 13691echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 13692if test "${lt_cv_dlopen_self_static+set}" = set; then 13693 echo $ECHO_N "(cached) $ECHO_C" >&6 13694else 13695 if test "$cross_compiling" = yes; then : 13696 lt_cv_dlopen_self_static=cross 13697else 13698 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13699 lt_status=$lt_dlunknown 13700 cat > conftest.$ac_ext <<EOF 13701#line 13701 "configure" 13702#include "confdefs.h" 13703 13704#if HAVE_DLFCN_H 13705#include <dlfcn.h> 13706#endif 13707 13708#include <stdio.h> 13709 13710#ifdef RTLD_GLOBAL 13711# define LT_DLGLOBAL RTLD_GLOBAL 13712#else 13713# ifdef DL_GLOBAL 13714# define LT_DLGLOBAL DL_GLOBAL 13715# else 13716# define LT_DLGLOBAL 0 13717# endif 13718#endif 13719 13720/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13721 find out it does not work in some platform. */ 13722#ifndef LT_DLLAZY_OR_NOW 13723# ifdef RTLD_LAZY 13724# define LT_DLLAZY_OR_NOW RTLD_LAZY 13725# else 13726# ifdef DL_LAZY 13727# define LT_DLLAZY_OR_NOW DL_LAZY 13728# else 13729# ifdef RTLD_NOW 13730# define LT_DLLAZY_OR_NOW RTLD_NOW 13731# else 13732# ifdef DL_NOW 13733# define LT_DLLAZY_OR_NOW DL_NOW 13734# else 13735# define LT_DLLAZY_OR_NOW 0 13736# endif 13737# endif 13738# endif 13739# endif 13740#endif 13741 13742#ifdef __cplusplus 13743extern "C" void exit (int); 13744#endif 13745 13746void fnord() { int i=42;} 13747int main () 13748{ 13749 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13750 int status = $lt_dlunknown; 13751 13752 if (self) 13753 { 13754 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13755 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13756 /* dlclose (self); */ 13757 } 13758 13759 exit (status); 13760} 13761EOF 13762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13763 (eval $ac_link) 2>&5 13764 ac_status=$? 13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13766 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 13767 (./conftest; exit; ) 2>/dev/null 13768 lt_status=$? 13769 case x$lt_status in 13770 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13771 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13772 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 13773 esac 13774 else : 13775 # compilation failed 13776 lt_cv_dlopen_self_static=no 13777 fi 13778fi 13779rm -fr conftest* 13780 13781 13782fi 13783echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 13784echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 13785 fi 13786 13787 CPPFLAGS="$save_CPPFLAGS" 13788 LDFLAGS="$save_LDFLAGS" 13789 LIBS="$save_LIBS" 13790 ;; 13791 esac 13792 13793 case $lt_cv_dlopen_self in 13794 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13795 *) enable_dlopen_self=unknown ;; 13796 esac 13797 13798 case $lt_cv_dlopen_self_static in 13799 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13800 *) enable_dlopen_self_static=unknown ;; 13801 esac 13802fi 13803 13804 13805# The else clause should only fire when bootstrapping the 13806# libtool distribution, otherwise you forgot to ship ltmain.sh 13807# with your package, and you will get complaints that there are 13808# no rules to generate ltmain.sh. 13809if test -f "$ltmain"; then 13810 # See if we are running on zsh, and set the options which allow our commands through 13811 # without removal of \ escapes. 13812 if test -n "${ZSH_VERSION+set}" ; then 13813 setopt NO_GLOB_SUBST 13814 fi 13815 # Now quote all the things that may contain metacharacters while being 13816 # careful not to overquote the AC_SUBSTed values. We take copies of the 13817 # variables and quote the copies for generation of the libtool script. 13818 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 13819 SED SHELL STRIP \ 13820 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13821 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13822 deplibs_check_method reload_flag reload_cmds need_locks \ 13823 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13824 lt_cv_sys_global_symbol_to_c_name_address \ 13825 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13826 old_postinstall_cmds old_postuninstall_cmds \ 13827 compiler_CXX \ 13828 CC_CXX \ 13829 LD_CXX \ 13830 lt_prog_compiler_wl_CXX \ 13831 lt_prog_compiler_pic_CXX \ 13832 lt_prog_compiler_static_CXX \ 13833 lt_prog_compiler_no_builtin_flag_CXX \ 13834 export_dynamic_flag_spec_CXX \ 13835 thread_safe_flag_spec_CXX \ 13836 whole_archive_flag_spec_CXX \ 13837 enable_shared_with_static_runtimes_CXX \ 13838 old_archive_cmds_CXX \ 13839 old_archive_from_new_cmds_CXX \ 13840 predep_objects_CXX \ 13841 postdep_objects_CXX \ 13842 predeps_CXX \ 13843 postdeps_CXX \ 13844 compiler_lib_search_path_CXX \ 13845 archive_cmds_CXX \ 13846 archive_expsym_cmds_CXX \ 13847 postinstall_cmds_CXX \ 13848 postuninstall_cmds_CXX \ 13849 old_archive_from_expsyms_cmds_CXX \ 13850 allow_undefined_flag_CXX \ 13851 no_undefined_flag_CXX \ 13852 export_symbols_cmds_CXX \ 13853 hardcode_libdir_flag_spec_CXX \ 13854 hardcode_libdir_flag_spec_ld_CXX \ 13855 hardcode_libdir_separator_CXX \ 13856 hardcode_automatic_CXX \ 13857 module_cmds_CXX \ 13858 module_expsym_cmds_CXX \ 13859 lt_cv_prog_compiler_c_o_CXX \ 13860 exclude_expsyms_CXX \ 13861 include_expsyms_CXX; do 13862 13863 case $var in 13864 old_archive_cmds_CXX | \ 13865 old_archive_from_new_cmds_CXX | \ 13866 archive_cmds_CXX | \ 13867 archive_expsym_cmds_CXX | \ 13868 module_cmds_CXX | \ 13869 module_expsym_cmds_CXX | \ 13870 old_archive_from_expsyms_cmds_CXX | \ 13871 export_symbols_cmds_CXX | \ 13872 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13873 postinstall_cmds | postuninstall_cmds | \ 13874 old_postinstall_cmds | old_postuninstall_cmds | \ 13875 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13876 # Double-quote double-evaled strings. 13877 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13878 ;; 13879 *) 13880 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13881 ;; 13882 esac 13883 done 13884 13885 case $lt_echo in 13886 *'\$0 --fallback-echo"') 13887 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13888 ;; 13889 esac 13890 13891cfgfile="$ofile" 13892 13893 cat <<__EOF__ >> "$cfgfile" 13894# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13895 13896# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13897 13898# Shell to use when invoking shell scripts. 13899SHELL=$lt_SHELL 13900 13901# Whether or not to build shared libraries. 13902build_libtool_libs=$enable_shared 13903 13904# Whether or not to build static libraries. 13905build_old_libs=$enable_static 13906 13907# Whether or not to add -lc for building shared libraries. 13908build_libtool_need_lc=$archive_cmds_need_lc_CXX 13909 13910# Whether or not to disallow shared libs when runtime libs are static 13911allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13912 13913# Whether or not to optimize for fast installation. 13914fast_install=$enable_fast_install 13915 13916# The host system. 13917host_alias=$host_alias 13918host=$host 13919 13920# An echo program that does not interpret backslashes. 13921echo=$lt_echo 13922 13923# The archiver. 13924AR=$lt_AR 13925AR_FLAGS=$lt_AR_FLAGS 13926 13927# A C compiler. 13928LTCC=$lt_LTCC 13929 13930# A language-specific compiler. 13931CC=$lt_compiler_CXX 13932 13933# Is the compiler the GNU C compiler? 13934with_gcc=$GCC_CXX 13935 13936# An ERE matcher. 13937EGREP=$lt_EGREP 13938 13939# The linker used to build libraries. 13940LD=$lt_LD_CXX 13941 13942# Whether we need hard or soft links. 13943LN_S=$lt_LN_S 13944 13945# A BSD-compatible nm program. 13946NM=$lt_NM 13947 13948# A symbol stripping program 13949STRIP=$lt_STRIP 13950 13951# Used to examine libraries when file_magic_cmd begins "file" 13952MAGIC_CMD=$MAGIC_CMD 13953 13954# Used on cygwin: DLL creation program. 13955DLLTOOL="$DLLTOOL" 13956 13957# Used on cygwin: object dumper. 13958OBJDUMP="$OBJDUMP" 13959 13960# Used on cygwin: assembler. 13961AS="$AS" 13962 13963# The name of the directory that contains temporary libtool files. 13964objdir=$objdir 13965 13966# How to create reloadable object files. 13967reload_flag=$lt_reload_flag 13968reload_cmds=$lt_reload_cmds 13969 13970# How to pass a linker flag through the compiler. 13971wl=$lt_lt_prog_compiler_wl_CXX 13972 13973# Object file suffix (normally "o"). 13974objext="$ac_objext" 13975 13976# Old archive suffix (normally "a"). 13977libext="$libext" 13978 13979# Shared library suffix (normally ".so"). 13980shrext_cmds='$shrext_cmds' 13981 13982# Executable file suffix (normally ""). 13983exeext="$exeext" 13984 13985# Additional compiler flags for building library objects. 13986pic_flag=$lt_lt_prog_compiler_pic_CXX 13987pic_mode=$pic_mode 13988 13989# What is the maximum length of a command? 13990max_cmd_len=$lt_cv_sys_max_cmd_len 13991 13992# Does compiler simultaneously support -c and -o options? 13993compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13994 13995# Must we lock files when doing compilation ? 13996need_locks=$lt_need_locks 13997 13998# Do we need the lib prefix for modules? 13999need_lib_prefix=$need_lib_prefix 14000 14001# Do we need a version for libraries? 14002need_version=$need_version 14003 14004# Whether dlopen is supported. 14005dlopen_support=$enable_dlopen 14006 14007# Whether dlopen of programs is supported. 14008dlopen_self=$enable_dlopen_self 14009 14010# Whether dlopen of statically linked programs is supported. 14011dlopen_self_static=$enable_dlopen_self_static 14012 14013# Compiler flag to prevent dynamic linking. 14014link_static_flag=$lt_lt_prog_compiler_static_CXX 14015 14016# Compiler flag to turn off builtin functions. 14017no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 14018 14019# Compiler flag to allow reflexive dlopens. 14020export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 14021 14022# Compiler flag to generate shared objects directly from archives. 14023whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 14024 14025# Compiler flag to generate thread-safe objects. 14026thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 14027 14028# Library versioning type. 14029version_type=$version_type 14030 14031# Format of library name prefix. 14032libname_spec=$lt_libname_spec 14033 14034# List of archive names. First name is the real one, the rest are links. 14035# The last name is the one that the linker finds with -lNAME. 14036library_names_spec=$lt_library_names_spec 14037 14038# The coded name of the library, if different from the real name. 14039soname_spec=$lt_soname_spec 14040 14041# Commands used to build and install an old-style archive. 14042RANLIB=$lt_RANLIB 14043old_archive_cmds=$lt_old_archive_cmds_CXX 14044old_postinstall_cmds=$lt_old_postinstall_cmds 14045old_postuninstall_cmds=$lt_old_postuninstall_cmds 14046 14047# Create an old-style archive from a shared archive. 14048old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 14049 14050# Create a temporary old-style archive to link instead of a shared archive. 14051old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 14052 14053# Commands used to build and install a shared archive. 14054archive_cmds=$lt_archive_cmds_CXX 14055archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 14056postinstall_cmds=$lt_postinstall_cmds 14057postuninstall_cmds=$lt_postuninstall_cmds 14058 14059# Commands used to build a loadable module (assumed same as above if empty) 14060module_cmds=$lt_module_cmds_CXX 14061module_expsym_cmds=$lt_module_expsym_cmds_CXX 14062 14063# Commands to strip libraries. 14064old_striplib=$lt_old_striplib 14065striplib=$lt_striplib 14066 14067# Dependencies to place before the objects being linked to create a 14068# shared library. 14069predep_objects=$lt_predep_objects_CXX 14070 14071# Dependencies to place after the objects being linked to create a 14072# shared library. 14073postdep_objects=$lt_postdep_objects_CXX 14074 14075# Dependencies to place before the objects being linked to create a 14076# shared library. 14077predeps=$lt_predeps_CXX 14078 14079# Dependencies to place after the objects being linked to create a 14080# shared library. 14081postdeps=$lt_postdeps_CXX 14082 14083# The library search path used internally by the compiler when linking 14084# a shared library. 14085compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 14086 14087# Method to check whether dependent libraries are shared objects. 14088deplibs_check_method=$lt_deplibs_check_method 14089 14090# Command to use when deplibs_check_method == file_magic. 14091file_magic_cmd=$lt_file_magic_cmd 14092 14093# Flag that allows shared libraries with undefined symbols to be built. 14094allow_undefined_flag=$lt_allow_undefined_flag_CXX 14095 14096# Flag that forces no undefined symbols. 14097no_undefined_flag=$lt_no_undefined_flag_CXX 14098 14099# Commands used to finish a libtool library installation in a directory. 14100finish_cmds=$lt_finish_cmds 14101 14102# Same as above, but a single script fragment to be evaled but not shown. 14103finish_eval=$lt_finish_eval 14104 14105# Take the output of nm and produce a listing of raw symbols and C names. 14106global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14107 14108# Transform the output of nm in a proper C declaration 14109global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14110 14111# Transform the output of nm in a C name address pair 14112global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14113 14114# This is the shared library runtime path variable. 14115runpath_var=$runpath_var 14116 14117# This is the shared library path variable. 14118shlibpath_var=$shlibpath_var 14119 14120# Is shlibpath searched before the hard-coded library search path? 14121shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14122 14123# How to hardcode a shared library path into an executable. 14124hardcode_action=$hardcode_action_CXX 14125 14126# Whether we should hardcode library paths into libraries. 14127hardcode_into_libs=$hardcode_into_libs 14128 14129# Flag to hardcode \$libdir into a binary during linking. 14130# This must work even if \$libdir does not exist. 14131hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 14132 14133# If ld is used when linking, flag to hardcode \$libdir into 14134# a binary during linking. This must work even if \$libdir does 14135# not exist. 14136hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14137 14138# Whether we need a single -rpath flag with a separated argument. 14139hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14140 14141# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14142# resulting binary. 14143hardcode_direct=$hardcode_direct_CXX 14144 14145# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14146# resulting binary. 14147hardcode_minus_L=$hardcode_minus_L_CXX 14148 14149# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14150# the resulting binary. 14151hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14152 14153# Set to yes if building a shared library automatically hardcodes DIR into the library 14154# and all subsequent libraries and executables linked against it. 14155hardcode_automatic=$hardcode_automatic_CXX 14156 14157# Variables whose values should be saved in libtool wrapper scripts and 14158# restored at relink time. 14159variables_saved_for_relink="$variables_saved_for_relink" 14160 14161# Whether libtool must link a program against all its dependency libraries. 14162link_all_deplibs=$link_all_deplibs_CXX 14163 14164# Compile-time system search path for libraries 14165sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14166 14167# Run-time system search path for libraries 14168sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14169 14170# Fix the shell variable \$srcfile for the compiler. 14171fix_srcfile_path="$fix_srcfile_path_CXX" 14172 14173# Set to yes if exported symbols are required. 14174always_export_symbols=$always_export_symbols_CXX 14175 14176# The commands to list exported symbols. 14177export_symbols_cmds=$lt_export_symbols_cmds_CXX 14178 14179# The commands to extract the exported symbol list from a shared archive. 14180extract_expsyms_cmds=$lt_extract_expsyms_cmds 14181 14182# Symbols that should not be listed in the preloaded symbols. 14183exclude_expsyms=$lt_exclude_expsyms_CXX 14184 14185# Symbols that must always be exported. 14186include_expsyms=$lt_include_expsyms_CXX 14187 14188# ### END LIBTOOL TAG CONFIG: $tagname 14189 14190__EOF__ 14191 14192 14193else 14194 # If there is no Makefile yet, we rely on a make rule to execute 14195 # `config.status --recheck' to rerun these tests and create the 14196 # libtool script then. 14197 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14198 if test -f "$ltmain_in"; then 14199 test -f Makefile && make "$ltmain" 14200 fi 14201fi 14202 14203 14204ac_ext=c 14205ac_cpp='$CPP $CPPFLAGS' 14206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14208ac_compiler_gnu=$ac_cv_c_compiler_gnu 14209 14210CC=$lt_save_CC 14211LDCXX=$LD 14212LD=$lt_save_LD 14213GCC=$lt_save_GCC 14214with_gnu_ldcxx=$with_gnu_ld 14215with_gnu_ld=$lt_save_with_gnu_ld 14216lt_cv_path_LDCXX=$lt_cv_path_LD 14217lt_cv_path_LD=$lt_save_path_LD 14218lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14219lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14220 14221 else 14222 tagname="" 14223 fi 14224 ;; 14225 14226 F77) 14227 if test -n "$F77" && test "X$F77" != "Xno"; then 14228 14229ac_ext=f 14230ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14231ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14232ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14233 14234 14235archive_cmds_need_lc_F77=no 14236allow_undefined_flag_F77= 14237always_export_symbols_F77=no 14238archive_expsym_cmds_F77= 14239export_dynamic_flag_spec_F77= 14240hardcode_direct_F77=no 14241hardcode_libdir_flag_spec_F77= 14242hardcode_libdir_flag_spec_ld_F77= 14243hardcode_libdir_separator_F77= 14244hardcode_minus_L_F77=no 14245hardcode_automatic_F77=no 14246module_cmds_F77= 14247module_expsym_cmds_F77= 14248link_all_deplibs_F77=unknown 14249old_archive_cmds_F77=$old_archive_cmds 14250no_undefined_flag_F77= 14251whole_archive_flag_spec_F77= 14252enable_shared_with_static_runtimes_F77=no 14253 14254# Source file extension for f77 test sources. 14255ac_ext=f 14256 14257# Object file extension for compiled f77 test sources. 14258objext=o 14259objext_F77=$objext 14260 14261# Code to be used in simple compile tests 14262lt_simple_compile_test_code=" subroutine t\n return\n end\n" 14263 14264# Code to be used in simple link tests 14265lt_simple_link_test_code=" program t\n end\n" 14266 14267# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14268 14269# If no C compiler was specified, use CC. 14270LTCC=${LTCC-"$CC"} 14271 14272# Allow CC to be a program name with arguments. 14273compiler=$CC 14274 14275 14276# Allow CC to be a program name with arguments. 14277lt_save_CC="$CC" 14278CC=${F77-"f77"} 14279compiler=$CC 14280compiler_F77=$CC 14281cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 14282 14283echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14284echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 14285echo "$as_me:$LINENO: result: $can_build_shared" >&5 14286echo "${ECHO_T}$can_build_shared" >&6 14287 14288echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14289echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 14290test "$can_build_shared" = "no" && enable_shared=no 14291 14292# On AIX, shared libraries and static libraries use the same namespace, and 14293# are all built from PIC. 14294case "$host_os" in 14295aix3*) 14296 test "$enable_shared" = yes && enable_static=no 14297 if test -n "$RANLIB"; then 14298 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14299 postinstall_cmds='$RANLIB $lib' 14300 fi 14301 ;; 14302aix4* | aix5*) 14303 test "$enable_shared" = yes && enable_static=no 14304 ;; 14305esac 14306echo "$as_me:$LINENO: result: $enable_shared" >&5 14307echo "${ECHO_T}$enable_shared" >&6 14308 14309echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14310echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 14311# Make sure either enable_shared or enable_static is yes. 14312test "$enable_shared" = yes || enable_static=yes 14313echo "$as_me:$LINENO: result: $enable_static" >&5 14314echo "${ECHO_T}$enable_static" >&6 14315 14316test "$ld_shlibs_F77" = no && can_build_shared=no 14317 14318GCC_F77="$G77" 14319LD_F77="$LD" 14320 14321lt_prog_compiler_wl_F77= 14322lt_prog_compiler_pic_F77= 14323lt_prog_compiler_static_F77= 14324 14325echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14326echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 14327 14328 if test "$GCC" = yes; then 14329 lt_prog_compiler_wl_F77='-Wl,' 14330 lt_prog_compiler_static_F77='-static' 14331 14332 case $host_os in 14333 aix*) 14334 # All AIX code is PIC. 14335 if test "$host_cpu" = ia64; then 14336 # AIX 5 now supports IA64 processor 14337 lt_prog_compiler_static_F77='-Bstatic' 14338 fi 14339 ;; 14340 14341 amigaos*) 14342 # FIXME: we need at least 68020 code to build shared libraries, but 14343 # adding the `-m68020' flag to GCC prevents building anything better, 14344 # like `-m68040'. 14345 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14346 ;; 14347 14348 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14349 # PIC is the default for these OSes. 14350 ;; 14351 14352 mingw* | pw32* | os2*) 14353 # This hack is so that the source file can tell whether it is being 14354 # built for inclusion in a dll (and should export symbols for example). 14355 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14356 ;; 14357 14358 darwin* | rhapsody*) 14359 # PIC is the default on this platform 14360 # Common symbols not allowed in MH_DYLIB files 14361 lt_prog_compiler_pic_F77='-fno-common' 14362 ;; 14363 14364 msdosdjgpp*) 14365 # Just because we use GCC doesn't mean we suddenly get shared libraries 14366 # on systems that don't support them. 14367 lt_prog_compiler_can_build_shared_F77=no 14368 enable_shared=no 14369 ;; 14370 14371 sysv4*MP*) 14372 if test -d /usr/nec; then 14373 lt_prog_compiler_pic_F77=-Kconform_pic 14374 fi 14375 ;; 14376 14377 hpux*) 14378 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14379 # not for PA HP-UX. 14380 case "$host_cpu" in 14381 hppa*64*|ia64*) 14382 # +Z the default 14383 ;; 14384 *) 14385 lt_prog_compiler_pic_F77='-fPIC' 14386 ;; 14387 esac 14388 ;; 14389 14390 *) 14391 lt_prog_compiler_pic_F77='-fPIC' 14392 ;; 14393 esac 14394 else 14395 # PORTME Check for flag to pass linker flags through the system compiler. 14396 case $host_os in 14397 aix*) 14398 lt_prog_compiler_wl_F77='-Wl,' 14399 if test "$host_cpu" = ia64; then 14400 # AIX 5 now supports IA64 processor 14401 lt_prog_compiler_static_F77='-Bstatic' 14402 else 14403 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14404 fi 14405 ;; 14406 14407 mingw* | pw32* | os2*) 14408 # This hack is so that the source file can tell whether it is being 14409 # built for inclusion in a dll (and should export symbols for example). 14410 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14411 ;; 14412 14413 hpux9* | hpux10* | hpux11*) 14414 lt_prog_compiler_wl_F77='-Wl,' 14415 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14416 # not for PA HP-UX. 14417 case "$host_cpu" in 14418 hppa*64*|ia64*) 14419 # +Z the default 14420 ;; 14421 *) 14422 lt_prog_compiler_pic_F77='+Z' 14423 ;; 14424 esac 14425 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14426 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14427 ;; 14428 14429 irix5* | irix6* | nonstopux*) 14430 lt_prog_compiler_wl_F77='-Wl,' 14431 # PIC (with -KPIC) is the default. 14432 lt_prog_compiler_static_F77='-non_shared' 14433 ;; 14434 14435 newsos6) 14436 lt_prog_compiler_pic_F77='-KPIC' 14437 lt_prog_compiler_static_F77='-Bstatic' 14438 ;; 14439 14440 linux*) 14441 case $CC in 14442 icc* | ecc*) 14443 lt_prog_compiler_wl_F77='-Wl,' 14444 lt_prog_compiler_pic_F77='-KPIC' 14445 lt_prog_compiler_static_F77='-static' 14446 ;; 14447 ccc*) 14448 lt_prog_compiler_wl_F77='-Wl,' 14449 # All Alpha code is PIC. 14450 lt_prog_compiler_static_F77='-non_shared' 14451 ;; 14452 esac 14453 ;; 14454 14455 osf3* | osf4* | osf5*) 14456 lt_prog_compiler_wl_F77='-Wl,' 14457 # All OSF/1 code is PIC. 14458 lt_prog_compiler_static_F77='-non_shared' 14459 ;; 14460 14461 sco3.2v5*) 14462 lt_prog_compiler_pic_F77='-Kpic' 14463 lt_prog_compiler_static_F77='-dn' 14464 ;; 14465 14466 solaris*) 14467 lt_prog_compiler_wl_F77='-Wl,' 14468 lt_prog_compiler_pic_F77='-KPIC' 14469 lt_prog_compiler_static_F77='-Bstatic' 14470 ;; 14471 14472 sunos4*) 14473 lt_prog_compiler_wl_F77='-Qoption ld ' 14474 lt_prog_compiler_pic_F77='-PIC' 14475 lt_prog_compiler_static_F77='-Bstatic' 14476 ;; 14477 14478 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 14479 lt_prog_compiler_wl_F77='-Wl,' 14480 lt_prog_compiler_pic_F77='-KPIC' 14481 lt_prog_compiler_static_F77='-Bstatic' 14482 ;; 14483 14484 sysv4*MP*) 14485 if test -d /usr/nec ;then 14486 lt_prog_compiler_pic_F77='-Kconform_pic' 14487 lt_prog_compiler_static_F77='-Bstatic' 14488 fi 14489 ;; 14490 14491 uts4*) 14492 lt_prog_compiler_pic_F77='-pic' 14493 lt_prog_compiler_static_F77='-Bstatic' 14494 ;; 14495 14496 *) 14497 lt_prog_compiler_can_build_shared_F77=no 14498 ;; 14499 esac 14500 fi 14501 14502echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14503echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 14504 14505# 14506# Check to make sure the PIC flag actually works. 14507# 14508if test -n "$lt_prog_compiler_pic_F77"; then 14509 14510echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14511echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 14512if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 14513 echo $ECHO_N "(cached) $ECHO_C" >&6 14514else 14515 lt_prog_compiler_pic_works_F77=no 14516 ac_outfile=conftest.$ac_objext 14517 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14518 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14519 # Insert the option either (1) after the last *FLAGS variable, or 14520 # (2) before a word containing "conftest.", or (3) at the end. 14521 # Note that $ac_compile itself does not contain backslashes and begins 14522 # with a dollar sign (not a hyphen), so the echo should work correctly. 14523 # The option is referenced via a variable to avoid confusing sed. 14524 lt_compile=`echo "$ac_compile" | $SED \ 14525 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 14526 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14527 -e 's:$: $lt_compiler_flag:'` 14528 (eval echo "\"\$as_me:14528: $lt_compile\"" >&5) 14529 (eval "$lt_compile" 2>conftest.err) 14530 ac_status=$? 14531 cat conftest.err >&5 14532 echo "$as_me:14532: \$? = $ac_status" >&5 14533 if (exit $ac_status) && test -s "$ac_outfile"; then 14534 # The compiler can only warn and ignore the option if not recognized 14535 # So say no if there are warnings 14536 if test ! -s conftest.err; then 14537 lt_prog_compiler_pic_works_F77=yes 14538 fi 14539 fi 14540 $rm conftest* 14541 14542fi 14543echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14544echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 14545 14546if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14547 case $lt_prog_compiler_pic_F77 in 14548 "" | " "*) ;; 14549 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14550 esac 14551else 14552 lt_prog_compiler_pic_F77= 14553 lt_prog_compiler_can_build_shared_F77=no 14554fi 14555 14556fi 14557case "$host_os" in 14558 # For platforms which do not support PIC, -DPIC is meaningless: 14559 *djgpp*) 14560 lt_prog_compiler_pic_F77= 14561 ;; 14562 *) 14563 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14564 ;; 14565esac 14566 14567echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14568echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 14569if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14570 echo $ECHO_N "(cached) $ECHO_C" >&6 14571else 14572 lt_cv_prog_compiler_c_o_F77=no 14573 $rm -r conftest 2>/dev/null 14574 mkdir conftest 14575 cd conftest 14576 mkdir out 14577 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14578 14579 lt_compiler_flag="-o out/conftest2.$ac_objext" 14580 # Insert the option either (1) after the last *FLAGS variable, or 14581 # (2) before a word containing "conftest.", or (3) at the end. 14582 # Note that $ac_compile itself does not contain backslashes and begins 14583 # with a dollar sign (not a hyphen), so the echo should work correctly. 14584 lt_compile=`echo "$ac_compile" | $SED \ 14585 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 14586 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14587 -e 's:$: $lt_compiler_flag:'` 14588 (eval echo "\"\$as_me:14588: $lt_compile\"" >&5) 14589 (eval "$lt_compile" 2>out/conftest.err) 14590 ac_status=$? 14591 cat out/conftest.err >&5 14592 echo "$as_me:14592: \$? = $ac_status" >&5 14593 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14594 then 14595 # The compiler can only warn and ignore the option if not recognized 14596 # So say no if there are warnings 14597 if test ! -s out/conftest.err; then 14598 lt_cv_prog_compiler_c_o_F77=yes 14599 fi 14600 fi 14601 chmod u+w . 14602 $rm conftest* 14603 # SGI C++ compiler will create directory out/ii_files/ for 14604 # template instantiation 14605 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14606 $rm out/* && rmdir out 14607 cd .. 14608 rmdir conftest 14609 $rm conftest* 14610 14611fi 14612echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14613echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 14614 14615 14616hard_links="nottested" 14617if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14618 # do not overwrite the value of need_locks provided by the user 14619 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14620echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 14621 hard_links=yes 14622 $rm conftest* 14623 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14624 touch conftest.a 14625 ln conftest.a conftest.b 2>&5 || hard_links=no 14626 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14627 echo "$as_me:$LINENO: result: $hard_links" >&5 14628echo "${ECHO_T}$hard_links" >&6 14629 if test "$hard_links" = no; then 14630 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14631echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14632 need_locks=warn 14633 fi 14634else 14635 need_locks=no 14636fi 14637 14638echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14639echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 14640 14641 runpath_var= 14642 allow_undefined_flag_F77= 14643 enable_shared_with_static_runtimes_F77=no 14644 archive_cmds_F77= 14645 archive_expsym_cmds_F77= 14646 old_archive_From_new_cmds_F77= 14647 old_archive_from_expsyms_cmds_F77= 14648 export_dynamic_flag_spec_F77= 14649 whole_archive_flag_spec_F77= 14650 thread_safe_flag_spec_F77= 14651 hardcode_libdir_flag_spec_F77= 14652 hardcode_libdir_flag_spec_ld_F77= 14653 hardcode_libdir_separator_F77= 14654 hardcode_direct_F77=no 14655 hardcode_minus_L_F77=no 14656 hardcode_shlibpath_var_F77=unsupported 14657 link_all_deplibs_F77=unknown 14658 hardcode_automatic_F77=no 14659 module_cmds_F77= 14660 module_expsym_cmds_F77= 14661 always_export_symbols_F77=no 14662 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14663 # include_expsyms should be a list of space-separated symbols to be *always* 14664 # included in the symbol list 14665 include_expsyms_F77= 14666 # exclude_expsyms can be an extended regexp of symbols to exclude 14667 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14668 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14669 # as well as any symbol that contains `d'. 14670 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14671 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14672 # platforms (ab)use it in PIC code, but their linkers get confused if 14673 # the symbol is explicitly referenced. Since portable code cannot 14674 # rely on this symbol name, it's probably fine to never include it in 14675 # preloaded symbol tables. 14676 extract_expsyms_cmds= 14677 14678 case $host_os in 14679 cygwin* | mingw* | pw32*) 14680 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14681 # When not using gcc, we currently assume that we are using 14682 # Microsoft Visual C++. 14683 if test "$GCC" != yes; then 14684 with_gnu_ld=no 14685 fi 14686 ;; 14687 openbsd*) 14688 with_gnu_ld=no 14689 ;; 14690 esac 14691 14692 ld_shlibs_F77=yes 14693 if test "$with_gnu_ld" = yes; then 14694 # If archive_cmds runs LD, not CC, wlarc should be empty 14695 wlarc='${wl}' 14696 14697 # See if GNU ld supports shared libraries. 14698 case $host_os in 14699 aix3* | aix4* | aix5*) 14700 # On AIX/PPC, the GNU linker is very broken 14701 if test "$host_cpu" != ia64; then 14702 ld_shlibs_F77=no 14703 cat <<EOF 1>&2 14704 14705*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14706*** to be unable to reliably create shared libraries on AIX. 14707*** Therefore, libtool is disabling shared libraries support. If you 14708*** really care for shared libraries, you may want to modify your PATH 14709*** so that a non-GNU linker is found, and then restart. 14710 14711EOF 14712 fi 14713 ;; 14714 14715 amigaos*) 14716 archive_cmds_F77='$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)' 14717 hardcode_libdir_flag_spec_F77='-L$libdir' 14718 hardcode_minus_L_F77=yes 14719 14720 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14721 # that the semantics of dynamic libraries on AmigaOS, at least up 14722 # to version 4, is to share data among multiple programs linked 14723 # with the same dynamic library. Since this doesn't match the 14724 # behavior of shared libraries on other platforms, we can't use 14725 # them. 14726 ld_shlibs_F77=no 14727 ;; 14728 14729 beos*) 14730 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14731 allow_undefined_flag_F77=unsupported 14732 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14733 # support --undefined. This deserves some investigation. FIXME 14734 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14735 else 14736 ld_shlibs_F77=no 14737 fi 14738 ;; 14739 14740 cygwin* | mingw* | pw32*) 14741 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14742 # as there is no search path for DLLs. 14743 hardcode_libdir_flag_spec_F77='-L$libdir' 14744 allow_undefined_flag_F77=unsupported 14745 always_export_symbols_F77=no 14746 enable_shared_with_static_runtimes_F77=yes 14747 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14748 14749 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14750 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 14751 # If the export-symbols file already is a .def file (1st line 14752 # is EXPORTS), use it as is; otherwise, prepend... 14753 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14754 cp $export_symbols $output_objdir/$soname.def; 14755 else 14756 echo EXPORTS > $output_objdir/$soname.def; 14757 cat $export_symbols >> $output_objdir/$soname.def; 14758 fi~ 14759 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 14760 else 14761 ld_shlibs=no 14762 fi 14763 ;; 14764 14765 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 14766 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14767 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14768 wlarc= 14769 else 14770 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14771 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14772 fi 14773 ;; 14774 14775 solaris* | sysv5*) 14776 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14777 ld_shlibs_F77=no 14778 cat <<EOF 1>&2 14779 14780*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14781*** create shared libraries on Solaris systems. Therefore, libtool 14782*** is disabling shared libraries support. We urge you to upgrade GNU 14783*** binutils to release 2.9.1 or newer. Another option is to modify 14784*** your PATH or compiler configuration so that the native linker is 14785*** used, and then restart. 14786 14787EOF 14788 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14789 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14790 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14791 else 14792 ld_shlibs_F77=no 14793 fi 14794 ;; 14795 14796 sunos4*) 14797 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14798 wlarc= 14799 hardcode_direct_F77=yes 14800 hardcode_shlibpath_var_F77=no 14801 ;; 14802 14803 linux*) 14804 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14805 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14806 archive_cmds_F77="$tmp_archive_cmds" 14807 supports_anon_versioning=no 14808 case `$LD -v 2>/dev/null` in 14809 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14810 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14811 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14812 *\ 2.11.*) ;; # other 2.11 versions 14813 *) supports_anon_versioning=yes ;; 14814 esac 14815 if test $supports_anon_versioning = yes; then 14816 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14817cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14818$echo "local: *; };" >> $output_objdir/$libname.ver~ 14819 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14820 else 14821 archive_expsym_cmds_F77="$tmp_archive_cmds" 14822 fi 14823 link_all_deplibs_F77=no 14824 else 14825 ld_shlibs_F77=no 14826 fi 14827 ;; 14828 14829 *) 14830 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14831 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14832 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14833 else 14834 ld_shlibs_F77=no 14835 fi 14836 ;; 14837 esac 14838 14839 if test "$ld_shlibs_F77" = yes; then 14840 runpath_var=LD_RUN_PATH 14841 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14842 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14843 # ancient GNU ld didn't support --whole-archive et. al. 14844 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14845 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14846 else 14847 whole_archive_flag_spec_F77= 14848 fi 14849 fi 14850 else 14851 # PORTME fill in a description of your system's linker (not GNU ld) 14852 case $host_os in 14853 aix3*) 14854 allow_undefined_flag_F77=unsupported 14855 always_export_symbols_F77=yes 14856 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 14857 # Note: this linker hardcodes the directories in LIBPATH if there 14858 # are no directories specified by -L. 14859 hardcode_minus_L_F77=yes 14860 if test "$GCC" = yes && test -z "$link_static_flag"; then 14861 # Neither direct hardcoding nor static linking is supported with a 14862 # broken collect2. 14863 hardcode_direct_F77=unsupported 14864 fi 14865 ;; 14866 14867 aix4* | aix5*) 14868 if test "$host_cpu" = ia64; then 14869 # On IA64, the linker does run time linking by default, so we don't 14870 # have to do anything special. 14871 aix_use_runtimelinking=no 14872 exp_sym_flag='-Bexport' 14873 no_entry_flag="" 14874 else 14875 # If we're using GNU nm, then we don't want the "-C" option. 14876 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14877 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14878 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 14879 else 14880 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 14881 fi 14882 aix_use_runtimelinking=no 14883 14884 # Test if we are trying to use run time linking or normal 14885 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14886 # need to do runtime linking. 14887 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14888 for ld_flag in $LDFLAGS; do 14889 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14890 aix_use_runtimelinking=yes 14891 break 14892 fi 14893 done 14894 esac 14895 14896 exp_sym_flag='-bexport' 14897 no_entry_flag='-bnoentry' 14898 fi 14899 14900 # When large executables or shared objects are built, AIX ld can 14901 # have problems creating the table of contents. If linking a library 14902 # or program results in "error TOC overflow" add -mminimal-toc to 14903 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14904 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14905 14906 archive_cmds_F77='' 14907 hardcode_direct_F77=yes 14908 hardcode_libdir_separator_F77=':' 14909 link_all_deplibs_F77=yes 14910 14911 if test "$GCC" = yes; then 14912 case $host_os in aix4.012|aix4.012.*) 14913 # We only want to do this on AIX 4.2 and lower, the check 14914 # below for broken collect2 doesn't work under 4.3+ 14915 collect2name=`${CC} -print-prog-name=collect2` 14916 if test -f "$collect2name" && \ 14917 strings "$collect2name" | grep resolve_lib_name >/dev/null 14918 then 14919 # We have reworked collect2 14920 hardcode_direct_F77=yes 14921 else 14922 # We have old collect2 14923 hardcode_direct_F77=unsupported 14924 # It fails to find uninstalled libraries when the uninstalled 14925 # path is not listed in the libpath. Setting hardcode_minus_L 14926 # to unsupported forces relinking 14927 hardcode_minus_L_F77=yes 14928 hardcode_libdir_flag_spec_F77='-L$libdir' 14929 hardcode_libdir_separator_F77= 14930 fi 14931 esac 14932 shared_flag='-shared' 14933 else 14934 # not using gcc 14935 if test "$host_cpu" = ia64; then 14936 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14937 # chokes on -Wl,-G. The following line is correct: 14938 shared_flag='-G' 14939 else 14940 if test "$aix_use_runtimelinking" = yes; then 14941 shared_flag='${wl}-G' 14942 else 14943 shared_flag='${wl}-bM:SRE' 14944 fi 14945 fi 14946 fi 14947 14948 # It seems that -bexpall does not export symbols beginning with 14949 # underscore (_), so it is better to generate a list of symbols to export. 14950 always_export_symbols_F77=yes 14951 if test "$aix_use_runtimelinking" = yes; then 14952 # Warning - without using the other runtime loading flags (-brtl), 14953 # -berok will link without error, but may produce a broken library. 14954 allow_undefined_flag_F77='-berok' 14955 # Determine the default libpath from the value encoded in an empty executable. 14956 cat >conftest.$ac_ext <<_ACEOF 14957 program main 14958 14959 end 14960_ACEOF 14961rm -f conftest.$ac_objext conftest$ac_exeext 14962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14963 (eval $ac_link) 2>conftest.er1 14964 ac_status=$? 14965 grep -v '^ *+' conftest.er1 >conftest.err 14966 rm -f conftest.er1 14967 cat conftest.err >&5 14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14969 (exit $ac_status); } && 14970 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 14971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14972 (eval $ac_try) 2>&5 14973 ac_status=$? 14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14975 (exit $ac_status); }; } && 14976 { ac_try='test -s conftest$ac_exeext' 14977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14978 (eval $ac_try) 2>&5 14979 ac_status=$? 14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14981 (exit $ac_status); }; }; then 14982 14983aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14984}'` 14985# Check for a 64-bit object if we didn't find anything. 14986if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14987}'`; fi 14988else 14989 echo "$as_me: failed program was:" >&5 14990sed 's/^/| /' conftest.$ac_ext >&5 14991 14992fi 14993rm -f conftest.err conftest.$ac_objext \ 14994 conftest$ac_exeext conftest.$ac_ext 14995if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14996 14997 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14998 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 14999 else 15000 if test "$host_cpu" = ia64; then 15001 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15002 allow_undefined_flag_F77="-z nodefs" 15003 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 15004 else 15005 # Determine the default libpath from the value encoded in an empty executable. 15006 cat >conftest.$ac_ext <<_ACEOF 15007 program main 15008 15009 end 15010_ACEOF 15011rm -f conftest.$ac_objext conftest$ac_exeext 15012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15013 (eval $ac_link) 2>conftest.er1 15014 ac_status=$? 15015 grep -v '^ *+' conftest.er1 >conftest.err 15016 rm -f conftest.er1 15017 cat conftest.err >&5 15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15019 (exit $ac_status); } && 15020 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 15021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15022 (eval $ac_try) 2>&5 15023 ac_status=$? 15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15025 (exit $ac_status); }; } && 15026 { ac_try='test -s conftest$ac_exeext' 15027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15028 (eval $ac_try) 2>&5 15029 ac_status=$? 15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15031 (exit $ac_status); }; }; then 15032 15033aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15034}'` 15035# Check for a 64-bit object if we didn't find anything. 15036if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15037}'`; fi 15038else 15039 echo "$as_me: failed program was:" >&5 15040sed 's/^/| /' conftest.$ac_ext >&5 15041 15042fi 15043rm -f conftest.err conftest.$ac_objext \ 15044 conftest$ac_exeext conftest.$ac_ext 15045if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15046 15047 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15048 # Warning - without using the other run time loading flags, 15049 # -berok will link without error, but may produce a broken library. 15050 no_undefined_flag_F77=' ${wl}-bernotok' 15051 allow_undefined_flag_F77=' ${wl}-berok' 15052 # -bexpall does not export symbols beginning with underscore (_) 15053 always_export_symbols_F77=yes 15054 # Exported symbols can be pulled into shared objects from archives 15055 whole_archive_flag_spec_F77=' ' 15056 archive_cmds_need_lc_F77=yes 15057 # This is similar to how AIX traditionally builds it's shared libraries. 15058 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 15059 fi 15060 fi 15061 ;; 15062 15063 amigaos*) 15064 archive_cmds_F77='$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)' 15065 hardcode_libdir_flag_spec_F77='-L$libdir' 15066 hardcode_minus_L_F77=yes 15067 # see comment about different semantics on the GNU ld section 15068 ld_shlibs_F77=no 15069 ;; 15070 15071 bsdi4*) 15072 export_dynamic_flag_spec_F77=-rdynamic 15073 ;; 15074 15075 cygwin* | mingw* | pw32*) 15076 # When not using gcc, we currently assume that we are using 15077 # Microsoft Visual C++. 15078 # hardcode_libdir_flag_spec is actually meaningless, as there is 15079 # no search path for DLLs. 15080 hardcode_libdir_flag_spec_F77=' ' 15081 allow_undefined_flag_F77=unsupported 15082 # Tell ltmain to make .lib files, not .a files. 15083 libext=lib 15084 # Tell ltmain to make .dll files, not .so files. 15085 shrext_cmds=".dll" 15086 # FIXME: Setting linknames here is a bad hack. 15087 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15088 # The linker will automatically build a .lib file if we build a DLL. 15089 old_archive_From_new_cmds_F77='true' 15090 # FIXME: Should let the user specify the lib program. 15091 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 15092 fix_srcfile_path='`cygpath -w "$srcfile"`' 15093 enable_shared_with_static_runtimes_F77=yes 15094 ;; 15095 15096 darwin* | rhapsody*) 15097 if test "$GXX" = yes ; then 15098 archive_cmds_need_lc_F77=no 15099 case "$host_os" in 15100 rhapsody* | darwin1.[012]) 15101 allow_undefined_flag_F77='-undefined suppress' 15102 ;; 15103 *) # Darwin 1.3 on 15104 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15105 allow_undefined_flag_F77='-flat_namespace -undefined suppress' 15106 else 15107 case ${MACOSX_DEPLOYMENT_TARGET} in 15108 10.[012]) 15109 allow_undefined_flag_F77='-flat_namespace -undefined suppress' 15110 ;; 15111 10.*) 15112 allow_undefined_flag_F77='-undefined dynamic_lookup' 15113 ;; 15114 esac 15115 fi 15116 ;; 15117 esac 15118 lt_int_apple_cc_single_mod=no 15119 output_verbose_link_cmd='echo' 15120 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 15121 lt_int_apple_cc_single_mod=yes 15122 fi 15123 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 15124 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15125 else 15126 archive_cmds_F77='$CC -r ${wl}-bind_at_load -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' 15127 fi 15128 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15129 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 15130 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 15131 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15132 else 15133 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15134 fi 15135 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15136 hardcode_direct_F77=no 15137 hardcode_automatic_F77=yes 15138 hardcode_shlibpath_var_F77=unsupported 15139 whole_archive_flag_spec_F77='-all_load $convenience' 15140 link_all_deplibs_F77=yes 15141 else 15142 ld_shlibs_F77=no 15143 fi 15144 ;; 15145 15146 dgux*) 15147 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15148 hardcode_libdir_flag_spec_F77='-L$libdir' 15149 hardcode_shlibpath_var_F77=no 15150 ;; 15151 15152 freebsd1*) 15153 ld_shlibs_F77=no 15154 ;; 15155 15156 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15157 # support. Future versions do this automatically, but an explicit c++rt0.o 15158 # does not break anything, and helps significantly (at the cost of a little 15159 # extra space). 15160 freebsd2.2*) 15161 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15162 hardcode_libdir_flag_spec_F77='-R$libdir' 15163 hardcode_direct_F77=yes 15164 hardcode_shlibpath_var_F77=no 15165 ;; 15166 15167 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15168 freebsd2*) 15169 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15170 hardcode_direct_F77=yes 15171 hardcode_minus_L_F77=yes 15172 hardcode_shlibpath_var_F77=no 15173 ;; 15174 15175 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15176 freebsd* | kfreebsd*-gnu) 15177 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15178 hardcode_libdir_flag_spec_F77='-R$libdir' 15179 hardcode_direct_F77=yes 15180 hardcode_shlibpath_var_F77=no 15181 ;; 15182 15183 hpux9*) 15184 if test "$GCC" = yes; then 15185 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 15186 else 15187 archive_cmds_F77='$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' 15188 fi 15189 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15190 hardcode_libdir_separator_F77=: 15191 hardcode_direct_F77=yes 15192 15193 # hardcode_minus_L: Not really in the search PATH, 15194 # but as the default location of the library. 15195 hardcode_minus_L_F77=yes 15196 export_dynamic_flag_spec_F77='${wl}-E' 15197 ;; 15198 15199 hpux10* | hpux11*) 15200 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15201 case "$host_cpu" in 15202 hppa*64*|ia64*) 15203 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15204 ;; 15205 *) 15206 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15207 ;; 15208 esac 15209 else 15210 case "$host_cpu" in 15211 hppa*64*|ia64*) 15212 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 15213 ;; 15214 *) 15215 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15216 ;; 15217 esac 15218 fi 15219 if test "$with_gnu_ld" = no; then 15220 case "$host_cpu" in 15221 hppa*64*) 15222 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15223 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15224 hardcode_libdir_separator_F77=: 15225 hardcode_direct_F77=no 15226 hardcode_shlibpath_var_F77=no 15227 ;; 15228 ia64*) 15229 hardcode_libdir_flag_spec_F77='-L$libdir' 15230 hardcode_direct_F77=no 15231 hardcode_shlibpath_var_F77=no 15232 15233 # hardcode_minus_L: Not really in the search PATH, 15234 # but as the default location of the library. 15235 hardcode_minus_L_F77=yes 15236 ;; 15237 *) 15238 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15239 hardcode_libdir_separator_F77=: 15240 hardcode_direct_F77=yes 15241 export_dynamic_flag_spec_F77='${wl}-E' 15242 15243 # hardcode_minus_L: Not really in the search PATH, 15244 # but as the default location of the library. 15245 hardcode_minus_L_F77=yes 15246 ;; 15247 esac 15248 fi 15249 ;; 15250 15251 irix5* | irix6* | nonstopux*) 15252 if test "$GCC" = yes; then 15253 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15254 else 15255 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15256 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15257 fi 15258 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15259 hardcode_libdir_separator_F77=: 15260 link_all_deplibs_F77=yes 15261 ;; 15262 15263 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 15264 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15265 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15266 else 15267 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15268 fi 15269 hardcode_libdir_flag_spec_F77='-R$libdir' 15270 hardcode_direct_F77=yes 15271 hardcode_shlibpath_var_F77=no 15272 ;; 15273 15274 newsos6) 15275 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15276 hardcode_direct_F77=yes 15277 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15278 hardcode_libdir_separator_F77=: 15279 hardcode_shlibpath_var_F77=no 15280 ;; 15281 15282 openbsd*) 15283 hardcode_direct_F77=yes 15284 hardcode_shlibpath_var_F77=no 15285 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15286 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15287 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15288 export_dynamic_flag_spec_F77='${wl}-E' 15289 else 15290 case $host_os in 15291 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15292 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15293 hardcode_libdir_flag_spec_F77='-R$libdir' 15294 ;; 15295 *) 15296 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15297 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15298 ;; 15299 esac 15300 fi 15301 ;; 15302 15303 os2*) 15304 hardcode_libdir_flag_spec_F77='-L$libdir' 15305 hardcode_minus_L_F77=yes 15306 allow_undefined_flag_F77=unsupported 15307 archive_cmds_F77='$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' 15308 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15309 ;; 15310 15311 osf3*) 15312 if test "$GCC" = yes; then 15313 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15314 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15315 else 15316 allow_undefined_flag_F77=' -expect_unresolved \*' 15317 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15318 fi 15319 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15320 hardcode_libdir_separator_F77=: 15321 ;; 15322 15323 osf4* | osf5*) # as osf3* with the addition of -msym flag 15324 if test "$GCC" = yes; then 15325 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15326 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15327 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15328 else 15329 allow_undefined_flag_F77=' -expect_unresolved \*' 15330 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15331 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 15332 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 15333 15334 # Both c and cxx compiler support -rpath directly 15335 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15336 fi 15337 hardcode_libdir_separator_F77=: 15338 ;; 15339 15340 sco3.2v5*) 15341 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15342 hardcode_shlibpath_var_F77=no 15343 export_dynamic_flag_spec_F77='${wl}-Bexport' 15344 runpath_var=LD_RUN_PATH 15345 hardcode_runpath_var=yes 15346 ;; 15347 15348 solaris*) 15349 no_undefined_flag_F77=' -z text' 15350 if test "$GCC" = yes; then 15351 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15352 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15353 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15354 else 15355 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15356 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15357 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15358 fi 15359 hardcode_libdir_flag_spec_F77='-R$libdir' 15360 hardcode_shlibpath_var_F77=no 15361 case $host_os in 15362 solaris2.[0-5] | solaris2.[0-5].*) ;; 15363 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 15364 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 15365 esac 15366 link_all_deplibs_F77=yes 15367 ;; 15368 15369 sunos4*) 15370 if test "x$host_vendor" = xsequent; then 15371 # Use $CC to link under sequent, because it throws in some extra .o 15372 # files that make .init and .fini sections work. 15373 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15374 else 15375 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15376 fi 15377 hardcode_libdir_flag_spec_F77='-L$libdir' 15378 hardcode_direct_F77=yes 15379 hardcode_minus_L_F77=yes 15380 hardcode_shlibpath_var_F77=no 15381 ;; 15382 15383 sysv4) 15384 case $host_vendor in 15385 sni) 15386 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15387 hardcode_direct_F77=yes # is this really true??? 15388 ;; 15389 siemens) 15390 ## LD is ld it makes a PLAMLIB 15391 ## CC just makes a GrossModule. 15392 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15393 reload_cmds_F77='$CC -r -o $output$reload_objs' 15394 hardcode_direct_F77=no 15395 ;; 15396 motorola) 15397 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15398 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15399 ;; 15400 esac 15401 runpath_var='LD_RUN_PATH' 15402 hardcode_shlibpath_var_F77=no 15403 ;; 15404 15405 sysv4.3*) 15406 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15407 hardcode_shlibpath_var_F77=no 15408 export_dynamic_flag_spec_F77='-Bexport' 15409 ;; 15410 15411 sysv4*MP*) 15412 if test -d /usr/nec; then 15413 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15414 hardcode_shlibpath_var_F77=no 15415 runpath_var=LD_RUN_PATH 15416 hardcode_runpath_var=yes 15417 ld_shlibs_F77=yes 15418 fi 15419 ;; 15420 15421 sysv4.2uw2*) 15422 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15423 hardcode_direct_F77=yes 15424 hardcode_minus_L_F77=no 15425 hardcode_shlibpath_var_F77=no 15426 hardcode_runpath_var=yes 15427 runpath_var=LD_RUN_PATH 15428 ;; 15429 15430 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 15431 no_undefined_flag_F77='${wl}-z ${wl}text' 15432 if test "$GCC" = yes; then 15433 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15434 else 15435 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15436 fi 15437 runpath_var='LD_RUN_PATH' 15438 hardcode_shlibpath_var_F77=no 15439 ;; 15440 15441 sysv5*) 15442 no_undefined_flag_F77=' -z text' 15443 # $CC -shared without GNU ld will not create a library from C++ 15444 # object files and a static libstdc++, better avoid it by now 15445 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15446 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15447 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15448 hardcode_libdir_flag_spec_F77= 15449 hardcode_shlibpath_var_F77=no 15450 runpath_var='LD_RUN_PATH' 15451 ;; 15452 15453 uts4*) 15454 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15455 hardcode_libdir_flag_spec_F77='-L$libdir' 15456 hardcode_shlibpath_var_F77=no 15457 ;; 15458 15459 *) 15460 ld_shlibs_F77=no 15461 ;; 15462 esac 15463 fi 15464 15465echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15466echo "${ECHO_T}$ld_shlibs_F77" >&6 15467test "$ld_shlibs_F77" = no && can_build_shared=no 15468 15469variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15470if test "$GCC" = yes; then 15471 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15472fi 15473 15474# 15475# Do we need to explicitly link libc? 15476# 15477case "x$archive_cmds_need_lc_F77" in 15478x|xyes) 15479 # Assume -lc should be added 15480 archive_cmds_need_lc_F77=yes 15481 15482 if test "$enable_shared" = yes && test "$GCC" = yes; then 15483 case $archive_cmds_F77 in 15484 *'~'*) 15485 # FIXME: we may have to deal with multi-command sequences. 15486 ;; 15487 '$CC '*) 15488 # Test whether the compiler implicitly links with -lc since on some 15489 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15490 # to ld, don't add -lc before -lgcc. 15491 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15492echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 15493 $rm conftest* 15494 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15495 15496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15497 (eval $ac_compile) 2>&5 15498 ac_status=$? 15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15500 (exit $ac_status); } 2>conftest.err; then 15501 soname=conftest 15502 lib=conftest 15503 libobjs=conftest.$ac_objext 15504 deplibs= 15505 wl=$lt_prog_compiler_wl_F77 15506 compiler_flags=-v 15507 linker_flags=-v 15508 verstring= 15509 output_objdir=. 15510 libname=conftest 15511 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15512 allow_undefined_flag_F77= 15513 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15514 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15515 ac_status=$? 15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15517 (exit $ac_status); } 15518 then 15519 archive_cmds_need_lc_F77=no 15520 else 15521 archive_cmds_need_lc_F77=yes 15522 fi 15523 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15524 else 15525 cat conftest.err 1>&5 15526 fi 15527 $rm conftest* 15528 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15529echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 15530 ;; 15531 esac 15532 fi 15533 ;; 15534esac 15535 15536echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15537echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 15538library_names_spec= 15539libname_spec='lib$name' 15540soname_spec= 15541shrext_cmds=".so" 15542postinstall_cmds= 15543postuninstall_cmds= 15544finish_cmds= 15545finish_eval= 15546shlibpath_var= 15547shlibpath_overrides_runpath=unknown 15548version_type=none 15549dynamic_linker="$host_os ld.so" 15550sys_lib_dlsearch_path_spec="/lib /usr/lib" 15551if test "$GCC" = yes; then 15552 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15553 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15554 # if the path contains ";" then we assume it to be the separator 15555 # otherwise default to the standard path separator (i.e. ":") - it is 15556 # assumed that no part of a normal pathname contains ";" but that should 15557 # okay in the real world where ";" in dirpaths is itself problematic. 15558 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15559 else 15560 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15561 fi 15562else 15563 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15564fi 15565need_lib_prefix=unknown 15566hardcode_into_libs=no 15567 15568# when you set need_version to no, make sure it does not cause -set_version 15569# flags to be left without arguments 15570need_version=unknown 15571 15572case $host_os in 15573aix3*) 15574 version_type=linux 15575 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15576 shlibpath_var=LIBPATH 15577 15578 # AIX 3 has no versioning support, so we append a major version to the name. 15579 soname_spec='${libname}${release}${shared_ext}$major' 15580 ;; 15581 15582aix4* | aix5*) 15583 version_type=linux 15584 need_lib_prefix=no 15585 need_version=no 15586 hardcode_into_libs=yes 15587 if test "$host_cpu" = ia64; then 15588 # AIX 5 supports IA64 15589 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15590 shlibpath_var=LD_LIBRARY_PATH 15591 else 15592 # With GCC up to 2.95.x, collect2 would create an import file 15593 # for dependence libraries. The import file would start with 15594 # the line `#! .'. This would cause the generated library to 15595 # depend on `.', always an invalid library. This was fixed in 15596 # development snapshots of GCC prior to 3.0. 15597 case $host_os in 15598 aix4 | aix4.[01] | aix4.[01].*) 15599 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15600 echo ' yes ' 15601 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15602 : 15603 else 15604 can_build_shared=no 15605 fi 15606 ;; 15607 esac 15608 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15609 # soname into executable. Probably we can add versioning support to 15610 # collect2, so additional links can be useful in future. 15611 if test "$aix_use_runtimelinking" = yes; then 15612 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15613 # instead of lib<name>.a to let people know that these are not 15614 # typical AIX shared libraries. 15615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15616 else 15617 # We preserve .a as extension for shared libraries through AIX4.2 15618 # and later when we are not doing run time linking. 15619 library_names_spec='${libname}${release}.a $libname.a' 15620 soname_spec='${libname}${release}${shared_ext}$major' 15621 fi 15622 shlibpath_var=LIBPATH 15623 fi 15624 ;; 15625 15626amigaos*) 15627 library_names_spec='$libname.ixlibrary $libname.a' 15628 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15629 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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' 15630 ;; 15631 15632beos*) 15633 library_names_spec='${libname}${shared_ext}' 15634 dynamic_linker="$host_os ld.so" 15635 shlibpath_var=LIBRARY_PATH 15636 ;; 15637 15638bsdi4*) 15639 version_type=linux 15640 need_version=no 15641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15642 soname_spec='${libname}${release}${shared_ext}$major' 15643 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15644 shlibpath_var=LD_LIBRARY_PATH 15645 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15646 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15647 # the default ld.so.conf also contains /usr/contrib/lib and 15648 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15649 # libtool to hard-code these into programs 15650 ;; 15651 15652cygwin* | mingw* | pw32*) 15653 version_type=windows 15654 shrext_cmds=".dll" 15655 need_version=no 15656 need_lib_prefix=no 15657 15658 case $GCC,$host_os in 15659 yes,cygwin* | yes,mingw* | yes,pw32*) 15660 library_names_spec='$libname.dll.a' 15661 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15662 postinstall_cmds='base_file=`basename \${file}`~ 15663 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15664 dldir=$destdir/`dirname \$dlpath`~ 15665 test -d \$dldir || mkdir -p \$dldir~ 15666 $install_prog $dir/$dlname \$dldir/$dlname' 15667 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15668 dlpath=$dir/\$dldll~ 15669 $rm \$dlpath' 15670 shlibpath_overrides_runpath=yes 15671 15672 case $host_os in 15673 cygwin*) 15674 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15675 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15676 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15677 ;; 15678 mingw*) 15679 # MinGW DLLs use traditional 'lib' prefix 15680 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15681 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15682 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15683 # It is most probably a Windows format PATH printed by 15684 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15685 # path with ; separators, and with drive letters. We can handle the 15686 # drive letters (cygwin fileutils understands them), so leave them, 15687 # especially as we might pass files found there to a mingw objdump, 15688 # which wouldn't understand a cygwinified path. Ahh. 15689 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15690 else 15691 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15692 fi 15693 ;; 15694 pw32*) 15695 # pw32 DLLs use 'pw' prefix rather than 'lib' 15696 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 15697 ;; 15698 esac 15699 ;; 15700 15701 *) 15702 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15703 ;; 15704 esac 15705 dynamic_linker='Win32 ld.exe' 15706 # FIXME: first we should search . and the directory the executable is in 15707 shlibpath_var=PATH 15708 ;; 15709 15710darwin* | rhapsody*) 15711 dynamic_linker="$host_os dyld" 15712 version_type=darwin 15713 need_lib_prefix=no 15714 need_version=no 15715 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15716 soname_spec='${libname}${release}${major}$shared_ext' 15717 shlibpath_overrides_runpath=yes 15718 shlibpath_var=DYLD_LIBRARY_PATH 15719 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 15720 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15721 if test "$GCC" = yes; then 15722 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 15723 else 15724 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15725 fi 15726 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15727 ;; 15728 15729dgux*) 15730 version_type=linux 15731 need_lib_prefix=no 15732 need_version=no 15733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15734 soname_spec='${libname}${release}${shared_ext}$major' 15735 shlibpath_var=LD_LIBRARY_PATH 15736 ;; 15737 15738freebsd1*) 15739 dynamic_linker=no 15740 ;; 15741 15742kfreebsd*-gnu) 15743 version_type=linux 15744 need_lib_prefix=no 15745 need_version=no 15746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15747 soname_spec='${libname}${release}${shared_ext}$major' 15748 shlibpath_var=LD_LIBRARY_PATH 15749 shlibpath_overrides_runpath=no 15750 hardcode_into_libs=yes 15751 dynamic_linker='GNU ld.so' 15752 ;; 15753 15754freebsd*) 15755 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 15756 version_type=freebsd-$objformat 15757 case $version_type in 15758 freebsd-elf*) 15759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15760 need_version=no 15761 need_lib_prefix=no 15762 ;; 15763 freebsd-*) 15764 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15765 need_version=yes 15766 ;; 15767 esac 15768 shlibpath_var=LD_LIBRARY_PATH 15769 case $host_os in 15770 freebsd2*) 15771 shlibpath_overrides_runpath=yes 15772 ;; 15773 freebsd3.01* | freebsdelf3.01*) 15774 shlibpath_overrides_runpath=yes 15775 hardcode_into_libs=yes 15776 ;; 15777 *) # from 3.2 on 15778 shlibpath_overrides_runpath=no 15779 hardcode_into_libs=yes 15780 ;; 15781 esac 15782 ;; 15783 15784gnu*) 15785 version_type=linux 15786 need_lib_prefix=no 15787 need_version=no 15788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15789 soname_spec='${libname}${release}${shared_ext}$major' 15790 shlibpath_var=LD_LIBRARY_PATH 15791 hardcode_into_libs=yes 15792 ;; 15793 15794hpux9* | hpux10* | hpux11*) 15795 # Give a soname corresponding to the major version so that dld.sl refuses to 15796 # link against other versions. 15797 version_type=sunos 15798 need_lib_prefix=no 15799 need_version=no 15800 case "$host_cpu" in 15801 ia64*) 15802 shrext_cmds='.so' 15803 hardcode_into_libs=yes 15804 dynamic_linker="$host_os dld.so" 15805 shlibpath_var=LD_LIBRARY_PATH 15806 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15808 soname_spec='${libname}${release}${shared_ext}$major' 15809 if test "X$HPUX_IA64_MODE" = X32; then 15810 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15811 else 15812 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15813 fi 15814 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15815 ;; 15816 hppa*64*) 15817 shrext_cmds='.sl' 15818 hardcode_into_libs=yes 15819 dynamic_linker="$host_os dld.sl" 15820 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15821 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15823 soname_spec='${libname}${release}${shared_ext}$major' 15824 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15825 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15826 ;; 15827 *) 15828 shrext_cmds='.sl' 15829 dynamic_linker="$host_os dld.sl" 15830 shlibpath_var=SHLIB_PATH 15831 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15833 soname_spec='${libname}${release}${shared_ext}$major' 15834 ;; 15835 esac 15836 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15837 postinstall_cmds='chmod 555 $lib' 15838 ;; 15839 15840irix5* | irix6* | nonstopux*) 15841 case $host_os in 15842 nonstopux*) version_type=nonstopux ;; 15843 *) 15844 if test "$lt_cv_prog_gnu_ld" = yes; then 15845 version_type=linux 15846 else 15847 version_type=irix 15848 fi ;; 15849 esac 15850 need_lib_prefix=no 15851 need_version=no 15852 soname_spec='${libname}${release}${shared_ext}$major' 15853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15854 case $host_os in 15855 irix5* | nonstopux*) 15856 libsuff= shlibsuff= 15857 ;; 15858 *) 15859 case $LD in # libtool.m4 will add one of these switches to LD 15860 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15861 libsuff= shlibsuff= libmagic=32-bit;; 15862 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15863 libsuff=32 shlibsuff=N32 libmagic=N32;; 15864 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15865 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15866 *) libsuff= shlibsuff= libmagic=never-match;; 15867 esac 15868 ;; 15869 esac 15870 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15871 shlibpath_overrides_runpath=no 15872 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15873 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15874 hardcode_into_libs=yes 15875 ;; 15876 15877# No shared lib support for Linux oldld, aout, or coff. 15878linux*oldld* | linux*aout* | linux*coff*) 15879 dynamic_linker=no 15880 ;; 15881 15882# This must be Linux ELF. 15883linux*) 15884 version_type=linux 15885 need_lib_prefix=no 15886 need_version=no 15887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15888 soname_spec='${libname}${release}${shared_ext}$major' 15889 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15890 shlibpath_var=LD_LIBRARY_PATH 15891 shlibpath_overrides_runpath=no 15892 # This implies no fast_install, which is unacceptable. 15893 # Some rework will be needed to allow for fast_install 15894 # before this can be enabled. 15895 hardcode_into_libs=yes 15896 15897 # Append ld.so.conf contents to the search path 15898 if test -f /etc/ld.so.conf; then 15899 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 15900 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15901 fi 15902 15903 # We used to test for /lib/ld.so.1 and disable shared libraries on 15904 # powerpc, because MkLinux only supported shared libraries with the 15905 # GNU dynamic linker. Since this was broken with cross compilers, 15906 # most powerpc-linux boxes support dynamic linking these days and 15907 # people can always --disable-shared, the test was removed, and we 15908 # assume the GNU/Linux dynamic linker is in use. 15909 dynamic_linker='GNU/Linux ld.so' 15910 ;; 15911 15912netbsdelf*-gnu) 15913 version_type=linux 15914 need_lib_prefix=no 15915 need_version=no 15916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15917 soname_spec='${libname}${release}${shared_ext}$major' 15918 shlibpath_var=LD_LIBRARY_PATH 15919 shlibpath_overrides_runpath=no 15920 hardcode_into_libs=yes 15921 dynamic_linker='NetBSD ld.elf_so' 15922 ;; 15923 15924knetbsd*-gnu) 15925 version_type=linux 15926 need_lib_prefix=no 15927 need_version=no 15928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15929 soname_spec='${libname}${release}${shared_ext}$major' 15930 shlibpath_var=LD_LIBRARY_PATH 15931 shlibpath_overrides_runpath=no 15932 hardcode_into_libs=yes 15933 dynamic_linker='GNU ld.so' 15934 ;; 15935 15936netbsd*) 15937 version_type=sunos 15938 need_lib_prefix=no 15939 need_version=no 15940 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15943 dynamic_linker='NetBSD (a.out) ld.so' 15944 else 15945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15946 soname_spec='${libname}${release}${shared_ext}$major' 15947 dynamic_linker='NetBSD ld.elf_so' 15948 fi 15949 shlibpath_var=LD_LIBRARY_PATH 15950 shlibpath_overrides_runpath=yes 15951 hardcode_into_libs=yes 15952 ;; 15953 15954newsos6) 15955 version_type=linux 15956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15957 shlibpath_var=LD_LIBRARY_PATH 15958 shlibpath_overrides_runpath=yes 15959 ;; 15960 15961nto-qnx*) 15962 version_type=linux 15963 need_lib_prefix=no 15964 need_version=no 15965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15966 soname_spec='${libname}${release}${shared_ext}$major' 15967 shlibpath_var=LD_LIBRARY_PATH 15968 shlibpath_overrides_runpath=yes 15969 ;; 15970 15971openbsd*) 15972 version_type=sunos 15973 need_lib_prefix=no 15974 need_version=yes 15975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15976 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15977 shlibpath_var=LD_LIBRARY_PATH 15978 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15979 case $host_os in 15980 openbsd2.[89] | openbsd2.[89].*) 15981 shlibpath_overrides_runpath=no 15982 ;; 15983 *) 15984 shlibpath_overrides_runpath=yes 15985 ;; 15986 esac 15987 else 15988 shlibpath_overrides_runpath=yes 15989 fi 15990 ;; 15991 15992os2*) 15993 libname_spec='$name' 15994 shrext_cmds=".dll" 15995 need_lib_prefix=no 15996 library_names_spec='$libname${shared_ext} $libname.a' 15997 dynamic_linker='OS/2 ld.exe' 15998 shlibpath_var=LIBPATH 15999 ;; 16000 16001osf3* | osf4* | osf5*) 16002 version_type=osf 16003 need_lib_prefix=no 16004 need_version=no 16005 soname_spec='${libname}${release}${shared_ext}$major' 16006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16007 shlibpath_var=LD_LIBRARY_PATH 16008 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16009 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16010 ;; 16011 16012sco3.2v5*) 16013 version_type=osf 16014 soname_spec='${libname}${release}${shared_ext}$major' 16015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16016 shlibpath_var=LD_LIBRARY_PATH 16017 ;; 16018 16019solaris*) 16020 version_type=linux 16021 need_lib_prefix=no 16022 need_version=no 16023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16024 soname_spec='${libname}${release}${shared_ext}$major' 16025 shlibpath_var=LD_LIBRARY_PATH 16026 shlibpath_overrides_runpath=yes 16027 hardcode_into_libs=yes 16028 # ldd complains unless libraries are executable 16029 postinstall_cmds='chmod +x $lib' 16030 ;; 16031 16032sunos4*) 16033 version_type=sunos 16034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16035 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16036 shlibpath_var=LD_LIBRARY_PATH 16037 shlibpath_overrides_runpath=yes 16038 if test "$with_gnu_ld" = yes; then 16039 need_lib_prefix=no 16040 fi 16041 need_version=yes 16042 ;; 16043 16044sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16045 version_type=linux 16046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16047 soname_spec='${libname}${release}${shared_ext}$major' 16048 shlibpath_var=LD_LIBRARY_PATH 16049 case $host_vendor in 16050 sni) 16051 shlibpath_overrides_runpath=no 16052 need_lib_prefix=no 16053 export_dynamic_flag_spec='${wl}-Blargedynsym' 16054 runpath_var=LD_RUN_PATH 16055 ;; 16056 siemens) 16057 need_lib_prefix=no 16058 ;; 16059 motorola) 16060 need_lib_prefix=no 16061 need_version=no 16062 shlibpath_overrides_runpath=no 16063 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16064 ;; 16065 esac 16066 ;; 16067 16068sysv4*MP*) 16069 if test -d /usr/nec ;then 16070 version_type=linux 16071 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16072 soname_spec='$libname${shared_ext}.$major' 16073 shlibpath_var=LD_LIBRARY_PATH 16074 fi 16075 ;; 16076 16077uts4*) 16078 version_type=linux 16079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16080 soname_spec='${libname}${release}${shared_ext}$major' 16081 shlibpath_var=LD_LIBRARY_PATH 16082 ;; 16083 16084*) 16085 dynamic_linker=no 16086 ;; 16087esac 16088echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16089echo "${ECHO_T}$dynamic_linker" >&6 16090test "$dynamic_linker" = no && can_build_shared=no 16091 16092echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16093echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 16094hardcode_action_F77= 16095if test -n "$hardcode_libdir_flag_spec_F77" || \ 16096 test -n "$runpath_var F77" || \ 16097 test "X$hardcode_automatic_F77"="Xyes" ; then 16098 16099 # We can hardcode non-existant directories. 16100 if test "$hardcode_direct_F77" != no && 16101 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16102 # have to relink, otherwise we might link with an installed library 16103 # when we should be linking with a yet-to-be-installed one 16104 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16105 test "$hardcode_minus_L_F77" != no; then 16106 # Linking always hardcodes the temporary library directory. 16107 hardcode_action_F77=relink 16108 else 16109 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16110 hardcode_action_F77=immediate 16111 fi 16112else 16113 # We cannot hardcode anything, or else we can only hardcode existing 16114 # directories. 16115 hardcode_action_F77=unsupported 16116fi 16117echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16118echo "${ECHO_T}$hardcode_action_F77" >&6 16119 16120if test "$hardcode_action_F77" = relink; then 16121 # Fast installation is not supported 16122 enable_fast_install=no 16123elif test "$shlibpath_overrides_runpath" = yes || 16124 test "$enable_shared" = no; then 16125 # Fast installation is not necessary 16126 enable_fast_install=needless 16127fi 16128 16129striplib= 16130old_striplib= 16131echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 16132echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 16133if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 16134 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 16135 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 16136 echo "$as_me:$LINENO: result: yes" >&5 16137echo "${ECHO_T}yes" >&6 16138else 16139# FIXME - insert some real tests, host_os isn't really good enough 16140 case $host_os in 16141 darwin*) 16142 if test -n "$STRIP" ; then 16143 striplib="$STRIP -x" 16144 echo "$as_me:$LINENO: result: yes" >&5 16145echo "${ECHO_T}yes" >&6 16146 else 16147 echo "$as_me:$LINENO: result: no" >&5 16148echo "${ECHO_T}no" >&6 16149fi 16150 ;; 16151 *) 16152 echo "$as_me:$LINENO: result: no" >&5 16153echo "${ECHO_T}no" >&6 16154 ;; 16155 esac 16156fi 16157 16158 16159 16160# The else clause should only fire when bootstrapping the 16161# libtool distribution, otherwise you forgot to ship ltmain.sh 16162# with your package, and you will get complaints that there are 16163# no rules to generate ltmain.sh. 16164if test -f "$ltmain"; then 16165 # See if we are running on zsh, and set the options which allow our commands through 16166 # without removal of \ escapes. 16167 if test -n "${ZSH_VERSION+set}" ; then 16168 setopt NO_GLOB_SUBST 16169 fi 16170 # Now quote all the things that may contain metacharacters while being 16171 # careful not to overquote the AC_SUBSTed values. We take copies of the 16172 # variables and quote the copies for generation of the libtool script. 16173 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 16174 SED SHELL STRIP \ 16175 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16176 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16177 deplibs_check_method reload_flag reload_cmds need_locks \ 16178 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16179 lt_cv_sys_global_symbol_to_c_name_address \ 16180 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16181 old_postinstall_cmds old_postuninstall_cmds \ 16182 compiler_F77 \ 16183 CC_F77 \ 16184 LD_F77 \ 16185 lt_prog_compiler_wl_F77 \ 16186 lt_prog_compiler_pic_F77 \ 16187 lt_prog_compiler_static_F77 \ 16188 lt_prog_compiler_no_builtin_flag_F77 \ 16189 export_dynamic_flag_spec_F77 \ 16190 thread_safe_flag_spec_F77 \ 16191 whole_archive_flag_spec_F77 \ 16192 enable_shared_with_static_runtimes_F77 \ 16193 old_archive_cmds_F77 \ 16194 old_archive_from_new_cmds_F77 \ 16195 predep_objects_F77 \ 16196 postdep_objects_F77 \ 16197 predeps_F77 \ 16198 postdeps_F77 \ 16199 compiler_lib_search_path_F77 \ 16200 archive_cmds_F77 \ 16201 archive_expsym_cmds_F77 \ 16202 postinstall_cmds_F77 \ 16203 postuninstall_cmds_F77 \ 16204 old_archive_from_expsyms_cmds_F77 \ 16205 allow_undefined_flag_F77 \ 16206 no_undefined_flag_F77 \ 16207 export_symbols_cmds_F77 \ 16208 hardcode_libdir_flag_spec_F77 \ 16209 hardcode_libdir_flag_spec_ld_F77 \ 16210 hardcode_libdir_separator_F77 \ 16211 hardcode_automatic_F77 \ 16212 module_cmds_F77 \ 16213 module_expsym_cmds_F77 \ 16214 lt_cv_prog_compiler_c_o_F77 \ 16215 exclude_expsyms_F77 \ 16216 include_expsyms_F77; do 16217 16218 case $var in 16219 old_archive_cmds_F77 | \ 16220 old_archive_from_new_cmds_F77 | \ 16221 archive_cmds_F77 | \ 16222 archive_expsym_cmds_F77 | \ 16223 module_cmds_F77 | \ 16224 module_expsym_cmds_F77 | \ 16225 old_archive_from_expsyms_cmds_F77 | \ 16226 export_symbols_cmds_F77 | \ 16227 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16228 postinstall_cmds | postuninstall_cmds | \ 16229 old_postinstall_cmds | old_postuninstall_cmds | \ 16230 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16231 # Double-quote double-evaled strings. 16232 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16233 ;; 16234 *) 16235 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16236 ;; 16237 esac 16238 done 16239 16240 case $lt_echo in 16241 *'\$0 --fallback-echo"') 16242 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16243 ;; 16244 esac 16245 16246cfgfile="$ofile" 16247 16248 cat <<__EOF__ >> "$cfgfile" 16249# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16250 16251# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16252 16253# Shell to use when invoking shell scripts. 16254SHELL=$lt_SHELL 16255 16256# Whether or not to build shared libraries. 16257build_libtool_libs=$enable_shared 16258 16259# Whether or not to build static libraries. 16260build_old_libs=$enable_static 16261 16262# Whether or not to add -lc for building shared libraries. 16263build_libtool_need_lc=$archive_cmds_need_lc_F77 16264 16265# Whether or not to disallow shared libs when runtime libs are static 16266allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16267 16268# Whether or not to optimize for fast installation. 16269fast_install=$enable_fast_install 16270 16271# The host system. 16272host_alias=$host_alias 16273host=$host 16274 16275# An echo program that does not interpret backslashes. 16276echo=$lt_echo 16277 16278# The archiver. 16279AR=$lt_AR 16280AR_FLAGS=$lt_AR_FLAGS 16281 16282# A C compiler. 16283LTCC=$lt_LTCC 16284 16285# A language-specific compiler. 16286CC=$lt_compiler_F77 16287 16288# Is the compiler the GNU C compiler? 16289with_gcc=$GCC_F77 16290 16291# An ERE matcher. 16292EGREP=$lt_EGREP 16293 16294# The linker used to build libraries. 16295LD=$lt_LD_F77 16296 16297# Whether we need hard or soft links. 16298LN_S=$lt_LN_S 16299 16300# A BSD-compatible nm program. 16301NM=$lt_NM 16302 16303# A symbol stripping program 16304STRIP=$lt_STRIP 16305 16306# Used to examine libraries when file_magic_cmd begins "file" 16307MAGIC_CMD=$MAGIC_CMD 16308 16309# Used on cygwin: DLL creation program. 16310DLLTOOL="$DLLTOOL" 16311 16312# Used on cygwin: object dumper. 16313OBJDUMP="$OBJDUMP" 16314 16315# Used on cygwin: assembler. 16316AS="$AS" 16317 16318# The name of the directory that contains temporary libtool files. 16319objdir=$objdir 16320 16321# How to create reloadable object files. 16322reload_flag=$lt_reload_flag 16323reload_cmds=$lt_reload_cmds 16324 16325# How to pass a linker flag through the compiler. 16326wl=$lt_lt_prog_compiler_wl_F77 16327 16328# Object file suffix (normally "o"). 16329objext="$ac_objext" 16330 16331# Old archive suffix (normally "a"). 16332libext="$libext" 16333 16334# Shared library suffix (normally ".so"). 16335shrext_cmds='$shrext_cmds' 16336 16337# Executable file suffix (normally ""). 16338exeext="$exeext" 16339 16340# Additional compiler flags for building library objects. 16341pic_flag=$lt_lt_prog_compiler_pic_F77 16342pic_mode=$pic_mode 16343 16344# What is the maximum length of a command? 16345max_cmd_len=$lt_cv_sys_max_cmd_len 16346 16347# Does compiler simultaneously support -c and -o options? 16348compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16349 16350# Must we lock files when doing compilation ? 16351need_locks=$lt_need_locks 16352 16353# Do we need the lib prefix for modules? 16354need_lib_prefix=$need_lib_prefix 16355 16356# Do we need a version for libraries? 16357need_version=$need_version 16358 16359# Whether dlopen is supported. 16360dlopen_support=$enable_dlopen 16361 16362# Whether dlopen of programs is supported. 16363dlopen_self=$enable_dlopen_self 16364 16365# Whether dlopen of statically linked programs is supported. 16366dlopen_self_static=$enable_dlopen_self_static 16367 16368# Compiler flag to prevent dynamic linking. 16369link_static_flag=$lt_lt_prog_compiler_static_F77 16370 16371# Compiler flag to turn off builtin functions. 16372no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16373 16374# Compiler flag to allow reflexive dlopens. 16375export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16376 16377# Compiler flag to generate shared objects directly from archives. 16378whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16379 16380# Compiler flag to generate thread-safe objects. 16381thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16382 16383# Library versioning type. 16384version_type=$version_type 16385 16386# Format of library name prefix. 16387libname_spec=$lt_libname_spec 16388 16389# List of archive names. First name is the real one, the rest are links. 16390# The last name is the one that the linker finds with -lNAME. 16391library_names_spec=$lt_library_names_spec 16392 16393# The coded name of the library, if different from the real name. 16394soname_spec=$lt_soname_spec 16395 16396# Commands used to build and install an old-style archive. 16397RANLIB=$lt_RANLIB 16398old_archive_cmds=$lt_old_archive_cmds_F77 16399old_postinstall_cmds=$lt_old_postinstall_cmds 16400old_postuninstall_cmds=$lt_old_postuninstall_cmds 16401 16402# Create an old-style archive from a shared archive. 16403old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16404 16405# Create a temporary old-style archive to link instead of a shared archive. 16406old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16407 16408# Commands used to build and install a shared archive. 16409archive_cmds=$lt_archive_cmds_F77 16410archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16411postinstall_cmds=$lt_postinstall_cmds 16412postuninstall_cmds=$lt_postuninstall_cmds 16413 16414# Commands used to build a loadable module (assumed same as above if empty) 16415module_cmds=$lt_module_cmds_F77 16416module_expsym_cmds=$lt_module_expsym_cmds_F77 16417 16418# Commands to strip libraries. 16419old_striplib=$lt_old_striplib 16420striplib=$lt_striplib 16421 16422# Dependencies to place before the objects being linked to create a 16423# shared library. 16424predep_objects=$lt_predep_objects_F77 16425 16426# Dependencies to place after the objects being linked to create a 16427# shared library. 16428postdep_objects=$lt_postdep_objects_F77 16429 16430# Dependencies to place before the objects being linked to create a 16431# shared library. 16432predeps=$lt_predeps_F77 16433 16434# Dependencies to place after the objects being linked to create a 16435# shared library. 16436postdeps=$lt_postdeps_F77 16437 16438# The library search path used internally by the compiler when linking 16439# a shared library. 16440compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16441 16442# Method to check whether dependent libraries are shared objects. 16443deplibs_check_method=$lt_deplibs_check_method 16444 16445# Command to use when deplibs_check_method == file_magic. 16446file_magic_cmd=$lt_file_magic_cmd 16447 16448# Flag that allows shared libraries with undefined symbols to be built. 16449allow_undefined_flag=$lt_allow_undefined_flag_F77 16450 16451# Flag that forces no undefined symbols. 16452no_undefined_flag=$lt_no_undefined_flag_F77 16453 16454# Commands used to finish a libtool library installation in a directory. 16455finish_cmds=$lt_finish_cmds 16456 16457# Same as above, but a single script fragment to be evaled but not shown. 16458finish_eval=$lt_finish_eval 16459 16460# Take the output of nm and produce a listing of raw symbols and C names. 16461global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16462 16463# Transform the output of nm in a proper C declaration 16464global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16465 16466# Transform the output of nm in a C name address pair 16467global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16468 16469# This is the shared library runtime path variable. 16470runpath_var=$runpath_var 16471 16472# This is the shared library path variable. 16473shlibpath_var=$shlibpath_var 16474 16475# Is shlibpath searched before the hard-coded library search path? 16476shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16477 16478# How to hardcode a shared library path into an executable. 16479hardcode_action=$hardcode_action_F77 16480 16481# Whether we should hardcode library paths into libraries. 16482hardcode_into_libs=$hardcode_into_libs 16483 16484# Flag to hardcode \$libdir into a binary during linking. 16485# This must work even if \$libdir does not exist. 16486hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16487 16488# If ld is used when linking, flag to hardcode \$libdir into 16489# a binary during linking. This must work even if \$libdir does 16490# not exist. 16491hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16492 16493# Whether we need a single -rpath flag with a separated argument. 16494hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16495 16496# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16497# resulting binary. 16498hardcode_direct=$hardcode_direct_F77 16499 16500# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16501# resulting binary. 16502hardcode_minus_L=$hardcode_minus_L_F77 16503 16504# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16505# the resulting binary. 16506hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16507 16508# Set to yes if building a shared library automatically hardcodes DIR into the library 16509# and all subsequent libraries and executables linked against it. 16510hardcode_automatic=$hardcode_automatic_F77 16511 16512# Variables whose values should be saved in libtool wrapper scripts and 16513# restored at relink time. 16514variables_saved_for_relink="$variables_saved_for_relink" 16515 16516# Whether libtool must link a program against all its dependency libraries. 16517link_all_deplibs=$link_all_deplibs_F77 16518 16519# Compile-time system search path for libraries 16520sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16521 16522# Run-time system search path for libraries 16523sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16524 16525# Fix the shell variable \$srcfile for the compiler. 16526fix_srcfile_path="$fix_srcfile_path_F77" 16527 16528# Set to yes if exported symbols are required. 16529always_export_symbols=$always_export_symbols_F77 16530 16531# The commands to list exported symbols. 16532export_symbols_cmds=$lt_export_symbols_cmds_F77 16533 16534# The commands to extract the exported symbol list from a shared archive. 16535extract_expsyms_cmds=$lt_extract_expsyms_cmds 16536 16537# Symbols that should not be listed in the preloaded symbols. 16538exclude_expsyms=$lt_exclude_expsyms_F77 16539 16540# Symbols that must always be exported. 16541include_expsyms=$lt_include_expsyms_F77 16542 16543# ### END LIBTOOL TAG CONFIG: $tagname 16544 16545__EOF__ 16546 16547 16548else 16549 # If there is no Makefile yet, we rely on a make rule to execute 16550 # `config.status --recheck' to rerun these tests and create the 16551 # libtool script then. 16552 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16553 if test -f "$ltmain_in"; then 16554 test -f Makefile && make "$ltmain" 16555 fi 16556fi 16557 16558 16559ac_ext=c 16560ac_cpp='$CPP $CPPFLAGS' 16561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16563ac_compiler_gnu=$ac_cv_c_compiler_gnu 16564 16565CC="$lt_save_CC" 16566 16567 else 16568 tagname="" 16569 fi 16570 ;; 16571 16572 GCJ) 16573 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16574 16575 16576 16577# Source file extension for Java test sources. 16578ac_ext=java 16579 16580# Object file extension for compiled Java test sources. 16581objext=o 16582objext_GCJ=$objext 16583 16584# Code to be used in simple compile tests 16585lt_simple_compile_test_code="class foo {}\n" 16586 16587# Code to be used in simple link tests 16588lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' 16589 16590# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16591 16592# If no C compiler was specified, use CC. 16593LTCC=${LTCC-"$CC"} 16594 16595# Allow CC to be a program name with arguments. 16596compiler=$CC 16597 16598 16599# Allow CC to be a program name with arguments. 16600lt_save_CC="$CC" 16601CC=${GCJ-"gcj"} 16602compiler=$CC 16603compiler_GCJ=$CC 16604 16605# GCJ did not exist at the time GCC didn't implicitly link libc in. 16606archive_cmds_need_lc_GCJ=no 16607 16608 16609lt_prog_compiler_no_builtin_flag_GCJ= 16610 16611if test "$GCC" = yes; then 16612 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16613 16614 16615echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16616echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 16617if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16618 echo $ECHO_N "(cached) $ECHO_C" >&6 16619else 16620 lt_cv_prog_compiler_rtti_exceptions=no 16621 ac_outfile=conftest.$ac_objext 16622 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16623 lt_compiler_flag="-fno-rtti -fno-exceptions" 16624 # Insert the option either (1) after the last *FLAGS variable, or 16625 # (2) before a word containing "conftest.", or (3) at the end. 16626 # Note that $ac_compile itself does not contain backslashes and begins 16627 # with a dollar sign (not a hyphen), so the echo should work correctly. 16628 # The option is referenced via a variable to avoid confusing sed. 16629 lt_compile=`echo "$ac_compile" | $SED \ 16630 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 16631 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16632 -e 's:$: $lt_compiler_flag:'` 16633 (eval echo "\"\$as_me:16633: $lt_compile\"" >&5) 16634 (eval "$lt_compile" 2>conftest.err) 16635 ac_status=$? 16636 cat conftest.err >&5 16637 echo "$as_me:16637: \$? = $ac_status" >&5 16638 if (exit $ac_status) && test -s "$ac_outfile"; then 16639 # The compiler can only warn and ignore the option if not recognized 16640 # So say no if there are warnings 16641 if test ! -s conftest.err; then 16642 lt_cv_prog_compiler_rtti_exceptions=yes 16643 fi 16644 fi 16645 $rm conftest* 16646 16647fi 16648echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16649echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 16650 16651if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16652 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16653else 16654 : 16655fi 16656 16657fi 16658 16659lt_prog_compiler_wl_GCJ= 16660lt_prog_compiler_pic_GCJ= 16661lt_prog_compiler_static_GCJ= 16662 16663echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16664echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 16665 16666 if test "$GCC" = yes; then 16667 lt_prog_compiler_wl_GCJ='-Wl,' 16668 lt_prog_compiler_static_GCJ='-static' 16669 16670 case $host_os in 16671 aix*) 16672 # All AIX code is PIC. 16673 if test "$host_cpu" = ia64; then 16674 # AIX 5 now supports IA64 processor 16675 lt_prog_compiler_static_GCJ='-Bstatic' 16676 fi 16677 ;; 16678 16679 amigaos*) 16680 # FIXME: we need at least 68020 code to build shared libraries, but 16681 # adding the `-m68020' flag to GCC prevents building anything better, 16682 # like `-m68040'. 16683 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16684 ;; 16685 16686 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16687 # PIC is the default for these OSes. 16688 ;; 16689 16690 mingw* | pw32* | os2*) 16691 # This hack is so that the source file can tell whether it is being 16692 # built for inclusion in a dll (and should export symbols for example). 16693 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16694 ;; 16695 16696 darwin* | rhapsody*) 16697 # PIC is the default on this platform 16698 # Common symbols not allowed in MH_DYLIB files 16699 lt_prog_compiler_pic_GCJ='-fno-common' 16700 ;; 16701 16702 msdosdjgpp*) 16703 # Just because we use GCC doesn't mean we suddenly get shared libraries 16704 # on systems that don't support them. 16705 lt_prog_compiler_can_build_shared_GCJ=no 16706 enable_shared=no 16707 ;; 16708 16709 sysv4*MP*) 16710 if test -d /usr/nec; then 16711 lt_prog_compiler_pic_GCJ=-Kconform_pic 16712 fi 16713 ;; 16714 16715 hpux*) 16716 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16717 # not for PA HP-UX. 16718 case "$host_cpu" in 16719 hppa*64*|ia64*) 16720 # +Z the default 16721 ;; 16722 *) 16723 lt_prog_compiler_pic_GCJ='-fPIC' 16724 ;; 16725 esac 16726 ;; 16727 16728 *) 16729 lt_prog_compiler_pic_GCJ='-fPIC' 16730 ;; 16731 esac 16732 else 16733 # PORTME Check for flag to pass linker flags through the system compiler. 16734 case $host_os in 16735 aix*) 16736 lt_prog_compiler_wl_GCJ='-Wl,' 16737 if test "$host_cpu" = ia64; then 16738 # AIX 5 now supports IA64 processor 16739 lt_prog_compiler_static_GCJ='-Bstatic' 16740 else 16741 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16742 fi 16743 ;; 16744 16745 mingw* | pw32* | os2*) 16746 # This hack is so that the source file can tell whether it is being 16747 # built for inclusion in a dll (and should export symbols for example). 16748 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16749 ;; 16750 16751 hpux9* | hpux10* | hpux11*) 16752 lt_prog_compiler_wl_GCJ='-Wl,' 16753 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16754 # not for PA HP-UX. 16755 case "$host_cpu" in 16756 hppa*64*|ia64*) 16757 # +Z the default 16758 ;; 16759 *) 16760 lt_prog_compiler_pic_GCJ='+Z' 16761 ;; 16762 esac 16763 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16764 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16765 ;; 16766 16767 irix5* | irix6* | nonstopux*) 16768 lt_prog_compiler_wl_GCJ='-Wl,' 16769 # PIC (with -KPIC) is the default. 16770 lt_prog_compiler_static_GCJ='-non_shared' 16771 ;; 16772 16773 newsos6) 16774 lt_prog_compiler_pic_GCJ='-KPIC' 16775 lt_prog_compiler_static_GCJ='-Bstatic' 16776 ;; 16777 16778 linux*) 16779 case $CC in 16780 icc* | ecc*) 16781 lt_prog_compiler_wl_GCJ='-Wl,' 16782 lt_prog_compiler_pic_GCJ='-KPIC' 16783 lt_prog_compiler_static_GCJ='-static' 16784 ;; 16785 ccc*) 16786 lt_prog_compiler_wl_GCJ='-Wl,' 16787 # All Alpha code is PIC. 16788 lt_prog_compiler_static_GCJ='-non_shared' 16789 ;; 16790 esac 16791 ;; 16792 16793 osf3* | osf4* | osf5*) 16794 lt_prog_compiler_wl_GCJ='-Wl,' 16795 # All OSF/1 code is PIC. 16796 lt_prog_compiler_static_GCJ='-non_shared' 16797 ;; 16798 16799 sco3.2v5*) 16800 lt_prog_compiler_pic_GCJ='-Kpic' 16801 lt_prog_compiler_static_GCJ='-dn' 16802 ;; 16803 16804 solaris*) 16805 lt_prog_compiler_wl_GCJ='-Wl,' 16806 lt_prog_compiler_pic_GCJ='-KPIC' 16807 lt_prog_compiler_static_GCJ='-Bstatic' 16808 ;; 16809 16810 sunos4*) 16811 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16812 lt_prog_compiler_pic_GCJ='-PIC' 16813 lt_prog_compiler_static_GCJ='-Bstatic' 16814 ;; 16815 16816 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16817 lt_prog_compiler_wl_GCJ='-Wl,' 16818 lt_prog_compiler_pic_GCJ='-KPIC' 16819 lt_prog_compiler_static_GCJ='-Bstatic' 16820 ;; 16821 16822 sysv4*MP*) 16823 if test -d /usr/nec ;then 16824 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16825 lt_prog_compiler_static_GCJ='-Bstatic' 16826 fi 16827 ;; 16828 16829 uts4*) 16830 lt_prog_compiler_pic_GCJ='-pic' 16831 lt_prog_compiler_static_GCJ='-Bstatic' 16832 ;; 16833 16834 *) 16835 lt_prog_compiler_can_build_shared_GCJ=no 16836 ;; 16837 esac 16838 fi 16839 16840echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16841echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 16842 16843# 16844# Check to make sure the PIC flag actually works. 16845# 16846if test -n "$lt_prog_compiler_pic_GCJ"; then 16847 16848echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16849echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 16850if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16851 echo $ECHO_N "(cached) $ECHO_C" >&6 16852else 16853 lt_prog_compiler_pic_works_GCJ=no 16854 ac_outfile=conftest.$ac_objext 16855 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16856 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16857 # Insert the option either (1) after the last *FLAGS variable, or 16858 # (2) before a word containing "conftest.", or (3) at the end. 16859 # Note that $ac_compile itself does not contain backslashes and begins 16860 # with a dollar sign (not a hyphen), so the echo should work correctly. 16861 # The option is referenced via a variable to avoid confusing sed. 16862 lt_compile=`echo "$ac_compile" | $SED \ 16863 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 16864 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16865 -e 's:$: $lt_compiler_flag:'` 16866 (eval echo "\"\$as_me:16866: $lt_compile\"" >&5) 16867 (eval "$lt_compile" 2>conftest.err) 16868 ac_status=$? 16869 cat conftest.err >&5 16870 echo "$as_me:16870: \$? = $ac_status" >&5 16871 if (exit $ac_status) && test -s "$ac_outfile"; then 16872 # The compiler can only warn and ignore the option if not recognized 16873 # So say no if there are warnings 16874 if test ! -s conftest.err; then 16875 lt_prog_compiler_pic_works_GCJ=yes 16876 fi 16877 fi 16878 $rm conftest* 16879 16880fi 16881echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16882echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 16883 16884if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16885 case $lt_prog_compiler_pic_GCJ in 16886 "" | " "*) ;; 16887 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16888 esac 16889else 16890 lt_prog_compiler_pic_GCJ= 16891 lt_prog_compiler_can_build_shared_GCJ=no 16892fi 16893 16894fi 16895case "$host_os" in 16896 # For platforms which do not support PIC, -DPIC is meaningless: 16897 *djgpp*) 16898 lt_prog_compiler_pic_GCJ= 16899 ;; 16900 *) 16901 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16902 ;; 16903esac 16904 16905echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16906echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 16907if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16908 echo $ECHO_N "(cached) $ECHO_C" >&6 16909else 16910 lt_cv_prog_compiler_c_o_GCJ=no 16911 $rm -r conftest 2>/dev/null 16912 mkdir conftest 16913 cd conftest 16914 mkdir out 16915 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16916 16917 lt_compiler_flag="-o out/conftest2.$ac_objext" 16918 # Insert the option either (1) after the last *FLAGS variable, or 16919 # (2) before a word containing "conftest.", or (3) at the end. 16920 # Note that $ac_compile itself does not contain backslashes and begins 16921 # with a dollar sign (not a hyphen), so the echo should work correctly. 16922 lt_compile=`echo "$ac_compile" | $SED \ 16923 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 16924 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16925 -e 's:$: $lt_compiler_flag:'` 16926 (eval echo "\"\$as_me:16926: $lt_compile\"" >&5) 16927 (eval "$lt_compile" 2>out/conftest.err) 16928 ac_status=$? 16929 cat out/conftest.err >&5 16930 echo "$as_me:16930: \$? = $ac_status" >&5 16931 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16932 then 16933 # The compiler can only warn and ignore the option if not recognized 16934 # So say no if there are warnings 16935 if test ! -s out/conftest.err; then 16936 lt_cv_prog_compiler_c_o_GCJ=yes 16937 fi 16938 fi 16939 chmod u+w . 16940 $rm conftest* 16941 # SGI C++ compiler will create directory out/ii_files/ for 16942 # template instantiation 16943 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16944 $rm out/* && rmdir out 16945 cd .. 16946 rmdir conftest 16947 $rm conftest* 16948 16949fi 16950echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16951echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 16952 16953 16954hard_links="nottested" 16955if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16956 # do not overwrite the value of need_locks provided by the user 16957 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16958echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 16959 hard_links=yes 16960 $rm conftest* 16961 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16962 touch conftest.a 16963 ln conftest.a conftest.b 2>&5 || hard_links=no 16964 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16965 echo "$as_me:$LINENO: result: $hard_links" >&5 16966echo "${ECHO_T}$hard_links" >&6 16967 if test "$hard_links" = no; then 16968 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16969echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16970 need_locks=warn 16971 fi 16972else 16973 need_locks=no 16974fi 16975 16976echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16977echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 16978 16979 runpath_var= 16980 allow_undefined_flag_GCJ= 16981 enable_shared_with_static_runtimes_GCJ=no 16982 archive_cmds_GCJ= 16983 archive_expsym_cmds_GCJ= 16984 old_archive_From_new_cmds_GCJ= 16985 old_archive_from_expsyms_cmds_GCJ= 16986 export_dynamic_flag_spec_GCJ= 16987 whole_archive_flag_spec_GCJ= 16988 thread_safe_flag_spec_GCJ= 16989 hardcode_libdir_flag_spec_GCJ= 16990 hardcode_libdir_flag_spec_ld_GCJ= 16991 hardcode_libdir_separator_GCJ= 16992 hardcode_direct_GCJ=no 16993 hardcode_minus_L_GCJ=no 16994 hardcode_shlibpath_var_GCJ=unsupported 16995 link_all_deplibs_GCJ=unknown 16996 hardcode_automatic_GCJ=no 16997 module_cmds_GCJ= 16998 module_expsym_cmds_GCJ= 16999 always_export_symbols_GCJ=no 17000 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17001 # include_expsyms should be a list of space-separated symbols to be *always* 17002 # included in the symbol list 17003 include_expsyms_GCJ= 17004 # exclude_expsyms can be an extended regexp of symbols to exclude 17005 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17006 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17007 # as well as any symbol that contains `d'. 17008 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 17009 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17010 # platforms (ab)use it in PIC code, but their linkers get confused if 17011 # the symbol is explicitly referenced. Since portable code cannot 17012 # rely on this symbol name, it's probably fine to never include it in 17013 # preloaded symbol tables. 17014 extract_expsyms_cmds= 17015 17016 case $host_os in 17017 cygwin* | mingw* | pw32*) 17018 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17019 # When not using gcc, we currently assume that we are using 17020 # Microsoft Visual C++. 17021 if test "$GCC" != yes; then 17022 with_gnu_ld=no 17023 fi 17024 ;; 17025 openbsd*) 17026 with_gnu_ld=no 17027 ;; 17028 esac 17029 17030 ld_shlibs_GCJ=yes 17031 if test "$with_gnu_ld" = yes; then 17032 # If archive_cmds runs LD, not CC, wlarc should be empty 17033 wlarc='${wl}' 17034 17035 # See if GNU ld supports shared libraries. 17036 case $host_os in 17037 aix3* | aix4* | aix5*) 17038 # On AIX/PPC, the GNU linker is very broken 17039 if test "$host_cpu" != ia64; then 17040 ld_shlibs_GCJ=no 17041 cat <<EOF 1>&2 17042 17043*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17044*** to be unable to reliably create shared libraries on AIX. 17045*** Therefore, libtool is disabling shared libraries support. If you 17046*** really care for shared libraries, you may want to modify your PATH 17047*** so that a non-GNU linker is found, and then restart. 17048 17049EOF 17050 fi 17051 ;; 17052 17053 amigaos*) 17054 archive_cmds_GCJ='$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)' 17055 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17056 hardcode_minus_L_GCJ=yes 17057 17058 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17059 # that the semantics of dynamic libraries on AmigaOS, at least up 17060 # to version 4, is to share data among multiple programs linked 17061 # with the same dynamic library. Since this doesn't match the 17062 # behavior of shared libraries on other platforms, we can't use 17063 # them. 17064 ld_shlibs_GCJ=no 17065 ;; 17066 17067 beos*) 17068 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17069 allow_undefined_flag_GCJ=unsupported 17070 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17071 # support --undefined. This deserves some investigation. FIXME 17072 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17073 else 17074 ld_shlibs_GCJ=no 17075 fi 17076 ;; 17077 17078 cygwin* | mingw* | pw32*) 17079 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17080 # as there is no search path for DLLs. 17081 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17082 allow_undefined_flag_GCJ=unsupported 17083 always_export_symbols_GCJ=no 17084 enable_shared_with_static_runtimes_GCJ=yes 17085 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 17086 17087 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17088 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 17089 # If the export-symbols file already is a .def file (1st line 17090 # is EXPORTS), use it as is; otherwise, prepend... 17091 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17092 cp $export_symbols $output_objdir/$soname.def; 17093 else 17094 echo EXPORTS > $output_objdir/$soname.def; 17095 cat $export_symbols >> $output_objdir/$soname.def; 17096 fi~ 17097 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 17098 else 17099 ld_shlibs=no 17100 fi 17101 ;; 17102 17103 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 17104 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17105 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17106 wlarc= 17107 else 17108 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17109 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17110 fi 17111 ;; 17112 17113 solaris* | sysv5*) 17114 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17115 ld_shlibs_GCJ=no 17116 cat <<EOF 1>&2 17117 17118*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17119*** create shared libraries on Solaris systems. Therefore, libtool 17120*** is disabling shared libraries support. We urge you to upgrade GNU 17121*** binutils to release 2.9.1 or newer. Another option is to modify 17122*** your PATH or compiler configuration so that the native linker is 17123*** used, and then restart. 17124 17125EOF 17126 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17127 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17128 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17129 else 17130 ld_shlibs_GCJ=no 17131 fi 17132 ;; 17133 17134 sunos4*) 17135 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17136 wlarc= 17137 hardcode_direct_GCJ=yes 17138 hardcode_shlibpath_var_GCJ=no 17139 ;; 17140 17141 linux*) 17142 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17143 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17144 archive_cmds_GCJ="$tmp_archive_cmds" 17145 supports_anon_versioning=no 17146 case `$LD -v 2>/dev/null` in 17147 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17148 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17149 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17150 *\ 2.11.*) ;; # other 2.11 versions 17151 *) supports_anon_versioning=yes ;; 17152 esac 17153 if test $supports_anon_versioning = yes; then 17154 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17155cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17156$echo "local: *; };" >> $output_objdir/$libname.ver~ 17157 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17158 else 17159 archive_expsym_cmds_GCJ="$tmp_archive_cmds" 17160 fi 17161 link_all_deplibs_GCJ=no 17162 else 17163 ld_shlibs_GCJ=no 17164 fi 17165 ;; 17166 17167 *) 17168 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17169 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17170 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17171 else 17172 ld_shlibs_GCJ=no 17173 fi 17174 ;; 17175 esac 17176 17177 if test "$ld_shlibs_GCJ" = yes; then 17178 runpath_var=LD_RUN_PATH 17179 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17180 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17181 # ancient GNU ld didn't support --whole-archive et. al. 17182 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17183 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17184 else 17185 whole_archive_flag_spec_GCJ= 17186 fi 17187 fi 17188 else 17189 # PORTME fill in a description of your system's linker (not GNU ld) 17190 case $host_os in 17191 aix3*) 17192 allow_undefined_flag_GCJ=unsupported 17193 always_export_symbols_GCJ=yes 17194 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 17195 # Note: this linker hardcodes the directories in LIBPATH if there 17196 # are no directories specified by -L. 17197 hardcode_minus_L_GCJ=yes 17198 if test "$GCC" = yes && test -z "$link_static_flag"; then 17199 # Neither direct hardcoding nor static linking is supported with a 17200 # broken collect2. 17201 hardcode_direct_GCJ=unsupported 17202 fi 17203 ;; 17204 17205 aix4* | aix5*) 17206 if test "$host_cpu" = ia64; then 17207 # On IA64, the linker does run time linking by default, so we don't 17208 # have to do anything special. 17209 aix_use_runtimelinking=no 17210 exp_sym_flag='-Bexport' 17211 no_entry_flag="" 17212 else 17213 # If we're using GNU nm, then we don't want the "-C" option. 17214 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17215 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17216 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 17217 else 17218 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 17219 fi 17220 aix_use_runtimelinking=no 17221 17222 # Test if we are trying to use run time linking or normal 17223 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17224 # need to do runtime linking. 17225 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17226 for ld_flag in $LDFLAGS; do 17227 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17228 aix_use_runtimelinking=yes 17229 break 17230 fi 17231 done 17232 esac 17233 17234 exp_sym_flag='-bexport' 17235 no_entry_flag='-bnoentry' 17236 fi 17237 17238 # When large executables or shared objects are built, AIX ld can 17239 # have problems creating the table of contents. If linking a library 17240 # or program results in "error TOC overflow" add -mminimal-toc to 17241 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17242 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17243 17244 archive_cmds_GCJ='' 17245 hardcode_direct_GCJ=yes 17246 hardcode_libdir_separator_GCJ=':' 17247 link_all_deplibs_GCJ=yes 17248 17249 if test "$GCC" = yes; then 17250 case $host_os in aix4.012|aix4.012.*) 17251 # We only want to do this on AIX 4.2 and lower, the check 17252 # below for broken collect2 doesn't work under 4.3+ 17253 collect2name=`${CC} -print-prog-name=collect2` 17254 if test -f "$collect2name" && \ 17255 strings "$collect2name" | grep resolve_lib_name >/dev/null 17256 then 17257 # We have reworked collect2 17258 hardcode_direct_GCJ=yes 17259 else 17260 # We have old collect2 17261 hardcode_direct_GCJ=unsupported 17262 # It fails to find uninstalled libraries when the uninstalled 17263 # path is not listed in the libpath. Setting hardcode_minus_L 17264 # to unsupported forces relinking 17265 hardcode_minus_L_GCJ=yes 17266 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17267 hardcode_libdir_separator_GCJ= 17268 fi 17269 esac 17270 shared_flag='-shared' 17271 else 17272 # not using gcc 17273 if test "$host_cpu" = ia64; then 17274 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17275 # chokes on -Wl,-G. The following line is correct: 17276 shared_flag='-G' 17277 else 17278 if test "$aix_use_runtimelinking" = yes; then 17279 shared_flag='${wl}-G' 17280 else 17281 shared_flag='${wl}-bM:SRE' 17282 fi 17283 fi 17284 fi 17285 17286 # It seems that -bexpall does not export symbols beginning with 17287 # underscore (_), so it is better to generate a list of symbols to export. 17288 always_export_symbols_GCJ=yes 17289 if test "$aix_use_runtimelinking" = yes; then 17290 # Warning - without using the other runtime loading flags (-brtl), 17291 # -berok will link without error, but may produce a broken library. 17292 allow_undefined_flag_GCJ='-berok' 17293 # Determine the default libpath from the value encoded in an empty executable. 17294 cat >conftest.$ac_ext <<_ACEOF 17295/* confdefs.h. */ 17296_ACEOF 17297cat confdefs.h >>conftest.$ac_ext 17298cat >>conftest.$ac_ext <<_ACEOF 17299/* end confdefs.h. */ 17300 17301int 17302main () 17303{ 17304 17305 ; 17306 return 0; 17307} 17308_ACEOF 17309rm -f conftest.$ac_objext conftest$ac_exeext 17310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17311 (eval $ac_link) 2>conftest.er1 17312 ac_status=$? 17313 grep -v '^ *+' conftest.er1 >conftest.err 17314 rm -f conftest.er1 17315 cat conftest.err >&5 17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17317 (exit $ac_status); } && 17318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17320 (eval $ac_try) 2>&5 17321 ac_status=$? 17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17323 (exit $ac_status); }; } && 17324 { ac_try='test -s conftest$ac_exeext' 17325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17326 (eval $ac_try) 2>&5 17327 ac_status=$? 17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17329 (exit $ac_status); }; }; then 17330 17331aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17332}'` 17333# Check for a 64-bit object if we didn't find anything. 17334if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17335}'`; fi 17336else 17337 echo "$as_me: failed program was:" >&5 17338sed 's/^/| /' conftest.$ac_ext >&5 17339 17340fi 17341rm -f conftest.err conftest.$ac_objext \ 17342 conftest$ac_exeext conftest.$ac_ext 17343if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17344 17345 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17346 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 17347 else 17348 if test "$host_cpu" = ia64; then 17349 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17350 allow_undefined_flag_GCJ="-z nodefs" 17351 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 17352 else 17353 # Determine the default libpath from the value encoded in an empty executable. 17354 cat >conftest.$ac_ext <<_ACEOF 17355/* confdefs.h. */ 17356_ACEOF 17357cat confdefs.h >>conftest.$ac_ext 17358cat >>conftest.$ac_ext <<_ACEOF 17359/* end confdefs.h. */ 17360 17361int 17362main () 17363{ 17364 17365 ; 17366 return 0; 17367} 17368_ACEOF 17369rm -f conftest.$ac_objext conftest$ac_exeext 17370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17371 (eval $ac_link) 2>conftest.er1 17372 ac_status=$? 17373 grep -v '^ *+' conftest.er1 >conftest.err 17374 rm -f conftest.er1 17375 cat conftest.err >&5 17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17377 (exit $ac_status); } && 17378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17380 (eval $ac_try) 2>&5 17381 ac_status=$? 17382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17383 (exit $ac_status); }; } && 17384 { ac_try='test -s conftest$ac_exeext' 17385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17386 (eval $ac_try) 2>&5 17387 ac_status=$? 17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17389 (exit $ac_status); }; }; then 17390 17391aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17392}'` 17393# Check for a 64-bit object if we didn't find anything. 17394if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17395}'`; fi 17396else 17397 echo "$as_me: failed program was:" >&5 17398sed 's/^/| /' conftest.$ac_ext >&5 17399 17400fi 17401rm -f conftest.err conftest.$ac_objext \ 17402 conftest$ac_exeext conftest.$ac_ext 17403if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17404 17405 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17406 # Warning - without using the other run time loading flags, 17407 # -berok will link without error, but may produce a broken library. 17408 no_undefined_flag_GCJ=' ${wl}-bernotok' 17409 allow_undefined_flag_GCJ=' ${wl}-berok' 17410 # -bexpall does not export symbols beginning with underscore (_) 17411 always_export_symbols_GCJ=yes 17412 # Exported symbols can be pulled into shared objects from archives 17413 whole_archive_flag_spec_GCJ=' ' 17414 archive_cmds_need_lc_GCJ=yes 17415 # This is similar to how AIX traditionally builds it's shared libraries. 17416 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 17417 fi 17418 fi 17419 ;; 17420 17421 amigaos*) 17422 archive_cmds_GCJ='$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)' 17423 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17424 hardcode_minus_L_GCJ=yes 17425 # see comment about different semantics on the GNU ld section 17426 ld_shlibs_GCJ=no 17427 ;; 17428 17429 bsdi4*) 17430 export_dynamic_flag_spec_GCJ=-rdynamic 17431 ;; 17432 17433 cygwin* | mingw* | pw32*) 17434 # When not using gcc, we currently assume that we are using 17435 # Microsoft Visual C++. 17436 # hardcode_libdir_flag_spec is actually meaningless, as there is 17437 # no search path for DLLs. 17438 hardcode_libdir_flag_spec_GCJ=' ' 17439 allow_undefined_flag_GCJ=unsupported 17440 # Tell ltmain to make .lib files, not .a files. 17441 libext=lib 17442 # Tell ltmain to make .dll files, not .so files. 17443 shrext_cmds=".dll" 17444 # FIXME: Setting linknames here is a bad hack. 17445 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17446 # The linker will automatically build a .lib file if we build a DLL. 17447 old_archive_From_new_cmds_GCJ='true' 17448 # FIXME: Should let the user specify the lib program. 17449 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17450 fix_srcfile_path='`cygpath -w "$srcfile"`' 17451 enable_shared_with_static_runtimes_GCJ=yes 17452 ;; 17453 17454 darwin* | rhapsody*) 17455 if test "$GXX" = yes ; then 17456 archive_cmds_need_lc_GCJ=no 17457 case "$host_os" in 17458 rhapsody* | darwin1.[012]) 17459 allow_undefined_flag_GCJ='-undefined suppress' 17460 ;; 17461 *) # Darwin 1.3 on 17462 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17463 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' 17464 else 17465 case ${MACOSX_DEPLOYMENT_TARGET} in 17466 10.[012]) 17467 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' 17468 ;; 17469 10.*) 17470 allow_undefined_flag_GCJ='-undefined dynamic_lookup' 17471 ;; 17472 esac 17473 fi 17474 ;; 17475 esac 17476 lt_int_apple_cc_single_mod=no 17477 output_verbose_link_cmd='echo' 17478 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 17479 lt_int_apple_cc_single_mod=yes 17480 fi 17481 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 17482 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17483 else 17484 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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' 17485 fi 17486 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17487 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 17488 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 17489 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17490 else 17491 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17492 fi 17493 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17494 hardcode_direct_GCJ=no 17495 hardcode_automatic_GCJ=yes 17496 hardcode_shlibpath_var_GCJ=unsupported 17497 whole_archive_flag_spec_GCJ='-all_load $convenience' 17498 link_all_deplibs_GCJ=yes 17499 else 17500 ld_shlibs_GCJ=no 17501 fi 17502 ;; 17503 17504 dgux*) 17505 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17506 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17507 hardcode_shlibpath_var_GCJ=no 17508 ;; 17509 17510 freebsd1*) 17511 ld_shlibs_GCJ=no 17512 ;; 17513 17514 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17515 # support. Future versions do this automatically, but an explicit c++rt0.o 17516 # does not break anything, and helps significantly (at the cost of a little 17517 # extra space). 17518 freebsd2.2*) 17519 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17520 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17521 hardcode_direct_GCJ=yes 17522 hardcode_shlibpath_var_GCJ=no 17523 ;; 17524 17525 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17526 freebsd2*) 17527 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17528 hardcode_direct_GCJ=yes 17529 hardcode_minus_L_GCJ=yes 17530 hardcode_shlibpath_var_GCJ=no 17531 ;; 17532 17533 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17534 freebsd* | kfreebsd*-gnu) 17535 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17536 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17537 hardcode_direct_GCJ=yes 17538 hardcode_shlibpath_var_GCJ=no 17539 ;; 17540 17541 hpux9*) 17542 if test "$GCC" = yes; then 17543 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 17544 else 17545 archive_cmds_GCJ='$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' 17546 fi 17547 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17548 hardcode_libdir_separator_GCJ=: 17549 hardcode_direct_GCJ=yes 17550 17551 # hardcode_minus_L: Not really in the search PATH, 17552 # but as the default location of the library. 17553 hardcode_minus_L_GCJ=yes 17554 export_dynamic_flag_spec_GCJ='${wl}-E' 17555 ;; 17556 17557 hpux10* | hpux11*) 17558 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17559 case "$host_cpu" in 17560 hppa*64*|ia64*) 17561 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17562 ;; 17563 *) 17564 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17565 ;; 17566 esac 17567 else 17568 case "$host_cpu" in 17569 hppa*64*|ia64*) 17570 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 17571 ;; 17572 *) 17573 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17574 ;; 17575 esac 17576 fi 17577 if test "$with_gnu_ld" = no; then 17578 case "$host_cpu" in 17579 hppa*64*) 17580 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17581 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17582 hardcode_libdir_separator_GCJ=: 17583 hardcode_direct_GCJ=no 17584 hardcode_shlibpath_var_GCJ=no 17585 ;; 17586 ia64*) 17587 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17588 hardcode_direct_GCJ=no 17589 hardcode_shlibpath_var_GCJ=no 17590 17591 # hardcode_minus_L: Not really in the search PATH, 17592 # but as the default location of the library. 17593 hardcode_minus_L_GCJ=yes 17594 ;; 17595 *) 17596 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17597 hardcode_libdir_separator_GCJ=: 17598 hardcode_direct_GCJ=yes 17599 export_dynamic_flag_spec_GCJ='${wl}-E' 17600 17601 # hardcode_minus_L: Not really in the search PATH, 17602 # but as the default location of the library. 17603 hardcode_minus_L_GCJ=yes 17604 ;; 17605 esac 17606 fi 17607 ;; 17608 17609 irix5* | irix6* | nonstopux*) 17610 if test "$GCC" = yes; then 17611 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 17612 else 17613 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 17614 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17615 fi 17616 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17617 hardcode_libdir_separator_GCJ=: 17618 link_all_deplibs_GCJ=yes 17619 ;; 17620 17621 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 17622 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17623 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17624 else 17625 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17626 fi 17627 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17628 hardcode_direct_GCJ=yes 17629 hardcode_shlibpath_var_GCJ=no 17630 ;; 17631 17632 newsos6) 17633 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17634 hardcode_direct_GCJ=yes 17635 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17636 hardcode_libdir_separator_GCJ=: 17637 hardcode_shlibpath_var_GCJ=no 17638 ;; 17639 17640 openbsd*) 17641 hardcode_direct_GCJ=yes 17642 hardcode_shlibpath_var_GCJ=no 17643 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17644 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17645 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17646 export_dynamic_flag_spec_GCJ='${wl}-E' 17647 else 17648 case $host_os in 17649 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17650 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17651 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17652 ;; 17653 *) 17654 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17655 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17656 ;; 17657 esac 17658 fi 17659 ;; 17660 17661 os2*) 17662 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17663 hardcode_minus_L_GCJ=yes 17664 allow_undefined_flag_GCJ=unsupported 17665 archive_cmds_GCJ='$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' 17666 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17667 ;; 17668 17669 osf3*) 17670 if test "$GCC" = yes; then 17671 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17672 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 17673 else 17674 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17675 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 17676 fi 17677 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17678 hardcode_libdir_separator_GCJ=: 17679 ;; 17680 17681 osf4* | osf5*) # as osf3* with the addition of -msym flag 17682 if test "$GCC" = yes; then 17683 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17684 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 17685 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17686 else 17687 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17688 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 17689 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 17690 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 17691 17692 # Both c and cxx compiler support -rpath directly 17693 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17694 fi 17695 hardcode_libdir_separator_GCJ=: 17696 ;; 17697 17698 sco3.2v5*) 17699 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17700 hardcode_shlibpath_var_GCJ=no 17701 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17702 runpath_var=LD_RUN_PATH 17703 hardcode_runpath_var=yes 17704 ;; 17705 17706 solaris*) 17707 no_undefined_flag_GCJ=' -z text' 17708 if test "$GCC" = yes; then 17709 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17710 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17711 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17712 else 17713 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17714 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17715 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17716 fi 17717 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17718 hardcode_shlibpath_var_GCJ=no 17719 case $host_os in 17720 solaris2.[0-5] | solaris2.[0-5].*) ;; 17721 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 17722 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17723 esac 17724 link_all_deplibs_GCJ=yes 17725 ;; 17726 17727 sunos4*) 17728 if test "x$host_vendor" = xsequent; then 17729 # Use $CC to link under sequent, because it throws in some extra .o 17730 # files that make .init and .fini sections work. 17731 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17732 else 17733 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17734 fi 17735 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17736 hardcode_direct_GCJ=yes 17737 hardcode_minus_L_GCJ=yes 17738 hardcode_shlibpath_var_GCJ=no 17739 ;; 17740 17741 sysv4) 17742 case $host_vendor in 17743 sni) 17744 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17745 hardcode_direct_GCJ=yes # is this really true??? 17746 ;; 17747 siemens) 17748 ## LD is ld it makes a PLAMLIB 17749 ## CC just makes a GrossModule. 17750 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17751 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17752 hardcode_direct_GCJ=no 17753 ;; 17754 motorola) 17755 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17756 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17757 ;; 17758 esac 17759 runpath_var='LD_RUN_PATH' 17760 hardcode_shlibpath_var_GCJ=no 17761 ;; 17762 17763 sysv4.3*) 17764 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17765 hardcode_shlibpath_var_GCJ=no 17766 export_dynamic_flag_spec_GCJ='-Bexport' 17767 ;; 17768 17769 sysv4*MP*) 17770 if test -d /usr/nec; then 17771 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17772 hardcode_shlibpath_var_GCJ=no 17773 runpath_var=LD_RUN_PATH 17774 hardcode_runpath_var=yes 17775 ld_shlibs_GCJ=yes 17776 fi 17777 ;; 17778 17779 sysv4.2uw2*) 17780 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17781 hardcode_direct_GCJ=yes 17782 hardcode_minus_L_GCJ=no 17783 hardcode_shlibpath_var_GCJ=no 17784 hardcode_runpath_var=yes 17785 runpath_var=LD_RUN_PATH 17786 ;; 17787 17788 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 17789 no_undefined_flag_GCJ='${wl}-z ${wl}text' 17790 if test "$GCC" = yes; then 17791 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17792 else 17793 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17794 fi 17795 runpath_var='LD_RUN_PATH' 17796 hardcode_shlibpath_var_GCJ=no 17797 ;; 17798 17799 sysv5*) 17800 no_undefined_flag_GCJ=' -z text' 17801 # $CC -shared without GNU ld will not create a library from C++ 17802 # object files and a static libstdc++, better avoid it by now 17803 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17804 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17805 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17806 hardcode_libdir_flag_spec_GCJ= 17807 hardcode_shlibpath_var_GCJ=no 17808 runpath_var='LD_RUN_PATH' 17809 ;; 17810 17811 uts4*) 17812 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17813 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17814 hardcode_shlibpath_var_GCJ=no 17815 ;; 17816 17817 *) 17818 ld_shlibs_GCJ=no 17819 ;; 17820 esac 17821 fi 17822 17823echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17824echo "${ECHO_T}$ld_shlibs_GCJ" >&6 17825test "$ld_shlibs_GCJ" = no && can_build_shared=no 17826 17827variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17828if test "$GCC" = yes; then 17829 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17830fi 17831 17832# 17833# Do we need to explicitly link libc? 17834# 17835case "x$archive_cmds_need_lc_GCJ" in 17836x|xyes) 17837 # Assume -lc should be added 17838 archive_cmds_need_lc_GCJ=yes 17839 17840 if test "$enable_shared" = yes && test "$GCC" = yes; then 17841 case $archive_cmds_GCJ in 17842 *'~'*) 17843 # FIXME: we may have to deal with multi-command sequences. 17844 ;; 17845 '$CC '*) 17846 # Test whether the compiler implicitly links with -lc since on some 17847 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17848 # to ld, don't add -lc before -lgcc. 17849 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17850echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 17851 $rm conftest* 17852 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17853 17854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17855 (eval $ac_compile) 2>&5 17856 ac_status=$? 17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17858 (exit $ac_status); } 2>conftest.err; then 17859 soname=conftest 17860 lib=conftest 17861 libobjs=conftest.$ac_objext 17862 deplibs= 17863 wl=$lt_prog_compiler_wl_GCJ 17864 compiler_flags=-v 17865 linker_flags=-v 17866 verstring= 17867 output_objdir=. 17868 libname=conftest 17869 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17870 allow_undefined_flag_GCJ= 17871 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17872 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17873 ac_status=$? 17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17875 (exit $ac_status); } 17876 then 17877 archive_cmds_need_lc_GCJ=no 17878 else 17879 archive_cmds_need_lc_GCJ=yes 17880 fi 17881 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17882 else 17883 cat conftest.err 1>&5 17884 fi 17885 $rm conftest* 17886 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17887echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 17888 ;; 17889 esac 17890 fi 17891 ;; 17892esac 17893 17894echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17895echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 17896library_names_spec= 17897libname_spec='lib$name' 17898soname_spec= 17899shrext_cmds=".so" 17900postinstall_cmds= 17901postuninstall_cmds= 17902finish_cmds= 17903finish_eval= 17904shlibpath_var= 17905shlibpath_overrides_runpath=unknown 17906version_type=none 17907dynamic_linker="$host_os ld.so" 17908sys_lib_dlsearch_path_spec="/lib /usr/lib" 17909if test "$GCC" = yes; then 17910 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17911 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17912 # if the path contains ";" then we assume it to be the separator 17913 # otherwise default to the standard path separator (i.e. ":") - it is 17914 # assumed that no part of a normal pathname contains ";" but that should 17915 # okay in the real world where ";" in dirpaths is itself problematic. 17916 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17917 else 17918 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17919 fi 17920else 17921 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17922fi 17923need_lib_prefix=unknown 17924hardcode_into_libs=no 17925 17926# when you set need_version to no, make sure it does not cause -set_version 17927# flags to be left without arguments 17928need_version=unknown 17929 17930case $host_os in 17931aix3*) 17932 version_type=linux 17933 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17934 shlibpath_var=LIBPATH 17935 17936 # AIX 3 has no versioning support, so we append a major version to the name. 17937 soname_spec='${libname}${release}${shared_ext}$major' 17938 ;; 17939 17940aix4* | aix5*) 17941 version_type=linux 17942 need_lib_prefix=no 17943 need_version=no 17944 hardcode_into_libs=yes 17945 if test "$host_cpu" = ia64; then 17946 # AIX 5 supports IA64 17947 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17948 shlibpath_var=LD_LIBRARY_PATH 17949 else 17950 # With GCC up to 2.95.x, collect2 would create an import file 17951 # for dependence libraries. The import file would start with 17952 # the line `#! .'. This would cause the generated library to 17953 # depend on `.', always an invalid library. This was fixed in 17954 # development snapshots of GCC prior to 3.0. 17955 case $host_os in 17956 aix4 | aix4.[01] | aix4.[01].*) 17957 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17958 echo ' yes ' 17959 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17960 : 17961 else 17962 can_build_shared=no 17963 fi 17964 ;; 17965 esac 17966 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17967 # soname into executable. Probably we can add versioning support to 17968 # collect2, so additional links can be useful in future. 17969 if test "$aix_use_runtimelinking" = yes; then 17970 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17971 # instead of lib<name>.a to let people know that these are not 17972 # typical AIX shared libraries. 17973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17974 else 17975 # We preserve .a as extension for shared libraries through AIX4.2 17976 # and later when we are not doing run time linking. 17977 library_names_spec='${libname}${release}.a $libname.a' 17978 soname_spec='${libname}${release}${shared_ext}$major' 17979 fi 17980 shlibpath_var=LIBPATH 17981 fi 17982 ;; 17983 17984amigaos*) 17985 library_names_spec='$libname.ixlibrary $libname.a' 17986 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17987 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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' 17988 ;; 17989 17990beos*) 17991 library_names_spec='${libname}${shared_ext}' 17992 dynamic_linker="$host_os ld.so" 17993 shlibpath_var=LIBRARY_PATH 17994 ;; 17995 17996bsdi4*) 17997 version_type=linux 17998 need_version=no 17999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18000 soname_spec='${libname}${release}${shared_ext}$major' 18001 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18002 shlibpath_var=LD_LIBRARY_PATH 18003 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18004 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18005 # the default ld.so.conf also contains /usr/contrib/lib and 18006 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18007 # libtool to hard-code these into programs 18008 ;; 18009 18010cygwin* | mingw* | pw32*) 18011 version_type=windows 18012 shrext_cmds=".dll" 18013 need_version=no 18014 need_lib_prefix=no 18015 18016 case $GCC,$host_os in 18017 yes,cygwin* | yes,mingw* | yes,pw32*) 18018 library_names_spec='$libname.dll.a' 18019 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18020 postinstall_cmds='base_file=`basename \${file}`~ 18021 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18022 dldir=$destdir/`dirname \$dlpath`~ 18023 test -d \$dldir || mkdir -p \$dldir~ 18024 $install_prog $dir/$dlname \$dldir/$dlname' 18025 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18026 dlpath=$dir/\$dldll~ 18027 $rm \$dlpath' 18028 shlibpath_overrides_runpath=yes 18029 18030 case $host_os in 18031 cygwin*) 18032 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18033 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18034 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18035 ;; 18036 mingw*) 18037 # MinGW DLLs use traditional 'lib' prefix 18038 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18039 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18040 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18041 # It is most probably a Windows format PATH printed by 18042 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18043 # path with ; separators, and with drive letters. We can handle the 18044 # drive letters (cygwin fileutils understands them), so leave them, 18045 # especially as we might pass files found there to a mingw objdump, 18046 # which wouldn't understand a cygwinified path. Ahh. 18047 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18048 else 18049 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18050 fi 18051 ;; 18052 pw32*) 18053 # pw32 DLLs use 'pw' prefix rather than 'lib' 18054 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 18055 ;; 18056 esac 18057 ;; 18058 18059 *) 18060 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18061 ;; 18062 esac 18063 dynamic_linker='Win32 ld.exe' 18064 # FIXME: first we should search . and the directory the executable is in 18065 shlibpath_var=PATH 18066 ;; 18067 18068darwin* | rhapsody*) 18069 dynamic_linker="$host_os dyld" 18070 version_type=darwin 18071 need_lib_prefix=no 18072 need_version=no 18073 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18074 soname_spec='${libname}${release}${major}$shared_ext' 18075 shlibpath_overrides_runpath=yes 18076 shlibpath_var=DYLD_LIBRARY_PATH 18077 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 18078 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 18079 if test "$GCC" = yes; then 18080 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 18081 else 18082 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 18083 fi 18084 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18085 ;; 18086 18087dgux*) 18088 version_type=linux 18089 need_lib_prefix=no 18090 need_version=no 18091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18092 soname_spec='${libname}${release}${shared_ext}$major' 18093 shlibpath_var=LD_LIBRARY_PATH 18094 ;; 18095 18096freebsd1*) 18097 dynamic_linker=no 18098 ;; 18099 18100kfreebsd*-gnu) 18101 version_type=linux 18102 need_lib_prefix=no 18103 need_version=no 18104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18105 soname_spec='${libname}${release}${shared_ext}$major' 18106 shlibpath_var=LD_LIBRARY_PATH 18107 shlibpath_overrides_runpath=no 18108 hardcode_into_libs=yes 18109 dynamic_linker='GNU ld.so' 18110 ;; 18111 18112freebsd*) 18113 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 18114 version_type=freebsd-$objformat 18115 case $version_type in 18116 freebsd-elf*) 18117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18118 need_version=no 18119 need_lib_prefix=no 18120 ;; 18121 freebsd-*) 18122 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18123 need_version=yes 18124 ;; 18125 esac 18126 shlibpath_var=LD_LIBRARY_PATH 18127 case $host_os in 18128 freebsd2*) 18129 shlibpath_overrides_runpath=yes 18130 ;; 18131 freebsd3.01* | freebsdelf3.01*) 18132 shlibpath_overrides_runpath=yes 18133 hardcode_into_libs=yes 18134 ;; 18135 *) # from 3.2 on 18136 shlibpath_overrides_runpath=no 18137 hardcode_into_libs=yes 18138 ;; 18139 esac 18140 ;; 18141 18142gnu*) 18143 version_type=linux 18144 need_lib_prefix=no 18145 need_version=no 18146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18147 soname_spec='${libname}${release}${shared_ext}$major' 18148 shlibpath_var=LD_LIBRARY_PATH 18149 hardcode_into_libs=yes 18150 ;; 18151 18152hpux9* | hpux10* | hpux11*) 18153 # Give a soname corresponding to the major version so that dld.sl refuses to 18154 # link against other versions. 18155 version_type=sunos 18156 need_lib_prefix=no 18157 need_version=no 18158 case "$host_cpu" in 18159 ia64*) 18160 shrext_cmds='.so' 18161 hardcode_into_libs=yes 18162 dynamic_linker="$host_os dld.so" 18163 shlibpath_var=LD_LIBRARY_PATH 18164 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18166 soname_spec='${libname}${release}${shared_ext}$major' 18167 if test "X$HPUX_IA64_MODE" = X32; then 18168 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18169 else 18170 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18171 fi 18172 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18173 ;; 18174 hppa*64*) 18175 shrext_cmds='.sl' 18176 hardcode_into_libs=yes 18177 dynamic_linker="$host_os dld.sl" 18178 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18179 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18181 soname_spec='${libname}${release}${shared_ext}$major' 18182 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18183 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18184 ;; 18185 *) 18186 shrext_cmds='.sl' 18187 dynamic_linker="$host_os dld.sl" 18188 shlibpath_var=SHLIB_PATH 18189 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18191 soname_spec='${libname}${release}${shared_ext}$major' 18192 ;; 18193 esac 18194 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18195 postinstall_cmds='chmod 555 $lib' 18196 ;; 18197 18198irix5* | irix6* | nonstopux*) 18199 case $host_os in 18200 nonstopux*) version_type=nonstopux ;; 18201 *) 18202 if test "$lt_cv_prog_gnu_ld" = yes; then 18203 version_type=linux 18204 else 18205 version_type=irix 18206 fi ;; 18207 esac 18208 need_lib_prefix=no 18209 need_version=no 18210 soname_spec='${libname}${release}${shared_ext}$major' 18211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18212 case $host_os in 18213 irix5* | nonstopux*) 18214 libsuff= shlibsuff= 18215 ;; 18216 *) 18217 case $LD in # libtool.m4 will add one of these switches to LD 18218 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18219 libsuff= shlibsuff= libmagic=32-bit;; 18220 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18221 libsuff=32 shlibsuff=N32 libmagic=N32;; 18222 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18223 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18224 *) libsuff= shlibsuff= libmagic=never-match;; 18225 esac 18226 ;; 18227 esac 18228 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18229 shlibpath_overrides_runpath=no 18230 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18231 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18232 hardcode_into_libs=yes 18233 ;; 18234 18235# No shared lib support for Linux oldld, aout, or coff. 18236linux*oldld* | linux*aout* | linux*coff*) 18237 dynamic_linker=no 18238 ;; 18239 18240# This must be Linux ELF. 18241linux*) 18242 version_type=linux 18243 need_lib_prefix=no 18244 need_version=no 18245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18246 soname_spec='${libname}${release}${shared_ext}$major' 18247 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18248 shlibpath_var=LD_LIBRARY_PATH 18249 shlibpath_overrides_runpath=no 18250 # This implies no fast_install, which is unacceptable. 18251 # Some rework will be needed to allow for fast_install 18252 # before this can be enabled. 18253 hardcode_into_libs=yes 18254 18255 # Append ld.so.conf contents to the search path 18256 if test -f /etc/ld.so.conf; then 18257 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 18258 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18259 fi 18260 18261 # We used to test for /lib/ld.so.1 and disable shared libraries on 18262 # powerpc, because MkLinux only supported shared libraries with the 18263 # GNU dynamic linker. Since this was broken with cross compilers, 18264 # most powerpc-linux boxes support dynamic linking these days and 18265 # people can always --disable-shared, the test was removed, and we 18266 # assume the GNU/Linux dynamic linker is in use. 18267 dynamic_linker='GNU/Linux ld.so' 18268 ;; 18269 18270netbsdelf*-gnu) 18271 version_type=linux 18272 need_lib_prefix=no 18273 need_version=no 18274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18275 soname_spec='${libname}${release}${shared_ext}$major' 18276 shlibpath_var=LD_LIBRARY_PATH 18277 shlibpath_overrides_runpath=no 18278 hardcode_into_libs=yes 18279 dynamic_linker='NetBSD ld.elf_so' 18280 ;; 18281 18282knetbsd*-gnu) 18283 version_type=linux 18284 need_lib_prefix=no 18285 need_version=no 18286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18287 soname_spec='${libname}${release}${shared_ext}$major' 18288 shlibpath_var=LD_LIBRARY_PATH 18289 shlibpath_overrides_runpath=no 18290 hardcode_into_libs=yes 18291 dynamic_linker='GNU ld.so' 18292 ;; 18293 18294netbsd*) 18295 version_type=sunos 18296 need_lib_prefix=no 18297 need_version=no 18298 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18300 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18301 dynamic_linker='NetBSD (a.out) ld.so' 18302 else 18303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18304 soname_spec='${libname}${release}${shared_ext}$major' 18305 dynamic_linker='NetBSD ld.elf_so' 18306 fi 18307 shlibpath_var=LD_LIBRARY_PATH 18308 shlibpath_overrides_runpath=yes 18309 hardcode_into_libs=yes 18310 ;; 18311 18312newsos6) 18313 version_type=linux 18314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18315 shlibpath_var=LD_LIBRARY_PATH 18316 shlibpath_overrides_runpath=yes 18317 ;; 18318 18319nto-qnx*) 18320 version_type=linux 18321 need_lib_prefix=no 18322 need_version=no 18323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18324 soname_spec='${libname}${release}${shared_ext}$major' 18325 shlibpath_var=LD_LIBRARY_PATH 18326 shlibpath_overrides_runpath=yes 18327 ;; 18328 18329openbsd*) 18330 version_type=sunos 18331 need_lib_prefix=no 18332 need_version=yes 18333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18334 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18335 shlibpath_var=LD_LIBRARY_PATH 18336 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18337 case $host_os in 18338 openbsd2.[89] | openbsd2.[89].*) 18339 shlibpath_overrides_runpath=no 18340 ;; 18341 *) 18342 shlibpath_overrides_runpath=yes 18343 ;; 18344 esac 18345 else 18346 shlibpath_overrides_runpath=yes 18347 fi 18348 ;; 18349 18350os2*) 18351 libname_spec='$name' 18352 shrext_cmds=".dll" 18353 need_lib_prefix=no 18354 library_names_spec='$libname${shared_ext} $libname.a' 18355 dynamic_linker='OS/2 ld.exe' 18356 shlibpath_var=LIBPATH 18357 ;; 18358 18359osf3* | osf4* | osf5*) 18360 version_type=osf 18361 need_lib_prefix=no 18362 need_version=no 18363 soname_spec='${libname}${release}${shared_ext}$major' 18364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18365 shlibpath_var=LD_LIBRARY_PATH 18366 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18367 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18368 ;; 18369 18370sco3.2v5*) 18371 version_type=osf 18372 soname_spec='${libname}${release}${shared_ext}$major' 18373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18374 shlibpath_var=LD_LIBRARY_PATH 18375 ;; 18376 18377solaris*) 18378 version_type=linux 18379 need_lib_prefix=no 18380 need_version=no 18381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18382 soname_spec='${libname}${release}${shared_ext}$major' 18383 shlibpath_var=LD_LIBRARY_PATH 18384 shlibpath_overrides_runpath=yes 18385 hardcode_into_libs=yes 18386 # ldd complains unless libraries are executable 18387 postinstall_cmds='chmod +x $lib' 18388 ;; 18389 18390sunos4*) 18391 version_type=sunos 18392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18393 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18394 shlibpath_var=LD_LIBRARY_PATH 18395 shlibpath_overrides_runpath=yes 18396 if test "$with_gnu_ld" = yes; then 18397 need_lib_prefix=no 18398 fi 18399 need_version=yes 18400 ;; 18401 18402sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 18403 version_type=linux 18404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18405 soname_spec='${libname}${release}${shared_ext}$major' 18406 shlibpath_var=LD_LIBRARY_PATH 18407 case $host_vendor in 18408 sni) 18409 shlibpath_overrides_runpath=no 18410 need_lib_prefix=no 18411 export_dynamic_flag_spec='${wl}-Blargedynsym' 18412 runpath_var=LD_RUN_PATH 18413 ;; 18414 siemens) 18415 need_lib_prefix=no 18416 ;; 18417 motorola) 18418 need_lib_prefix=no 18419 need_version=no 18420 shlibpath_overrides_runpath=no 18421 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18422 ;; 18423 esac 18424 ;; 18425 18426sysv4*MP*) 18427 if test -d /usr/nec ;then 18428 version_type=linux 18429 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18430 soname_spec='$libname${shared_ext}.$major' 18431 shlibpath_var=LD_LIBRARY_PATH 18432 fi 18433 ;; 18434 18435uts4*) 18436 version_type=linux 18437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18438 soname_spec='${libname}${release}${shared_ext}$major' 18439 shlibpath_var=LD_LIBRARY_PATH 18440 ;; 18441 18442*) 18443 dynamic_linker=no 18444 ;; 18445esac 18446echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18447echo "${ECHO_T}$dynamic_linker" >&6 18448test "$dynamic_linker" = no && can_build_shared=no 18449 18450echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18451echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 18452hardcode_action_GCJ= 18453if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18454 test -n "$runpath_var GCJ" || \ 18455 test "X$hardcode_automatic_GCJ"="Xyes" ; then 18456 18457 # We can hardcode non-existant directories. 18458 if test "$hardcode_direct_GCJ" != no && 18459 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18460 # have to relink, otherwise we might link with an installed library 18461 # when we should be linking with a yet-to-be-installed one 18462 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18463 test "$hardcode_minus_L_GCJ" != no; then 18464 # Linking always hardcodes the temporary library directory. 18465 hardcode_action_GCJ=relink 18466 else 18467 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18468 hardcode_action_GCJ=immediate 18469 fi 18470else 18471 # We cannot hardcode anything, or else we can only hardcode existing 18472 # directories. 18473 hardcode_action_GCJ=unsupported 18474fi 18475echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18476echo "${ECHO_T}$hardcode_action_GCJ" >&6 18477 18478if test "$hardcode_action_GCJ" = relink; then 18479 # Fast installation is not supported 18480 enable_fast_install=no 18481elif test "$shlibpath_overrides_runpath" = yes || 18482 test "$enable_shared" = no; then 18483 # Fast installation is not necessary 18484 enable_fast_install=needless 18485fi 18486 18487striplib= 18488old_striplib= 18489echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 18490echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 18491if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 18492 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 18493 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 18494 echo "$as_me:$LINENO: result: yes" >&5 18495echo "${ECHO_T}yes" >&6 18496else 18497# FIXME - insert some real tests, host_os isn't really good enough 18498 case $host_os in 18499 darwin*) 18500 if test -n "$STRIP" ; then 18501 striplib="$STRIP -x" 18502 echo "$as_me:$LINENO: result: yes" >&5 18503echo "${ECHO_T}yes" >&6 18504 else 18505 echo "$as_me:$LINENO: result: no" >&5 18506echo "${ECHO_T}no" >&6 18507fi 18508 ;; 18509 *) 18510 echo "$as_me:$LINENO: result: no" >&5 18511echo "${ECHO_T}no" >&6 18512 ;; 18513 esac 18514fi 18515 18516if test "x$enable_dlopen" != xyes; then 18517 enable_dlopen=unknown 18518 enable_dlopen_self=unknown 18519 enable_dlopen_self_static=unknown 18520else 18521 lt_cv_dlopen=no 18522 lt_cv_dlopen_libs= 18523 18524 case $host_os in 18525 beos*) 18526 lt_cv_dlopen="load_add_on" 18527 lt_cv_dlopen_libs= 18528 lt_cv_dlopen_self=yes 18529 ;; 18530 18531 mingw* | pw32*) 18532 lt_cv_dlopen="LoadLibrary" 18533 lt_cv_dlopen_libs= 18534 ;; 18535 18536 cygwin*) 18537 lt_cv_dlopen="dlopen" 18538 lt_cv_dlopen_libs= 18539 ;; 18540 18541 darwin*) 18542 # if libdl is installed we need to link against it 18543 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 18544echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 18545if test "${ac_cv_lib_dl_dlopen+set}" = set; then 18546 echo $ECHO_N "(cached) $ECHO_C" >&6 18547else 18548 ac_check_lib_save_LIBS=$LIBS 18549LIBS="-ldl $LIBS" 18550cat >conftest.$ac_ext <<_ACEOF 18551/* confdefs.h. */ 18552_ACEOF 18553cat confdefs.h >>conftest.$ac_ext 18554cat >>conftest.$ac_ext <<_ACEOF 18555/* end confdefs.h. */ 18556 18557/* Override any gcc2 internal prototype to avoid an error. */ 18558#ifdef __cplusplus 18559extern "C" 18560#endif 18561/* We use char because int might match the return type of a gcc2 18562 builtin and then its argument prototype would still apply. */ 18563char dlopen (); 18564int 18565main () 18566{ 18567dlopen (); 18568 ; 18569 return 0; 18570} 18571_ACEOF 18572rm -f conftest.$ac_objext conftest$ac_exeext 18573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18574 (eval $ac_link) 2>conftest.er1 18575 ac_status=$? 18576 grep -v '^ *+' conftest.er1 >conftest.err 18577 rm -f conftest.er1 18578 cat conftest.err >&5 18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18580 (exit $ac_status); } && 18581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18583 (eval $ac_try) 2>&5 18584 ac_status=$? 18585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18586 (exit $ac_status); }; } && 18587 { ac_try='test -s conftest$ac_exeext' 18588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18589 (eval $ac_try) 2>&5 18590 ac_status=$? 18591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18592 (exit $ac_status); }; }; then 18593 ac_cv_lib_dl_dlopen=yes 18594else 18595 echo "$as_me: failed program was:" >&5 18596sed 's/^/| /' conftest.$ac_ext >&5 18597 18598ac_cv_lib_dl_dlopen=no 18599fi 18600rm -f conftest.err conftest.$ac_objext \ 18601 conftest$ac_exeext conftest.$ac_ext 18602LIBS=$ac_check_lib_save_LIBS 18603fi 18604echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 18605echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 18606if test $ac_cv_lib_dl_dlopen = yes; then 18607 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 18608else 18609 18610 lt_cv_dlopen="dyld" 18611 lt_cv_dlopen_libs= 18612 lt_cv_dlopen_self=yes 18613 18614fi 18615 18616 ;; 18617 18618 *) 18619 echo "$as_me:$LINENO: checking for shl_load" >&5 18620echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 18621if test "${ac_cv_func_shl_load+set}" = set; then 18622 echo $ECHO_N "(cached) $ECHO_C" >&6 18623else 18624 cat >conftest.$ac_ext <<_ACEOF 18625/* confdefs.h. */ 18626_ACEOF 18627cat confdefs.h >>conftest.$ac_ext 18628cat >>conftest.$ac_ext <<_ACEOF 18629/* end confdefs.h. */ 18630/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 18631 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18632#define shl_load innocuous_shl_load 18633 18634/* System header to define __stub macros and hopefully few prototypes, 18635 which can conflict with char shl_load (); below. 18636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18637 <limits.h> exists even on freestanding compilers. */ 18638 18639#ifdef __STDC__ 18640# include <limits.h> 18641#else 18642# include <assert.h> 18643#endif 18644 18645#undef shl_load 18646 18647/* Override any gcc2 internal prototype to avoid an error. */ 18648#ifdef __cplusplus 18649extern "C" 18650{ 18651#endif 18652/* We use char because int might match the return type of a gcc2 18653 builtin and then its argument prototype would still apply. */ 18654char shl_load (); 18655/* The GNU C library defines this for functions which it implements 18656 to always fail with ENOSYS. Some functions are actually named 18657 something starting with __ and the normal name is an alias. */ 18658#if defined (__stub_shl_load) || defined (__stub___shl_load) 18659choke me 18660#else 18661char (*f) () = shl_load; 18662#endif 18663#ifdef __cplusplus 18664} 18665#endif 18666 18667int 18668main () 18669{ 18670return f != shl_load; 18671 ; 18672 return 0; 18673} 18674_ACEOF 18675rm -f conftest.$ac_objext conftest$ac_exeext 18676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18677 (eval $ac_link) 2>conftest.er1 18678 ac_status=$? 18679 grep -v '^ *+' conftest.er1 >conftest.err 18680 rm -f conftest.er1 18681 cat conftest.err >&5 18682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18683 (exit $ac_status); } && 18684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18686 (eval $ac_try) 2>&5 18687 ac_status=$? 18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18689 (exit $ac_status); }; } && 18690 { ac_try='test -s conftest$ac_exeext' 18691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18692 (eval $ac_try) 2>&5 18693 ac_status=$? 18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18695 (exit $ac_status); }; }; then 18696 ac_cv_func_shl_load=yes 18697else 18698 echo "$as_me: failed program was:" >&5 18699sed 's/^/| /' conftest.$ac_ext >&5 18700 18701ac_cv_func_shl_load=no 18702fi 18703rm -f conftest.err conftest.$ac_objext \ 18704 conftest$ac_exeext conftest.$ac_ext 18705fi 18706echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 18707echo "${ECHO_T}$ac_cv_func_shl_load" >&6 18708if test $ac_cv_func_shl_load = yes; then 18709 lt_cv_dlopen="shl_load" 18710else 18711 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 18712echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 18713if test "${ac_cv_lib_dld_shl_load+set}" = set; then 18714 echo $ECHO_N "(cached) $ECHO_C" >&6 18715else 18716 ac_check_lib_save_LIBS=$LIBS 18717LIBS="-ldld $LIBS" 18718cat >conftest.$ac_ext <<_ACEOF 18719/* confdefs.h. */ 18720_ACEOF 18721cat confdefs.h >>conftest.$ac_ext 18722cat >>conftest.$ac_ext <<_ACEOF 18723/* end confdefs.h. */ 18724 18725/* Override any gcc2 internal prototype to avoid an error. */ 18726#ifdef __cplusplus 18727extern "C" 18728#endif 18729/* We use char because int might match the return type of a gcc2 18730 builtin and then its argument prototype would still apply. */ 18731char shl_load (); 18732int 18733main () 18734{ 18735shl_load (); 18736 ; 18737 return 0; 18738} 18739_ACEOF 18740rm -f conftest.$ac_objext conftest$ac_exeext 18741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18742 (eval $ac_link) 2>conftest.er1 18743 ac_status=$? 18744 grep -v '^ *+' conftest.er1 >conftest.err 18745 rm -f conftest.er1 18746 cat conftest.err >&5 18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18748 (exit $ac_status); } && 18749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18751 (eval $ac_try) 2>&5 18752 ac_status=$? 18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18754 (exit $ac_status); }; } && 18755 { ac_try='test -s conftest$ac_exeext' 18756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18757 (eval $ac_try) 2>&5 18758 ac_status=$? 18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18760 (exit $ac_status); }; }; then 18761 ac_cv_lib_dld_shl_load=yes 18762else 18763 echo "$as_me: failed program was:" >&5 18764sed 's/^/| /' conftest.$ac_ext >&5 18765 18766ac_cv_lib_dld_shl_load=no 18767fi 18768rm -f conftest.err conftest.$ac_objext \ 18769 conftest$ac_exeext conftest.$ac_ext 18770LIBS=$ac_check_lib_save_LIBS 18771fi 18772echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 18773echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 18774if test $ac_cv_lib_dld_shl_load = yes; then 18775 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 18776else 18777 echo "$as_me:$LINENO: checking for dlopen" >&5 18778echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 18779if test "${ac_cv_func_dlopen+set}" = set; then 18780 echo $ECHO_N "(cached) $ECHO_C" >&6 18781else 18782 cat >conftest.$ac_ext <<_ACEOF 18783/* confdefs.h. */ 18784_ACEOF 18785cat confdefs.h >>conftest.$ac_ext 18786cat >>conftest.$ac_ext <<_ACEOF 18787/* end confdefs.h. */ 18788/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 18789 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18790#define dlopen innocuous_dlopen 18791 18792/* System header to define __stub macros and hopefully few prototypes, 18793 which can conflict with char dlopen (); below. 18794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18795 <limits.h> exists even on freestanding compilers. */ 18796 18797#ifdef __STDC__ 18798# include <limits.h> 18799#else 18800# include <assert.h> 18801#endif 18802 18803#undef dlopen 18804 18805/* Override any gcc2 internal prototype to avoid an error. */ 18806#ifdef __cplusplus 18807extern "C" 18808{ 18809#endif 18810/* We use char because int might match the return type of a gcc2 18811 builtin and then its argument prototype would still apply. */ 18812char dlopen (); 18813/* The GNU C library defines this for functions which it implements 18814 to always fail with ENOSYS. Some functions are actually named 18815 something starting with __ and the normal name is an alias. */ 18816#if defined (__stub_dlopen) || defined (__stub___dlopen) 18817choke me 18818#else 18819char (*f) () = dlopen; 18820#endif 18821#ifdef __cplusplus 18822} 18823#endif 18824 18825int 18826main () 18827{ 18828return f != dlopen; 18829 ; 18830 return 0; 18831} 18832_ACEOF 18833rm -f conftest.$ac_objext conftest$ac_exeext 18834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18835 (eval $ac_link) 2>conftest.er1 18836 ac_status=$? 18837 grep -v '^ *+' conftest.er1 >conftest.err 18838 rm -f conftest.er1 18839 cat conftest.err >&5 18840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18841 (exit $ac_status); } && 18842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18844 (eval $ac_try) 2>&5 18845 ac_status=$? 18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18847 (exit $ac_status); }; } && 18848 { ac_try='test -s conftest$ac_exeext' 18849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18850 (eval $ac_try) 2>&5 18851 ac_status=$? 18852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18853 (exit $ac_status); }; }; then 18854 ac_cv_func_dlopen=yes 18855else 18856 echo "$as_me: failed program was:" >&5 18857sed 's/^/| /' conftest.$ac_ext >&5 18858 18859ac_cv_func_dlopen=no 18860fi 18861rm -f conftest.err conftest.$ac_objext \ 18862 conftest$ac_exeext conftest.$ac_ext 18863fi 18864echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 18865echo "${ECHO_T}$ac_cv_func_dlopen" >&6 18866if test $ac_cv_func_dlopen = yes; then 18867 lt_cv_dlopen="dlopen" 18868else 18869 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 18870echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 18871if test "${ac_cv_lib_dl_dlopen+set}" = set; then 18872 echo $ECHO_N "(cached) $ECHO_C" >&6 18873else 18874 ac_check_lib_save_LIBS=$LIBS 18875LIBS="-ldl $LIBS" 18876cat >conftest.$ac_ext <<_ACEOF 18877/* confdefs.h. */ 18878_ACEOF 18879cat confdefs.h >>conftest.$ac_ext 18880cat >>conftest.$ac_ext <<_ACEOF 18881/* end confdefs.h. */ 18882 18883/* Override any gcc2 internal prototype to avoid an error. */ 18884#ifdef __cplusplus 18885extern "C" 18886#endif 18887/* We use char because int might match the return type of a gcc2 18888 builtin and then its argument prototype would still apply. */ 18889char dlopen (); 18890int 18891main () 18892{ 18893dlopen (); 18894 ; 18895 return 0; 18896} 18897_ACEOF 18898rm -f conftest.$ac_objext conftest$ac_exeext 18899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18900 (eval $ac_link) 2>conftest.er1 18901 ac_status=$? 18902 grep -v '^ *+' conftest.er1 >conftest.err 18903 rm -f conftest.er1 18904 cat conftest.err >&5 18905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18906 (exit $ac_status); } && 18907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18909 (eval $ac_try) 2>&5 18910 ac_status=$? 18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18912 (exit $ac_status); }; } && 18913 { ac_try='test -s conftest$ac_exeext' 18914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18915 (eval $ac_try) 2>&5 18916 ac_status=$? 18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18918 (exit $ac_status); }; }; then 18919 ac_cv_lib_dl_dlopen=yes 18920else 18921 echo "$as_me: failed program was:" >&5 18922sed 's/^/| /' conftest.$ac_ext >&5 18923 18924ac_cv_lib_dl_dlopen=no 18925fi 18926rm -f conftest.err conftest.$ac_objext \ 18927 conftest$ac_exeext conftest.$ac_ext 18928LIBS=$ac_check_lib_save_LIBS 18929fi 18930echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 18931echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 18932if test $ac_cv_lib_dl_dlopen = yes; then 18933 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 18934else 18935 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 18936echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 18937if test "${ac_cv_lib_svld_dlopen+set}" = set; then 18938 echo $ECHO_N "(cached) $ECHO_C" >&6 18939else 18940 ac_check_lib_save_LIBS=$LIBS 18941LIBS="-lsvld $LIBS" 18942cat >conftest.$ac_ext <<_ACEOF 18943/* confdefs.h. */ 18944_ACEOF 18945cat confdefs.h >>conftest.$ac_ext 18946cat >>conftest.$ac_ext <<_ACEOF 18947/* end confdefs.h. */ 18948 18949/* Override any gcc2 internal prototype to avoid an error. */ 18950#ifdef __cplusplus 18951extern "C" 18952#endif 18953/* We use char because int might match the return type of a gcc2 18954 builtin and then its argument prototype would still apply. */ 18955char dlopen (); 18956int 18957main () 18958{ 18959dlopen (); 18960 ; 18961 return 0; 18962} 18963_ACEOF 18964rm -f conftest.$ac_objext conftest$ac_exeext 18965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18966 (eval $ac_link) 2>conftest.er1 18967 ac_status=$? 18968 grep -v '^ *+' conftest.er1 >conftest.err 18969 rm -f conftest.er1 18970 cat conftest.err >&5 18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18972 (exit $ac_status); } && 18973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18975 (eval $ac_try) 2>&5 18976 ac_status=$? 18977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18978 (exit $ac_status); }; } && 18979 { ac_try='test -s conftest$ac_exeext' 18980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18981 (eval $ac_try) 2>&5 18982 ac_status=$? 18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18984 (exit $ac_status); }; }; then 18985 ac_cv_lib_svld_dlopen=yes 18986else 18987 echo "$as_me: failed program was:" >&5 18988sed 's/^/| /' conftest.$ac_ext >&5 18989 18990ac_cv_lib_svld_dlopen=no 18991fi 18992rm -f conftest.err conftest.$ac_objext \ 18993 conftest$ac_exeext conftest.$ac_ext 18994LIBS=$ac_check_lib_save_LIBS 18995fi 18996echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 18997echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 18998if test $ac_cv_lib_svld_dlopen = yes; then 18999 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 19000else 19001 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 19002echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 19003if test "${ac_cv_lib_dld_dld_link+set}" = set; then 19004 echo $ECHO_N "(cached) $ECHO_C" >&6 19005else 19006 ac_check_lib_save_LIBS=$LIBS 19007LIBS="-ldld $LIBS" 19008cat >conftest.$ac_ext <<_ACEOF 19009/* confdefs.h. */ 19010_ACEOF 19011cat confdefs.h >>conftest.$ac_ext 19012cat >>conftest.$ac_ext <<_ACEOF 19013/* end confdefs.h. */ 19014 19015/* Override any gcc2 internal prototype to avoid an error. */ 19016#ifdef __cplusplus 19017extern "C" 19018#endif 19019/* We use char because int might match the return type of a gcc2 19020 builtin and then its argument prototype would still apply. */ 19021char dld_link (); 19022int 19023main () 19024{ 19025dld_link (); 19026 ; 19027 return 0; 19028} 19029_ACEOF 19030rm -f conftest.$ac_objext conftest$ac_exeext 19031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19032 (eval $ac_link) 2>conftest.er1 19033 ac_status=$? 19034 grep -v '^ *+' conftest.er1 >conftest.err 19035 rm -f conftest.er1 19036 cat conftest.err >&5 19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19038 (exit $ac_status); } && 19039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19041 (eval $ac_try) 2>&5 19042 ac_status=$? 19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19044 (exit $ac_status); }; } && 19045 { ac_try='test -s conftest$ac_exeext' 19046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19047 (eval $ac_try) 2>&5 19048 ac_status=$? 19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19050 (exit $ac_status); }; }; then 19051 ac_cv_lib_dld_dld_link=yes 19052else 19053 echo "$as_me: failed program was:" >&5 19054sed 's/^/| /' conftest.$ac_ext >&5 19055 19056ac_cv_lib_dld_dld_link=no 19057fi 19058rm -f conftest.err conftest.$ac_objext \ 19059 conftest$ac_exeext conftest.$ac_ext 19060LIBS=$ac_check_lib_save_LIBS 19061fi 19062echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 19063echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 19064if test $ac_cv_lib_dld_dld_link = yes; then 19065 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 19066fi 19067 19068 19069fi 19070 19071 19072fi 19073 19074 19075fi 19076 19077 19078fi 19079 19080 19081fi 19082 19083 ;; 19084 esac 19085 19086 if test "x$lt_cv_dlopen" != xno; then 19087 enable_dlopen=yes 19088 else 19089 enable_dlopen=no 19090 fi 19091 19092 case $lt_cv_dlopen in 19093 dlopen) 19094 save_CPPFLAGS="$CPPFLAGS" 19095 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 19096 19097 save_LDFLAGS="$LDFLAGS" 19098 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 19099 19100 save_LIBS="$LIBS" 19101 LIBS="$lt_cv_dlopen_libs $LIBS" 19102 19103 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 19104echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 19105if test "${lt_cv_dlopen_self+set}" = set; then 19106 echo $ECHO_N "(cached) $ECHO_C" >&6 19107else 19108 if test "$cross_compiling" = yes; then : 19109 lt_cv_dlopen_self=cross 19110else 19111 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19112 lt_status=$lt_dlunknown 19113 cat > conftest.$ac_ext <<EOF 19114#line 19114 "configure" 19115#include "confdefs.h" 19116 19117#if HAVE_DLFCN_H 19118#include <dlfcn.h> 19119#endif 19120 19121#include <stdio.h> 19122 19123#ifdef RTLD_GLOBAL 19124# define LT_DLGLOBAL RTLD_GLOBAL 19125#else 19126# ifdef DL_GLOBAL 19127# define LT_DLGLOBAL DL_GLOBAL 19128# else 19129# define LT_DLGLOBAL 0 19130# endif 19131#endif 19132 19133/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19134 find out it does not work in some platform. */ 19135#ifndef LT_DLLAZY_OR_NOW 19136# ifdef RTLD_LAZY 19137# define LT_DLLAZY_OR_NOW RTLD_LAZY 19138# else 19139# ifdef DL_LAZY 19140# define LT_DLLAZY_OR_NOW DL_LAZY 19141# else 19142# ifdef RTLD_NOW 19143# define LT_DLLAZY_OR_NOW RTLD_NOW 19144# else 19145# ifdef DL_NOW 19146# define LT_DLLAZY_OR_NOW DL_NOW 19147# else 19148# define LT_DLLAZY_OR_NOW 0 19149# endif 19150# endif 19151# endif 19152# endif 19153#endif 19154 19155#ifdef __cplusplus 19156extern "C" void exit (int); 19157#endif 19158 19159void fnord() { int i=42;} 19160int main () 19161{ 19162 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19163 int status = $lt_dlunknown; 19164 19165 if (self) 19166 { 19167 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19168 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19169 /* dlclose (self); */ 19170 } 19171 19172 exit (status); 19173} 19174EOF 19175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19176 (eval $ac_link) 2>&5 19177 ac_status=$? 19178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19179 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 19180 (./conftest; exit; ) 2>/dev/null 19181 lt_status=$? 19182 case x$lt_status in 19183 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 19184 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 19185 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 19186 esac 19187 else : 19188 # compilation failed 19189 lt_cv_dlopen_self=no 19190 fi 19191fi 19192rm -fr conftest* 19193 19194 19195fi 19196echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 19197echo "${ECHO_T}$lt_cv_dlopen_self" >&6 19198 19199 if test "x$lt_cv_dlopen_self" = xyes; then 19200 LDFLAGS="$LDFLAGS $link_static_flag" 19201 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 19202echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 19203if test "${lt_cv_dlopen_self_static+set}" = set; then 19204 echo $ECHO_N "(cached) $ECHO_C" >&6 19205else 19206 if test "$cross_compiling" = yes; then : 19207 lt_cv_dlopen_self_static=cross 19208else 19209 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19210 lt_status=$lt_dlunknown 19211 cat > conftest.$ac_ext <<EOF 19212#line 19212 "configure" 19213#include "confdefs.h" 19214 19215#if HAVE_DLFCN_H 19216#include <dlfcn.h> 19217#endif 19218 19219#include <stdio.h> 19220 19221#ifdef RTLD_GLOBAL 19222# define LT_DLGLOBAL RTLD_GLOBAL 19223#else 19224# ifdef DL_GLOBAL 19225# define LT_DLGLOBAL DL_GLOBAL 19226# else 19227# define LT_DLGLOBAL 0 19228# endif 19229#endif 19230 19231/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19232 find out it does not work in some platform. */ 19233#ifndef LT_DLLAZY_OR_NOW 19234# ifdef RTLD_LAZY 19235# define LT_DLLAZY_OR_NOW RTLD_LAZY 19236# else 19237# ifdef DL_LAZY 19238# define LT_DLLAZY_OR_NOW DL_LAZY 19239# else 19240# ifdef RTLD_NOW 19241# define LT_DLLAZY_OR_NOW RTLD_NOW 19242# else 19243# ifdef DL_NOW 19244# define LT_DLLAZY_OR_NOW DL_NOW 19245# else 19246# define LT_DLLAZY_OR_NOW 0 19247# endif 19248# endif 19249# endif 19250# endif 19251#endif 19252 19253#ifdef __cplusplus 19254extern "C" void exit (int); 19255#endif 19256 19257void fnord() { int i=42;} 19258int main () 19259{ 19260 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19261 int status = $lt_dlunknown; 19262 19263 if (self) 19264 { 19265 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19266 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19267 /* dlclose (self); */ 19268 } 19269 19270 exit (status); 19271} 19272EOF 19273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19274 (eval $ac_link) 2>&5 19275 ac_status=$? 19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19277 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 19278 (./conftest; exit; ) 2>/dev/null 19279 lt_status=$? 19280 case x$lt_status in 19281 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 19282 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 19283 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 19284 esac 19285 else : 19286 # compilation failed 19287 lt_cv_dlopen_self_static=no 19288 fi 19289fi 19290rm -fr conftest* 19291 19292 19293fi 19294echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 19295echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 19296 fi 19297 19298 CPPFLAGS="$save_CPPFLAGS" 19299 LDFLAGS="$save_LDFLAGS" 19300 LIBS="$save_LIBS" 19301 ;; 19302 esac 19303 19304 case $lt_cv_dlopen_self in 19305 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 19306 *) enable_dlopen_self=unknown ;; 19307 esac 19308 19309 case $lt_cv_dlopen_self_static in 19310 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 19311 *) enable_dlopen_self_static=unknown ;; 19312 esac 19313fi 19314 19315 19316# The else clause should only fire when bootstrapping the 19317# libtool distribution, otherwise you forgot to ship ltmain.sh 19318# with your package, and you will get complaints that there are 19319# no rules to generate ltmain.sh. 19320if test -f "$ltmain"; then 19321 # See if we are running on zsh, and set the options which allow our commands through 19322 # without removal of \ escapes. 19323 if test -n "${ZSH_VERSION+set}" ; then 19324 setopt NO_GLOB_SUBST 19325 fi 19326 # Now quote all the things that may contain metacharacters while being 19327 # careful not to overquote the AC_SUBSTed values. We take copies of the 19328 # variables and quote the copies for generation of the libtool script. 19329 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 19330 SED SHELL STRIP \ 19331 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19332 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19333 deplibs_check_method reload_flag reload_cmds need_locks \ 19334 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19335 lt_cv_sys_global_symbol_to_c_name_address \ 19336 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19337 old_postinstall_cmds old_postuninstall_cmds \ 19338 compiler_GCJ \ 19339 CC_GCJ \ 19340 LD_GCJ \ 19341 lt_prog_compiler_wl_GCJ \ 19342 lt_prog_compiler_pic_GCJ \ 19343 lt_prog_compiler_static_GCJ \ 19344 lt_prog_compiler_no_builtin_flag_GCJ \ 19345 export_dynamic_flag_spec_GCJ \ 19346 thread_safe_flag_spec_GCJ \ 19347 whole_archive_flag_spec_GCJ \ 19348 enable_shared_with_static_runtimes_GCJ \ 19349 old_archive_cmds_GCJ \ 19350 old_archive_from_new_cmds_GCJ \ 19351 predep_objects_GCJ \ 19352 postdep_objects_GCJ \ 19353 predeps_GCJ \ 19354 postdeps_GCJ \ 19355 compiler_lib_search_path_GCJ \ 19356 archive_cmds_GCJ \ 19357 archive_expsym_cmds_GCJ \ 19358 postinstall_cmds_GCJ \ 19359 postuninstall_cmds_GCJ \ 19360 old_archive_from_expsyms_cmds_GCJ \ 19361 allow_undefined_flag_GCJ \ 19362 no_undefined_flag_GCJ \ 19363 export_symbols_cmds_GCJ \ 19364 hardcode_libdir_flag_spec_GCJ \ 19365 hardcode_libdir_flag_spec_ld_GCJ \ 19366 hardcode_libdir_separator_GCJ \ 19367 hardcode_automatic_GCJ \ 19368 module_cmds_GCJ \ 19369 module_expsym_cmds_GCJ \ 19370 lt_cv_prog_compiler_c_o_GCJ \ 19371 exclude_expsyms_GCJ \ 19372 include_expsyms_GCJ; do 19373 19374 case $var in 19375 old_archive_cmds_GCJ | \ 19376 old_archive_from_new_cmds_GCJ | \ 19377 archive_cmds_GCJ | \ 19378 archive_expsym_cmds_GCJ | \ 19379 module_cmds_GCJ | \ 19380 module_expsym_cmds_GCJ | \ 19381 old_archive_from_expsyms_cmds_GCJ | \ 19382 export_symbols_cmds_GCJ | \ 19383 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19384 postinstall_cmds | postuninstall_cmds | \ 19385 old_postinstall_cmds | old_postuninstall_cmds | \ 19386 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19387 # Double-quote double-evaled strings. 19388 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19389 ;; 19390 *) 19391 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19392 ;; 19393 esac 19394 done 19395 19396 case $lt_echo in 19397 *'\$0 --fallback-echo"') 19398 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19399 ;; 19400 esac 19401 19402cfgfile="$ofile" 19403 19404 cat <<__EOF__ >> "$cfgfile" 19405# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19406 19407# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19408 19409# Shell to use when invoking shell scripts. 19410SHELL=$lt_SHELL 19411 19412# Whether or not to build shared libraries. 19413build_libtool_libs=$enable_shared 19414 19415# Whether or not to build static libraries. 19416build_old_libs=$enable_static 19417 19418# Whether or not to add -lc for building shared libraries. 19419build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19420 19421# Whether or not to disallow shared libs when runtime libs are static 19422allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19423 19424# Whether or not to optimize for fast installation. 19425fast_install=$enable_fast_install 19426 19427# The host system. 19428host_alias=$host_alias 19429host=$host 19430 19431# An echo program that does not interpret backslashes. 19432echo=$lt_echo 19433 19434# The archiver. 19435AR=$lt_AR 19436AR_FLAGS=$lt_AR_FLAGS 19437 19438# A C compiler. 19439LTCC=$lt_LTCC 19440 19441# A language-specific compiler. 19442CC=$lt_compiler_GCJ 19443 19444# Is the compiler the GNU C compiler? 19445with_gcc=$GCC_GCJ 19446 19447# An ERE matcher. 19448EGREP=$lt_EGREP 19449 19450# The linker used to build libraries. 19451LD=$lt_LD_GCJ 19452 19453# Whether we need hard or soft links. 19454LN_S=$lt_LN_S 19455 19456# A BSD-compatible nm program. 19457NM=$lt_NM 19458 19459# A symbol stripping program 19460STRIP=$lt_STRIP 19461 19462# Used to examine libraries when file_magic_cmd begins "file" 19463MAGIC_CMD=$MAGIC_CMD 19464 19465# Used on cygwin: DLL creation program. 19466DLLTOOL="$DLLTOOL" 19467 19468# Used on cygwin: object dumper. 19469OBJDUMP="$OBJDUMP" 19470 19471# Used on cygwin: assembler. 19472AS="$AS" 19473 19474# The name of the directory that contains temporary libtool files. 19475objdir=$objdir 19476 19477# How to create reloadable object files. 19478reload_flag=$lt_reload_flag 19479reload_cmds=$lt_reload_cmds 19480 19481# How to pass a linker flag through the compiler. 19482wl=$lt_lt_prog_compiler_wl_GCJ 19483 19484# Object file suffix (normally "o"). 19485objext="$ac_objext" 19486 19487# Old archive suffix (normally "a"). 19488libext="$libext" 19489 19490# Shared library suffix (normally ".so"). 19491shrext_cmds='$shrext_cmds' 19492 19493# Executable file suffix (normally ""). 19494exeext="$exeext" 19495 19496# Additional compiler flags for building library objects. 19497pic_flag=$lt_lt_prog_compiler_pic_GCJ 19498pic_mode=$pic_mode 19499 19500# What is the maximum length of a command? 19501max_cmd_len=$lt_cv_sys_max_cmd_len 19502 19503# Does compiler simultaneously support -c and -o options? 19504compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19505 19506# Must we lock files when doing compilation ? 19507need_locks=$lt_need_locks 19508 19509# Do we need the lib prefix for modules? 19510need_lib_prefix=$need_lib_prefix 19511 19512# Do we need a version for libraries? 19513need_version=$need_version 19514 19515# Whether dlopen is supported. 19516dlopen_support=$enable_dlopen 19517 19518# Whether dlopen of programs is supported. 19519dlopen_self=$enable_dlopen_self 19520 19521# Whether dlopen of statically linked programs is supported. 19522dlopen_self_static=$enable_dlopen_self_static 19523 19524# Compiler flag to prevent dynamic linking. 19525link_static_flag=$lt_lt_prog_compiler_static_GCJ 19526 19527# Compiler flag to turn off builtin functions. 19528no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19529 19530# Compiler flag to allow reflexive dlopens. 19531export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19532 19533# Compiler flag to generate shared objects directly from archives. 19534whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19535 19536# Compiler flag to generate thread-safe objects. 19537thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19538 19539# Library versioning type. 19540version_type=$version_type 19541 19542# Format of library name prefix. 19543libname_spec=$lt_libname_spec 19544 19545# List of archive names. First name is the real one, the rest are links. 19546# The last name is the one that the linker finds with -lNAME. 19547library_names_spec=$lt_library_names_spec 19548 19549# The coded name of the library, if different from the real name. 19550soname_spec=$lt_soname_spec 19551 19552# Commands used to build and install an old-style archive. 19553RANLIB=$lt_RANLIB 19554old_archive_cmds=$lt_old_archive_cmds_GCJ 19555old_postinstall_cmds=$lt_old_postinstall_cmds 19556old_postuninstall_cmds=$lt_old_postuninstall_cmds 19557 19558# Create an old-style archive from a shared archive. 19559old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19560 19561# Create a temporary old-style archive to link instead of a shared archive. 19562old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19563 19564# Commands used to build and install a shared archive. 19565archive_cmds=$lt_archive_cmds_GCJ 19566archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19567postinstall_cmds=$lt_postinstall_cmds 19568postuninstall_cmds=$lt_postuninstall_cmds 19569 19570# Commands used to build a loadable module (assumed same as above if empty) 19571module_cmds=$lt_module_cmds_GCJ 19572module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19573 19574# Commands to strip libraries. 19575old_striplib=$lt_old_striplib 19576striplib=$lt_striplib 19577 19578# Dependencies to place before the objects being linked to create a 19579# shared library. 19580predep_objects=$lt_predep_objects_GCJ 19581 19582# Dependencies to place after the objects being linked to create a 19583# shared library. 19584postdep_objects=$lt_postdep_objects_GCJ 19585 19586# Dependencies to place before the objects being linked to create a 19587# shared library. 19588predeps=$lt_predeps_GCJ 19589 19590# Dependencies to place after the objects being linked to create a 19591# shared library. 19592postdeps=$lt_postdeps_GCJ 19593 19594# The library search path used internally by the compiler when linking 19595# a shared library. 19596compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19597 19598# Method to check whether dependent libraries are shared objects. 19599deplibs_check_method=$lt_deplibs_check_method 19600 19601# Command to use when deplibs_check_method == file_magic. 19602file_magic_cmd=$lt_file_magic_cmd 19603 19604# Flag that allows shared libraries with undefined symbols to be built. 19605allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19606 19607# Flag that forces no undefined symbols. 19608no_undefined_flag=$lt_no_undefined_flag_GCJ 19609 19610# Commands used to finish a libtool library installation in a directory. 19611finish_cmds=$lt_finish_cmds 19612 19613# Same as above, but a single script fragment to be evaled but not shown. 19614finish_eval=$lt_finish_eval 19615 19616# Take the output of nm and produce a listing of raw symbols and C names. 19617global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19618 19619# Transform the output of nm in a proper C declaration 19620global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19621 19622# Transform the output of nm in a C name address pair 19623global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19624 19625# This is the shared library runtime path variable. 19626runpath_var=$runpath_var 19627 19628# This is the shared library path variable. 19629shlibpath_var=$shlibpath_var 19630 19631# Is shlibpath searched before the hard-coded library search path? 19632shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19633 19634# How to hardcode a shared library path into an executable. 19635hardcode_action=$hardcode_action_GCJ 19636 19637# Whether we should hardcode library paths into libraries. 19638hardcode_into_libs=$hardcode_into_libs 19639 19640# Flag to hardcode \$libdir into a binary during linking. 19641# This must work even if \$libdir does not exist. 19642hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19643 19644# If ld is used when linking, flag to hardcode \$libdir into 19645# a binary during linking. This must work even if \$libdir does 19646# not exist. 19647hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19648 19649# Whether we need a single -rpath flag with a separated argument. 19650hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19651 19652# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19653# resulting binary. 19654hardcode_direct=$hardcode_direct_GCJ 19655 19656# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19657# resulting binary. 19658hardcode_minus_L=$hardcode_minus_L_GCJ 19659 19660# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19661# the resulting binary. 19662hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19663 19664# Set to yes if building a shared library automatically hardcodes DIR into the library 19665# and all subsequent libraries and executables linked against it. 19666hardcode_automatic=$hardcode_automatic_GCJ 19667 19668# Variables whose values should be saved in libtool wrapper scripts and 19669# restored at relink time. 19670variables_saved_for_relink="$variables_saved_for_relink" 19671 19672# Whether libtool must link a program against all its dependency libraries. 19673link_all_deplibs=$link_all_deplibs_GCJ 19674 19675# Compile-time system search path for libraries 19676sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19677 19678# Run-time system search path for libraries 19679sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19680 19681# Fix the shell variable \$srcfile for the compiler. 19682fix_srcfile_path="$fix_srcfile_path_GCJ" 19683 19684# Set to yes if exported symbols are required. 19685always_export_symbols=$always_export_symbols_GCJ 19686 19687# The commands to list exported symbols. 19688export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19689 19690# The commands to extract the exported symbol list from a shared archive. 19691extract_expsyms_cmds=$lt_extract_expsyms_cmds 19692 19693# Symbols that should not be listed in the preloaded symbols. 19694exclude_expsyms=$lt_exclude_expsyms_GCJ 19695 19696# Symbols that must always be exported. 19697include_expsyms=$lt_include_expsyms_GCJ 19698 19699# ### END LIBTOOL TAG CONFIG: $tagname 19700 19701__EOF__ 19702 19703 19704else 19705 # If there is no Makefile yet, we rely on a make rule to execute 19706 # `config.status --recheck' to rerun these tests and create the 19707 # libtool script then. 19708 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19709 if test -f "$ltmain_in"; then 19710 test -f Makefile && make "$ltmain" 19711 fi 19712fi 19713 19714 19715ac_ext=c 19716ac_cpp='$CPP $CPPFLAGS' 19717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19719ac_compiler_gnu=$ac_cv_c_compiler_gnu 19720 19721CC="$lt_save_CC" 19722 19723 else 19724 tagname="" 19725 fi 19726 ;; 19727 19728 RC) 19729 19730 19731 19732# Source file extension for RC test sources. 19733ac_ext=rc 19734 19735# Object file extension for compiled RC test sources. 19736objext=o 19737objext_RC=$objext 19738 19739# Code to be used in simple compile tests 19740lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 19741 19742# Code to be used in simple link tests 19743lt_simple_link_test_code="$lt_simple_compile_test_code" 19744 19745# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19746 19747# If no C compiler was specified, use CC. 19748LTCC=${LTCC-"$CC"} 19749 19750# Allow CC to be a program name with arguments. 19751compiler=$CC 19752 19753 19754# Allow CC to be a program name with arguments. 19755lt_save_CC="$CC" 19756CC=${RC-"windres"} 19757compiler=$CC 19758compiler_RC=$CC 19759lt_cv_prog_compiler_c_o_RC=yes 19760 19761# The else clause should only fire when bootstrapping the 19762# libtool distribution, otherwise you forgot to ship ltmain.sh 19763# with your package, and you will get complaints that there are 19764# no rules to generate ltmain.sh. 19765if test -f "$ltmain"; then 19766 # See if we are running on zsh, and set the options which allow our commands through 19767 # without removal of \ escapes. 19768 if test -n "${ZSH_VERSION+set}" ; then 19769 setopt NO_GLOB_SUBST 19770 fi 19771 # Now quote all the things that may contain metacharacters while being 19772 # careful not to overquote the AC_SUBSTed values. We take copies of the 19773 # variables and quote the copies for generation of the libtool script. 19774 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 19775 SED SHELL STRIP \ 19776 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19777 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19778 deplibs_check_method reload_flag reload_cmds need_locks \ 19779 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19780 lt_cv_sys_global_symbol_to_c_name_address \ 19781 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19782 old_postinstall_cmds old_postuninstall_cmds \ 19783 compiler_RC \ 19784 CC_RC \ 19785 LD_RC \ 19786 lt_prog_compiler_wl_RC \ 19787 lt_prog_compiler_pic_RC \ 19788 lt_prog_compiler_static_RC \ 19789 lt_prog_compiler_no_builtin_flag_RC \ 19790 export_dynamic_flag_spec_RC \ 19791 thread_safe_flag_spec_RC \ 19792 whole_archive_flag_spec_RC \ 19793 enable_shared_with_static_runtimes_RC \ 19794 old_archive_cmds_RC \ 19795 old_archive_from_new_cmds_RC \ 19796 predep_objects_RC \ 19797 postdep_objects_RC \ 19798 predeps_RC \ 19799 postdeps_RC \ 19800 compiler_lib_search_path_RC \ 19801 archive_cmds_RC \ 19802 archive_expsym_cmds_RC \ 19803 postinstall_cmds_RC \ 19804 postuninstall_cmds_RC \ 19805 old_archive_from_expsyms_cmds_RC \ 19806 allow_undefined_flag_RC \ 19807 no_undefined_flag_RC \ 19808 export_symbols_cmds_RC \ 19809 hardcode_libdir_flag_spec_RC \ 19810 hardcode_libdir_flag_spec_ld_RC \ 19811 hardcode_libdir_separator_RC \ 19812 hardcode_automatic_RC \ 19813 module_cmds_RC \ 19814 module_expsym_cmds_RC \ 19815 lt_cv_prog_compiler_c_o_RC \ 19816 exclude_expsyms_RC \ 19817 include_expsyms_RC; do 19818 19819 case $var in 19820 old_archive_cmds_RC | \ 19821 old_archive_from_new_cmds_RC | \ 19822 archive_cmds_RC | \ 19823 archive_expsym_cmds_RC | \ 19824 module_cmds_RC | \ 19825 module_expsym_cmds_RC | \ 19826 old_archive_from_expsyms_cmds_RC | \ 19827 export_symbols_cmds_RC | \ 19828 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19829 postinstall_cmds | postuninstall_cmds | \ 19830 old_postinstall_cmds | old_postuninstall_cmds | \ 19831 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19832 # Double-quote double-evaled strings. 19833 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19834 ;; 19835 *) 19836 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19837 ;; 19838 esac 19839 done 19840 19841 case $lt_echo in 19842 *'\$0 --fallback-echo"') 19843 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19844 ;; 19845 esac 19846 19847cfgfile="$ofile" 19848 19849 cat <<__EOF__ >> "$cfgfile" 19850# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19851 19852# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19853 19854# Shell to use when invoking shell scripts. 19855SHELL=$lt_SHELL 19856 19857# Whether or not to build shared libraries. 19858build_libtool_libs=$enable_shared 19859 19860# Whether or not to build static libraries. 19861build_old_libs=$enable_static 19862 19863# Whether or not to add -lc for building shared libraries. 19864build_libtool_need_lc=$archive_cmds_need_lc_RC 19865 19866# Whether or not to disallow shared libs when runtime libs are static 19867allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19868 19869# Whether or not to optimize for fast installation. 19870fast_install=$enable_fast_install 19871 19872# The host system. 19873host_alias=$host_alias 19874host=$host 19875 19876# An echo program that does not interpret backslashes. 19877echo=$lt_echo 19878 19879# The archiver. 19880AR=$lt_AR 19881AR_FLAGS=$lt_AR_FLAGS 19882 19883# A C compiler. 19884LTCC=$lt_LTCC 19885 19886# A language-specific compiler. 19887CC=$lt_compiler_RC 19888 19889# Is the compiler the GNU C compiler? 19890with_gcc=$GCC_RC 19891 19892# An ERE matcher. 19893EGREP=$lt_EGREP 19894 19895# The linker used to build libraries. 19896LD=$lt_LD_RC 19897 19898# Whether we need hard or soft links. 19899LN_S=$lt_LN_S 19900 19901# A BSD-compatible nm program. 19902NM=$lt_NM 19903 19904# A symbol stripping program 19905STRIP=$lt_STRIP 19906 19907# Used to examine libraries when file_magic_cmd begins "file" 19908MAGIC_CMD=$MAGIC_CMD 19909 19910# Used on cygwin: DLL creation program. 19911DLLTOOL="$DLLTOOL" 19912 19913# Used on cygwin: object dumper. 19914OBJDUMP="$OBJDUMP" 19915 19916# Used on cygwin: assembler. 19917AS="$AS" 19918 19919# The name of the directory that contains temporary libtool files. 19920objdir=$objdir 19921 19922# How to create reloadable object files. 19923reload_flag=$lt_reload_flag 19924reload_cmds=$lt_reload_cmds 19925 19926# How to pass a linker flag through the compiler. 19927wl=$lt_lt_prog_compiler_wl_RC 19928 19929# Object file suffix (normally "o"). 19930objext="$ac_objext" 19931 19932# Old archive suffix (normally "a"). 19933libext="$libext" 19934 19935# Shared library suffix (normally ".so"). 19936shrext_cmds='$shrext_cmds' 19937 19938# Executable file suffix (normally ""). 19939exeext="$exeext" 19940 19941# Additional compiler flags for building library objects. 19942pic_flag=$lt_lt_prog_compiler_pic_RC 19943pic_mode=$pic_mode 19944 19945# What is the maximum length of a command? 19946max_cmd_len=$lt_cv_sys_max_cmd_len 19947 19948# Does compiler simultaneously support -c and -o options? 19949compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19950 19951# Must we lock files when doing compilation ? 19952need_locks=$lt_need_locks 19953 19954# Do we need the lib prefix for modules? 19955need_lib_prefix=$need_lib_prefix 19956 19957# Do we need a version for libraries? 19958need_version=$need_version 19959 19960# Whether dlopen is supported. 19961dlopen_support=$enable_dlopen 19962 19963# Whether dlopen of programs is supported. 19964dlopen_self=$enable_dlopen_self 19965 19966# Whether dlopen of statically linked programs is supported. 19967dlopen_self_static=$enable_dlopen_self_static 19968 19969# Compiler flag to prevent dynamic linking. 19970link_static_flag=$lt_lt_prog_compiler_static_RC 19971 19972# Compiler flag to turn off builtin functions. 19973no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19974 19975# Compiler flag to allow reflexive dlopens. 19976export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19977 19978# Compiler flag to generate shared objects directly from archives. 19979whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19980 19981# Compiler flag to generate thread-safe objects. 19982thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19983 19984# Library versioning type. 19985version_type=$version_type 19986 19987# Format of library name prefix. 19988libname_spec=$lt_libname_spec 19989 19990# List of archive names. First name is the real one, the rest are links. 19991# The last name is the one that the linker finds with -lNAME. 19992library_names_spec=$lt_library_names_spec 19993 19994# The coded name of the library, if different from the real name. 19995soname_spec=$lt_soname_spec 19996 19997# Commands used to build and install an old-style archive. 19998RANLIB=$lt_RANLIB 19999old_archive_cmds=$lt_old_archive_cmds_RC 20000old_postinstall_cmds=$lt_old_postinstall_cmds 20001old_postuninstall_cmds=$lt_old_postuninstall_cmds 20002 20003# Create an old-style archive from a shared archive. 20004old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 20005 20006# Create a temporary old-style archive to link instead of a shared archive. 20007old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 20008 20009# Commands used to build and install a shared archive. 20010archive_cmds=$lt_archive_cmds_RC 20011archive_expsym_cmds=$lt_archive_expsym_cmds_RC 20012postinstall_cmds=$lt_postinstall_cmds 20013postuninstall_cmds=$lt_postuninstall_cmds 20014 20015# Commands used to build a loadable module (assumed same as above if empty) 20016module_cmds=$lt_module_cmds_RC 20017module_expsym_cmds=$lt_module_expsym_cmds_RC 20018 20019# Commands to strip libraries. 20020old_striplib=$lt_old_striplib 20021striplib=$lt_striplib 20022 20023# Dependencies to place before the objects being linked to create a 20024# shared library. 20025predep_objects=$lt_predep_objects_RC 20026 20027# Dependencies to place after the objects being linked to create a 20028# shared library. 20029postdep_objects=$lt_postdep_objects_RC 20030 20031# Dependencies to place before the objects being linked to create a 20032# shared library. 20033predeps=$lt_predeps_RC 20034 20035# Dependencies to place after the objects being linked to create a 20036# shared library. 20037postdeps=$lt_postdeps_RC 20038 20039# The library search path used internally by the compiler when linking 20040# a shared library. 20041compiler_lib_search_path=$lt_compiler_lib_search_path_RC 20042 20043# Method to check whether dependent libraries are shared objects. 20044deplibs_check_method=$lt_deplibs_check_method 20045 20046# Command to use when deplibs_check_method == file_magic. 20047file_magic_cmd=$lt_file_magic_cmd 20048 20049# Flag that allows shared libraries with undefined symbols to be built. 20050allow_undefined_flag=$lt_allow_undefined_flag_RC 20051 20052# Flag that forces no undefined symbols. 20053no_undefined_flag=$lt_no_undefined_flag_RC 20054 20055# Commands used to finish a libtool library installation in a directory. 20056finish_cmds=$lt_finish_cmds 20057 20058# Same as above, but a single script fragment to be evaled but not shown. 20059finish_eval=$lt_finish_eval 20060 20061# Take the output of nm and produce a listing of raw symbols and C names. 20062global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20063 20064# Transform the output of nm in a proper C declaration 20065global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20066 20067# Transform the output of nm in a C name address pair 20068global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20069 20070# This is the shared library runtime path variable. 20071runpath_var=$runpath_var 20072 20073# This is the shared library path variable. 20074shlibpath_var=$shlibpath_var 20075 20076# Is shlibpath searched before the hard-coded library search path? 20077shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20078 20079# How to hardcode a shared library path into an executable. 20080hardcode_action=$hardcode_action_RC 20081 20082# Whether we should hardcode library paths into libraries. 20083hardcode_into_libs=$hardcode_into_libs 20084 20085# Flag to hardcode \$libdir into a binary during linking. 20086# This must work even if \$libdir does not exist. 20087hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 20088 20089# If ld is used when linking, flag to hardcode \$libdir into 20090# a binary during linking. This must work even if \$libdir does 20091# not exist. 20092hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 20093 20094# Whether we need a single -rpath flag with a separated argument. 20095hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 20096 20097# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 20098# resulting binary. 20099hardcode_direct=$hardcode_direct_RC 20100 20101# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 20102# resulting binary. 20103hardcode_minus_L=$hardcode_minus_L_RC 20104 20105# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 20106# the resulting binary. 20107hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 20108 20109# Set to yes if building a shared library automatically hardcodes DIR into the library 20110# and all subsequent libraries and executables linked against it. 20111hardcode_automatic=$hardcode_automatic_RC 20112 20113# Variables whose values should be saved in libtool wrapper scripts and 20114# restored at relink time. 20115variables_saved_for_relink="$variables_saved_for_relink" 20116 20117# Whether libtool must link a program against all its dependency libraries. 20118link_all_deplibs=$link_all_deplibs_RC 20119 20120# Compile-time system search path for libraries 20121sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20122 20123# Run-time system search path for libraries 20124sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20125 20126# Fix the shell variable \$srcfile for the compiler. 20127fix_srcfile_path="$fix_srcfile_path_RC" 20128 20129# Set to yes if exported symbols are required. 20130always_export_symbols=$always_export_symbols_RC 20131 20132# The commands to list exported symbols. 20133export_symbols_cmds=$lt_export_symbols_cmds_RC 20134 20135# The commands to extract the exported symbol list from a shared archive. 20136extract_expsyms_cmds=$lt_extract_expsyms_cmds 20137 20138# Symbols that should not be listed in the preloaded symbols. 20139exclude_expsyms=$lt_exclude_expsyms_RC 20140 20141# Symbols that must always be exported. 20142include_expsyms=$lt_include_expsyms_RC 20143 20144# ### END LIBTOOL TAG CONFIG: $tagname 20145 20146__EOF__ 20147 20148 20149else 20150 # If there is no Makefile yet, we rely on a make rule to execute 20151 # `config.status --recheck' to rerun these tests and create the 20152 # libtool script then. 20153 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 20154 if test -f "$ltmain_in"; then 20155 test -f Makefile && make "$ltmain" 20156 fi 20157fi 20158 20159 20160ac_ext=c 20161ac_cpp='$CPP $CPPFLAGS' 20162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20164ac_compiler_gnu=$ac_cv_c_compiler_gnu 20165 20166CC="$lt_save_CC" 20167 20168 ;; 20169 20170 *) 20171 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 20172echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 20173 { (exit 1); exit 1; }; } 20174 ;; 20175 esac 20176 20177 # Append the new tag name to the list of available tags. 20178 if test -n "$tagname" ; then 20179 available_tags="$available_tags $tagname" 20180 fi 20181 fi 20182 done 20183 IFS="$lt_save_ifs" 20184 20185 # Now substitute the updated list of available tags. 20186 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 20187 mv "${ofile}T" "$ofile" 20188 chmod +x "$ofile" 20189 else 20190 rm -f "${ofile}T" 20191 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 20192echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 20193 { (exit 1); exit 1; }; } 20194 fi 20195fi 20196 20197 20198 20199# This can be used to rebuild libtool when needed 20200LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 20201 20202# Always use our own libtool. 20203LIBTOOL='$(SHELL) $(top_builddir)/libtool' 20204 20205# Prevent multiple expansion 20206 20207 20208 20209 20210 20211 20212 20213 20214 20215 20216 20217 20218 20219 20220 20221 20222 20223 20224 20225 20226 20227 20228# We need to change the name of the installed package on some systems, 20229# so we don't clash with existing system files. We'll do this by 20230# prefixing "lib" so it comes out as "libcdaudio.h" and 20231# "liblibcdaudio.so". 20232 20233cdaudioname=cdaudio 20234 20235threads=yes 20236 20237# Check whether --enable-threads or --disable-threads was given. 20238if test "${enable_threads+set}" = set; then 20239 enableval="$enable_threads" 20240 if test "$enableval" = "yes" 20241then 20242 threads=yes 20243else 20244 threads=no 20245fi 20246fi; 20247 20248# Check whether --enable-xbox-fix or --disable-xbox-fix was given. 20249if test "${enable_xbox_fix+set}" = set; then 20250 enableval="$enable_xbox_fix" 20251 if test "$enableval" = "yes" 20252then 20253 xbox=1 20254else 20255 xbox=0 20256fi 20257else 20258 xbox=0 20259fi; 20260 20261 20262cat >>confdefs.h <<_ACEOF 20263#define XBOX $xbox 20264_ACEOF 20265 20266 20267if test "$threads" = "yes" 20268then 20269 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 20270echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 20271if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then 20272 echo $ECHO_N "(cached) $ECHO_C" >&6 20273else 20274 ac_check_lib_save_LIBS=$LIBS 20275LIBS="-lpthread $LIBS" 20276cat >conftest.$ac_ext <<_ACEOF 20277/* confdefs.h. */ 20278_ACEOF 20279cat confdefs.h >>conftest.$ac_ext 20280cat >>conftest.$ac_ext <<_ACEOF 20281/* end confdefs.h. */ 20282 20283/* Override any gcc2 internal prototype to avoid an error. */ 20284#ifdef __cplusplus 20285extern "C" 20286#endif 20287/* We use char because int might match the return type of a gcc2 20288 builtin and then its argument prototype would still apply. */ 20289char pthread_create (); 20290int 20291main () 20292{ 20293pthread_create (); 20294 ; 20295 return 0; 20296} 20297_ACEOF 20298rm -f conftest.$ac_objext conftest$ac_exeext 20299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20300 (eval $ac_link) 2>conftest.er1 20301 ac_status=$? 20302 grep -v '^ *+' conftest.er1 >conftest.err 20303 rm -f conftest.er1 20304 cat conftest.err >&5 20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20306 (exit $ac_status); } && 20307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20309 (eval $ac_try) 2>&5 20310 ac_status=$? 20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20312 (exit $ac_status); }; } && 20313 { ac_try='test -s conftest$ac_exeext' 20314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20315 (eval $ac_try) 2>&5 20316 ac_status=$? 20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20318 (exit $ac_status); }; }; then 20319 ac_cv_lib_pthread_pthread_create=yes 20320else 20321 echo "$as_me: failed program was:" >&5 20322sed 's/^/| /' conftest.$ac_ext >&5 20323 20324ac_cv_lib_pthread_pthread_create=no 20325fi 20326rm -f conftest.err conftest.$ac_objext \ 20327 conftest$ac_exeext conftest.$ac_ext 20328LIBS=$ac_check_lib_save_LIBS 20329fi 20330echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 20331echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6 20332if test $ac_cv_lib_pthread_pthread_create = yes; then 20333 threads=-lpthread 20334else 20335 threads=no 20336fi 20337 20338 echo 'threads='$threads 20339 if test "$threads" = "no" 20340 then 20341 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 20342echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 20343if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then 20344 echo $ECHO_N "(cached) $ECHO_C" >&6 20345else 20346 ac_check_lib_save_LIBS=$LIBS 20347LIBS="-lc_r $LIBS" 20348cat >conftest.$ac_ext <<_ACEOF 20349/* confdefs.h. */ 20350_ACEOF 20351cat confdefs.h >>conftest.$ac_ext 20352cat >>conftest.$ac_ext <<_ACEOF 20353/* end confdefs.h. */ 20354 20355/* Override any gcc2 internal prototype to avoid an error. */ 20356#ifdef __cplusplus 20357extern "C" 20358#endif 20359/* We use char because int might match the return type of a gcc2 20360 builtin and then its argument prototype would still apply. */ 20361char pthread_create (); 20362int 20363main () 20364{ 20365pthread_create (); 20366 ; 20367 return 0; 20368} 20369_ACEOF 20370rm -f conftest.$ac_objext conftest$ac_exeext 20371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20372 (eval $ac_link) 2>conftest.er1 20373 ac_status=$? 20374 grep -v '^ *+' conftest.er1 >conftest.err 20375 rm -f conftest.er1 20376 cat conftest.err >&5 20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20378 (exit $ac_status); } && 20379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20381 (eval $ac_try) 2>&5 20382 ac_status=$? 20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20384 (exit $ac_status); }; } && 20385 { ac_try='test -s conftest$ac_exeext' 20386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20387 (eval $ac_try) 2>&5 20388 ac_status=$? 20389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20390 (exit $ac_status); }; }; then 20391 ac_cv_lib_c_r_pthread_create=yes 20392else 20393 echo "$as_me: failed program was:" >&5 20394sed 's/^/| /' conftest.$ac_ext >&5 20395 20396ac_cv_lib_c_r_pthread_create=no 20397fi 20398rm -f conftest.err conftest.$ac_objext \ 20399 conftest$ac_exeext conftest.$ac_ext 20400LIBS=$ac_check_lib_save_LIBS 20401fi 20402echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 20403echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 20404if test $ac_cv_lib_c_r_pthread_create = yes; then 20405 threads=-lc_r 20406else 20407 threads=no 20408fi 20409 20410 fi 20411fi 20412 20413sys=generic 20414 20415case "$host" in 20416 *beos*) 20417 cdaudioname=libcdaudio 20418 sys=beos 20419 20420cat >>confdefs.h <<\_ACEOF 20421#define BEOS_CDAUDIO 20422_ACEOF 20423 20424 LIBS="-lcdaudio $LIBS" 20425 ;; 20426 *irix*) 20427 cdaudioname=libcdaudio 20428 sys=irix 20429 20430cat >>confdefs.h <<\_ACEOF 20431#define IRIX_CDAUDIO 20432_ACEOF 20433 20434 LIBS="-lcdaudio -lmediad -lds $LIBS" 20435 ;; 20436 *solaris*) 20437 sys=solaris 20438 20439cat >>confdefs.h <<\_ACEOF 20440#define SOLARIS_GETMNTENT 20441_ACEOF 20442 20443 20444cat >>confdefs.h <<\_ACEOF 20445#define BROKEN_SOLARIS_LEADOUT 20446_ACEOF 20447 20448 ;; 20449esac 20450 20451 20452 20453if test "$sys" = irix; then 20454 IRIX_TRUE= 20455 IRIX_FALSE='#' 20456else 20457 IRIX_TRUE='#' 20458 IRIX_FALSE= 20459fi 20460 20461 20462 20463if test "$sys" = beos; then 20464 BEOS_TRUE= 20465 BEOS_FALSE='#' 20466else 20467 BEOS_TRUE='#' 20468 BEOS_FALSE= 20469fi 20470 20471 20472 20473 20474 20475 20476 20477ac_header_dirent=no 20478for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 20479 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 20480echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 20481echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 20482if eval "test \"\${$as_ac_Header+set}\" = set"; then 20483 echo $ECHO_N "(cached) $ECHO_C" >&6 20484else 20485 cat >conftest.$ac_ext <<_ACEOF 20486/* confdefs.h. */ 20487_ACEOF 20488cat confdefs.h >>conftest.$ac_ext 20489cat >>conftest.$ac_ext <<_ACEOF 20490/* end confdefs.h. */ 20491#include <sys/types.h> 20492#include <$ac_hdr> 20493 20494int 20495main () 20496{ 20497if ((DIR *) 0) 20498return 0; 20499 ; 20500 return 0; 20501} 20502_ACEOF 20503rm -f conftest.$ac_objext 20504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20505 (eval $ac_compile) 2>conftest.er1 20506 ac_status=$? 20507 grep -v '^ *+' conftest.er1 >conftest.err 20508 rm -f conftest.er1 20509 cat conftest.err >&5 20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20511 (exit $ac_status); } && 20512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20514 (eval $ac_try) 2>&5 20515 ac_status=$? 20516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20517 (exit $ac_status); }; } && 20518 { ac_try='test -s conftest.$ac_objext' 20519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20520 (eval $ac_try) 2>&5 20521 ac_status=$? 20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20523 (exit $ac_status); }; }; then 20524 eval "$as_ac_Header=yes" 20525else 20526 echo "$as_me: failed program was:" >&5 20527sed 's/^/| /' conftest.$ac_ext >&5 20528 20529eval "$as_ac_Header=no" 20530fi 20531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20532fi 20533echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 20534echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 20535if test `eval echo '${'$as_ac_Header'}'` = yes; then 20536 cat >>confdefs.h <<_ACEOF 20537#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 20538_ACEOF 20539 20540ac_header_dirent=$ac_hdr; break 20541fi 20542 20543done 20544# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 20545if test $ac_header_dirent = dirent.h; then 20546 echo "$as_me:$LINENO: checking for library containing opendir" >&5 20547echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 20548if test "${ac_cv_search_opendir+set}" = set; then 20549 echo $ECHO_N "(cached) $ECHO_C" >&6 20550else 20551 ac_func_search_save_LIBS=$LIBS 20552ac_cv_search_opendir=no 20553cat >conftest.$ac_ext <<_ACEOF 20554/* confdefs.h. */ 20555_ACEOF 20556cat confdefs.h >>conftest.$ac_ext 20557cat >>conftest.$ac_ext <<_ACEOF 20558/* end confdefs.h. */ 20559 20560/* Override any gcc2 internal prototype to avoid an error. */ 20561#ifdef __cplusplus 20562extern "C" 20563#endif 20564/* We use char because int might match the return type of a gcc2 20565 builtin and then its argument prototype would still apply. */ 20566char opendir (); 20567int 20568main () 20569{ 20570opendir (); 20571 ; 20572 return 0; 20573} 20574_ACEOF 20575rm -f conftest.$ac_objext conftest$ac_exeext 20576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20577 (eval $ac_link) 2>conftest.er1 20578 ac_status=$? 20579 grep -v '^ *+' conftest.er1 >conftest.err 20580 rm -f conftest.er1 20581 cat conftest.err >&5 20582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20583 (exit $ac_status); } && 20584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20586 (eval $ac_try) 2>&5 20587 ac_status=$? 20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20589 (exit $ac_status); }; } && 20590 { ac_try='test -s conftest$ac_exeext' 20591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20592 (eval $ac_try) 2>&5 20593 ac_status=$? 20594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20595 (exit $ac_status); }; }; then 20596 ac_cv_search_opendir="none required" 20597else 20598 echo "$as_me: failed program was:" >&5 20599sed 's/^/| /' conftest.$ac_ext >&5 20600 20601fi 20602rm -f conftest.err conftest.$ac_objext \ 20603 conftest$ac_exeext conftest.$ac_ext 20604if test "$ac_cv_search_opendir" = no; then 20605 for ac_lib in dir; do 20606 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20607 cat >conftest.$ac_ext <<_ACEOF 20608/* confdefs.h. */ 20609_ACEOF 20610cat confdefs.h >>conftest.$ac_ext 20611cat >>conftest.$ac_ext <<_ACEOF 20612/* end confdefs.h. */ 20613 20614/* Override any gcc2 internal prototype to avoid an error. */ 20615#ifdef __cplusplus 20616extern "C" 20617#endif 20618/* We use char because int might match the return type of a gcc2 20619 builtin and then its argument prototype would still apply. */ 20620char opendir (); 20621int 20622main () 20623{ 20624opendir (); 20625 ; 20626 return 0; 20627} 20628_ACEOF 20629rm -f conftest.$ac_objext conftest$ac_exeext 20630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20631 (eval $ac_link) 2>conftest.er1 20632 ac_status=$? 20633 grep -v '^ *+' conftest.er1 >conftest.err 20634 rm -f conftest.er1 20635 cat conftest.err >&5 20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20637 (exit $ac_status); } && 20638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20640 (eval $ac_try) 2>&5 20641 ac_status=$? 20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20643 (exit $ac_status); }; } && 20644 { ac_try='test -s conftest$ac_exeext' 20645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20646 (eval $ac_try) 2>&5 20647 ac_status=$? 20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20649 (exit $ac_status); }; }; then 20650 ac_cv_search_opendir="-l$ac_lib" 20651break 20652else 20653 echo "$as_me: failed program was:" >&5 20654sed 's/^/| /' conftest.$ac_ext >&5 20655 20656fi 20657rm -f conftest.err conftest.$ac_objext \ 20658 conftest$ac_exeext conftest.$ac_ext 20659 done 20660fi 20661LIBS=$ac_func_search_save_LIBS 20662fi 20663echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 20664echo "${ECHO_T}$ac_cv_search_opendir" >&6 20665if test "$ac_cv_search_opendir" != no; then 20666 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 20667 20668fi 20669 20670else 20671 echo "$as_me:$LINENO: checking for library containing opendir" >&5 20672echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 20673if test "${ac_cv_search_opendir+set}" = set; then 20674 echo $ECHO_N "(cached) $ECHO_C" >&6 20675else 20676 ac_func_search_save_LIBS=$LIBS 20677ac_cv_search_opendir=no 20678cat >conftest.$ac_ext <<_ACEOF 20679/* confdefs.h. */ 20680_ACEOF 20681cat confdefs.h >>conftest.$ac_ext 20682cat >>conftest.$ac_ext <<_ACEOF 20683/* end confdefs.h. */ 20684 20685/* Override any gcc2 internal prototype to avoid an error. */ 20686#ifdef __cplusplus 20687extern "C" 20688#endif 20689/* We use char because int might match the return type of a gcc2 20690 builtin and then its argument prototype would still apply. */ 20691char opendir (); 20692int 20693main () 20694{ 20695opendir (); 20696 ; 20697 return 0; 20698} 20699_ACEOF 20700rm -f conftest.$ac_objext conftest$ac_exeext 20701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20702 (eval $ac_link) 2>conftest.er1 20703 ac_status=$? 20704 grep -v '^ *+' conftest.er1 >conftest.err 20705 rm -f conftest.er1 20706 cat conftest.err >&5 20707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20708 (exit $ac_status); } && 20709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20711 (eval $ac_try) 2>&5 20712 ac_status=$? 20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20714 (exit $ac_status); }; } && 20715 { ac_try='test -s conftest$ac_exeext' 20716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20717 (eval $ac_try) 2>&5 20718 ac_status=$? 20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20720 (exit $ac_status); }; }; then 20721 ac_cv_search_opendir="none required" 20722else 20723 echo "$as_me: failed program was:" >&5 20724sed 's/^/| /' conftest.$ac_ext >&5 20725 20726fi 20727rm -f conftest.err conftest.$ac_objext \ 20728 conftest$ac_exeext conftest.$ac_ext 20729if test "$ac_cv_search_opendir" = no; then 20730 for ac_lib in x; do 20731 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20732 cat >conftest.$ac_ext <<_ACEOF 20733/* confdefs.h. */ 20734_ACEOF 20735cat confdefs.h >>conftest.$ac_ext 20736cat >>conftest.$ac_ext <<_ACEOF 20737/* end confdefs.h. */ 20738 20739/* Override any gcc2 internal prototype to avoid an error. */ 20740#ifdef __cplusplus 20741extern "C" 20742#endif 20743/* We use char because int might match the return type of a gcc2 20744 builtin and then its argument prototype would still apply. */ 20745char opendir (); 20746int 20747main () 20748{ 20749opendir (); 20750 ; 20751 return 0; 20752} 20753_ACEOF 20754rm -f conftest.$ac_objext conftest$ac_exeext 20755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20756 (eval $ac_link) 2>conftest.er1 20757 ac_status=$? 20758 grep -v '^ *+' conftest.er1 >conftest.err 20759 rm -f conftest.er1 20760 cat conftest.err >&5 20761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20762 (exit $ac_status); } && 20763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20765 (eval $ac_try) 2>&5 20766 ac_status=$? 20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20768 (exit $ac_status); }; } && 20769 { ac_try='test -s conftest$ac_exeext' 20770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20771 (eval $ac_try) 2>&5 20772 ac_status=$? 20773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20774 (exit $ac_status); }; }; then 20775 ac_cv_search_opendir="-l$ac_lib" 20776break 20777else 20778 echo "$as_me: failed program was:" >&5 20779sed 's/^/| /' conftest.$ac_ext >&5 20780 20781fi 20782rm -f conftest.err conftest.$ac_objext \ 20783 conftest$ac_exeext conftest.$ac_ext 20784 done 20785fi 20786LIBS=$ac_func_search_save_LIBS 20787fi 20788echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 20789echo "${ECHO_T}$ac_cv_search_opendir" >&6 20790if test "$ac_cv_search_opendir" != no; then 20791 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 20792 20793fi 20794 20795fi 20796 20797echo "$as_me:$LINENO: checking for ANSI C header files" >&5 20798echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 20799if test "${ac_cv_header_stdc+set}" = set; then 20800 echo $ECHO_N "(cached) $ECHO_C" >&6 20801else 20802 cat >conftest.$ac_ext <<_ACEOF 20803/* confdefs.h. */ 20804_ACEOF 20805cat confdefs.h >>conftest.$ac_ext 20806cat >>conftest.$ac_ext <<_ACEOF 20807/* end confdefs.h. */ 20808#include <stdlib.h> 20809#include <stdarg.h> 20810#include <string.h> 20811#include <float.h> 20812 20813int 20814main () 20815{ 20816 20817 ; 20818 return 0; 20819} 20820_ACEOF 20821rm -f conftest.$ac_objext 20822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20823 (eval $ac_compile) 2>conftest.er1 20824 ac_status=$? 20825 grep -v '^ *+' conftest.er1 >conftest.err 20826 rm -f conftest.er1 20827 cat conftest.err >&5 20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20829 (exit $ac_status); } && 20830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20832 (eval $ac_try) 2>&5 20833 ac_status=$? 20834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20835 (exit $ac_status); }; } && 20836 { ac_try='test -s conftest.$ac_objext' 20837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20838 (eval $ac_try) 2>&5 20839 ac_status=$? 20840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20841 (exit $ac_status); }; }; then 20842 ac_cv_header_stdc=yes 20843else 20844 echo "$as_me: failed program was:" >&5 20845sed 's/^/| /' conftest.$ac_ext >&5 20846 20847ac_cv_header_stdc=no 20848fi 20849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20850 20851if test $ac_cv_header_stdc = yes; then 20852 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 20853 cat >conftest.$ac_ext <<_ACEOF 20854/* confdefs.h. */ 20855_ACEOF 20856cat confdefs.h >>conftest.$ac_ext 20857cat >>conftest.$ac_ext <<_ACEOF 20858/* end confdefs.h. */ 20859#include <string.h> 20860 20861_ACEOF 20862if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20863 $EGREP "memchr" >/dev/null 2>&1; then 20864 : 20865else 20866 ac_cv_header_stdc=no 20867fi 20868rm -f conftest* 20869 20870fi 20871 20872if test $ac_cv_header_stdc = yes; then 20873 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 20874 cat >conftest.$ac_ext <<_ACEOF 20875/* confdefs.h. */ 20876_ACEOF 20877cat confdefs.h >>conftest.$ac_ext 20878cat >>conftest.$ac_ext <<_ACEOF 20879/* end confdefs.h. */ 20880#include <stdlib.h> 20881 20882_ACEOF 20883if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20884 $EGREP "free" >/dev/null 2>&1; then 20885 : 20886else 20887 ac_cv_header_stdc=no 20888fi 20889rm -f conftest* 20890 20891fi 20892 20893if test $ac_cv_header_stdc = yes; then 20894 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 20895 if test "$cross_compiling" = yes; then 20896 : 20897else 20898 cat >conftest.$ac_ext <<_ACEOF 20899/* confdefs.h. */ 20900_ACEOF 20901cat confdefs.h >>conftest.$ac_ext 20902cat >>conftest.$ac_ext <<_ACEOF 20903/* end confdefs.h. */ 20904#include <ctype.h> 20905#if ((' ' & 0x0FF) == 0x020) 20906# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 20907# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 20908#else 20909# define ISLOWER(c) \ 20910 (('a' <= (c) && (c) <= 'i') \ 20911 || ('j' <= (c) && (c) <= 'r') \ 20912 || ('s' <= (c) && (c) <= 'z')) 20913# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 20914#endif 20915 20916#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 20917int 20918main () 20919{ 20920 int i; 20921 for (i = 0; i < 256; i++) 20922 if (XOR (islower (i), ISLOWER (i)) 20923 || toupper (i) != TOUPPER (i)) 20924 exit(2); 20925 exit (0); 20926} 20927_ACEOF 20928rm -f conftest$ac_exeext 20929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20930 (eval $ac_link) 2>&5 20931 ac_status=$? 20932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20935 (eval $ac_try) 2>&5 20936 ac_status=$? 20937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20938 (exit $ac_status); }; }; then 20939 : 20940else 20941 echo "$as_me: program exited with status $ac_status" >&5 20942echo "$as_me: failed program was:" >&5 20943sed 's/^/| /' conftest.$ac_ext >&5 20944 20945( exit $ac_status ) 20946ac_cv_header_stdc=no 20947fi 20948rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20949fi 20950fi 20951fi 20952echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 20953echo "${ECHO_T}$ac_cv_header_stdc" >&6 20954if test $ac_cv_header_stdc = yes; then 20955 20956cat >>confdefs.h <<\_ACEOF 20957#define STDC_HEADERS 1 20958_ACEOF 20959 20960fi 20961 20962 20963 20964 20965 20966 20967 20968 20969 20970 20971 20972 20973 20974 20975 20976 20977for ac_header in fcntl.h sys/ioctl.h unistd.h linux/cdrom.h linux/ucdrom.h sys/cdio.h io/cam/cdrom.h stdarg.h mntent.h sys/mntent.h sys/types.h sys/param.h sys/ucred.h sys/mount.h strings.h 20978do 20979as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20980echo "$as_me:$LINENO: checking for $ac_header" >&5 20981echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 20982if eval "test \"\${$as_ac_Header+set}\" = set"; then 20983 echo $ECHO_N "(cached) $ECHO_C" >&6 20984else 20985 cat >conftest.$ac_ext <<_ACEOF 20986/* confdefs.h. */ 20987_ACEOF 20988cat confdefs.h >>conftest.$ac_ext 20989cat >>conftest.$ac_ext <<_ACEOF 20990/* end confdefs.h. */ 20991#if defined (HAVE_SYS_TYPES_H) 20992# include <sys/types.h> 20993#endif 20994 20995#if defined (HAVE_SYS_PARAM_H) 20996# include <sys/param.h> 20997#endif 20998 20999 21000#include <$ac_header> 21001_ACEOF 21002rm -f conftest.$ac_objext 21003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21004 (eval $ac_compile) 2>conftest.er1 21005 ac_status=$? 21006 grep -v '^ *+' conftest.er1 >conftest.err 21007 rm -f conftest.er1 21008 cat conftest.err >&5 21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21010 (exit $ac_status); } && 21011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21013 (eval $ac_try) 2>&5 21014 ac_status=$? 21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21016 (exit $ac_status); }; } && 21017 { ac_try='test -s conftest.$ac_objext' 21018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21019 (eval $ac_try) 2>&5 21020 ac_status=$? 21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21022 (exit $ac_status); }; }; then 21023 eval "$as_ac_Header=yes" 21024else 21025 echo "$as_me: failed program was:" >&5 21026sed 's/^/| /' conftest.$ac_ext >&5 21027 21028eval "$as_ac_Header=no" 21029fi 21030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21031fi 21032echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21033echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21034if test `eval echo '${'$as_ac_Header'}'` = yes; then 21035 cat >>confdefs.h <<_ACEOF 21036#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21037_ACEOF 21038 21039fi 21040 21041done 21042 21043 21044echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 21045echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 21046if test "${ac_cv_c_const+set}" = set; then 21047 echo $ECHO_N "(cached) $ECHO_C" >&6 21048else 21049 cat >conftest.$ac_ext <<_ACEOF 21050/* confdefs.h. */ 21051_ACEOF 21052cat confdefs.h >>conftest.$ac_ext 21053cat >>conftest.$ac_ext <<_ACEOF 21054/* end confdefs.h. */ 21055 21056int 21057main () 21058{ 21059/* FIXME: Include the comments suggested by Paul. */ 21060#ifndef __cplusplus 21061 /* Ultrix mips cc rejects this. */ 21062 typedef int charset[2]; 21063 const charset x; 21064 /* SunOS 4.1.1 cc rejects this. */ 21065 char const *const *ccp; 21066 char **p; 21067 /* NEC SVR4.0.2 mips cc rejects this. */ 21068 struct point {int x, y;}; 21069 static struct point const zero = {0,0}; 21070 /* AIX XL C 1.02.0.0 rejects this. 21071 It does not let you subtract one const X* pointer from another in 21072 an arm of an if-expression whose if-part is not a constant 21073 expression */ 21074 const char *g = "string"; 21075 ccp = &g + (g ? g-g : 0); 21076 /* HPUX 7.0 cc rejects these. */ 21077 ++ccp; 21078 p = (char**) ccp; 21079 ccp = (char const *const *) p; 21080 { /* SCO 3.2v4 cc rejects this. */ 21081 char *t; 21082 char const *s = 0 ? (char *) 0 : (char const *) 0; 21083 21084 *t++ = 0; 21085 } 21086 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 21087 int x[] = {25, 17}; 21088 const int *foo = &x[0]; 21089 ++foo; 21090 } 21091 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 21092 typedef const int *iptr; 21093 iptr p = 0; 21094 ++p; 21095 } 21096 { /* AIX XL C 1.02.0.0 rejects this saying 21097 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 21098 struct s { int j; const int *ap[3]; }; 21099 struct s *b; b->j = 5; 21100 } 21101 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 21102 const int foo = 10; 21103 } 21104#endif 21105 21106 ; 21107 return 0; 21108} 21109_ACEOF 21110rm -f conftest.$ac_objext 21111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21112 (eval $ac_compile) 2>conftest.er1 21113 ac_status=$? 21114 grep -v '^ *+' conftest.er1 >conftest.err 21115 rm -f conftest.er1 21116 cat conftest.err >&5 21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21118 (exit $ac_status); } && 21119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21121 (eval $ac_try) 2>&5 21122 ac_status=$? 21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21124 (exit $ac_status); }; } && 21125 { ac_try='test -s conftest.$ac_objext' 21126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21127 (eval $ac_try) 2>&5 21128 ac_status=$? 21129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21130 (exit $ac_status); }; }; then 21131 ac_cv_c_const=yes 21132else 21133 echo "$as_me: failed program was:" >&5 21134sed 's/^/| /' conftest.$ac_ext >&5 21135 21136ac_cv_c_const=no 21137fi 21138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21139fi 21140echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 21141echo "${ECHO_T}$ac_cv_c_const" >&6 21142if test $ac_cv_c_const = no; then 21143 21144cat >>confdefs.h <<\_ACEOF 21145#define const 21146_ACEOF 21147 21148fi 21149 21150 21151case "$cross_compiling" in 21152 yes) 21153 echo "You are cross compiling. You will need to edit config.h and specify the target machine's endianness and word size manually." 21154 ;; 21155 no) 21156 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 21157echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 21158if test "${ac_cv_c_bigendian+set}" = set; then 21159 echo $ECHO_N "(cached) $ECHO_C" >&6 21160else 21161 # See if sys/param.h defines the BYTE_ORDER macro. 21162cat >conftest.$ac_ext <<_ACEOF 21163/* confdefs.h. */ 21164_ACEOF 21165cat confdefs.h >>conftest.$ac_ext 21166cat >>conftest.$ac_ext <<_ACEOF 21167/* end confdefs.h. */ 21168#include <sys/types.h> 21169#include <sys/param.h> 21170 21171int 21172main () 21173{ 21174#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 21175 bogus endian macros 21176#endif 21177 21178 ; 21179 return 0; 21180} 21181_ACEOF 21182rm -f conftest.$ac_objext 21183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21184 (eval $ac_compile) 2>conftest.er1 21185 ac_status=$? 21186 grep -v '^ *+' conftest.er1 >conftest.err 21187 rm -f conftest.er1 21188 cat conftest.err >&5 21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21190 (exit $ac_status); } && 21191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21193 (eval $ac_try) 2>&5 21194 ac_status=$? 21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21196 (exit $ac_status); }; } && 21197 { ac_try='test -s conftest.$ac_objext' 21198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21199 (eval $ac_try) 2>&5 21200 ac_status=$? 21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21202 (exit $ac_status); }; }; then 21203 # It does; now see whether it defined to BIG_ENDIAN or not. 21204cat >conftest.$ac_ext <<_ACEOF 21205/* confdefs.h. */ 21206_ACEOF 21207cat confdefs.h >>conftest.$ac_ext 21208cat >>conftest.$ac_ext <<_ACEOF 21209/* end confdefs.h. */ 21210#include <sys/types.h> 21211#include <sys/param.h> 21212 21213int 21214main () 21215{ 21216#if BYTE_ORDER != BIG_ENDIAN 21217 not big endian 21218#endif 21219 21220 ; 21221 return 0; 21222} 21223_ACEOF 21224rm -f conftest.$ac_objext 21225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21226 (eval $ac_compile) 2>conftest.er1 21227 ac_status=$? 21228 grep -v '^ *+' conftest.er1 >conftest.err 21229 rm -f conftest.er1 21230 cat conftest.err >&5 21231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21232 (exit $ac_status); } && 21233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21235 (eval $ac_try) 2>&5 21236 ac_status=$? 21237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21238 (exit $ac_status); }; } && 21239 { ac_try='test -s conftest.$ac_objext' 21240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21241 (eval $ac_try) 2>&5 21242 ac_status=$? 21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21244 (exit $ac_status); }; }; then 21245 ac_cv_c_bigendian=yes 21246else 21247 echo "$as_me: failed program was:" >&5 21248sed 's/^/| /' conftest.$ac_ext >&5 21249 21250ac_cv_c_bigendian=no 21251fi 21252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21253else 21254 echo "$as_me: failed program was:" >&5 21255sed 's/^/| /' conftest.$ac_ext >&5 21256 21257# It does not; compile a test program. 21258if test "$cross_compiling" = yes; then 21259 # try to guess the endianness by grepping values into an object file 21260 ac_cv_c_bigendian=unknown 21261 cat >conftest.$ac_ext <<_ACEOF 21262/* confdefs.h. */ 21263_ACEOF 21264cat confdefs.h >>conftest.$ac_ext 21265cat >>conftest.$ac_ext <<_ACEOF 21266/* end confdefs.h. */ 21267short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 21268short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 21269void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 21270short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 21271short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 21272void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 21273int 21274main () 21275{ 21276 _ascii (); _ebcdic (); 21277 ; 21278 return 0; 21279} 21280_ACEOF 21281rm -f conftest.$ac_objext 21282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21283 (eval $ac_compile) 2>conftest.er1 21284 ac_status=$? 21285 grep -v '^ *+' conftest.er1 >conftest.err 21286 rm -f conftest.er1 21287 cat conftest.err >&5 21288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21289 (exit $ac_status); } && 21290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21292 (eval $ac_try) 2>&5 21293 ac_status=$? 21294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21295 (exit $ac_status); }; } && 21296 { ac_try='test -s conftest.$ac_objext' 21297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21298 (eval $ac_try) 2>&5 21299 ac_status=$? 21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21301 (exit $ac_status); }; }; then 21302 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 21303 ac_cv_c_bigendian=yes 21304fi 21305if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 21306 if test "$ac_cv_c_bigendian" = unknown; then 21307 ac_cv_c_bigendian=no 21308 else 21309 # finding both strings is unlikely to happen, but who knows? 21310 ac_cv_c_bigendian=unknown 21311 fi 21312fi 21313else 21314 echo "$as_me: failed program was:" >&5 21315sed 's/^/| /' conftest.$ac_ext >&5 21316 21317fi 21318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21319else 21320 cat >conftest.$ac_ext <<_ACEOF 21321/* confdefs.h. */ 21322_ACEOF 21323cat confdefs.h >>conftest.$ac_ext 21324cat >>conftest.$ac_ext <<_ACEOF 21325/* end confdefs.h. */ 21326int 21327main () 21328{ 21329 /* Are we little or big endian? From Harbison&Steele. */ 21330 union 21331 { 21332 long l; 21333 char c[sizeof (long)]; 21334 } u; 21335 u.l = 1; 21336 exit (u.c[sizeof (long) - 1] == 1); 21337} 21338_ACEOF 21339rm -f conftest$ac_exeext 21340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21341 (eval $ac_link) 2>&5 21342 ac_status=$? 21343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21346 (eval $ac_try) 2>&5 21347 ac_status=$? 21348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21349 (exit $ac_status); }; }; then 21350 ac_cv_c_bigendian=no 21351else 21352 echo "$as_me: program exited with status $ac_status" >&5 21353echo "$as_me: failed program was:" >&5 21354sed 's/^/| /' conftest.$ac_ext >&5 21355 21356( exit $ac_status ) 21357ac_cv_c_bigendian=yes 21358fi 21359rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21360fi 21361fi 21362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21363fi 21364echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 21365echo "${ECHO_T}$ac_cv_c_bigendian" >&6 21366case $ac_cv_c_bigendian in 21367 yes) 21368 21369cat >>confdefs.h <<\_ACEOF 21370#define WORDS_BIGENDIAN 1 21371_ACEOF 21372 ;; 21373 no) 21374 ;; 21375 *) 21376 { { echo "$as_me:$LINENO: error: unknown endianness 21377presetting ac_cv_c_bigendian=no (or yes) will help" >&5 21378echo "$as_me: error: unknown endianness 21379presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 21380 { (exit 1); exit 1; }; } ;; 21381esac 21382 21383 echo "$as_me:$LINENO: checking for long" >&5 21384echo $ECHO_N "checking for long... $ECHO_C" >&6 21385if test "${ac_cv_type_long+set}" = set; then 21386 echo $ECHO_N "(cached) $ECHO_C" >&6 21387else 21388 cat >conftest.$ac_ext <<_ACEOF 21389/* confdefs.h. */ 21390_ACEOF 21391cat confdefs.h >>conftest.$ac_ext 21392cat >>conftest.$ac_ext <<_ACEOF 21393/* end confdefs.h. */ 21394$ac_includes_default 21395int 21396main () 21397{ 21398if ((long *) 0) 21399 return 0; 21400if (sizeof (long)) 21401 return 0; 21402 ; 21403 return 0; 21404} 21405_ACEOF 21406rm -f conftest.$ac_objext 21407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21408 (eval $ac_compile) 2>conftest.er1 21409 ac_status=$? 21410 grep -v '^ *+' conftest.er1 >conftest.err 21411 rm -f conftest.er1 21412 cat conftest.err >&5 21413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21414 (exit $ac_status); } && 21415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21417 (eval $ac_try) 2>&5 21418 ac_status=$? 21419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21420 (exit $ac_status); }; } && 21421 { ac_try='test -s conftest.$ac_objext' 21422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21423 (eval $ac_try) 2>&5 21424 ac_status=$? 21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21426 (exit $ac_status); }; }; then 21427 ac_cv_type_long=yes 21428else 21429 echo "$as_me: failed program was:" >&5 21430sed 's/^/| /' conftest.$ac_ext >&5 21431 21432ac_cv_type_long=no 21433fi 21434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21435fi 21436echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 21437echo "${ECHO_T}$ac_cv_type_long" >&6 21438 21439echo "$as_me:$LINENO: checking size of long" >&5 21440echo $ECHO_N "checking size of long... $ECHO_C" >&6 21441if test "${ac_cv_sizeof_long+set}" = set; then 21442 echo $ECHO_N "(cached) $ECHO_C" >&6 21443else 21444 if test "$ac_cv_type_long" = yes; then 21445 # The cast to unsigned long works around a bug in the HP C Compiler 21446 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 21447 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 21448 # This bug is HP SR number 8606223364. 21449 if test "$cross_compiling" = yes; then 21450 # Depending upon the size, compute the lo and hi bounds. 21451cat >conftest.$ac_ext <<_ACEOF 21452/* confdefs.h. */ 21453_ACEOF 21454cat confdefs.h >>conftest.$ac_ext 21455cat >>conftest.$ac_ext <<_ACEOF 21456/* end confdefs.h. */ 21457$ac_includes_default 21458int 21459main () 21460{ 21461static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 21462test_array [0] = 0 21463 21464 ; 21465 return 0; 21466} 21467_ACEOF 21468rm -f conftest.$ac_objext 21469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21470 (eval $ac_compile) 2>conftest.er1 21471 ac_status=$? 21472 grep -v '^ *+' conftest.er1 >conftest.err 21473 rm -f conftest.er1 21474 cat conftest.err >&5 21475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21476 (exit $ac_status); } && 21477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21479 (eval $ac_try) 2>&5 21480 ac_status=$? 21481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21482 (exit $ac_status); }; } && 21483 { ac_try='test -s conftest.$ac_objext' 21484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21485 (eval $ac_try) 2>&5 21486 ac_status=$? 21487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21488 (exit $ac_status); }; }; then 21489 ac_lo=0 ac_mid=0 21490 while :; do 21491 cat >conftest.$ac_ext <<_ACEOF 21492/* confdefs.h. */ 21493_ACEOF 21494cat confdefs.h >>conftest.$ac_ext 21495cat >>conftest.$ac_ext <<_ACEOF 21496/* end confdefs.h. */ 21497$ac_includes_default 21498int 21499main () 21500{ 21501static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 21502test_array [0] = 0 21503 21504 ; 21505 return 0; 21506} 21507_ACEOF 21508rm -f conftest.$ac_objext 21509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21510 (eval $ac_compile) 2>conftest.er1 21511 ac_status=$? 21512 grep -v '^ *+' conftest.er1 >conftest.err 21513 rm -f conftest.er1 21514 cat conftest.err >&5 21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21516 (exit $ac_status); } && 21517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21519 (eval $ac_try) 2>&5 21520 ac_status=$? 21521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21522 (exit $ac_status); }; } && 21523 { ac_try='test -s conftest.$ac_objext' 21524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21525 (eval $ac_try) 2>&5 21526 ac_status=$? 21527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21528 (exit $ac_status); }; }; then 21529 ac_hi=$ac_mid; break 21530else 21531 echo "$as_me: failed program was:" >&5 21532sed 's/^/| /' conftest.$ac_ext >&5 21533 21534ac_lo=`expr $ac_mid + 1` 21535 if test $ac_lo -le $ac_mid; then 21536 ac_lo= ac_hi= 21537 break 21538 fi 21539 ac_mid=`expr 2 '*' $ac_mid + 1` 21540fi 21541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21542 done 21543else 21544 echo "$as_me: failed program was:" >&5 21545sed 's/^/| /' conftest.$ac_ext >&5 21546 21547cat >conftest.$ac_ext <<_ACEOF 21548/* confdefs.h. */ 21549_ACEOF 21550cat confdefs.h >>conftest.$ac_ext 21551cat >>conftest.$ac_ext <<_ACEOF 21552/* end confdefs.h. */ 21553$ac_includes_default 21554int 21555main () 21556{ 21557static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 21558test_array [0] = 0 21559 21560 ; 21561 return 0; 21562} 21563_ACEOF 21564rm -f conftest.$ac_objext 21565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21566 (eval $ac_compile) 2>conftest.er1 21567 ac_status=$? 21568 grep -v '^ *+' conftest.er1 >conftest.err 21569 rm -f conftest.er1 21570 cat conftest.err >&5 21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21572 (exit $ac_status); } && 21573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21575 (eval $ac_try) 2>&5 21576 ac_status=$? 21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21578 (exit $ac_status); }; } && 21579 { ac_try='test -s conftest.$ac_objext' 21580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21581 (eval $ac_try) 2>&5 21582 ac_status=$? 21583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21584 (exit $ac_status); }; }; then 21585 ac_hi=-1 ac_mid=-1 21586 while :; do 21587 cat >conftest.$ac_ext <<_ACEOF 21588/* confdefs.h. */ 21589_ACEOF 21590cat confdefs.h >>conftest.$ac_ext 21591cat >>conftest.$ac_ext <<_ACEOF 21592/* end confdefs.h. */ 21593$ac_includes_default 21594int 21595main () 21596{ 21597static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 21598test_array [0] = 0 21599 21600 ; 21601 return 0; 21602} 21603_ACEOF 21604rm -f conftest.$ac_objext 21605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21606 (eval $ac_compile) 2>conftest.er1 21607 ac_status=$? 21608 grep -v '^ *+' conftest.er1 >conftest.err 21609 rm -f conftest.er1 21610 cat conftest.err >&5 21611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21612 (exit $ac_status); } && 21613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21615 (eval $ac_try) 2>&5 21616 ac_status=$? 21617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21618 (exit $ac_status); }; } && 21619 { ac_try='test -s conftest.$ac_objext' 21620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21621 (eval $ac_try) 2>&5 21622 ac_status=$? 21623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21624 (exit $ac_status); }; }; then 21625 ac_lo=$ac_mid; break 21626else 21627 echo "$as_me: failed program was:" >&5 21628sed 's/^/| /' conftest.$ac_ext >&5 21629 21630ac_hi=`expr '(' $ac_mid ')' - 1` 21631 if test $ac_mid -le $ac_hi; then 21632 ac_lo= ac_hi= 21633 break 21634 fi 21635 ac_mid=`expr 2 '*' $ac_mid` 21636fi 21637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21638 done 21639else 21640 echo "$as_me: failed program was:" >&5 21641sed 's/^/| /' conftest.$ac_ext >&5 21642 21643ac_lo= ac_hi= 21644fi 21645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21646fi 21647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21648# Binary search between lo and hi bounds. 21649while test "x$ac_lo" != "x$ac_hi"; do 21650 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 21651 cat >conftest.$ac_ext <<_ACEOF 21652/* confdefs.h. */ 21653_ACEOF 21654cat confdefs.h >>conftest.$ac_ext 21655cat >>conftest.$ac_ext <<_ACEOF 21656/* end confdefs.h. */ 21657$ac_includes_default 21658int 21659main () 21660{ 21661static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 21662test_array [0] = 0 21663 21664 ; 21665 return 0; 21666} 21667_ACEOF 21668rm -f conftest.$ac_objext 21669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21670 (eval $ac_compile) 2>conftest.er1 21671 ac_status=$? 21672 grep -v '^ *+' conftest.er1 >conftest.err 21673 rm -f conftest.er1 21674 cat conftest.err >&5 21675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21676 (exit $ac_status); } && 21677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21679 (eval $ac_try) 2>&5 21680 ac_status=$? 21681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21682 (exit $ac_status); }; } && 21683 { ac_try='test -s conftest.$ac_objext' 21684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21685 (eval $ac_try) 2>&5 21686 ac_status=$? 21687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21688 (exit $ac_status); }; }; then 21689 ac_hi=$ac_mid 21690else 21691 echo "$as_me: failed program was:" >&5 21692sed 's/^/| /' conftest.$ac_ext >&5 21693 21694ac_lo=`expr '(' $ac_mid ')' + 1` 21695fi 21696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21697done 21698case $ac_lo in 21699?*) ac_cv_sizeof_long=$ac_lo;; 21700'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 21701See \`config.log' for more details." >&5 21702echo "$as_me: error: cannot compute sizeof (long), 77 21703See \`config.log' for more details." >&2;} 21704 { (exit 1); exit 1; }; } ;; 21705esac 21706else 21707 if test "$cross_compiling" = yes; then 21708 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 21709echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 21710 { (exit 1); exit 1; }; } 21711else 21712 cat >conftest.$ac_ext <<_ACEOF 21713/* confdefs.h. */ 21714_ACEOF 21715cat confdefs.h >>conftest.$ac_ext 21716cat >>conftest.$ac_ext <<_ACEOF 21717/* end confdefs.h. */ 21718$ac_includes_default 21719long longval () { return (long) (sizeof (long)); } 21720unsigned long ulongval () { return (long) (sizeof (long)); } 21721#include <stdio.h> 21722#include <stdlib.h> 21723int 21724main () 21725{ 21726 21727 FILE *f = fopen ("conftest.val", "w"); 21728 if (! f) 21729 exit (1); 21730 if (((long) (sizeof (long))) < 0) 21731 { 21732 long i = longval (); 21733 if (i != ((long) (sizeof (long)))) 21734 exit (1); 21735 fprintf (f, "%ld\n", i); 21736 } 21737 else 21738 { 21739 unsigned long i = ulongval (); 21740 if (i != ((long) (sizeof (long)))) 21741 exit (1); 21742 fprintf (f, "%lu\n", i); 21743 } 21744 exit (ferror (f) || fclose (f) != 0); 21745 21746 ; 21747 return 0; 21748} 21749_ACEOF 21750rm -f conftest$ac_exeext 21751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21752 (eval $ac_link) 2>&5 21753 ac_status=$? 21754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21757 (eval $ac_try) 2>&5 21758 ac_status=$? 21759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21760 (exit $ac_status); }; }; then 21761 ac_cv_sizeof_long=`cat conftest.val` 21762else 21763 echo "$as_me: program exited with status $ac_status" >&5 21764echo "$as_me: failed program was:" >&5 21765sed 's/^/| /' conftest.$ac_ext >&5 21766 21767( exit $ac_status ) 21768{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 21769See \`config.log' for more details." >&5 21770echo "$as_me: error: cannot compute sizeof (long), 77 21771See \`config.log' for more details." >&2;} 21772 { (exit 1); exit 1; }; } 21773fi 21774rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21775fi 21776fi 21777rm -f conftest.val 21778else 21779 ac_cv_sizeof_long=0 21780fi 21781fi 21782echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 21783echo "${ECHO_T}$ac_cv_sizeof_long" >&6 21784cat >>confdefs.h <<_ACEOF 21785#define SIZEOF_LONG $ac_cv_sizeof_long 21786_ACEOF 21787 21788 21789 ;; 21790esac 21791 21792echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 21793echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 21794if test "${ac_cv_header_time+set}" = set; then 21795 echo $ECHO_N "(cached) $ECHO_C" >&6 21796else 21797 cat >conftest.$ac_ext <<_ACEOF 21798/* confdefs.h. */ 21799_ACEOF 21800cat confdefs.h >>conftest.$ac_ext 21801cat >>conftest.$ac_ext <<_ACEOF 21802/* end confdefs.h. */ 21803#include <sys/types.h> 21804#include <sys/time.h> 21805#include <time.h> 21806 21807int 21808main () 21809{ 21810if ((struct tm *) 0) 21811return 0; 21812 ; 21813 return 0; 21814} 21815_ACEOF 21816rm -f conftest.$ac_objext 21817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21818 (eval $ac_compile) 2>conftest.er1 21819 ac_status=$? 21820 grep -v '^ *+' conftest.er1 >conftest.err 21821 rm -f conftest.er1 21822 cat conftest.err >&5 21823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21824 (exit $ac_status); } && 21825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21827 (eval $ac_try) 2>&5 21828 ac_status=$? 21829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21830 (exit $ac_status); }; } && 21831 { ac_try='test -s conftest.$ac_objext' 21832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21833 (eval $ac_try) 2>&5 21834 ac_status=$? 21835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21836 (exit $ac_status); }; }; then 21837 ac_cv_header_time=yes 21838else 21839 echo "$as_me: failed program was:" >&5 21840sed 's/^/| /' conftest.$ac_ext >&5 21841 21842ac_cv_header_time=no 21843fi 21844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21845fi 21846echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 21847echo "${ECHO_T}$ac_cv_header_time" >&6 21848if test $ac_cv_header_time = yes; then 21849 21850cat >>confdefs.h <<\_ACEOF 21851#define TIME_WITH_SYS_TIME 1 21852_ACEOF 21853 21854fi 21855 21856 21857if test $ac_cv_c_compiler_gnu = yes; then 21858 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 21859echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 21860if test "${ac_cv_prog_gcc_traditional+set}" = set; then 21861 echo $ECHO_N "(cached) $ECHO_C" >&6 21862else 21863 ac_pattern="Autoconf.*'x'" 21864 cat >conftest.$ac_ext <<_ACEOF 21865/* confdefs.h. */ 21866_ACEOF 21867cat confdefs.h >>conftest.$ac_ext 21868cat >>conftest.$ac_ext <<_ACEOF 21869/* end confdefs.h. */ 21870#include <sgtty.h> 21871Autoconf TIOCGETP 21872_ACEOF 21873if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21874 $EGREP "$ac_pattern" >/dev/null 2>&1; then 21875 ac_cv_prog_gcc_traditional=yes 21876else 21877 ac_cv_prog_gcc_traditional=no 21878fi 21879rm -f conftest* 21880 21881 21882 if test $ac_cv_prog_gcc_traditional = no; then 21883 cat >conftest.$ac_ext <<_ACEOF 21884/* confdefs.h. */ 21885_ACEOF 21886cat confdefs.h >>conftest.$ac_ext 21887cat >>conftest.$ac_ext <<_ACEOF 21888/* end confdefs.h. */ 21889#include <termio.h> 21890Autoconf TCGETA 21891_ACEOF 21892if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21893 $EGREP "$ac_pattern" >/dev/null 2>&1; then 21894 ac_cv_prog_gcc_traditional=yes 21895fi 21896rm -f conftest* 21897 21898 fi 21899fi 21900echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 21901echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 21902 if test $ac_cv_prog_gcc_traditional = yes; then 21903 CC="$CC -traditional" 21904 fi 21905fi 21906 21907 21908for ac_func in vprintf 21909do 21910as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21911echo "$as_me:$LINENO: checking for $ac_func" >&5 21912echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 21913if eval "test \"\${$as_ac_var+set}\" = set"; then 21914 echo $ECHO_N "(cached) $ECHO_C" >&6 21915else 21916 cat >conftest.$ac_ext <<_ACEOF 21917/* confdefs.h. */ 21918_ACEOF 21919cat confdefs.h >>conftest.$ac_ext 21920cat >>conftest.$ac_ext <<_ACEOF 21921/* end confdefs.h. */ 21922/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21923 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21924#define $ac_func innocuous_$ac_func 21925 21926/* System header to define __stub macros and hopefully few prototypes, 21927 which can conflict with char $ac_func (); below. 21928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21929 <limits.h> exists even on freestanding compilers. */ 21930 21931#ifdef __STDC__ 21932# include <limits.h> 21933#else 21934# include <assert.h> 21935#endif 21936 21937#undef $ac_func 21938 21939/* Override any gcc2 internal prototype to avoid an error. */ 21940#ifdef __cplusplus 21941extern "C" 21942{ 21943#endif 21944/* We use char because int might match the return type of a gcc2 21945 builtin and then its argument prototype would still apply. */ 21946char $ac_func (); 21947/* The GNU C library defines this for functions which it implements 21948 to always fail with ENOSYS. Some functions are actually named 21949 something starting with __ and the normal name is an alias. */ 21950#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 21951choke me 21952#else 21953char (*f) () = $ac_func; 21954#endif 21955#ifdef __cplusplus 21956} 21957#endif 21958 21959int 21960main () 21961{ 21962return f != $ac_func; 21963 ; 21964 return 0; 21965} 21966_ACEOF 21967rm -f conftest.$ac_objext conftest$ac_exeext 21968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21969 (eval $ac_link) 2>conftest.er1 21970 ac_status=$? 21971 grep -v '^ *+' conftest.er1 >conftest.err 21972 rm -f conftest.er1 21973 cat conftest.err >&5 21974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21975 (exit $ac_status); } && 21976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21978 (eval $ac_try) 2>&5 21979 ac_status=$? 21980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21981 (exit $ac_status); }; } && 21982 { ac_try='test -s conftest$ac_exeext' 21983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21984 (eval $ac_try) 2>&5 21985 ac_status=$? 21986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21987 (exit $ac_status); }; }; then 21988 eval "$as_ac_var=yes" 21989else 21990 echo "$as_me: failed program was:" >&5 21991sed 's/^/| /' conftest.$ac_ext >&5 21992 21993eval "$as_ac_var=no" 21994fi 21995rm -f conftest.err conftest.$ac_objext \ 21996 conftest$ac_exeext conftest.$ac_ext 21997fi 21998echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 21999echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 22000if test `eval echo '${'$as_ac_var'}'` = yes; then 22001 cat >>confdefs.h <<_ACEOF 22002#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 22003_ACEOF 22004 22005echo "$as_me:$LINENO: checking for _doprnt" >&5 22006echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 22007if test "${ac_cv_func__doprnt+set}" = set; then 22008 echo $ECHO_N "(cached) $ECHO_C" >&6 22009else 22010 cat >conftest.$ac_ext <<_ACEOF 22011/* confdefs.h. */ 22012_ACEOF 22013cat confdefs.h >>conftest.$ac_ext 22014cat >>conftest.$ac_ext <<_ACEOF 22015/* end confdefs.h. */ 22016/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 22017 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22018#define _doprnt innocuous__doprnt 22019 22020/* System header to define __stub macros and hopefully few prototypes, 22021 which can conflict with char _doprnt (); below. 22022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22023 <limits.h> exists even on freestanding compilers. */ 22024 22025#ifdef __STDC__ 22026# include <limits.h> 22027#else 22028# include <assert.h> 22029#endif 22030 22031#undef _doprnt 22032 22033/* Override any gcc2 internal prototype to avoid an error. */ 22034#ifdef __cplusplus 22035extern "C" 22036{ 22037#endif 22038/* We use char because int might match the return type of a gcc2 22039 builtin and then its argument prototype would still apply. */ 22040char _doprnt (); 22041/* The GNU C library defines this for functions which it implements 22042 to always fail with ENOSYS. Some functions are actually named 22043 something starting with __ and the normal name is an alias. */ 22044#if defined (__stub__doprnt) || defined (__stub____doprnt) 22045choke me 22046#else 22047char (*f) () = _doprnt; 22048#endif 22049#ifdef __cplusplus 22050} 22051#endif 22052 22053int 22054main () 22055{ 22056return f != _doprnt; 22057 ; 22058 return 0; 22059} 22060_ACEOF 22061rm -f conftest.$ac_objext conftest$ac_exeext 22062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22063 (eval $ac_link) 2>conftest.er1 22064 ac_status=$? 22065 grep -v '^ *+' conftest.er1 >conftest.err 22066 rm -f conftest.er1 22067 cat conftest.err >&5 22068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22069 (exit $ac_status); } && 22070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22072 (eval $ac_try) 2>&5 22073 ac_status=$? 22074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22075 (exit $ac_status); }; } && 22076 { ac_try='test -s conftest$ac_exeext' 22077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22078 (eval $ac_try) 2>&5 22079 ac_status=$? 22080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22081 (exit $ac_status); }; }; then 22082 ac_cv_func__doprnt=yes 22083else 22084 echo "$as_me: failed program was:" >&5 22085sed 's/^/| /' conftest.$ac_ext >&5 22086 22087ac_cv_func__doprnt=no 22088fi 22089rm -f conftest.err conftest.$ac_objext \ 22090 conftest$ac_exeext conftest.$ac_ext 22091fi 22092echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 22093echo "${ECHO_T}$ac_cv_func__doprnt" >&6 22094if test $ac_cv_func__doprnt = yes; then 22095 22096cat >>confdefs.h <<\_ACEOF 22097#define HAVE_DOPRNT 1 22098_ACEOF 22099 22100fi 22101 22102fi 22103done 22104 22105 22106 22107 22108 22109 22110 22111 22112 22113 22114 22115 22116for ac_func in gethostbyname gethostbyname_r mkdir socket strerror strstr strtol snprintf getmntinfo strtoul 22117do 22118as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 22119echo "$as_me:$LINENO: checking for $ac_func" >&5 22120echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 22121if eval "test \"\${$as_ac_var+set}\" = set"; then 22122 echo $ECHO_N "(cached) $ECHO_C" >&6 22123else 22124 cat >conftest.$ac_ext <<_ACEOF 22125/* confdefs.h. */ 22126_ACEOF 22127cat confdefs.h >>conftest.$ac_ext 22128cat >>conftest.$ac_ext <<_ACEOF 22129/* end confdefs.h. */ 22130/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22131 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22132#define $ac_func innocuous_$ac_func 22133 22134/* System header to define __stub macros and hopefully few prototypes, 22135 which can conflict with char $ac_func (); below. 22136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22137 <limits.h> exists even on freestanding compilers. */ 22138 22139#ifdef __STDC__ 22140# include <limits.h> 22141#else 22142# include <assert.h> 22143#endif 22144 22145#undef $ac_func 22146 22147/* Override any gcc2 internal prototype to avoid an error. */ 22148#ifdef __cplusplus 22149extern "C" 22150{ 22151#endif 22152/* We use char because int might match the return type of a gcc2 22153 builtin and then its argument prototype would still apply. */ 22154char $ac_func (); 22155/* The GNU C library defines this for functions which it implements 22156 to always fail with ENOSYS. Some functions are actually named 22157 something starting with __ and the normal name is an alias. */ 22158#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 22159choke me 22160#else 22161char (*f) () = $ac_func; 22162#endif 22163#ifdef __cplusplus 22164} 22165#endif 22166 22167int 22168main () 22169{ 22170return f != $ac_func; 22171 ; 22172 return 0; 22173} 22174_ACEOF 22175rm -f conftest.$ac_objext conftest$ac_exeext 22176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22177 (eval $ac_link) 2>conftest.er1 22178 ac_status=$? 22179 grep -v '^ *+' conftest.er1 >conftest.err 22180 rm -f conftest.er1 22181 cat conftest.err >&5 22182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22183 (exit $ac_status); } && 22184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22186 (eval $ac_try) 2>&5 22187 ac_status=$? 22188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22189 (exit $ac_status); }; } && 22190 { ac_try='test -s conftest$ac_exeext' 22191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22192 (eval $ac_try) 2>&5 22193 ac_status=$? 22194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22195 (exit $ac_status); }; }; then 22196 eval "$as_ac_var=yes" 22197else 22198 echo "$as_me: failed program was:" >&5 22199sed 's/^/| /' conftest.$ac_ext >&5 22200 22201eval "$as_ac_var=no" 22202fi 22203rm -f conftest.err conftest.$ac_objext \ 22204 conftest$ac_exeext conftest.$ac_ext 22205fi 22206echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 22207echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 22208if test `eval echo '${'$as_ac_var'}'` = yes; then 22209 cat >>confdefs.h <<_ACEOF 22210#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 22211_ACEOF 22212 22213fi 22214done 22215 22216# getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware. 22217echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5 22218echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6 22219if test "${ac_cv_lib_sun_getmntent+set}" = set; then 22220 echo $ECHO_N "(cached) $ECHO_C" >&6 22221else 22222 ac_check_lib_save_LIBS=$LIBS 22223LIBS="-lsun $LIBS" 22224cat >conftest.$ac_ext <<_ACEOF 22225/* confdefs.h. */ 22226_ACEOF 22227cat confdefs.h >>conftest.$ac_ext 22228cat >>conftest.$ac_ext <<_ACEOF 22229/* end confdefs.h. */ 22230 22231/* Override any gcc2 internal prototype to avoid an error. */ 22232#ifdef __cplusplus 22233extern "C" 22234#endif 22235/* We use char because int might match the return type of a gcc2 22236 builtin and then its argument prototype would still apply. */ 22237char getmntent (); 22238int 22239main () 22240{ 22241getmntent (); 22242 ; 22243 return 0; 22244} 22245_ACEOF 22246rm -f conftest.$ac_objext conftest$ac_exeext 22247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22248 (eval $ac_link) 2>conftest.er1 22249 ac_status=$? 22250 grep -v '^ *+' conftest.er1 >conftest.err 22251 rm -f conftest.er1 22252 cat conftest.err >&5 22253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22254 (exit $ac_status); } && 22255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22257 (eval $ac_try) 2>&5 22258 ac_status=$? 22259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22260 (exit $ac_status); }; } && 22261 { ac_try='test -s conftest$ac_exeext' 22262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22263 (eval $ac_try) 2>&5 22264 ac_status=$? 22265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22266 (exit $ac_status); }; }; then 22267 ac_cv_lib_sun_getmntent=yes 22268else 22269 echo "$as_me: failed program was:" >&5 22270sed 's/^/| /' conftest.$ac_ext >&5 22271 22272ac_cv_lib_sun_getmntent=no 22273fi 22274rm -f conftest.err conftest.$ac_objext \ 22275 conftest$ac_exeext conftest.$ac_ext 22276LIBS=$ac_check_lib_save_LIBS 22277fi 22278echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5 22279echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6 22280if test $ac_cv_lib_sun_getmntent = yes; then 22281 LIBS="-lsun $LIBS" 22282else 22283 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5 22284echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6 22285if test "${ac_cv_lib_seq_getmntent+set}" = set; then 22286 echo $ECHO_N "(cached) $ECHO_C" >&6 22287else 22288 ac_check_lib_save_LIBS=$LIBS 22289LIBS="-lseq $LIBS" 22290cat >conftest.$ac_ext <<_ACEOF 22291/* confdefs.h. */ 22292_ACEOF 22293cat confdefs.h >>conftest.$ac_ext 22294cat >>conftest.$ac_ext <<_ACEOF 22295/* end confdefs.h. */ 22296 22297/* Override any gcc2 internal prototype to avoid an error. */ 22298#ifdef __cplusplus 22299extern "C" 22300#endif 22301/* We use char because int might match the return type of a gcc2 22302 builtin and then its argument prototype would still apply. */ 22303char getmntent (); 22304int 22305main () 22306{ 22307getmntent (); 22308 ; 22309 return 0; 22310} 22311_ACEOF 22312rm -f conftest.$ac_objext conftest$ac_exeext 22313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22314 (eval $ac_link) 2>conftest.er1 22315 ac_status=$? 22316 grep -v '^ *+' conftest.er1 >conftest.err 22317 rm -f conftest.er1 22318 cat conftest.err >&5 22319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22320 (exit $ac_status); } && 22321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22323 (eval $ac_try) 2>&5 22324 ac_status=$? 22325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22326 (exit $ac_status); }; } && 22327 { ac_try='test -s conftest$ac_exeext' 22328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22329 (eval $ac_try) 2>&5 22330 ac_status=$? 22331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22332 (exit $ac_status); }; }; then 22333 ac_cv_lib_seq_getmntent=yes 22334else 22335 echo "$as_me: failed program was:" >&5 22336sed 's/^/| /' conftest.$ac_ext >&5 22337 22338ac_cv_lib_seq_getmntent=no 22339fi 22340rm -f conftest.err conftest.$ac_objext \ 22341 conftest$ac_exeext conftest.$ac_ext 22342LIBS=$ac_check_lib_save_LIBS 22343fi 22344echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5 22345echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6 22346if test $ac_cv_lib_seq_getmntent = yes; then 22347 LIBS="-lseq $LIBS" 22348else 22349 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5 22350echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6 22351if test "${ac_cv_lib_gen_getmntent+set}" = set; then 22352 echo $ECHO_N "(cached) $ECHO_C" >&6 22353else 22354 ac_check_lib_save_LIBS=$LIBS 22355LIBS="-lgen $LIBS" 22356cat >conftest.$ac_ext <<_ACEOF 22357/* confdefs.h. */ 22358_ACEOF 22359cat confdefs.h >>conftest.$ac_ext 22360cat >>conftest.$ac_ext <<_ACEOF 22361/* end confdefs.h. */ 22362 22363/* Override any gcc2 internal prototype to avoid an error. */ 22364#ifdef __cplusplus 22365extern "C" 22366#endif 22367/* We use char because int might match the return type of a gcc2 22368 builtin and then its argument prototype would still apply. */ 22369char getmntent (); 22370int 22371main () 22372{ 22373getmntent (); 22374 ; 22375 return 0; 22376} 22377_ACEOF 22378rm -f conftest.$ac_objext conftest$ac_exeext 22379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22380 (eval $ac_link) 2>conftest.er1 22381 ac_status=$? 22382 grep -v '^ *+' conftest.er1 >conftest.err 22383 rm -f conftest.er1 22384 cat conftest.err >&5 22385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22386 (exit $ac_status); } && 22387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22389 (eval $ac_try) 2>&5 22390 ac_status=$? 22391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22392 (exit $ac_status); }; } && 22393 { ac_try='test -s conftest$ac_exeext' 22394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22395 (eval $ac_try) 2>&5 22396 ac_status=$? 22397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22398 (exit $ac_status); }; }; then 22399 ac_cv_lib_gen_getmntent=yes 22400else 22401 echo "$as_me: failed program was:" >&5 22402sed 's/^/| /' conftest.$ac_ext >&5 22403 22404ac_cv_lib_gen_getmntent=no 22405fi 22406rm -f conftest.err conftest.$ac_objext \ 22407 conftest$ac_exeext conftest.$ac_ext 22408LIBS=$ac_check_lib_save_LIBS 22409fi 22410echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5 22411echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6 22412if test $ac_cv_lib_gen_getmntent = yes; then 22413 LIBS="-lgen $LIBS" 22414fi 22415 22416fi 22417 22418fi 22419 22420 22421for ac_func in getmntent 22422do 22423as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 22424echo "$as_me:$LINENO: checking for $ac_func" >&5 22425echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 22426if eval "test \"\${$as_ac_var+set}\" = set"; then 22427 echo $ECHO_N "(cached) $ECHO_C" >&6 22428else 22429 cat >conftest.$ac_ext <<_ACEOF 22430/* confdefs.h. */ 22431_ACEOF 22432cat confdefs.h >>conftest.$ac_ext 22433cat >>conftest.$ac_ext <<_ACEOF 22434/* end confdefs.h. */ 22435/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22436 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22437#define $ac_func innocuous_$ac_func 22438 22439/* System header to define __stub macros and hopefully few prototypes, 22440 which can conflict with char $ac_func (); below. 22441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22442 <limits.h> exists even on freestanding compilers. */ 22443 22444#ifdef __STDC__ 22445# include <limits.h> 22446#else 22447# include <assert.h> 22448#endif 22449 22450#undef $ac_func 22451 22452/* Override any gcc2 internal prototype to avoid an error. */ 22453#ifdef __cplusplus 22454extern "C" 22455{ 22456#endif 22457/* We use char because int might match the return type of a gcc2 22458 builtin and then its argument prototype would still apply. */ 22459char $ac_func (); 22460/* The GNU C library defines this for functions which it implements 22461 to always fail with ENOSYS. Some functions are actually named 22462 something starting with __ and the normal name is an alias. */ 22463#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 22464choke me 22465#else 22466char (*f) () = $ac_func; 22467#endif 22468#ifdef __cplusplus 22469} 22470#endif 22471 22472int 22473main () 22474{ 22475return f != $ac_func; 22476 ; 22477 return 0; 22478} 22479_ACEOF 22480rm -f conftest.$ac_objext conftest$ac_exeext 22481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22482 (eval $ac_link) 2>conftest.er1 22483 ac_status=$? 22484 grep -v '^ *+' conftest.er1 >conftest.err 22485 rm -f conftest.er1 22486 cat conftest.err >&5 22487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22488 (exit $ac_status); } && 22489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22491 (eval $ac_try) 2>&5 22492 ac_status=$? 22493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22494 (exit $ac_status); }; } && 22495 { ac_try='test -s conftest$ac_exeext' 22496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22497 (eval $ac_try) 2>&5 22498 ac_status=$? 22499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22500 (exit $ac_status); }; }; then 22501 eval "$as_ac_var=yes" 22502else 22503 echo "$as_me: failed program was:" >&5 22504sed 's/^/| /' conftest.$ac_ext >&5 22505 22506eval "$as_ac_var=no" 22507fi 22508rm -f conftest.err conftest.$ac_objext \ 22509 conftest$ac_exeext conftest.$ac_ext 22510fi 22511echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 22512echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 22513if test `eval echo '${'$as_ac_var'}'` = yes; then 22514 cat >>confdefs.h <<_ACEOF 22515#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 22516_ACEOF 22517 22518fi 22519done 22520 22521 22522 22523if test "$threads" != "no" 22524then 22525 22526cat >>confdefs.h <<\_ACEOF 22527#define HAVE_PTHREAD 22528_ACEOF 22529 22530 CFLAGS="$CFLAGS -D_REENTRANT" 22531 LIBRARY_LIB="$threads $LIBRARY_LIB" 22532 REENTRANT="-D_REENTRANT" 22533fi 22534 22535 22536 22537 22538 22539 22540 22541 22542 22543 22544 ac_config_files="$ac_config_files libcdaudio.pc libcdaudio-config Makefile src/Makefile src/cdaudio.h" 22545 ac_config_commands="$ac_config_commands default" 22546cat >confcache <<\_ACEOF 22547# This file is a shell script that caches the results of configure 22548# tests run on this system so they can be shared between configure 22549# scripts and configure runs, see configure's option --config-cache. 22550# It is not useful on other systems. If it contains results you don't 22551# want to keep, you may remove or edit it. 22552# 22553# config.status only pays attention to the cache file if you give it 22554# the --recheck option to rerun configure. 22555# 22556# `ac_cv_env_foo' variables (set or unset) will be overridden when 22557# loading this file, other *unset* `ac_cv_foo' will be assigned the 22558# following values. 22559 22560_ACEOF 22561 22562# The following way of writing the cache mishandles newlines in values, 22563# but we know of no workaround that is simple, portable, and efficient. 22564# So, don't put newlines in cache variables' values. 22565# Ultrix sh set writes to stderr and can't be redirected directly, 22566# and sets the high bit in the cache file unless we assign to the vars. 22567{ 22568 (set) 2>&1 | 22569 case `(ac_space=' '; set | grep ac_space) 2>&1` in 22570 *ac_space=\ *) 22571 # `set' does not quote correctly, so add quotes (double-quote 22572 # substitution turns \\\\ into \\, and sed turns \\ into \). 22573 sed -n \ 22574 "s/'/'\\\\''/g; 22575 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22576 ;; 22577 *) 22578 # `set' quotes correctly as required by POSIX, so do not add quotes. 22579 sed -n \ 22580 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 22581 ;; 22582 esac; 22583} | 22584 sed ' 22585 t clear 22586 : clear 22587 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22588 t end 22589 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22590 : end' >>confcache 22591if diff $cache_file confcache >/dev/null 2>&1; then :; else 22592 if test -w $cache_file; then 22593 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 22594 cat confcache >$cache_file 22595 else 22596 echo "not updating unwritable cache $cache_file" 22597 fi 22598fi 22599rm -f confcache 22600 22601test "x$prefix" = xNONE && prefix=$ac_default_prefix 22602# Let make expand exec_prefix. 22603test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22604 22605# VPATH may cause trouble with some makes, so we remove $(srcdir), 22606# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22607# trailing colons and then remove the whole line if VPATH becomes empty 22608# (actually we leave an empty line to preserve line numbers). 22609if test "x$srcdir" = x.; then 22610 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22611s/:*\$(srcdir):*/:/; 22612s/:*\${srcdir}:*/:/; 22613s/:*@srcdir@:*/:/; 22614s/^\([^=]*=[ ]*\):*/\1/; 22615s/:*$//; 22616s/^[^=]*=[ ]*$//; 22617}' 22618fi 22619 22620DEFS=-DHAVE_CONFIG_H 22621 22622ac_libobjs= 22623ac_ltlibobjs= 22624for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22625 # 1. Remove the extension, and $U if already installed. 22626 ac_i=`echo "$ac_i" | 22627 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 22628 # 2. Add them. 22629 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 22630 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 22631done 22632LIBOBJS=$ac_libobjs 22633 22634LTLIBOBJS=$ac_ltlibobjs 22635 22636 22637if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 22638 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 22639Usually this means the macro was only invoked conditionally." >&5 22640echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 22641Usually this means the macro was only invoked conditionally." >&2;} 22642 { (exit 1); exit 1; }; } 22643fi 22644if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22645 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 22646Usually this means the macro was only invoked conditionally." >&5 22647echo "$as_me: error: conditional \"AMDEP\" was never defined. 22648Usually this means the macro was only invoked conditionally." >&2;} 22649 { (exit 1); exit 1; }; } 22650fi 22651if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22652 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22653Usually this means the macro was only invoked conditionally." >&5 22654echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22655Usually this means the macro was only invoked conditionally." >&2;} 22656 { (exit 1); exit 1; }; } 22657fi 22658if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22659 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22660Usually this means the macro was only invoked conditionally." >&5 22661echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22662Usually this means the macro was only invoked conditionally." >&2;} 22663 { (exit 1); exit 1; }; } 22664fi 22665if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 22666 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 22667Usually this means the macro was only invoked conditionally." >&5 22668echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 22669Usually this means the macro was only invoked conditionally." >&2;} 22670 { (exit 1); exit 1; }; } 22671fi 22672if test -z "${IRIX_TRUE}" && test -z "${IRIX_FALSE}"; then 22673 { { echo "$as_me:$LINENO: error: conditional \"IRIX\" was never defined. 22674Usually this means the macro was only invoked conditionally." >&5 22675echo "$as_me: error: conditional \"IRIX\" was never defined. 22676Usually this means the macro was only invoked conditionally." >&2;} 22677 { (exit 1); exit 1; }; } 22678fi 22679if test -z "${BEOS_TRUE}" && test -z "${BEOS_FALSE}"; then 22680 { { echo "$as_me:$LINENO: error: conditional \"BEOS\" was never defined. 22681Usually this means the macro was only invoked conditionally." >&5 22682echo "$as_me: error: conditional \"BEOS\" was never defined. 22683Usually this means the macro was only invoked conditionally." >&2;} 22684 { (exit 1); exit 1; }; } 22685fi 22686 22687: ${CONFIG_STATUS=./config.status} 22688ac_clean_files_save=$ac_clean_files 22689ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22690{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 22691echo "$as_me: creating $CONFIG_STATUS" >&6;} 22692cat >$CONFIG_STATUS <<_ACEOF 22693#! $SHELL 22694# Generated by $as_me. 22695# Run this file to recreate the current configuration. 22696# Compiler output produced by configure, useful for debugging 22697# configure, is in config.log if it exists. 22698 22699debug=false 22700ac_cs_recheck=false 22701ac_cs_silent=false 22702SHELL=\${CONFIG_SHELL-$SHELL} 22703_ACEOF 22704 22705cat >>$CONFIG_STATUS <<\_ACEOF 22706## --------------------- ## 22707## M4sh Initialization. ## 22708## --------------------- ## 22709 22710# Be Bourne compatible 22711if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22712 emulate sh 22713 NULLCMD=: 22714 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22715 # is contrary to our usage. Disable this feature. 22716 alias -g '${1+"$@"}'='"$@"' 22717elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22718 set -o posix 22719fi 22720DUALCASE=1; export DUALCASE # for MKS sh 22721 22722# Support unset when possible. 22723if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 22724 as_unset=unset 22725else 22726 as_unset=false 22727fi 22728 22729 22730# Work around bugs in pre-3.0 UWIN ksh. 22731$as_unset ENV MAIL MAILPATH 22732PS1='$ ' 22733PS2='> ' 22734PS4='+ ' 22735 22736# NLS nuisances. 22737for as_var in \ 22738 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 22739 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 22740 LC_TELEPHONE LC_TIME 22741do 22742 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 22743 eval $as_var=C; export $as_var 22744 else 22745 $as_unset $as_var 22746 fi 22747done 22748 22749# Required to use basename. 22750if expr a : '\(a\)' >/dev/null 2>&1; then 22751 as_expr=expr 22752else 22753 as_expr=false 22754fi 22755 22756if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 22757 as_basename=basename 22758else 22759 as_basename=false 22760fi 22761 22762 22763# Name of the executable. 22764as_me=`$as_basename "$0" || 22765$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22766 X"$0" : 'X\(//\)$' \| \ 22767 X"$0" : 'X\(/\)$' \| \ 22768 . : '\(.\)' 2>/dev/null || 22769echo X/"$0" | 22770 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 22771 /^X\/\(\/\/\)$/{ s//\1/; q; } 22772 /^X\/\(\/\).*/{ s//\1/; q; } 22773 s/.*/./; q'` 22774 22775 22776# PATH needs CR, and LINENO needs CR and PATH. 22777# Avoid depending upon Character Ranges. 22778as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22779as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22780as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22781as_cr_digits='0123456789' 22782as_cr_alnum=$as_cr_Letters$as_cr_digits 22783 22784# The user is always right. 22785if test "${PATH_SEPARATOR+set}" != set; then 22786 echo "#! /bin/sh" >conf$$.sh 22787 echo "exit 0" >>conf$$.sh 22788 chmod +x conf$$.sh 22789 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 22790 PATH_SEPARATOR=';' 22791 else 22792 PATH_SEPARATOR=: 22793 fi 22794 rm -f conf$$.sh 22795fi 22796 22797 22798 as_lineno_1=$LINENO 22799 as_lineno_2=$LINENO 22800 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 22801 test "x$as_lineno_1" != "x$as_lineno_2" && 22802 test "x$as_lineno_3" = "x$as_lineno_2" || { 22803 # Find who we are. Look in the path if we contain no path at all 22804 # relative or not. 22805 case $0 in 22806 *[\\/]* ) as_myself=$0 ;; 22807 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22808for as_dir in $PATH 22809do 22810 IFS=$as_save_IFS 22811 test -z "$as_dir" && as_dir=. 22812 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22813done 22814 22815 ;; 22816 esac 22817 # We did not find ourselves, most probably we were run as `sh COMMAND' 22818 # in which case we are not to be found in the path. 22819 if test "x$as_myself" = x; then 22820 as_myself=$0 22821 fi 22822 if test ! -f "$as_myself"; then 22823 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 22824echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 22825 { (exit 1); exit 1; }; } 22826 fi 22827 case $CONFIG_SHELL in 22828 '') 22829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22830for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 22831do 22832 IFS=$as_save_IFS 22833 test -z "$as_dir" && as_dir=. 22834 for as_base in sh bash ksh sh5; do 22835 case $as_dir in 22836 /*) 22837 if ("$as_dir/$as_base" -c ' 22838 as_lineno_1=$LINENO 22839 as_lineno_2=$LINENO 22840 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 22841 test "x$as_lineno_1" != "x$as_lineno_2" && 22842 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 22843 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 22844 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 22845 CONFIG_SHELL=$as_dir/$as_base 22846 export CONFIG_SHELL 22847 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 22848 fi;; 22849 esac 22850 done 22851done 22852;; 22853 esac 22854 22855 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22856 # uniformly replaced by the line number. The first 'sed' inserts a 22857 # line-number line before each line; the second 'sed' does the real 22858 # work. The second script uses 'N' to pair each line-number line 22859 # with the numbered line, and appends trailing '-' during 22860 # substitution so that $LINENO is not a special case at line end. 22861 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22862 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 22863 sed '=' <$as_myself | 22864 sed ' 22865 N 22866 s,$,-, 22867 : loop 22868 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 22869 t loop 22870 s,-$,, 22871 s,^['$as_cr_digits']*\n,, 22872 ' >$as_me.lineno && 22873 chmod +x $as_me.lineno || 22874 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 22875echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 22876 { (exit 1); exit 1; }; } 22877 22878 # Don't try to exec as it changes $[0], causing all sort of problems 22879 # (the dirname of $[0] is not the place where we might find the 22880 # original and so on. Autoconf is especially sensible to this). 22881 . ./$as_me.lineno 22882 # Exit status is that of the last command. 22883 exit 22884} 22885 22886 22887case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 22888 *c*,-n*) ECHO_N= ECHO_C=' 22889' ECHO_T=' ' ;; 22890 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 22891 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 22892esac 22893 22894if expr a : '\(a\)' >/dev/null 2>&1; then 22895 as_expr=expr 22896else 22897 as_expr=false 22898fi 22899 22900rm -f conf$$ conf$$.exe conf$$.file 22901echo >conf$$.file 22902if ln -s conf$$.file conf$$ 2>/dev/null; then 22903 # We could just check for DJGPP; but this test a) works b) is more generic 22904 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 22905 if test -f conf$$.exe; then 22906 # Don't use ln at all; we don't have any links 22907 as_ln_s='cp -p' 22908 else 22909 as_ln_s='ln -s' 22910 fi 22911elif ln conf$$.file conf$$ 2>/dev/null; then 22912 as_ln_s=ln 22913else 22914 as_ln_s='cp -p' 22915fi 22916rm -f conf$$ conf$$.exe conf$$.file 22917 22918if mkdir -p . 2>/dev/null; then 22919 as_mkdir_p=: 22920else 22921 test -d ./-p && rmdir ./-p 22922 as_mkdir_p=false 22923fi 22924 22925as_executable_p="test -f" 22926 22927# Sed expression to map a string onto a valid CPP name. 22928as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22929 22930# Sed expression to map a string onto a valid variable name. 22931as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22932 22933 22934# IFS 22935# We need space, tab and new line, in precisely that order. 22936as_nl=' 22937' 22938IFS=" $as_nl" 22939 22940# CDPATH. 22941$as_unset CDPATH 22942 22943exec 6>&1 22944 22945# Open the log real soon, to keep \$[0] and so on meaningful, and to 22946# report actual input values of CONFIG_FILES etc. instead of their 22947# values after options handling. Logging --version etc. is OK. 22948exec 5>>config.log 22949{ 22950 echo 22951 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22952## Running $as_me. ## 22953_ASBOX 22954} >&5 22955cat >&5 <<_CSEOF 22956 22957This file was extended by $as_me, which was 22958generated by GNU Autoconf 2.59. Invocation command line was 22959 22960 CONFIG_FILES = $CONFIG_FILES 22961 CONFIG_HEADERS = $CONFIG_HEADERS 22962 CONFIG_LINKS = $CONFIG_LINKS 22963 CONFIG_COMMANDS = $CONFIG_COMMANDS 22964 $ $0 $@ 22965 22966_CSEOF 22967echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 22968echo >&5 22969_ACEOF 22970 22971# Files that config.status was made for. 22972if test -n "$ac_config_files"; then 22973 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 22974fi 22975 22976if test -n "$ac_config_headers"; then 22977 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 22978fi 22979 22980if test -n "$ac_config_links"; then 22981 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 22982fi 22983 22984if test -n "$ac_config_commands"; then 22985 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 22986fi 22987 22988cat >>$CONFIG_STATUS <<\_ACEOF 22989 22990ac_cs_usage="\ 22991\`$as_me' instantiates files from templates according to the 22992current configuration. 22993 22994Usage: $0 [OPTIONS] [FILE]... 22995 22996 -h, --help print this help, then exit 22997 -V, --version print version number, then exit 22998 -q, --quiet do not print progress messages 22999 -d, --debug don't remove temporary files 23000 --recheck update $as_me by reconfiguring in the same conditions 23001 --file=FILE[:TEMPLATE] 23002 instantiate the configuration file FILE 23003 --header=FILE[:TEMPLATE] 23004 instantiate the configuration header FILE 23005 23006Configuration files: 23007$config_files 23008 23009Configuration headers: 23010$config_headers 23011 23012Configuration commands: 23013$config_commands 23014 23015Report bugs to <bug-autoconf@gnu.org>." 23016_ACEOF 23017 23018cat >>$CONFIG_STATUS <<_ACEOF 23019ac_cs_version="\\ 23020config.status 23021configured by $0, generated by GNU Autoconf 2.59, 23022 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 23023 23024Copyright (C) 2003 Free Software Foundation, Inc. 23025This config.status script is free software; the Free Software Foundation 23026gives unlimited permission to copy, distribute and modify it." 23027srcdir=$srcdir 23028INSTALL="$INSTALL" 23029_ACEOF 23030 23031cat >>$CONFIG_STATUS <<\_ACEOF 23032# If no file are specified by the user, then we need to provide default 23033# value. By we need to know if files were specified by the user. 23034ac_need_defaults=: 23035while test $# != 0 23036do 23037 case $1 in 23038 --*=*) 23039 ac_option=`expr "x$1" : 'x\([^=]*\)='` 23040 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 23041 ac_shift=: 23042 ;; 23043 -*) 23044 ac_option=$1 23045 ac_optarg=$2 23046 ac_shift=shift 23047 ;; 23048 *) # This is not an option, so the user has probably given explicit 23049 # arguments. 23050 ac_option=$1 23051 ac_need_defaults=false;; 23052 esac 23053 23054 case $ac_option in 23055 # Handling of the options. 23056_ACEOF 23057cat >>$CONFIG_STATUS <<\_ACEOF 23058 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 23059 ac_cs_recheck=: ;; 23060 --version | --vers* | -V ) 23061 echo "$ac_cs_version"; exit 0 ;; 23062 --he | --h) 23063 # Conflict between --help and --header 23064 { { echo "$as_me:$LINENO: error: ambiguous option: $1 23065Try \`$0 --help' for more information." >&5 23066echo "$as_me: error: ambiguous option: $1 23067Try \`$0 --help' for more information." >&2;} 23068 { (exit 1); exit 1; }; };; 23069 --help | --hel | -h ) 23070 echo "$ac_cs_usage"; exit 0 ;; 23071 --debug | --d* | -d ) 23072 debug=: ;; 23073 --file | --fil | --fi | --f ) 23074 $ac_shift 23075 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 23076 ac_need_defaults=false;; 23077 --header | --heade | --head | --hea ) 23078 $ac_shift 23079 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 23080 ac_need_defaults=false;; 23081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 23082 | -silent | --silent | --silen | --sile | --sil | --si | --s) 23083 ac_cs_silent=: ;; 23084 23085 # This is an error. 23086 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 23087Try \`$0 --help' for more information." >&5 23088echo "$as_me: error: unrecognized option: $1 23089Try \`$0 --help' for more information." >&2;} 23090 { (exit 1); exit 1; }; } ;; 23091 23092 *) ac_config_targets="$ac_config_targets $1" ;; 23093 23094 esac 23095 shift 23096done 23097 23098ac_configure_extra_args= 23099 23100if $ac_cs_silent; then 23101 exec 6>/dev/null 23102 ac_configure_extra_args="$ac_configure_extra_args --silent" 23103fi 23104 23105_ACEOF 23106cat >>$CONFIG_STATUS <<_ACEOF 23107if \$ac_cs_recheck; then 23108 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 23109 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 23110fi 23111 23112_ACEOF 23113 23114cat >>$CONFIG_STATUS <<_ACEOF 23115# 23116# INIT-COMMANDS section. 23117# 23118 23119AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 23120 23121_ACEOF 23122 23123 23124 23125cat >>$CONFIG_STATUS <<\_ACEOF 23126for ac_config_target in $ac_config_targets 23127do 23128 case "$ac_config_target" in 23129 # Handling of arguments. 23130 "libcdaudio.pc" ) CONFIG_FILES="$CONFIG_FILES libcdaudio.pc" ;; 23131 "libcdaudio-config" ) CONFIG_FILES="$CONFIG_FILES libcdaudio-config" ;; 23132 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23133 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 23134 "src/cdaudio.h" ) CONFIG_FILES="$CONFIG_FILES src/cdaudio.h" ;; 23135 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 23136 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 23137 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 23138 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 23139echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 23140 { (exit 1); exit 1; }; };; 23141 esac 23142done 23143 23144# If the user did not use the arguments to specify the items to instantiate, 23145# then the envvar interface is used. Set only those that are not. 23146# We use the long form for the default assignment because of an extremely 23147# bizarre bug on SunOS 4.1.3. 23148if $ac_need_defaults; then 23149 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23150 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 23151 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23152fi 23153 23154# Have a temporary directory for convenience. Make it in the build tree 23155# simply because there is no reason to put it here, and in addition, 23156# creating and moving files from /tmp can sometimes cause problems. 23157# Create a temporary directory, and hook for its removal unless debugging. 23158$debug || 23159{ 23160 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 23161 trap '{ (exit 1); exit 1; }' 1 2 13 15 23162} 23163 23164# Create a (secure) tmp directory for tmp files. 23165 23166{ 23167 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 23168 test -n "$tmp" && test -d "$tmp" 23169} || 23170{ 23171 tmp=./confstat$$-$RANDOM 23172 (umask 077 && mkdir $tmp) 23173} || 23174{ 23175 echo "$me: cannot create a temporary directory in ." >&2 23176 { (exit 1); exit 1; } 23177} 23178 23179_ACEOF 23180 23181cat >>$CONFIG_STATUS <<_ACEOF 23182 23183# 23184# CONFIG_FILES section. 23185# 23186 23187# No need to generate the scripts if there are no CONFIG_FILES. 23188# This happens for instance when ./config.status config.h 23189if test -n "\$CONFIG_FILES"; then 23190 # Protect against being on the right side of a sed subst in config.status. 23191 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 23192 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 23193s,@SHELL@,$SHELL,;t t 23194s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 23195s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 23196s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 23197s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 23198s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 23199s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 23200s,@exec_prefix@,$exec_prefix,;t t 23201s,@prefix@,$prefix,;t t 23202s,@program_transform_name@,$program_transform_name,;t t 23203s,@bindir@,$bindir,;t t 23204s,@sbindir@,$sbindir,;t t 23205s,@libexecdir@,$libexecdir,;t t 23206s,@datadir@,$datadir,;t t 23207s,@sysconfdir@,$sysconfdir,;t t 23208s,@sharedstatedir@,$sharedstatedir,;t t 23209s,@localstatedir@,$localstatedir,;t t 23210s,@libdir@,$libdir,;t t 23211s,@includedir@,$includedir,;t t 23212s,@oldincludedir@,$oldincludedir,;t t 23213s,@infodir@,$infodir,;t t 23214s,@mandir@,$mandir,;t t 23215s,@build_alias@,$build_alias,;t t 23216s,@host_alias@,$host_alias,;t t 23217s,@target_alias@,$target_alias,;t t 23218s,@DEFS@,$DEFS,;t t 23219s,@ECHO_C@,$ECHO_C,;t t 23220s,@ECHO_N@,$ECHO_N,;t t 23221s,@ECHO_T@,$ECHO_T,;t t 23222s,@LIBS@,$LIBS,;t t 23223s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 23224s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 23225s,@INSTALL_DATA@,$INSTALL_DATA,;t t 23226s,@CYGPATH_W@,$CYGPATH_W,;t t 23227s,@PACKAGE@,$PACKAGE,;t t 23228s,@VERSION@,$VERSION,;t t 23229s,@ACLOCAL@,$ACLOCAL,;t t 23230s,@AUTOCONF@,$AUTOCONF,;t t 23231s,@AUTOMAKE@,$AUTOMAKE,;t t 23232s,@AUTOHEADER@,$AUTOHEADER,;t t 23233s,@MAKEINFO@,$MAKEINFO,;t t 23234s,@AMTAR@,$AMTAR,;t t 23235s,@install_sh@,$install_sh,;t t 23236s,@STRIP@,$STRIP,;t t 23237s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 23238s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 23239s,@mkdir_p@,$mkdir_p,;t t 23240s,@AWK@,$AWK,;t t 23241s,@SET_MAKE@,$SET_MAKE,;t t 23242s,@am__leading_dot@,$am__leading_dot,;t t 23243s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 23244s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 23245s,@MAINT@,$MAINT,;t t 23246s,@CC@,$CC,;t t 23247s,@CFLAGS@,$CFLAGS,;t t 23248s,@LDFLAGS@,$LDFLAGS,;t t 23249s,@CPPFLAGS@,$CPPFLAGS,;t t 23250s,@ac_ct_CC@,$ac_ct_CC,;t t 23251s,@EXEEXT@,$EXEEXT,;t t 23252s,@OBJEXT@,$OBJEXT,;t t 23253s,@DEPDIR@,$DEPDIR,;t t 23254s,@am__include@,$am__include,;t t 23255s,@am__quote@,$am__quote,;t t 23256s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 23257s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 23258s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 23259s,@CCDEPMODE@,$CCDEPMODE,;t t 23260s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 23261s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 23262s,@CPP@,$CPP,;t t 23263s,@EGREP@,$EGREP,;t t 23264s,@U@,$U,;t t 23265s,@ANSI2KNR@,$ANSI2KNR,;t t 23266s,@LN_S@,$LN_S,;t t 23267s,@build@,$build,;t t 23268s,@build_cpu@,$build_cpu,;t t 23269s,@build_vendor@,$build_vendor,;t t 23270s,@build_os@,$build_os,;t t 23271s,@host@,$host,;t t 23272s,@host_cpu@,$host_cpu,;t t 23273s,@host_vendor@,$host_vendor,;t t 23274s,@host_os@,$host_os,;t t 23275s,@ECHO@,$ECHO,;t t 23276s,@AR@,$AR,;t t 23277s,@ac_ct_AR@,$ac_ct_AR,;t t 23278s,@RANLIB@,$RANLIB,;t t 23279s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 23280s,@CXX@,$CXX,;t t 23281s,@CXXFLAGS@,$CXXFLAGS,;t t 23282s,@ac_ct_CXX@,$ac_ct_CXX,;t t 23283s,@CXXDEPMODE@,$CXXDEPMODE,;t t 23284s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 23285s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 23286s,@CXXCPP@,$CXXCPP,;t t 23287s,@F77@,$F77,;t t 23288s,@FFLAGS@,$FFLAGS,;t t 23289s,@ac_ct_F77@,$ac_ct_F77,;t t 23290s,@LIBTOOL@,$LIBTOOL,;t t 23291s,@IRIX_TRUE@,$IRIX_TRUE,;t t 23292s,@IRIX_FALSE@,$IRIX_FALSE,;t t 23293s,@BEOS_TRUE@,$BEOS_TRUE,;t t 23294s,@BEOS_FALSE@,$BEOS_FALSE,;t t 23295s,@REENTRANT@,$REENTRANT,;t t 23296s,@LIB_LDADD@,$LIB_LDADD,;t t 23297s,@LIBCDAUDIO_VERSION@,$LIBCDAUDIO_VERSION,;t t 23298s,@LIBCDAUDIO_VERSION_MAJOR@,$LIBCDAUDIO_VERSION_MAJOR,;t t 23299s,@LIBCDAUDIO_VERSION_MINOR@,$LIBCDAUDIO_VERSION_MINOR,;t t 23300s,@LIBCDAUDIO_VERSION_MICRO@,$LIBCDAUDIO_VERSION_MICRO,;t t 23301s,@cdaudioname@,$cdaudioname,;t t 23302s,@LIBOBJS@,$LIBOBJS,;t t 23303s,@LTLIBOBJS@,$LTLIBOBJS,;t t 23304CEOF 23305 23306_ACEOF 23307 23308 cat >>$CONFIG_STATUS <<\_ACEOF 23309 # Split the substitutions into bite-sized pieces for seds with 23310 # small command number limits, like on Digital OSF/1 and HP-UX. 23311 ac_max_sed_lines=48 23312 ac_sed_frag=1 # Number of current file. 23313 ac_beg=1 # First line for current file. 23314 ac_end=$ac_max_sed_lines # Line after last line for current file. 23315 ac_more_lines=: 23316 ac_sed_cmds= 23317 while $ac_more_lines; do 23318 if test $ac_beg -gt 1; then 23319 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 23320 else 23321 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 23322 fi 23323 if test ! -s $tmp/subs.frag; then 23324 ac_more_lines=false 23325 else 23326 # The purpose of the label and of the branching condition is to 23327 # speed up the sed processing (if there are no `@' at all, there 23328 # is no need to browse any of the substitutions). 23329 # These are the two extra sed commands mentioned above. 23330 (echo ':t 23331 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 23332 if test -z "$ac_sed_cmds"; then 23333 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 23334 else 23335 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 23336 fi 23337 ac_sed_frag=`expr $ac_sed_frag + 1` 23338 ac_beg=$ac_end 23339 ac_end=`expr $ac_end + $ac_max_sed_lines` 23340 fi 23341 done 23342 if test -z "$ac_sed_cmds"; then 23343 ac_sed_cmds=cat 23344 fi 23345fi # test -n "$CONFIG_FILES" 23346 23347_ACEOF 23348cat >>$CONFIG_STATUS <<\_ACEOF 23349for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 23350 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 23351 case $ac_file in 23352 - | *:- | *:-:* ) # input from stdin 23353 cat >$tmp/stdin 23354 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23355 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23356 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23357 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23358 * ) ac_file_in=$ac_file.in ;; 23359 esac 23360 23361 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 23362 ac_dir=`(dirname "$ac_file") 2>/dev/null || 23363$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23364 X"$ac_file" : 'X\(//\)[^/]' \| \ 23365 X"$ac_file" : 'X\(//\)$' \| \ 23366 X"$ac_file" : 'X\(/\)' \| \ 23367 . : '\(.\)' 2>/dev/null || 23368echo X"$ac_file" | 23369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23370 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23371 /^X\(\/\/\)$/{ s//\1/; q; } 23372 /^X\(\/\).*/{ s//\1/; q; } 23373 s/.*/./; q'` 23374 { if $as_mkdir_p; then 23375 mkdir -p "$ac_dir" 23376 else 23377 as_dir="$ac_dir" 23378 as_dirs= 23379 while test ! -d "$as_dir"; do 23380 as_dirs="$as_dir $as_dirs" 23381 as_dir=`(dirname "$as_dir") 2>/dev/null || 23382$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23383 X"$as_dir" : 'X\(//\)[^/]' \| \ 23384 X"$as_dir" : 'X\(//\)$' \| \ 23385 X"$as_dir" : 'X\(/\)' \| \ 23386 . : '\(.\)' 2>/dev/null || 23387echo X"$as_dir" | 23388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23389 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23390 /^X\(\/\/\)$/{ s//\1/; q; } 23391 /^X\(\/\).*/{ s//\1/; q; } 23392 s/.*/./; q'` 23393 done 23394 test ! -n "$as_dirs" || mkdir $as_dirs 23395 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 23396echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 23397 { (exit 1); exit 1; }; }; } 23398 23399 ac_builddir=. 23400 23401if test "$ac_dir" != .; then 23402 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23403 # A "../" for each directory in $ac_dir_suffix. 23404 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 23405else 23406 ac_dir_suffix= ac_top_builddir= 23407fi 23408 23409case $srcdir in 23410 .) # No --srcdir option. We are building in place. 23411 ac_srcdir=. 23412 if test -z "$ac_top_builddir"; then 23413 ac_top_srcdir=. 23414 else 23415 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 23416 fi ;; 23417 [\\/]* | ?:[\\/]* ) # Absolute path. 23418 ac_srcdir=$srcdir$ac_dir_suffix; 23419 ac_top_srcdir=$srcdir ;; 23420 *) # Relative path. 23421 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 23422 ac_top_srcdir=$ac_top_builddir$srcdir ;; 23423esac 23424 23425# Do not use `cd foo && pwd` to compute absolute paths, because 23426# the directories may not exist. 23427case `pwd` in 23428.) ac_abs_builddir="$ac_dir";; 23429*) 23430 case "$ac_dir" in 23431 .) ac_abs_builddir=`pwd`;; 23432 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 23433 *) ac_abs_builddir=`pwd`/"$ac_dir";; 23434 esac;; 23435esac 23436case $ac_abs_builddir in 23437.) ac_abs_top_builddir=${ac_top_builddir}.;; 23438*) 23439 case ${ac_top_builddir}. in 23440 .) ac_abs_top_builddir=$ac_abs_builddir;; 23441 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 23442 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 23443 esac;; 23444esac 23445case $ac_abs_builddir in 23446.) ac_abs_srcdir=$ac_srcdir;; 23447*) 23448 case $ac_srcdir in 23449 .) ac_abs_srcdir=$ac_abs_builddir;; 23450 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 23451 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 23452 esac;; 23453esac 23454case $ac_abs_builddir in 23455.) ac_abs_top_srcdir=$ac_top_srcdir;; 23456*) 23457 case $ac_top_srcdir in 23458 .) ac_abs_top_srcdir=$ac_abs_builddir;; 23459 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 23460 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 23461 esac;; 23462esac 23463 23464 23465 case $INSTALL in 23466 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23467 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 23468 esac 23469 23470 # Let's still pretend it is `configure' which instantiates (i.e., don't 23471 # use $as_me), people would be surprised to read: 23472 # /* config.h. Generated by config.status. */ 23473 if test x"$ac_file" = x-; then 23474 configure_input= 23475 else 23476 configure_input="$ac_file. " 23477 fi 23478 configure_input=$configure_input"Generated from `echo $ac_file_in | 23479 sed 's,.*/,,'` by configure." 23480 23481 # First look for the input files in the build tree, otherwise in the 23482 # src tree. 23483 ac_file_inputs=`IFS=: 23484 for f in $ac_file_in; do 23485 case $f in 23486 -) echo $tmp/stdin ;; 23487 [\\/$]*) 23488 # Absolute (can't be DOS-style, as IFS=:) 23489 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23490echo "$as_me: error: cannot find input file: $f" >&2;} 23491 { (exit 1); exit 1; }; } 23492 echo "$f";; 23493 *) # Relative 23494 if test -f "$f"; then 23495 # Build tree 23496 echo "$f" 23497 elif test -f "$srcdir/$f"; then 23498 # Source tree 23499 echo "$srcdir/$f" 23500 else 23501 # /dev/null tree 23502 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23503echo "$as_me: error: cannot find input file: $f" >&2;} 23504 { (exit 1); exit 1; }; } 23505 fi;; 23506 esac 23507 done` || { (exit 1); exit 1; } 23508 23509 if test x"$ac_file" != x-; then 23510 { echo "$as_me:$LINENO: creating $ac_file" >&5 23511echo "$as_me: creating $ac_file" >&6;} 23512 rm -f "$ac_file" 23513 fi 23514_ACEOF 23515cat >>$CONFIG_STATUS <<_ACEOF 23516 sed "$ac_vpsub 23517$extrasub 23518_ACEOF 23519cat >>$CONFIG_STATUS <<\_ACEOF 23520:t 23521/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23522s,@configure_input@,$configure_input,;t t 23523s,@srcdir@,$ac_srcdir,;t t 23524s,@abs_srcdir@,$ac_abs_srcdir,;t t 23525s,@top_srcdir@,$ac_top_srcdir,;t t 23526s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 23527s,@builddir@,$ac_builddir,;t t 23528s,@abs_builddir@,$ac_abs_builddir,;t t 23529s,@top_builddir@,$ac_top_builddir,;t t 23530s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 23531s,@INSTALL@,$ac_INSTALL,;t t 23532" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 23533 rm -f $tmp/stdin 23534 if test x"$ac_file" != x-; then 23535 mv $tmp/out $ac_file 23536 else 23537 cat $tmp/out 23538 rm -f $tmp/out 23539 fi 23540 23541done 23542_ACEOF 23543cat >>$CONFIG_STATUS <<\_ACEOF 23544 23545# 23546# CONFIG_HEADER section. 23547# 23548 23549# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 23550# NAME is the cpp macro being defined and VALUE is the value it is being given. 23551# 23552# ac_d sets the value in "#define NAME VALUE" lines. 23553ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 23554ac_dB='[ ].*$,\1#\2' 23555ac_dC=' ' 23556ac_dD=',;t' 23557# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 23558ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 23559ac_uB='$,\1#\2define\3' 23560ac_uC=' ' 23561ac_uD=',;t' 23562 23563for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 23564 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 23565 case $ac_file in 23566 - | *:- | *:-:* ) # input from stdin 23567 cat >$tmp/stdin 23568 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23569 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23570 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23571 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23572 * ) ac_file_in=$ac_file.in ;; 23573 esac 23574 23575 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 23576echo "$as_me: creating $ac_file" >&6;} 23577 23578 # First look for the input files in the build tree, otherwise in the 23579 # src tree. 23580 ac_file_inputs=`IFS=: 23581 for f in $ac_file_in; do 23582 case $f in 23583 -) echo $tmp/stdin ;; 23584 [\\/$]*) 23585 # Absolute (can't be DOS-style, as IFS=:) 23586 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23587echo "$as_me: error: cannot find input file: $f" >&2;} 23588 { (exit 1); exit 1; }; } 23589 # Do quote $f, to prevent DOS paths from being IFS'd. 23590 echo "$f";; 23591 *) # Relative 23592 if test -f "$f"; then 23593 # Build tree 23594 echo "$f" 23595 elif test -f "$srcdir/$f"; then 23596 # Source tree 23597 echo "$srcdir/$f" 23598 else 23599 # /dev/null tree 23600 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23601echo "$as_me: error: cannot find input file: $f" >&2;} 23602 { (exit 1); exit 1; }; } 23603 fi;; 23604 esac 23605 done` || { (exit 1); exit 1; } 23606 # Remove the trailing spaces. 23607 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 23608 23609_ACEOF 23610 23611# Transform confdefs.h into two sed scripts, `conftest.defines' and 23612# `conftest.undefs', that substitutes the proper values into 23613# config.h.in to produce config.h. The first handles `#define' 23614# templates, and the second `#undef' templates. 23615# And first: Protect against being on the right side of a sed subst in 23616# config.status. Protect against being in an unquoted here document 23617# in config.status. 23618rm -f conftest.defines conftest.undefs 23619# Using a here document instead of a string reduces the quoting nightmare. 23620# Putting comments in sed scripts is not portable. 23621# 23622# `end' is used to avoid that the second main sed command (meant for 23623# 0-ary CPP macros) applies to n-ary macro definitions. 23624# See the Autoconf documentation for `clear'. 23625cat >confdef2sed.sed <<\_ACEOF 23626s/[\\&,]/\\&/g 23627s,[\\$`],\\&,g 23628t clear 23629: clear 23630s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 23631t end 23632s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 23633: end 23634_ACEOF 23635# If some macros were called several times there might be several times 23636# the same #defines, which is useless. Nevertheless, we may not want to 23637# sort them, since we want the *last* AC-DEFINE to be honored. 23638uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 23639sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 23640rm -f confdef2sed.sed 23641 23642# This sed command replaces #undef with comments. This is necessary, for 23643# example, in the case of _POSIX_SOURCE, which is predefined and required 23644# on some systems where configure will not decide to define it. 23645cat >>conftest.undefs <<\_ACEOF 23646s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 23647_ACEOF 23648 23649# Break up conftest.defines because some shells have a limit on the size 23650# of here documents, and old seds have small limits too (100 cmds). 23651echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 23652echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 23653echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 23654echo ' :' >>$CONFIG_STATUS 23655rm -f conftest.tail 23656while grep . conftest.defines >/dev/null 23657do 23658 # Write a limited-size here document to $tmp/defines.sed. 23659 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 23660 # Speed up: don't consider the non `#define' lines. 23661 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 23662 # Work around the forget-to-reset-the-flag bug. 23663 echo 't clr' >>$CONFIG_STATUS 23664 echo ': clr' >>$CONFIG_STATUS 23665 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 23666 echo 'CEOF 23667 sed -f $tmp/defines.sed $tmp/in >$tmp/out 23668 rm -f $tmp/in 23669 mv $tmp/out $tmp/in 23670' >>$CONFIG_STATUS 23671 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 23672 rm -f conftest.defines 23673 mv conftest.tail conftest.defines 23674done 23675rm -f conftest.defines 23676echo ' fi # grep' >>$CONFIG_STATUS 23677echo >>$CONFIG_STATUS 23678 23679# Break up conftest.undefs because some shells have a limit on the size 23680# of here documents, and old seds have small limits too (100 cmds). 23681echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 23682rm -f conftest.tail 23683while grep . conftest.undefs >/dev/null 23684do 23685 # Write a limited-size here document to $tmp/undefs.sed. 23686 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 23687 # Speed up: don't consider the non `#undef' 23688 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 23689 # Work around the forget-to-reset-the-flag bug. 23690 echo 't clr' >>$CONFIG_STATUS 23691 echo ': clr' >>$CONFIG_STATUS 23692 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 23693 echo 'CEOF 23694 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 23695 rm -f $tmp/in 23696 mv $tmp/out $tmp/in 23697' >>$CONFIG_STATUS 23698 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 23699 rm -f conftest.undefs 23700 mv conftest.tail conftest.undefs 23701done 23702rm -f conftest.undefs 23703 23704cat >>$CONFIG_STATUS <<\_ACEOF 23705 # Let's still pretend it is `configure' which instantiates (i.e., don't 23706 # use $as_me), people would be surprised to read: 23707 # /* config.h. Generated by config.status. */ 23708 if test x"$ac_file" = x-; then 23709 echo "/* Generated by configure. */" >$tmp/config.h 23710 else 23711 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 23712 fi 23713 cat $tmp/in >>$tmp/config.h 23714 rm -f $tmp/in 23715 if test x"$ac_file" != x-; then 23716 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 23717 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 23718echo "$as_me: $ac_file is unchanged" >&6;} 23719 else 23720 ac_dir=`(dirname "$ac_file") 2>/dev/null || 23721$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23722 X"$ac_file" : 'X\(//\)[^/]' \| \ 23723 X"$ac_file" : 'X\(//\)$' \| \ 23724 X"$ac_file" : 'X\(/\)' \| \ 23725 . : '\(.\)' 2>/dev/null || 23726echo X"$ac_file" | 23727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23728 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23729 /^X\(\/\/\)$/{ s//\1/; q; } 23730 /^X\(\/\).*/{ s//\1/; q; } 23731 s/.*/./; q'` 23732 { if $as_mkdir_p; then 23733 mkdir -p "$ac_dir" 23734 else 23735 as_dir="$ac_dir" 23736 as_dirs= 23737 while test ! -d "$as_dir"; do 23738 as_dirs="$as_dir $as_dirs" 23739 as_dir=`(dirname "$as_dir") 2>/dev/null || 23740$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23741 X"$as_dir" : 'X\(//\)[^/]' \| \ 23742 X"$as_dir" : 'X\(//\)$' \| \ 23743 X"$as_dir" : 'X\(/\)' \| \ 23744 . : '\(.\)' 2>/dev/null || 23745echo X"$as_dir" | 23746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23747 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23748 /^X\(\/\/\)$/{ s//\1/; q; } 23749 /^X\(\/\).*/{ s//\1/; q; } 23750 s/.*/./; q'` 23751 done 23752 test ! -n "$as_dirs" || mkdir $as_dirs 23753 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 23754echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 23755 { (exit 1); exit 1; }; }; } 23756 23757 rm -f $ac_file 23758 mv $tmp/config.h $ac_file 23759 fi 23760 else 23761 cat $tmp/config.h 23762 rm -f $tmp/config.h 23763 fi 23764# Compute $ac_file's index in $config_headers. 23765_am_stamp_count=1 23766for _am_header in $config_headers :; do 23767 case $_am_header in 23768 $ac_file | $ac_file:* ) 23769 break ;; 23770 * ) 23771 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23772 esac 23773done 23774echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 23775$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23776 X$ac_file : 'X\(//\)[^/]' \| \ 23777 X$ac_file : 'X\(//\)$' \| \ 23778 X$ac_file : 'X\(/\)' \| \ 23779 . : '\(.\)' 2>/dev/null || 23780echo X$ac_file | 23781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23782 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23783 /^X\(\/\/\)$/{ s//\1/; q; } 23784 /^X\(\/\).*/{ s//\1/; q; } 23785 s/.*/./; q'`/stamp-h$_am_stamp_count 23786done 23787_ACEOF 23788cat >>$CONFIG_STATUS <<\_ACEOF 23789 23790# 23791# CONFIG_COMMANDS section. 23792# 23793for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 23794 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 23795 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 23796 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 23797$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23798 X"$ac_dest" : 'X\(//\)[^/]' \| \ 23799 X"$ac_dest" : 'X\(//\)$' \| \ 23800 X"$ac_dest" : 'X\(/\)' \| \ 23801 . : '\(.\)' 2>/dev/null || 23802echo X"$ac_dest" | 23803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23804 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23805 /^X\(\/\/\)$/{ s//\1/; q; } 23806 /^X\(\/\).*/{ s//\1/; q; } 23807 s/.*/./; q'` 23808 { if $as_mkdir_p; then 23809 mkdir -p "$ac_dir" 23810 else 23811 as_dir="$ac_dir" 23812 as_dirs= 23813 while test ! -d "$as_dir"; do 23814 as_dirs="$as_dir $as_dirs" 23815 as_dir=`(dirname "$as_dir") 2>/dev/null || 23816$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23817 X"$as_dir" : 'X\(//\)[^/]' \| \ 23818 X"$as_dir" : 'X\(//\)$' \| \ 23819 X"$as_dir" : 'X\(/\)' \| \ 23820 . : '\(.\)' 2>/dev/null || 23821echo X"$as_dir" | 23822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23823 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23824 /^X\(\/\/\)$/{ s//\1/; q; } 23825 /^X\(\/\).*/{ s//\1/; q; } 23826 s/.*/./; q'` 23827 done 23828 test ! -n "$as_dirs" || mkdir $as_dirs 23829 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 23830echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 23831 { (exit 1); exit 1; }; }; } 23832 23833 ac_builddir=. 23834 23835if test "$ac_dir" != .; then 23836 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23837 # A "../" for each directory in $ac_dir_suffix. 23838 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 23839else 23840 ac_dir_suffix= ac_top_builddir= 23841fi 23842 23843case $srcdir in 23844 .) # No --srcdir option. We are building in place. 23845 ac_srcdir=. 23846 if test -z "$ac_top_builddir"; then 23847 ac_top_srcdir=. 23848 else 23849 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 23850 fi ;; 23851 [\\/]* | ?:[\\/]* ) # Absolute path. 23852 ac_srcdir=$srcdir$ac_dir_suffix; 23853 ac_top_srcdir=$srcdir ;; 23854 *) # Relative path. 23855 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 23856 ac_top_srcdir=$ac_top_builddir$srcdir ;; 23857esac 23858 23859# Do not use `cd foo && pwd` to compute absolute paths, because 23860# the directories may not exist. 23861case `pwd` in 23862.) ac_abs_builddir="$ac_dir";; 23863*) 23864 case "$ac_dir" in 23865 .) ac_abs_builddir=`pwd`;; 23866 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 23867 *) ac_abs_builddir=`pwd`/"$ac_dir";; 23868 esac;; 23869esac 23870case $ac_abs_builddir in 23871.) ac_abs_top_builddir=${ac_top_builddir}.;; 23872*) 23873 case ${ac_top_builddir}. in 23874 .) ac_abs_top_builddir=$ac_abs_builddir;; 23875 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 23876 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 23877 esac;; 23878esac 23879case $ac_abs_builddir in 23880.) ac_abs_srcdir=$ac_srcdir;; 23881*) 23882 case $ac_srcdir in 23883 .) ac_abs_srcdir=$ac_abs_builddir;; 23884 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 23885 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 23886 esac;; 23887esac 23888case $ac_abs_builddir in 23889.) ac_abs_top_srcdir=$ac_top_srcdir;; 23890*) 23891 case $ac_top_srcdir in 23892 .) ac_abs_top_srcdir=$ac_abs_builddir;; 23893 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 23894 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 23895 esac;; 23896esac 23897 23898 23899 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 23900echo "$as_me: executing $ac_dest commands" >&6;} 23901 case $ac_dest in 23902 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 23903 # Strip MF so we end up with the name of the file. 23904 mf=`echo "$mf" | sed -e 's/:.*$//'` 23905 # Check whether this is an Automake generated Makefile or not. 23906 # We used to match only the files named `Makefile.in', but 23907 # some people rename them; so instead we look at the file content. 23908 # Grep'ing the first line is not enough: some people post-process 23909 # each Makefile.in and add a new line on top of each file to say so. 23910 # So let's grep whole file. 23911 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 23912 dirpart=`(dirname "$mf") 2>/dev/null || 23913$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23914 X"$mf" : 'X\(//\)[^/]' \| \ 23915 X"$mf" : 'X\(//\)$' \| \ 23916 X"$mf" : 'X\(/\)' \| \ 23917 . : '\(.\)' 2>/dev/null || 23918echo X"$mf" | 23919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23920 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23921 /^X\(\/\/\)$/{ s//\1/; q; } 23922 /^X\(\/\).*/{ s//\1/; q; } 23923 s/.*/./; q'` 23924 else 23925 continue 23926 fi 23927 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 23928 # Extract the definition of DEP_FILES from the Makefile without 23929 # running `make'. 23930 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 23931 test -z "$DEPDIR" && continue 23932 # When using ansi2knr, U may be empty or an underscore; expand it 23933 U=`sed -n 's/^U = //p' < "$mf"` 23934 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 23935 # We invoke sed twice because it is the simplest approach to 23936 # changing $(DEPDIR) to its actual value in the expansion. 23937 for file in `sed -n ' 23938 /^DEP_FILES = .*\\\\$/ { 23939 s/^DEP_FILES = // 23940 :loop 23941 s/\\\\$// 23942 p 23943 n 23944 /\\\\$/ b loop 23945 p 23946 } 23947 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 23948 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 23949 # Make sure the directory exists. 23950 test -f "$dirpart/$file" && continue 23951 fdir=`(dirname "$file") 2>/dev/null || 23952$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23953 X"$file" : 'X\(//\)[^/]' \| \ 23954 X"$file" : 'X\(//\)$' \| \ 23955 X"$file" : 'X\(/\)' \| \ 23956 . : '\(.\)' 2>/dev/null || 23957echo X"$file" | 23958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23959 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23960 /^X\(\/\/\)$/{ s//\1/; q; } 23961 /^X\(\/\).*/{ s//\1/; q; } 23962 s/.*/./; q'` 23963 { if $as_mkdir_p; then 23964 mkdir -p $dirpart/$fdir 23965 else 23966 as_dir=$dirpart/$fdir 23967 as_dirs= 23968 while test ! -d "$as_dir"; do 23969 as_dirs="$as_dir $as_dirs" 23970 as_dir=`(dirname "$as_dir") 2>/dev/null || 23971$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23972 X"$as_dir" : 'X\(//\)[^/]' \| \ 23973 X"$as_dir" : 'X\(//\)$' \| \ 23974 X"$as_dir" : 'X\(/\)' \| \ 23975 . : '\(.\)' 2>/dev/null || 23976echo X"$as_dir" | 23977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23978 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23979 /^X\(\/\/\)$/{ s//\1/; q; } 23980 /^X\(\/\).*/{ s//\1/; q; } 23981 s/.*/./; q'` 23982 done 23983 test ! -n "$as_dirs" || mkdir $as_dirs 23984 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 23985echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 23986 { (exit 1); exit 1; }; }; } 23987 23988 # echo "creating $dirpart/$file" 23989 echo '# dummy' > "$dirpart/$file" 23990 done 23991done 23992 ;; 23993 default ) chmod +x libcdaudio-config ;; 23994 esac 23995done 23996_ACEOF 23997 23998cat >>$CONFIG_STATUS <<\_ACEOF 23999 24000{ (exit 0); exit 0; } 24001_ACEOF 24002chmod +x $CONFIG_STATUS 24003ac_clean_files=$ac_clean_files_save 24004 24005 24006# configure is writing to config.log, and then calls config.status. 24007# config.status does its own redirection, appending to config.log. 24008# Unfortunately, on DOS this fails, as config.log is still kept open 24009# by configure, so config.status won't be able to write to it; its 24010# output is simply discarded. So we exec the FD to /dev/null, 24011# effectively closing config.log, so it can be properly (re)opened and 24012# appended to by config.status. When coming back to configure, we 24013# need to make the FD available again. 24014if test "$no_create" != yes; then 24015 ac_cs_success=: 24016 ac_config_status_args= 24017 test "$silent" = yes && 24018 ac_config_status_args="$ac_config_status_args --quiet" 24019 exec 5>/dev/null 24020 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24021 exec 5>>config.log 24022 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24023 # would make configure fail if this is the last instruction. 24024 $ac_cs_success || { (exit 1); exit 1; } 24025fi 24026 24027 24028echo 24029echo Ready to build libcdaudio $LIBCDAUDIO_VERSION_STRING. 24030echo 24031case $sys in 24032 (irix) 24033 echo "* I am configured for IRIX." 24034 ;; 24035 (beos) 24036 echo "* I am configured for BeOS." 24037 ;; 24038 (solaris) 24039 echo "* I am configured Solaris." 24040 ;; 24041 (*) 24042 echo "* I am configured for a generic or GNU or GNU-like system." 24043 ;; 24044esac 24045if test "$cross_compiling" = yes 24046then 24047 echo "* The build is a cross-compilation." 24048else 24049 echo "* The build is not a cross-compilation." 24050fi 24051if test $threads != no 24052then 24053 echo "* I will build a thread-safe version." 24054else 24055 echo "* I will build a non-thread-safe version." 24056fi 24057if test $xbox = 1 24058then 24059 echo "* I will use the XBox fix." 24060else 24061 echo "* I will not use the XBox fix." 24062 echo " If you're compiling on XBox, consider enabling the fix" 24063 echo " with --enable-xbox-fix." 24064fi 24065echo 24066echo "=> If you want to help, please contact the maintainer." 24067echo " libcdaudio cannot evolve as long as there is no portability testing." 24068echo " We need people who can compile & test libcdaudio on:" 24069echo " OpenBSD FreeBSD NetBSD Solaris Irix BeOS OSF/1 XBox/MythTV" 24070echo " If you use a box with one of these operating systems, please consider" 24071echo " helping us." 24072echo " Thanks." 24073echo 24074echo 'You may build libcdaudio with your favorite Make program, e.g. "make".' 24075