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. 281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 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="lib/mcrypt.c" 429ac_subdirs_all="$ac_subdirs_all libltdl" 430# Factoring default headers for most tests. 431ac_includes_default="\ 432#include <stdio.h> 433#if HAVE_SYS_TYPES_H 434# include <sys/types.h> 435#endif 436#if HAVE_SYS_STAT_H 437# include <sys/stat.h> 438#endif 439#if STDC_HEADERS 440# include <stdlib.h> 441# include <stddef.h> 442#else 443# if HAVE_STDLIB_H 444# include <stdlib.h> 445# endif 446#endif 447#if HAVE_STRING_H 448# if !STDC_HEADERS && HAVE_MEMORY_H 449# include <memory.h> 450# endif 451# include <string.h> 452#endif 453#if HAVE_STRINGS_H 454# include <strings.h> 455#endif 456#if HAVE_INTTYPES_H 457# include <inttypes.h> 458#else 459# if HAVE_STDINT_H 460# include <stdint.h> 461# endif 462#endif 463#if HAVE_UNISTD_H 464# include <unistd.h> 465#endif" 466 467ac_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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar 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 LN_S INCLTDL LIBLTDL LIBLTDL_DIR subdirs INSTALL_ALGORITHM_MODULES INSTALL_MODE_MODULES NOINSTALL_ALGORITHM_MODULES NOINSTALL_MODE_MODULES EXTRA_ALGOS EXTRA_OBJECTS LIBMCRYPT_MAJOR_VERSION LIBMCRYPT_MINOR_VERSION LIBMCRYPT_MICRO_VERSION LIBMCRYPT_VERSION LIBMCRYPT_MOST_RECENT_INTERFACE LIBMCRYPT_CURRENT_INTERFACE_IMPLEMENTATION_NUMBER LIBMCRYPT_OLDEST_INTERFACE LT_CURRENT LT_REVISION LT_AGE CPP EGREP SED ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS LIBMCRYPT_LIBS LIBMCRYPT_CFLAGS LIB@&t@OBJS LTLIBOBJS' 468ac_subst_files='' 469 470# Initialize some variables set by options. 471ac_init_help= 472ac_init_version=false 473# The variables have the same names as the options, with 474# dashes changed to underlines. 475cache_file=/dev/null 476exec_prefix=NONE 477no_create= 478no_recursion= 479prefix=NONE 480program_prefix=NONE 481program_suffix=NONE 482program_transform_name=s,x,x, 483silent= 484site= 485srcdir= 486verbose= 487x_includes=NONE 488x_libraries=NONE 489 490# Installation directory options. 491# These are left unexpanded so users can "make install exec_prefix=/foo" 492# and all the variables that are supposed to be based on exec_prefix 493# by default will actually change. 494# Use braces instead of parens because sh, perl, etc. also accept them. 495bindir='${exec_prefix}/bin' 496sbindir='${exec_prefix}/sbin' 497libexecdir='${exec_prefix}/libexec' 498datadir='${prefix}/share' 499sysconfdir='${prefix}/etc' 500sharedstatedir='${prefix}/com' 501localstatedir='${prefix}/var' 502libdir='${exec_prefix}/lib' 503includedir='${prefix}/include' 504oldincludedir='/usr/include' 505infodir='${prefix}/info' 506mandir='${prefix}/man' 507 508ac_prev= 509for ac_option 510do 511 # If the previous option needs an argument, assign it. 512 if test -n "$ac_prev"; then 513 eval "$ac_prev=\$ac_option" 514 ac_prev= 515 continue 516 fi 517 518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 519 520 # Accept the important Cygnus configure options, so we can diagnose typos. 521 522 case $ac_option in 523 524 -bindir | --bindir | --bindi | --bind | --bin | --bi) 525 ac_prev=bindir ;; 526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 527 bindir=$ac_optarg ;; 528 529 -build | --build | --buil | --bui | --bu) 530 ac_prev=build_alias ;; 531 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 532 build_alias=$ac_optarg ;; 533 534 -cache-file | --cache-file | --cache-fil | --cache-fi \ 535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 536 ac_prev=cache_file ;; 537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 539 cache_file=$ac_optarg ;; 540 541 --config-cache | -C) 542 cache_file=config.cache ;; 543 544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 545 ac_prev=datadir ;; 546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 547 | --da=*) 548 datadir=$ac_optarg ;; 549 550 -disable-* | --disable-*) 551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 552 # Reject names that are not valid shell variable names. 553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 555 { (exit 1); exit 1; }; } 556 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 557 eval "enable_$ac_feature=no" ;; 558 559 -enable-* | --enable-*) 560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 561 # Reject names that are not valid shell variable names. 562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 564 { (exit 1); exit 1; }; } 565 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 566 case $ac_option in 567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 568 *) ac_optarg=yes ;; 569 esac 570 eval "enable_$ac_feature='$ac_optarg'" ;; 571 572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 574 | --exec | --exe | --ex) 575 ac_prev=exec_prefix ;; 576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 578 | --exec=* | --exe=* | --ex=*) 579 exec_prefix=$ac_optarg ;; 580 581 -gas | --gas | --ga | --g) 582 # Obsolete; use --with-gas. 583 with_gas=yes ;; 584 585 -help | --help | --hel | --he | -h) 586 ac_init_help=long ;; 587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 588 ac_init_help=recursive ;; 589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 590 ac_init_help=short ;; 591 592 -host | --host | --hos | --ho) 593 ac_prev=host_alias ;; 594 -host=* | --host=* | --hos=* | --ho=*) 595 host_alias=$ac_optarg ;; 596 597 -includedir | --includedir | --includedi | --included | --include \ 598 | --includ | --inclu | --incl | --inc) 599 ac_prev=includedir ;; 600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 601 | --includ=* | --inclu=* | --incl=* | --inc=*) 602 includedir=$ac_optarg ;; 603 604 -infodir | --infodir | --infodi | --infod | --info | --inf) 605 ac_prev=infodir ;; 606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 607 infodir=$ac_optarg ;; 608 609 -libdir | --libdir | --libdi | --libd) 610 ac_prev=libdir ;; 611 -libdir=* | --libdir=* | --libdi=* | --libd=*) 612 libdir=$ac_optarg ;; 613 614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 615 | --libexe | --libex | --libe) 616 ac_prev=libexecdir ;; 617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 618 | --libexe=* | --libex=* | --libe=*) 619 libexecdir=$ac_optarg ;; 620 621 -localstatedir | --localstatedir | --localstatedi | --localstated \ 622 | --localstate | --localstat | --localsta | --localst \ 623 | --locals | --local | --loca | --loc | --lo) 624 ac_prev=localstatedir ;; 625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 628 localstatedir=$ac_optarg ;; 629 630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 631 ac_prev=mandir ;; 632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 633 mandir=$ac_optarg ;; 634 635 -nfp | --nfp | --nf) 636 # Obsolete; use --without-fp. 637 with_fp=no ;; 638 639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 640 | --no-cr | --no-c | -n) 641 no_create=yes ;; 642 643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 645 no_recursion=yes ;; 646 647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 649 | --oldin | --oldi | --old | --ol | --o) 650 ac_prev=oldincludedir ;; 651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 654 oldincludedir=$ac_optarg ;; 655 656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 657 ac_prev=prefix ;; 658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 659 prefix=$ac_optarg ;; 660 661 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 662 | --program-pre | --program-pr | --program-p) 663 ac_prev=program_prefix ;; 664 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 666 program_prefix=$ac_optarg ;; 667 668 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 669 | --program-suf | --program-su | --program-s) 670 ac_prev=program_suffix ;; 671 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 673 program_suffix=$ac_optarg ;; 674 675 -program-transform-name | --program-transform-name \ 676 | --program-transform-nam | --program-transform-na \ 677 | --program-transform-n | --program-transform- \ 678 | --program-transform | --program-transfor \ 679 | --program-transfo | --program-transf \ 680 | --program-trans | --program-tran \ 681 | --progr-tra | --program-tr | --program-t) 682 ac_prev=program_transform_name ;; 683 -program-transform-name=* | --program-transform-name=* \ 684 | --program-transform-nam=* | --program-transform-na=* \ 685 | --program-transform-n=* | --program-transform-=* \ 686 | --program-transform=* | --program-transfor=* \ 687 | --program-transfo=* | --program-transf=* \ 688 | --program-trans=* | --program-tran=* \ 689 | --progr-tra=* | --program-tr=* | --program-t=*) 690 program_transform_name=$ac_optarg ;; 691 692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 693 | -silent | --silent | --silen | --sile | --sil) 694 silent=yes ;; 695 696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 697 ac_prev=sbindir ;; 698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 699 | --sbi=* | --sb=*) 700 sbindir=$ac_optarg ;; 701 702 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 704 | --sharedst | --shareds | --shared | --share | --shar \ 705 | --sha | --sh) 706 ac_prev=sharedstatedir ;; 707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 710 | --sha=* | --sh=*) 711 sharedstatedir=$ac_optarg ;; 712 713 -site | --site | --sit) 714 ac_prev=site ;; 715 -site=* | --site=* | --sit=*) 716 site=$ac_optarg ;; 717 718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 719 ac_prev=srcdir ;; 720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 721 srcdir=$ac_optarg ;; 722 723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 724 | --syscon | --sysco | --sysc | --sys | --sy) 725 ac_prev=sysconfdir ;; 726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 728 sysconfdir=$ac_optarg ;; 729 730 -target | --target | --targe | --targ | --tar | --ta | --t) 731 ac_prev=target_alias ;; 732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 733 target_alias=$ac_optarg ;; 734 735 -v | -verbose | --verbose | --verbos | --verbo | --verb) 736 verbose=yes ;; 737 738 -version | --version | --versio | --versi | --vers | -V) 739 ac_init_version=: ;; 740 741 -with-* | --with-*) 742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 743 # Reject names that are not valid shell variable names. 744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 745 { echo "$as_me: error: invalid package name: $ac_package" >&2 746 { (exit 1); exit 1; }; } 747 ac_package=`echo $ac_package| sed 's/-/_/g'` 748 case $ac_option in 749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 750 *) ac_optarg=yes ;; 751 esac 752 eval "with_$ac_package='$ac_optarg'" ;; 753 754 -without-* | --without-*) 755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 756 # Reject names that are not valid shell variable names. 757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 758 { echo "$as_me: error: invalid package name: $ac_package" >&2 759 { (exit 1); exit 1; }; } 760 ac_package=`echo $ac_package | sed 's/-/_/g'` 761 eval "with_$ac_package=no" ;; 762 763 --x) 764 # Obsolete; use --with-x. 765 with_x=yes ;; 766 767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 768 | --x-incl | --x-inc | --x-in | --x-i) 769 ac_prev=x_includes ;; 770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 772 x_includes=$ac_optarg ;; 773 774 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 776 ac_prev=x_libraries ;; 777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 779 x_libraries=$ac_optarg ;; 780 781 -*) { echo "$as_me: error: unrecognized option: $ac_option 782Try \`$0 --help' for more information." >&2 783 { (exit 1); exit 1; }; } 784 ;; 785 786 *=*) 787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 788 # Reject names that are not valid shell variable names. 789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 791 { (exit 1); exit 1; }; } 792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 793 eval "$ac_envvar='$ac_optarg'" 794 export $ac_envvar ;; 795 796 *) 797 # FIXME: should be removed in autoconf 3.0. 798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 802 ;; 803 804 esac 805done 806 807if test -n "$ac_prev"; then 808 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 809 { echo "$as_me: error: missing argument to $ac_option" >&2 810 { (exit 1); exit 1; }; } 811fi 812 813# Be sure to have absolute paths. 814for ac_var in exec_prefix prefix 815do 816 eval ac_val=$`echo $ac_var` 817 case $ac_val in 818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 820 { (exit 1); exit 1; }; };; 821 esac 822done 823 824# Be sure to have absolute paths. 825for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 826 localstatedir libdir includedir oldincludedir infodir mandir 827do 828 eval ac_val=$`echo $ac_var` 829 case $ac_val in 830 [\\/$]* | ?:[\\/]* ) ;; 831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 832 { (exit 1); exit 1; }; };; 833 esac 834done 835 836# There might be people who depend on the old broken behavior: `$host' 837# used to hold the argument of --host etc. 838# FIXME: To remove some day. 839build=$build_alias 840host=$host_alias 841target=$target_alias 842 843# FIXME: To remove some day. 844if test "x$host_alias" != x; then 845 if test "x$build_alias" = x; then 846 cross_compiling=maybe 847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 848 If a cross compiler is detected then cross compile mode will be used." >&2 849 elif test "x$build_alias" != "x$host_alias"; then 850 cross_compiling=yes 851 fi 852fi 853 854ac_tool_prefix= 855test -n "$host_alias" && ac_tool_prefix=$host_alias- 856 857test "$silent" = yes && exec 6>/dev/null 858 859 860# Find the source files, if location was not specified. 861if test -z "$srcdir"; then 862 ac_srcdir_defaulted=yes 863 # Try the directory containing this script, then its parent. 864 ac_confdir=`(dirname "$0") 2>/dev/null || 865$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 866 X"$0" : 'X\(//\)[^/]' \| \ 867 X"$0" : 'X\(//\)$' \| \ 868 X"$0" : 'X\(/\)' \| \ 869 . : '\(.\)' 2>/dev/null || 870echo X"$0" | 871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 872 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 873 /^X\(\/\/\)$/{ s//\1/; q; } 874 /^X\(\/\).*/{ s//\1/; q; } 875 s/.*/./; q'` 876 srcdir=$ac_confdir 877 if test ! -r $srcdir/$ac_unique_file; then 878 srcdir=.. 879 fi 880else 881 ac_srcdir_defaulted=no 882fi 883if test ! -r $srcdir/$ac_unique_file; then 884 if test "$ac_srcdir_defaulted" = yes; then 885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 886 { (exit 1); exit 1; }; } 887 else 888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 889 { (exit 1); exit 1; }; } 890 fi 891fi 892(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 894 { (exit 1); exit 1; }; } 895srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 896ac_env_build_alias_set=${build_alias+set} 897ac_env_build_alias_value=$build_alias 898ac_cv_env_build_alias_set=${build_alias+set} 899ac_cv_env_build_alias_value=$build_alias 900ac_env_host_alias_set=${host_alias+set} 901ac_env_host_alias_value=$host_alias 902ac_cv_env_host_alias_set=${host_alias+set} 903ac_cv_env_host_alias_value=$host_alias 904ac_env_target_alias_set=${target_alias+set} 905ac_env_target_alias_value=$target_alias 906ac_cv_env_target_alias_set=${target_alias+set} 907ac_cv_env_target_alias_value=$target_alias 908ac_env_CC_set=${CC+set} 909ac_env_CC_value=$CC 910ac_cv_env_CC_set=${CC+set} 911ac_cv_env_CC_value=$CC 912ac_env_CFLAGS_set=${CFLAGS+set} 913ac_env_CFLAGS_value=$CFLAGS 914ac_cv_env_CFLAGS_set=${CFLAGS+set} 915ac_cv_env_CFLAGS_value=$CFLAGS 916ac_env_LDFLAGS_set=${LDFLAGS+set} 917ac_env_LDFLAGS_value=$LDFLAGS 918ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 919ac_cv_env_LDFLAGS_value=$LDFLAGS 920ac_env_CPPFLAGS_set=${CPPFLAGS+set} 921ac_env_CPPFLAGS_value=$CPPFLAGS 922ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 923ac_cv_env_CPPFLAGS_value=$CPPFLAGS 924ac_env_CPP_set=${CPP+set} 925ac_env_CPP_value=$CPP 926ac_cv_env_CPP_set=${CPP+set} 927ac_cv_env_CPP_value=$CPP 928ac_env_CXX_set=${CXX+set} 929ac_env_CXX_value=$CXX 930ac_cv_env_CXX_set=${CXX+set} 931ac_cv_env_CXX_value=$CXX 932ac_env_CXXFLAGS_set=${CXXFLAGS+set} 933ac_env_CXXFLAGS_value=$CXXFLAGS 934ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 935ac_cv_env_CXXFLAGS_value=$CXXFLAGS 936ac_env_CXXCPP_set=${CXXCPP+set} 937ac_env_CXXCPP_value=$CXXCPP 938ac_cv_env_CXXCPP_set=${CXXCPP+set} 939ac_cv_env_CXXCPP_value=$CXXCPP 940ac_env_F77_set=${F77+set} 941ac_env_F77_value=$F77 942ac_cv_env_F77_set=${F77+set} 943ac_cv_env_F77_value=$F77 944ac_env_FFLAGS_set=${FFLAGS+set} 945ac_env_FFLAGS_value=$FFLAGS 946ac_cv_env_FFLAGS_set=${FFLAGS+set} 947ac_cv_env_FFLAGS_value=$FFLAGS 948 949# 950# Report the --help message. 951# 952if test "$ac_init_help" = "long"; then 953 # Omit some internal or obsolete options to make the list less imposing. 954 # This message is too long to be a string in the A/UX 3.1 sh. 955 cat <<_ACEOF 956\`configure' configures this package to adapt to many kinds of systems. 957 958Usage: $0 [OPTION]... [VAR=VALUE]... 959 960To assign environment variables (e.g., CC, CFLAGS...), specify them as 961VAR=VALUE. See below for descriptions of some of the useful variables. 962 963Defaults for the options are specified in brackets. 964 965Configuration: 966 -h, --help display this help and exit 967 --help=short display options specific to this package 968 --help=recursive display the short help of all the included packages 969 -V, --version display version information and exit 970 -q, --quiet, --silent do not print \`checking...' messages 971 --cache-file=FILE cache test results in FILE [disabled] 972 -C, --config-cache alias for \`--cache-file=config.cache' 973 -n, --no-create do not create output files 974 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 975 976_ACEOF 977 978 cat <<_ACEOF 979Installation directories: 980 --prefix=PREFIX install architecture-independent files in PREFIX 981 [$ac_default_prefix] 982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 983 [PREFIX] 984 985By default, \`make install' will install all the files in 986\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 987an installation prefix other than \`$ac_default_prefix' using \`--prefix', 988for instance \`--prefix=\$HOME'. 989 990For better control, use the options below. 991 992Fine tuning of the installation directories: 993 --bindir=DIR user executables [EPREFIX/bin] 994 --sbindir=DIR system admin executables [EPREFIX/sbin] 995 --libexecdir=DIR program executables [EPREFIX/libexec] 996 --datadir=DIR read-only architecture-independent data [PREFIX/share] 997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 999 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1000 --libdir=DIR object code libraries [EPREFIX/lib] 1001 --includedir=DIR C header files [PREFIX/include] 1002 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1003 --infodir=DIR info documentation [PREFIX/info] 1004 --mandir=DIR man documentation [PREFIX/man] 1005_ACEOF 1006 1007 cat <<\_ACEOF 1008 1009Program names: 1010 --program-prefix=PREFIX prepend PREFIX to installed program names 1011 --program-suffix=SUFFIX append SUFFIX to installed program names 1012 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1013 1014System types: 1015 --build=BUILD configure for building on BUILD [guessed] 1016 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1017 --target=TARGET configure for building compilers for TARGET [HOST] 1018_ACEOF 1019fi 1020 1021if test -n "$ac_init_help"; then 1022 1023 cat <<\_ACEOF 1024 1025Optional Features: 1026 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1027 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1028 --disable-dependency-tracking speeds up one-time build 1029 --enable-dependency-tracking do not reject slow dependency extractors 1030 --enable-maintainer-mode enable maintainer mode 1031 --enable-dmalloc-mode enable dmalloc mode 1032 --enable-dynamic-loading enable dynamic module loading 1033 --enable-static@<:@=PKGS@:>@ 1034 build static libraries @<:@default=no@:>@ 1035 --enable-shared@<:@=PKGS@:>@ 1036 build shared libraries @<:@default=yes@:>@ 1037 --enable-fast-install@<:@=PKGS@:>@ 1038 optimize for fast installation @<:@default=yes@:>@ 1039 --disable-libtool-lock avoid locking (might break parallel builds) 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-included-algos=algo1,algo2,... include algorithms/modes into the library 1045 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@ 1046 --with-pic try to use only PIC/non-PIC objects @<:@default=use 1047 both@:>@ 1048 --with-tags@<:@=TAGS@:>@ 1049 include additional configurations @<:@automatic@:>@ 1050 1051Some influential environment variables: 1052 CC C compiler command 1053 CFLAGS C compiler flags 1054 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1055 nonstandard directory <lib dir> 1056 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1057 headers in a nonstandard directory <include dir> 1058 CPP C preprocessor 1059 CXX C++ compiler command 1060 CXXFLAGS C++ compiler flags 1061 CXXCPP C++ preprocessor 1062 F77 Fortran 77 compiler command 1063 FFLAGS Fortran 77 compiler flags 1064 1065Use these variables to override the choices made by `configure' or to help 1066it to find libraries and programs with nonstandard names/locations. 1067 1068_ACEOF 1069fi 1070 1071if test "$ac_init_help" = "recursive"; then 1072 # If there are subdirs, report their specific --help. 1073 ac_popdir=`pwd` 1074 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1075 test -d $ac_dir || continue 1076 ac_builddir=. 1077 1078if test "$ac_dir" != .; then 1079 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1080 # A "../" for each directory in $ac_dir_suffix. 1081 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1082else 1083 ac_dir_suffix= ac_top_builddir= 1084fi 1085 1086case $srcdir in 1087 .) # No --srcdir option. We are building in place. 1088 ac_srcdir=. 1089 if test -z "$ac_top_builddir"; then 1090 ac_top_srcdir=. 1091 else 1092 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1093 fi ;; 1094 [\\/]* | ?:[\\/]* ) # Absolute path. 1095 ac_srcdir=$srcdir$ac_dir_suffix; 1096 ac_top_srcdir=$srcdir ;; 1097 *) # Relative path. 1098 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1099 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1100esac 1101 1102# Do not use `cd foo && pwd` to compute absolute paths, because 1103# the directories may not exist. 1104case `pwd` in 1105.) ac_abs_builddir="$ac_dir";; 1106*) 1107 case "$ac_dir" in 1108 .) ac_abs_builddir=`pwd`;; 1109 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1110 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1111 esac;; 1112esac 1113case $ac_abs_builddir in 1114.) ac_abs_top_builddir=${ac_top_builddir}.;; 1115*) 1116 case ${ac_top_builddir}. in 1117 .) ac_abs_top_builddir=$ac_abs_builddir;; 1118 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1119 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1120 esac;; 1121esac 1122case $ac_abs_builddir in 1123.) ac_abs_srcdir=$ac_srcdir;; 1124*) 1125 case $ac_srcdir in 1126 .) ac_abs_srcdir=$ac_abs_builddir;; 1127 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1128 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1129 esac;; 1130esac 1131case $ac_abs_builddir in 1132.) ac_abs_top_srcdir=$ac_top_srcdir;; 1133*) 1134 case $ac_top_srcdir in 1135 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1136 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1137 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1138 esac;; 1139esac 1140 1141 cd $ac_dir 1142 # Check for guested configure; otherwise get Cygnus style configure. 1143 if test -f $ac_srcdir/configure.gnu; then 1144 echo 1145 $SHELL $ac_srcdir/configure.gnu --help=recursive 1146 elif test -f $ac_srcdir/configure; then 1147 echo 1148 $SHELL $ac_srcdir/configure --help=recursive 1149 elif test -f $ac_srcdir/configure.ac || 1150 test -f $ac_srcdir/configure.in; then 1151 echo 1152 $ac_configure --help 1153 else 1154 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1155 fi 1156 cd $ac_popdir 1157 done 1158fi 1159 1160test -n "$ac_init_help" && exit 0 1161if $ac_init_version; then 1162 cat <<\_ACEOF 1163 1164Copyright (C) 2003 Free Software Foundation, Inc. 1165This configure script is free software; the Free Software Foundation 1166gives unlimited permission to copy, distribute and modify it. 1167_ACEOF 1168 exit 0 1169fi 1170exec 5>config.log 1171cat >&5 <<_ACEOF 1172This file contains any messages produced by compilers while 1173running configure, to aid debugging if configure makes a mistake. 1174 1175It was created by $as_me, which was 1176generated by GNU Autoconf 2.59. Invocation command line was 1177 1178 $ $0 $@ 1179 1180_ACEOF 1181{ 1182cat <<_ASUNAME 1183@%:@@%:@ --------- @%:@@%:@ 1184@%:@@%:@ Platform. @%:@@%:@ 1185@%:@@%:@ --------- @%:@@%:@ 1186 1187hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1188uname -m = `(uname -m) 2>/dev/null || echo unknown` 1189uname -r = `(uname -r) 2>/dev/null || echo unknown` 1190uname -s = `(uname -s) 2>/dev/null || echo unknown` 1191uname -v = `(uname -v) 2>/dev/null || echo unknown` 1192 1193/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1194/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1195 1196/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1197/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1198/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1199hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1200/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1201/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1202/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1203 1204_ASUNAME 1205 1206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1207for as_dir in $PATH 1208do 1209 IFS=$as_save_IFS 1210 test -z "$as_dir" && as_dir=. 1211 echo "PATH: $as_dir" 1212done 1213 1214} >&5 1215 1216cat >&5 <<_ACEOF 1217 1218 1219@%:@@%:@ ----------- @%:@@%:@ 1220@%:@@%:@ Core tests. @%:@@%:@ 1221@%:@@%:@ ----------- @%:@@%:@ 1222 1223_ACEOF 1224 1225 1226# Keep a trace of the command line. 1227# Strip out --no-create and --no-recursion so they do not pile up. 1228# Strip out --silent because we don't want to record it for future runs. 1229# Also quote any args containing shell meta-characters. 1230# Make two passes to allow for proper duplicate-argument suppression. 1231ac_configure_args= 1232ac_configure_args0= 1233ac_configure_args1= 1234ac_sep= 1235ac_must_keep_next=false 1236for ac_pass in 1 2 1237do 1238 for ac_arg 1239 do 1240 case $ac_arg in 1241 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1242 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1243 | -silent | --silent | --silen | --sile | --sil) 1244 continue ;; 1245 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1246 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1247 esac 1248 case $ac_pass in 1249 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1250 2) 1251 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1252 if test $ac_must_keep_next = true; then 1253 ac_must_keep_next=false # Got value, back to normal. 1254 else 1255 case $ac_arg in 1256 *=* | --config-cache | -C | -disable-* | --disable-* \ 1257 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1258 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1259 | -with-* | --with-* | -without-* | --without-* | --x) 1260 case "$ac_configure_args0 " in 1261 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1262 esac 1263 ;; 1264 -* ) ac_must_keep_next=true ;; 1265 esac 1266 fi 1267 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1268 # Get rid of the leading space. 1269 ac_sep=" " 1270 ;; 1271 esac 1272 done 1273done 1274$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1275$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1276 1277# When interrupted or exit'd, cleanup temporary files, and complete 1278# config.log. We remove comments because anyway the quotes in there 1279# would cause problems or look ugly. 1280# WARNING: Be sure not to use single quotes in there, as some shells, 1281# such as our DU 5.0 friend, will then `close' the trap. 1282trap 'exit_status=$? 1283 # Save into config.log some information that might help in debugging. 1284 { 1285 echo 1286 1287 cat <<\_ASBOX 1288@%:@@%:@ ---------------- @%:@@%:@ 1289@%:@@%:@ Cache variables. @%:@@%:@ 1290@%:@@%:@ ---------------- @%:@@%:@ 1291_ASBOX 1292 echo 1293 # The following way of writing the cache mishandles newlines in values, 1294{ 1295 (set) 2>&1 | 1296 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1297 *ac_space=\ *) 1298 sed -n \ 1299 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1300 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1301 ;; 1302 *) 1303 sed -n \ 1304 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1305 ;; 1306 esac; 1307} 1308 echo 1309 1310 cat <<\_ASBOX 1311@%:@@%:@ ----------------- @%:@@%:@ 1312@%:@@%:@ Output variables. @%:@@%:@ 1313@%:@@%:@ ----------------- @%:@@%:@ 1314_ASBOX 1315 echo 1316 for ac_var in $ac_subst_vars 1317 do 1318 eval ac_val=$`echo $ac_var` 1319 echo "$ac_var='"'"'$ac_val'"'"'" 1320 done | sort 1321 echo 1322 1323 if test -n "$ac_subst_files"; then 1324 cat <<\_ASBOX 1325@%:@@%:@ ------------- @%:@@%:@ 1326@%:@@%:@ Output files. @%:@@%:@ 1327@%:@@%:@ ------------- @%:@@%:@ 1328_ASBOX 1329 echo 1330 for ac_var in $ac_subst_files 1331 do 1332 eval ac_val=$`echo $ac_var` 1333 echo "$ac_var='"'"'$ac_val'"'"'" 1334 done | sort 1335 echo 1336 fi 1337 1338 if test -s confdefs.h; then 1339 cat <<\_ASBOX 1340@%:@@%:@ ----------- @%:@@%:@ 1341@%:@@%:@ confdefs.h. @%:@@%:@ 1342@%:@@%:@ ----------- @%:@@%:@ 1343_ASBOX 1344 echo 1345 sed "/^$/d" confdefs.h | sort 1346 echo 1347 fi 1348 test "$ac_signal" != 0 && 1349 echo "$as_me: caught signal $ac_signal" 1350 echo "$as_me: exit $exit_status" 1351 } >&5 1352 rm -f core *.core && 1353 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1354 exit $exit_status 1355 ' 0 1356for ac_signal in 1 2 13 15; do 1357 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1358done 1359ac_signal=0 1360 1361# confdefs.h avoids OS command line length limits that DEFS can exceed. 1362rm -rf conftest* confdefs.h 1363# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1364echo >confdefs.h 1365 1366# Predefined preprocessor variables. 1367 1368cat >>confdefs.h <<_ACEOF 1369@%:@define PACKAGE_NAME "$PACKAGE_NAME" 1370_ACEOF 1371 1372 1373cat >>confdefs.h <<_ACEOF 1374@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1375_ACEOF 1376 1377 1378cat >>confdefs.h <<_ACEOF 1379@%:@define PACKAGE_VERSION "$PACKAGE_VERSION" 1380_ACEOF 1381 1382 1383cat >>confdefs.h <<_ACEOF 1384@%:@define PACKAGE_STRING "$PACKAGE_STRING" 1385_ACEOF 1386 1387 1388cat >>confdefs.h <<_ACEOF 1389@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1390_ACEOF 1391 1392 1393# Let the site file select an alternate cache file if it wants to. 1394# Prefer explicitly selected file to automatically selected ones. 1395if test -z "$CONFIG_SITE"; then 1396 if test "x$prefix" != xNONE; then 1397 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1398 else 1399 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1400 fi 1401fi 1402for ac_site_file in $CONFIG_SITE; do 1403 if test -r "$ac_site_file"; then 1404 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1405echo "$as_me: loading site script $ac_site_file" >&6;} 1406 sed 's/^/| /' "$ac_site_file" >&5 1407 . "$ac_site_file" 1408 fi 1409done 1410 1411if test -r "$cache_file"; then 1412 # Some versions of bash will fail to source /dev/null (special 1413 # files actually), so we avoid doing that. 1414 if test -f "$cache_file"; then 1415 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1416echo "$as_me: loading cache $cache_file" >&6;} 1417 case $cache_file in 1418 [\\/]* | ?:[\\/]* ) . $cache_file;; 1419 *) . ./$cache_file;; 1420 esac 1421 fi 1422else 1423 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1424echo "$as_me: creating cache $cache_file" >&6;} 1425 >$cache_file 1426fi 1427 1428# Check that the precious variables saved in the cache have kept the same 1429# value. 1430ac_cache_corrupted=false 1431for ac_var in `(set) 2>&1 | 1432 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1433 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1434 eval ac_new_set=\$ac_env_${ac_var}_set 1435 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1436 eval ac_new_val="\$ac_env_${ac_var}_value" 1437 case $ac_old_set,$ac_new_set in 1438 set,) 1439 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1440echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1441 ac_cache_corrupted=: ;; 1442 ,set) 1443 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1444echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1445 ac_cache_corrupted=: ;; 1446 ,);; 1447 *) 1448 if test "x$ac_old_val" != "x$ac_new_val"; then 1449 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1450echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1451 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1452echo "$as_me: former value: $ac_old_val" >&2;} 1453 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1454echo "$as_me: current value: $ac_new_val" >&2;} 1455 ac_cache_corrupted=: 1456 fi;; 1457 esac 1458 # Pass precious variables to config.status. 1459 if test "$ac_new_set" = set; then 1460 case $ac_new_val in 1461 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1462 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1463 *) ac_arg=$ac_var=$ac_new_val ;; 1464 esac 1465 case " $ac_configure_args " in 1466 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1467 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1468 esac 1469 fi 1470done 1471if $ac_cache_corrupted; then 1472 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1473echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1474 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1475echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1476 { (exit 1); exit 1; }; } 1477fi 1478 1479ac_ext=c 1480ac_cpp='$CPP $CPPFLAGS' 1481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1483ac_compiler_gnu=$ac_cv_c_compiler_gnu 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504LIBMCRYPT_MAJOR_VERSION=2 1505LIBMCRYPT_MINOR_VERSION=5 1506LIBMCRYPT_MICRO_VERSION=7 1507LIBMCRYPT_VERSION=$LIBMCRYPT_MAJOR_VERSION.$LIBMCRYPT_MINOR_VERSION.$LIBMCRYPT_MICRO_VERSION 1508 1509LIBMCRYPT_MOST_RECENT_INTERFACE=8 1510LIBMCRYPT_CURRENT_INTERFACE_IMPLEMENTATION_NUMBER=$LIBMCRYPT_MICRO_VERSION 1511LIBMCRYPT_OLDEST_INTERFACE=4 1512 1513ac_aux_dir= 1514for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1515 if test -f $ac_dir/install-sh; then 1516 ac_aux_dir=$ac_dir 1517 ac_install_sh="$ac_aux_dir/install-sh -c" 1518 break 1519 elif test -f $ac_dir/install.sh; then 1520 ac_aux_dir=$ac_dir 1521 ac_install_sh="$ac_aux_dir/install.sh -c" 1522 break 1523 elif test -f $ac_dir/shtool; then 1524 ac_aux_dir=$ac_dir 1525 ac_install_sh="$ac_aux_dir/shtool install -c" 1526 break 1527 fi 1528done 1529if test -z "$ac_aux_dir"; then 1530 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1531echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1532 { (exit 1); exit 1; }; } 1533fi 1534ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1535ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1536ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1537 1538# Make sure we can run config.sub. 1539$ac_config_sub sun4 >/dev/null 2>&1 || 1540 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1541echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1542 { (exit 1); exit 1; }; } 1543 1544echo "$as_me:$LINENO: checking build system type" >&5 1545echo $ECHO_N "checking build system type... $ECHO_C" >&6 1546if test "${ac_cv_build+set}" = set; then 1547 echo $ECHO_N "(cached) $ECHO_C" >&6 1548else 1549 ac_cv_build_alias=$build_alias 1550test -z "$ac_cv_build_alias" && 1551 ac_cv_build_alias=`$ac_config_guess` 1552test -z "$ac_cv_build_alias" && 1553 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1554echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1555 { (exit 1); exit 1; }; } 1556ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1557 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1558echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1559 { (exit 1); exit 1; }; } 1560 1561fi 1562echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1563echo "${ECHO_T}$ac_cv_build" >&6 1564build=$ac_cv_build 1565build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1566build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1567build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1568 1569 1570echo "$as_me:$LINENO: checking host system type" >&5 1571echo $ECHO_N "checking host system type... $ECHO_C" >&6 1572if test "${ac_cv_host+set}" = set; then 1573 echo $ECHO_N "(cached) $ECHO_C" >&6 1574else 1575 ac_cv_host_alias=$host_alias 1576test -z "$ac_cv_host_alias" && 1577 ac_cv_host_alias=$ac_cv_build_alias 1578ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1579 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1580echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1581 { (exit 1); exit 1; }; } 1582 1583fi 1584echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1585echo "${ECHO_T}$ac_cv_host" >&6 1586host=$ac_cv_host 1587host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1588host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1589host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1590 1591 1592echo "$as_me:$LINENO: checking target system type" >&5 1593echo $ECHO_N "checking target system type... $ECHO_C" >&6 1594if test "${ac_cv_target+set}" = set; then 1595 echo $ECHO_N "(cached) $ECHO_C" >&6 1596else 1597 ac_cv_target_alias=$target_alias 1598test "x$ac_cv_target_alias" = "x" && 1599 ac_cv_target_alias=$ac_cv_host_alias 1600ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1601 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1602echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1603 { (exit 1); exit 1; }; } 1604 1605fi 1606echo "$as_me:$LINENO: result: $ac_cv_target" >&5 1607echo "${ECHO_T}$ac_cv_target" >&6 1608target=$ac_cv_target 1609target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1610target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1611target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1612 1613 1614# The aliases save the names the user supplied, while $host etc. 1615# will get canonicalized. 1616test -n "$target_alias" && 1617 test "$program_prefix$program_suffix$program_transform_name" = \ 1618 NONENONEs,x,x, && 1619 program_prefix=${target_alias}- 1620am__api_version="1.9" 1621# Find a good install program. We prefer a C program (faster), 1622# so one script is as good as another. But avoid the broken or 1623# incompatible versions: 1624# SysV /etc/install, /usr/sbin/install 1625# SunOS /usr/etc/install 1626# IRIX /sbin/install 1627# AIX /bin/install 1628# AmigaOS /C/install, which installs bootblocks on floppy discs 1629# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1630# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1631# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1632# OS/2's system install, which has a completely different semantic 1633# ./install, which can be erroneously created by make from ./install.sh. 1634echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1635echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1636if test -z "$INSTALL"; then 1637if test "${ac_cv_path_install+set}" = set; then 1638 echo $ECHO_N "(cached) $ECHO_C" >&6 1639else 1640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1641for as_dir in $PATH 1642do 1643 IFS=$as_save_IFS 1644 test -z "$as_dir" && as_dir=. 1645 # Account for people who put trailing slashes in PATH elements. 1646case $as_dir/ in 1647 ./ | .// | /cC/* | \ 1648 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1649 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1650 /usr/ucb/* ) ;; 1651 *) 1652 # OSF1 and SCO ODT 3.0 have their own names for install. 1653 # Don't use installbsd from OSF since it installs stuff as root 1654 # by default. 1655 for ac_prog in ginstall scoinst install; do 1656 for ac_exec_ext in '' $ac_executable_extensions; do 1657 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1658 if test $ac_prog = install && 1659 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1660 # AIX install. It has an incompatible calling convention. 1661 : 1662 elif test $ac_prog = install && 1663 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1664 # program-specific install script used by HP pwplus--don't use. 1665 : 1666 else 1667 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1668 break 3 1669 fi 1670 fi 1671 done 1672 done 1673 ;; 1674esac 1675done 1676 1677 1678fi 1679 if test "${ac_cv_path_install+set}" = set; then 1680 INSTALL=$ac_cv_path_install 1681 else 1682 # As a last resort, use the slow shell script. We don't cache a 1683 # path for INSTALL within a source directory, because that will 1684 # break other packages using the cache if that directory is 1685 # removed, or if the path is relative. 1686 INSTALL=$ac_install_sh 1687 fi 1688fi 1689echo "$as_me:$LINENO: result: $INSTALL" >&5 1690echo "${ECHO_T}$INSTALL" >&6 1691 1692# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1693# It thinks the first close brace ends the variable substitution. 1694test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1695 1696test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1697 1698test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1699 1700echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1701echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1702# Just in case 1703sleep 1 1704echo timestamp > conftest.file 1705# Do `set' in a subshell so we don't clobber the current shell's 1706# arguments. Must try -L first in case configure is actually a 1707# symlink; some systems play weird games with the mod time of symlinks 1708# (eg FreeBSD returns the mod time of the symlink's containing 1709# directory). 1710if ( 1711 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1712 if test "$*" = "X"; then 1713 # -L didn't work. 1714 set X `ls -t $srcdir/configure conftest.file` 1715 fi 1716 rm -f conftest.file 1717 if test "$*" != "X $srcdir/configure conftest.file" \ 1718 && test "$*" != "X conftest.file $srcdir/configure"; then 1719 1720 # If neither matched, then we have a broken ls. This can happen 1721 # if, for instance, CONFIG_SHELL is bash and it inherits a 1722 # broken ls alias from the environment. This has actually 1723 # happened. Such a system could not be considered "sane". 1724 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1725alias in your environment" >&5 1726echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1727alias in your environment" >&2;} 1728 { (exit 1); exit 1; }; } 1729 fi 1730 1731 test "$2" = conftest.file 1732 ) 1733then 1734 # Ok. 1735 : 1736else 1737 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1738Check your system clock" >&5 1739echo "$as_me: error: newly created file is older than distributed files! 1740Check your system clock" >&2;} 1741 { (exit 1); exit 1; }; } 1742fi 1743echo "$as_me:$LINENO: result: yes" >&5 1744echo "${ECHO_T}yes" >&6 1745test "$program_prefix" != NONE && 1746 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1747# Use a double $ so make ignores it. 1748test "$program_suffix" != NONE && 1749 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1750# Double any \ or $. echo might interpret backslashes. 1751# By default was `s,x,x', remove it if useless. 1752cat <<\_ACEOF >conftest.sed 1753s/[\\$]/&&/g;s/;s,x,x,$// 1754_ACEOF 1755program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1756rm conftest.sed 1757 1758# expand $ac_aux_dir to an absolute path 1759am_aux_dir=`cd $ac_aux_dir && pwd` 1760 1761test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1762# Use eval to expand $SHELL 1763if eval "$MISSING --run true"; then 1764 am_missing_run="$MISSING --run " 1765else 1766 am_missing_run= 1767 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1768echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1769fi 1770 1771if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1772 # We used to keeping the `.' as first argument, in order to 1773 # allow $(mkdir_p) to be used without argument. As in 1774 # $(mkdir_p) $(somedir) 1775 # where $(somedir) is conditionally defined. However this is wrong 1776 # for two reasons: 1777 # 1. if the package is installed by a user who cannot write `.' 1778 # make install will fail, 1779 # 2. the above comment should most certainly read 1780 # $(mkdir_p) $(DESTDIR)$(somedir) 1781 # so it does not work when $(somedir) is undefined and 1782 # $(DESTDIR) is not. 1783 # To support the latter case, we have to write 1784 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 1785 # so the `.' trick is pointless. 1786 mkdir_p='mkdir -p --' 1787else 1788 # On NextStep and OpenStep, the `mkdir' command does not 1789 # recognize any option. It will interpret all options as 1790 # directories to create, and then abort because `.' already 1791 # exists. 1792 for d in ./-p ./--version; 1793 do 1794 test -d $d && rmdir $d 1795 done 1796 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1797 if test -f "$ac_aux_dir/mkinstalldirs"; then 1798 mkdir_p='$(mkinstalldirs)' 1799 else 1800 mkdir_p='$(install_sh) -d' 1801 fi 1802fi 1803 1804for ac_prog in gawk mawk nawk awk 1805do 1806 # Extract the first word of "$ac_prog", so it can be a program name with args. 1807set dummy $ac_prog; ac_word=$2 1808echo "$as_me:$LINENO: checking for $ac_word" >&5 1809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1810if test "${ac_cv_prog_AWK+set}" = set; then 1811 echo $ECHO_N "(cached) $ECHO_C" >&6 1812else 1813 if test -n "$AWK"; then 1814 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1815else 1816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1817for as_dir in $PATH 1818do 1819 IFS=$as_save_IFS 1820 test -z "$as_dir" && as_dir=. 1821 for ac_exec_ext in '' $ac_executable_extensions; do 1822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1823 ac_cv_prog_AWK="$ac_prog" 1824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1825 break 2 1826 fi 1827done 1828done 1829 1830fi 1831fi 1832AWK=$ac_cv_prog_AWK 1833if test -n "$AWK"; then 1834 echo "$as_me:$LINENO: result: $AWK" >&5 1835echo "${ECHO_T}$AWK" >&6 1836else 1837 echo "$as_me:$LINENO: result: no" >&5 1838echo "${ECHO_T}no" >&6 1839fi 1840 1841 test -n "$AWK" && break 1842done 1843 1844echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1845echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1846set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1847if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1848 echo $ECHO_N "(cached) $ECHO_C" >&6 1849else 1850 cat >conftest.make <<\_ACEOF 1851all: 1852 @echo 'ac_maketemp="$(MAKE)"' 1853_ACEOF 1854# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1855eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1856if test -n "$ac_maketemp"; then 1857 eval ac_cv_prog_make_${ac_make}_set=yes 1858else 1859 eval ac_cv_prog_make_${ac_make}_set=no 1860fi 1861rm -f conftest.make 1862fi 1863if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1864 echo "$as_me:$LINENO: result: yes" >&5 1865echo "${ECHO_T}yes" >&6 1866 SET_MAKE= 1867else 1868 echo "$as_me:$LINENO: result: no" >&5 1869echo "${ECHO_T}no" >&6 1870 SET_MAKE="MAKE=${MAKE-make}" 1871fi 1872 1873rm -rf .tst 2>/dev/null 1874mkdir .tst 2>/dev/null 1875if test -d .tst; then 1876 am__leading_dot=. 1877else 1878 am__leading_dot=_ 1879fi 1880rmdir .tst 2>/dev/null 1881 1882# test to see if srcdir already configured 1883if test "`cd $srcdir && pwd`" != "`pwd`" && 1884 test -f $srcdir/config.status; then 1885 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1886echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1887 { (exit 1); exit 1; }; } 1888fi 1889 1890# test whether we have cygpath 1891if test -z "$CYGPATH_W"; then 1892 if (cygpath --version) >/dev/null 2>/dev/null; then 1893 CYGPATH_W='cygpath -w' 1894 else 1895 CYGPATH_W=echo 1896 fi 1897fi 1898 1899 1900# Define the identity of the package. 1901 PACKAGE=libmcrypt 1902 VERSION=$LIBMCRYPT_VERSION 1903 1904 1905cat >>confdefs.h <<_ACEOF 1906@%:@define PACKAGE "$PACKAGE" 1907_ACEOF 1908 1909 1910cat >>confdefs.h <<_ACEOF 1911@%:@define VERSION "$VERSION" 1912_ACEOF 1913 1914# Some tools Automake needs. 1915 1916ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1917 1918 1919AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1920 1921 1922AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1923 1924 1925AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1926 1927 1928MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1929 1930install_sh=${install_sh-"$am_aux_dir/install-sh"} 1931 1932# Installed binaries are usually stripped using `strip' when the user 1933# run `make install-strip'. However `strip' might not be the right 1934# tool to use in cross-compilation environments, therefore Automake 1935# will honor the `STRIP' environment variable to overrule this program. 1936if test "$cross_compiling" != no; then 1937 if test -n "$ac_tool_prefix"; then 1938 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1939set dummy ${ac_tool_prefix}strip; ac_word=$2 1940echo "$as_me:$LINENO: checking for $ac_word" >&5 1941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1942if test "${ac_cv_prog_STRIP+set}" = set; then 1943 echo $ECHO_N "(cached) $ECHO_C" >&6 1944else 1945 if test -n "$STRIP"; then 1946 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1947else 1948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1949for as_dir in $PATH 1950do 1951 IFS=$as_save_IFS 1952 test -z "$as_dir" && as_dir=. 1953 for ac_exec_ext in '' $ac_executable_extensions; do 1954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1955 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1957 break 2 1958 fi 1959done 1960done 1961 1962fi 1963fi 1964STRIP=$ac_cv_prog_STRIP 1965if test -n "$STRIP"; then 1966 echo "$as_me:$LINENO: result: $STRIP" >&5 1967echo "${ECHO_T}$STRIP" >&6 1968else 1969 echo "$as_me:$LINENO: result: no" >&5 1970echo "${ECHO_T}no" >&6 1971fi 1972 1973fi 1974if test -z "$ac_cv_prog_STRIP"; then 1975 ac_ct_STRIP=$STRIP 1976 # Extract the first word of "strip", so it can be a program name with args. 1977set dummy strip; ac_word=$2 1978echo "$as_me:$LINENO: checking for $ac_word" >&5 1979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1980if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1981 echo $ECHO_N "(cached) $ECHO_C" >&6 1982else 1983 if test -n "$ac_ct_STRIP"; then 1984 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1985else 1986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1987for as_dir in $PATH 1988do 1989 IFS=$as_save_IFS 1990 test -z "$as_dir" && as_dir=. 1991 for ac_exec_ext in '' $ac_executable_extensions; do 1992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1993 ac_cv_prog_ac_ct_STRIP="strip" 1994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1995 break 2 1996 fi 1997done 1998done 1999 2000 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 2001fi 2002fi 2003ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2004if test -n "$ac_ct_STRIP"; then 2005 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2006echo "${ECHO_T}$ac_ct_STRIP" >&6 2007else 2008 echo "$as_me:$LINENO: result: no" >&5 2009echo "${ECHO_T}no" >&6 2010fi 2011 2012 STRIP=$ac_ct_STRIP 2013else 2014 STRIP="$ac_cv_prog_STRIP" 2015fi 2016 2017fi 2018INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2019 2020# We need awk for the "check" target. The system "awk" is bad on 2021# some platforms. 2022# Always define AMTAR for backward compatibility. 2023 2024AMTAR=${AMTAR-"${am_missing_run}tar"} 2025 2026am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2027 2028 2029 2030 2031 2032 ac_config_headers="$ac_config_headers config.h" 2033 2034 2035 2036echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2037echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 2038set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 2039if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2040 echo $ECHO_N "(cached) $ECHO_C" >&6 2041else 2042 cat >conftest.make <<\_ACEOF 2043all: 2044 @echo 'ac_maketemp="$(MAKE)"' 2045_ACEOF 2046# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2047eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2048if test -n "$ac_maketemp"; then 2049 eval ac_cv_prog_make_${ac_make}_set=yes 2050else 2051 eval ac_cv_prog_make_${ac_make}_set=no 2052fi 2053rm -f conftest.make 2054fi 2055if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2056 echo "$as_me:$LINENO: result: yes" >&5 2057echo "${ECHO_T}yes" >&6 2058 SET_MAKE= 2059else 2060 echo "$as_me:$LINENO: result: no" >&5 2061echo "${ECHO_T}no" >&6 2062 SET_MAKE="MAKE=${MAKE-make}" 2063fi 2064 2065 2066ac_ext=c 2067ac_cpp='$CPP $CPPFLAGS' 2068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2070ac_compiler_gnu=$ac_cv_c_compiler_gnu 2071if test -n "$ac_tool_prefix"; then 2072 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2073set dummy ${ac_tool_prefix}gcc; ac_word=$2 2074echo "$as_me:$LINENO: checking for $ac_word" >&5 2075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2076if test "${ac_cv_prog_CC+set}" = set; then 2077 echo $ECHO_N "(cached) $ECHO_C" >&6 2078else 2079 if test -n "$CC"; then 2080 ac_cv_prog_CC="$CC" # Let the user override the test. 2081else 2082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2083for as_dir in $PATH 2084do 2085 IFS=$as_save_IFS 2086 test -z "$as_dir" && as_dir=. 2087 for ac_exec_ext in '' $ac_executable_extensions; do 2088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2089 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2091 break 2 2092 fi 2093done 2094done 2095 2096fi 2097fi 2098CC=$ac_cv_prog_CC 2099if test -n "$CC"; then 2100 echo "$as_me:$LINENO: result: $CC" >&5 2101echo "${ECHO_T}$CC" >&6 2102else 2103 echo "$as_me:$LINENO: result: no" >&5 2104echo "${ECHO_T}no" >&6 2105fi 2106 2107fi 2108if test -z "$ac_cv_prog_CC"; then 2109 ac_ct_CC=$CC 2110 # Extract the first word of "gcc", so it can be a program name with args. 2111set dummy gcc; ac_word=$2 2112echo "$as_me:$LINENO: checking for $ac_word" >&5 2113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2114if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2115 echo $ECHO_N "(cached) $ECHO_C" >&6 2116else 2117 if test -n "$ac_ct_CC"; then 2118 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2119else 2120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2121for as_dir in $PATH 2122do 2123 IFS=$as_save_IFS 2124 test -z "$as_dir" && as_dir=. 2125 for ac_exec_ext in '' $ac_executable_extensions; do 2126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2127 ac_cv_prog_ac_ct_CC="gcc" 2128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2129 break 2 2130 fi 2131done 2132done 2133 2134fi 2135fi 2136ac_ct_CC=$ac_cv_prog_ac_ct_CC 2137if test -n "$ac_ct_CC"; then 2138 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2139echo "${ECHO_T}$ac_ct_CC" >&6 2140else 2141 echo "$as_me:$LINENO: result: no" >&5 2142echo "${ECHO_T}no" >&6 2143fi 2144 2145 CC=$ac_ct_CC 2146else 2147 CC="$ac_cv_prog_CC" 2148fi 2149 2150if test -z "$CC"; then 2151 if test -n "$ac_tool_prefix"; then 2152 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2153set dummy ${ac_tool_prefix}cc; ac_word=$2 2154echo "$as_me:$LINENO: checking for $ac_word" >&5 2155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2156if test "${ac_cv_prog_CC+set}" = set; then 2157 echo $ECHO_N "(cached) $ECHO_C" >&6 2158else 2159 if test -n "$CC"; then 2160 ac_cv_prog_CC="$CC" # Let the user override the test. 2161else 2162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2163for as_dir in $PATH 2164do 2165 IFS=$as_save_IFS 2166 test -z "$as_dir" && as_dir=. 2167 for ac_exec_ext in '' $ac_executable_extensions; do 2168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2169 ac_cv_prog_CC="${ac_tool_prefix}cc" 2170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2171 break 2 2172 fi 2173done 2174done 2175 2176fi 2177fi 2178CC=$ac_cv_prog_CC 2179if test -n "$CC"; then 2180 echo "$as_me:$LINENO: result: $CC" >&5 2181echo "${ECHO_T}$CC" >&6 2182else 2183 echo "$as_me:$LINENO: result: no" >&5 2184echo "${ECHO_T}no" >&6 2185fi 2186 2187fi 2188if test -z "$ac_cv_prog_CC"; then 2189 ac_ct_CC=$CC 2190 # Extract the first word of "cc", so it can be a program name with args. 2191set dummy cc; ac_word=$2 2192echo "$as_me:$LINENO: checking for $ac_word" >&5 2193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2194if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2195 echo $ECHO_N "(cached) $ECHO_C" >&6 2196else 2197 if test -n "$ac_ct_CC"; then 2198 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2199else 2200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2201for as_dir in $PATH 2202do 2203 IFS=$as_save_IFS 2204 test -z "$as_dir" && as_dir=. 2205 for ac_exec_ext in '' $ac_executable_extensions; do 2206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2207 ac_cv_prog_ac_ct_CC="cc" 2208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2209 break 2 2210 fi 2211done 2212done 2213 2214fi 2215fi 2216ac_ct_CC=$ac_cv_prog_ac_ct_CC 2217if test -n "$ac_ct_CC"; then 2218 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2219echo "${ECHO_T}$ac_ct_CC" >&6 2220else 2221 echo "$as_me:$LINENO: result: no" >&5 2222echo "${ECHO_T}no" >&6 2223fi 2224 2225 CC=$ac_ct_CC 2226else 2227 CC="$ac_cv_prog_CC" 2228fi 2229 2230fi 2231if test -z "$CC"; then 2232 # Extract the first word of "cc", so it can be a program name with args. 2233set dummy cc; ac_word=$2 2234echo "$as_me:$LINENO: checking for $ac_word" >&5 2235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2236if test "${ac_cv_prog_CC+set}" = set; then 2237 echo $ECHO_N "(cached) $ECHO_C" >&6 2238else 2239 if test -n "$CC"; then 2240 ac_cv_prog_CC="$CC" # Let the user override the test. 2241else 2242 ac_prog_rejected=no 2243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2244for as_dir in $PATH 2245do 2246 IFS=$as_save_IFS 2247 test -z "$as_dir" && as_dir=. 2248 for ac_exec_ext in '' $ac_executable_extensions; do 2249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2250 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2251 ac_prog_rejected=yes 2252 continue 2253 fi 2254 ac_cv_prog_CC="cc" 2255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2256 break 2 2257 fi 2258done 2259done 2260 2261if test $ac_prog_rejected = yes; then 2262 # We found a bogon in the path, so make sure we never use it. 2263 set dummy $ac_cv_prog_CC 2264 shift 2265 if test $@%:@ != 0; then 2266 # We chose a different compiler from the bogus one. 2267 # However, it has the same basename, so the bogon will be chosen 2268 # first if we set CC to just the basename; use the full file name. 2269 shift 2270 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2271 fi 2272fi 2273fi 2274fi 2275CC=$ac_cv_prog_CC 2276if test -n "$CC"; then 2277 echo "$as_me:$LINENO: result: $CC" >&5 2278echo "${ECHO_T}$CC" >&6 2279else 2280 echo "$as_me:$LINENO: result: no" >&5 2281echo "${ECHO_T}no" >&6 2282fi 2283 2284fi 2285if test -z "$CC"; then 2286 if test -n "$ac_tool_prefix"; then 2287 for ac_prog in cl 2288 do 2289 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2290set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2291echo "$as_me:$LINENO: checking for $ac_word" >&5 2292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2293if test "${ac_cv_prog_CC+set}" = set; then 2294 echo $ECHO_N "(cached) $ECHO_C" >&6 2295else 2296 if test -n "$CC"; then 2297 ac_cv_prog_CC="$CC" # Let the user override the test. 2298else 2299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2300for as_dir in $PATH 2301do 2302 IFS=$as_save_IFS 2303 test -z "$as_dir" && as_dir=. 2304 for ac_exec_ext in '' $ac_executable_extensions; do 2305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2306 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2308 break 2 2309 fi 2310done 2311done 2312 2313fi 2314fi 2315CC=$ac_cv_prog_CC 2316if test -n "$CC"; then 2317 echo "$as_me:$LINENO: result: $CC" >&5 2318echo "${ECHO_T}$CC" >&6 2319else 2320 echo "$as_me:$LINENO: result: no" >&5 2321echo "${ECHO_T}no" >&6 2322fi 2323 2324 test -n "$CC" && break 2325 done 2326fi 2327if test -z "$CC"; then 2328 ac_ct_CC=$CC 2329 for ac_prog in cl 2330do 2331 # Extract the first word of "$ac_prog", so it can be a program name with args. 2332set dummy $ac_prog; ac_word=$2 2333echo "$as_me:$LINENO: checking for $ac_word" >&5 2334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2335if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2336 echo $ECHO_N "(cached) $ECHO_C" >&6 2337else 2338 if test -n "$ac_ct_CC"; then 2339 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2340else 2341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2342for as_dir in $PATH 2343do 2344 IFS=$as_save_IFS 2345 test -z "$as_dir" && as_dir=. 2346 for ac_exec_ext in '' $ac_executable_extensions; do 2347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2348 ac_cv_prog_ac_ct_CC="$ac_prog" 2349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2350 break 2 2351 fi 2352done 2353done 2354 2355fi 2356fi 2357ac_ct_CC=$ac_cv_prog_ac_ct_CC 2358if test -n "$ac_ct_CC"; then 2359 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2360echo "${ECHO_T}$ac_ct_CC" >&6 2361else 2362 echo "$as_me:$LINENO: result: no" >&5 2363echo "${ECHO_T}no" >&6 2364fi 2365 2366 test -n "$ac_ct_CC" && break 2367done 2368 2369 CC=$ac_ct_CC 2370fi 2371 2372fi 2373 2374 2375test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2376See \`config.log' for more details." >&5 2377echo "$as_me: error: no acceptable C compiler found in \$PATH 2378See \`config.log' for more details." >&2;} 2379 { (exit 1); exit 1; }; } 2380 2381# Provide some information about the compiler. 2382echo "$as_me:$LINENO:" \ 2383 "checking for C compiler version" >&5 2384ac_compiler=`set X $ac_compile; echo $2` 2385{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2386 (eval $ac_compiler --version </dev/null >&5) 2>&5 2387 ac_status=$? 2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2389 (exit $ac_status); } 2390{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2391 (eval $ac_compiler -v </dev/null >&5) 2>&5 2392 ac_status=$? 2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2394 (exit $ac_status); } 2395{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2396 (eval $ac_compiler -V </dev/null >&5) 2>&5 2397 ac_status=$? 2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2399 (exit $ac_status); } 2400 2401cat >conftest.$ac_ext <<_ACEOF 2402/* confdefs.h. */ 2403_ACEOF 2404cat confdefs.h >>conftest.$ac_ext 2405cat >>conftest.$ac_ext <<_ACEOF 2406/* end confdefs.h. */ 2407 2408int 2409main () 2410{ 2411 2412 ; 2413 return 0; 2414} 2415_ACEOF 2416ac_clean_files_save=$ac_clean_files 2417ac_clean_files="$ac_clean_files a.out a.exe b.out" 2418# Try to create an executable without -o first, disregard a.out. 2419# It will help us diagnose broken compilers, and finding out an intuition 2420# of exeext. 2421echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2422echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2423ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2424if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2425 (eval $ac_link_default) 2>&5 2426 ac_status=$? 2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2428 (exit $ac_status); }; then 2429 # Find the output, starting from the most likely. This scheme is 2430# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2431# resort. 2432 2433# Be careful to initialize this variable, since it used to be cached. 2434# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2435ac_cv_exeext= 2436# b.out is created by i960 compilers. 2437for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2438do 2439 test -f "$ac_file" || continue 2440 case $ac_file in 2441 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2442 ;; 2443 conftest.$ac_ext ) 2444 # This is the source file. 2445 ;; 2446 [ab].out ) 2447 # We found the default executable, but exeext='' is most 2448 # certainly right. 2449 break;; 2450 *.* ) 2451 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2452 # FIXME: I believe we export ac_cv_exeext for Libtool, 2453 # but it would be cool to find out if it's true. Does anybody 2454 # maintain Libtool? --akim. 2455 export ac_cv_exeext 2456 break;; 2457 * ) 2458 break;; 2459 esac 2460done 2461else 2462 echo "$as_me: failed program was:" >&5 2463sed 's/^/| /' conftest.$ac_ext >&5 2464 2465{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2466See \`config.log' for more details." >&5 2467echo "$as_me: error: C compiler cannot create executables 2468See \`config.log' for more details." >&2;} 2469 { (exit 77); exit 77; }; } 2470fi 2471 2472ac_exeext=$ac_cv_exeext 2473echo "$as_me:$LINENO: result: $ac_file" >&5 2474echo "${ECHO_T}$ac_file" >&6 2475 2476# Check the compiler produces executables we can run. If not, either 2477# the compiler is broken, or we cross compile. 2478echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2479echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2480# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2481# If not cross compiling, check that we can run a simple program. 2482if test "$cross_compiling" != yes; then 2483 if { ac_try='./$ac_file' 2484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2485 (eval $ac_try) 2>&5 2486 ac_status=$? 2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2488 (exit $ac_status); }; }; then 2489 cross_compiling=no 2490 else 2491 if test "$cross_compiling" = maybe; then 2492 cross_compiling=yes 2493 else 2494 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2495If you meant to cross compile, use \`--host'. 2496See \`config.log' for more details." >&5 2497echo "$as_me: error: cannot run C compiled programs. 2498If you meant to cross compile, use \`--host'. 2499See \`config.log' for more details." >&2;} 2500 { (exit 1); exit 1; }; } 2501 fi 2502 fi 2503fi 2504echo "$as_me:$LINENO: result: yes" >&5 2505echo "${ECHO_T}yes" >&6 2506 2507rm -f a.out a.exe conftest$ac_cv_exeext b.out 2508ac_clean_files=$ac_clean_files_save 2509# Check the compiler produces executables we can run. If not, either 2510# the compiler is broken, or we cross compile. 2511echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2512echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2513echo "$as_me:$LINENO: result: $cross_compiling" >&5 2514echo "${ECHO_T}$cross_compiling" >&6 2515 2516echo "$as_me:$LINENO: checking for suffix of executables" >&5 2517echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2519 (eval $ac_link) 2>&5 2520 ac_status=$? 2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2522 (exit $ac_status); }; then 2523 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2524# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2525# work properly (i.e., refer to `conftest.exe'), while it won't with 2526# `rm'. 2527for ac_file in conftest.exe conftest conftest.*; do 2528 test -f "$ac_file" || continue 2529 case $ac_file in 2530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2531 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2532 export ac_cv_exeext 2533 break;; 2534 * ) break;; 2535 esac 2536done 2537else 2538 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2539See \`config.log' for more details." >&5 2540echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2541See \`config.log' for more details." >&2;} 2542 { (exit 1); exit 1; }; } 2543fi 2544 2545rm -f conftest$ac_cv_exeext 2546echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2547echo "${ECHO_T}$ac_cv_exeext" >&6 2548 2549rm -f conftest.$ac_ext 2550EXEEXT=$ac_cv_exeext 2551ac_exeext=$EXEEXT 2552echo "$as_me:$LINENO: checking for suffix of object files" >&5 2553echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2554if test "${ac_cv_objext+set}" = set; then 2555 echo $ECHO_N "(cached) $ECHO_C" >&6 2556else 2557 cat >conftest.$ac_ext <<_ACEOF 2558/* confdefs.h. */ 2559_ACEOF 2560cat confdefs.h >>conftest.$ac_ext 2561cat >>conftest.$ac_ext <<_ACEOF 2562/* end confdefs.h. */ 2563 2564int 2565main () 2566{ 2567 2568 ; 2569 return 0; 2570} 2571_ACEOF 2572rm -f conftest.o conftest.obj 2573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2574 (eval $ac_compile) 2>&5 2575 ac_status=$? 2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2577 (exit $ac_status); }; then 2578 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2579 case $ac_file in 2580 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2581 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2582 break;; 2583 esac 2584done 2585else 2586 echo "$as_me: failed program was:" >&5 2587sed 's/^/| /' conftest.$ac_ext >&5 2588 2589{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2590See \`config.log' for more details." >&5 2591echo "$as_me: error: cannot compute suffix of object files: cannot compile 2592See \`config.log' for more details." >&2;} 2593 { (exit 1); exit 1; }; } 2594fi 2595 2596rm -f conftest.$ac_cv_objext conftest.$ac_ext 2597fi 2598echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2599echo "${ECHO_T}$ac_cv_objext" >&6 2600OBJEXT=$ac_cv_objext 2601ac_objext=$OBJEXT 2602echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2603echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2604if test "${ac_cv_c_compiler_gnu+set}" = set; then 2605 echo $ECHO_N "(cached) $ECHO_C" >&6 2606else 2607 cat >conftest.$ac_ext <<_ACEOF 2608/* confdefs.h. */ 2609_ACEOF 2610cat confdefs.h >>conftest.$ac_ext 2611cat >>conftest.$ac_ext <<_ACEOF 2612/* end confdefs.h. */ 2613 2614int 2615main () 2616{ 2617#ifndef __GNUC__ 2618 choke me 2619#endif 2620 2621 ; 2622 return 0; 2623} 2624_ACEOF 2625rm -f conftest.$ac_objext 2626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2627 (eval $ac_compile) 2>conftest.er1 2628 ac_status=$? 2629 grep -v '^ *+' conftest.er1 >conftest.err 2630 rm -f conftest.er1 2631 cat conftest.err >&5 2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2633 (exit $ac_status); } && 2634 { ac_try='test -z "$ac_c_werror_flag" 2635 || test ! -s conftest.err' 2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2637 (eval $ac_try) 2>&5 2638 ac_status=$? 2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2640 (exit $ac_status); }; } && 2641 { ac_try='test -s conftest.$ac_objext' 2642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2643 (eval $ac_try) 2>&5 2644 ac_status=$? 2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2646 (exit $ac_status); }; }; then 2647 ac_compiler_gnu=yes 2648else 2649 echo "$as_me: failed program was:" >&5 2650sed 's/^/| /' conftest.$ac_ext >&5 2651 2652ac_compiler_gnu=no 2653fi 2654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2655ac_cv_c_compiler_gnu=$ac_compiler_gnu 2656 2657fi 2658echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2659echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2660GCC=`test $ac_compiler_gnu = yes && echo yes` 2661ac_test_CFLAGS=${CFLAGS+set} 2662ac_save_CFLAGS=$CFLAGS 2663CFLAGS="-g" 2664echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2665echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2666if test "${ac_cv_prog_cc_g+set}" = set; then 2667 echo $ECHO_N "(cached) $ECHO_C" >&6 2668else 2669 cat >conftest.$ac_ext <<_ACEOF 2670/* confdefs.h. */ 2671_ACEOF 2672cat confdefs.h >>conftest.$ac_ext 2673cat >>conftest.$ac_ext <<_ACEOF 2674/* end confdefs.h. */ 2675 2676int 2677main () 2678{ 2679 2680 ; 2681 return 0; 2682} 2683_ACEOF 2684rm -f conftest.$ac_objext 2685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2686 (eval $ac_compile) 2>conftest.er1 2687 ac_status=$? 2688 grep -v '^ *+' conftest.er1 >conftest.err 2689 rm -f conftest.er1 2690 cat conftest.err >&5 2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2692 (exit $ac_status); } && 2693 { ac_try='test -z "$ac_c_werror_flag" 2694 || test ! -s conftest.err' 2695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2696 (eval $ac_try) 2>&5 2697 ac_status=$? 2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2699 (exit $ac_status); }; } && 2700 { ac_try='test -s conftest.$ac_objext' 2701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2702 (eval $ac_try) 2>&5 2703 ac_status=$? 2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2705 (exit $ac_status); }; }; then 2706 ac_cv_prog_cc_g=yes 2707else 2708 echo "$as_me: failed program was:" >&5 2709sed 's/^/| /' conftest.$ac_ext >&5 2710 2711ac_cv_prog_cc_g=no 2712fi 2713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2714fi 2715echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2716echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2717if test "$ac_test_CFLAGS" = set; then 2718 CFLAGS=$ac_save_CFLAGS 2719elif test $ac_cv_prog_cc_g = yes; then 2720 if test "$GCC" = yes; then 2721 CFLAGS="-g -O2" 2722 else 2723 CFLAGS="-g" 2724 fi 2725else 2726 if test "$GCC" = yes; then 2727 CFLAGS="-O2" 2728 else 2729 CFLAGS= 2730 fi 2731fi 2732echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2733echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2734if test "${ac_cv_prog_cc_stdc+set}" = set; then 2735 echo $ECHO_N "(cached) $ECHO_C" >&6 2736else 2737 ac_cv_prog_cc_stdc=no 2738ac_save_CC=$CC 2739cat >conftest.$ac_ext <<_ACEOF 2740/* confdefs.h. */ 2741_ACEOF 2742cat confdefs.h >>conftest.$ac_ext 2743cat >>conftest.$ac_ext <<_ACEOF 2744/* end confdefs.h. */ 2745#include <stdarg.h> 2746#include <stdio.h> 2747#include <sys/types.h> 2748#include <sys/stat.h> 2749/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2750struct buf { int x; }; 2751FILE * (*rcsopen) (struct buf *, struct stat *, int); 2752static char *e (p, i) 2753 char **p; 2754 int i; 2755{ 2756 return p[i]; 2757} 2758static char *f (char * (*g) (char **, int), char **p, ...) 2759{ 2760 char *s; 2761 va_list v; 2762 va_start (v,p); 2763 s = g (p, va_arg (v,int)); 2764 va_end (v); 2765 return s; 2766} 2767 2768/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2769 function prototypes and stuff, but not '\xHH' hex character constants. 2770 These don't provoke an error unfortunately, instead are silently treated 2771 as 'x'. The following induces an error, until -std1 is added to get 2772 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2773 array size at least. It's necessary to write '\x00'==0 to get something 2774 that's true only with -std1. */ 2775int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2776 2777int test (int i, double x); 2778struct s1 {int (*f) (int a);}; 2779struct s2 {int (*f) (double a);}; 2780int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2781int argc; 2782char **argv; 2783int 2784main () 2785{ 2786return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2787 ; 2788 return 0; 2789} 2790_ACEOF 2791# Don't try gcc -ansi; that turns off useful extensions and 2792# breaks some systems' header files. 2793# AIX -qlanglvl=ansi 2794# Ultrix and OSF/1 -std1 2795# HP-UX 10.20 and later -Ae 2796# HP-UX older versions -Aa -D_HPUX_SOURCE 2797# SVR4 -Xc -D__EXTENSIONS__ 2798for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2799do 2800 CC="$ac_save_CC $ac_arg" 2801 rm -f conftest.$ac_objext 2802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2803 (eval $ac_compile) 2>conftest.er1 2804 ac_status=$? 2805 grep -v '^ *+' conftest.er1 >conftest.err 2806 rm -f conftest.er1 2807 cat conftest.err >&5 2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2809 (exit $ac_status); } && 2810 { ac_try='test -z "$ac_c_werror_flag" 2811 || test ! -s conftest.err' 2812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2813 (eval $ac_try) 2>&5 2814 ac_status=$? 2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2816 (exit $ac_status); }; } && 2817 { ac_try='test -s conftest.$ac_objext' 2818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2819 (eval $ac_try) 2>&5 2820 ac_status=$? 2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2822 (exit $ac_status); }; }; then 2823 ac_cv_prog_cc_stdc=$ac_arg 2824break 2825else 2826 echo "$as_me: failed program was:" >&5 2827sed 's/^/| /' conftest.$ac_ext >&5 2828 2829fi 2830rm -f conftest.err conftest.$ac_objext 2831done 2832rm -f conftest.$ac_ext conftest.$ac_objext 2833CC=$ac_save_CC 2834 2835fi 2836 2837case "x$ac_cv_prog_cc_stdc" in 2838 x|xno) 2839 echo "$as_me:$LINENO: result: none needed" >&5 2840echo "${ECHO_T}none needed" >&6 ;; 2841 *) 2842 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2843echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2844 CC="$CC $ac_cv_prog_cc_stdc" ;; 2845esac 2846 2847# Some people use a C++ compiler to compile C. Since we use `exit', 2848# in C++ we need to declare it. In case someone uses the same compiler 2849# for both compiling C and C++ we need to have the C++ compiler decide 2850# the declaration of exit, since it's the most demanding environment. 2851cat >conftest.$ac_ext <<_ACEOF 2852@%:@ifndef __cplusplus 2853 choke me 2854@%:@endif 2855_ACEOF 2856rm -f conftest.$ac_objext 2857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2858 (eval $ac_compile) 2>conftest.er1 2859 ac_status=$? 2860 grep -v '^ *+' conftest.er1 >conftest.err 2861 rm -f conftest.er1 2862 cat conftest.err >&5 2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2864 (exit $ac_status); } && 2865 { ac_try='test -z "$ac_c_werror_flag" 2866 || test ! -s conftest.err' 2867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2868 (eval $ac_try) 2>&5 2869 ac_status=$? 2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2871 (exit $ac_status); }; } && 2872 { ac_try='test -s conftest.$ac_objext' 2873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2874 (eval $ac_try) 2>&5 2875 ac_status=$? 2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2877 (exit $ac_status); }; }; then 2878 for ac_declaration in \ 2879 '' \ 2880 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2881 'extern "C" void std::exit (int); using std::exit;' \ 2882 'extern "C" void exit (int) throw ();' \ 2883 'extern "C" void exit (int);' \ 2884 'void exit (int);' 2885do 2886 cat >conftest.$ac_ext <<_ACEOF 2887/* confdefs.h. */ 2888_ACEOF 2889cat confdefs.h >>conftest.$ac_ext 2890cat >>conftest.$ac_ext <<_ACEOF 2891/* end confdefs.h. */ 2892$ac_declaration 2893@%:@include <stdlib.h> 2894int 2895main () 2896{ 2897exit (42); 2898 ; 2899 return 0; 2900} 2901_ACEOF 2902rm -f conftest.$ac_objext 2903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2904 (eval $ac_compile) 2>conftest.er1 2905 ac_status=$? 2906 grep -v '^ *+' conftest.er1 >conftest.err 2907 rm -f conftest.er1 2908 cat conftest.err >&5 2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2910 (exit $ac_status); } && 2911 { ac_try='test -z "$ac_c_werror_flag" 2912 || test ! -s conftest.err' 2913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2914 (eval $ac_try) 2>&5 2915 ac_status=$? 2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2917 (exit $ac_status); }; } && 2918 { ac_try='test -s conftest.$ac_objext' 2919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2920 (eval $ac_try) 2>&5 2921 ac_status=$? 2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2923 (exit $ac_status); }; }; then 2924 : 2925else 2926 echo "$as_me: failed program was:" >&5 2927sed 's/^/| /' conftest.$ac_ext >&5 2928 2929continue 2930fi 2931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2932 cat >conftest.$ac_ext <<_ACEOF 2933/* confdefs.h. */ 2934_ACEOF 2935cat confdefs.h >>conftest.$ac_ext 2936cat >>conftest.$ac_ext <<_ACEOF 2937/* end confdefs.h. */ 2938$ac_declaration 2939int 2940main () 2941{ 2942exit (42); 2943 ; 2944 return 0; 2945} 2946_ACEOF 2947rm -f conftest.$ac_objext 2948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2949 (eval $ac_compile) 2>conftest.er1 2950 ac_status=$? 2951 grep -v '^ *+' conftest.er1 >conftest.err 2952 rm -f conftest.er1 2953 cat conftest.err >&5 2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2955 (exit $ac_status); } && 2956 { ac_try='test -z "$ac_c_werror_flag" 2957 || test ! -s conftest.err' 2958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2959 (eval $ac_try) 2>&5 2960 ac_status=$? 2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2962 (exit $ac_status); }; } && 2963 { ac_try='test -s conftest.$ac_objext' 2964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2965 (eval $ac_try) 2>&5 2966 ac_status=$? 2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2968 (exit $ac_status); }; }; then 2969 break 2970else 2971 echo "$as_me: failed program was:" >&5 2972sed 's/^/| /' conftest.$ac_ext >&5 2973 2974fi 2975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2976done 2977rm -f conftest* 2978if test -n "$ac_declaration"; then 2979 echo '#ifdef __cplusplus' >>confdefs.h 2980 echo $ac_declaration >>confdefs.h 2981 echo '#endif' >>confdefs.h 2982fi 2983 2984else 2985 echo "$as_me: failed program was:" >&5 2986sed 's/^/| /' conftest.$ac_ext >&5 2987 2988fi 2989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2990ac_ext=c 2991ac_cpp='$CPP $CPPFLAGS' 2992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2994ac_compiler_gnu=$ac_cv_c_compiler_gnu 2995DEPDIR="${am__leading_dot}deps" 2996 2997 ac_config_commands="$ac_config_commands depfiles" 2998 2999 3000am_make=${MAKE-make} 3001cat > confinc << 'END' 3002am__doit: 3003 @echo done 3004.PHONY: am__doit 3005END 3006# If we don't find an include directive, just comment out the code. 3007echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3008echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 3009am__include="#" 3010am__quote= 3011_am_result=none 3012# First try GNU make style include. 3013echo "include confinc" > confmf 3014# We grep out `Entering directory' and `Leaving directory' 3015# messages which can occur if `w' ends up in MAKEFLAGS. 3016# In particular we don't look at `^make:' because GNU make might 3017# be invoked under some other name (usually "gmake"), in which 3018# case it prints its new name instead of `make'. 3019if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3020 am__include=include 3021 am__quote= 3022 _am_result=GNU 3023fi 3024# Now try BSD make style include. 3025if test "$am__include" = "#"; then 3026 echo '.include "confinc"' > confmf 3027 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3028 am__include=.include 3029 am__quote="\"" 3030 _am_result=BSD 3031 fi 3032fi 3033 3034 3035echo "$as_me:$LINENO: result: $_am_result" >&5 3036echo "${ECHO_T}$_am_result" >&6 3037rm -f confinc confmf 3038 3039# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 3040if test "${enable_dependency_tracking+set}" = set; then 3041 enableval="$enable_dependency_tracking" 3042 3043fi; 3044if test "x$enable_dependency_tracking" != xno; then 3045 am_depcomp="$ac_aux_dir/depcomp" 3046 AMDEPBACKSLASH='\' 3047fi 3048 3049 3050if test "x$enable_dependency_tracking" != xno; then 3051 AMDEP_TRUE= 3052 AMDEP_FALSE='#' 3053else 3054 AMDEP_TRUE='#' 3055 AMDEP_FALSE= 3056fi 3057 3058 3059 3060 3061depcc="$CC" am_compiler_list= 3062 3063echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3064echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3065if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3066 echo $ECHO_N "(cached) $ECHO_C" >&6 3067else 3068 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3069 # We make a subdir and do the tests there. Otherwise we can end up 3070 # making bogus files that we don't know about and never remove. For 3071 # instance it was reported that on HP-UX the gcc test will end up 3072 # making a dummy file named `D' -- because `-MD' means `put the output 3073 # in D'. 3074 mkdir conftest.dir 3075 # Copy depcomp to subdir because otherwise we won't find it if we're 3076 # using a relative directory. 3077 cp "$am_depcomp" conftest.dir 3078 cd conftest.dir 3079 # We will build objects and dependencies in a subdirectory because 3080 # it helps to detect inapplicable dependency modes. For instance 3081 # both Tru64's cc and ICC support -MD to output dependencies as a 3082 # side effect of compilation, but ICC will put the dependencies in 3083 # the current directory while Tru64 will put them in the object 3084 # directory. 3085 mkdir sub 3086 3087 am_cv_CC_dependencies_compiler_type=none 3088 if test "$am_compiler_list" = ""; then 3089 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3090 fi 3091 for depmode in $am_compiler_list; do 3092 # Setup a source with many dependencies, because some compilers 3093 # like to wrap large dependency lists on column 80 (with \), and 3094 # we should not choose a depcomp mode which is confused by this. 3095 # 3096 # We need to recreate these files for each test, as the compiler may 3097 # overwrite some of them when testing with obscure command lines. 3098 # This happens at least with the AIX C compiler. 3099 : > sub/conftest.c 3100 for i in 1 2 3 4 5 6; do 3101 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3102 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3103 # Solaris 8's {/usr,}/bin/sh. 3104 touch sub/conftst$i.h 3105 done 3106 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3107 3108 case $depmode in 3109 nosideeffect) 3110 # after this tag, mechanisms are not by side-effect, so they'll 3111 # only be used when explicitly requested 3112 if test "x$enable_dependency_tracking" = xyes; then 3113 continue 3114 else 3115 break 3116 fi 3117 ;; 3118 none) break ;; 3119 esac 3120 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3121 # mode. It turns out that the SunPro C++ compiler does not properly 3122 # handle `-M -o', and we need to detect this. 3123 if depmode=$depmode \ 3124 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3125 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3126 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3127 >/dev/null 2>conftest.err && 3128 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3129 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3130 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3131 # icc doesn't choke on unknown options, it will just issue warnings 3132 # or remarks (even with -Werror). So we grep stderr for any message 3133 # that says an option was ignored or not supported. 3134 # When given -MP, icc 7.0 and 7.1 complain thusly: 3135 # icc: Command line warning: ignoring option '-M'; no argument required 3136 # The diagnosis changed in icc 8.0: 3137 # icc: Command line remark: option '-MP' not supported 3138 if (grep 'ignoring option' conftest.err || 3139 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3140 am_cv_CC_dependencies_compiler_type=$depmode 3141 break 3142 fi 3143 fi 3144 done 3145 3146 cd .. 3147 rm -rf conftest.dir 3148else 3149 am_cv_CC_dependencies_compiler_type=none 3150fi 3151 3152fi 3153echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3154echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3155CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3156 3157 3158 3159if 3160 test "x$enable_dependency_tracking" != xno \ 3161 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3162 am__fastdepCC_TRUE= 3163 am__fastdepCC_FALSE='#' 3164else 3165 am__fastdepCC_TRUE='#' 3166 am__fastdepCC_FALSE= 3167fi 3168 3169 3170 3171case "$host_os" in 3172 *w32*) 3173 LDFLAGS="$LDFLAGS -no-undefined" 3174 3175cat >>confdefs.h <<\_ACEOF 3176@%:@define WIN32 1 3177_ACEOF 3178 3179 ;; 3180 *win32*) 3181 LDFLAGS="$LDFLAGS -no-undefined" 3182 3183cat >>confdefs.h <<\_ACEOF 3184@%:@define WIN32 1 3185_ACEOF 3186 3187 ;; 3188 cygwin*) 3189 LDFLAGS="$LDFLAGS -no-undefined" 3190 3191cat >>confdefs.h <<\_ACEOF 3192@%:@define WIN32 1 3193_ACEOF 3194 3195 ;; 3196esac 3197 3198# Find a good install program. We prefer a C program (faster), 3199# so one script is as good as another. But avoid the broken or 3200# incompatible versions: 3201# SysV /etc/install, /usr/sbin/install 3202# SunOS /usr/etc/install 3203# IRIX /sbin/install 3204# AIX /bin/install 3205# AmigaOS /C/install, which installs bootblocks on floppy discs 3206# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3207# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3208# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3209# OS/2's system install, which has a completely different semantic 3210# ./install, which can be erroneously created by make from ./install.sh. 3211echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3212echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 3213if test -z "$INSTALL"; then 3214if test "${ac_cv_path_install+set}" = set; then 3215 echo $ECHO_N "(cached) $ECHO_C" >&6 3216else 3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3218for as_dir in $PATH 3219do 3220 IFS=$as_save_IFS 3221 test -z "$as_dir" && as_dir=. 3222 # Account for people who put trailing slashes in PATH elements. 3223case $as_dir/ in 3224 ./ | .// | /cC/* | \ 3225 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3226 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3227 /usr/ucb/* ) ;; 3228 *) 3229 # OSF1 and SCO ODT 3.0 have their own names for install. 3230 # Don't use installbsd from OSF since it installs stuff as root 3231 # by default. 3232 for ac_prog in ginstall scoinst install; do 3233 for ac_exec_ext in '' $ac_executable_extensions; do 3234 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3235 if test $ac_prog = install && 3236 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3237 # AIX install. It has an incompatible calling convention. 3238 : 3239 elif test $ac_prog = install && 3240 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3241 # program-specific install script used by HP pwplus--don't use. 3242 : 3243 else 3244 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3245 break 3 3246 fi 3247 fi 3248 done 3249 done 3250 ;; 3251esac 3252done 3253 3254 3255fi 3256 if test "${ac_cv_path_install+set}" = set; then 3257 INSTALL=$ac_cv_path_install 3258 else 3259 # As a last resort, use the slow shell script. We don't cache a 3260 # path for INSTALL within a source directory, because that will 3261 # break other packages using the cache if that directory is 3262 # removed, or if the path is relative. 3263 INSTALL=$ac_install_sh 3264 fi 3265fi 3266echo "$as_me:$LINENO: result: $INSTALL" >&5 3267echo "${ECHO_T}$INSTALL" >&6 3268 3269# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3270# It thinks the first close brace ends the variable substitution. 3271test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3272 3273test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3274 3275test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3276 3277echo "$as_me:$LINENO: checking whether ln -s works" >&5 3278echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3279LN_S=$as_ln_s 3280if test "$LN_S" = "ln -s"; then 3281 echo "$as_me:$LINENO: result: yes" >&5 3282echo "${ECHO_T}yes" >&6 3283else 3284 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3285echo "${ECHO_T}no, using $LN_S" >&6 3286fi 3287 3288 3289 3290opt_maintainer_mode=no 3291echo "$as_me:$LINENO: checking whether in maintanance mode" >&5 3292echo $ECHO_N "checking whether in maintanance mode... $ECHO_C" >&6 3293# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 3294if test "${enable_maintainer_mode+set}" = set; then 3295 enableval="$enable_maintainer_mode" 3296 opt_maintainer_mode=$enableval 3297fi; 3298echo "$as_me:$LINENO: result: $opt_maintainer_mode" >&5 3299echo "${ECHO_T}$opt_maintainer_mode" >&6 3300 3301opt_dmalloc_mode=no 3302echo "$as_me:$LINENO: checking whether in dmalloc mode" >&5 3303echo $ECHO_N "checking whether in dmalloc mode... $ECHO_C" >&6 3304# Check whether --enable-dmalloc-mode or --disable-dmalloc-mode was given. 3305if test "${enable_dmalloc_mode+set}" = set; then 3306 enableval="$enable_dmalloc_mode" 3307 opt_dmalloc_mode=$enableval 3308fi; 3309echo "$as_me:$LINENO: result: $opt_dmalloc_mode" >&5 3310echo "${ECHO_T}$opt_dmalloc_mode" >&6 3311 3312 3313if test x$ac_cv_c_compiler_gnu = xyes; then 3314 if test x$opt_maintainer_mode = xyes; then 3315 CFLAGS=" -ggdb3 -O2 -Wall -Wpointer-arith" 3316 fi 3317 3318 if test x$opt_dmalloc_mode = xyes; then 3319 3320 3321echo "$as_me:$LINENO: checking for main in -ldmalloc" >&5 3322echo $ECHO_N "checking for main in -ldmalloc... $ECHO_C" >&6 3323if test "${ac_cv_lib_dmalloc_main+set}" = set; then 3324 echo $ECHO_N "(cached) $ECHO_C" >&6 3325else 3326 ac_check_lib_save_LIBS=$LIBS 3327LIBS="-ldmalloc $LIBS" 3328cat >conftest.$ac_ext <<_ACEOF 3329/* confdefs.h. */ 3330_ACEOF 3331cat confdefs.h >>conftest.$ac_ext 3332cat >>conftest.$ac_ext <<_ACEOF 3333/* end confdefs.h. */ 3334 3335 3336int 3337main () 3338{ 3339main (); 3340 ; 3341 return 0; 3342} 3343_ACEOF 3344rm -f conftest.$ac_objext conftest$ac_exeext 3345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3346 (eval $ac_link) 2>conftest.er1 3347 ac_status=$? 3348 grep -v '^ *+' conftest.er1 >conftest.err 3349 rm -f conftest.er1 3350 cat conftest.err >&5 3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3352 (exit $ac_status); } && 3353 { ac_try='test -z "$ac_c_werror_flag" 3354 || test ! -s conftest.err' 3355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3356 (eval $ac_try) 2>&5 3357 ac_status=$? 3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3359 (exit $ac_status); }; } && 3360 { ac_try='test -s conftest$ac_exeext' 3361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3362 (eval $ac_try) 2>&5 3363 ac_status=$? 3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3365 (exit $ac_status); }; }; then 3366 ac_cv_lib_dmalloc_main=yes 3367else 3368 echo "$as_me: failed program was:" >&5 3369sed 's/^/| /' conftest.$ac_ext >&5 3370 3371ac_cv_lib_dmalloc_main=no 3372fi 3373rm -f conftest.err conftest.$ac_objext \ 3374 conftest$ac_exeext conftest.$ac_ext 3375LIBS=$ac_check_lib_save_LIBS 3376fi 3377echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_main" >&5 3378echo "${ECHO_T}$ac_cv_lib_dmalloc_main" >&6 3379if test $ac_cv_lib_dmalloc_main = yes; then 3380 cat >>confdefs.h <<_ACEOF 3381@%:@define HAVE_LIBDMALLOC 1 3382_ACEOF 3383 3384 LIBS="-ldmalloc $LIBS" 3385 3386fi 3387 3388 3389cat >>confdefs.h <<\_ACEOF 3390@%:@define USE_DMALLOC 1 3391_ACEOF 3392 3393 fi 3394fi 3395 3396opt_enable_ltdl=no 3397echo "$as_me:$LINENO: checking whether to enable dynamic module loading" >&5 3398echo $ECHO_N "checking whether to enable dynamic module loading... $ECHO_C" >&6 3399# Check whether --enable-dynamic-loading or --disable-dynamic-loading was given. 3400if test "${enable_dynamic_loading+set}" = set; then 3401 enableval="$enable_dynamic_loading" 3402 opt_enable_ltdl=$enableval 3403fi; 3404echo "$as_me:$LINENO: result: $opt_enable_ltdl" >&5 3405echo "${ECHO_T}$opt_enable_ltdl" >&6 3406 3407MCRYPT_MODE_MODULES="cbc cfb ctr ecb ncfb nofb ofb stream" 3408MCRYPT_ALGORITHM_MODULES="threeway cast-128 gost rijndael-128 safer-sk64 twofish \ 3409 arcfour cast-256 loki97 rijndael-192 saferplus wake \ 3410 blowfish-compat des rijndael-256 serpent xtea \ 3411 blowfish enigma rc2 safer-sk128 tripledes" 3412 3413 3414if test "x$opt_enable_ltdl" != xno; then 3415 touch lib/mcrypt_internal.h 3416 3417 echo "$as_me:$LINENO: checking for lt_dlmutex_register in -lltdl" >&5 3418echo $ECHO_N "checking for lt_dlmutex_register in -lltdl... $ECHO_C" >&6 3419if test "${ac_cv_lib_ltdl_lt_dlmutex_register+set}" = set; then 3420 echo $ECHO_N "(cached) $ECHO_C" >&6 3421else 3422 ac_check_lib_save_LIBS=$LIBS 3423LIBS="-lltdl $LIBS" 3424cat >conftest.$ac_ext <<_ACEOF 3425/* confdefs.h. */ 3426_ACEOF 3427cat confdefs.h >>conftest.$ac_ext 3428cat >>conftest.$ac_ext <<_ACEOF 3429/* end confdefs.h. */ 3430 3431/* Override any gcc2 internal prototype to avoid an error. */ 3432#ifdef __cplusplus 3433extern "C" 3434#endif 3435/* We use char because int might match the return type of a gcc2 3436 builtin and then its argument prototype would still apply. */ 3437char lt_dlmutex_register (); 3438int 3439main () 3440{ 3441lt_dlmutex_register (); 3442 ; 3443 return 0; 3444} 3445_ACEOF 3446rm -f conftest.$ac_objext conftest$ac_exeext 3447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3448 (eval $ac_link) 2>conftest.er1 3449 ac_status=$? 3450 grep -v '^ *+' conftest.er1 >conftest.err 3451 rm -f conftest.er1 3452 cat conftest.err >&5 3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3454 (exit $ac_status); } && 3455 { ac_try='test -z "$ac_c_werror_flag" 3456 || test ! -s conftest.err' 3457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3458 (eval $ac_try) 2>&5 3459 ac_status=$? 3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3461 (exit $ac_status); }; } && 3462 { ac_try='test -s conftest$ac_exeext' 3463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3464 (eval $ac_try) 2>&5 3465 ac_status=$? 3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3467 (exit $ac_status); }; }; then 3468 ac_cv_lib_ltdl_lt_dlmutex_register=yes 3469else 3470 echo "$as_me: failed program was:" >&5 3471sed 's/^/| /' conftest.$ac_ext >&5 3472 3473ac_cv_lib_ltdl_lt_dlmutex_register=no 3474fi 3475rm -f conftest.err conftest.$ac_objext \ 3476 conftest$ac_exeext conftest.$ac_ext 3477LIBS=$ac_check_lib_save_LIBS 3478fi 3479echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlmutex_register" >&5 3480echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlmutex_register" >&6 3481if test $ac_cv_lib_ltdl_lt_dlmutex_register = yes; then 3482 3483cat >>confdefs.h <<\_ACEOF 3484@%:@define DLMUTEX 1 3485_ACEOF 3486 3487fi 3488 3489 3490 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5 3491echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6 3492if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then 3493 echo $ECHO_N "(cached) $ECHO_C" >&6 3494else 3495 ac_check_lib_save_LIBS=$LIBS 3496LIBS="-lltdl $LIBS" 3497cat >conftest.$ac_ext <<_ACEOF 3498/* confdefs.h. */ 3499_ACEOF 3500cat confdefs.h >>conftest.$ac_ext 3501cat >>conftest.$ac_ext <<_ACEOF 3502/* end confdefs.h. */ 3503 3504/* Override any gcc2 internal prototype to avoid an error. */ 3505#ifdef __cplusplus 3506extern "C" 3507#endif 3508/* We use char because int might match the return type of a gcc2 3509 builtin and then its argument prototype would still apply. */ 3510char lt_dlinit (); 3511int 3512main () 3513{ 3514lt_dlinit (); 3515 ; 3516 return 0; 3517} 3518_ACEOF 3519rm -f conftest.$ac_objext conftest$ac_exeext 3520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3521 (eval $ac_link) 2>conftest.er1 3522 ac_status=$? 3523 grep -v '^ *+' conftest.er1 >conftest.err 3524 rm -f conftest.er1 3525 cat conftest.err >&5 3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3527 (exit $ac_status); } && 3528 { ac_try='test -z "$ac_c_werror_flag" 3529 || test ! -s conftest.err' 3530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3531 (eval $ac_try) 2>&5 3532 ac_status=$? 3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3534 (exit $ac_status); }; } && 3535 { ac_try='test -s conftest$ac_exeext' 3536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3537 (eval $ac_try) 2>&5 3538 ac_status=$? 3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3540 (exit $ac_status); }; }; then 3541 ac_cv_lib_ltdl_lt_dlinit=yes 3542else 3543 echo "$as_me: failed program was:" >&5 3544sed 's/^/| /' conftest.$ac_ext >&5 3545 3546ac_cv_lib_ltdl_lt_dlinit=no 3547fi 3548rm -f conftest.err conftest.$ac_objext \ 3549 conftest$ac_exeext conftest.$ac_ext 3550LIBS=$ac_check_lib_save_LIBS 3551fi 3552echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5 3553echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6 3554if test $ac_cv_lib_ltdl_lt_dlinit = yes; then 3555 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no 3556else 3557 if test x"$enable_ltdl_install" = xno; then 3558 { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5 3559echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;} 3560 else 3561 enable_ltdl_install=yes 3562 fi 3563 3564fi 3565 3566 if test x"$enable_ltdl_install" = x"yes"; then 3567 ac_configure_args="$ac_configure_args --enable-ltdl-install" 3568 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la 3569 LTDLINCL='-I${top_srcdir}/''libltdl' 3570 else 3571 ac_configure_args="$ac_configure_args --enable-ltdl-install=no" 3572 LIBLTDL="-lltdl" 3573 LTDLINCL= 3574 fi 3575 # For backwards non-gettext consistent compatibility... 3576 INCLTDL="$LTDLINCL" 3577 3578 3579 3580 LIBLTDL_DIR=libltdl 3581 3582 3583 3584 3585subdirs="$subdirs libltdl" 3586 3587 # Check whether --enable-static or --disable-static was given. 3588if test "${enable_static+set}" = set; then 3589 enableval="$enable_static" 3590 p=${PACKAGE-default} 3591 case $enableval in 3592 yes) enable_static=yes ;; 3593 no) enable_static=no ;; 3594 *) 3595 enable_static=no 3596 # Look at the argument we got. We use all the common list separators. 3597 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3598 for pkg in $enableval; do 3599 IFS="$lt_save_ifs" 3600 if test "X$pkg" = "X$p"; then 3601 enable_static=yes 3602 fi 3603 done 3604 IFS="$lt_save_ifs" 3605 ;; 3606 esac 3607else 3608 enable_static=no 3609fi; 3610 3611 3612 3613 3614cat >>confdefs.h <<\_ACEOF 3615@%:@define USE_LTDL 1 3616_ACEOF 3617 3618 3619 if test x$LIBLTDL = x; then 3620 : 3621 else 3622 LTLIBS="-lltdl" 3623 fi 3624 opt_include_algos=no 3625 3626# create the names of the .la libraries to install 3627 for i in $MCRYPT_ALGORITHM_MODULES 3628 do \ 3629 INSTALL_ALGORITHM_MODULES="$INSTALL_ALGORITHM_MODULES $i.la" 3630 done 3631 3632 for i in $MCRYPT_MODE_MODULES 3633 do \ 3634 INSTALL_MODE_MODULES="$INSTALL_MODE_MODULES $i.la" 3635 done 3636 3637 3638 3639 3640else 3641 for i in $MCRYPT_ALGORITHM_MODULES 3642 do \ 3643 NOINSTALL_ALGORITHM_MODULES="$NOINSTALL_ALGORITHM_MODULES $i.la" 3644 done 3645 3646 for i in $MCRYPT_MODE_MODULES 3647 do \ 3648 NOINSTALL_MODE_MODULES="$NOINSTALL_MODE_MODULES $i.la" 3649 done 3650 3651 3652 3653 3654 opt_include_algos="$MCRYPT_MODE_MODULES $MCRYPT_ALGORITHM_MODULES" 3655 echo "***" 3656 echo "*** Dynamic loading has been disabled" 3657fi 3658 3659echo "$as_me:$LINENO: checking which algorithms to include into library" >&5 3660echo $ECHO_N "checking which algorithms to include into library... $ECHO_C" >&6 3661 3662# Check whether --with-included-algos or --without-included-algos was given. 3663if test "${with_included_algos+set}" = set; then 3664 withval="$with_included_algos" 3665 touch lib/mcrypt_internal.h 3666opt_include_algos=$withval 3667fi; 3668 3669if test "x$opt_include_algos" = xyes; then 3670 opt_include_algos="" 3671fi 3672if test "x$opt_include_algos" = xno; then 3673 opt_include_algos="" 3674fi 3675 3676 3677EXTRA_OBJECTS="" 3678ALG=`echo -n $opt_include_algos|sed "s/,/ /g"|sed "s/\n/ /g"` 3679for i in $ALG 3680do \ 3681test -f modules/algorithms/$i.c && EXTRA_OBJECTS="$EXTRA_OBJECTS ../modules/algorithms/$i.lo" 3682test -f modules/modes/$i.c && EXTRA_OBJECTS="$EXTRA_OBJECTS ../modules/modes/$i.lo" 3683done 3684 3685echo "$as_me:$LINENO: result: $opt_include_algos" >&5 3686echo "${ECHO_T}$opt_include_algos" >&6 3687 3688 3689EXTRA_ALGOS=$ALG 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702LT_CURRENT=$LIBMCRYPT_MOST_RECENT_INTERFACE 3703LT_REVISION=$LIBMCRYPT_CURRENT_INTERFACE_IMPLEMENTATION_NUMBER 3704LT_AGE=`expr $LIBMCRYPT_MOST_RECENT_INTERFACE - $LIBMCRYPT_OLDEST_INTERFACE` 3705 3706 3707 3708 3709ac_ext=c 3710ac_cpp='$CPP $CPPFLAGS' 3711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3713ac_compiler_gnu=$ac_cv_c_compiler_gnu 3714echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3715echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3716# On Suns, sometimes $CPP names a directory. 3717if test -n "$CPP" && test -d "$CPP"; then 3718 CPP= 3719fi 3720if test -z "$CPP"; then 3721 if test "${ac_cv_prog_CPP+set}" = set; then 3722 echo $ECHO_N "(cached) $ECHO_C" >&6 3723else 3724 # Double quotes because CPP needs to be expanded 3725 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3726 do 3727 ac_preproc_ok=false 3728for ac_c_preproc_warn_flag in '' yes 3729do 3730 # Use a header file that comes with gcc, so configuring glibc 3731 # with a fresh cross-compiler works. 3732 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3733 # <limits.h> exists even on freestanding compilers. 3734 # On the NeXT, cc -E runs the code through the compiler's parser, 3735 # not just through cpp. "Syntax error" is here to catch this case. 3736 cat >conftest.$ac_ext <<_ACEOF 3737/* confdefs.h. */ 3738_ACEOF 3739cat confdefs.h >>conftest.$ac_ext 3740cat >>conftest.$ac_ext <<_ACEOF 3741/* end confdefs.h. */ 3742@%:@ifdef __STDC__ 3743@%:@ include <limits.h> 3744@%:@else 3745@%:@ include <assert.h> 3746@%:@endif 3747 Syntax error 3748_ACEOF 3749if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3750 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3751 ac_status=$? 3752 grep -v '^ *+' conftest.er1 >conftest.err 3753 rm -f conftest.er1 3754 cat conftest.err >&5 3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3756 (exit $ac_status); } >/dev/null; then 3757 if test -s conftest.err; then 3758 ac_cpp_err=$ac_c_preproc_warn_flag 3759 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3760 else 3761 ac_cpp_err= 3762 fi 3763else 3764 ac_cpp_err=yes 3765fi 3766if test -z "$ac_cpp_err"; then 3767 : 3768else 3769 echo "$as_me: failed program was:" >&5 3770sed 's/^/| /' conftest.$ac_ext >&5 3771 3772 # Broken: fails on valid input. 3773continue 3774fi 3775rm -f conftest.err conftest.$ac_ext 3776 3777 # OK, works on sane cases. Now check whether non-existent headers 3778 # can be detected and how. 3779 cat >conftest.$ac_ext <<_ACEOF 3780/* confdefs.h. */ 3781_ACEOF 3782cat confdefs.h >>conftest.$ac_ext 3783cat >>conftest.$ac_ext <<_ACEOF 3784/* end confdefs.h. */ 3785@%:@include <ac_nonexistent.h> 3786_ACEOF 3787if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3789 ac_status=$? 3790 grep -v '^ *+' conftest.er1 >conftest.err 3791 rm -f conftest.er1 3792 cat conftest.err >&5 3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3794 (exit $ac_status); } >/dev/null; then 3795 if test -s conftest.err; then 3796 ac_cpp_err=$ac_c_preproc_warn_flag 3797 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3798 else 3799 ac_cpp_err= 3800 fi 3801else 3802 ac_cpp_err=yes 3803fi 3804if test -z "$ac_cpp_err"; then 3805 # Broken: success on invalid input. 3806continue 3807else 3808 echo "$as_me: failed program was:" >&5 3809sed 's/^/| /' conftest.$ac_ext >&5 3810 3811 # Passes both tests. 3812ac_preproc_ok=: 3813break 3814fi 3815rm -f conftest.err conftest.$ac_ext 3816 3817done 3818# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3819rm -f conftest.err conftest.$ac_ext 3820if $ac_preproc_ok; then 3821 break 3822fi 3823 3824 done 3825 ac_cv_prog_CPP=$CPP 3826 3827fi 3828 CPP=$ac_cv_prog_CPP 3829else 3830 ac_cv_prog_CPP=$CPP 3831fi 3832echo "$as_me:$LINENO: result: $CPP" >&5 3833echo "${ECHO_T}$CPP" >&6 3834ac_preproc_ok=false 3835for ac_c_preproc_warn_flag in '' yes 3836do 3837 # Use a header file that comes with gcc, so configuring glibc 3838 # with a fresh cross-compiler works. 3839 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3840 # <limits.h> exists even on freestanding compilers. 3841 # On the NeXT, cc -E runs the code through the compiler's parser, 3842 # not just through cpp. "Syntax error" is here to catch this case. 3843 cat >conftest.$ac_ext <<_ACEOF 3844/* confdefs.h. */ 3845_ACEOF 3846cat confdefs.h >>conftest.$ac_ext 3847cat >>conftest.$ac_ext <<_ACEOF 3848/* end confdefs.h. */ 3849@%:@ifdef __STDC__ 3850@%:@ include <limits.h> 3851@%:@else 3852@%:@ include <assert.h> 3853@%:@endif 3854 Syntax error 3855_ACEOF 3856if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3857 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3858 ac_status=$? 3859 grep -v '^ *+' conftest.er1 >conftest.err 3860 rm -f conftest.er1 3861 cat conftest.err >&5 3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3863 (exit $ac_status); } >/dev/null; then 3864 if test -s conftest.err; then 3865 ac_cpp_err=$ac_c_preproc_warn_flag 3866 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3867 else 3868 ac_cpp_err= 3869 fi 3870else 3871 ac_cpp_err=yes 3872fi 3873if test -z "$ac_cpp_err"; then 3874 : 3875else 3876 echo "$as_me: failed program was:" >&5 3877sed 's/^/| /' conftest.$ac_ext >&5 3878 3879 # Broken: fails on valid input. 3880continue 3881fi 3882rm -f conftest.err conftest.$ac_ext 3883 3884 # OK, works on sane cases. Now check whether non-existent headers 3885 # can be detected and how. 3886 cat >conftest.$ac_ext <<_ACEOF 3887/* confdefs.h. */ 3888_ACEOF 3889cat confdefs.h >>conftest.$ac_ext 3890cat >>conftest.$ac_ext <<_ACEOF 3891/* end confdefs.h. */ 3892@%:@include <ac_nonexistent.h> 3893_ACEOF 3894if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3896 ac_status=$? 3897 grep -v '^ *+' conftest.er1 >conftest.err 3898 rm -f conftest.er1 3899 cat conftest.err >&5 3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3901 (exit $ac_status); } >/dev/null; then 3902 if test -s conftest.err; then 3903 ac_cpp_err=$ac_c_preproc_warn_flag 3904 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3905 else 3906 ac_cpp_err= 3907 fi 3908else 3909 ac_cpp_err=yes 3910fi 3911if test -z "$ac_cpp_err"; then 3912 # Broken: success on invalid input. 3913continue 3914else 3915 echo "$as_me: failed program was:" >&5 3916sed 's/^/| /' conftest.$ac_ext >&5 3917 3918 # Passes both tests. 3919ac_preproc_ok=: 3920break 3921fi 3922rm -f conftest.err conftest.$ac_ext 3923 3924done 3925# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3926rm -f conftest.err conftest.$ac_ext 3927if $ac_preproc_ok; then 3928 : 3929else 3930 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3931See \`config.log' for more details." >&5 3932echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3933See \`config.log' for more details." >&2;} 3934 { (exit 1); exit 1; }; } 3935fi 3936 3937ac_ext=c 3938ac_cpp='$CPP $CPPFLAGS' 3939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3941ac_compiler_gnu=$ac_cv_c_compiler_gnu 3942 3943 3944echo "$as_me:$LINENO: checking for egrep" >&5 3945echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3946if test "${ac_cv_prog_egrep+set}" = set; then 3947 echo $ECHO_N "(cached) $ECHO_C" >&6 3948else 3949 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3950 then ac_cv_prog_egrep='grep -E' 3951 else ac_cv_prog_egrep='egrep' 3952 fi 3953fi 3954echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3955echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3956 EGREP=$ac_cv_prog_egrep 3957 3958 3959echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3960echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3961if test "${ac_cv_header_stdc+set}" = set; then 3962 echo $ECHO_N "(cached) $ECHO_C" >&6 3963else 3964 cat >conftest.$ac_ext <<_ACEOF 3965/* confdefs.h. */ 3966_ACEOF 3967cat confdefs.h >>conftest.$ac_ext 3968cat >>conftest.$ac_ext <<_ACEOF 3969/* end confdefs.h. */ 3970#include <stdlib.h> 3971#include <stdarg.h> 3972#include <string.h> 3973#include <float.h> 3974 3975int 3976main () 3977{ 3978 3979 ; 3980 return 0; 3981} 3982_ACEOF 3983rm -f conftest.$ac_objext 3984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3985 (eval $ac_compile) 2>conftest.er1 3986 ac_status=$? 3987 grep -v '^ *+' conftest.er1 >conftest.err 3988 rm -f conftest.er1 3989 cat conftest.err >&5 3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3991 (exit $ac_status); } && 3992 { ac_try='test -z "$ac_c_werror_flag" 3993 || test ! -s conftest.err' 3994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3995 (eval $ac_try) 2>&5 3996 ac_status=$? 3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3998 (exit $ac_status); }; } && 3999 { ac_try='test -s conftest.$ac_objext' 4000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4001 (eval $ac_try) 2>&5 4002 ac_status=$? 4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4004 (exit $ac_status); }; }; then 4005 ac_cv_header_stdc=yes 4006else 4007 echo "$as_me: failed program was:" >&5 4008sed 's/^/| /' conftest.$ac_ext >&5 4009 4010ac_cv_header_stdc=no 4011fi 4012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4013 4014if test $ac_cv_header_stdc = yes; then 4015 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4016 cat >conftest.$ac_ext <<_ACEOF 4017/* confdefs.h. */ 4018_ACEOF 4019cat confdefs.h >>conftest.$ac_ext 4020cat >>conftest.$ac_ext <<_ACEOF 4021/* end confdefs.h. */ 4022#include <string.h> 4023 4024_ACEOF 4025if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4026 $EGREP "memchr" >/dev/null 2>&1; then 4027 : 4028else 4029 ac_cv_header_stdc=no 4030fi 4031rm -f conftest* 4032 4033fi 4034 4035if test $ac_cv_header_stdc = yes; then 4036 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4037 cat >conftest.$ac_ext <<_ACEOF 4038/* confdefs.h. */ 4039_ACEOF 4040cat confdefs.h >>conftest.$ac_ext 4041cat >>conftest.$ac_ext <<_ACEOF 4042/* end confdefs.h. */ 4043#include <stdlib.h> 4044 4045_ACEOF 4046if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4047 $EGREP "free" >/dev/null 2>&1; then 4048 : 4049else 4050 ac_cv_header_stdc=no 4051fi 4052rm -f conftest* 4053 4054fi 4055 4056if test $ac_cv_header_stdc = yes; then 4057 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4058 if test "$cross_compiling" = yes; then 4059 : 4060else 4061 cat >conftest.$ac_ext <<_ACEOF 4062/* confdefs.h. */ 4063_ACEOF 4064cat confdefs.h >>conftest.$ac_ext 4065cat >>conftest.$ac_ext <<_ACEOF 4066/* end confdefs.h. */ 4067#include <ctype.h> 4068#if ((' ' & 0x0FF) == 0x020) 4069# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4070# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4071#else 4072# define ISLOWER(c) \ 4073 (('a' <= (c) && (c) <= 'i') \ 4074 || ('j' <= (c) && (c) <= 'r') \ 4075 || ('s' <= (c) && (c) <= 'z')) 4076# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4077#endif 4078 4079#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4080int 4081main () 4082{ 4083 int i; 4084 for (i = 0; i < 256; i++) 4085 if (XOR (islower (i), ISLOWER (i)) 4086 || toupper (i) != TOUPPER (i)) 4087 exit(2); 4088 exit (0); 4089} 4090_ACEOF 4091rm -f conftest$ac_exeext 4092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4093 (eval $ac_link) 2>&5 4094 ac_status=$? 4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4098 (eval $ac_try) 2>&5 4099 ac_status=$? 4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4101 (exit $ac_status); }; }; then 4102 : 4103else 4104 echo "$as_me: program exited with status $ac_status" >&5 4105echo "$as_me: failed program was:" >&5 4106sed 's/^/| /' conftest.$ac_ext >&5 4107 4108( exit $ac_status ) 4109ac_cv_header_stdc=no 4110fi 4111rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4112fi 4113fi 4114fi 4115echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4116echo "${ECHO_T}$ac_cv_header_stdc" >&6 4117if test $ac_cv_header_stdc = yes; then 4118 4119cat >>confdefs.h <<\_ACEOF 4120@%:@define STDC_HEADERS 1 4121_ACEOF 4122 4123fi 4124 4125echo "$as_me:$LINENO: checking for inline" >&5 4126echo $ECHO_N "checking for inline... $ECHO_C" >&6 4127if test "${ac_cv_c_inline+set}" = set; then 4128 echo $ECHO_N "(cached) $ECHO_C" >&6 4129else 4130 ac_cv_c_inline=no 4131for ac_kw in inline __inline__ __inline; do 4132 cat >conftest.$ac_ext <<_ACEOF 4133/* confdefs.h. */ 4134_ACEOF 4135cat confdefs.h >>conftest.$ac_ext 4136cat >>conftest.$ac_ext <<_ACEOF 4137/* end confdefs.h. */ 4138#ifndef __cplusplus 4139typedef int foo_t; 4140static $ac_kw foo_t static_foo () {return 0; } 4141$ac_kw foo_t foo () {return 0; } 4142#endif 4143 4144_ACEOF 4145rm -f conftest.$ac_objext 4146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4147 (eval $ac_compile) 2>conftest.er1 4148 ac_status=$? 4149 grep -v '^ *+' conftest.er1 >conftest.err 4150 rm -f conftest.er1 4151 cat conftest.err >&5 4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4153 (exit $ac_status); } && 4154 { ac_try='test -z "$ac_c_werror_flag" 4155 || test ! -s conftest.err' 4156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4157 (eval $ac_try) 2>&5 4158 ac_status=$? 4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4160 (exit $ac_status); }; } && 4161 { ac_try='test -s conftest.$ac_objext' 4162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4163 (eval $ac_try) 2>&5 4164 ac_status=$? 4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4166 (exit $ac_status); }; }; then 4167 ac_cv_c_inline=$ac_kw; break 4168else 4169 echo "$as_me: failed program was:" >&5 4170sed 's/^/| /' conftest.$ac_ext >&5 4171 4172fi 4173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4174done 4175 4176fi 4177echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 4178echo "${ECHO_T}$ac_cv_c_inline" >&6 4179 4180 4181case $ac_cv_c_inline in 4182 inline | yes) ;; 4183 *) 4184 case $ac_cv_c_inline in 4185 no) ac_val=;; 4186 *) ac_val=$ac_cv_c_inline;; 4187 esac 4188 cat >>confdefs.h <<_ACEOF 4189#ifndef __cplusplus 4190#define inline $ac_val 4191#endif 4192_ACEOF 4193 ;; 4194esac 4195 4196echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 4197echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 4198if test "${ac_cv_c_const+set}" = set; then 4199 echo $ECHO_N "(cached) $ECHO_C" >&6 4200else 4201 cat >conftest.$ac_ext <<_ACEOF 4202/* confdefs.h. */ 4203_ACEOF 4204cat confdefs.h >>conftest.$ac_ext 4205cat >>conftest.$ac_ext <<_ACEOF 4206/* end confdefs.h. */ 4207 4208int 4209main () 4210{ 4211/* FIXME: Include the comments suggested by Paul. */ 4212#ifndef __cplusplus 4213 /* Ultrix mips cc rejects this. */ 4214 typedef int charset[2]; 4215 const charset x; 4216 /* SunOS 4.1.1 cc rejects this. */ 4217 char const *const *ccp; 4218 char **p; 4219 /* NEC SVR4.0.2 mips cc rejects this. */ 4220 struct point {int x, y;}; 4221 static struct point const zero = {0,0}; 4222 /* AIX XL C 1.02.0.0 rejects this. 4223 It does not let you subtract one const X* pointer from another in 4224 an arm of an if-expression whose if-part is not a constant 4225 expression */ 4226 const char *g = "string"; 4227 ccp = &g + (g ? g-g : 0); 4228 /* HPUX 7.0 cc rejects these. */ 4229 ++ccp; 4230 p = (char**) ccp; 4231 ccp = (char const *const *) p; 4232 { /* SCO 3.2v4 cc rejects this. */ 4233 char *t; 4234 char const *s = 0 ? (char *) 0 : (char const *) 0; 4235 4236 *t++ = 0; 4237 } 4238 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4239 int x[] = {25, 17}; 4240 const int *foo = &x[0]; 4241 ++foo; 4242 } 4243 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4244 typedef const int *iptr; 4245 iptr p = 0; 4246 ++p; 4247 } 4248 { /* AIX XL C 1.02.0.0 rejects this saying 4249 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4250 struct s { int j; const int *ap[3]; }; 4251 struct s *b; b->j = 5; 4252 } 4253 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4254 const int foo = 10; 4255 } 4256#endif 4257 4258 ; 4259 return 0; 4260} 4261_ACEOF 4262rm -f conftest.$ac_objext 4263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4264 (eval $ac_compile) 2>conftest.er1 4265 ac_status=$? 4266 grep -v '^ *+' conftest.er1 >conftest.err 4267 rm -f conftest.er1 4268 cat conftest.err >&5 4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4270 (exit $ac_status); } && 4271 { ac_try='test -z "$ac_c_werror_flag" 4272 || test ! -s conftest.err' 4273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4274 (eval $ac_try) 2>&5 4275 ac_status=$? 4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4277 (exit $ac_status); }; } && 4278 { ac_try='test -s conftest.$ac_objext' 4279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4280 (eval $ac_try) 2>&5 4281 ac_status=$? 4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4283 (exit $ac_status); }; }; then 4284 ac_cv_c_const=yes 4285else 4286 echo "$as_me: failed program was:" >&5 4287sed 's/^/| /' conftest.$ac_ext >&5 4288 4289ac_cv_c_const=no 4290fi 4291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4292fi 4293echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 4294echo "${ECHO_T}$ac_cv_c_const" >&6 4295if test $ac_cv_c_const = no; then 4296 4297cat >>confdefs.h <<\_ACEOF 4298@%:@define const 4299_ACEOF 4300 4301fi 4302 4303 4304# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4315 inttypes.h stdint.h unistd.h 4316do 4317as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4318echo "$as_me:$LINENO: checking for $ac_header" >&5 4319echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4320if eval "test \"\${$as_ac_Header+set}\" = set"; then 4321 echo $ECHO_N "(cached) $ECHO_C" >&6 4322else 4323 cat >conftest.$ac_ext <<_ACEOF 4324/* confdefs.h. */ 4325_ACEOF 4326cat confdefs.h >>conftest.$ac_ext 4327cat >>conftest.$ac_ext <<_ACEOF 4328/* end confdefs.h. */ 4329$ac_includes_default 4330 4331@%:@include <$ac_header> 4332_ACEOF 4333rm -f conftest.$ac_objext 4334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4335 (eval $ac_compile) 2>conftest.er1 4336 ac_status=$? 4337 grep -v '^ *+' conftest.er1 >conftest.err 4338 rm -f conftest.er1 4339 cat conftest.err >&5 4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4341 (exit $ac_status); } && 4342 { ac_try='test -z "$ac_c_werror_flag" 4343 || test ! -s conftest.err' 4344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4345 (eval $ac_try) 2>&5 4346 ac_status=$? 4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4348 (exit $ac_status); }; } && 4349 { ac_try='test -s conftest.$ac_objext' 4350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4351 (eval $ac_try) 2>&5 4352 ac_status=$? 4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4354 (exit $ac_status); }; }; then 4355 eval "$as_ac_Header=yes" 4356else 4357 echo "$as_me: failed program was:" >&5 4358sed 's/^/| /' conftest.$ac_ext >&5 4359 4360eval "$as_ac_Header=no" 4361fi 4362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4363fi 4364echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4365echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4366if test `eval echo '${'$as_ac_Header'}'` = yes; then 4367 cat >>confdefs.h <<_ACEOF 4368@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4369_ACEOF 4370 4371fi 4372 4373done 4374 4375 4376 4377 4378 4379 4380for ac_header in unistd.h strings.h dlfcn.h sys/endian.h 4381do 4382as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4383if eval "test \"\${$as_ac_Header+set}\" = set"; then 4384 echo "$as_me:$LINENO: checking for $ac_header" >&5 4385echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4386if eval "test \"\${$as_ac_Header+set}\" = set"; then 4387 echo $ECHO_N "(cached) $ECHO_C" >&6 4388fi 4389echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4390echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4391else 4392 # Is the header compilable? 4393echo "$as_me:$LINENO: checking $ac_header usability" >&5 4394echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4395cat >conftest.$ac_ext <<_ACEOF 4396/* confdefs.h. */ 4397_ACEOF 4398cat confdefs.h >>conftest.$ac_ext 4399cat >>conftest.$ac_ext <<_ACEOF 4400/* end confdefs.h. */ 4401$ac_includes_default 4402@%:@include <$ac_header> 4403_ACEOF 4404rm -f conftest.$ac_objext 4405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4406 (eval $ac_compile) 2>conftest.er1 4407 ac_status=$? 4408 grep -v '^ *+' conftest.er1 >conftest.err 4409 rm -f conftest.er1 4410 cat conftest.err >&5 4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4412 (exit $ac_status); } && 4413 { ac_try='test -z "$ac_c_werror_flag" 4414 || test ! -s conftest.err' 4415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4416 (eval $ac_try) 2>&5 4417 ac_status=$? 4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4419 (exit $ac_status); }; } && 4420 { ac_try='test -s conftest.$ac_objext' 4421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4422 (eval $ac_try) 2>&5 4423 ac_status=$? 4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4425 (exit $ac_status); }; }; then 4426 ac_header_compiler=yes 4427else 4428 echo "$as_me: failed program was:" >&5 4429sed 's/^/| /' conftest.$ac_ext >&5 4430 4431ac_header_compiler=no 4432fi 4433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4434echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4435echo "${ECHO_T}$ac_header_compiler" >&6 4436 4437# Is the header present? 4438echo "$as_me:$LINENO: checking $ac_header presence" >&5 4439echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4440cat >conftest.$ac_ext <<_ACEOF 4441/* confdefs.h. */ 4442_ACEOF 4443cat confdefs.h >>conftest.$ac_ext 4444cat >>conftest.$ac_ext <<_ACEOF 4445/* end confdefs.h. */ 4446@%:@include <$ac_header> 4447_ACEOF 4448if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4449 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4450 ac_status=$? 4451 grep -v '^ *+' conftest.er1 >conftest.err 4452 rm -f conftest.er1 4453 cat conftest.err >&5 4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4455 (exit $ac_status); } >/dev/null; then 4456 if test -s conftest.err; then 4457 ac_cpp_err=$ac_c_preproc_warn_flag 4458 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4459 else 4460 ac_cpp_err= 4461 fi 4462else 4463 ac_cpp_err=yes 4464fi 4465if test -z "$ac_cpp_err"; then 4466 ac_header_preproc=yes 4467else 4468 echo "$as_me: failed program was:" >&5 4469sed 's/^/| /' conftest.$ac_ext >&5 4470 4471 ac_header_preproc=no 4472fi 4473rm -f conftest.err conftest.$ac_ext 4474echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4475echo "${ECHO_T}$ac_header_preproc" >&6 4476 4477# So? What about this header? 4478case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4479 yes:no: ) 4480 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4481echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4483echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4484 ac_header_preproc=yes 4485 ;; 4486 no:yes:* ) 4487 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4488echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4489 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4490echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4491 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4492echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4493 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4494echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4496echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4497 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4498echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4499 ( 4500 cat <<\_ASBOX 4501@%:@@%:@ ------------------------------------------ @%:@@%:@ 4502@%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@ 4503@%:@@%:@ ------------------------------------------ @%:@@%:@ 4504_ASBOX 4505 ) | 4506 sed "s/^/$as_me: WARNING: /" >&2 4507 ;; 4508esac 4509echo "$as_me:$LINENO: checking for $ac_header" >&5 4510echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4511if eval "test \"\${$as_ac_Header+set}\" = set"; then 4512 echo $ECHO_N "(cached) $ECHO_C" >&6 4513else 4514 eval "$as_ac_Header=\$ac_header_preproc" 4515fi 4516echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4517echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4518 4519fi 4520if test `eval echo '${'$as_ac_Header'}'` = yes; then 4521 cat >>confdefs.h <<_ACEOF 4522@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4523_ACEOF 4524 4525fi 4526 4527done 4528 4529 4530 4531 4532 4533 4534for ac_header in sys/types.h sys/mman.h dirent.h byteswap.h endian.h 4535do 4536as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4537if eval "test \"\${$as_ac_Header+set}\" = set"; then 4538 echo "$as_me:$LINENO: checking for $ac_header" >&5 4539echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4540if eval "test \"\${$as_ac_Header+set}\" = set"; then 4541 echo $ECHO_N "(cached) $ECHO_C" >&6 4542fi 4543echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4544echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4545else 4546 # Is the header compilable? 4547echo "$as_me:$LINENO: checking $ac_header usability" >&5 4548echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4549cat >conftest.$ac_ext <<_ACEOF 4550/* confdefs.h. */ 4551_ACEOF 4552cat confdefs.h >>conftest.$ac_ext 4553cat >>conftest.$ac_ext <<_ACEOF 4554/* end confdefs.h. */ 4555$ac_includes_default 4556@%:@include <$ac_header> 4557_ACEOF 4558rm -f conftest.$ac_objext 4559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4560 (eval $ac_compile) 2>conftest.er1 4561 ac_status=$? 4562 grep -v '^ *+' conftest.er1 >conftest.err 4563 rm -f conftest.er1 4564 cat conftest.err >&5 4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4566 (exit $ac_status); } && 4567 { ac_try='test -z "$ac_c_werror_flag" 4568 || test ! -s conftest.err' 4569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4570 (eval $ac_try) 2>&5 4571 ac_status=$? 4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4573 (exit $ac_status); }; } && 4574 { ac_try='test -s conftest.$ac_objext' 4575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4576 (eval $ac_try) 2>&5 4577 ac_status=$? 4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4579 (exit $ac_status); }; }; then 4580 ac_header_compiler=yes 4581else 4582 echo "$as_me: failed program was:" >&5 4583sed 's/^/| /' conftest.$ac_ext >&5 4584 4585ac_header_compiler=no 4586fi 4587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4588echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4589echo "${ECHO_T}$ac_header_compiler" >&6 4590 4591# Is the header present? 4592echo "$as_me:$LINENO: checking $ac_header presence" >&5 4593echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4594cat >conftest.$ac_ext <<_ACEOF 4595/* confdefs.h. */ 4596_ACEOF 4597cat confdefs.h >>conftest.$ac_ext 4598cat >>conftest.$ac_ext <<_ACEOF 4599/* end confdefs.h. */ 4600@%:@include <$ac_header> 4601_ACEOF 4602if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4603 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4604 ac_status=$? 4605 grep -v '^ *+' conftest.er1 >conftest.err 4606 rm -f conftest.er1 4607 cat conftest.err >&5 4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4609 (exit $ac_status); } >/dev/null; then 4610 if test -s conftest.err; then 4611 ac_cpp_err=$ac_c_preproc_warn_flag 4612 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4613 else 4614 ac_cpp_err= 4615 fi 4616else 4617 ac_cpp_err=yes 4618fi 4619if test -z "$ac_cpp_err"; then 4620 ac_header_preproc=yes 4621else 4622 echo "$as_me: failed program was:" >&5 4623sed 's/^/| /' conftest.$ac_ext >&5 4624 4625 ac_header_preproc=no 4626fi 4627rm -f conftest.err conftest.$ac_ext 4628echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4629echo "${ECHO_T}$ac_header_preproc" >&6 4630 4631# So? What about this header? 4632case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4633 yes:no: ) 4634 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4635echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4637echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4638 ac_header_preproc=yes 4639 ;; 4640 no:yes:* ) 4641 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4642echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4643 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4644echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4645 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4646echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4647 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4648echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4650echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4651 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4652echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4653 ( 4654 cat <<\_ASBOX 4655@%:@@%:@ ------------------------------------------ @%:@@%:@ 4656@%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@ 4657@%:@@%:@ ------------------------------------------ @%:@@%:@ 4658_ASBOX 4659 ) | 4660 sed "s/^/$as_me: WARNING: /" >&2 4661 ;; 4662esac 4663echo "$as_me:$LINENO: checking for $ac_header" >&5 4664echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4665if eval "test \"\${$as_ac_Header+set}\" = set"; then 4666 echo $ECHO_N "(cached) $ECHO_C" >&6 4667else 4668 eval "$as_ac_Header=\$ac_header_preproc" 4669fi 4670echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4671echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4672 4673fi 4674if test `eval echo '${'$as_ac_Header'}'` = yes; then 4675 cat >>confdefs.h <<_ACEOF 4676@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4677_ACEOF 4678 4679fi 4680 4681done 4682 4683 4684for ac_header in limits.h 4685do 4686as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4687if eval "test \"\${$as_ac_Header+set}\" = set"; then 4688 echo "$as_me:$LINENO: checking for $ac_header" >&5 4689echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4690if eval "test \"\${$as_ac_Header+set}\" = set"; then 4691 echo $ECHO_N "(cached) $ECHO_C" >&6 4692fi 4693echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4694echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4695else 4696 # Is the header compilable? 4697echo "$as_me:$LINENO: checking $ac_header usability" >&5 4698echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4699cat >conftest.$ac_ext <<_ACEOF 4700/* confdefs.h. */ 4701_ACEOF 4702cat confdefs.h >>conftest.$ac_ext 4703cat >>conftest.$ac_ext <<_ACEOF 4704/* end confdefs.h. */ 4705$ac_includes_default 4706@%:@include <$ac_header> 4707_ACEOF 4708rm -f conftest.$ac_objext 4709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4710 (eval $ac_compile) 2>conftest.er1 4711 ac_status=$? 4712 grep -v '^ *+' conftest.er1 >conftest.err 4713 rm -f conftest.er1 4714 cat conftest.err >&5 4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4716 (exit $ac_status); } && 4717 { ac_try='test -z "$ac_c_werror_flag" 4718 || test ! -s conftest.err' 4719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4720 (eval $ac_try) 2>&5 4721 ac_status=$? 4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4723 (exit $ac_status); }; } && 4724 { ac_try='test -s conftest.$ac_objext' 4725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4726 (eval $ac_try) 2>&5 4727 ac_status=$? 4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4729 (exit $ac_status); }; }; then 4730 ac_header_compiler=yes 4731else 4732 echo "$as_me: failed program was:" >&5 4733sed 's/^/| /' conftest.$ac_ext >&5 4734 4735ac_header_compiler=no 4736fi 4737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4738echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4739echo "${ECHO_T}$ac_header_compiler" >&6 4740 4741# Is the header present? 4742echo "$as_me:$LINENO: checking $ac_header presence" >&5 4743echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4744cat >conftest.$ac_ext <<_ACEOF 4745/* confdefs.h. */ 4746_ACEOF 4747cat confdefs.h >>conftest.$ac_ext 4748cat >>conftest.$ac_ext <<_ACEOF 4749/* end confdefs.h. */ 4750@%:@include <$ac_header> 4751_ACEOF 4752if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4754 ac_status=$? 4755 grep -v '^ *+' conftest.er1 >conftest.err 4756 rm -f conftest.er1 4757 cat conftest.err >&5 4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4759 (exit $ac_status); } >/dev/null; then 4760 if test -s conftest.err; then 4761 ac_cpp_err=$ac_c_preproc_warn_flag 4762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4763 else 4764 ac_cpp_err= 4765 fi 4766else 4767 ac_cpp_err=yes 4768fi 4769if test -z "$ac_cpp_err"; then 4770 ac_header_preproc=yes 4771else 4772 echo "$as_me: failed program was:" >&5 4773sed 's/^/| /' conftest.$ac_ext >&5 4774 4775 ac_header_preproc=no 4776fi 4777rm -f conftest.err conftest.$ac_ext 4778echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4779echo "${ECHO_T}$ac_header_preproc" >&6 4780 4781# So? What about this header? 4782case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4783 yes:no: ) 4784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4785echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4787echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4788 ac_header_preproc=yes 4789 ;; 4790 no:yes:* ) 4791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4792echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4794echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4796echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4798echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4800echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4802echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4803 ( 4804 cat <<\_ASBOX 4805@%:@@%:@ ------------------------------------------ @%:@@%:@ 4806@%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@ 4807@%:@@%:@ ------------------------------------------ @%:@@%:@ 4808_ASBOX 4809 ) | 4810 sed "s/^/$as_me: WARNING: /" >&2 4811 ;; 4812esac 4813echo "$as_me:$LINENO: checking for $ac_header" >&5 4814echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4815if eval "test \"\${$as_ac_Header+set}\" = set"; then 4816 echo $ECHO_N "(cached) $ECHO_C" >&6 4817else 4818 eval "$as_ac_Header=\$ac_header_preproc" 4819fi 4820echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4821echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4822 4823fi 4824if test `eval echo '${'$as_ac_Header'}'` = yes; then 4825 cat >>confdefs.h <<_ACEOF 4826@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4827_ACEOF 4828 4829fi 4830 4831done 4832 4833 4834 4835 4836 4837 4838for ac_func in bzero memset mlock readdir_r readdir 4839do 4840as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4841echo "$as_me:$LINENO: checking for $ac_func" >&5 4842echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4843if eval "test \"\${$as_ac_var+set}\" = set"; then 4844 echo $ECHO_N "(cached) $ECHO_C" >&6 4845else 4846 cat >conftest.$ac_ext <<_ACEOF 4847/* confdefs.h. */ 4848_ACEOF 4849cat confdefs.h >>conftest.$ac_ext 4850cat >>conftest.$ac_ext <<_ACEOF 4851/* end confdefs.h. */ 4852/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 4853 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4854#define $ac_func innocuous_$ac_func 4855 4856/* System header to define __stub macros and hopefully few prototypes, 4857 which can conflict with char $ac_func (); below. 4858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4859 <limits.h> exists even on freestanding compilers. */ 4860 4861#ifdef __STDC__ 4862# include <limits.h> 4863#else 4864# include <assert.h> 4865#endif 4866 4867#undef $ac_func 4868 4869/* Override any gcc2 internal prototype to avoid an error. */ 4870#ifdef __cplusplus 4871extern "C" 4872{ 4873#endif 4874/* We use char because int might match the return type of a gcc2 4875 builtin and then its argument prototype would still apply. */ 4876char $ac_func (); 4877/* The GNU C library defines this for functions which it implements 4878 to always fail with ENOSYS. Some functions are actually named 4879 something starting with __ and the normal name is an alias. */ 4880#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4881choke me 4882#else 4883char (*f) () = $ac_func; 4884#endif 4885#ifdef __cplusplus 4886} 4887#endif 4888 4889int 4890main () 4891{ 4892return f != $ac_func; 4893 ; 4894 return 0; 4895} 4896_ACEOF 4897rm -f conftest.$ac_objext conftest$ac_exeext 4898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4899 (eval $ac_link) 2>conftest.er1 4900 ac_status=$? 4901 grep -v '^ *+' conftest.er1 >conftest.err 4902 rm -f conftest.er1 4903 cat conftest.err >&5 4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4905 (exit $ac_status); } && 4906 { ac_try='test -z "$ac_c_werror_flag" 4907 || test ! -s conftest.err' 4908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4909 (eval $ac_try) 2>&5 4910 ac_status=$? 4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4912 (exit $ac_status); }; } && 4913 { ac_try='test -s conftest$ac_exeext' 4914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4915 (eval $ac_try) 2>&5 4916 ac_status=$? 4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4918 (exit $ac_status); }; }; then 4919 eval "$as_ac_var=yes" 4920else 4921 echo "$as_me: failed program was:" >&5 4922sed 's/^/| /' conftest.$ac_ext >&5 4923 4924eval "$as_ac_var=no" 4925fi 4926rm -f conftest.err conftest.$ac_objext \ 4927 conftest$ac_exeext conftest.$ac_ext 4928fi 4929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 4930echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4931if test `eval echo '${'$as_ac_var'}'` = yes; then 4932 cat >>confdefs.h <<_ACEOF 4933@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4934_ACEOF 4935 4936fi 4937done 4938 4939 4940 4941for ac_func in memmove bcopy 4942do 4943as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4944echo "$as_me:$LINENO: checking for $ac_func" >&5 4945echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4946if eval "test \"\${$as_ac_var+set}\" = set"; then 4947 echo $ECHO_N "(cached) $ECHO_C" >&6 4948else 4949 cat >conftest.$ac_ext <<_ACEOF 4950/* confdefs.h. */ 4951_ACEOF 4952cat confdefs.h >>conftest.$ac_ext 4953cat >>conftest.$ac_ext <<_ACEOF 4954/* end confdefs.h. */ 4955/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 4956 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4957#define $ac_func innocuous_$ac_func 4958 4959/* System header to define __stub macros and hopefully few prototypes, 4960 which can conflict with char $ac_func (); below. 4961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4962 <limits.h> exists even on freestanding compilers. */ 4963 4964#ifdef __STDC__ 4965# include <limits.h> 4966#else 4967# include <assert.h> 4968#endif 4969 4970#undef $ac_func 4971 4972/* Override any gcc2 internal prototype to avoid an error. */ 4973#ifdef __cplusplus 4974extern "C" 4975{ 4976#endif 4977/* We use char because int might match the return type of a gcc2 4978 builtin and then its argument prototype would still apply. */ 4979char $ac_func (); 4980/* The GNU C library defines this for functions which it implements 4981 to always fail with ENOSYS. Some functions are actually named 4982 something starting with __ and the normal name is an alias. */ 4983#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4984choke me 4985#else 4986char (*f) () = $ac_func; 4987#endif 4988#ifdef __cplusplus 4989} 4990#endif 4991 4992int 4993main () 4994{ 4995return f != $ac_func; 4996 ; 4997 return 0; 4998} 4999_ACEOF 5000rm -f conftest.$ac_objext conftest$ac_exeext 5001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5002 (eval $ac_link) 2>conftest.er1 5003 ac_status=$? 5004 grep -v '^ *+' conftest.er1 >conftest.err 5005 rm -f conftest.er1 5006 cat conftest.err >&5 5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5008 (exit $ac_status); } && 5009 { ac_try='test -z "$ac_c_werror_flag" 5010 || test ! -s conftest.err' 5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5012 (eval $ac_try) 2>&5 5013 ac_status=$? 5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5015 (exit $ac_status); }; } && 5016 { ac_try='test -s conftest$ac_exeext' 5017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5018 (eval $ac_try) 2>&5 5019 ac_status=$? 5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5021 (exit $ac_status); }; }; then 5022 eval "$as_ac_var=yes" 5023else 5024 echo "$as_me: failed program was:" >&5 5025sed 's/^/| /' conftest.$ac_ext >&5 5026 5027eval "$as_ac_var=no" 5028fi 5029rm -f conftest.err conftest.$ac_objext \ 5030 conftest$ac_exeext conftest.$ac_ext 5031fi 5032echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5033echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5034if test `eval echo '${'$as_ac_var'}'` = yes; then 5035 cat >>confdefs.h <<_ACEOF 5036@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5037_ACEOF 5038 5039fi 5040done 5041 5042 5043echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 5044echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 5045if test "${ac_cv_c_bigendian+set}" = set; then 5046 echo $ECHO_N "(cached) $ECHO_C" >&6 5047else 5048 # See if sys/param.h defines the BYTE_ORDER macro. 5049cat >conftest.$ac_ext <<_ACEOF 5050/* confdefs.h. */ 5051_ACEOF 5052cat confdefs.h >>conftest.$ac_ext 5053cat >>conftest.$ac_ext <<_ACEOF 5054/* end confdefs.h. */ 5055#include <sys/types.h> 5056#include <sys/param.h> 5057 5058int 5059main () 5060{ 5061#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 5062 bogus endian macros 5063#endif 5064 5065 ; 5066 return 0; 5067} 5068_ACEOF 5069rm -f conftest.$ac_objext 5070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5071 (eval $ac_compile) 2>conftest.er1 5072 ac_status=$? 5073 grep -v '^ *+' conftest.er1 >conftest.err 5074 rm -f conftest.er1 5075 cat conftest.err >&5 5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5077 (exit $ac_status); } && 5078 { ac_try='test -z "$ac_c_werror_flag" 5079 || test ! -s conftest.err' 5080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5081 (eval $ac_try) 2>&5 5082 ac_status=$? 5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5084 (exit $ac_status); }; } && 5085 { ac_try='test -s conftest.$ac_objext' 5086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5087 (eval $ac_try) 2>&5 5088 ac_status=$? 5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5090 (exit $ac_status); }; }; then 5091 # It does; now see whether it defined to BIG_ENDIAN or not. 5092cat >conftest.$ac_ext <<_ACEOF 5093/* confdefs.h. */ 5094_ACEOF 5095cat confdefs.h >>conftest.$ac_ext 5096cat >>conftest.$ac_ext <<_ACEOF 5097/* end confdefs.h. */ 5098#include <sys/types.h> 5099#include <sys/param.h> 5100 5101int 5102main () 5103{ 5104#if BYTE_ORDER != BIG_ENDIAN 5105 not big endian 5106#endif 5107 5108 ; 5109 return 0; 5110} 5111_ACEOF 5112rm -f conftest.$ac_objext 5113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5114 (eval $ac_compile) 2>conftest.er1 5115 ac_status=$? 5116 grep -v '^ *+' conftest.er1 >conftest.err 5117 rm -f conftest.er1 5118 cat conftest.err >&5 5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5120 (exit $ac_status); } && 5121 { ac_try='test -z "$ac_c_werror_flag" 5122 || test ! -s conftest.err' 5123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5124 (eval $ac_try) 2>&5 5125 ac_status=$? 5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5127 (exit $ac_status); }; } && 5128 { ac_try='test -s conftest.$ac_objext' 5129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5130 (eval $ac_try) 2>&5 5131 ac_status=$? 5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5133 (exit $ac_status); }; }; then 5134 ac_cv_c_bigendian=yes 5135else 5136 echo "$as_me: failed program was:" >&5 5137sed 's/^/| /' conftest.$ac_ext >&5 5138 5139ac_cv_c_bigendian=no 5140fi 5141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5142else 5143 echo "$as_me: failed program was:" >&5 5144sed 's/^/| /' conftest.$ac_ext >&5 5145 5146# It does not; compile a test program. 5147if test "$cross_compiling" = yes; then 5148 # try to guess the endianness by grepping values into an object file 5149 ac_cv_c_bigendian=unknown 5150 cat >conftest.$ac_ext <<_ACEOF 5151/* confdefs.h. */ 5152_ACEOF 5153cat confdefs.h >>conftest.$ac_ext 5154cat >>conftest.$ac_ext <<_ACEOF 5155/* end confdefs.h. */ 5156short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 5157short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 5158void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 5159short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 5160short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 5161void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 5162int 5163main () 5164{ 5165 _ascii (); _ebcdic (); 5166 ; 5167 return 0; 5168} 5169_ACEOF 5170rm -f conftest.$ac_objext 5171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5172 (eval $ac_compile) 2>conftest.er1 5173 ac_status=$? 5174 grep -v '^ *+' conftest.er1 >conftest.err 5175 rm -f conftest.er1 5176 cat conftest.err >&5 5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5178 (exit $ac_status); } && 5179 { ac_try='test -z "$ac_c_werror_flag" 5180 || test ! -s conftest.err' 5181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5182 (eval $ac_try) 2>&5 5183 ac_status=$? 5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5185 (exit $ac_status); }; } && 5186 { ac_try='test -s conftest.$ac_objext' 5187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5188 (eval $ac_try) 2>&5 5189 ac_status=$? 5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5191 (exit $ac_status); }; }; then 5192 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 5193 ac_cv_c_bigendian=yes 5194fi 5195if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 5196 if test "$ac_cv_c_bigendian" = unknown; then 5197 ac_cv_c_bigendian=no 5198 else 5199 # finding both strings is unlikely to happen, but who knows? 5200 ac_cv_c_bigendian=unknown 5201 fi 5202fi 5203else 5204 echo "$as_me: failed program was:" >&5 5205sed 's/^/| /' conftest.$ac_ext >&5 5206 5207fi 5208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5209else 5210 cat >conftest.$ac_ext <<_ACEOF 5211/* confdefs.h. */ 5212_ACEOF 5213cat confdefs.h >>conftest.$ac_ext 5214cat >>conftest.$ac_ext <<_ACEOF 5215/* end confdefs.h. */ 5216int 5217main () 5218{ 5219 /* Are we little or big endian? From Harbison&Steele. */ 5220 union 5221 { 5222 long l; 5223 char c[sizeof (long)]; 5224 } u; 5225 u.l = 1; 5226 exit (u.c[sizeof (long) - 1] == 1); 5227} 5228_ACEOF 5229rm -f conftest$ac_exeext 5230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5231 (eval $ac_link) 2>&5 5232 ac_status=$? 5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5236 (eval $ac_try) 2>&5 5237 ac_status=$? 5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5239 (exit $ac_status); }; }; then 5240 ac_cv_c_bigendian=no 5241else 5242 echo "$as_me: program exited with status $ac_status" >&5 5243echo "$as_me: failed program was:" >&5 5244sed 's/^/| /' conftest.$ac_ext >&5 5245 5246( exit $ac_status ) 5247ac_cv_c_bigendian=yes 5248fi 5249rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5250fi 5251fi 5252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5253fi 5254echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 5255echo "${ECHO_T}$ac_cv_c_bigendian" >&6 5256case $ac_cv_c_bigendian in 5257 yes) 5258 5259cat >>confdefs.h <<\_ACEOF 5260@%:@define WORDS_BIGENDIAN 1 5261_ACEOF 5262 ;; 5263 no) 5264 ;; 5265 *) 5266 { { echo "$as_me:$LINENO: error: unknown endianness 5267presetting ac_cv_c_bigendian=no (or yes) will help" >&5 5268echo "$as_me: error: unknown endianness 5269presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 5270 { (exit 1); exit 1; }; } ;; 5271esac 5272 5273echo "$as_me:$LINENO: checking for unsigned long int" >&5 5274echo $ECHO_N "checking for unsigned long int... $ECHO_C" >&6 5275if test "${ac_cv_type_unsigned_long_int+set}" = set; then 5276 echo $ECHO_N "(cached) $ECHO_C" >&6 5277else 5278 cat >conftest.$ac_ext <<_ACEOF 5279/* confdefs.h. */ 5280_ACEOF 5281cat confdefs.h >>conftest.$ac_ext 5282cat >>conftest.$ac_ext <<_ACEOF 5283/* end confdefs.h. */ 5284$ac_includes_default 5285int 5286main () 5287{ 5288if ((unsigned long int *) 0) 5289 return 0; 5290if (sizeof (unsigned long int)) 5291 return 0; 5292 ; 5293 return 0; 5294} 5295_ACEOF 5296rm -f conftest.$ac_objext 5297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5298 (eval $ac_compile) 2>conftest.er1 5299 ac_status=$? 5300 grep -v '^ *+' conftest.er1 >conftest.err 5301 rm -f conftest.er1 5302 cat conftest.err >&5 5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5304 (exit $ac_status); } && 5305 { ac_try='test -z "$ac_c_werror_flag" 5306 || test ! -s conftest.err' 5307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5308 (eval $ac_try) 2>&5 5309 ac_status=$? 5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5311 (exit $ac_status); }; } && 5312 { ac_try='test -s conftest.$ac_objext' 5313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5314 (eval $ac_try) 2>&5 5315 ac_status=$? 5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5317 (exit $ac_status); }; }; then 5318 ac_cv_type_unsigned_long_int=yes 5319else 5320 echo "$as_me: failed program was:" >&5 5321sed 's/^/| /' conftest.$ac_ext >&5 5322 5323ac_cv_type_unsigned_long_int=no 5324fi 5325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5326fi 5327echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_int" >&5 5328echo "${ECHO_T}$ac_cv_type_unsigned_long_int" >&6 5329 5330echo "$as_me:$LINENO: checking size of unsigned long int" >&5 5331echo $ECHO_N "checking size of unsigned long int... $ECHO_C" >&6 5332if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then 5333 echo $ECHO_N "(cached) $ECHO_C" >&6 5334else 5335 if test "$ac_cv_type_unsigned_long_int" = yes; then 5336 # The cast to unsigned long works around a bug in the HP C Compiler 5337 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5338 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5339 # This bug is HP SR number 8606223364. 5340 if test "$cross_compiling" = yes; then 5341 # Depending upon the size, compute the lo and hi bounds. 5342cat >conftest.$ac_ext <<_ACEOF 5343/* confdefs.h. */ 5344_ACEOF 5345cat confdefs.h >>conftest.$ac_ext 5346cat >>conftest.$ac_ext <<_ACEOF 5347/* end confdefs.h. */ 5348$ac_includes_default 5349int 5350main () 5351{ 5352static int test_array @<:@1 - 2 * !(((long) (sizeof (unsigned long int))) >= 0)@:>@; 5353test_array @<:@0@:>@ = 0 5354 5355 ; 5356 return 0; 5357} 5358_ACEOF 5359rm -f conftest.$ac_objext 5360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5361 (eval $ac_compile) 2>conftest.er1 5362 ac_status=$? 5363 grep -v '^ *+' conftest.er1 >conftest.err 5364 rm -f conftest.er1 5365 cat conftest.err >&5 5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5367 (exit $ac_status); } && 5368 { ac_try='test -z "$ac_c_werror_flag" 5369 || test ! -s conftest.err' 5370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5371 (eval $ac_try) 2>&5 5372 ac_status=$? 5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5374 (exit $ac_status); }; } && 5375 { ac_try='test -s conftest.$ac_objext' 5376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5377 (eval $ac_try) 2>&5 5378 ac_status=$? 5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5380 (exit $ac_status); }; }; then 5381 ac_lo=0 ac_mid=0 5382 while :; do 5383 cat >conftest.$ac_ext <<_ACEOF 5384/* confdefs.h. */ 5385_ACEOF 5386cat confdefs.h >>conftest.$ac_ext 5387cat >>conftest.$ac_ext <<_ACEOF 5388/* end confdefs.h. */ 5389$ac_includes_default 5390int 5391main () 5392{ 5393static int test_array @<:@1 - 2 * !(((long) (sizeof (unsigned long int))) <= $ac_mid)@:>@; 5394test_array @<:@0@:>@ = 0 5395 5396 ; 5397 return 0; 5398} 5399_ACEOF 5400rm -f conftest.$ac_objext 5401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5402 (eval $ac_compile) 2>conftest.er1 5403 ac_status=$? 5404 grep -v '^ *+' conftest.er1 >conftest.err 5405 rm -f conftest.er1 5406 cat conftest.err >&5 5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5408 (exit $ac_status); } && 5409 { ac_try='test -z "$ac_c_werror_flag" 5410 || test ! -s conftest.err' 5411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5412 (eval $ac_try) 2>&5 5413 ac_status=$? 5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5415 (exit $ac_status); }; } && 5416 { ac_try='test -s conftest.$ac_objext' 5417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5418 (eval $ac_try) 2>&5 5419 ac_status=$? 5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5421 (exit $ac_status); }; }; then 5422 ac_hi=$ac_mid; break 5423else 5424 echo "$as_me: failed program was:" >&5 5425sed 's/^/| /' conftest.$ac_ext >&5 5426 5427ac_lo=`expr $ac_mid + 1` 5428 if test $ac_lo -le $ac_mid; then 5429 ac_lo= ac_hi= 5430 break 5431 fi 5432 ac_mid=`expr 2 '*' $ac_mid + 1` 5433fi 5434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5435 done 5436else 5437 echo "$as_me: failed program was:" >&5 5438sed 's/^/| /' conftest.$ac_ext >&5 5439 5440cat >conftest.$ac_ext <<_ACEOF 5441/* confdefs.h. */ 5442_ACEOF 5443cat confdefs.h >>conftest.$ac_ext 5444cat >>conftest.$ac_ext <<_ACEOF 5445/* end confdefs.h. */ 5446$ac_includes_default 5447int 5448main () 5449{ 5450static int test_array @<:@1 - 2 * !(((long) (sizeof (unsigned long int))) < 0)@:>@; 5451test_array @<:@0@:>@ = 0 5452 5453 ; 5454 return 0; 5455} 5456_ACEOF 5457rm -f conftest.$ac_objext 5458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5459 (eval $ac_compile) 2>conftest.er1 5460 ac_status=$? 5461 grep -v '^ *+' conftest.er1 >conftest.err 5462 rm -f conftest.er1 5463 cat conftest.err >&5 5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5465 (exit $ac_status); } && 5466 { ac_try='test -z "$ac_c_werror_flag" 5467 || test ! -s conftest.err' 5468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5469 (eval $ac_try) 2>&5 5470 ac_status=$? 5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5472 (exit $ac_status); }; } && 5473 { ac_try='test -s conftest.$ac_objext' 5474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5475 (eval $ac_try) 2>&5 5476 ac_status=$? 5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5478 (exit $ac_status); }; }; then 5479 ac_hi=-1 ac_mid=-1 5480 while :; do 5481 cat >conftest.$ac_ext <<_ACEOF 5482/* confdefs.h. */ 5483_ACEOF 5484cat confdefs.h >>conftest.$ac_ext 5485cat >>conftest.$ac_ext <<_ACEOF 5486/* end confdefs.h. */ 5487$ac_includes_default 5488int 5489main () 5490{ 5491static int test_array @<:@1 - 2 * !(((long) (sizeof (unsigned long int))) >= $ac_mid)@:>@; 5492test_array @<:@0@:>@ = 0 5493 5494 ; 5495 return 0; 5496} 5497_ACEOF 5498rm -f conftest.$ac_objext 5499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5500 (eval $ac_compile) 2>conftest.er1 5501 ac_status=$? 5502 grep -v '^ *+' conftest.er1 >conftest.err 5503 rm -f conftest.er1 5504 cat conftest.err >&5 5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5506 (exit $ac_status); } && 5507 { ac_try='test -z "$ac_c_werror_flag" 5508 || test ! -s conftest.err' 5509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5510 (eval $ac_try) 2>&5 5511 ac_status=$? 5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5513 (exit $ac_status); }; } && 5514 { ac_try='test -s conftest.$ac_objext' 5515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5516 (eval $ac_try) 2>&5 5517 ac_status=$? 5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5519 (exit $ac_status); }; }; then 5520 ac_lo=$ac_mid; break 5521else 5522 echo "$as_me: failed program was:" >&5 5523sed 's/^/| /' conftest.$ac_ext >&5 5524 5525ac_hi=`expr '(' $ac_mid ')' - 1` 5526 if test $ac_mid -le $ac_hi; then 5527 ac_lo= ac_hi= 5528 break 5529 fi 5530 ac_mid=`expr 2 '*' $ac_mid` 5531fi 5532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5533 done 5534else 5535 echo "$as_me: failed program was:" >&5 5536sed 's/^/| /' conftest.$ac_ext >&5 5537 5538ac_lo= ac_hi= 5539fi 5540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5541fi 5542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5543# Binary search between lo and hi bounds. 5544while test "x$ac_lo" != "x$ac_hi"; do 5545 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 5546 cat >conftest.$ac_ext <<_ACEOF 5547/* confdefs.h. */ 5548_ACEOF 5549cat confdefs.h >>conftest.$ac_ext 5550cat >>conftest.$ac_ext <<_ACEOF 5551/* end confdefs.h. */ 5552$ac_includes_default 5553int 5554main () 5555{ 5556static int test_array @<:@1 - 2 * !(((long) (sizeof (unsigned long int))) <= $ac_mid)@:>@; 5557test_array @<:@0@:>@ = 0 5558 5559 ; 5560 return 0; 5561} 5562_ACEOF 5563rm -f conftest.$ac_objext 5564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5565 (eval $ac_compile) 2>conftest.er1 5566 ac_status=$? 5567 grep -v '^ *+' conftest.er1 >conftest.err 5568 rm -f conftest.er1 5569 cat conftest.err >&5 5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5571 (exit $ac_status); } && 5572 { ac_try='test -z "$ac_c_werror_flag" 5573 || test ! -s conftest.err' 5574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5575 (eval $ac_try) 2>&5 5576 ac_status=$? 5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5578 (exit $ac_status); }; } && 5579 { ac_try='test -s conftest.$ac_objext' 5580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5581 (eval $ac_try) 2>&5 5582 ac_status=$? 5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5584 (exit $ac_status); }; }; then 5585 ac_hi=$ac_mid 5586else 5587 echo "$as_me: failed program was:" >&5 5588sed 's/^/| /' conftest.$ac_ext >&5 5589 5590ac_lo=`expr '(' $ac_mid ')' + 1` 5591fi 5592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5593done 5594case $ac_lo in 5595?*) ac_cv_sizeof_unsigned_long_int=$ac_lo;; 5596'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long int), 77 5597See \`config.log' for more details." >&5 5598echo "$as_me: error: cannot compute sizeof (unsigned long int), 77 5599See \`config.log' for more details." >&2;} 5600 { (exit 1); exit 1; }; } ;; 5601esac 5602else 5603 if test "$cross_compiling" = yes; then 5604 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 5605See \`config.log' for more details." >&5 5606echo "$as_me: error: cannot run test program while cross compiling 5607See \`config.log' for more details." >&2;} 5608 { (exit 1); exit 1; }; } 5609else 5610 cat >conftest.$ac_ext <<_ACEOF 5611/* confdefs.h. */ 5612_ACEOF 5613cat confdefs.h >>conftest.$ac_ext 5614cat >>conftest.$ac_ext <<_ACEOF 5615/* end confdefs.h. */ 5616$ac_includes_default 5617long longval () { return (long) (sizeof (unsigned long int)); } 5618unsigned long ulongval () { return (long) (sizeof (unsigned long int)); } 5619@%:@include <stdio.h> 5620@%:@include <stdlib.h> 5621int 5622main () 5623{ 5624 5625 FILE *f = fopen ("conftest.val", "w"); 5626 if (! f) 5627 exit (1); 5628 if (((long) (sizeof (unsigned long int))) < 0) 5629 { 5630 long i = longval (); 5631 if (i != ((long) (sizeof (unsigned long int)))) 5632 exit (1); 5633 fprintf (f, "%ld\n", i); 5634 } 5635 else 5636 { 5637 unsigned long i = ulongval (); 5638 if (i != ((long) (sizeof (unsigned long int)))) 5639 exit (1); 5640 fprintf (f, "%lu\n", i); 5641 } 5642 exit (ferror (f) || fclose (f) != 0); 5643 5644 ; 5645 return 0; 5646} 5647_ACEOF 5648rm -f conftest$ac_exeext 5649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5650 (eval $ac_link) 2>&5 5651 ac_status=$? 5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5653 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5655 (eval $ac_try) 2>&5 5656 ac_status=$? 5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5658 (exit $ac_status); }; }; then 5659 ac_cv_sizeof_unsigned_long_int=`cat conftest.val` 5660else 5661 echo "$as_me: program exited with status $ac_status" >&5 5662echo "$as_me: failed program was:" >&5 5663sed 's/^/| /' conftest.$ac_ext >&5 5664 5665( exit $ac_status ) 5666{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long int), 77 5667See \`config.log' for more details." >&5 5668echo "$as_me: error: cannot compute sizeof (unsigned long int), 77 5669See \`config.log' for more details." >&2;} 5670 { (exit 1); exit 1; }; } 5671fi 5672rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5673fi 5674fi 5675rm -f conftest.val 5676else 5677 ac_cv_sizeof_unsigned_long_int=0 5678fi 5679fi 5680echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5 5681echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6 5682cat >>confdefs.h <<_ACEOF 5683@%:@define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int 5684_ACEOF 5685 5686 5687echo "$as_me:$LINENO: checking for unsigned int" >&5 5688echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6 5689if test "${ac_cv_type_unsigned_int+set}" = set; then 5690 echo $ECHO_N "(cached) $ECHO_C" >&6 5691else 5692 cat >conftest.$ac_ext <<_ACEOF 5693/* confdefs.h. */ 5694_ACEOF 5695cat confdefs.h >>conftest.$ac_ext 5696cat >>conftest.$ac_ext <<_ACEOF 5697/* end confdefs.h. */ 5698$ac_includes_default 5699int 5700main () 5701{ 5702if ((unsigned int *) 0) 5703 return 0; 5704if (sizeof (unsigned int)) 5705 return 0; 5706 ; 5707 return 0; 5708} 5709_ACEOF 5710rm -f conftest.$ac_objext 5711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5712 (eval $ac_compile) 2>conftest.er1 5713 ac_status=$? 5714 grep -v '^ *+' conftest.er1 >conftest.err 5715 rm -f conftest.er1 5716 cat conftest.err >&5 5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5718 (exit $ac_status); } && 5719 { ac_try='test -z "$ac_c_werror_flag" 5720 || test ! -s conftest.err' 5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5722 (eval $ac_try) 2>&5 5723 ac_status=$? 5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5725 (exit $ac_status); }; } && 5726 { ac_try='test -s conftest.$ac_objext' 5727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5728 (eval $ac_try) 2>&5 5729 ac_status=$? 5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5731 (exit $ac_status); }; }; then 5732 ac_cv_type_unsigned_int=yes 5733else 5734 echo "$as_me: failed program was:" >&5 5735sed 's/^/| /' conftest.$ac_ext >&5 5736 5737ac_cv_type_unsigned_int=no 5738fi 5739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5740fi 5741echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5 5742echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6 5743 5744echo "$as_me:$LINENO: checking size of unsigned int" >&5 5745echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6 5746if test "${ac_cv_sizeof_unsigned_int+set}" = set; then 5747 echo $ECHO_N "(cached) $ECHO_C" >&6 5748else 5749 if test "$ac_cv_type_unsigned_int" = yes; then 5750 # The cast to unsigned long works around a bug in the HP C Compiler 5751 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5752 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5753 # This bug is HP SR number 8606223364. 5754 if test "$cross_compiling" = yes; then 5755 # Depending upon the size, compute the lo and hi bounds. 5756cat >conftest.$ac_ext <<_ACEOF 5757/* confdefs.h. */ 5758_ACEOF 5759cat confdefs.h >>conftest.$ac_ext 5760cat >>conftest.$ac_ext <<_ACEOF 5761/* end confdefs.h. */ 5762$ac_includes_default 5763int 5764main () 5765{ 5766static int test_array @<:@1 - 2 * !(((long) (sizeof (unsigned int))) >= 0)@:>@; 5767test_array @<:@0@:>@ = 0 5768 5769 ; 5770 return 0; 5771} 5772_ACEOF 5773rm -f conftest.$ac_objext 5774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5775 (eval $ac_compile) 2>conftest.er1 5776 ac_status=$? 5777 grep -v '^ *+' conftest.er1 >conftest.err 5778 rm -f conftest.er1 5779 cat conftest.err >&5 5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5781 (exit $ac_status); } && 5782 { ac_try='test -z "$ac_c_werror_flag" 5783 || test ! -s conftest.err' 5784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5785 (eval $ac_try) 2>&5 5786 ac_status=$? 5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5788 (exit $ac_status); }; } && 5789 { ac_try='test -s conftest.$ac_objext' 5790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5791 (eval $ac_try) 2>&5 5792 ac_status=$? 5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5794 (exit $ac_status); }; }; then 5795 ac_lo=0 ac_mid=0 5796 while :; do 5797 cat >conftest.$ac_ext <<_ACEOF 5798/* confdefs.h. */ 5799_ACEOF 5800cat confdefs.h >>conftest.$ac_ext 5801cat >>conftest.$ac_ext <<_ACEOF 5802/* end confdefs.h. */ 5803$ac_includes_default 5804int 5805main () 5806{ 5807static int test_array @<:@1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)@:>@; 5808test_array @<:@0@:>@ = 0 5809 5810 ; 5811 return 0; 5812} 5813_ACEOF 5814rm -f conftest.$ac_objext 5815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5816 (eval $ac_compile) 2>conftest.er1 5817 ac_status=$? 5818 grep -v '^ *+' conftest.er1 >conftest.err 5819 rm -f conftest.er1 5820 cat conftest.err >&5 5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5822 (exit $ac_status); } && 5823 { ac_try='test -z "$ac_c_werror_flag" 5824 || test ! -s conftest.err' 5825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5826 (eval $ac_try) 2>&5 5827 ac_status=$? 5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5829 (exit $ac_status); }; } && 5830 { ac_try='test -s conftest.$ac_objext' 5831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5832 (eval $ac_try) 2>&5 5833 ac_status=$? 5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5835 (exit $ac_status); }; }; then 5836 ac_hi=$ac_mid; break 5837else 5838 echo "$as_me: failed program was:" >&5 5839sed 's/^/| /' conftest.$ac_ext >&5 5840 5841ac_lo=`expr $ac_mid + 1` 5842 if test $ac_lo -le $ac_mid; then 5843 ac_lo= ac_hi= 5844 break 5845 fi 5846 ac_mid=`expr 2 '*' $ac_mid + 1` 5847fi 5848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5849 done 5850else 5851 echo "$as_me: failed program was:" >&5 5852sed 's/^/| /' conftest.$ac_ext >&5 5853 5854cat >conftest.$ac_ext <<_ACEOF 5855/* confdefs.h. */ 5856_ACEOF 5857cat confdefs.h >>conftest.$ac_ext 5858cat >>conftest.$ac_ext <<_ACEOF 5859/* end confdefs.h. */ 5860$ac_includes_default 5861int 5862main () 5863{ 5864static int test_array @<:@1 - 2 * !(((long) (sizeof (unsigned int))) < 0)@:>@; 5865test_array @<:@0@:>@ = 0 5866 5867 ; 5868 return 0; 5869} 5870_ACEOF 5871rm -f conftest.$ac_objext 5872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5873 (eval $ac_compile) 2>conftest.er1 5874 ac_status=$? 5875 grep -v '^ *+' conftest.er1 >conftest.err 5876 rm -f conftest.er1 5877 cat conftest.err >&5 5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5879 (exit $ac_status); } && 5880 { ac_try='test -z "$ac_c_werror_flag" 5881 || test ! -s conftest.err' 5882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5883 (eval $ac_try) 2>&5 5884 ac_status=$? 5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5886 (exit $ac_status); }; } && 5887 { ac_try='test -s conftest.$ac_objext' 5888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5889 (eval $ac_try) 2>&5 5890 ac_status=$? 5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5892 (exit $ac_status); }; }; then 5893 ac_hi=-1 ac_mid=-1 5894 while :; do 5895 cat >conftest.$ac_ext <<_ACEOF 5896/* confdefs.h. */ 5897_ACEOF 5898cat confdefs.h >>conftest.$ac_ext 5899cat >>conftest.$ac_ext <<_ACEOF 5900/* end confdefs.h. */ 5901$ac_includes_default 5902int 5903main () 5904{ 5905static int test_array @<:@1 - 2 * !(((long) (sizeof (unsigned int))) >= $ac_mid)@:>@; 5906test_array @<:@0@:>@ = 0 5907 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_c_werror_flag" 5922 || test ! -s conftest.err' 5923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5924 (eval $ac_try) 2>&5 5925 ac_status=$? 5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5927 (exit $ac_status); }; } && 5928 { ac_try='test -s conftest.$ac_objext' 5929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5930 (eval $ac_try) 2>&5 5931 ac_status=$? 5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5933 (exit $ac_status); }; }; then 5934 ac_lo=$ac_mid; break 5935else 5936 echo "$as_me: failed program was:" >&5 5937sed 's/^/| /' conftest.$ac_ext >&5 5938 5939ac_hi=`expr '(' $ac_mid ')' - 1` 5940 if test $ac_mid -le $ac_hi; then 5941 ac_lo= ac_hi= 5942 break 5943 fi 5944 ac_mid=`expr 2 '*' $ac_mid` 5945fi 5946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5947 done 5948else 5949 echo "$as_me: failed program was:" >&5 5950sed 's/^/| /' conftest.$ac_ext >&5 5951 5952ac_lo= ac_hi= 5953fi 5954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5955fi 5956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5957# Binary search between lo and hi bounds. 5958while test "x$ac_lo" != "x$ac_hi"; do 5959 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 5960 cat >conftest.$ac_ext <<_ACEOF 5961/* confdefs.h. */ 5962_ACEOF 5963cat confdefs.h >>conftest.$ac_ext 5964cat >>conftest.$ac_ext <<_ACEOF 5965/* end confdefs.h. */ 5966$ac_includes_default 5967int 5968main () 5969{ 5970static int test_array @<:@1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)@:>@; 5971test_array @<:@0@:>@ = 0 5972 5973 ; 5974 return 0; 5975} 5976_ACEOF 5977rm -f conftest.$ac_objext 5978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5979 (eval $ac_compile) 2>conftest.er1 5980 ac_status=$? 5981 grep -v '^ *+' conftest.er1 >conftest.err 5982 rm -f conftest.er1 5983 cat conftest.err >&5 5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5985 (exit $ac_status); } && 5986 { ac_try='test -z "$ac_c_werror_flag" 5987 || test ! -s conftest.err' 5988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5989 (eval $ac_try) 2>&5 5990 ac_status=$? 5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5992 (exit $ac_status); }; } && 5993 { ac_try='test -s conftest.$ac_objext' 5994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5995 (eval $ac_try) 2>&5 5996 ac_status=$? 5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5998 (exit $ac_status); }; }; then 5999 ac_hi=$ac_mid 6000else 6001 echo "$as_me: failed program was:" >&5 6002sed 's/^/| /' conftest.$ac_ext >&5 6003 6004ac_lo=`expr '(' $ac_mid ')' + 1` 6005fi 6006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6007done 6008case $ac_lo in 6009?*) ac_cv_sizeof_unsigned_int=$ac_lo;; 6010'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77 6011See \`config.log' for more details." >&5 6012echo "$as_me: error: cannot compute sizeof (unsigned int), 77 6013See \`config.log' for more details." >&2;} 6014 { (exit 1); exit 1; }; } ;; 6015esac 6016else 6017 if test "$cross_compiling" = yes; then 6018 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 6019See \`config.log' for more details." >&5 6020echo "$as_me: error: cannot run test program while cross compiling 6021See \`config.log' for more details." >&2;} 6022 { (exit 1); exit 1; }; } 6023else 6024 cat >conftest.$ac_ext <<_ACEOF 6025/* confdefs.h. */ 6026_ACEOF 6027cat confdefs.h >>conftest.$ac_ext 6028cat >>conftest.$ac_ext <<_ACEOF 6029/* end confdefs.h. */ 6030$ac_includes_default 6031long longval () { return (long) (sizeof (unsigned int)); } 6032unsigned long ulongval () { return (long) (sizeof (unsigned int)); } 6033@%:@include <stdio.h> 6034@%:@include <stdlib.h> 6035int 6036main () 6037{ 6038 6039 FILE *f = fopen ("conftest.val", "w"); 6040 if (! f) 6041 exit (1); 6042 if (((long) (sizeof (unsigned int))) < 0) 6043 { 6044 long i = longval (); 6045 if (i != ((long) (sizeof (unsigned int)))) 6046 exit (1); 6047 fprintf (f, "%ld\n", i); 6048 } 6049 else 6050 { 6051 unsigned long i = ulongval (); 6052 if (i != ((long) (sizeof (unsigned int)))) 6053 exit (1); 6054 fprintf (f, "%lu\n", i); 6055 } 6056 exit (ferror (f) || fclose (f) != 0); 6057 6058 ; 6059 return 0; 6060} 6061_ACEOF 6062rm -f conftest$ac_exeext 6063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6064 (eval $ac_link) 2>&5 6065 ac_status=$? 6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6069 (eval $ac_try) 2>&5 6070 ac_status=$? 6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6072 (exit $ac_status); }; }; then 6073 ac_cv_sizeof_unsigned_int=`cat conftest.val` 6074else 6075 echo "$as_me: program exited with status $ac_status" >&5 6076echo "$as_me: failed program was:" >&5 6077sed 's/^/| /' conftest.$ac_ext >&5 6078 6079( exit $ac_status ) 6080{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77 6081See \`config.log' for more details." >&5 6082echo "$as_me: error: cannot compute sizeof (unsigned int), 77 6083See \`config.log' for more details." >&2;} 6084 { (exit 1); exit 1; }; } 6085fi 6086rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6087fi 6088fi 6089rm -f conftest.val 6090else 6091 ac_cv_sizeof_unsigned_int=0 6092fi 6093fi 6094echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5 6095echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6 6096cat >>confdefs.h <<_ACEOF 6097@%:@define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int 6098_ACEOF 6099 6100 6101echo "$as_me:$LINENO: checking for unsigned short int" >&5 6102echo $ECHO_N "checking for unsigned short int... $ECHO_C" >&6 6103if test "${ac_cv_type_unsigned_short_int+set}" = set; then 6104 echo $ECHO_N "(cached) $ECHO_C" >&6 6105else 6106 cat >conftest.$ac_ext <<_ACEOF 6107/* confdefs.h. */ 6108_ACEOF 6109cat confdefs.h >>conftest.$ac_ext 6110cat >>conftest.$ac_ext <<_ACEOF 6111/* end confdefs.h. */ 6112$ac_includes_default 6113int 6114main () 6115{ 6116if ((unsigned short int *) 0) 6117 return 0; 6118if (sizeof (unsigned short int)) 6119 return 0; 6120 ; 6121 return 0; 6122} 6123_ACEOF 6124rm -f conftest.$ac_objext 6125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6126 (eval $ac_compile) 2>conftest.er1 6127 ac_status=$? 6128 grep -v '^ *+' conftest.er1 >conftest.err 6129 rm -f conftest.er1 6130 cat conftest.err >&5 6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6132 (exit $ac_status); } && 6133 { ac_try='test -z "$ac_c_werror_flag" 6134 || test ! -s conftest.err' 6135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6136 (eval $ac_try) 2>&5 6137 ac_status=$? 6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6139 (exit $ac_status); }; } && 6140 { ac_try='test -s conftest.$ac_objext' 6141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6142 (eval $ac_try) 2>&5 6143 ac_status=$? 6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6145 (exit $ac_status); }; }; then 6146 ac_cv_type_unsigned_short_int=yes 6147else 6148 echo "$as_me: failed program was:" >&5 6149sed 's/^/| /' conftest.$ac_ext >&5 6150 6151ac_cv_type_unsigned_short_int=no 6152fi 6153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6154fi 6155echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short_int" >&5 6156echo "${ECHO_T}$ac_cv_type_unsigned_short_int" >&6 6157 6158echo "$as_me:$LINENO: checking size of unsigned short int" >&5 6159echo $ECHO_N "checking size of unsigned short int... $ECHO_C" >&6 6160if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then 6161 echo $ECHO_N "(cached) $ECHO_C" >&6 6162else 6163 if test "$ac_cv_type_unsigned_short_int" = yes; then 6164 # The cast to unsigned long works around a bug in the HP C Compiler 6165 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6166 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6167 # This bug is HP SR number 8606223364. 6168 if test "$cross_compiling" = yes; then 6169 # Depending upon the size, compute the lo and hi bounds. 6170cat >conftest.$ac_ext <<_ACEOF 6171/* confdefs.h. */ 6172_ACEOF 6173cat confdefs.h >>conftest.$ac_ext 6174cat >>conftest.$ac_ext <<_ACEOF 6175/* end confdefs.h. */ 6176$ac_includes_default 6177int 6178main () 6179{ 6180static int test_array @<:@1 - 2 * !(((long) (sizeof (unsigned short int))) >= 0)@:>@; 6181test_array @<:@0@:>@ = 0 6182 6183 ; 6184 return 0; 6185} 6186_ACEOF 6187rm -f conftest.$ac_objext 6188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6189 (eval $ac_compile) 2>conftest.er1 6190 ac_status=$? 6191 grep -v '^ *+' conftest.er1 >conftest.err 6192 rm -f conftest.er1 6193 cat conftest.err >&5 6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6195 (exit $ac_status); } && 6196 { ac_try='test -z "$ac_c_werror_flag" 6197 || test ! -s conftest.err' 6198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6199 (eval $ac_try) 2>&5 6200 ac_status=$? 6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6202 (exit $ac_status); }; } && 6203 { ac_try='test -s conftest.$ac_objext' 6204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6205 (eval $ac_try) 2>&5 6206 ac_status=$? 6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6208 (exit $ac_status); }; }; then 6209 ac_lo=0 ac_mid=0 6210 while :; do 6211 cat >conftest.$ac_ext <<_ACEOF 6212/* confdefs.h. */ 6213_ACEOF 6214cat confdefs.h >>conftest.$ac_ext 6215cat >>conftest.$ac_ext <<_ACEOF 6216/* end confdefs.h. */ 6217$ac_includes_default 6218int 6219main () 6220{ 6221static int test_array @<:@1 - 2 * !(((long) (sizeof (unsigned short int))) <= $ac_mid)@:>@; 6222test_array @<:@0@:>@ = 0 6223 6224 ; 6225 return 0; 6226} 6227_ACEOF 6228rm -f conftest.$ac_objext 6229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6230 (eval $ac_compile) 2>conftest.er1 6231 ac_status=$? 6232 grep -v '^ *+' conftest.er1 >conftest.err 6233 rm -f conftest.er1 6234 cat conftest.err >&5 6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6236 (exit $ac_status); } && 6237 { ac_try='test -z "$ac_c_werror_flag" 6238 || test ! -s conftest.err' 6239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6240 (eval $ac_try) 2>&5 6241 ac_status=$? 6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6243 (exit $ac_status); }; } && 6244 { ac_try='test -s conftest.$ac_objext' 6245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6246 (eval $ac_try) 2>&5 6247 ac_status=$? 6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6249 (exit $ac_status); }; }; then 6250 ac_hi=$ac_mid; break 6251else 6252 echo "$as_me: failed program was:" >&5 6253sed 's/^/| /' conftest.$ac_ext >&5 6254 6255ac_lo=`expr $ac_mid + 1` 6256 if test $ac_lo -le $ac_mid; then 6257 ac_lo= ac_hi= 6258 break 6259 fi 6260 ac_mid=`expr 2 '*' $ac_mid + 1` 6261fi 6262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6263 done 6264else 6265 echo "$as_me: failed program was:" >&5 6266sed 's/^/| /' conftest.$ac_ext >&5 6267 6268cat >conftest.$ac_ext <<_ACEOF 6269/* confdefs.h. */ 6270_ACEOF 6271cat confdefs.h >>conftest.$ac_ext 6272cat >>conftest.$ac_ext <<_ACEOF 6273/* end confdefs.h. */ 6274$ac_includes_default 6275int 6276main () 6277{ 6278static int test_array @<:@1 - 2 * !(((long) (sizeof (unsigned short int))) < 0)@:>@; 6279test_array @<:@0@:>@ = 0 6280 6281 ; 6282 return 0; 6283} 6284_ACEOF 6285rm -f conftest.$ac_objext 6286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6287 (eval $ac_compile) 2>conftest.er1 6288 ac_status=$? 6289 grep -v '^ *+' conftest.er1 >conftest.err 6290 rm -f conftest.er1 6291 cat conftest.err >&5 6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6293 (exit $ac_status); } && 6294 { ac_try='test -z "$ac_c_werror_flag" 6295 || test ! -s conftest.err' 6296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6297 (eval $ac_try) 2>&5 6298 ac_status=$? 6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6300 (exit $ac_status); }; } && 6301 { ac_try='test -s conftest.$ac_objext' 6302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6303 (eval $ac_try) 2>&5 6304 ac_status=$? 6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6306 (exit $ac_status); }; }; then 6307 ac_hi=-1 ac_mid=-1 6308 while :; do 6309 cat >conftest.$ac_ext <<_ACEOF 6310/* confdefs.h. */ 6311_ACEOF 6312cat confdefs.h >>conftest.$ac_ext 6313cat >>conftest.$ac_ext <<_ACEOF 6314/* end confdefs.h. */ 6315$ac_includes_default 6316int 6317main () 6318{ 6319static int test_array @<:@1 - 2 * !(((long) (sizeof (unsigned short int))) >= $ac_mid)@:>@; 6320test_array @<:@0@:>@ = 0 6321 6322 ; 6323 return 0; 6324} 6325_ACEOF 6326rm -f conftest.$ac_objext 6327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6328 (eval $ac_compile) 2>conftest.er1 6329 ac_status=$? 6330 grep -v '^ *+' conftest.er1 >conftest.err 6331 rm -f conftest.er1 6332 cat conftest.err >&5 6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6334 (exit $ac_status); } && 6335 { ac_try='test -z "$ac_c_werror_flag" 6336 || test ! -s conftest.err' 6337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6338 (eval $ac_try) 2>&5 6339 ac_status=$? 6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6341 (exit $ac_status); }; } && 6342 { ac_try='test -s conftest.$ac_objext' 6343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6344 (eval $ac_try) 2>&5 6345 ac_status=$? 6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6347 (exit $ac_status); }; }; then 6348 ac_lo=$ac_mid; break 6349else 6350 echo "$as_me: failed program was:" >&5 6351sed 's/^/| /' conftest.$ac_ext >&5 6352 6353ac_hi=`expr '(' $ac_mid ')' - 1` 6354 if test $ac_mid -le $ac_hi; then 6355 ac_lo= ac_hi= 6356 break 6357 fi 6358 ac_mid=`expr 2 '*' $ac_mid` 6359fi 6360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6361 done 6362else 6363 echo "$as_me: failed program was:" >&5 6364sed 's/^/| /' conftest.$ac_ext >&5 6365 6366ac_lo= ac_hi= 6367fi 6368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6369fi 6370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6371# Binary search between lo and hi bounds. 6372while test "x$ac_lo" != "x$ac_hi"; do 6373 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 6374 cat >conftest.$ac_ext <<_ACEOF 6375/* confdefs.h. */ 6376_ACEOF 6377cat confdefs.h >>conftest.$ac_ext 6378cat >>conftest.$ac_ext <<_ACEOF 6379/* end confdefs.h. */ 6380$ac_includes_default 6381int 6382main () 6383{ 6384static int test_array @<:@1 - 2 * !(((long) (sizeof (unsigned short int))) <= $ac_mid)@:>@; 6385test_array @<:@0@:>@ = 0 6386 6387 ; 6388 return 0; 6389} 6390_ACEOF 6391rm -f conftest.$ac_objext 6392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6393 (eval $ac_compile) 2>conftest.er1 6394 ac_status=$? 6395 grep -v '^ *+' conftest.er1 >conftest.err 6396 rm -f conftest.er1 6397 cat conftest.err >&5 6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6399 (exit $ac_status); } && 6400 { ac_try='test -z "$ac_c_werror_flag" 6401 || test ! -s conftest.err' 6402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6403 (eval $ac_try) 2>&5 6404 ac_status=$? 6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6406 (exit $ac_status); }; } && 6407 { ac_try='test -s conftest.$ac_objext' 6408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6409 (eval $ac_try) 2>&5 6410 ac_status=$? 6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6412 (exit $ac_status); }; }; then 6413 ac_hi=$ac_mid 6414else 6415 echo "$as_me: failed program was:" >&5 6416sed 's/^/| /' conftest.$ac_ext >&5 6417 6418ac_lo=`expr '(' $ac_mid ')' + 1` 6419fi 6420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6421done 6422case $ac_lo in 6423?*) ac_cv_sizeof_unsigned_short_int=$ac_lo;; 6424'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short int), 77 6425See \`config.log' for more details." >&5 6426echo "$as_me: error: cannot compute sizeof (unsigned short int), 77 6427See \`config.log' for more details." >&2;} 6428 { (exit 1); exit 1; }; } ;; 6429esac 6430else 6431 if test "$cross_compiling" = yes; then 6432 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 6433See \`config.log' for more details." >&5 6434echo "$as_me: error: cannot run test program while cross compiling 6435See \`config.log' for more details." >&2;} 6436 { (exit 1); exit 1; }; } 6437else 6438 cat >conftest.$ac_ext <<_ACEOF 6439/* confdefs.h. */ 6440_ACEOF 6441cat confdefs.h >>conftest.$ac_ext 6442cat >>conftest.$ac_ext <<_ACEOF 6443/* end confdefs.h. */ 6444$ac_includes_default 6445long longval () { return (long) (sizeof (unsigned short int)); } 6446unsigned long ulongval () { return (long) (sizeof (unsigned short int)); } 6447@%:@include <stdio.h> 6448@%:@include <stdlib.h> 6449int 6450main () 6451{ 6452 6453 FILE *f = fopen ("conftest.val", "w"); 6454 if (! f) 6455 exit (1); 6456 if (((long) (sizeof (unsigned short int))) < 0) 6457 { 6458 long i = longval (); 6459 if (i != ((long) (sizeof (unsigned short int)))) 6460 exit (1); 6461 fprintf (f, "%ld\n", i); 6462 } 6463 else 6464 { 6465 unsigned long i = ulongval (); 6466 if (i != ((long) (sizeof (unsigned short int)))) 6467 exit (1); 6468 fprintf (f, "%lu\n", i); 6469 } 6470 exit (ferror (f) || fclose (f) != 0); 6471 6472 ; 6473 return 0; 6474} 6475_ACEOF 6476rm -f conftest$ac_exeext 6477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6478 (eval $ac_link) 2>&5 6479 ac_status=$? 6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 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); }; }; then 6487 ac_cv_sizeof_unsigned_short_int=`cat conftest.val` 6488else 6489 echo "$as_me: program exited with status $ac_status" >&5 6490echo "$as_me: failed program was:" >&5 6491sed 's/^/| /' conftest.$ac_ext >&5 6492 6493( exit $ac_status ) 6494{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short int), 77 6495See \`config.log' for more details." >&5 6496echo "$as_me: error: cannot compute sizeof (unsigned short int), 77 6497See \`config.log' for more details." >&2;} 6498 { (exit 1); exit 1; }; } 6499fi 6500rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6501fi 6502fi 6503rm -f conftest.val 6504else 6505 ac_cv_sizeof_unsigned_short_int=0 6506fi 6507fi 6508echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5 6509echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6 6510cat >>confdefs.h <<_ACEOF 6511@%:@define SIZEOF_UNSIGNED_SHORT_INT $ac_cv_sizeof_unsigned_short_int 6512_ACEOF 6513 6514 6515echo "$as_me:$LINENO: checking for unsigned char" >&5 6516echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6 6517if test "${ac_cv_type_unsigned_char+set}" = set; then 6518 echo $ECHO_N "(cached) $ECHO_C" >&6 6519else 6520 cat >conftest.$ac_ext <<_ACEOF 6521/* confdefs.h. */ 6522_ACEOF 6523cat confdefs.h >>conftest.$ac_ext 6524cat >>conftest.$ac_ext <<_ACEOF 6525/* end confdefs.h. */ 6526$ac_includes_default 6527int 6528main () 6529{ 6530if ((unsigned char *) 0) 6531 return 0; 6532if (sizeof (unsigned char)) 6533 return 0; 6534 ; 6535 return 0; 6536} 6537_ACEOF 6538rm -f conftest.$ac_objext 6539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6540 (eval $ac_compile) 2>conftest.er1 6541 ac_status=$? 6542 grep -v '^ *+' conftest.er1 >conftest.err 6543 rm -f conftest.er1 6544 cat conftest.err >&5 6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6546 (exit $ac_status); } && 6547 { ac_try='test -z "$ac_c_werror_flag" 6548 || test ! -s conftest.err' 6549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6550 (eval $ac_try) 2>&5 6551 ac_status=$? 6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6553 (exit $ac_status); }; } && 6554 { ac_try='test -s conftest.$ac_objext' 6555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6556 (eval $ac_try) 2>&5 6557 ac_status=$? 6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6559 (exit $ac_status); }; }; then 6560 ac_cv_type_unsigned_char=yes 6561else 6562 echo "$as_me: failed program was:" >&5 6563sed 's/^/| /' conftest.$ac_ext >&5 6564 6565ac_cv_type_unsigned_char=no 6566fi 6567rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6568fi 6569echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char" >&5 6570echo "${ECHO_T}$ac_cv_type_unsigned_char" >&6 6571 6572echo "$as_me:$LINENO: checking size of unsigned char" >&5 6573echo $ECHO_N "checking size of unsigned char... $ECHO_C" >&6 6574if test "${ac_cv_sizeof_unsigned_char+set}" = set; then 6575 echo $ECHO_N "(cached) $ECHO_C" >&6 6576else 6577 if test "$ac_cv_type_unsigned_char" = yes; then 6578 # The cast to unsigned long works around a bug in the HP C Compiler 6579 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6580 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6581 # This bug is HP SR number 8606223364. 6582 if test "$cross_compiling" = yes; then 6583 # Depending upon the size, compute the lo and hi bounds. 6584cat >conftest.$ac_ext <<_ACEOF 6585/* confdefs.h. */ 6586_ACEOF 6587cat confdefs.h >>conftest.$ac_ext 6588cat >>conftest.$ac_ext <<_ACEOF 6589/* end confdefs.h. */ 6590$ac_includes_default 6591int 6592main () 6593{ 6594static int test_array @<:@1 - 2 * !(((long) (sizeof (unsigned char))) >= 0)@:>@; 6595test_array @<:@0@:>@ = 0 6596 6597 ; 6598 return 0; 6599} 6600_ACEOF 6601rm -f conftest.$ac_objext 6602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6603 (eval $ac_compile) 2>conftest.er1 6604 ac_status=$? 6605 grep -v '^ *+' conftest.er1 >conftest.err 6606 rm -f conftest.er1 6607 cat conftest.err >&5 6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6609 (exit $ac_status); } && 6610 { ac_try='test -z "$ac_c_werror_flag" 6611 || test ! -s conftest.err' 6612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6613 (eval $ac_try) 2>&5 6614 ac_status=$? 6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6616 (exit $ac_status); }; } && 6617 { ac_try='test -s conftest.$ac_objext' 6618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6619 (eval $ac_try) 2>&5 6620 ac_status=$? 6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6622 (exit $ac_status); }; }; then 6623 ac_lo=0 ac_mid=0 6624 while :; do 6625 cat >conftest.$ac_ext <<_ACEOF 6626/* confdefs.h. */ 6627_ACEOF 6628cat confdefs.h >>conftest.$ac_ext 6629cat >>conftest.$ac_ext <<_ACEOF 6630/* end confdefs.h. */ 6631$ac_includes_default 6632int 6633main () 6634{ 6635static int test_array @<:@1 - 2 * !(((long) (sizeof (unsigned char))) <= $ac_mid)@:>@; 6636test_array @<:@0@:>@ = 0 6637 6638 ; 6639 return 0; 6640} 6641_ACEOF 6642rm -f conftest.$ac_objext 6643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6644 (eval $ac_compile) 2>conftest.er1 6645 ac_status=$? 6646 grep -v '^ *+' conftest.er1 >conftest.err 6647 rm -f conftest.er1 6648 cat conftest.err >&5 6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6650 (exit $ac_status); } && 6651 { ac_try='test -z "$ac_c_werror_flag" 6652 || test ! -s conftest.err' 6653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6654 (eval $ac_try) 2>&5 6655 ac_status=$? 6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6657 (exit $ac_status); }; } && 6658 { ac_try='test -s conftest.$ac_objext' 6659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6660 (eval $ac_try) 2>&5 6661 ac_status=$? 6662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6663 (exit $ac_status); }; }; then 6664 ac_hi=$ac_mid; break 6665else 6666 echo "$as_me: failed program was:" >&5 6667sed 's/^/| /' conftest.$ac_ext >&5 6668 6669ac_lo=`expr $ac_mid + 1` 6670 if test $ac_lo -le $ac_mid; then 6671 ac_lo= ac_hi= 6672 break 6673 fi 6674 ac_mid=`expr 2 '*' $ac_mid + 1` 6675fi 6676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6677 done 6678else 6679 echo "$as_me: failed program was:" >&5 6680sed 's/^/| /' conftest.$ac_ext >&5 6681 6682cat >conftest.$ac_ext <<_ACEOF 6683/* confdefs.h. */ 6684_ACEOF 6685cat confdefs.h >>conftest.$ac_ext 6686cat >>conftest.$ac_ext <<_ACEOF 6687/* end confdefs.h. */ 6688$ac_includes_default 6689int 6690main () 6691{ 6692static int test_array @<:@1 - 2 * !(((long) (sizeof (unsigned char))) < 0)@:>@; 6693test_array @<:@0@:>@ = 0 6694 6695 ; 6696 return 0; 6697} 6698_ACEOF 6699rm -f conftest.$ac_objext 6700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6701 (eval $ac_compile) 2>conftest.er1 6702 ac_status=$? 6703 grep -v '^ *+' conftest.er1 >conftest.err 6704 rm -f conftest.er1 6705 cat conftest.err >&5 6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6707 (exit $ac_status); } && 6708 { ac_try='test -z "$ac_c_werror_flag" 6709 || test ! -s conftest.err' 6710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6711 (eval $ac_try) 2>&5 6712 ac_status=$? 6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6714 (exit $ac_status); }; } && 6715 { ac_try='test -s conftest.$ac_objext' 6716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6717 (eval $ac_try) 2>&5 6718 ac_status=$? 6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6720 (exit $ac_status); }; }; then 6721 ac_hi=-1 ac_mid=-1 6722 while :; do 6723 cat >conftest.$ac_ext <<_ACEOF 6724/* confdefs.h. */ 6725_ACEOF 6726cat confdefs.h >>conftest.$ac_ext 6727cat >>conftest.$ac_ext <<_ACEOF 6728/* end confdefs.h. */ 6729$ac_includes_default 6730int 6731main () 6732{ 6733static int test_array @<:@1 - 2 * !(((long) (sizeof (unsigned char))) >= $ac_mid)@:>@; 6734test_array @<:@0@:>@ = 0 6735 6736 ; 6737 return 0; 6738} 6739_ACEOF 6740rm -f conftest.$ac_objext 6741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6742 (eval $ac_compile) 2>conftest.er1 6743 ac_status=$? 6744 grep -v '^ *+' conftest.er1 >conftest.err 6745 rm -f conftest.er1 6746 cat conftest.err >&5 6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6748 (exit $ac_status); } && 6749 { ac_try='test -z "$ac_c_werror_flag" 6750 || test ! -s conftest.err' 6751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6752 (eval $ac_try) 2>&5 6753 ac_status=$? 6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6755 (exit $ac_status); }; } && 6756 { ac_try='test -s conftest.$ac_objext' 6757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6758 (eval $ac_try) 2>&5 6759 ac_status=$? 6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6761 (exit $ac_status); }; }; then 6762 ac_lo=$ac_mid; break 6763else 6764 echo "$as_me: failed program was:" >&5 6765sed 's/^/| /' conftest.$ac_ext >&5 6766 6767ac_hi=`expr '(' $ac_mid ')' - 1` 6768 if test $ac_mid -le $ac_hi; then 6769 ac_lo= ac_hi= 6770 break 6771 fi 6772 ac_mid=`expr 2 '*' $ac_mid` 6773fi 6774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6775 done 6776else 6777 echo "$as_me: failed program was:" >&5 6778sed 's/^/| /' conftest.$ac_ext >&5 6779 6780ac_lo= ac_hi= 6781fi 6782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6783fi 6784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6785# Binary search between lo and hi bounds. 6786while test "x$ac_lo" != "x$ac_hi"; do 6787 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 6788 cat >conftest.$ac_ext <<_ACEOF 6789/* confdefs.h. */ 6790_ACEOF 6791cat confdefs.h >>conftest.$ac_ext 6792cat >>conftest.$ac_ext <<_ACEOF 6793/* end confdefs.h. */ 6794$ac_includes_default 6795int 6796main () 6797{ 6798static int test_array @<:@1 - 2 * !(((long) (sizeof (unsigned char))) <= $ac_mid)@:>@; 6799test_array @<:@0@:>@ = 0 6800 6801 ; 6802 return 0; 6803} 6804_ACEOF 6805rm -f conftest.$ac_objext 6806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6807 (eval $ac_compile) 2>conftest.er1 6808 ac_status=$? 6809 grep -v '^ *+' conftest.er1 >conftest.err 6810 rm -f conftest.er1 6811 cat conftest.err >&5 6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6813 (exit $ac_status); } && 6814 { ac_try='test -z "$ac_c_werror_flag" 6815 || test ! -s conftest.err' 6816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6817 (eval $ac_try) 2>&5 6818 ac_status=$? 6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6820 (exit $ac_status); }; } && 6821 { ac_try='test -s conftest.$ac_objext' 6822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6823 (eval $ac_try) 2>&5 6824 ac_status=$? 6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6826 (exit $ac_status); }; }; then 6827 ac_hi=$ac_mid 6828else 6829 echo "$as_me: failed program was:" >&5 6830sed 's/^/| /' conftest.$ac_ext >&5 6831 6832ac_lo=`expr '(' $ac_mid ')' + 1` 6833fi 6834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6835done 6836case $ac_lo in 6837?*) ac_cv_sizeof_unsigned_char=$ac_lo;; 6838'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char), 77 6839See \`config.log' for more details." >&5 6840echo "$as_me: error: cannot compute sizeof (unsigned char), 77 6841See \`config.log' for more details." >&2;} 6842 { (exit 1); exit 1; }; } ;; 6843esac 6844else 6845 if test "$cross_compiling" = yes; then 6846 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 6847See \`config.log' for more details." >&5 6848echo "$as_me: error: cannot run test program while cross compiling 6849See \`config.log' for more details." >&2;} 6850 { (exit 1); exit 1; }; } 6851else 6852 cat >conftest.$ac_ext <<_ACEOF 6853/* confdefs.h. */ 6854_ACEOF 6855cat confdefs.h >>conftest.$ac_ext 6856cat >>conftest.$ac_ext <<_ACEOF 6857/* end confdefs.h. */ 6858$ac_includes_default 6859long longval () { return (long) (sizeof (unsigned char)); } 6860unsigned long ulongval () { return (long) (sizeof (unsigned char)); } 6861@%:@include <stdio.h> 6862@%:@include <stdlib.h> 6863int 6864main () 6865{ 6866 6867 FILE *f = fopen ("conftest.val", "w"); 6868 if (! f) 6869 exit (1); 6870 if (((long) (sizeof (unsigned char))) < 0) 6871 { 6872 long i = longval (); 6873 if (i != ((long) (sizeof (unsigned char)))) 6874 exit (1); 6875 fprintf (f, "%ld\n", i); 6876 } 6877 else 6878 { 6879 unsigned long i = ulongval (); 6880 if (i != ((long) (sizeof (unsigned char)))) 6881 exit (1); 6882 fprintf (f, "%lu\n", i); 6883 } 6884 exit (ferror (f) || fclose (f) != 0); 6885 6886 ; 6887 return 0; 6888} 6889_ACEOF 6890rm -f conftest$ac_exeext 6891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6892 (eval $ac_link) 2>&5 6893 ac_status=$? 6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6895 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6897 (eval $ac_try) 2>&5 6898 ac_status=$? 6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6900 (exit $ac_status); }; }; then 6901 ac_cv_sizeof_unsigned_char=`cat conftest.val` 6902else 6903 echo "$as_me: program exited with status $ac_status" >&5 6904echo "$as_me: failed program was:" >&5 6905sed 's/^/| /' conftest.$ac_ext >&5 6906 6907( exit $ac_status ) 6908{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char), 77 6909See \`config.log' for more details." >&5 6910echo "$as_me: error: cannot compute sizeof (unsigned char), 77 6911See \`config.log' for more details." >&2;} 6912 { (exit 1); exit 1; }; } 6913fi 6914rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6915fi 6916fi 6917rm -f conftest.val 6918else 6919 ac_cv_sizeof_unsigned_char=0 6920fi 6921fi 6922echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5 6923echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6 6924cat >>confdefs.h <<_ACEOF 6925@%:@define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char 6926_ACEOF 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937# Check whether --enable-shared or --disable-shared was given. 6938if test "${enable_shared+set}" = set; then 6939 enableval="$enable_shared" 6940 p=${PACKAGE-default} 6941 case $enableval in 6942 yes) enable_shared=yes ;; 6943 no) enable_shared=no ;; 6944 *) 6945 enable_shared=no 6946 # Look at the argument we got. We use all the common list separators. 6947 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6948 for pkg in $enableval; do 6949 IFS="$lt_save_ifs" 6950 if test "X$pkg" = "X$p"; then 6951 enable_shared=yes 6952 fi 6953 done 6954 IFS="$lt_save_ifs" 6955 ;; 6956 esac 6957else 6958 enable_shared=yes 6959fi; 6960 6961# Check whether --enable-fast-install or --disable-fast-install was given. 6962if test "${enable_fast_install+set}" = set; then 6963 enableval="$enable_fast_install" 6964 p=${PACKAGE-default} 6965 case $enableval in 6966 yes) enable_fast_install=yes ;; 6967 no) enable_fast_install=no ;; 6968 *) 6969 enable_fast_install=no 6970 # Look at the argument we got. We use all the common list separators. 6971 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6972 for pkg in $enableval; do 6973 IFS="$lt_save_ifs" 6974 if test "X$pkg" = "X$p"; then 6975 enable_fast_install=yes 6976 fi 6977 done 6978 IFS="$lt_save_ifs" 6979 ;; 6980 esac 6981else 6982 enable_fast_install=yes 6983fi; 6984 6985echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 6986echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 6987if test "${lt_cv_path_SED+set}" = set; then 6988 echo $ECHO_N "(cached) $ECHO_C" >&6 6989else 6990 # Loop through the user's path and test for sed and gsed. 6991# Then use that list of sed's as ones to test for truncation. 6992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6993for as_dir in $PATH 6994do 6995 IFS=$as_save_IFS 6996 test -z "$as_dir" && as_dir=. 6997 for lt_ac_prog in sed gsed; do 6998 for ac_exec_ext in '' $ac_executable_extensions; do 6999 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 7000 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 7001 fi 7002 done 7003 done 7004done 7005IFS=$as_save_IFS 7006lt_ac_max=0 7007lt_ac_count=0 7008# Add /usr/xpg4/bin/sed as it is typically found on Solaris 7009# along with /bin/sed that truncates output. 7010for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 7011 test ! -f $lt_ac_sed && continue 7012 cat /dev/null > conftest.in 7013 lt_ac_count=0 7014 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 7015 # Check for GNU sed and select it if it is found. 7016 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 7017 lt_cv_path_SED=$lt_ac_sed 7018 break 7019 fi 7020 while true; do 7021 cat conftest.in conftest.in >conftest.tmp 7022 mv conftest.tmp conftest.in 7023 cp conftest.in conftest.nl 7024 echo >>conftest.nl 7025 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 7026 cmp -s conftest.out conftest.nl || break 7027 # 10000 chars as input seems more than enough 7028 test $lt_ac_count -gt 10 && break 7029 lt_ac_count=`expr $lt_ac_count + 1` 7030 if test $lt_ac_count -gt $lt_ac_max; then 7031 lt_ac_max=$lt_ac_count 7032 lt_cv_path_SED=$lt_ac_sed 7033 fi 7034 done 7035done 7036 7037fi 7038 7039SED=$lt_cv_path_SED 7040 7041echo "$as_me:$LINENO: result: $SED" >&5 7042echo "${ECHO_T}$SED" >&6 7043 7044 7045# Check whether --with-gnu-ld or --without-gnu-ld was given. 7046if test "${with_gnu_ld+set}" = set; then 7047 withval="$with_gnu_ld" 7048 test "$withval" = no || with_gnu_ld=yes 7049else 7050 with_gnu_ld=no 7051fi; 7052ac_prog=ld 7053if test "$GCC" = yes; then 7054 # Check if gcc -print-prog-name=ld gives a path. 7055 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 7056echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 7057 case $host in 7058 *-*-mingw*) 7059 # gcc leaves a trailing carriage return which upsets mingw 7060 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7061 *) 7062 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7063 esac 7064 case $ac_prog in 7065 # Accept absolute paths. 7066 [\\/]* | ?:[\\/]*) 7067 re_direlt='/[^/][^/]*/\.\./' 7068 # Canonicalize the pathname of ld 7069 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 7070 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 7071 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 7072 done 7073 test -z "$LD" && LD="$ac_prog" 7074 ;; 7075 "") 7076 # If it fails, then pretend we aren't using GCC. 7077 ac_prog=ld 7078 ;; 7079 *) 7080 # If it is relative, then search for the first ld in PATH. 7081 with_gnu_ld=unknown 7082 ;; 7083 esac 7084elif test "$with_gnu_ld" = yes; then 7085 echo "$as_me:$LINENO: checking for GNU ld" >&5 7086echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 7087else 7088 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 7089echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 7090fi 7091if test "${lt_cv_path_LD+set}" = set; then 7092 echo $ECHO_N "(cached) $ECHO_C" >&6 7093else 7094 if test -z "$LD"; then 7095 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7096 for ac_dir in $PATH; do 7097 IFS="$lt_save_ifs" 7098 test -z "$ac_dir" && ac_dir=. 7099 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7100 lt_cv_path_LD="$ac_dir/$ac_prog" 7101 # Check to see if the program is GNU ld. I'd rather use --version, 7102 # but apparently some variants of GNU ld only accept -v. 7103 # Break only if it was the GNU/non-GNU ld that we prefer. 7104 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 7105 *GNU* | *'with BFD'*) 7106 test "$with_gnu_ld" != no && break 7107 ;; 7108 *) 7109 test "$with_gnu_ld" != yes && break 7110 ;; 7111 esac 7112 fi 7113 done 7114 IFS="$lt_save_ifs" 7115else 7116 lt_cv_path_LD="$LD" # Let the user override the test with a path. 7117fi 7118fi 7119 7120LD="$lt_cv_path_LD" 7121if test -n "$LD"; then 7122 echo "$as_me:$LINENO: result: $LD" >&5 7123echo "${ECHO_T}$LD" >&6 7124else 7125 echo "$as_me:$LINENO: result: no" >&5 7126echo "${ECHO_T}no" >&6 7127fi 7128test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 7129echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 7130 { (exit 1); exit 1; }; } 7131echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 7132echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 7133if test "${lt_cv_prog_gnu_ld+set}" = set; then 7134 echo $ECHO_N "(cached) $ECHO_C" >&6 7135else 7136 # I'd rather use --version here, but apparently some GNU lds only accept -v. 7137case `$LD -v 2>&1 </dev/null` in 7138*GNU* | *'with BFD'*) 7139 lt_cv_prog_gnu_ld=yes 7140 ;; 7141*) 7142 lt_cv_prog_gnu_ld=no 7143 ;; 7144esac 7145fi 7146echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 7147echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 7148with_gnu_ld=$lt_cv_prog_gnu_ld 7149 7150 7151echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 7152echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 7153if test "${lt_cv_ld_reload_flag+set}" = set; then 7154 echo $ECHO_N "(cached) $ECHO_C" >&6 7155else 7156 lt_cv_ld_reload_flag='-r' 7157fi 7158echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 7159echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 7160reload_flag=$lt_cv_ld_reload_flag 7161case $reload_flag in 7162"" | " "*) ;; 7163*) reload_flag=" $reload_flag" ;; 7164esac 7165reload_cmds='$LD$reload_flag -o $output$reload_objs' 7166case $host_os in 7167 darwin*) 7168 if test "$GCC" = yes; then 7169 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 7170 else 7171 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7172 fi 7173 ;; 7174esac 7175 7176echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 7177echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 7178if test "${lt_cv_path_NM+set}" = set; then 7179 echo $ECHO_N "(cached) $ECHO_C" >&6 7180else 7181 if test -n "$NM"; then 7182 # Let the user override the test. 7183 lt_cv_path_NM="$NM" 7184else 7185 lt_nm_to_check="${ac_tool_prefix}nm" 7186 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 7187 lt_nm_to_check="$lt_nm_to_check nm" 7188 fi 7189 for lt_tmp_nm in $lt_nm_to_check; do 7190 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7191 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 7192 IFS="$lt_save_ifs" 7193 test -z "$ac_dir" && ac_dir=. 7194 tmp_nm="$ac_dir/$lt_tmp_nm" 7195 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 7196 # Check to see if the nm accepts a BSD-compat flag. 7197 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 7198 # nm: unknown option "B" ignored 7199 # Tru64's nm complains that /dev/null is an invalid object file 7200 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 7201 */dev/null* | *'Invalid file or object type'*) 7202 lt_cv_path_NM="$tmp_nm -B" 7203 break 7204 ;; 7205 *) 7206 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 7207 */dev/null*) 7208 lt_cv_path_NM="$tmp_nm -p" 7209 break 7210 ;; 7211 *) 7212 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7213 continue # so that we can try to find one that supports BSD flags 7214 ;; 7215 esac 7216 ;; 7217 esac 7218 fi 7219 done 7220 IFS="$lt_save_ifs" 7221 done 7222 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 7223fi 7224fi 7225echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 7226echo "${ECHO_T}$lt_cv_path_NM" >&6 7227NM="$lt_cv_path_NM" 7228 7229echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 7230echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 7231if test "${lt_cv_deplibs_check_method+set}" = set; then 7232 echo $ECHO_N "(cached) $ECHO_C" >&6 7233else 7234 lt_cv_file_magic_cmd='$MAGIC_CMD' 7235lt_cv_file_magic_test_file= 7236lt_cv_deplibs_check_method='unknown' 7237# Need to set the preceding variable on all platforms that support 7238# interlibrary dependencies. 7239# 'none' -- dependencies not supported. 7240# `unknown' -- same as none, but documents that we really don't know. 7241# 'pass_all' -- all dependencies passed with no checks. 7242# 'test_compile' -- check by making test program. 7243# 'file_magic [[regex]]' -- check by looking for files in library path 7244# which responds to the $file_magic_cmd with a given extended regex. 7245# If you have `file' or equivalent on your system and you're not sure 7246# whether `pass_all' will *always* work, you probably want this one. 7247 7248case $host_os in 7249aix4* | aix5*) 7250 lt_cv_deplibs_check_method=pass_all 7251 ;; 7252 7253beos*) 7254 lt_cv_deplibs_check_method=pass_all 7255 ;; 7256 7257bsdi[45]*) 7258 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7259 lt_cv_file_magic_cmd='/usr/bin/file -L' 7260 lt_cv_file_magic_test_file=/shlib/libc.so 7261 ;; 7262 7263cygwin*) 7264 # func_win32_libid is a shell function defined in ltmain.sh 7265 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7266 lt_cv_file_magic_cmd='func_win32_libid' 7267 ;; 7268 7269mingw* | pw32*) 7270 # Base MSYS/MinGW do not provide the 'file' command needed by 7271 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 7272 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 7273 lt_cv_file_magic_cmd='$OBJDUMP -f' 7274 ;; 7275 7276darwin* | rhapsody*) 7277 lt_cv_deplibs_check_method=pass_all 7278 ;; 7279 7280freebsd* | kfreebsd*-gnu | dragonfly*) 7281 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 7282 case $host_cpu in 7283 i*86 ) 7284 # Not sure whether the presence of OpenBSD here was a mistake. 7285 # Let's accept both of them until this is cleared up. 7286 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7287 lt_cv_file_magic_cmd=/usr/bin/file 7288 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7289 ;; 7290 esac 7291 else 7292 lt_cv_deplibs_check_method=pass_all 7293 fi 7294 ;; 7295 7296gnu*) 7297 lt_cv_deplibs_check_method=pass_all 7298 ;; 7299 7300hpux10.20* | hpux11*) 7301 lt_cv_file_magic_cmd=/usr/bin/file 7302 case $host_cpu in 7303 ia64*) 7304 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7305 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7306 ;; 7307 hppa*64*) 7308 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]' 7309 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7310 ;; 7311 *) 7312 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 7313 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7314 ;; 7315 esac 7316 ;; 7317 7318interix3*) 7319 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7320 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7321 ;; 7322 7323irix5* | irix6* | nonstopux*) 7324 case $LD in 7325 *-32|*"-32 ") libmagic=32-bit;; 7326 *-n32|*"-n32 ") libmagic=N32;; 7327 *-64|*"-64 ") libmagic=64-bit;; 7328 *) libmagic=never-match;; 7329 esac 7330 lt_cv_deplibs_check_method=pass_all 7331 ;; 7332 7333# This must be Linux ELF. 7334linux*) 7335 lt_cv_deplibs_check_method=pass_all 7336 ;; 7337 7338netbsd*) 7339 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 7340 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7341 else 7342 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7343 fi 7344 ;; 7345 7346newos6*) 7347 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7348 lt_cv_file_magic_cmd=/usr/bin/file 7349 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7350 ;; 7351 7352nto-qnx*) 7353 lt_cv_deplibs_check_method=unknown 7354 ;; 7355 7356openbsd*) 7357 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7358 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7359 else 7360 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7361 fi 7362 ;; 7363 7364osf3* | osf4* | osf5*) 7365 lt_cv_deplibs_check_method=pass_all 7366 ;; 7367 7368solaris*) 7369 lt_cv_deplibs_check_method=pass_all 7370 ;; 7371 7372sysv4 | sysv4.3*) 7373 case $host_vendor in 7374 motorola) 7375 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]' 7376 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7377 ;; 7378 ncr) 7379 lt_cv_deplibs_check_method=pass_all 7380 ;; 7381 sequent) 7382 lt_cv_file_magic_cmd='/bin/file' 7383 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7384 ;; 7385 sni) 7386 lt_cv_file_magic_cmd='/bin/file' 7387 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7388 lt_cv_file_magic_test_file=/lib/libc.so 7389 ;; 7390 siemens) 7391 lt_cv_deplibs_check_method=pass_all 7392 ;; 7393 pc) 7394 lt_cv_deplibs_check_method=pass_all 7395 ;; 7396 esac 7397 ;; 7398 7399sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7400 lt_cv_deplibs_check_method=pass_all 7401 ;; 7402esac 7403 7404fi 7405echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 7406echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 7407file_magic_cmd=$lt_cv_file_magic_cmd 7408deplibs_check_method=$lt_cv_deplibs_check_method 7409test -z "$deplibs_check_method" && deplibs_check_method=unknown 7410 7411 7412 7413 7414# If no C compiler was specified, use CC. 7415LTCC=${LTCC-"$CC"} 7416 7417# If no C compiler flags were specified, use CFLAGS. 7418LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7419 7420# Allow CC to be a program name with arguments. 7421compiler=$CC 7422 7423# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 7424if test "${enable_libtool_lock+set}" = set; then 7425 enableval="$enable_libtool_lock" 7426 7427fi; 7428test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7429 7430# Some flags need to be propagated to the compiler or linker for good 7431# libtool support. 7432case $host in 7433ia64-*-hpux*) 7434 # Find out which ABI we are using. 7435 echo 'int i;' > conftest.$ac_ext 7436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7437 (eval $ac_compile) 2>&5 7438 ac_status=$? 7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7440 (exit $ac_status); }; then 7441 case `/usr/bin/file conftest.$ac_objext` in 7442 *ELF-32*) 7443 HPUX_IA64_MODE="32" 7444 ;; 7445 *ELF-64*) 7446 HPUX_IA64_MODE="64" 7447 ;; 7448 esac 7449 fi 7450 rm -rf conftest* 7451 ;; 7452*-*-irix6*) 7453 # Find out which ABI we are using. 7454 echo '#line __oline__ "configure"' > conftest.$ac_ext 7455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7456 (eval $ac_compile) 2>&5 7457 ac_status=$? 7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7459 (exit $ac_status); }; then 7460 if test "$lt_cv_prog_gnu_ld" = yes; then 7461 case `/usr/bin/file conftest.$ac_objext` in 7462 *32-bit*) 7463 LD="${LD-ld} -melf32bsmip" 7464 ;; 7465 *N32*) 7466 LD="${LD-ld} -melf32bmipn32" 7467 ;; 7468 *64-bit*) 7469 LD="${LD-ld} -melf64bmip" 7470 ;; 7471 esac 7472 else 7473 case `/usr/bin/file conftest.$ac_objext` in 7474 *32-bit*) 7475 LD="${LD-ld} -32" 7476 ;; 7477 *N32*) 7478 LD="${LD-ld} -n32" 7479 ;; 7480 *64-bit*) 7481 LD="${LD-ld} -64" 7482 ;; 7483 esac 7484 fi 7485 fi 7486 rm -rf conftest* 7487 ;; 7488 7489x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 7490 # Find out which ABI we are using. 7491 echo 'int i;' > conftest.$ac_ext 7492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7493 (eval $ac_compile) 2>&5 7494 ac_status=$? 7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7496 (exit $ac_status); }; then 7497 case `/usr/bin/file conftest.o` in 7498 *32-bit*) 7499 case $host in 7500 x86_64-*linux*) 7501 LD="${LD-ld} -m elf_i386" 7502 ;; 7503 ppc64-*linux*|powerpc64-*linux*) 7504 LD="${LD-ld} -m elf32ppclinux" 7505 ;; 7506 s390x-*linux*) 7507 LD="${LD-ld} -m elf_s390" 7508 ;; 7509 sparc64-*linux*) 7510 LD="${LD-ld} -m elf32_sparc" 7511 ;; 7512 esac 7513 ;; 7514 *64-bit*) 7515 case $host in 7516 x86_64-*linux*) 7517 LD="${LD-ld} -m elf_x86_64" 7518 ;; 7519 ppc*-*linux*|powerpc*-*linux*) 7520 LD="${LD-ld} -m elf64ppc" 7521 ;; 7522 s390*-*linux*) 7523 LD="${LD-ld} -m elf64_s390" 7524 ;; 7525 sparc*-*linux*) 7526 LD="${LD-ld} -m elf64_sparc" 7527 ;; 7528 esac 7529 ;; 7530 esac 7531 fi 7532 rm -rf conftest* 7533 ;; 7534 7535*-*-sco3.2v5*) 7536 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7537 SAVE_CFLAGS="$CFLAGS" 7538 CFLAGS="$CFLAGS -belf" 7539 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 7540echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 7541if test "${lt_cv_cc_needs_belf+set}" = set; then 7542 echo $ECHO_N "(cached) $ECHO_C" >&6 7543else 7544 ac_ext=c 7545ac_cpp='$CPP $CPPFLAGS' 7546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7548ac_compiler_gnu=$ac_cv_c_compiler_gnu 7549 7550 cat >conftest.$ac_ext <<_ACEOF 7551/* confdefs.h. */ 7552_ACEOF 7553cat confdefs.h >>conftest.$ac_ext 7554cat >>conftest.$ac_ext <<_ACEOF 7555/* end confdefs.h. */ 7556 7557int 7558main () 7559{ 7560 7561 ; 7562 return 0; 7563} 7564_ACEOF 7565rm -f conftest.$ac_objext conftest$ac_exeext 7566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7567 (eval $ac_link) 2>conftest.er1 7568 ac_status=$? 7569 grep -v '^ *+' conftest.er1 >conftest.err 7570 rm -f conftest.er1 7571 cat conftest.err >&5 7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7573 (exit $ac_status); } && 7574 { ac_try='test -z "$ac_c_werror_flag" 7575 || test ! -s conftest.err' 7576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7577 (eval $ac_try) 2>&5 7578 ac_status=$? 7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7580 (exit $ac_status); }; } && 7581 { ac_try='test -s conftest$ac_exeext' 7582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7583 (eval $ac_try) 2>&5 7584 ac_status=$? 7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7586 (exit $ac_status); }; }; then 7587 lt_cv_cc_needs_belf=yes 7588else 7589 echo "$as_me: failed program was:" >&5 7590sed 's/^/| /' conftest.$ac_ext >&5 7591 7592lt_cv_cc_needs_belf=no 7593fi 7594rm -f conftest.err conftest.$ac_objext \ 7595 conftest$ac_exeext conftest.$ac_ext 7596 ac_ext=c 7597ac_cpp='$CPP $CPPFLAGS' 7598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7600ac_compiler_gnu=$ac_cv_c_compiler_gnu 7601 7602fi 7603echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 7604echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 7605 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7606 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7607 CFLAGS="$SAVE_CFLAGS" 7608 fi 7609 ;; 7610sparc*-*solaris*) 7611 # Find out which ABI we are using. 7612 echo 'int i;' > conftest.$ac_ext 7613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7614 (eval $ac_compile) 2>&5 7615 ac_status=$? 7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7617 (exit $ac_status); }; then 7618 case `/usr/bin/file conftest.o` in 7619 *64-bit*) 7620 case $lt_cv_prog_gnu_ld in 7621 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7622 *) LD="${LD-ld} -64" ;; 7623 esac 7624 ;; 7625 esac 7626 fi 7627 rm -rf conftest* 7628 ;; 7629 7630*-*-cygwin* | *-*-mingw* | *-*-pw32*) 7631 if test -n "$ac_tool_prefix"; then 7632 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7633set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7634echo "$as_me:$LINENO: checking for $ac_word" >&5 7635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7636if test "${ac_cv_prog_DLLTOOL+set}" = set; then 7637 echo $ECHO_N "(cached) $ECHO_C" >&6 7638else 7639 if test -n "$DLLTOOL"; then 7640 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7641else 7642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7643for as_dir in $PATH 7644do 7645 IFS=$as_save_IFS 7646 test -z "$as_dir" && as_dir=. 7647 for ac_exec_ext in '' $ac_executable_extensions; do 7648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7649 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7651 break 2 7652 fi 7653done 7654done 7655 7656fi 7657fi 7658DLLTOOL=$ac_cv_prog_DLLTOOL 7659if test -n "$DLLTOOL"; then 7660 echo "$as_me:$LINENO: result: $DLLTOOL" >&5 7661echo "${ECHO_T}$DLLTOOL" >&6 7662else 7663 echo "$as_me:$LINENO: result: no" >&5 7664echo "${ECHO_T}no" >&6 7665fi 7666 7667fi 7668if test -z "$ac_cv_prog_DLLTOOL"; then 7669 ac_ct_DLLTOOL=$DLLTOOL 7670 # Extract the first word of "dlltool", so it can be a program name with args. 7671set dummy dlltool; ac_word=$2 7672echo "$as_me:$LINENO: checking for $ac_word" >&5 7673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7674if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then 7675 echo $ECHO_N "(cached) $ECHO_C" >&6 7676else 7677 if test -n "$ac_ct_DLLTOOL"; then 7678 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7679else 7680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7681for as_dir in $PATH 7682do 7683 IFS=$as_save_IFS 7684 test -z "$as_dir" && as_dir=. 7685 for ac_exec_ext in '' $ac_executable_extensions; do 7686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7687 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7689 break 2 7690 fi 7691done 7692done 7693 7694 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false" 7695fi 7696fi 7697ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7698if test -n "$ac_ct_DLLTOOL"; then 7699 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 7700echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 7701else 7702 echo "$as_me:$LINENO: result: no" >&5 7703echo "${ECHO_T}no" >&6 7704fi 7705 7706 DLLTOOL=$ac_ct_DLLTOOL 7707else 7708 DLLTOOL="$ac_cv_prog_DLLTOOL" 7709fi 7710 7711 if test -n "$ac_tool_prefix"; then 7712 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 7713set dummy ${ac_tool_prefix}as; ac_word=$2 7714echo "$as_me:$LINENO: checking for $ac_word" >&5 7715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7716if test "${ac_cv_prog_AS+set}" = set; then 7717 echo $ECHO_N "(cached) $ECHO_C" >&6 7718else 7719 if test -n "$AS"; then 7720 ac_cv_prog_AS="$AS" # Let the user override the test. 7721else 7722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7723for as_dir in $PATH 7724do 7725 IFS=$as_save_IFS 7726 test -z "$as_dir" && as_dir=. 7727 for ac_exec_ext in '' $ac_executable_extensions; do 7728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7729 ac_cv_prog_AS="${ac_tool_prefix}as" 7730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7731 break 2 7732 fi 7733done 7734done 7735 7736fi 7737fi 7738AS=$ac_cv_prog_AS 7739if test -n "$AS"; then 7740 echo "$as_me:$LINENO: result: $AS" >&5 7741echo "${ECHO_T}$AS" >&6 7742else 7743 echo "$as_me:$LINENO: result: no" >&5 7744echo "${ECHO_T}no" >&6 7745fi 7746 7747fi 7748if test -z "$ac_cv_prog_AS"; then 7749 ac_ct_AS=$AS 7750 # Extract the first word of "as", so it can be a program name with args. 7751set dummy as; ac_word=$2 7752echo "$as_me:$LINENO: checking for $ac_word" >&5 7753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7754if test "${ac_cv_prog_ac_ct_AS+set}" = set; then 7755 echo $ECHO_N "(cached) $ECHO_C" >&6 7756else 7757 if test -n "$ac_ct_AS"; then 7758 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 7759else 7760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7761for as_dir in $PATH 7762do 7763 IFS=$as_save_IFS 7764 test -z "$as_dir" && as_dir=. 7765 for ac_exec_ext in '' $ac_executable_extensions; do 7766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7767 ac_cv_prog_ac_ct_AS="as" 7768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7769 break 2 7770 fi 7771done 7772done 7773 7774 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false" 7775fi 7776fi 7777ac_ct_AS=$ac_cv_prog_ac_ct_AS 7778if test -n "$ac_ct_AS"; then 7779 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 7780echo "${ECHO_T}$ac_ct_AS" >&6 7781else 7782 echo "$as_me:$LINENO: result: no" >&5 7783echo "${ECHO_T}no" >&6 7784fi 7785 7786 AS=$ac_ct_AS 7787else 7788 AS="$ac_cv_prog_AS" 7789fi 7790 7791 if test -n "$ac_tool_prefix"; then 7792 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7793set dummy ${ac_tool_prefix}objdump; ac_word=$2 7794echo "$as_me:$LINENO: checking for $ac_word" >&5 7795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7796if test "${ac_cv_prog_OBJDUMP+set}" = set; then 7797 echo $ECHO_N "(cached) $ECHO_C" >&6 7798else 7799 if test -n "$OBJDUMP"; then 7800 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7801else 7802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7803for as_dir in $PATH 7804do 7805 IFS=$as_save_IFS 7806 test -z "$as_dir" && as_dir=. 7807 for ac_exec_ext in '' $ac_executable_extensions; do 7808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7809 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7811 break 2 7812 fi 7813done 7814done 7815 7816fi 7817fi 7818OBJDUMP=$ac_cv_prog_OBJDUMP 7819if test -n "$OBJDUMP"; then 7820 echo "$as_me:$LINENO: result: $OBJDUMP" >&5 7821echo "${ECHO_T}$OBJDUMP" >&6 7822else 7823 echo "$as_me:$LINENO: result: no" >&5 7824echo "${ECHO_T}no" >&6 7825fi 7826 7827fi 7828if test -z "$ac_cv_prog_OBJDUMP"; then 7829 ac_ct_OBJDUMP=$OBJDUMP 7830 # Extract the first word of "objdump", so it can be a program name with args. 7831set dummy objdump; ac_word=$2 7832echo "$as_me:$LINENO: checking for $ac_word" >&5 7833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7834if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 7835 echo $ECHO_N "(cached) $ECHO_C" >&6 7836else 7837 if test -n "$ac_ct_OBJDUMP"; then 7838 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7839else 7840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7841for as_dir in $PATH 7842do 7843 IFS=$as_save_IFS 7844 test -z "$as_dir" && as_dir=. 7845 for ac_exec_ext in '' $ac_executable_extensions; do 7846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7847 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7849 break 2 7850 fi 7851done 7852done 7853 7854 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false" 7855fi 7856fi 7857ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7858if test -n "$ac_ct_OBJDUMP"; then 7859 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 7860echo "${ECHO_T}$ac_ct_OBJDUMP" >&6 7861else 7862 echo "$as_me:$LINENO: result: no" >&5 7863echo "${ECHO_T}no" >&6 7864fi 7865 7866 OBJDUMP=$ac_ct_OBJDUMP 7867else 7868 OBJDUMP="$ac_cv_prog_OBJDUMP" 7869fi 7870 7871 ;; 7872 7873esac 7874 7875need_locks="$enable_libtool_lock" 7876 7877 7878 7879for ac_header in dlfcn.h 7880do 7881as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7882if eval "test \"\${$as_ac_Header+set}\" = set"; then 7883 echo "$as_me:$LINENO: checking for $ac_header" >&5 7884echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7885if eval "test \"\${$as_ac_Header+set}\" = set"; then 7886 echo $ECHO_N "(cached) $ECHO_C" >&6 7887fi 7888echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7889echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7890else 7891 # Is the header compilable? 7892echo "$as_me:$LINENO: checking $ac_header usability" >&5 7893echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 7894cat >conftest.$ac_ext <<_ACEOF 7895/* confdefs.h. */ 7896_ACEOF 7897cat confdefs.h >>conftest.$ac_ext 7898cat >>conftest.$ac_ext <<_ACEOF 7899/* end confdefs.h. */ 7900$ac_includes_default 7901@%:@include <$ac_header> 7902_ACEOF 7903rm -f conftest.$ac_objext 7904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7905 (eval $ac_compile) 2>conftest.er1 7906 ac_status=$? 7907 grep -v '^ *+' conftest.er1 >conftest.err 7908 rm -f conftest.er1 7909 cat conftest.err >&5 7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7911 (exit $ac_status); } && 7912 { ac_try='test -z "$ac_c_werror_flag" 7913 || test ! -s conftest.err' 7914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7915 (eval $ac_try) 2>&5 7916 ac_status=$? 7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7918 (exit $ac_status); }; } && 7919 { ac_try='test -s conftest.$ac_objext' 7920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7921 (eval $ac_try) 2>&5 7922 ac_status=$? 7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7924 (exit $ac_status); }; }; then 7925 ac_header_compiler=yes 7926else 7927 echo "$as_me: failed program was:" >&5 7928sed 's/^/| /' conftest.$ac_ext >&5 7929 7930ac_header_compiler=no 7931fi 7932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7933echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7934echo "${ECHO_T}$ac_header_compiler" >&6 7935 7936# Is the header present? 7937echo "$as_me:$LINENO: checking $ac_header presence" >&5 7938echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 7939cat >conftest.$ac_ext <<_ACEOF 7940/* confdefs.h. */ 7941_ACEOF 7942cat confdefs.h >>conftest.$ac_ext 7943cat >>conftest.$ac_ext <<_ACEOF 7944/* end confdefs.h. */ 7945@%:@include <$ac_header> 7946_ACEOF 7947if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7949 ac_status=$? 7950 grep -v '^ *+' conftest.er1 >conftest.err 7951 rm -f conftest.er1 7952 cat conftest.err >&5 7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7954 (exit $ac_status); } >/dev/null; then 7955 if test -s conftest.err; then 7956 ac_cpp_err=$ac_c_preproc_warn_flag 7957 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 7958 else 7959 ac_cpp_err= 7960 fi 7961else 7962 ac_cpp_err=yes 7963fi 7964if test -z "$ac_cpp_err"; then 7965 ac_header_preproc=yes 7966else 7967 echo "$as_me: failed program was:" >&5 7968sed 's/^/| /' conftest.$ac_ext >&5 7969 7970 ac_header_preproc=no 7971fi 7972rm -f conftest.err conftest.$ac_ext 7973echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7974echo "${ECHO_T}$ac_header_preproc" >&6 7975 7976# So? What about this header? 7977case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7978 yes:no: ) 7979 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7980echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7981 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7982echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7983 ac_header_preproc=yes 7984 ;; 7985 no:yes:* ) 7986 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7987echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7988 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7989echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7990 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7991echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7992 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7993echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7995echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7996 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7997echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7998 ( 7999 cat <<\_ASBOX 8000@%:@@%:@ ------------------------------------------ @%:@@%:@ 8001@%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@ 8002@%:@@%:@ ------------------------------------------ @%:@@%:@ 8003_ASBOX 8004 ) | 8005 sed "s/^/$as_me: WARNING: /" >&2 8006 ;; 8007esac 8008echo "$as_me:$LINENO: checking for $ac_header" >&5 8009echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8010if eval "test \"\${$as_ac_Header+set}\" = set"; then 8011 echo $ECHO_N "(cached) $ECHO_C" >&6 8012else 8013 eval "$as_ac_Header=\$ac_header_preproc" 8014fi 8015echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8016echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8017 8018fi 8019if test `eval echo '${'$as_ac_Header'}'` = yes; then 8020 cat >>confdefs.h <<_ACEOF 8021@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8022_ACEOF 8023 8024fi 8025 8026done 8027 8028ac_ext=cc 8029ac_cpp='$CXXCPP $CPPFLAGS' 8030ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8031ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8032ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8033if test -n "$ac_tool_prefix"; then 8034 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 8035 do 8036 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8037set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8038echo "$as_me:$LINENO: checking for $ac_word" >&5 8039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8040if test "${ac_cv_prog_CXX+set}" = set; then 8041 echo $ECHO_N "(cached) $ECHO_C" >&6 8042else 8043 if test -n "$CXX"; then 8044 ac_cv_prog_CXX="$CXX" # Let the user override the test. 8045else 8046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8047for as_dir in $PATH 8048do 8049 IFS=$as_save_IFS 8050 test -z "$as_dir" && as_dir=. 8051 for ac_exec_ext in '' $ac_executable_extensions; do 8052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8053 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 8054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8055 break 2 8056 fi 8057done 8058done 8059 8060fi 8061fi 8062CXX=$ac_cv_prog_CXX 8063if test -n "$CXX"; then 8064 echo "$as_me:$LINENO: result: $CXX" >&5 8065echo "${ECHO_T}$CXX" >&6 8066else 8067 echo "$as_me:$LINENO: result: no" >&5 8068echo "${ECHO_T}no" >&6 8069fi 8070 8071 test -n "$CXX" && break 8072 done 8073fi 8074if test -z "$CXX"; then 8075 ac_ct_CXX=$CXX 8076 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 8077do 8078 # Extract the first word of "$ac_prog", so it can be a program name with args. 8079set dummy $ac_prog; ac_word=$2 8080echo "$as_me:$LINENO: checking for $ac_word" >&5 8081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8082if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 8083 echo $ECHO_N "(cached) $ECHO_C" >&6 8084else 8085 if test -n "$ac_ct_CXX"; then 8086 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 8087else 8088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8089for as_dir in $PATH 8090do 8091 IFS=$as_save_IFS 8092 test -z "$as_dir" && as_dir=. 8093 for ac_exec_ext in '' $ac_executable_extensions; do 8094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8095 ac_cv_prog_ac_ct_CXX="$ac_prog" 8096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8097 break 2 8098 fi 8099done 8100done 8101 8102fi 8103fi 8104ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 8105if test -n "$ac_ct_CXX"; then 8106 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 8107echo "${ECHO_T}$ac_ct_CXX" >&6 8108else 8109 echo "$as_me:$LINENO: result: no" >&5 8110echo "${ECHO_T}no" >&6 8111fi 8112 8113 test -n "$ac_ct_CXX" && break 8114done 8115test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 8116 8117 CXX=$ac_ct_CXX 8118fi 8119 8120 8121# Provide some information about the compiler. 8122echo "$as_me:$LINENO:" \ 8123 "checking for C++ compiler version" >&5 8124ac_compiler=`set X $ac_compile; echo $2` 8125{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 8126 (eval $ac_compiler --version </dev/null >&5) 2>&5 8127 ac_status=$? 8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8129 (exit $ac_status); } 8130{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 8131 (eval $ac_compiler -v </dev/null >&5) 2>&5 8132 ac_status=$? 8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8134 (exit $ac_status); } 8135{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 8136 (eval $ac_compiler -V </dev/null >&5) 2>&5 8137 ac_status=$? 8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8139 (exit $ac_status); } 8140 8141echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 8142echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 8143if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 8144 echo $ECHO_N "(cached) $ECHO_C" >&6 8145else 8146 cat >conftest.$ac_ext <<_ACEOF 8147/* confdefs.h. */ 8148_ACEOF 8149cat confdefs.h >>conftest.$ac_ext 8150cat >>conftest.$ac_ext <<_ACEOF 8151/* end confdefs.h. */ 8152 8153int 8154main () 8155{ 8156#ifndef __GNUC__ 8157 choke me 8158#endif 8159 8160 ; 8161 return 0; 8162} 8163_ACEOF 8164rm -f conftest.$ac_objext 8165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8166 (eval $ac_compile) 2>conftest.er1 8167 ac_status=$? 8168 grep -v '^ *+' conftest.er1 >conftest.err 8169 rm -f conftest.er1 8170 cat conftest.err >&5 8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8172 (exit $ac_status); } && 8173 { ac_try='test -z "$ac_cxx_werror_flag" 8174 || test ! -s conftest.err' 8175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8176 (eval $ac_try) 2>&5 8177 ac_status=$? 8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8179 (exit $ac_status); }; } && 8180 { ac_try='test -s conftest.$ac_objext' 8181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8182 (eval $ac_try) 2>&5 8183 ac_status=$? 8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8185 (exit $ac_status); }; }; then 8186 ac_compiler_gnu=yes 8187else 8188 echo "$as_me: failed program was:" >&5 8189sed 's/^/| /' conftest.$ac_ext >&5 8190 8191ac_compiler_gnu=no 8192fi 8193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8194ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 8195 8196fi 8197echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 8198echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 8199GXX=`test $ac_compiler_gnu = yes && echo yes` 8200ac_test_CXXFLAGS=${CXXFLAGS+set} 8201ac_save_CXXFLAGS=$CXXFLAGS 8202CXXFLAGS="-g" 8203echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 8204echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 8205if test "${ac_cv_prog_cxx_g+set}" = set; then 8206 echo $ECHO_N "(cached) $ECHO_C" >&6 8207else 8208 cat >conftest.$ac_ext <<_ACEOF 8209/* confdefs.h. */ 8210_ACEOF 8211cat confdefs.h >>conftest.$ac_ext 8212cat >>conftest.$ac_ext <<_ACEOF 8213/* end confdefs.h. */ 8214 8215int 8216main () 8217{ 8218 8219 ; 8220 return 0; 8221} 8222_ACEOF 8223rm -f conftest.$ac_objext 8224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8225 (eval $ac_compile) 2>conftest.er1 8226 ac_status=$? 8227 grep -v '^ *+' conftest.er1 >conftest.err 8228 rm -f conftest.er1 8229 cat conftest.err >&5 8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8231 (exit $ac_status); } && 8232 { ac_try='test -z "$ac_cxx_werror_flag" 8233 || test ! -s conftest.err' 8234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8235 (eval $ac_try) 2>&5 8236 ac_status=$? 8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8238 (exit $ac_status); }; } && 8239 { ac_try='test -s conftest.$ac_objext' 8240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8241 (eval $ac_try) 2>&5 8242 ac_status=$? 8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8244 (exit $ac_status); }; }; then 8245 ac_cv_prog_cxx_g=yes 8246else 8247 echo "$as_me: failed program was:" >&5 8248sed 's/^/| /' conftest.$ac_ext >&5 8249 8250ac_cv_prog_cxx_g=no 8251fi 8252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8253fi 8254echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 8255echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 8256if test "$ac_test_CXXFLAGS" = set; then 8257 CXXFLAGS=$ac_save_CXXFLAGS 8258elif test $ac_cv_prog_cxx_g = yes; then 8259 if test "$GXX" = yes; then 8260 CXXFLAGS="-g -O2" 8261 else 8262 CXXFLAGS="-g" 8263 fi 8264else 8265 if test "$GXX" = yes; then 8266 CXXFLAGS="-O2" 8267 else 8268 CXXFLAGS= 8269 fi 8270fi 8271for ac_declaration in \ 8272 '' \ 8273 'extern "C" void std::exit (int) throw (); using std::exit;' \ 8274 'extern "C" void std::exit (int); using std::exit;' \ 8275 'extern "C" void exit (int) throw ();' \ 8276 'extern "C" void exit (int);' \ 8277 'void exit (int);' 8278do 8279 cat >conftest.$ac_ext <<_ACEOF 8280/* confdefs.h. */ 8281_ACEOF 8282cat confdefs.h >>conftest.$ac_ext 8283cat >>conftest.$ac_ext <<_ACEOF 8284/* end confdefs.h. */ 8285$ac_declaration 8286@%:@include <stdlib.h> 8287int 8288main () 8289{ 8290exit (42); 8291 ; 8292 return 0; 8293} 8294_ACEOF 8295rm -f conftest.$ac_objext 8296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8297 (eval $ac_compile) 2>conftest.er1 8298 ac_status=$? 8299 grep -v '^ *+' conftest.er1 >conftest.err 8300 rm -f conftest.er1 8301 cat conftest.err >&5 8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8303 (exit $ac_status); } && 8304 { ac_try='test -z "$ac_cxx_werror_flag" 8305 || test ! -s conftest.err' 8306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8307 (eval $ac_try) 2>&5 8308 ac_status=$? 8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8310 (exit $ac_status); }; } && 8311 { ac_try='test -s conftest.$ac_objext' 8312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8313 (eval $ac_try) 2>&5 8314 ac_status=$? 8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8316 (exit $ac_status); }; }; then 8317 : 8318else 8319 echo "$as_me: failed program was:" >&5 8320sed 's/^/| /' conftest.$ac_ext >&5 8321 8322continue 8323fi 8324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8325 cat >conftest.$ac_ext <<_ACEOF 8326/* confdefs.h. */ 8327_ACEOF 8328cat confdefs.h >>conftest.$ac_ext 8329cat >>conftest.$ac_ext <<_ACEOF 8330/* end confdefs.h. */ 8331$ac_declaration 8332int 8333main () 8334{ 8335exit (42); 8336 ; 8337 return 0; 8338} 8339_ACEOF 8340rm -f conftest.$ac_objext 8341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8342 (eval $ac_compile) 2>conftest.er1 8343 ac_status=$? 8344 grep -v '^ *+' conftest.er1 >conftest.err 8345 rm -f conftest.er1 8346 cat conftest.err >&5 8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8348 (exit $ac_status); } && 8349 { ac_try='test -z "$ac_cxx_werror_flag" 8350 || test ! -s conftest.err' 8351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8352 (eval $ac_try) 2>&5 8353 ac_status=$? 8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8355 (exit $ac_status); }; } && 8356 { ac_try='test -s conftest.$ac_objext' 8357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8358 (eval $ac_try) 2>&5 8359 ac_status=$? 8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8361 (exit $ac_status); }; }; then 8362 break 8363else 8364 echo "$as_me: failed program was:" >&5 8365sed 's/^/| /' conftest.$ac_ext >&5 8366 8367fi 8368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8369done 8370rm -f conftest* 8371if test -n "$ac_declaration"; then 8372 echo '#ifdef __cplusplus' >>confdefs.h 8373 echo $ac_declaration >>confdefs.h 8374 echo '#endif' >>confdefs.h 8375fi 8376 8377ac_ext=cc 8378ac_cpp='$CXXCPP $CPPFLAGS' 8379ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8380ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8381ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8382 8383depcc="$CXX" am_compiler_list= 8384 8385echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 8386echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 8387if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 8388 echo $ECHO_N "(cached) $ECHO_C" >&6 8389else 8390 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 8391 # We make a subdir and do the tests there. Otherwise we can end up 8392 # making bogus files that we don't know about and never remove. For 8393 # instance it was reported that on HP-UX the gcc test will end up 8394 # making a dummy file named `D' -- because `-MD' means `put the output 8395 # in D'. 8396 mkdir conftest.dir 8397 # Copy depcomp to subdir because otherwise we won't find it if we're 8398 # using a relative directory. 8399 cp "$am_depcomp" conftest.dir 8400 cd conftest.dir 8401 # We will build objects and dependencies in a subdirectory because 8402 # it helps to detect inapplicable dependency modes. For instance 8403 # both Tru64's cc and ICC support -MD to output dependencies as a 8404 # side effect of compilation, but ICC will put the dependencies in 8405 # the current directory while Tru64 will put them in the object 8406 # directory. 8407 mkdir sub 8408 8409 am_cv_CXX_dependencies_compiler_type=none 8410 if test "$am_compiler_list" = ""; then 8411 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 8412 fi 8413 for depmode in $am_compiler_list; do 8414 # Setup a source with many dependencies, because some compilers 8415 # like to wrap large dependency lists on column 80 (with \), and 8416 # we should not choose a depcomp mode which is confused by this. 8417 # 8418 # We need to recreate these files for each test, as the compiler may 8419 # overwrite some of them when testing with obscure command lines. 8420 # This happens at least with the AIX C compiler. 8421 : > sub/conftest.c 8422 for i in 1 2 3 4 5 6; do 8423 echo '#include "conftst'$i'.h"' >> sub/conftest.c 8424 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 8425 # Solaris 8's {/usr,}/bin/sh. 8426 touch sub/conftst$i.h 8427 done 8428 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 8429 8430 case $depmode in 8431 nosideeffect) 8432 # after this tag, mechanisms are not by side-effect, so they'll 8433 # only be used when explicitly requested 8434 if test "x$enable_dependency_tracking" = xyes; then 8435 continue 8436 else 8437 break 8438 fi 8439 ;; 8440 none) break ;; 8441 esac 8442 # We check with `-c' and `-o' for the sake of the "dashmstdout" 8443 # mode. It turns out that the SunPro C++ compiler does not properly 8444 # handle `-M -o', and we need to detect this. 8445 if depmode=$depmode \ 8446 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 8447 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 8448 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 8449 >/dev/null 2>conftest.err && 8450 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 8451 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 8452 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 8453 # icc doesn't choke on unknown options, it will just issue warnings 8454 # or remarks (even with -Werror). So we grep stderr for any message 8455 # that says an option was ignored or not supported. 8456 # When given -MP, icc 7.0 and 7.1 complain thusly: 8457 # icc: Command line warning: ignoring option '-M'; no argument required 8458 # The diagnosis changed in icc 8.0: 8459 # icc: Command line remark: option '-MP' not supported 8460 if (grep 'ignoring option' conftest.err || 8461 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 8462 am_cv_CXX_dependencies_compiler_type=$depmode 8463 break 8464 fi 8465 fi 8466 done 8467 8468 cd .. 8469 rm -rf conftest.dir 8470else 8471 am_cv_CXX_dependencies_compiler_type=none 8472fi 8473 8474fi 8475echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 8476echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 8477CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 8478 8479 8480 8481if 8482 test "x$enable_dependency_tracking" != xno \ 8483 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 8484 am__fastdepCXX_TRUE= 8485 am__fastdepCXX_FALSE='#' 8486else 8487 am__fastdepCXX_TRUE='#' 8488 am__fastdepCXX_FALSE= 8489fi 8490 8491 8492 8493 8494if test -n "$CXX" && ( test "X$CXX" != "Xno" && 8495 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 8496 (test "X$CXX" != "Xg++"))) ; then 8497 ac_ext=cc 8498ac_cpp='$CXXCPP $CPPFLAGS' 8499ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8500ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8501ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8502echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 8503echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 8504if test -z "$CXXCPP"; then 8505 if test "${ac_cv_prog_CXXCPP+set}" = set; then 8506 echo $ECHO_N "(cached) $ECHO_C" >&6 8507else 8508 # Double quotes because CXXCPP needs to be expanded 8509 for CXXCPP in "$CXX -E" "/lib/cpp" 8510 do 8511 ac_preproc_ok=false 8512for ac_cxx_preproc_warn_flag in '' yes 8513do 8514 # Use a header file that comes with gcc, so configuring glibc 8515 # with a fresh cross-compiler works. 8516 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8517 # <limits.h> exists even on freestanding compilers. 8518 # On the NeXT, cc -E runs the code through the compiler's parser, 8519 # not just through cpp. "Syntax error" is here to catch this case. 8520 cat >conftest.$ac_ext <<_ACEOF 8521/* confdefs.h. */ 8522_ACEOF 8523cat confdefs.h >>conftest.$ac_ext 8524cat >>conftest.$ac_ext <<_ACEOF 8525/* end confdefs.h. */ 8526@%:@ifdef __STDC__ 8527@%:@ include <limits.h> 8528@%:@else 8529@%:@ include <assert.h> 8530@%:@endif 8531 Syntax error 8532_ACEOF 8533if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8535 ac_status=$? 8536 grep -v '^ *+' conftest.er1 >conftest.err 8537 rm -f conftest.er1 8538 cat conftest.err >&5 8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8540 (exit $ac_status); } >/dev/null; then 8541 if test -s conftest.err; then 8542 ac_cpp_err=$ac_cxx_preproc_warn_flag 8543 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 8544 else 8545 ac_cpp_err= 8546 fi 8547else 8548 ac_cpp_err=yes 8549fi 8550if test -z "$ac_cpp_err"; then 8551 : 8552else 8553 echo "$as_me: failed program was:" >&5 8554sed 's/^/| /' conftest.$ac_ext >&5 8555 8556 # Broken: fails on valid input. 8557continue 8558fi 8559rm -f conftest.err conftest.$ac_ext 8560 8561 # OK, works on sane cases. Now check whether non-existent headers 8562 # can be detected and how. 8563 cat >conftest.$ac_ext <<_ACEOF 8564/* confdefs.h. */ 8565_ACEOF 8566cat confdefs.h >>conftest.$ac_ext 8567cat >>conftest.$ac_ext <<_ACEOF 8568/* end confdefs.h. */ 8569@%:@include <ac_nonexistent.h> 8570_ACEOF 8571if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8572 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8573 ac_status=$? 8574 grep -v '^ *+' conftest.er1 >conftest.err 8575 rm -f conftest.er1 8576 cat conftest.err >&5 8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8578 (exit $ac_status); } >/dev/null; then 8579 if test -s conftest.err; then 8580 ac_cpp_err=$ac_cxx_preproc_warn_flag 8581 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 8582 else 8583 ac_cpp_err= 8584 fi 8585else 8586 ac_cpp_err=yes 8587fi 8588if test -z "$ac_cpp_err"; then 8589 # Broken: success on invalid input. 8590continue 8591else 8592 echo "$as_me: failed program was:" >&5 8593sed 's/^/| /' conftest.$ac_ext >&5 8594 8595 # Passes both tests. 8596ac_preproc_ok=: 8597break 8598fi 8599rm -f conftest.err conftest.$ac_ext 8600 8601done 8602# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8603rm -f conftest.err conftest.$ac_ext 8604if $ac_preproc_ok; then 8605 break 8606fi 8607 8608 done 8609 ac_cv_prog_CXXCPP=$CXXCPP 8610 8611fi 8612 CXXCPP=$ac_cv_prog_CXXCPP 8613else 8614 ac_cv_prog_CXXCPP=$CXXCPP 8615fi 8616echo "$as_me:$LINENO: result: $CXXCPP" >&5 8617echo "${ECHO_T}$CXXCPP" >&6 8618ac_preproc_ok=false 8619for ac_cxx_preproc_warn_flag in '' yes 8620do 8621 # Use a header file that comes with gcc, so configuring glibc 8622 # with a fresh cross-compiler works. 8623 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8624 # <limits.h> exists even on freestanding compilers. 8625 # On the NeXT, cc -E runs the code through the compiler's parser, 8626 # not just through cpp. "Syntax error" is here to catch this case. 8627 cat >conftest.$ac_ext <<_ACEOF 8628/* confdefs.h. */ 8629_ACEOF 8630cat confdefs.h >>conftest.$ac_ext 8631cat >>conftest.$ac_ext <<_ACEOF 8632/* end confdefs.h. */ 8633@%:@ifdef __STDC__ 8634@%:@ include <limits.h> 8635@%:@else 8636@%:@ include <assert.h> 8637@%:@endif 8638 Syntax error 8639_ACEOF 8640if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8642 ac_status=$? 8643 grep -v '^ *+' conftest.er1 >conftest.err 8644 rm -f conftest.er1 8645 cat conftest.err >&5 8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8647 (exit $ac_status); } >/dev/null; then 8648 if test -s conftest.err; then 8649 ac_cpp_err=$ac_cxx_preproc_warn_flag 8650 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 8651 else 8652 ac_cpp_err= 8653 fi 8654else 8655 ac_cpp_err=yes 8656fi 8657if test -z "$ac_cpp_err"; then 8658 : 8659else 8660 echo "$as_me: failed program was:" >&5 8661sed 's/^/| /' conftest.$ac_ext >&5 8662 8663 # Broken: fails on valid input. 8664continue 8665fi 8666rm -f conftest.err conftest.$ac_ext 8667 8668 # OK, works on sane cases. Now check whether non-existent headers 8669 # can be detected and how. 8670 cat >conftest.$ac_ext <<_ACEOF 8671/* confdefs.h. */ 8672_ACEOF 8673cat confdefs.h >>conftest.$ac_ext 8674cat >>conftest.$ac_ext <<_ACEOF 8675/* end confdefs.h. */ 8676@%:@include <ac_nonexistent.h> 8677_ACEOF 8678if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8680 ac_status=$? 8681 grep -v '^ *+' conftest.er1 >conftest.err 8682 rm -f conftest.er1 8683 cat conftest.err >&5 8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8685 (exit $ac_status); } >/dev/null; then 8686 if test -s conftest.err; then 8687 ac_cpp_err=$ac_cxx_preproc_warn_flag 8688 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 8689 else 8690 ac_cpp_err= 8691 fi 8692else 8693 ac_cpp_err=yes 8694fi 8695if test -z "$ac_cpp_err"; then 8696 # Broken: success on invalid input. 8697continue 8698else 8699 echo "$as_me: failed program was:" >&5 8700sed 's/^/| /' conftest.$ac_ext >&5 8701 8702 # Passes both tests. 8703ac_preproc_ok=: 8704break 8705fi 8706rm -f conftest.err conftest.$ac_ext 8707 8708done 8709# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8710rm -f conftest.err conftest.$ac_ext 8711if $ac_preproc_ok; then 8712 : 8713else 8714 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 8715See \`config.log' for more details." >&5 8716echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 8717See \`config.log' for more details." >&2;} 8718 { (exit 1); exit 1; }; } 8719fi 8720 8721ac_ext=cc 8722ac_cpp='$CXXCPP $CPPFLAGS' 8723ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8724ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8725ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8726 8727fi 8728 8729 8730ac_ext=f 8731ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 8732ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8733ac_compiler_gnu=$ac_cv_f77_compiler_gnu 8734if test -n "$ac_tool_prefix"; then 8735 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 8736 do 8737 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8738set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8739echo "$as_me:$LINENO: checking for $ac_word" >&5 8740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8741if test "${ac_cv_prog_F77+set}" = set; then 8742 echo $ECHO_N "(cached) $ECHO_C" >&6 8743else 8744 if test -n "$F77"; then 8745 ac_cv_prog_F77="$F77" # Let the user override the test. 8746else 8747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8748for as_dir in $PATH 8749do 8750 IFS=$as_save_IFS 8751 test -z "$as_dir" && as_dir=. 8752 for ac_exec_ext in '' $ac_executable_extensions; do 8753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8754 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 8755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8756 break 2 8757 fi 8758done 8759done 8760 8761fi 8762fi 8763F77=$ac_cv_prog_F77 8764if test -n "$F77"; then 8765 echo "$as_me:$LINENO: result: $F77" >&5 8766echo "${ECHO_T}$F77" >&6 8767else 8768 echo "$as_me:$LINENO: result: no" >&5 8769echo "${ECHO_T}no" >&6 8770fi 8771 8772 test -n "$F77" && break 8773 done 8774fi 8775if test -z "$F77"; then 8776 ac_ct_F77=$F77 8777 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 8778do 8779 # Extract the first word of "$ac_prog", so it can be a program name with args. 8780set dummy $ac_prog; ac_word=$2 8781echo "$as_me:$LINENO: checking for $ac_word" >&5 8782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8783if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 8784 echo $ECHO_N "(cached) $ECHO_C" >&6 8785else 8786 if test -n "$ac_ct_F77"; then 8787 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 8788else 8789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8790for as_dir in $PATH 8791do 8792 IFS=$as_save_IFS 8793 test -z "$as_dir" && as_dir=. 8794 for ac_exec_ext in '' $ac_executable_extensions; do 8795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8796 ac_cv_prog_ac_ct_F77="$ac_prog" 8797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8798 break 2 8799 fi 8800done 8801done 8802 8803fi 8804fi 8805ac_ct_F77=$ac_cv_prog_ac_ct_F77 8806if test -n "$ac_ct_F77"; then 8807 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 8808echo "${ECHO_T}$ac_ct_F77" >&6 8809else 8810 echo "$as_me:$LINENO: result: no" >&5 8811echo "${ECHO_T}no" >&6 8812fi 8813 8814 test -n "$ac_ct_F77" && break 8815done 8816 8817 F77=$ac_ct_F77 8818fi 8819 8820 8821# Provide some information about the compiler. 8822echo "$as_me:__oline__:" \ 8823 "checking for Fortran 77 compiler version" >&5 8824ac_compiler=`set X $ac_compile; echo $2` 8825{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 8826 (eval $ac_compiler --version </dev/null >&5) 2>&5 8827 ac_status=$? 8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8829 (exit $ac_status); } 8830{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 8831 (eval $ac_compiler -v </dev/null >&5) 2>&5 8832 ac_status=$? 8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8834 (exit $ac_status); } 8835{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 8836 (eval $ac_compiler -V </dev/null >&5) 2>&5 8837 ac_status=$? 8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8839 (exit $ac_status); } 8840rm -f a.out 8841 8842# If we don't use `.F' as extension, the preprocessor is not run on the 8843# input file. (Note that this only needs to work for GNU compilers.) 8844ac_save_ext=$ac_ext 8845ac_ext=F 8846echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 8847echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 8848if test "${ac_cv_f77_compiler_gnu+set}" = set; then 8849 echo $ECHO_N "(cached) $ECHO_C" >&6 8850else 8851 cat >conftest.$ac_ext <<_ACEOF 8852 program main 8853#ifndef __GNUC__ 8854 choke me 8855#endif 8856 8857 end 8858_ACEOF 8859rm -f conftest.$ac_objext 8860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8861 (eval $ac_compile) 2>conftest.er1 8862 ac_status=$? 8863 grep -v '^ *+' conftest.er1 >conftest.err 8864 rm -f conftest.er1 8865 cat conftest.err >&5 8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8867 (exit $ac_status); } && 8868 { ac_try='test -z "$ac_f77_werror_flag" 8869 || test ! -s conftest.err' 8870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8871 (eval $ac_try) 2>&5 8872 ac_status=$? 8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8874 (exit $ac_status); }; } && 8875 { ac_try='test -s conftest.$ac_objext' 8876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8877 (eval $ac_try) 2>&5 8878 ac_status=$? 8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8880 (exit $ac_status); }; }; then 8881 ac_compiler_gnu=yes 8882else 8883 echo "$as_me: failed program was:" >&5 8884sed 's/^/| /' conftest.$ac_ext >&5 8885 8886ac_compiler_gnu=no 8887fi 8888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8889ac_cv_f77_compiler_gnu=$ac_compiler_gnu 8890 8891fi 8892echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 8893echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 8894ac_ext=$ac_save_ext 8895ac_test_FFLAGS=${FFLAGS+set} 8896ac_save_FFLAGS=$FFLAGS 8897FFLAGS= 8898echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 8899echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 8900if test "${ac_cv_prog_f77_g+set}" = set; then 8901 echo $ECHO_N "(cached) $ECHO_C" >&6 8902else 8903 FFLAGS=-g 8904cat >conftest.$ac_ext <<_ACEOF 8905 program main 8906 8907 end 8908_ACEOF 8909rm -f conftest.$ac_objext 8910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8911 (eval $ac_compile) 2>conftest.er1 8912 ac_status=$? 8913 grep -v '^ *+' conftest.er1 >conftest.err 8914 rm -f conftest.er1 8915 cat conftest.err >&5 8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8917 (exit $ac_status); } && 8918 { ac_try='test -z "$ac_f77_werror_flag" 8919 || test ! -s conftest.err' 8920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8921 (eval $ac_try) 2>&5 8922 ac_status=$? 8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8924 (exit $ac_status); }; } && 8925 { ac_try='test -s conftest.$ac_objext' 8926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8927 (eval $ac_try) 2>&5 8928 ac_status=$? 8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8930 (exit $ac_status); }; }; then 8931 ac_cv_prog_f77_g=yes 8932else 8933 echo "$as_me: failed program was:" >&5 8934sed 's/^/| /' conftest.$ac_ext >&5 8935 8936ac_cv_prog_f77_g=no 8937fi 8938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8939 8940fi 8941echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 8942echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 8943if test "$ac_test_FFLAGS" = set; then 8944 FFLAGS=$ac_save_FFLAGS 8945elif test $ac_cv_prog_f77_g = yes; then 8946 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 8947 FFLAGS="-g -O2" 8948 else 8949 FFLAGS="-g" 8950 fi 8951else 8952 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 8953 FFLAGS="-O2" 8954 else 8955 FFLAGS= 8956 fi 8957fi 8958 8959G77=`test $ac_compiler_gnu = yes && echo yes` 8960ac_ext=c 8961ac_cpp='$CPP $CPPFLAGS' 8962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8964ac_compiler_gnu=$ac_cv_c_compiler_gnu 8965 8966 8967 8968# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 8969 8970# find the maximum length of command line arguments 8971echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 8972echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 8973if test "${lt_cv_sys_max_cmd_len+set}" = set; then 8974 echo $ECHO_N "(cached) $ECHO_C" >&6 8975else 8976 i=0 8977 teststring="ABCD" 8978 8979 case $build_os in 8980 msdosdjgpp*) 8981 # On DJGPP, this test can blow up pretty badly due to problems in libc 8982 # (any single argument exceeding 2000 bytes causes a buffer overrun 8983 # during glob expansion). Even if it were fixed, the result of this 8984 # check would be larger than it should be. 8985 lt_cv_sys_max_cmd_len=12288; # 12K is about right 8986 ;; 8987 8988 gnu*) 8989 # Under GNU Hurd, this test is not required because there is 8990 # no limit to the length of command line arguments. 8991 # Libtool will interpret -1 as no limit whatsoever 8992 lt_cv_sys_max_cmd_len=-1; 8993 ;; 8994 8995 cygwin* | mingw*) 8996 # On Win9x/ME, this test blows up -- it succeeds, but takes 8997 # about 5 minutes as the teststring grows exponentially. 8998 # Worse, since 9x/ME are not pre-emptively multitasking, 8999 # you end up with a "frozen" computer, even though with patience 9000 # the test eventually succeeds (with a max line length of 256k). 9001 # Instead, let's just punt: use the minimum linelength reported by 9002 # all of the supported platforms: 8192 (on NT/2K/XP). 9003 lt_cv_sys_max_cmd_len=8192; 9004 ;; 9005 9006 amigaos*) 9007 # On AmigaOS with pdksh, this test takes hours, literally. 9008 # So we just punt and use a minimum line length of 8192. 9009 lt_cv_sys_max_cmd_len=8192; 9010 ;; 9011 9012 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 9013 # This has been around since 386BSD, at least. Likely further. 9014 if test -x /sbin/sysctl; then 9015 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 9016 elif test -x /usr/sbin/sysctl; then 9017 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 9018 else 9019 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 9020 fi 9021 # And add a safety zone 9022 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 9023 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 9024 ;; 9025 9026 interix*) 9027 # We know the value 262144 and hardcode it with a safety zone (like BSD) 9028 lt_cv_sys_max_cmd_len=196608 9029 ;; 9030 9031 osf*) 9032 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 9033 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 9034 # nice to cause kernel panics so lets avoid the loop below. 9035 # First set a reasonable default. 9036 lt_cv_sys_max_cmd_len=16384 9037 # 9038 if test -x /sbin/sysconfig; then 9039 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 9040 *1*) lt_cv_sys_max_cmd_len=-1 ;; 9041 esac 9042 fi 9043 ;; 9044 sco3.2v5*) 9045 lt_cv_sys_max_cmd_len=102400 9046 ;; 9047 sysv5* | sco5v6* | sysv4.2uw2*) 9048 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 9049 if test -n "$kargmax"; then 9050 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 9051 else 9052 lt_cv_sys_max_cmd_len=32768 9053 fi 9054 ;; 9055 *) 9056 # If test is not a shell built-in, we'll probably end up computing a 9057 # maximum length that is only half of the actual maximum length, but 9058 # we can't tell. 9059 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 9060 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 9061 = "XX$teststring") >/dev/null 2>&1 && 9062 new_result=`expr "X$teststring" : ".*" 2>&1` && 9063 lt_cv_sys_max_cmd_len=$new_result && 9064 test $i != 17 # 1/2 MB should be enough 9065 do 9066 i=`expr $i + 1` 9067 teststring=$teststring$teststring 9068 done 9069 teststring= 9070 # Add a significant safety factor because C++ compilers can tack on massive 9071 # amounts of additional arguments before passing them to the linker. 9072 # It appears as though 1/2 is a usable value. 9073 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 9074 ;; 9075 esac 9076 9077fi 9078 9079if test -n $lt_cv_sys_max_cmd_len ; then 9080 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 9081echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 9082else 9083 echo "$as_me:$LINENO: result: none" >&5 9084echo "${ECHO_T}none" >&6 9085fi 9086 9087 9088 9089 9090# Check for command to grab the raw symbol name followed by C symbol from nm. 9091echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 9092echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 9093if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 9094 echo $ECHO_N "(cached) $ECHO_C" >&6 9095else 9096 9097# These are sane defaults that work on at least a few old systems. 9098# [They come from Ultrix. What could be older than Ultrix?!! ;)] 9099 9100# Character class describing NM global symbol codes. 9101symcode='[BCDEGRST]' 9102 9103# Regexp to match symbols that can be accessed directly from C. 9104sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9105 9106# Transform an extracted symbol line into a proper C declaration 9107lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 9108 9109# Transform an extracted symbol line into symbol name and symbol address 9110lt_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'" 9111 9112# Define system-specific variables. 9113case $host_os in 9114aix*) 9115 symcode='[BCDT]' 9116 ;; 9117cygwin* | mingw* | pw32*) 9118 symcode='[ABCDGISTW]' 9119 ;; 9120hpux*) # Its linker distinguishes data from code symbols 9121 if test "$host_cpu" = ia64; then 9122 symcode='[ABCDEGRST]' 9123 fi 9124 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9125 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'" 9126 ;; 9127linux*) 9128 if test "$host_cpu" = ia64; then 9129 symcode='[ABCDGIRSTW]' 9130 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9131 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'" 9132 fi 9133 ;; 9134irix* | nonstopux*) 9135 symcode='[BCDEGRST]' 9136 ;; 9137osf*) 9138 symcode='[BCDEGQRST]' 9139 ;; 9140solaris*) 9141 symcode='[BDRT]' 9142 ;; 9143sco3.2v5*) 9144 symcode='[DT]' 9145 ;; 9146sysv4.2uw2*) 9147 symcode='[DT]' 9148 ;; 9149sysv5* | sco5v6* | unixware* | OpenUNIX*) 9150 symcode='[ABDT]' 9151 ;; 9152sysv4) 9153 symcode='[DFNSTU]' 9154 ;; 9155esac 9156 9157# Handle CRLF in mingw tool chain 9158opt_cr= 9159case $build_os in 9160mingw*) 9161 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9162 ;; 9163esac 9164 9165# If we're using GNU nm, then use its standard symbol codes. 9166case `$NM -V 2>&1` in 9167*GNU* | *'with BFD'*) 9168 symcode='[ABCDGIRSTW]' ;; 9169esac 9170 9171# Try without a prefix undercore, then with it. 9172for ac_symprfx in "" "_"; do 9173 9174 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9175 symxfrm="\\1 $ac_symprfx\\2 \\2" 9176 9177 # Write the raw and C identifiers. 9178 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9179 9180 # Check to see that the pipe works correctly. 9181 pipe_works=no 9182 9183 rm -f conftest* 9184 cat > conftest.$ac_ext <<EOF 9185#ifdef __cplusplus 9186extern "C" { 9187#endif 9188char nm_test_var; 9189void nm_test_func(){} 9190#ifdef __cplusplus 9191} 9192#endif 9193int main(){nm_test_var='a';nm_test_func();return(0);} 9194EOF 9195 9196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9197 (eval $ac_compile) 2>&5 9198 ac_status=$? 9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9200 (exit $ac_status); }; then 9201 # Now try to grab the symbols. 9202 nlist=conftest.nm 9203 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 9204 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 9205 ac_status=$? 9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9207 (exit $ac_status); } && test -s "$nlist"; then 9208 # Try sorting and uniquifying the output. 9209 if sort "$nlist" | uniq > "$nlist"T; then 9210 mv -f "$nlist"T "$nlist" 9211 else 9212 rm -f "$nlist"T 9213 fi 9214 9215 # Make sure that we snagged all the symbols we need. 9216 if grep ' nm_test_var$' "$nlist" >/dev/null; then 9217 if grep ' nm_test_func$' "$nlist" >/dev/null; then 9218 cat <<EOF > conftest.$ac_ext 9219#ifdef __cplusplus 9220extern "C" { 9221#endif 9222 9223EOF 9224 # Now generate the symbol file. 9225 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 9226 9227 cat <<EOF >> conftest.$ac_ext 9228#if defined (__STDC__) && __STDC__ 9229# define lt_ptr_t void * 9230#else 9231# define lt_ptr_t char * 9232# define const 9233#endif 9234 9235/* The mapping between symbol names and symbols. */ 9236const struct { 9237 const char *name; 9238 lt_ptr_t address; 9239} 9240lt_preloaded_symbols[] = 9241{ 9242EOF 9243 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 9244 cat <<\EOF >> conftest.$ac_ext 9245 {0, (lt_ptr_t) 0} 9246}; 9247 9248#ifdef __cplusplus 9249} 9250#endif 9251EOF 9252 # Now try linking the two files. 9253 mv conftest.$ac_objext conftstm.$ac_objext 9254 lt_save_LIBS="$LIBS" 9255 lt_save_CFLAGS="$CFLAGS" 9256 LIBS="conftstm.$ac_objext" 9257 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9259 (eval $ac_link) 2>&5 9260 ac_status=$? 9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9262 (exit $ac_status); } && test -s conftest${ac_exeext}; then 9263 pipe_works=yes 9264 fi 9265 LIBS="$lt_save_LIBS" 9266 CFLAGS="$lt_save_CFLAGS" 9267 else 9268 echo "cannot find nm_test_func in $nlist" >&5 9269 fi 9270 else 9271 echo "cannot find nm_test_var in $nlist" >&5 9272 fi 9273 else 9274 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9275 fi 9276 else 9277 echo "$progname: failed program was:" >&5 9278 cat conftest.$ac_ext >&5 9279 fi 9280 rm -f conftest* conftst* 9281 9282 # Do not use the global_symbol_pipe unless it works. 9283 if test "$pipe_works" = yes; then 9284 break 9285 else 9286 lt_cv_sys_global_symbol_pipe= 9287 fi 9288done 9289 9290fi 9291 9292if test -z "$lt_cv_sys_global_symbol_pipe"; then 9293 lt_cv_sys_global_symbol_to_cdecl= 9294fi 9295if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9296 echo "$as_me:$LINENO: result: failed" >&5 9297echo "${ECHO_T}failed" >&6 9298else 9299 echo "$as_me:$LINENO: result: ok" >&5 9300echo "${ECHO_T}ok" >&6 9301fi 9302 9303echo "$as_me:$LINENO: checking for objdir" >&5 9304echo $ECHO_N "checking for objdir... $ECHO_C" >&6 9305if test "${lt_cv_objdir+set}" = set; then 9306 echo $ECHO_N "(cached) $ECHO_C" >&6 9307else 9308 rm -f .libs 2>/dev/null 9309mkdir .libs 2>/dev/null 9310if test -d .libs; then 9311 lt_cv_objdir=.libs 9312else 9313 # MS-DOS does not allow filenames that begin with a dot. 9314 lt_cv_objdir=_libs 9315fi 9316rmdir .libs 2>/dev/null 9317fi 9318echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 9319echo "${ECHO_T}$lt_cv_objdir" >&6 9320objdir=$lt_cv_objdir 9321 9322 9323 9324 9325 9326case $host_os in 9327aix3*) 9328 # AIX sometimes has problems with the GCC collect2 program. For some 9329 # reason, if we set the COLLECT_NAMES environment variable, the problems 9330 # vanish in a puff of smoke. 9331 if test "X${COLLECT_NAMES+set}" != Xset; then 9332 COLLECT_NAMES= 9333 export COLLECT_NAMES 9334 fi 9335 ;; 9336esac 9337 9338# Sed substitution that helps us do robust quoting. It backslashifies 9339# metacharacters that are still active within double-quoted strings. 9340Xsed='sed -e 1s/^X//' 9341sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 9342 9343# Same as above, but do not quote variable references. 9344double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 9345 9346# Sed substitution to delay expansion of an escaped shell variable in a 9347# double_quote_subst'ed string. 9348delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 9349 9350# Sed substitution to avoid accidental globbing in evaled expressions 9351no_glob_subst='s/\*/\\\*/g' 9352 9353# Constants: 9354rm="rm -f" 9355 9356# Global variables: 9357default_ofile=libtool 9358can_build_shared=yes 9359 9360# All known linkers require a `.a' archive for static linking (except MSVC, 9361# which needs '.lib'). 9362libext=a 9363ltmain="$ac_aux_dir/ltmain.sh" 9364ofile="$default_ofile" 9365with_gnu_ld="$lt_cv_prog_gnu_ld" 9366 9367if test -n "$ac_tool_prefix"; then 9368 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 9369set dummy ${ac_tool_prefix}ar; ac_word=$2 9370echo "$as_me:$LINENO: checking for $ac_word" >&5 9371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 9372if test "${ac_cv_prog_AR+set}" = set; then 9373 echo $ECHO_N "(cached) $ECHO_C" >&6 9374else 9375 if test -n "$AR"; then 9376 ac_cv_prog_AR="$AR" # Let the user override the test. 9377else 9378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9379for as_dir in $PATH 9380do 9381 IFS=$as_save_IFS 9382 test -z "$as_dir" && as_dir=. 9383 for ac_exec_ext in '' $ac_executable_extensions; do 9384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9385 ac_cv_prog_AR="${ac_tool_prefix}ar" 9386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9387 break 2 9388 fi 9389done 9390done 9391 9392fi 9393fi 9394AR=$ac_cv_prog_AR 9395if test -n "$AR"; then 9396 echo "$as_me:$LINENO: result: $AR" >&5 9397echo "${ECHO_T}$AR" >&6 9398else 9399 echo "$as_me:$LINENO: result: no" >&5 9400echo "${ECHO_T}no" >&6 9401fi 9402 9403fi 9404if test -z "$ac_cv_prog_AR"; then 9405 ac_ct_AR=$AR 9406 # Extract the first word of "ar", so it can be a program name with args. 9407set dummy ar; ac_word=$2 9408echo "$as_me:$LINENO: checking for $ac_word" >&5 9409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 9410if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 9411 echo $ECHO_N "(cached) $ECHO_C" >&6 9412else 9413 if test -n "$ac_ct_AR"; then 9414 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 9415else 9416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9417for as_dir in $PATH 9418do 9419 IFS=$as_save_IFS 9420 test -z "$as_dir" && as_dir=. 9421 for ac_exec_ext in '' $ac_executable_extensions; do 9422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9423 ac_cv_prog_ac_ct_AR="ar" 9424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9425 break 2 9426 fi 9427done 9428done 9429 9430 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 9431fi 9432fi 9433ac_ct_AR=$ac_cv_prog_ac_ct_AR 9434if test -n "$ac_ct_AR"; then 9435 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 9436echo "${ECHO_T}$ac_ct_AR" >&6 9437else 9438 echo "$as_me:$LINENO: result: no" >&5 9439echo "${ECHO_T}no" >&6 9440fi 9441 9442 AR=$ac_ct_AR 9443else 9444 AR="$ac_cv_prog_AR" 9445fi 9446 9447if test -n "$ac_tool_prefix"; then 9448 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 9449set dummy ${ac_tool_prefix}ranlib; ac_word=$2 9450echo "$as_me:$LINENO: checking for $ac_word" >&5 9451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 9452if test "${ac_cv_prog_RANLIB+set}" = set; then 9453 echo $ECHO_N "(cached) $ECHO_C" >&6 9454else 9455 if test -n "$RANLIB"; then 9456 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 9457else 9458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9459for as_dir in $PATH 9460do 9461 IFS=$as_save_IFS 9462 test -z "$as_dir" && as_dir=. 9463 for ac_exec_ext in '' $ac_executable_extensions; do 9464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9465 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 9466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9467 break 2 9468 fi 9469done 9470done 9471 9472fi 9473fi 9474RANLIB=$ac_cv_prog_RANLIB 9475if test -n "$RANLIB"; then 9476 echo "$as_me:$LINENO: result: $RANLIB" >&5 9477echo "${ECHO_T}$RANLIB" >&6 9478else 9479 echo "$as_me:$LINENO: result: no" >&5 9480echo "${ECHO_T}no" >&6 9481fi 9482 9483fi 9484if test -z "$ac_cv_prog_RANLIB"; then 9485 ac_ct_RANLIB=$RANLIB 9486 # Extract the first word of "ranlib", so it can be a program name with args. 9487set dummy ranlib; ac_word=$2 9488echo "$as_me:$LINENO: checking for $ac_word" >&5 9489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 9490if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 9491 echo $ECHO_N "(cached) $ECHO_C" >&6 9492else 9493 if test -n "$ac_ct_RANLIB"; then 9494 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 9495else 9496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9497for as_dir in $PATH 9498do 9499 IFS=$as_save_IFS 9500 test -z "$as_dir" && as_dir=. 9501 for ac_exec_ext in '' $ac_executable_extensions; do 9502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9503 ac_cv_prog_ac_ct_RANLIB="ranlib" 9504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9505 break 2 9506 fi 9507done 9508done 9509 9510 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 9511fi 9512fi 9513ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 9514if test -n "$ac_ct_RANLIB"; then 9515 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 9516echo "${ECHO_T}$ac_ct_RANLIB" >&6 9517else 9518 echo "$as_me:$LINENO: result: no" >&5 9519echo "${ECHO_T}no" >&6 9520fi 9521 9522 RANLIB=$ac_ct_RANLIB 9523else 9524 RANLIB="$ac_cv_prog_RANLIB" 9525fi 9526 9527if test -n "$ac_tool_prefix"; then 9528 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 9529set dummy ${ac_tool_prefix}strip; ac_word=$2 9530echo "$as_me:$LINENO: checking for $ac_word" >&5 9531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 9532if test "${ac_cv_prog_STRIP+set}" = set; then 9533 echo $ECHO_N "(cached) $ECHO_C" >&6 9534else 9535 if test -n "$STRIP"; then 9536 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 9537else 9538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9539for as_dir in $PATH 9540do 9541 IFS=$as_save_IFS 9542 test -z "$as_dir" && as_dir=. 9543 for ac_exec_ext in '' $ac_executable_extensions; do 9544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9545 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 9546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9547 break 2 9548 fi 9549done 9550done 9551 9552fi 9553fi 9554STRIP=$ac_cv_prog_STRIP 9555if test -n "$STRIP"; then 9556 echo "$as_me:$LINENO: result: $STRIP" >&5 9557echo "${ECHO_T}$STRIP" >&6 9558else 9559 echo "$as_me:$LINENO: result: no" >&5 9560echo "${ECHO_T}no" >&6 9561fi 9562 9563fi 9564if test -z "$ac_cv_prog_STRIP"; then 9565 ac_ct_STRIP=$STRIP 9566 # Extract the first word of "strip", so it can be a program name with args. 9567set dummy strip; ac_word=$2 9568echo "$as_me:$LINENO: checking for $ac_word" >&5 9569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 9570if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 9571 echo $ECHO_N "(cached) $ECHO_C" >&6 9572else 9573 if test -n "$ac_ct_STRIP"; then 9574 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 9575else 9576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9577for as_dir in $PATH 9578do 9579 IFS=$as_save_IFS 9580 test -z "$as_dir" && as_dir=. 9581 for ac_exec_ext in '' $ac_executable_extensions; do 9582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9583 ac_cv_prog_ac_ct_STRIP="strip" 9584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9585 break 2 9586 fi 9587done 9588done 9589 9590 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 9591fi 9592fi 9593ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 9594if test -n "$ac_ct_STRIP"; then 9595 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 9596echo "${ECHO_T}$ac_ct_STRIP" >&6 9597else 9598 echo "$as_me:$LINENO: result: no" >&5 9599echo "${ECHO_T}no" >&6 9600fi 9601 9602 STRIP=$ac_ct_STRIP 9603else 9604 STRIP="$ac_cv_prog_STRIP" 9605fi 9606 9607 9608old_CC="$CC" 9609old_CFLAGS="$CFLAGS" 9610 9611# Set sane defaults for various variables 9612test -z "$AR" && AR=ar 9613test -z "$AR_FLAGS" && AR_FLAGS=cru 9614test -z "$AS" && AS=as 9615test -z "$CC" && CC=cc 9616test -z "$LTCC" && LTCC=$CC 9617test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9618test -z "$DLLTOOL" && DLLTOOL=dlltool 9619test -z "$LD" && LD=ld 9620test -z "$LN_S" && LN_S="ln -s" 9621test -z "$MAGIC_CMD" && MAGIC_CMD=file 9622test -z "$NM" && NM=nm 9623test -z "$SED" && SED=sed 9624test -z "$OBJDUMP" && OBJDUMP=objdump 9625test -z "$RANLIB" && RANLIB=: 9626test -z "$STRIP" && STRIP=: 9627test -z "$ac_objext" && ac_objext=o 9628 9629# Determine commands to create old-style static archives. 9630old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 9631old_postinstall_cmds='chmod 644 $oldlib' 9632old_postuninstall_cmds= 9633 9634if test -n "$RANLIB"; then 9635 case $host_os in 9636 openbsd*) 9637 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 9638 ;; 9639 *) 9640 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 9641 ;; 9642 esac 9643 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 9644fi 9645 9646for cc_temp in $compiler""; do 9647 case $cc_temp in 9648 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9649 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9650 \-*) ;; 9651 *) break;; 9652 esac 9653done 9654cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 9655 9656 9657# Only perform the check for file, if the check method requires it 9658case $deplibs_check_method in 9659file_magic*) 9660 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9661 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 9662echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 9663if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 9664 echo $ECHO_N "(cached) $ECHO_C" >&6 9665else 9666 case $MAGIC_CMD in 9667[\\/*] | ?:[\\/]*) 9668 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9669 ;; 9670*) 9671 lt_save_MAGIC_CMD="$MAGIC_CMD" 9672 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9673 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9674 for ac_dir in $ac_dummy; do 9675 IFS="$lt_save_ifs" 9676 test -z "$ac_dir" && ac_dir=. 9677 if test -f $ac_dir/${ac_tool_prefix}file; then 9678 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 9679 if test -n "$file_magic_test_file"; then 9680 case $deplibs_check_method in 9681 "file_magic "*) 9682 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9683 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9684 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9685 $EGREP "$file_magic_regex" > /dev/null; then 9686 : 9687 else 9688 cat <<EOF 1>&2 9689 9690*** Warning: the command libtool uses to detect shared libraries, 9691*** $file_magic_cmd, produces output that libtool cannot recognize. 9692*** The result is that libtool may fail to recognize shared libraries 9693*** as such. This will affect the creation of libtool libraries that 9694*** depend on shared libraries, but programs linked with such libtool 9695*** libraries will work regardless of this problem. Nevertheless, you 9696*** may want to report the problem to your system manager and/or to 9697*** bug-libtool@gnu.org 9698 9699EOF 9700 fi ;; 9701 esac 9702 fi 9703 break 9704 fi 9705 done 9706 IFS="$lt_save_ifs" 9707 MAGIC_CMD="$lt_save_MAGIC_CMD" 9708 ;; 9709esac 9710fi 9711 9712MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9713if test -n "$MAGIC_CMD"; then 9714 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 9715echo "${ECHO_T}$MAGIC_CMD" >&6 9716else 9717 echo "$as_me:$LINENO: result: no" >&5 9718echo "${ECHO_T}no" >&6 9719fi 9720 9721if test -z "$lt_cv_path_MAGIC_CMD"; then 9722 if test -n "$ac_tool_prefix"; then 9723 echo "$as_me:$LINENO: checking for file" >&5 9724echo $ECHO_N "checking for file... $ECHO_C" >&6 9725if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 9726 echo $ECHO_N "(cached) $ECHO_C" >&6 9727else 9728 case $MAGIC_CMD in 9729[\\/*] | ?:[\\/]*) 9730 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9731 ;; 9732*) 9733 lt_save_MAGIC_CMD="$MAGIC_CMD" 9734 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9735 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9736 for ac_dir in $ac_dummy; do 9737 IFS="$lt_save_ifs" 9738 test -z "$ac_dir" && ac_dir=. 9739 if test -f $ac_dir/file; then 9740 lt_cv_path_MAGIC_CMD="$ac_dir/file" 9741 if test -n "$file_magic_test_file"; then 9742 case $deplibs_check_method in 9743 "file_magic "*) 9744 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9745 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9746 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9747 $EGREP "$file_magic_regex" > /dev/null; then 9748 : 9749 else 9750 cat <<EOF 1>&2 9751 9752*** Warning: the command libtool uses to detect shared libraries, 9753*** $file_magic_cmd, produces output that libtool cannot recognize. 9754*** The result is that libtool may fail to recognize shared libraries 9755*** as such. This will affect the creation of libtool libraries that 9756*** depend on shared libraries, but programs linked with such libtool 9757*** libraries will work regardless of this problem. Nevertheless, you 9758*** may want to report the problem to your system manager and/or to 9759*** bug-libtool@gnu.org 9760 9761EOF 9762 fi ;; 9763 esac 9764 fi 9765 break 9766 fi 9767 done 9768 IFS="$lt_save_ifs" 9769 MAGIC_CMD="$lt_save_MAGIC_CMD" 9770 ;; 9771esac 9772fi 9773 9774MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9775if test -n "$MAGIC_CMD"; then 9776 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 9777echo "${ECHO_T}$MAGIC_CMD" >&6 9778else 9779 echo "$as_me:$LINENO: result: no" >&5 9780echo "${ECHO_T}no" >&6 9781fi 9782 9783 else 9784 MAGIC_CMD=: 9785 fi 9786fi 9787 9788 fi 9789 ;; 9790esac 9791 9792enable_dlopen=yes 9793enable_win32_dll=yes 9794 9795# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 9796if test "${enable_libtool_lock+set}" = set; then 9797 enableval="$enable_libtool_lock" 9798 9799fi; 9800test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 9801 9802 9803# Check whether --with-pic or --without-pic was given. 9804if test "${with_pic+set}" = set; then 9805 withval="$with_pic" 9806 pic_mode="$withval" 9807else 9808 pic_mode=default 9809fi; 9810test -z "$pic_mode" && pic_mode=default 9811 9812# Use C for the default configuration in the libtool script 9813tagname= 9814lt_save_CC="$CC" 9815ac_ext=c 9816ac_cpp='$CPP $CPPFLAGS' 9817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9819ac_compiler_gnu=$ac_cv_c_compiler_gnu 9820 9821 9822# Source file extension for C test sources. 9823ac_ext=c 9824 9825# Object file extension for compiled C test sources. 9826objext=o 9827objext=$objext 9828 9829# Code to be used in simple compile tests 9830lt_simple_compile_test_code="int some_variable = 0;\n" 9831 9832# Code to be used in simple link tests 9833lt_simple_link_test_code='int main(){return(0);}\n' 9834 9835 9836# If no C compiler was specified, use CC. 9837LTCC=${LTCC-"$CC"} 9838 9839# If no C compiler flags were specified, use CFLAGS. 9840LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9841 9842# Allow CC to be a program name with arguments. 9843compiler=$CC 9844 9845 9846# save warnings/boilerplate of simple test code 9847ac_outfile=conftest.$ac_objext 9848printf "$lt_simple_compile_test_code" >conftest.$ac_ext 9849eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9850_lt_compiler_boilerplate=`cat conftest.err` 9851$rm conftest* 9852 9853ac_outfile=conftest.$ac_objext 9854printf "$lt_simple_link_test_code" >conftest.$ac_ext 9855eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9856_lt_linker_boilerplate=`cat conftest.err` 9857$rm conftest* 9858 9859 9860## CAVEAT EMPTOR: 9861## There is no encapsulation within the following macros, do not change 9862## the running order or otherwise move them around unless you know exactly 9863## what you are doing... 9864 9865lt_prog_compiler_no_builtin_flag= 9866 9867if test "$GCC" = yes; then 9868 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 9869 9870 9871echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9872echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 9873if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 9874 echo $ECHO_N "(cached) $ECHO_C" >&6 9875else 9876 lt_cv_prog_compiler_rtti_exceptions=no 9877 ac_outfile=conftest.$ac_objext 9878 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 9879 lt_compiler_flag="-fno-rtti -fno-exceptions" 9880 # Insert the option either (1) after the last *FLAGS variable, or 9881 # (2) before a word containing "conftest.", or (3) at the end. 9882 # Note that $ac_compile itself does not contain backslashes and begins 9883 # with a dollar sign (not a hyphen), so the echo should work correctly. 9884 # The option is referenced via a variable to avoid confusing sed. 9885 lt_compile=`echo "$ac_compile" | $SED \ 9886 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9887 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9888 -e 's:$: $lt_compiler_flag:'` 9889 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 9890 (eval "$lt_compile" 2>conftest.err) 9891 ac_status=$? 9892 cat conftest.err >&5 9893 echo "$as_me:__oline__: \$? = $ac_status" >&5 9894 if (exit $ac_status) && test -s "$ac_outfile"; then 9895 # The compiler can only warn and ignore the option if not recognized 9896 # So say no if there are warnings other than the usual output. 9897 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 9898 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9899 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9900 lt_cv_prog_compiler_rtti_exceptions=yes 9901 fi 9902 fi 9903 $rm conftest* 9904 9905fi 9906echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9907echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 9908 9909if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 9910 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9911else 9912 : 9913fi 9914 9915fi 9916 9917lt_prog_compiler_wl= 9918lt_prog_compiler_pic= 9919lt_prog_compiler_static= 9920 9921echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 9922echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 9923 9924 if test "$GCC" = yes; then 9925 lt_prog_compiler_wl='-Wl,' 9926 lt_prog_compiler_static='-static' 9927 9928 case $host_os in 9929 aix*) 9930 # All AIX code is PIC. 9931 if test "$host_cpu" = ia64; then 9932 # AIX 5 now supports IA64 processor 9933 lt_prog_compiler_static='-Bstatic' 9934 fi 9935 ;; 9936 9937 amigaos*) 9938 # FIXME: we need at least 68020 code to build shared libraries, but 9939 # adding the `-m68020' flag to GCC prevents building anything better, 9940 # like `-m68040'. 9941 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9942 ;; 9943 9944 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9945 # PIC is the default for these OSes. 9946 ;; 9947 9948 mingw* | pw32* | os2*) 9949 # This hack is so that the source file can tell whether it is being 9950 # built for inclusion in a dll (and should export symbols for example). 9951 lt_prog_compiler_pic='-DDLL_EXPORT' 9952 ;; 9953 9954 darwin* | rhapsody*) 9955 # PIC is the default on this platform 9956 # Common symbols not allowed in MH_DYLIB files 9957 lt_prog_compiler_pic='-fno-common' 9958 ;; 9959 9960 interix3*) 9961 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9962 # Instead, we relocate shared libraries at runtime. 9963 ;; 9964 9965 msdosdjgpp*) 9966 # Just because we use GCC doesn't mean we suddenly get shared libraries 9967 # on systems that don't support them. 9968 lt_prog_compiler_can_build_shared=no 9969 enable_shared=no 9970 ;; 9971 9972 sysv4*MP*) 9973 if test -d /usr/nec; then 9974 lt_prog_compiler_pic=-Kconform_pic 9975 fi 9976 ;; 9977 9978 hpux*) 9979 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9980 # not for PA HP-UX. 9981 case $host_cpu in 9982 hppa*64*|ia64*) 9983 # +Z the default 9984 ;; 9985 *) 9986 lt_prog_compiler_pic='-fPIC' 9987 ;; 9988 esac 9989 ;; 9990 9991 *) 9992 lt_prog_compiler_pic='-fPIC' 9993 ;; 9994 esac 9995 else 9996 # PORTME Check for flag to pass linker flags through the system compiler. 9997 case $host_os in 9998 aix*) 9999 lt_prog_compiler_wl='-Wl,' 10000 if test "$host_cpu" = ia64; then 10001 # AIX 5 now supports IA64 processor 10002 lt_prog_compiler_static='-Bstatic' 10003 else 10004 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10005 fi 10006 ;; 10007 darwin*) 10008 # PIC is the default on this platform 10009 # Common symbols not allowed in MH_DYLIB files 10010 case $cc_basename in 10011 xlc*) 10012 lt_prog_compiler_pic='-qnocommon' 10013 lt_prog_compiler_wl='-Wl,' 10014 ;; 10015 esac 10016 ;; 10017 10018 mingw* | pw32* | os2*) 10019 # This hack is so that the source file can tell whether it is being 10020 # built for inclusion in a dll (and should export symbols for example). 10021 lt_prog_compiler_pic='-DDLL_EXPORT' 10022 ;; 10023 10024 hpux9* | hpux10* | hpux11*) 10025 lt_prog_compiler_wl='-Wl,' 10026 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10027 # not for PA HP-UX. 10028 case $host_cpu in 10029 hppa*64*|ia64*) 10030 # +Z the default 10031 ;; 10032 *) 10033 lt_prog_compiler_pic='+Z' 10034 ;; 10035 esac 10036 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10037 lt_prog_compiler_static='${wl}-a ${wl}archive' 10038 ;; 10039 10040 irix5* | irix6* | nonstopux*) 10041 lt_prog_compiler_wl='-Wl,' 10042 # PIC (with -KPIC) is the default. 10043 lt_prog_compiler_static='-non_shared' 10044 ;; 10045 10046 newsos6) 10047 lt_prog_compiler_pic='-KPIC' 10048 lt_prog_compiler_static='-Bstatic' 10049 ;; 10050 10051 linux*) 10052 case $cc_basename in 10053 icc* | ecc*) 10054 lt_prog_compiler_wl='-Wl,' 10055 lt_prog_compiler_pic='-KPIC' 10056 lt_prog_compiler_static='-static' 10057 ;; 10058 pgcc* | pgf77* | pgf90* | pgf95*) 10059 # Portland Group compilers (*not* the Pentium gcc compiler, 10060 # which looks to be a dead project) 10061 lt_prog_compiler_wl='-Wl,' 10062 lt_prog_compiler_pic='-fpic' 10063 lt_prog_compiler_static='-Bstatic' 10064 ;; 10065 ccc*) 10066 lt_prog_compiler_wl='-Wl,' 10067 # All Alpha code is PIC. 10068 lt_prog_compiler_static='-non_shared' 10069 ;; 10070 esac 10071 ;; 10072 10073 osf3* | osf4* | osf5*) 10074 lt_prog_compiler_wl='-Wl,' 10075 # All OSF/1 code is PIC. 10076 lt_prog_compiler_static='-non_shared' 10077 ;; 10078 10079 solaris*) 10080 lt_prog_compiler_pic='-KPIC' 10081 lt_prog_compiler_static='-Bstatic' 10082 case $cc_basename in 10083 f77* | f90* | f95*) 10084 lt_prog_compiler_wl='-Qoption ld ';; 10085 *) 10086 lt_prog_compiler_wl='-Wl,';; 10087 esac 10088 ;; 10089 10090 sunos4*) 10091 lt_prog_compiler_wl='-Qoption ld ' 10092 lt_prog_compiler_pic='-PIC' 10093 lt_prog_compiler_static='-Bstatic' 10094 ;; 10095 10096 sysv4 | sysv4.2uw2* | sysv4.3*) 10097 lt_prog_compiler_wl='-Wl,' 10098 lt_prog_compiler_pic='-KPIC' 10099 lt_prog_compiler_static='-Bstatic' 10100 ;; 10101 10102 sysv4*MP*) 10103 if test -d /usr/nec ;then 10104 lt_prog_compiler_pic='-Kconform_pic' 10105 lt_prog_compiler_static='-Bstatic' 10106 fi 10107 ;; 10108 10109 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10110 lt_prog_compiler_wl='-Wl,' 10111 lt_prog_compiler_pic='-KPIC' 10112 lt_prog_compiler_static='-Bstatic' 10113 ;; 10114 10115 unicos*) 10116 lt_prog_compiler_wl='-Wl,' 10117 lt_prog_compiler_can_build_shared=no 10118 ;; 10119 10120 uts4*) 10121 lt_prog_compiler_pic='-pic' 10122 lt_prog_compiler_static='-Bstatic' 10123 ;; 10124 10125 *) 10126 lt_prog_compiler_can_build_shared=no 10127 ;; 10128 esac 10129 fi 10130 10131echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 10132echo "${ECHO_T}$lt_prog_compiler_pic" >&6 10133 10134# 10135# Check to make sure the PIC flag actually works. 10136# 10137if test -n "$lt_prog_compiler_pic"; then 10138 10139echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10140echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 10141if test "${lt_prog_compiler_pic_works+set}" = set; then 10142 echo $ECHO_N "(cached) $ECHO_C" >&6 10143else 10144 lt_prog_compiler_pic_works=no 10145 ac_outfile=conftest.$ac_objext 10146 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 10147 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 10148 # Insert the option either (1) after the last *FLAGS variable, or 10149 # (2) before a word containing "conftest.", or (3) at the end. 10150 # Note that $ac_compile itself does not contain backslashes and begins 10151 # with a dollar sign (not a hyphen), so the echo should work correctly. 10152 # The option is referenced via a variable to avoid confusing sed. 10153 lt_compile=`echo "$ac_compile" | $SED \ 10154 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10155 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10156 -e 's:$: $lt_compiler_flag:'` 10157 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 10158 (eval "$lt_compile" 2>conftest.err) 10159 ac_status=$? 10160 cat conftest.err >&5 10161 echo "$as_me:__oline__: \$? = $ac_status" >&5 10162 if (exit $ac_status) && test -s "$ac_outfile"; then 10163 # The compiler can only warn and ignore the option if not recognized 10164 # So say no if there are warnings other than the usual output. 10165 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 10166 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10167 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10168 lt_prog_compiler_pic_works=yes 10169 fi 10170 fi 10171 $rm conftest* 10172 10173fi 10174echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 10175echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 10176 10177if test x"$lt_prog_compiler_pic_works" = xyes; then 10178 case $lt_prog_compiler_pic in 10179 "" | " "*) ;; 10180 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10181 esac 10182else 10183 lt_prog_compiler_pic= 10184 lt_prog_compiler_can_build_shared=no 10185fi 10186 10187fi 10188case $host_os in 10189 # For platforms which do not support PIC, -DPIC is meaningless: 10190 *djgpp*) 10191 lt_prog_compiler_pic= 10192 ;; 10193 *) 10194 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10195 ;; 10196esac 10197 10198# 10199# Check to make sure the static flag actually works. 10200# 10201wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10202echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10203echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 10204if test "${lt_prog_compiler_static_works+set}" = set; then 10205 echo $ECHO_N "(cached) $ECHO_C" >&6 10206else 10207 lt_prog_compiler_static_works=no 10208 save_LDFLAGS="$LDFLAGS" 10209 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10210 printf "$lt_simple_link_test_code" > conftest.$ac_ext 10211 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10212 # The linker can only warn and ignore the option if not recognized 10213 # So say no if there are warnings 10214 if test -s conftest.err; then 10215 # Append any errors to the config.log. 10216 cat conftest.err 1>&5 10217 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 10218 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10219 if diff conftest.exp conftest.er2 >/dev/null; then 10220 lt_prog_compiler_static_works=yes 10221 fi 10222 else 10223 lt_prog_compiler_static_works=yes 10224 fi 10225 fi 10226 $rm conftest* 10227 LDFLAGS="$save_LDFLAGS" 10228 10229fi 10230echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 10231echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 10232 10233if test x"$lt_prog_compiler_static_works" = xyes; then 10234 : 10235else 10236 lt_prog_compiler_static= 10237fi 10238 10239 10240echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 10241echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 10242if test "${lt_cv_prog_compiler_c_o+set}" = set; then 10243 echo $ECHO_N "(cached) $ECHO_C" >&6 10244else 10245 lt_cv_prog_compiler_c_o=no 10246 $rm -r conftest 2>/dev/null 10247 mkdir conftest 10248 cd conftest 10249 mkdir out 10250 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 10251 10252 lt_compiler_flag="-o out/conftest2.$ac_objext" 10253 # Insert the option either (1) after the last *FLAGS variable, or 10254 # (2) before a word containing "conftest.", or (3) at the end. 10255 # Note that $ac_compile itself does not contain backslashes and begins 10256 # with a dollar sign (not a hyphen), so the echo should work correctly. 10257 lt_compile=`echo "$ac_compile" | $SED \ 10258 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10259 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10260 -e 's:$: $lt_compiler_flag:'` 10261 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 10262 (eval "$lt_compile" 2>out/conftest.err) 10263 ac_status=$? 10264 cat out/conftest.err >&5 10265 echo "$as_me:__oline__: \$? = $ac_status" >&5 10266 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10267 then 10268 # The compiler can only warn and ignore the option if not recognized 10269 # So say no if there are warnings 10270 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 10271 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10272 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10273 lt_cv_prog_compiler_c_o=yes 10274 fi 10275 fi 10276 chmod u+w . 2>&5 10277 $rm conftest* 10278 # SGI C++ compiler will create directory out/ii_files/ for 10279 # template instantiation 10280 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 10281 $rm out/* && rmdir out 10282 cd .. 10283 rmdir conftest 10284 $rm conftest* 10285 10286fi 10287echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 10288echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 10289 10290 10291hard_links="nottested" 10292if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 10293 # do not overwrite the value of need_locks provided by the user 10294 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 10295echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 10296 hard_links=yes 10297 $rm conftest* 10298 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10299 touch conftest.a 10300 ln conftest.a conftest.b 2>&5 || hard_links=no 10301 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10302 echo "$as_me:$LINENO: result: $hard_links" >&5 10303echo "${ECHO_T}$hard_links" >&6 10304 if test "$hard_links" = no; then 10305 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 10306echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 10307 need_locks=warn 10308 fi 10309else 10310 need_locks=no 10311fi 10312 10313echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10314echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 10315 10316 runpath_var= 10317 allow_undefined_flag= 10318 enable_shared_with_static_runtimes=no 10319 archive_cmds= 10320 archive_expsym_cmds= 10321 old_archive_From_new_cmds= 10322 old_archive_from_expsyms_cmds= 10323 export_dynamic_flag_spec= 10324 whole_archive_flag_spec= 10325 thread_safe_flag_spec= 10326 hardcode_libdir_flag_spec= 10327 hardcode_libdir_flag_spec_ld= 10328 hardcode_libdir_separator= 10329 hardcode_direct=no 10330 hardcode_minus_L=no 10331 hardcode_shlibpath_var=unsupported 10332 link_all_deplibs=unknown 10333 hardcode_automatic=no 10334 module_cmds= 10335 module_expsym_cmds= 10336 always_export_symbols=no 10337 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10338 # include_expsyms should be a list of space-separated symbols to be *always* 10339 # included in the symbol list 10340 include_expsyms= 10341 # exclude_expsyms can be an extended regexp of symbols to exclude 10342 # it will be wrapped by ` (' and `)$', so one must not match beginning or 10343 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 10344 # as well as any symbol that contains `d'. 10345 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 10346 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10347 # platforms (ab)use it in PIC code, but their linkers get confused if 10348 # the symbol is explicitly referenced. Since portable code cannot 10349 # rely on this symbol name, it's probably fine to never include it in 10350 # preloaded symbol tables. 10351 extract_expsyms_cmds= 10352 # Just being paranoid about ensuring that cc_basename is set. 10353 for cc_temp in $compiler""; do 10354 case $cc_temp in 10355 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10356 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10357 \-*) ;; 10358 *) break;; 10359 esac 10360done 10361cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10362 10363 case $host_os in 10364 cygwin* | mingw* | pw32*) 10365 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10366 # When not using gcc, we currently assume that we are using 10367 # Microsoft Visual C++. 10368 if test "$GCC" != yes; then 10369 with_gnu_ld=no 10370 fi 10371 ;; 10372 interix*) 10373 # we just hope/assume this is gcc and not c89 (= MSVC++) 10374 with_gnu_ld=yes 10375 ;; 10376 openbsd*) 10377 with_gnu_ld=no 10378 ;; 10379 esac 10380 10381 ld_shlibs=yes 10382 if test "$with_gnu_ld" = yes; then 10383 # If archive_cmds runs LD, not CC, wlarc should be empty 10384 wlarc='${wl}' 10385 10386 # Set some defaults for GNU ld with shared library support. These 10387 # are reset later if shared libraries are not supported. Putting them 10388 # here allows them to be overridden if necessary. 10389 runpath_var=LD_RUN_PATH 10390 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 10391 export_dynamic_flag_spec='${wl}--export-dynamic' 10392 # ancient GNU ld didn't support --whole-archive et. al. 10393 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 10394 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10395 else 10396 whole_archive_flag_spec= 10397 fi 10398 supports_anon_versioning=no 10399 case `$LD -v 2>/dev/null` in 10400 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10401 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10402 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10403 *\ 2.11.*) ;; # other 2.11 versions 10404 *) supports_anon_versioning=yes ;; 10405 esac 10406 10407 # See if GNU ld supports shared libraries. 10408 case $host_os in 10409 aix3* | aix4* | aix5*) 10410 # On AIX/PPC, the GNU linker is very broken 10411 if test "$host_cpu" != ia64; then 10412 ld_shlibs=no 10413 cat <<EOF 1>&2 10414 10415*** Warning: the GNU linker, at least up to release 2.9.1, is reported 10416*** to be unable to reliably create shared libraries on AIX. 10417*** Therefore, libtool is disabling shared libraries support. If you 10418*** really care for shared libraries, you may want to modify your PATH 10419*** so that a non-GNU linker is found, and then restart. 10420 10421EOF 10422 fi 10423 ;; 10424 10425 amigaos*) 10426 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)' 10427 hardcode_libdir_flag_spec='-L$libdir' 10428 hardcode_minus_L=yes 10429 10430 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 10431 # that the semantics of dynamic libraries on AmigaOS, at least up 10432 # to version 4, is to share data among multiple programs linked 10433 # with the same dynamic library. Since this doesn't match the 10434 # behavior of shared libraries on other platforms, we can't use 10435 # them. 10436 ld_shlibs=no 10437 ;; 10438 10439 beos*) 10440 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10441 allow_undefined_flag=unsupported 10442 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10443 # support --undefined. This deserves some investigation. FIXME 10444 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10445 else 10446 ld_shlibs=no 10447 fi 10448 ;; 10449 10450 cygwin* | mingw* | pw32*) 10451 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10452 # as there is no search path for DLLs. 10453 hardcode_libdir_flag_spec='-L$libdir' 10454 allow_undefined_flag=unsupported 10455 always_export_symbols=no 10456 enable_shared_with_static_runtimes=yes 10457 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 10458 10459 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10460 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10461 # If the export-symbols file already is a .def file (1st line 10462 # is EXPORTS), use it as is; otherwise, prepend... 10463 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10464 cp $export_symbols $output_objdir/$soname.def; 10465 else 10466 echo EXPORTS > $output_objdir/$soname.def; 10467 cat $export_symbols >> $output_objdir/$soname.def; 10468 fi~ 10469 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10470 else 10471 ld_shlibs=no 10472 fi 10473 ;; 10474 10475 interix3*) 10476 hardcode_direct=no 10477 hardcode_shlibpath_var=no 10478 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10479 export_dynamic_flag_spec='${wl}-E' 10480 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10481 # Instead, shared libraries are loaded at an image base (0x10000000 by 10482 # default) and relocated if they conflict, which is a slow very memory 10483 # consuming and fragmenting process. To avoid this, we pick a random, 10484 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10485 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10486 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10487 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10488 ;; 10489 10490 linux*) 10491 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10492 tmp_addflag= 10493 case $cc_basename,$host_cpu in 10494 pgcc*) # Portland Group C compiler 10495 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 10496 tmp_addflag=' $pic_flag' 10497 ;; 10498 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 10499 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 10500 tmp_addflag=' $pic_flag -Mnomain' ;; 10501 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10502 tmp_addflag=' -i_dynamic' ;; 10503 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10504 tmp_addflag=' -i_dynamic -nofor_main' ;; 10505 ifc* | ifort*) # Intel Fortran compiler 10506 tmp_addflag=' -nofor_main' ;; 10507 esac 10508 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10509 10510 if test $supports_anon_versioning = yes; then 10511 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 10512 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10513 $echo "local: *; };" >> $output_objdir/$libname.ver~ 10514 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 10515 fi 10516 else 10517 ld_shlibs=no 10518 fi 10519 ;; 10520 10521 netbsd*) 10522 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10523 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10524 wlarc= 10525 else 10526 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10527 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10528 fi 10529 ;; 10530 10531 solaris*) 10532 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 10533 ld_shlibs=no 10534 cat <<EOF 1>&2 10535 10536*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10537*** create shared libraries on Solaris systems. Therefore, libtool 10538*** is disabling shared libraries support. We urge you to upgrade GNU 10539*** binutils to release 2.9.1 or newer. Another option is to modify 10540*** your PATH or compiler configuration so that the native linker is 10541*** used, and then restart. 10542 10543EOF 10544 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10545 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10546 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10547 else 10548 ld_shlibs=no 10549 fi 10550 ;; 10551 10552 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10553 case `$LD -v 2>&1` in 10554 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10555 ld_shlibs=no 10556 cat <<_LT_EOF 1>&2 10557 10558*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 10559*** reliably create shared libraries on SCO systems. Therefore, libtool 10560*** is disabling shared libraries support. We urge you to upgrade GNU 10561*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10562*** your PATH or compiler configuration so that the native linker is 10563*** used, and then restart. 10564 10565_LT_EOF 10566 ;; 10567 *) 10568 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10569 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 10570 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 10571 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 10572 else 10573 ld_shlibs=no 10574 fi 10575 ;; 10576 esac 10577 ;; 10578 10579 sunos4*) 10580 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10581 wlarc= 10582 hardcode_direct=yes 10583 hardcode_shlibpath_var=no 10584 ;; 10585 10586 *) 10587 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10588 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10589 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10590 else 10591 ld_shlibs=no 10592 fi 10593 ;; 10594 esac 10595 10596 if test "$ld_shlibs" = no; then 10597 runpath_var= 10598 hardcode_libdir_flag_spec= 10599 export_dynamic_flag_spec= 10600 whole_archive_flag_spec= 10601 fi 10602 else 10603 # PORTME fill in a description of your system's linker (not GNU ld) 10604 case $host_os in 10605 aix3*) 10606 allow_undefined_flag=unsupported 10607 always_export_symbols=yes 10608 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' 10609 # Note: this linker hardcodes the directories in LIBPATH if there 10610 # are no directories specified by -L. 10611 hardcode_minus_L=yes 10612 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 10613 # Neither direct hardcoding nor static linking is supported with a 10614 # broken collect2. 10615 hardcode_direct=unsupported 10616 fi 10617 ;; 10618 10619 aix4* | aix5*) 10620 if test "$host_cpu" = ia64; then 10621 # On IA64, the linker does run time linking by default, so we don't 10622 # have to do anything special. 10623 aix_use_runtimelinking=no 10624 exp_sym_flag='-Bexport' 10625 no_entry_flag="" 10626 else 10627 # If we're using GNU nm, then we don't want the "-C" option. 10628 # -C means demangle to AIX nm, but means don't demangle with GNU nm 10629 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 10630 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' 10631 else 10632 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' 10633 fi 10634 aix_use_runtimelinking=no 10635 10636 # Test if we are trying to use run time linking or normal 10637 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10638 # need to do runtime linking. 10639 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10640 for ld_flag in $LDFLAGS; do 10641 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 10642 aix_use_runtimelinking=yes 10643 break 10644 fi 10645 done 10646 ;; 10647 esac 10648 10649 exp_sym_flag='-bexport' 10650 no_entry_flag='-bnoentry' 10651 fi 10652 10653 # When large executables or shared objects are built, AIX ld can 10654 # have problems creating the table of contents. If linking a library 10655 # or program results in "error TOC overflow" add -mminimal-toc to 10656 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10657 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10658 10659 archive_cmds='' 10660 hardcode_direct=yes 10661 hardcode_libdir_separator=':' 10662 link_all_deplibs=yes 10663 10664 if test "$GCC" = yes; then 10665 case $host_os in aix4.[012]|aix4.[012].*) 10666 # We only want to do this on AIX 4.2 and lower, the check 10667 # below for broken collect2 doesn't work under 4.3+ 10668 collect2name=`${CC} -print-prog-name=collect2` 10669 if test -f "$collect2name" && \ 10670 strings "$collect2name" | grep resolve_lib_name >/dev/null 10671 then 10672 # We have reworked collect2 10673 hardcode_direct=yes 10674 else 10675 # We have old collect2 10676 hardcode_direct=unsupported 10677 # It fails to find uninstalled libraries when the uninstalled 10678 # path is not listed in the libpath. Setting hardcode_minus_L 10679 # to unsupported forces relinking 10680 hardcode_minus_L=yes 10681 hardcode_libdir_flag_spec='-L$libdir' 10682 hardcode_libdir_separator= 10683 fi 10684 ;; 10685 esac 10686 shared_flag='-shared' 10687 if test "$aix_use_runtimelinking" = yes; then 10688 shared_flag="$shared_flag "'${wl}-G' 10689 fi 10690 else 10691 # not using gcc 10692 if test "$host_cpu" = ia64; then 10693 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10694 # chokes on -Wl,-G. The following line is correct: 10695 shared_flag='-G' 10696 else 10697 if test "$aix_use_runtimelinking" = yes; then 10698 shared_flag='${wl}-G' 10699 else 10700 shared_flag='${wl}-bM:SRE' 10701 fi 10702 fi 10703 fi 10704 10705 # It seems that -bexpall does not export symbols beginning with 10706 # underscore (_), so it is better to generate a list of symbols to export. 10707 always_export_symbols=yes 10708 if test "$aix_use_runtimelinking" = yes; then 10709 # Warning - without using the other runtime loading flags (-brtl), 10710 # -berok will link without error, but may produce a broken library. 10711 allow_undefined_flag='-berok' 10712 # Determine the default libpath from the value encoded in an empty executable. 10713 cat >conftest.$ac_ext <<_ACEOF 10714/* confdefs.h. */ 10715_ACEOF 10716cat confdefs.h >>conftest.$ac_ext 10717cat >>conftest.$ac_ext <<_ACEOF 10718/* end confdefs.h. */ 10719 10720int 10721main () 10722{ 10723 10724 ; 10725 return 0; 10726} 10727_ACEOF 10728rm -f conftest.$ac_objext conftest$ac_exeext 10729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10730 (eval $ac_link) 2>conftest.er1 10731 ac_status=$? 10732 grep -v '^ *+' conftest.er1 >conftest.err 10733 rm -f conftest.er1 10734 cat conftest.err >&5 10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10736 (exit $ac_status); } && 10737 { ac_try='test -z "$ac_c_werror_flag" 10738 || test ! -s conftest.err' 10739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10740 (eval $ac_try) 2>&5 10741 ac_status=$? 10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10743 (exit $ac_status); }; } && 10744 { ac_try='test -s conftest$ac_exeext' 10745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10746 (eval $ac_try) 2>&5 10747 ac_status=$? 10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10749 (exit $ac_status); }; }; then 10750 10751aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10752}'` 10753# Check for a 64-bit object if we didn't find anything. 10754if 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; } 10755}'`; fi 10756else 10757 echo "$as_me: failed program was:" >&5 10758sed 's/^/| /' conftest.$ac_ext >&5 10759 10760fi 10761rm -f conftest.err conftest.$ac_objext \ 10762 conftest$ac_exeext conftest.$ac_ext 10763if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10764 10765 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10766 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 10767 else 10768 if test "$host_cpu" = ia64; then 10769 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 10770 allow_undefined_flag="-z nodefs" 10771 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 10772 else 10773 # Determine the default libpath from the value encoded in an empty executable. 10774 cat >conftest.$ac_ext <<_ACEOF 10775/* confdefs.h. */ 10776_ACEOF 10777cat confdefs.h >>conftest.$ac_ext 10778cat >>conftest.$ac_ext <<_ACEOF 10779/* end confdefs.h. */ 10780 10781int 10782main () 10783{ 10784 10785 ; 10786 return 0; 10787} 10788_ACEOF 10789rm -f conftest.$ac_objext conftest$ac_exeext 10790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10791 (eval $ac_link) 2>conftest.er1 10792 ac_status=$? 10793 grep -v '^ *+' conftest.er1 >conftest.err 10794 rm -f conftest.er1 10795 cat conftest.err >&5 10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10797 (exit $ac_status); } && 10798 { ac_try='test -z "$ac_c_werror_flag" 10799 || test ! -s conftest.err' 10800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10801 (eval $ac_try) 2>&5 10802 ac_status=$? 10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10804 (exit $ac_status); }; } && 10805 { ac_try='test -s conftest$ac_exeext' 10806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10807 (eval $ac_try) 2>&5 10808 ac_status=$? 10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10810 (exit $ac_status); }; }; then 10811 10812aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10813}'` 10814# Check for a 64-bit object if we didn't find anything. 10815if 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; } 10816}'`; fi 10817else 10818 echo "$as_me: failed program was:" >&5 10819sed 's/^/| /' conftest.$ac_ext >&5 10820 10821fi 10822rm -f conftest.err conftest.$ac_objext \ 10823 conftest$ac_exeext conftest.$ac_ext 10824if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10825 10826 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10827 # Warning - without using the other run time loading flags, 10828 # -berok will link without error, but may produce a broken library. 10829 no_undefined_flag=' ${wl}-bernotok' 10830 allow_undefined_flag=' ${wl}-berok' 10831 # Exported symbols can be pulled into shared objects from archives 10832 whole_archive_flag_spec='$convenience' 10833 archive_cmds_need_lc=yes 10834 # This is similar to how AIX traditionally builds its shared libraries. 10835 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 10836 fi 10837 fi 10838 ;; 10839 10840 amigaos*) 10841 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)' 10842 hardcode_libdir_flag_spec='-L$libdir' 10843 hardcode_minus_L=yes 10844 # see comment about different semantics on the GNU ld section 10845 ld_shlibs=no 10846 ;; 10847 10848 bsdi[45]*) 10849 export_dynamic_flag_spec=-rdynamic 10850 ;; 10851 10852 cygwin* | mingw* | pw32*) 10853 # When not using gcc, we currently assume that we are using 10854 # Microsoft Visual C++. 10855 # hardcode_libdir_flag_spec is actually meaningless, as there is 10856 # no search path for DLLs. 10857 hardcode_libdir_flag_spec=' ' 10858 allow_undefined_flag=unsupported 10859 # Tell ltmain to make .lib files, not .a files. 10860 libext=lib 10861 # Tell ltmain to make .dll files, not .so files. 10862 shrext_cmds=".dll" 10863 # FIXME: Setting linknames here is a bad hack. 10864 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 10865 # The linker will automatically build a .lib file if we build a DLL. 10866 old_archive_From_new_cmds='true' 10867 # FIXME: Should let the user specify the lib program. 10868 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 10869 fix_srcfile_path='`cygpath -w "$srcfile"`' 10870 enable_shared_with_static_runtimes=yes 10871 ;; 10872 10873 darwin* | rhapsody*) 10874 case $host_os in 10875 rhapsody* | darwin1.[012]) 10876 allow_undefined_flag='${wl}-undefined ${wl}suppress' 10877 ;; 10878 *) # Darwin 1.3 on 10879 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 10880 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10881 else 10882 case ${MACOSX_DEPLOYMENT_TARGET} in 10883 10.[012]) 10884 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10885 ;; 10886 10.*) 10887 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 10888 ;; 10889 esac 10890 fi 10891 ;; 10892 esac 10893 archive_cmds_need_lc=no 10894 hardcode_direct=no 10895 hardcode_automatic=yes 10896 hardcode_shlibpath_var=unsupported 10897 whole_archive_flag_spec='' 10898 link_all_deplibs=yes 10899 if test "$GCC" = yes ; then 10900 output_verbose_link_cmd='echo' 10901 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10902 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10903 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10904 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}' 10905 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}' 10906 else 10907 case $cc_basename in 10908 xlc*) 10909 output_verbose_link_cmd='echo' 10910 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 10911 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10912 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10913 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10914 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}' 10915 ;; 10916 *) 10917 ld_shlibs=no 10918 ;; 10919 esac 10920 fi 10921 ;; 10922 10923 dgux*) 10924 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10925 hardcode_libdir_flag_spec='-L$libdir' 10926 hardcode_shlibpath_var=no 10927 ;; 10928 10929 freebsd1*) 10930 ld_shlibs=no 10931 ;; 10932 10933 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10934 # support. Future versions do this automatically, but an explicit c++rt0.o 10935 # does not break anything, and helps significantly (at the cost of a little 10936 # extra space). 10937 freebsd2.2*) 10938 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10939 hardcode_libdir_flag_spec='-R$libdir' 10940 hardcode_direct=yes 10941 hardcode_shlibpath_var=no 10942 ;; 10943 10944 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10945 freebsd2*) 10946 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10947 hardcode_direct=yes 10948 hardcode_minus_L=yes 10949 hardcode_shlibpath_var=no 10950 ;; 10951 10952 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10953 freebsd* | kfreebsd*-gnu | dragonfly*) 10954 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 10955 hardcode_libdir_flag_spec='-R$libdir' 10956 hardcode_direct=yes 10957 hardcode_shlibpath_var=no 10958 ;; 10959 10960 hpux9*) 10961 if test "$GCC" = yes; then 10962 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' 10963 else 10964 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' 10965 fi 10966 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10967 hardcode_libdir_separator=: 10968 hardcode_direct=yes 10969 10970 # hardcode_minus_L: Not really in the search PATH, 10971 # but as the default location of the library. 10972 hardcode_minus_L=yes 10973 export_dynamic_flag_spec='${wl}-E' 10974 ;; 10975 10976 hpux10*) 10977 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 10978 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10979 else 10980 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10981 fi 10982 if test "$with_gnu_ld" = no; then 10983 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10984 hardcode_libdir_separator=: 10985 10986 hardcode_direct=yes 10987 export_dynamic_flag_spec='${wl}-E' 10988 10989 # hardcode_minus_L: Not really in the search PATH, 10990 # but as the default location of the library. 10991 hardcode_minus_L=yes 10992 fi 10993 ;; 10994 10995 hpux11*) 10996 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 10997 case $host_cpu in 10998 hppa*64*) 10999 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11000 ;; 11001 ia64*) 11002 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11003 ;; 11004 *) 11005 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11006 ;; 11007 esac 11008 else 11009 case $host_cpu in 11010 hppa*64*) 11011 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11012 ;; 11013 ia64*) 11014 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11015 ;; 11016 *) 11017 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11018 ;; 11019 esac 11020 fi 11021 if test "$with_gnu_ld" = no; then 11022 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11023 hardcode_libdir_separator=: 11024 11025 case $host_cpu in 11026 hppa*64*|ia64*) 11027 hardcode_libdir_flag_spec_ld='+b $libdir' 11028 hardcode_direct=no 11029 hardcode_shlibpath_var=no 11030 ;; 11031 *) 11032 hardcode_direct=yes 11033 export_dynamic_flag_spec='${wl}-E' 11034 11035 # hardcode_minus_L: Not really in the search PATH, 11036 # but as the default location of the library. 11037 hardcode_minus_L=yes 11038 ;; 11039 esac 11040 fi 11041 ;; 11042 11043 irix5* | irix6* | nonstopux*) 11044 if test "$GCC" = yes; then 11045 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' 11046 else 11047 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' 11048 hardcode_libdir_flag_spec_ld='-rpath $libdir' 11049 fi 11050 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11051 hardcode_libdir_separator=: 11052 link_all_deplibs=yes 11053 ;; 11054 11055 netbsd*) 11056 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11057 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11058 else 11059 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11060 fi 11061 hardcode_libdir_flag_spec='-R$libdir' 11062 hardcode_direct=yes 11063 hardcode_shlibpath_var=no 11064 ;; 11065 11066 newsos6) 11067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11068 hardcode_direct=yes 11069 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11070 hardcode_libdir_separator=: 11071 hardcode_shlibpath_var=no 11072 ;; 11073 11074 openbsd*) 11075 hardcode_direct=yes 11076 hardcode_shlibpath_var=no 11077 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11078 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11079 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 11080 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11081 export_dynamic_flag_spec='${wl}-E' 11082 else 11083 case $host_os in 11084 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 11085 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11086 hardcode_libdir_flag_spec='-R$libdir' 11087 ;; 11088 *) 11089 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11090 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11091 ;; 11092 esac 11093 fi 11094 ;; 11095 11096 os2*) 11097 hardcode_libdir_flag_spec='-L$libdir' 11098 hardcode_minus_L=yes 11099 allow_undefined_flag=unsupported 11100 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' 11101 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 11102 ;; 11103 11104 osf3*) 11105 if test "$GCC" = yes; then 11106 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11107 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' 11108 else 11109 allow_undefined_flag=' -expect_unresolved \*' 11110 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' 11111 fi 11112 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11113 hardcode_libdir_separator=: 11114 ;; 11115 11116 osf4* | osf5*) # as osf3* with the addition of -msym flag 11117 if test "$GCC" = yes; then 11118 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11119 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' 11120 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11121 else 11122 allow_undefined_flag=' -expect_unresolved \*' 11123 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' 11124 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 11125 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 11126 11127 # Both c and cxx compiler support -rpath directly 11128 hardcode_libdir_flag_spec='-rpath $libdir' 11129 fi 11130 hardcode_libdir_separator=: 11131 ;; 11132 11133 solaris*) 11134 no_undefined_flag=' -z text' 11135 if test "$GCC" = yes; then 11136 wlarc='${wl}' 11137 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11138 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11139 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 11140 else 11141 wlarc='' 11142 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 11143 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11144 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 11145 fi 11146 hardcode_libdir_flag_spec='-R$libdir' 11147 hardcode_shlibpath_var=no 11148 case $host_os in 11149 solaris2.[0-5] | solaris2.[0-5].*) ;; 11150 *) 11151 # The compiler driver will combine linker options so we 11152 # cannot just pass the convience library names through 11153 # without $wl, iff we do not link with $LD. 11154 # Luckily, gcc supports the same syntax we need for Sun Studio. 11155 # Supported since Solaris 2.6 (maybe 2.5.1?) 11156 case $wlarc in 11157 '') 11158 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 11159 *) 11160 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 11161 esac ;; 11162 esac 11163 link_all_deplibs=yes 11164 ;; 11165 11166 sunos4*) 11167 if test "x$host_vendor" = xsequent; then 11168 # Use $CC to link under sequent, because it throws in some extra .o 11169 # files that make .init and .fini sections work. 11170 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11171 else 11172 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11173 fi 11174 hardcode_libdir_flag_spec='-L$libdir' 11175 hardcode_direct=yes 11176 hardcode_minus_L=yes 11177 hardcode_shlibpath_var=no 11178 ;; 11179 11180 sysv4) 11181 case $host_vendor in 11182 sni) 11183 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11184 hardcode_direct=yes # is this really true??? 11185 ;; 11186 siemens) 11187 ## LD is ld it makes a PLAMLIB 11188 ## CC just makes a GrossModule. 11189 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11190 reload_cmds='$CC -r -o $output$reload_objs' 11191 hardcode_direct=no 11192 ;; 11193 motorola) 11194 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11195 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11196 ;; 11197 esac 11198 runpath_var='LD_RUN_PATH' 11199 hardcode_shlibpath_var=no 11200 ;; 11201 11202 sysv4.3*) 11203 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11204 hardcode_shlibpath_var=no 11205 export_dynamic_flag_spec='-Bexport' 11206 ;; 11207 11208 sysv4*MP*) 11209 if test -d /usr/nec; then 11210 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11211 hardcode_shlibpath_var=no 11212 runpath_var=LD_RUN_PATH 11213 hardcode_runpath_var=yes 11214 ld_shlibs=yes 11215 fi 11216 ;; 11217 11218 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 11219 no_undefined_flag='${wl}-z,text' 11220 archive_cmds_need_lc=no 11221 hardcode_shlibpath_var=no 11222 runpath_var='LD_RUN_PATH' 11223 11224 if test "$GCC" = yes; then 11225 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11226 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11227 else 11228 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11229 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11230 fi 11231 ;; 11232 11233 sysv5* | sco3.2v5* | sco5v6*) 11234 # Note: We can NOT use -z defs as we might desire, because we do not 11235 # link with -lc, and that would cause any symbols used from libc to 11236 # always be unresolved, which means just about no library would 11237 # ever link correctly. If we're not using GNU ld we use -z text 11238 # though, which does catch some bad symbols but isn't as heavy-handed 11239 # as -z defs. 11240 no_undefined_flag='${wl}-z,text' 11241 allow_undefined_flag='${wl}-z,nodefs' 11242 archive_cmds_need_lc=no 11243 hardcode_shlibpath_var=no 11244 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11245 hardcode_libdir_separator=':' 11246 link_all_deplibs=yes 11247 export_dynamic_flag_spec='${wl}-Bexport' 11248 runpath_var='LD_RUN_PATH' 11249 11250 if test "$GCC" = yes; then 11251 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11252 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11253 else 11254 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11255 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11256 fi 11257 ;; 11258 11259 uts4*) 11260 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11261 hardcode_libdir_flag_spec='-L$libdir' 11262 hardcode_shlibpath_var=no 11263 ;; 11264 11265 *) 11266 ld_shlibs=no 11267 ;; 11268 esac 11269 fi 11270 11271echo "$as_me:$LINENO: result: $ld_shlibs" >&5 11272echo "${ECHO_T}$ld_shlibs" >&6 11273test "$ld_shlibs" = no && can_build_shared=no 11274 11275# 11276# Do we need to explicitly link libc? 11277# 11278case "x$archive_cmds_need_lc" in 11279x|xyes) 11280 # Assume -lc should be added 11281 archive_cmds_need_lc=yes 11282 11283 if test "$enable_shared" = yes && test "$GCC" = yes; then 11284 case $archive_cmds in 11285 *'~'*) 11286 # FIXME: we may have to deal with multi-command sequences. 11287 ;; 11288 '$CC '*) 11289 # Test whether the compiler implicitly links with -lc since on some 11290 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11291 # to ld, don't add -lc before -lgcc. 11292 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 11293echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 11294 $rm conftest* 11295 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11296 11297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11298 (eval $ac_compile) 2>&5 11299 ac_status=$? 11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11301 (exit $ac_status); } 2>conftest.err; then 11302 soname=conftest 11303 lib=conftest 11304 libobjs=conftest.$ac_objext 11305 deplibs= 11306 wl=$lt_prog_compiler_wl 11307 pic_flag=$lt_prog_compiler_pic 11308 compiler_flags=-v 11309 linker_flags=-v 11310 verstring= 11311 output_objdir=. 11312 libname=conftest 11313 lt_save_allow_undefined_flag=$allow_undefined_flag 11314 allow_undefined_flag= 11315 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 11316 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 11317 ac_status=$? 11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11319 (exit $ac_status); } 11320 then 11321 archive_cmds_need_lc=no 11322 else 11323 archive_cmds_need_lc=yes 11324 fi 11325 allow_undefined_flag=$lt_save_allow_undefined_flag 11326 else 11327 cat conftest.err 1>&5 11328 fi 11329 $rm conftest* 11330 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 11331echo "${ECHO_T}$archive_cmds_need_lc" >&6 11332 ;; 11333 esac 11334 fi 11335 ;; 11336esac 11337 11338echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 11339echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 11340library_names_spec= 11341libname_spec='lib$name' 11342soname_spec= 11343shrext_cmds=".so" 11344postinstall_cmds= 11345postuninstall_cmds= 11346finish_cmds= 11347finish_eval= 11348shlibpath_var= 11349shlibpath_overrides_runpath=unknown 11350version_type=none 11351dynamic_linker="$host_os ld.so" 11352sys_lib_dlsearch_path_spec="/lib /usr/lib" 11353if test "$GCC" = yes; then 11354 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11355 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 11356 # if the path contains ";" then we assume it to be the separator 11357 # otherwise default to the standard path separator (i.e. ":") - it is 11358 # assumed that no part of a normal pathname contains ";" but that should 11359 # okay in the real world where ";" in dirpaths is itself problematic. 11360 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11361 else 11362 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11363 fi 11364else 11365 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11366fi 11367need_lib_prefix=unknown 11368hardcode_into_libs=no 11369 11370# when you set need_version to no, make sure it does not cause -set_version 11371# flags to be left without arguments 11372need_version=unknown 11373 11374case $host_os in 11375aix3*) 11376 version_type=linux 11377 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11378 shlibpath_var=LIBPATH 11379 11380 # AIX 3 has no versioning support, so we append a major version to the name. 11381 soname_spec='${libname}${release}${shared_ext}$major' 11382 ;; 11383 11384aix4* | aix5*) 11385 version_type=linux 11386 need_lib_prefix=no 11387 need_version=no 11388 hardcode_into_libs=yes 11389 if test "$host_cpu" = ia64; then 11390 # AIX 5 supports IA64 11391 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11392 shlibpath_var=LD_LIBRARY_PATH 11393 else 11394 # With GCC up to 2.95.x, collect2 would create an import file 11395 # for dependence libraries. The import file would start with 11396 # the line `#! .'. This would cause the generated library to 11397 # depend on `.', always an invalid library. This was fixed in 11398 # development snapshots of GCC prior to 3.0. 11399 case $host_os in 11400 aix4 | aix4.[01] | aix4.[01].*) 11401 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11402 echo ' yes ' 11403 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 11404 : 11405 else 11406 can_build_shared=no 11407 fi 11408 ;; 11409 esac 11410 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11411 # soname into executable. Probably we can add versioning support to 11412 # collect2, so additional links can be useful in future. 11413 if test "$aix_use_runtimelinking" = yes; then 11414 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11415 # instead of lib<name>.a to let people know that these are not 11416 # typical AIX shared libraries. 11417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11418 else 11419 # We preserve .a as extension for shared libraries through AIX4.2 11420 # and later when we are not doing run time linking. 11421 library_names_spec='${libname}${release}.a $libname.a' 11422 soname_spec='${libname}${release}${shared_ext}$major' 11423 fi 11424 shlibpath_var=LIBPATH 11425 fi 11426 ;; 11427 11428amigaos*) 11429 library_names_spec='$libname.ixlibrary $libname.a' 11430 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11431 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' 11432 ;; 11433 11434beos*) 11435 library_names_spec='${libname}${shared_ext}' 11436 dynamic_linker="$host_os ld.so" 11437 shlibpath_var=LIBRARY_PATH 11438 ;; 11439 11440bsdi[45]*) 11441 version_type=linux 11442 need_version=no 11443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11444 soname_spec='${libname}${release}${shared_ext}$major' 11445 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11446 shlibpath_var=LD_LIBRARY_PATH 11447 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11448 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11449 # the default ld.so.conf also contains /usr/contrib/lib and 11450 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11451 # libtool to hard-code these into programs 11452 ;; 11453 11454cygwin* | mingw* | pw32*) 11455 version_type=windows 11456 shrext_cmds=".dll" 11457 need_version=no 11458 need_lib_prefix=no 11459 11460 case $GCC,$host_os in 11461 yes,cygwin* | yes,mingw* | yes,pw32*) 11462 library_names_spec='$libname.dll.a' 11463 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11464 postinstall_cmds='base_file=`basename \${file}`~ 11465 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 11466 dldir=$destdir/`dirname \$dlpath`~ 11467 test -d \$dldir || mkdir -p \$dldir~ 11468 $install_prog $dir/$dlname \$dldir/$dlname~ 11469 chmod a+x \$dldir/$dlname' 11470 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11471 dlpath=$dir/\$dldll~ 11472 $rm \$dlpath' 11473 shlibpath_overrides_runpath=yes 11474 11475 case $host_os in 11476 cygwin*) 11477 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11478 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11479 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11480 ;; 11481 mingw*) 11482 # MinGW DLLs use traditional 'lib' prefix 11483 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11484 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11485 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 11486 # It is most probably a Windows format PATH printed by 11487 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11488 # path with ; separators, and with drive letters. We can handle the 11489 # drive letters (cygwin fileutils understands them), so leave them, 11490 # especially as we might pass files found there to a mingw objdump, 11491 # which wouldn't understand a cygwinified path. Ahh. 11492 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11493 else 11494 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11495 fi 11496 ;; 11497 pw32*) 11498 # pw32 DLLs use 'pw' prefix rather than 'lib' 11499 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11500 ;; 11501 esac 11502 ;; 11503 11504 *) 11505 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11506 ;; 11507 esac 11508 dynamic_linker='Win32 ld.exe' 11509 # FIXME: first we should search . and the directory the executable is in 11510 shlibpath_var=PATH 11511 ;; 11512 11513darwin* | rhapsody*) 11514 dynamic_linker="$host_os dyld" 11515 version_type=darwin 11516 need_lib_prefix=no 11517 need_version=no 11518 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11519 soname_spec='${libname}${release}${major}$shared_ext' 11520 shlibpath_overrides_runpath=yes 11521 shlibpath_var=DYLD_LIBRARY_PATH 11522 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11523 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 11524 if test "$GCC" = yes; then 11525 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"` 11526 else 11527 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 11528 fi 11529 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11530 ;; 11531 11532dgux*) 11533 version_type=linux 11534 need_lib_prefix=no 11535 need_version=no 11536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11537 soname_spec='${libname}${release}${shared_ext}$major' 11538 shlibpath_var=LD_LIBRARY_PATH 11539 ;; 11540 11541freebsd1*) 11542 dynamic_linker=no 11543 ;; 11544 11545kfreebsd*-gnu) 11546 version_type=linux 11547 need_lib_prefix=no 11548 need_version=no 11549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11550 soname_spec='${libname}${release}${shared_ext}$major' 11551 shlibpath_var=LD_LIBRARY_PATH 11552 shlibpath_overrides_runpath=no 11553 hardcode_into_libs=yes 11554 dynamic_linker='GNU ld.so' 11555 ;; 11556 11557freebsd* | dragonfly*) 11558 # DragonFly does not have aout. When/if they implement a new 11559 # versioning mechanism, adjust this. 11560 if test -x /usr/bin/objformat; then 11561 objformat=`/usr/bin/objformat` 11562 else 11563 case $host_os in 11564 freebsd[123]*) objformat=aout ;; 11565 *) objformat=elf ;; 11566 esac 11567 fi 11568 version_type=freebsd-$objformat 11569 case $version_type in 11570 freebsd-elf*) 11571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11572 need_version=no 11573 need_lib_prefix=no 11574 ;; 11575 freebsd-*) 11576 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11577 need_version=yes 11578 ;; 11579 esac 11580 shlibpath_var=LD_LIBRARY_PATH 11581 case $host_os in 11582 freebsd2*) 11583 shlibpath_overrides_runpath=yes 11584 ;; 11585 freebsd3.[01]* | freebsdelf3.[01]*) 11586 shlibpath_overrides_runpath=yes 11587 hardcode_into_libs=yes 11588 ;; 11589 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11590 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11591 shlibpath_overrides_runpath=no 11592 hardcode_into_libs=yes 11593 ;; 11594 freebsd*) # from 4.6 on 11595 shlibpath_overrides_runpath=yes 11596 hardcode_into_libs=yes 11597 ;; 11598 esac 11599 ;; 11600 11601gnu*) 11602 version_type=linux 11603 need_lib_prefix=no 11604 need_version=no 11605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11606 soname_spec='${libname}${release}${shared_ext}$major' 11607 shlibpath_var=LD_LIBRARY_PATH 11608 hardcode_into_libs=yes 11609 ;; 11610 11611hpux9* | hpux10* | hpux11*) 11612 # Give a soname corresponding to the major version so that dld.sl refuses to 11613 # link against other versions. 11614 version_type=sunos 11615 need_lib_prefix=no 11616 need_version=no 11617 case $host_cpu in 11618 ia64*) 11619 shrext_cmds='.so' 11620 hardcode_into_libs=yes 11621 dynamic_linker="$host_os dld.so" 11622 shlibpath_var=LD_LIBRARY_PATH 11623 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11625 soname_spec='${libname}${release}${shared_ext}$major' 11626 if test "X$HPUX_IA64_MODE" = X32; then 11627 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11628 else 11629 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11630 fi 11631 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11632 ;; 11633 hppa*64*) 11634 shrext_cmds='.sl' 11635 hardcode_into_libs=yes 11636 dynamic_linker="$host_os dld.sl" 11637 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11638 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11640 soname_spec='${libname}${release}${shared_ext}$major' 11641 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11642 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11643 ;; 11644 *) 11645 shrext_cmds='.sl' 11646 dynamic_linker="$host_os dld.sl" 11647 shlibpath_var=SHLIB_PATH 11648 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11650 soname_spec='${libname}${release}${shared_ext}$major' 11651 ;; 11652 esac 11653 # HP-UX runs *really* slowly unless shared libraries are mode 555. 11654 postinstall_cmds='chmod 555 $lib' 11655 ;; 11656 11657interix3*) 11658 version_type=linux 11659 need_lib_prefix=no 11660 need_version=no 11661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11662 soname_spec='${libname}${release}${shared_ext}$major' 11663 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11664 shlibpath_var=LD_LIBRARY_PATH 11665 shlibpath_overrides_runpath=no 11666 hardcode_into_libs=yes 11667 ;; 11668 11669irix5* | irix6* | nonstopux*) 11670 case $host_os in 11671 nonstopux*) version_type=nonstopux ;; 11672 *) 11673 if test "$lt_cv_prog_gnu_ld" = yes; then 11674 version_type=linux 11675 else 11676 version_type=irix 11677 fi ;; 11678 esac 11679 need_lib_prefix=no 11680 need_version=no 11681 soname_spec='${libname}${release}${shared_ext}$major' 11682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11683 case $host_os in 11684 irix5* | nonstopux*) 11685 libsuff= shlibsuff= 11686 ;; 11687 *) 11688 case $LD in # libtool.m4 will add one of these switches to LD 11689 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11690 libsuff= shlibsuff= libmagic=32-bit;; 11691 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11692 libsuff=32 shlibsuff=N32 libmagic=N32;; 11693 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11694 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11695 *) libsuff= shlibsuff= libmagic=never-match;; 11696 esac 11697 ;; 11698 esac 11699 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11700 shlibpath_overrides_runpath=no 11701 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11702 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11703 hardcode_into_libs=yes 11704 ;; 11705 11706# No shared lib support for Linux oldld, aout, or coff. 11707linux*oldld* | linux*aout* | linux*coff*) 11708 dynamic_linker=no 11709 ;; 11710 11711# This must be Linux ELF. 11712linux*) 11713 version_type=linux 11714 need_lib_prefix=no 11715 need_version=no 11716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11717 soname_spec='${libname}${release}${shared_ext}$major' 11718 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11719 shlibpath_var=LD_LIBRARY_PATH 11720 shlibpath_overrides_runpath=no 11721 # This implies no fast_install, which is unacceptable. 11722 # Some rework will be needed to allow for fast_install 11723 # before this can be enabled. 11724 hardcode_into_libs=yes 11725 11726 # find out which ABI we are using 11727 libsuff= 11728 case "$host_cpu" in 11729 x86_64*|s390x*|powerpc64*) 11730 echo '#line __oline__ "configure"' > conftest.$ac_ext 11731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11732 (eval $ac_compile) 2>&5 11733 ac_status=$? 11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11735 (exit $ac_status); }; then 11736 case `/usr/bin/file conftest.$ac_objext` in 11737 *64-bit*) 11738 libsuff=64 11739 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 11740 ;; 11741 esac 11742 fi 11743 rm -rf conftest* 11744 ;; 11745 esac 11746 11747 # Append ld.so.conf contents to the search path 11748 if test -f /etc/ld.so.conf; then 11749 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 11750 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 11751 fi 11752 11753 # We used to test for /lib/ld.so.1 and disable shared libraries on 11754 # powerpc, because MkLinux only supported shared libraries with the 11755 # GNU dynamic linker. Since this was broken with cross compilers, 11756 # most powerpc-linux boxes support dynamic linking these days and 11757 # people can always --disable-shared, the test was removed, and we 11758 # assume the GNU/Linux dynamic linker is in use. 11759 dynamic_linker='GNU/Linux ld.so' 11760 ;; 11761 11762knetbsd*-gnu) 11763 version_type=linux 11764 need_lib_prefix=no 11765 need_version=no 11766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11767 soname_spec='${libname}${release}${shared_ext}$major' 11768 shlibpath_var=LD_LIBRARY_PATH 11769 shlibpath_overrides_runpath=no 11770 hardcode_into_libs=yes 11771 dynamic_linker='GNU ld.so' 11772 ;; 11773 11774netbsd*) 11775 version_type=sunos 11776 need_lib_prefix=no 11777 need_version=no 11778 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11780 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11781 dynamic_linker='NetBSD (a.out) ld.so' 11782 else 11783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11784 soname_spec='${libname}${release}${shared_ext}$major' 11785 dynamic_linker='NetBSD ld.elf_so' 11786 fi 11787 shlibpath_var=LD_LIBRARY_PATH 11788 shlibpath_overrides_runpath=yes 11789 hardcode_into_libs=yes 11790 ;; 11791 11792newsos6) 11793 version_type=linux 11794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11795 shlibpath_var=LD_LIBRARY_PATH 11796 shlibpath_overrides_runpath=yes 11797 ;; 11798 11799nto-qnx*) 11800 version_type=linux 11801 need_lib_prefix=no 11802 need_version=no 11803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11804 soname_spec='${libname}${release}${shared_ext}$major' 11805 shlibpath_var=LD_LIBRARY_PATH 11806 shlibpath_overrides_runpath=yes 11807 ;; 11808 11809openbsd*) 11810 version_type=sunos 11811 sys_lib_dlsearch_path_spec="/usr/lib" 11812 need_lib_prefix=no 11813 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11814 case $host_os in 11815 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11816 *) need_version=no ;; 11817 esac 11818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11820 shlibpath_var=LD_LIBRARY_PATH 11821 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11822 case $host_os in 11823 openbsd2.[89] | openbsd2.[89].*) 11824 shlibpath_overrides_runpath=no 11825 ;; 11826 *) 11827 shlibpath_overrides_runpath=yes 11828 ;; 11829 esac 11830 else 11831 shlibpath_overrides_runpath=yes 11832 fi 11833 ;; 11834 11835os2*) 11836 libname_spec='$name' 11837 shrext_cmds=".dll" 11838 need_lib_prefix=no 11839 library_names_spec='$libname${shared_ext} $libname.a' 11840 dynamic_linker='OS/2 ld.exe' 11841 shlibpath_var=LIBPATH 11842 ;; 11843 11844osf3* | osf4* | osf5*) 11845 version_type=osf 11846 need_lib_prefix=no 11847 need_version=no 11848 soname_spec='${libname}${release}${shared_ext}$major' 11849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11850 shlibpath_var=LD_LIBRARY_PATH 11851 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11852 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11853 ;; 11854 11855solaris*) 11856 version_type=linux 11857 need_lib_prefix=no 11858 need_version=no 11859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11860 soname_spec='${libname}${release}${shared_ext}$major' 11861 shlibpath_var=LD_LIBRARY_PATH 11862 shlibpath_overrides_runpath=yes 11863 hardcode_into_libs=yes 11864 # ldd complains unless libraries are executable 11865 postinstall_cmds='chmod +x $lib' 11866 ;; 11867 11868sunos4*) 11869 version_type=sunos 11870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11871 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11872 shlibpath_var=LD_LIBRARY_PATH 11873 shlibpath_overrides_runpath=yes 11874 if test "$with_gnu_ld" = yes; then 11875 need_lib_prefix=no 11876 fi 11877 need_version=yes 11878 ;; 11879 11880sysv4 | sysv4.3*) 11881 version_type=linux 11882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11883 soname_spec='${libname}${release}${shared_ext}$major' 11884 shlibpath_var=LD_LIBRARY_PATH 11885 case $host_vendor in 11886 sni) 11887 shlibpath_overrides_runpath=no 11888 need_lib_prefix=no 11889 export_dynamic_flag_spec='${wl}-Blargedynsym' 11890 runpath_var=LD_RUN_PATH 11891 ;; 11892 siemens) 11893 need_lib_prefix=no 11894 ;; 11895 motorola) 11896 need_lib_prefix=no 11897 need_version=no 11898 shlibpath_overrides_runpath=no 11899 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11900 ;; 11901 esac 11902 ;; 11903 11904sysv4*MP*) 11905 if test -d /usr/nec ;then 11906 version_type=linux 11907 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11908 soname_spec='$libname${shared_ext}.$major' 11909 shlibpath_var=LD_LIBRARY_PATH 11910 fi 11911 ;; 11912 11913sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11914 version_type=freebsd-elf 11915 need_lib_prefix=no 11916 need_version=no 11917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11918 soname_spec='${libname}${release}${shared_ext}$major' 11919 shlibpath_var=LD_LIBRARY_PATH 11920 hardcode_into_libs=yes 11921 if test "$with_gnu_ld" = yes; then 11922 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11923 shlibpath_overrides_runpath=no 11924 else 11925 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11926 shlibpath_overrides_runpath=yes 11927 case $host_os in 11928 sco3.2v5*) 11929 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11930 ;; 11931 esac 11932 fi 11933 sys_lib_dlsearch_path_spec='/usr/lib' 11934 ;; 11935 11936uts4*) 11937 version_type=linux 11938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11939 soname_spec='${libname}${release}${shared_ext}$major' 11940 shlibpath_var=LD_LIBRARY_PATH 11941 ;; 11942 11943*) 11944 dynamic_linker=no 11945 ;; 11946esac 11947echo "$as_me:$LINENO: result: $dynamic_linker" >&5 11948echo "${ECHO_T}$dynamic_linker" >&6 11949test "$dynamic_linker" = no && can_build_shared=no 11950 11951variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11952if test "$GCC" = yes; then 11953 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11954fi 11955 11956echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 11957echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 11958hardcode_action= 11959if test -n "$hardcode_libdir_flag_spec" || \ 11960 test -n "$runpath_var" || \ 11961 test "X$hardcode_automatic" = "Xyes" ; then 11962 11963 # We can hardcode non-existant directories. 11964 if test "$hardcode_direct" != no && 11965 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11966 # have to relink, otherwise we might link with an installed library 11967 # when we should be linking with a yet-to-be-installed one 11968 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 11969 test "$hardcode_minus_L" != no; then 11970 # Linking always hardcodes the temporary library directory. 11971 hardcode_action=relink 11972 else 11973 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11974 hardcode_action=immediate 11975 fi 11976else 11977 # We cannot hardcode anything, or else we can only hardcode existing 11978 # directories. 11979 hardcode_action=unsupported 11980fi 11981echo "$as_me:$LINENO: result: $hardcode_action" >&5 11982echo "${ECHO_T}$hardcode_action" >&6 11983 11984if test "$hardcode_action" = relink; then 11985 # Fast installation is not supported 11986 enable_fast_install=no 11987elif test "$shlibpath_overrides_runpath" = yes || 11988 test "$enable_shared" = no; then 11989 # Fast installation is not necessary 11990 enable_fast_install=needless 11991fi 11992 11993striplib= 11994old_striplib= 11995echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 11996echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 11997if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 11998 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11999 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12000 echo "$as_me:$LINENO: result: yes" >&5 12001echo "${ECHO_T}yes" >&6 12002else 12003# FIXME - insert some real tests, host_os isn't really good enough 12004 case $host_os in 12005 darwin*) 12006 if test -n "$STRIP" ; then 12007 striplib="$STRIP -x" 12008 echo "$as_me:$LINENO: result: yes" >&5 12009echo "${ECHO_T}yes" >&6 12010 else 12011 echo "$as_me:$LINENO: result: no" >&5 12012echo "${ECHO_T}no" >&6 12013fi 12014 ;; 12015 *) 12016 echo "$as_me:$LINENO: result: no" >&5 12017echo "${ECHO_T}no" >&6 12018 ;; 12019 esac 12020fi 12021 12022if test "x$enable_dlopen" != xyes; then 12023 enable_dlopen=unknown 12024 enable_dlopen_self=unknown 12025 enable_dlopen_self_static=unknown 12026else 12027 lt_cv_dlopen=no 12028 lt_cv_dlopen_libs= 12029 12030 case $host_os in 12031 beos*) 12032 lt_cv_dlopen="load_add_on" 12033 lt_cv_dlopen_libs= 12034 lt_cv_dlopen_self=yes 12035 ;; 12036 12037 mingw* | pw32*) 12038 lt_cv_dlopen="LoadLibrary" 12039 lt_cv_dlopen_libs= 12040 ;; 12041 12042 cygwin*) 12043 lt_cv_dlopen="dlopen" 12044 lt_cv_dlopen_libs= 12045 ;; 12046 12047 darwin*) 12048 # if libdl is installed we need to link against it 12049 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12050echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 12051if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12052 echo $ECHO_N "(cached) $ECHO_C" >&6 12053else 12054 ac_check_lib_save_LIBS=$LIBS 12055LIBS="-ldl $LIBS" 12056cat >conftest.$ac_ext <<_ACEOF 12057/* confdefs.h. */ 12058_ACEOF 12059cat confdefs.h >>conftest.$ac_ext 12060cat >>conftest.$ac_ext <<_ACEOF 12061/* end confdefs.h. */ 12062 12063/* Override any gcc2 internal prototype to avoid an error. */ 12064#ifdef __cplusplus 12065extern "C" 12066#endif 12067/* We use char because int might match the return type of a gcc2 12068 builtin and then its argument prototype would still apply. */ 12069char dlopen (); 12070int 12071main () 12072{ 12073dlopen (); 12074 ; 12075 return 0; 12076} 12077_ACEOF 12078rm -f conftest.$ac_objext conftest$ac_exeext 12079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12080 (eval $ac_link) 2>conftest.er1 12081 ac_status=$? 12082 grep -v '^ *+' conftest.er1 >conftest.err 12083 rm -f conftest.er1 12084 cat conftest.err >&5 12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12086 (exit $ac_status); } && 12087 { ac_try='test -z "$ac_c_werror_flag" 12088 || test ! -s conftest.err' 12089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12090 (eval $ac_try) 2>&5 12091 ac_status=$? 12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12093 (exit $ac_status); }; } && 12094 { ac_try='test -s conftest$ac_exeext' 12095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12096 (eval $ac_try) 2>&5 12097 ac_status=$? 12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12099 (exit $ac_status); }; }; then 12100 ac_cv_lib_dl_dlopen=yes 12101else 12102 echo "$as_me: failed program was:" >&5 12103sed 's/^/| /' conftest.$ac_ext >&5 12104 12105ac_cv_lib_dl_dlopen=no 12106fi 12107rm -f conftest.err conftest.$ac_objext \ 12108 conftest$ac_exeext conftest.$ac_ext 12109LIBS=$ac_check_lib_save_LIBS 12110fi 12111echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12112echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 12113if test $ac_cv_lib_dl_dlopen = yes; then 12114 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12115else 12116 12117 lt_cv_dlopen="dyld" 12118 lt_cv_dlopen_libs= 12119 lt_cv_dlopen_self=yes 12120 12121fi 12122 12123 ;; 12124 12125 *) 12126 echo "$as_me:$LINENO: checking for shl_load" >&5 12127echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 12128if test "${ac_cv_func_shl_load+set}" = set; then 12129 echo $ECHO_N "(cached) $ECHO_C" >&6 12130else 12131 cat >conftest.$ac_ext <<_ACEOF 12132/* confdefs.h. */ 12133_ACEOF 12134cat confdefs.h >>conftest.$ac_ext 12135cat >>conftest.$ac_ext <<_ACEOF 12136/* end confdefs.h. */ 12137/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 12138 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12139#define shl_load innocuous_shl_load 12140 12141/* System header to define __stub macros and hopefully few prototypes, 12142 which can conflict with char shl_load (); below. 12143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12144 <limits.h> exists even on freestanding compilers. */ 12145 12146#ifdef __STDC__ 12147# include <limits.h> 12148#else 12149# include <assert.h> 12150#endif 12151 12152#undef shl_load 12153 12154/* Override any gcc2 internal prototype to avoid an error. */ 12155#ifdef __cplusplus 12156extern "C" 12157{ 12158#endif 12159/* We use char because int might match the return type of a gcc2 12160 builtin and then its argument prototype would still apply. */ 12161char shl_load (); 12162/* The GNU C library defines this for functions which it implements 12163 to always fail with ENOSYS. Some functions are actually named 12164 something starting with __ and the normal name is an alias. */ 12165#if defined (__stub_shl_load) || defined (__stub___shl_load) 12166choke me 12167#else 12168char (*f) () = shl_load; 12169#endif 12170#ifdef __cplusplus 12171} 12172#endif 12173 12174int 12175main () 12176{ 12177return f != shl_load; 12178 ; 12179 return 0; 12180} 12181_ACEOF 12182rm -f conftest.$ac_objext conftest$ac_exeext 12183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12184 (eval $ac_link) 2>conftest.er1 12185 ac_status=$? 12186 grep -v '^ *+' conftest.er1 >conftest.err 12187 rm -f conftest.er1 12188 cat conftest.err >&5 12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12190 (exit $ac_status); } && 12191 { ac_try='test -z "$ac_c_werror_flag" 12192 || test ! -s conftest.err' 12193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12194 (eval $ac_try) 2>&5 12195 ac_status=$? 12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12197 (exit $ac_status); }; } && 12198 { ac_try='test -s conftest$ac_exeext' 12199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12200 (eval $ac_try) 2>&5 12201 ac_status=$? 12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12203 (exit $ac_status); }; }; then 12204 ac_cv_func_shl_load=yes 12205else 12206 echo "$as_me: failed program was:" >&5 12207sed 's/^/| /' conftest.$ac_ext >&5 12208 12209ac_cv_func_shl_load=no 12210fi 12211rm -f conftest.err conftest.$ac_objext \ 12212 conftest$ac_exeext conftest.$ac_ext 12213fi 12214echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 12215echo "${ECHO_T}$ac_cv_func_shl_load" >&6 12216if test $ac_cv_func_shl_load = yes; then 12217 lt_cv_dlopen="shl_load" 12218else 12219 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 12220echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 12221if test "${ac_cv_lib_dld_shl_load+set}" = set; then 12222 echo $ECHO_N "(cached) $ECHO_C" >&6 12223else 12224 ac_check_lib_save_LIBS=$LIBS 12225LIBS="-ldld $LIBS" 12226cat >conftest.$ac_ext <<_ACEOF 12227/* confdefs.h. */ 12228_ACEOF 12229cat confdefs.h >>conftest.$ac_ext 12230cat >>conftest.$ac_ext <<_ACEOF 12231/* end confdefs.h. */ 12232 12233/* Override any gcc2 internal prototype to avoid an error. */ 12234#ifdef __cplusplus 12235extern "C" 12236#endif 12237/* We use char because int might match the return type of a gcc2 12238 builtin and then its argument prototype would still apply. */ 12239char shl_load (); 12240int 12241main () 12242{ 12243shl_load (); 12244 ; 12245 return 0; 12246} 12247_ACEOF 12248rm -f conftest.$ac_objext conftest$ac_exeext 12249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12250 (eval $ac_link) 2>conftest.er1 12251 ac_status=$? 12252 grep -v '^ *+' conftest.er1 >conftest.err 12253 rm -f conftest.er1 12254 cat conftest.err >&5 12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12256 (exit $ac_status); } && 12257 { ac_try='test -z "$ac_c_werror_flag" 12258 || test ! -s conftest.err' 12259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12260 (eval $ac_try) 2>&5 12261 ac_status=$? 12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12263 (exit $ac_status); }; } && 12264 { ac_try='test -s conftest$ac_exeext' 12265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12266 (eval $ac_try) 2>&5 12267 ac_status=$? 12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12269 (exit $ac_status); }; }; then 12270 ac_cv_lib_dld_shl_load=yes 12271else 12272 echo "$as_me: failed program was:" >&5 12273sed 's/^/| /' conftest.$ac_ext >&5 12274 12275ac_cv_lib_dld_shl_load=no 12276fi 12277rm -f conftest.err conftest.$ac_objext \ 12278 conftest$ac_exeext conftest.$ac_ext 12279LIBS=$ac_check_lib_save_LIBS 12280fi 12281echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 12282echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 12283if test $ac_cv_lib_dld_shl_load = yes; then 12284 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 12285else 12286 echo "$as_me:$LINENO: checking for dlopen" >&5 12287echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 12288if test "${ac_cv_func_dlopen+set}" = set; then 12289 echo $ECHO_N "(cached) $ECHO_C" >&6 12290else 12291 cat >conftest.$ac_ext <<_ACEOF 12292/* confdefs.h. */ 12293_ACEOF 12294cat confdefs.h >>conftest.$ac_ext 12295cat >>conftest.$ac_ext <<_ACEOF 12296/* end confdefs.h. */ 12297/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 12298 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12299#define dlopen innocuous_dlopen 12300 12301/* System header to define __stub macros and hopefully few prototypes, 12302 which can conflict with char dlopen (); below. 12303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12304 <limits.h> exists even on freestanding compilers. */ 12305 12306#ifdef __STDC__ 12307# include <limits.h> 12308#else 12309# include <assert.h> 12310#endif 12311 12312#undef dlopen 12313 12314/* Override any gcc2 internal prototype to avoid an error. */ 12315#ifdef __cplusplus 12316extern "C" 12317{ 12318#endif 12319/* We use char because int might match the return type of a gcc2 12320 builtin and then its argument prototype would still apply. */ 12321char dlopen (); 12322/* The GNU C library defines this for functions which it implements 12323 to always fail with ENOSYS. Some functions are actually named 12324 something starting with __ and the normal name is an alias. */ 12325#if defined (__stub_dlopen) || defined (__stub___dlopen) 12326choke me 12327#else 12328char (*f) () = dlopen; 12329#endif 12330#ifdef __cplusplus 12331} 12332#endif 12333 12334int 12335main () 12336{ 12337return f != dlopen; 12338 ; 12339 return 0; 12340} 12341_ACEOF 12342rm -f conftest.$ac_objext conftest$ac_exeext 12343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12344 (eval $ac_link) 2>conftest.er1 12345 ac_status=$? 12346 grep -v '^ *+' conftest.er1 >conftest.err 12347 rm -f conftest.er1 12348 cat conftest.err >&5 12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12350 (exit $ac_status); } && 12351 { ac_try='test -z "$ac_c_werror_flag" 12352 || test ! -s conftest.err' 12353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12354 (eval $ac_try) 2>&5 12355 ac_status=$? 12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12357 (exit $ac_status); }; } && 12358 { ac_try='test -s conftest$ac_exeext' 12359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12360 (eval $ac_try) 2>&5 12361 ac_status=$? 12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12363 (exit $ac_status); }; }; then 12364 ac_cv_func_dlopen=yes 12365else 12366 echo "$as_me: failed program was:" >&5 12367sed 's/^/| /' conftest.$ac_ext >&5 12368 12369ac_cv_func_dlopen=no 12370fi 12371rm -f conftest.err conftest.$ac_objext \ 12372 conftest$ac_exeext conftest.$ac_ext 12373fi 12374echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 12375echo "${ECHO_T}$ac_cv_func_dlopen" >&6 12376if test $ac_cv_func_dlopen = yes; then 12377 lt_cv_dlopen="dlopen" 12378else 12379 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12380echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 12381if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12382 echo $ECHO_N "(cached) $ECHO_C" >&6 12383else 12384 ac_check_lib_save_LIBS=$LIBS 12385LIBS="-ldl $LIBS" 12386cat >conftest.$ac_ext <<_ACEOF 12387/* confdefs.h. */ 12388_ACEOF 12389cat confdefs.h >>conftest.$ac_ext 12390cat >>conftest.$ac_ext <<_ACEOF 12391/* end confdefs.h. */ 12392 12393/* Override any gcc2 internal prototype to avoid an error. */ 12394#ifdef __cplusplus 12395extern "C" 12396#endif 12397/* We use char because int might match the return type of a gcc2 12398 builtin and then its argument prototype would still apply. */ 12399char dlopen (); 12400int 12401main () 12402{ 12403dlopen (); 12404 ; 12405 return 0; 12406} 12407_ACEOF 12408rm -f conftest.$ac_objext conftest$ac_exeext 12409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12410 (eval $ac_link) 2>conftest.er1 12411 ac_status=$? 12412 grep -v '^ *+' conftest.er1 >conftest.err 12413 rm -f conftest.er1 12414 cat conftest.err >&5 12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12416 (exit $ac_status); } && 12417 { ac_try='test -z "$ac_c_werror_flag" 12418 || test ! -s conftest.err' 12419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12420 (eval $ac_try) 2>&5 12421 ac_status=$? 12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12423 (exit $ac_status); }; } && 12424 { ac_try='test -s conftest$ac_exeext' 12425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12426 (eval $ac_try) 2>&5 12427 ac_status=$? 12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12429 (exit $ac_status); }; }; then 12430 ac_cv_lib_dl_dlopen=yes 12431else 12432 echo "$as_me: failed program was:" >&5 12433sed 's/^/| /' conftest.$ac_ext >&5 12434 12435ac_cv_lib_dl_dlopen=no 12436fi 12437rm -f conftest.err conftest.$ac_objext \ 12438 conftest$ac_exeext conftest.$ac_ext 12439LIBS=$ac_check_lib_save_LIBS 12440fi 12441echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12442echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 12443if test $ac_cv_lib_dl_dlopen = yes; then 12444 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12445else 12446 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 12447echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 12448if test "${ac_cv_lib_svld_dlopen+set}" = set; then 12449 echo $ECHO_N "(cached) $ECHO_C" >&6 12450else 12451 ac_check_lib_save_LIBS=$LIBS 12452LIBS="-lsvld $LIBS" 12453cat >conftest.$ac_ext <<_ACEOF 12454/* confdefs.h. */ 12455_ACEOF 12456cat confdefs.h >>conftest.$ac_ext 12457cat >>conftest.$ac_ext <<_ACEOF 12458/* end confdefs.h. */ 12459 12460/* Override any gcc2 internal prototype to avoid an error. */ 12461#ifdef __cplusplus 12462extern "C" 12463#endif 12464/* We use char because int might match the return type of a gcc2 12465 builtin and then its argument prototype would still apply. */ 12466char dlopen (); 12467int 12468main () 12469{ 12470dlopen (); 12471 ; 12472 return 0; 12473} 12474_ACEOF 12475rm -f conftest.$ac_objext conftest$ac_exeext 12476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12477 (eval $ac_link) 2>conftest.er1 12478 ac_status=$? 12479 grep -v '^ *+' conftest.er1 >conftest.err 12480 rm -f conftest.er1 12481 cat conftest.err >&5 12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12483 (exit $ac_status); } && 12484 { ac_try='test -z "$ac_c_werror_flag" 12485 || test ! -s conftest.err' 12486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12487 (eval $ac_try) 2>&5 12488 ac_status=$? 12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12490 (exit $ac_status); }; } && 12491 { ac_try='test -s conftest$ac_exeext' 12492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12493 (eval $ac_try) 2>&5 12494 ac_status=$? 12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12496 (exit $ac_status); }; }; then 12497 ac_cv_lib_svld_dlopen=yes 12498else 12499 echo "$as_me: failed program was:" >&5 12500sed 's/^/| /' conftest.$ac_ext >&5 12501 12502ac_cv_lib_svld_dlopen=no 12503fi 12504rm -f conftest.err conftest.$ac_objext \ 12505 conftest$ac_exeext conftest.$ac_ext 12506LIBS=$ac_check_lib_save_LIBS 12507fi 12508echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 12509echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 12510if test $ac_cv_lib_svld_dlopen = yes; then 12511 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12512else 12513 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 12514echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 12515if test "${ac_cv_lib_dld_dld_link+set}" = set; then 12516 echo $ECHO_N "(cached) $ECHO_C" >&6 12517else 12518 ac_check_lib_save_LIBS=$LIBS 12519LIBS="-ldld $LIBS" 12520cat >conftest.$ac_ext <<_ACEOF 12521/* confdefs.h. */ 12522_ACEOF 12523cat confdefs.h >>conftest.$ac_ext 12524cat >>conftest.$ac_ext <<_ACEOF 12525/* end confdefs.h. */ 12526 12527/* Override any gcc2 internal prototype to avoid an error. */ 12528#ifdef __cplusplus 12529extern "C" 12530#endif 12531/* We use char because int might match the return type of a gcc2 12532 builtin and then its argument prototype would still apply. */ 12533char dld_link (); 12534int 12535main () 12536{ 12537dld_link (); 12538 ; 12539 return 0; 12540} 12541_ACEOF 12542rm -f conftest.$ac_objext conftest$ac_exeext 12543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12544 (eval $ac_link) 2>conftest.er1 12545 ac_status=$? 12546 grep -v '^ *+' conftest.er1 >conftest.err 12547 rm -f conftest.er1 12548 cat conftest.err >&5 12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12550 (exit $ac_status); } && 12551 { ac_try='test -z "$ac_c_werror_flag" 12552 || test ! -s conftest.err' 12553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12554 (eval $ac_try) 2>&5 12555 ac_status=$? 12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12557 (exit $ac_status); }; } && 12558 { ac_try='test -s conftest$ac_exeext' 12559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12560 (eval $ac_try) 2>&5 12561 ac_status=$? 12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12563 (exit $ac_status); }; }; then 12564 ac_cv_lib_dld_dld_link=yes 12565else 12566 echo "$as_me: failed program was:" >&5 12567sed 's/^/| /' conftest.$ac_ext >&5 12568 12569ac_cv_lib_dld_dld_link=no 12570fi 12571rm -f conftest.err conftest.$ac_objext \ 12572 conftest$ac_exeext conftest.$ac_ext 12573LIBS=$ac_check_lib_save_LIBS 12574fi 12575echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 12576echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 12577if test $ac_cv_lib_dld_dld_link = yes; then 12578 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 12579fi 12580 12581 12582fi 12583 12584 12585fi 12586 12587 12588fi 12589 12590 12591fi 12592 12593 12594fi 12595 12596 ;; 12597 esac 12598 12599 if test "x$lt_cv_dlopen" != xno; then 12600 enable_dlopen=yes 12601 else 12602 enable_dlopen=no 12603 fi 12604 12605 case $lt_cv_dlopen in 12606 dlopen) 12607 save_CPPFLAGS="$CPPFLAGS" 12608 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12609 12610 save_LDFLAGS="$LDFLAGS" 12611 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12612 12613 save_LIBS="$LIBS" 12614 LIBS="$lt_cv_dlopen_libs $LIBS" 12615 12616 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 12617echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 12618if test "${lt_cv_dlopen_self+set}" = set; then 12619 echo $ECHO_N "(cached) $ECHO_C" >&6 12620else 12621 if test "$cross_compiling" = yes; then : 12622 lt_cv_dlopen_self=cross 12623else 12624 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12625 lt_status=$lt_dlunknown 12626 cat > conftest.$ac_ext <<EOF 12627#line __oline__ "configure" 12628#include "confdefs.h" 12629 12630#if HAVE_DLFCN_H 12631#include <dlfcn.h> 12632#endif 12633 12634#include <stdio.h> 12635 12636#ifdef RTLD_GLOBAL 12637# define LT_DLGLOBAL RTLD_GLOBAL 12638#else 12639# ifdef DL_GLOBAL 12640# define LT_DLGLOBAL DL_GLOBAL 12641# else 12642# define LT_DLGLOBAL 0 12643# endif 12644#endif 12645 12646/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12647 find out it does not work in some platform. */ 12648#ifndef LT_DLLAZY_OR_NOW 12649# ifdef RTLD_LAZY 12650# define LT_DLLAZY_OR_NOW RTLD_LAZY 12651# else 12652# ifdef DL_LAZY 12653# define LT_DLLAZY_OR_NOW DL_LAZY 12654# else 12655# ifdef RTLD_NOW 12656# define LT_DLLAZY_OR_NOW RTLD_NOW 12657# else 12658# ifdef DL_NOW 12659# define LT_DLLAZY_OR_NOW DL_NOW 12660# else 12661# define LT_DLLAZY_OR_NOW 0 12662# endif 12663# endif 12664# endif 12665# endif 12666#endif 12667 12668#ifdef __cplusplus 12669extern "C" void exit (int); 12670#endif 12671 12672void fnord() { int i=42;} 12673int main () 12674{ 12675 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12676 int status = $lt_dlunknown; 12677 12678 if (self) 12679 { 12680 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12681 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12682 /* dlclose (self); */ 12683 } 12684 else 12685 puts (dlerror ()); 12686 12687 exit (status); 12688} 12689EOF 12690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12691 (eval $ac_link) 2>&5 12692 ac_status=$? 12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12694 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12695 (./conftest; exit; ) >&5 2>/dev/null 12696 lt_status=$? 12697 case x$lt_status in 12698 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12699 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12700 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12701 esac 12702 else : 12703 # compilation failed 12704 lt_cv_dlopen_self=no 12705 fi 12706fi 12707rm -fr conftest* 12708 12709 12710fi 12711echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 12712echo "${ECHO_T}$lt_cv_dlopen_self" >&6 12713 12714 if test "x$lt_cv_dlopen_self" = xyes; then 12715 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12716 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 12717echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 12718if test "${lt_cv_dlopen_self_static+set}" = set; then 12719 echo $ECHO_N "(cached) $ECHO_C" >&6 12720else 12721 if test "$cross_compiling" = yes; then : 12722 lt_cv_dlopen_self_static=cross 12723else 12724 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12725 lt_status=$lt_dlunknown 12726 cat > conftest.$ac_ext <<EOF 12727#line __oline__ "configure" 12728#include "confdefs.h" 12729 12730#if HAVE_DLFCN_H 12731#include <dlfcn.h> 12732#endif 12733 12734#include <stdio.h> 12735 12736#ifdef RTLD_GLOBAL 12737# define LT_DLGLOBAL RTLD_GLOBAL 12738#else 12739# ifdef DL_GLOBAL 12740# define LT_DLGLOBAL DL_GLOBAL 12741# else 12742# define LT_DLGLOBAL 0 12743# endif 12744#endif 12745 12746/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12747 find out it does not work in some platform. */ 12748#ifndef LT_DLLAZY_OR_NOW 12749# ifdef RTLD_LAZY 12750# define LT_DLLAZY_OR_NOW RTLD_LAZY 12751# else 12752# ifdef DL_LAZY 12753# define LT_DLLAZY_OR_NOW DL_LAZY 12754# else 12755# ifdef RTLD_NOW 12756# define LT_DLLAZY_OR_NOW RTLD_NOW 12757# else 12758# ifdef DL_NOW 12759# define LT_DLLAZY_OR_NOW DL_NOW 12760# else 12761# define LT_DLLAZY_OR_NOW 0 12762# endif 12763# endif 12764# endif 12765# endif 12766#endif 12767 12768#ifdef __cplusplus 12769extern "C" void exit (int); 12770#endif 12771 12772void fnord() { int i=42;} 12773int main () 12774{ 12775 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12776 int status = $lt_dlunknown; 12777 12778 if (self) 12779 { 12780 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12781 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12782 /* dlclose (self); */ 12783 } 12784 else 12785 puts (dlerror ()); 12786 12787 exit (status); 12788} 12789EOF 12790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12791 (eval $ac_link) 2>&5 12792 ac_status=$? 12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12794 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12795 (./conftest; exit; ) >&5 2>/dev/null 12796 lt_status=$? 12797 case x$lt_status in 12798 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12799 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12800 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12801 esac 12802 else : 12803 # compilation failed 12804 lt_cv_dlopen_self_static=no 12805 fi 12806fi 12807rm -fr conftest* 12808 12809 12810fi 12811echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 12812echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 12813 fi 12814 12815 CPPFLAGS="$save_CPPFLAGS" 12816 LDFLAGS="$save_LDFLAGS" 12817 LIBS="$save_LIBS" 12818 ;; 12819 esac 12820 12821 case $lt_cv_dlopen_self in 12822 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12823 *) enable_dlopen_self=unknown ;; 12824 esac 12825 12826 case $lt_cv_dlopen_self_static in 12827 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12828 *) enable_dlopen_self_static=unknown ;; 12829 esac 12830fi 12831 12832 12833# Report which library types will actually be built 12834echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 12835echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 12836echo "$as_me:$LINENO: result: $can_build_shared" >&5 12837echo "${ECHO_T}$can_build_shared" >&6 12838 12839echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 12840echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 12841test "$can_build_shared" = "no" && enable_shared=no 12842 12843# On AIX, shared libraries and static libraries use the same namespace, and 12844# are all built from PIC. 12845case $host_os in 12846aix3*) 12847 test "$enable_shared" = yes && enable_static=no 12848 if test -n "$RANLIB"; then 12849 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12850 postinstall_cmds='$RANLIB $lib' 12851 fi 12852 ;; 12853 12854aix4* | aix5*) 12855 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12856 test "$enable_shared" = yes && enable_static=no 12857 fi 12858 ;; 12859esac 12860echo "$as_me:$LINENO: result: $enable_shared" >&5 12861echo "${ECHO_T}$enable_shared" >&6 12862 12863echo "$as_me:$LINENO: checking whether to build static libraries" >&5 12864echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 12865# Make sure either enable_shared or enable_static is yes. 12866test "$enable_shared" = yes || enable_static=yes 12867echo "$as_me:$LINENO: result: $enable_static" >&5 12868echo "${ECHO_T}$enable_static" >&6 12869 12870# The else clause should only fire when bootstrapping the 12871# libtool distribution, otherwise you forgot to ship ltmain.sh 12872# with your package, and you will get complaints that there are 12873# no rules to generate ltmain.sh. 12874if test -f "$ltmain"; then 12875 # See if we are running on zsh, and set the options which allow our commands through 12876 # without removal of \ escapes. 12877 if test -n "${ZSH_VERSION+set}" ; then 12878 setopt NO_GLOB_SUBST 12879 fi 12880 # Now quote all the things that may contain metacharacters while being 12881 # careful not to overquote the AC_SUBSTed values. We take copies of the 12882 # variables and quote the copies for generation of the libtool script. 12883 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 12884 SED SHELL STRIP \ 12885 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 12886 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 12887 deplibs_check_method reload_flag reload_cmds need_locks \ 12888 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 12889 lt_cv_sys_global_symbol_to_c_name_address \ 12890 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 12891 old_postinstall_cmds old_postuninstall_cmds \ 12892 compiler \ 12893 CC \ 12894 LD \ 12895 lt_prog_compiler_wl \ 12896 lt_prog_compiler_pic \ 12897 lt_prog_compiler_static \ 12898 lt_prog_compiler_no_builtin_flag \ 12899 export_dynamic_flag_spec \ 12900 thread_safe_flag_spec \ 12901 whole_archive_flag_spec \ 12902 enable_shared_with_static_runtimes \ 12903 old_archive_cmds \ 12904 old_archive_from_new_cmds \ 12905 predep_objects \ 12906 postdep_objects \ 12907 predeps \ 12908 postdeps \ 12909 compiler_lib_search_path \ 12910 archive_cmds \ 12911 archive_expsym_cmds \ 12912 postinstall_cmds \ 12913 postuninstall_cmds \ 12914 old_archive_from_expsyms_cmds \ 12915 allow_undefined_flag \ 12916 no_undefined_flag \ 12917 export_symbols_cmds \ 12918 hardcode_libdir_flag_spec \ 12919 hardcode_libdir_flag_spec_ld \ 12920 hardcode_libdir_separator \ 12921 hardcode_automatic \ 12922 module_cmds \ 12923 module_expsym_cmds \ 12924 lt_cv_prog_compiler_c_o \ 12925 exclude_expsyms \ 12926 include_expsyms; do 12927 12928 case $var in 12929 old_archive_cmds | \ 12930 old_archive_from_new_cmds | \ 12931 archive_cmds | \ 12932 archive_expsym_cmds | \ 12933 module_cmds | \ 12934 module_expsym_cmds | \ 12935 old_archive_from_expsyms_cmds | \ 12936 export_symbols_cmds | \ 12937 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 12938 postinstall_cmds | postuninstall_cmds | \ 12939 old_postinstall_cmds | old_postuninstall_cmds | \ 12940 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 12941 # Double-quote double-evaled strings. 12942 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 12943 ;; 12944 *) 12945 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 12946 ;; 12947 esac 12948 done 12949 12950 case $lt_echo in 12951 *'\$0 --fallback-echo"') 12952 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 12953 ;; 12954 esac 12955 12956cfgfile="${ofile}T" 12957 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 12958 $rm -f "$cfgfile" 12959 { echo "$as_me:$LINENO: creating $ofile" >&5 12960echo "$as_me: creating $ofile" >&6;} 12961 12962 cat <<__EOF__ >> "$cfgfile" 12963#! $SHELL 12964 12965# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 12966# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 12967# NOTE: Changes made to this file will be lost: look at ltmain.sh. 12968# 12969# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 12970# Free Software Foundation, Inc. 12971# 12972# This file is part of GNU Libtool: 12973# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 12974# 12975# This program is free software; you can redistribute it and/or modify 12976# it under the terms of the GNU General Public License as published by 12977# the Free Software Foundation; either version 2 of the License, or 12978# (at your option) any later version. 12979# 12980# This program is distributed in the hope that it will be useful, but 12981# WITHOUT ANY WARRANTY; without even the implied warranty of 12982# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12983# General Public License for more details. 12984# 12985# You should have received a copy of the GNU General Public License 12986# along with this program; if not, write to the Free Software 12987# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 12988# 12989# As a special exception to the GNU General Public License, if you 12990# distribute this file as part of a program that contains a 12991# configuration script generated by Autoconf, you may include it under 12992# the same distribution terms that you use for the rest of that program. 12993 12994# A sed program that does not truncate output. 12995SED=$lt_SED 12996 12997# Sed that helps us avoid accidentally triggering echo(1) options like -n. 12998Xsed="$SED -e 1s/^X//" 12999 13000# The HP-UX ksh and POSIX shell print the target directory to stdout 13001# if CDPATH is set. 13002(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13003 13004# The names of the tagged configurations supported by this script. 13005available_tags= 13006 13007# ### BEGIN LIBTOOL CONFIG 13008 13009# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13010 13011# Shell to use when invoking shell scripts. 13012SHELL=$lt_SHELL 13013 13014# Whether or not to build shared libraries. 13015build_libtool_libs=$enable_shared 13016 13017# Whether or not to build static libraries. 13018build_old_libs=$enable_static 13019 13020# Whether or not to add -lc for building shared libraries. 13021build_libtool_need_lc=$archive_cmds_need_lc 13022 13023# Whether or not to disallow shared libs when runtime libs are static 13024allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 13025 13026# Whether or not to optimize for fast installation. 13027fast_install=$enable_fast_install 13028 13029# The host system. 13030host_alias=$host_alias 13031host=$host 13032host_os=$host_os 13033 13034# The build system. 13035build_alias=$build_alias 13036build=$build 13037build_os=$build_os 13038 13039# An echo program that does not interpret backslashes. 13040echo=$lt_echo 13041 13042# The archiver. 13043AR=$lt_AR 13044AR_FLAGS=$lt_AR_FLAGS 13045 13046# A C compiler. 13047LTCC=$lt_LTCC 13048 13049# LTCC compiler flags. 13050LTCFLAGS=$lt_LTCFLAGS 13051 13052# A language-specific compiler. 13053CC=$lt_compiler 13054 13055# Is the compiler the GNU C compiler? 13056with_gcc=$GCC 13057 13058gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 13059gcc_ver=\`gcc -dumpversion\` 13060 13061# An ERE matcher. 13062EGREP=$lt_EGREP 13063 13064# The linker used to build libraries. 13065LD=$lt_LD 13066 13067# Whether we need hard or soft links. 13068LN_S=$lt_LN_S 13069 13070# A BSD-compatible nm program. 13071NM=$lt_NM 13072 13073# A symbol stripping program 13074STRIP=$lt_STRIP 13075 13076# Used to examine libraries when file_magic_cmd begins "file" 13077MAGIC_CMD=$MAGIC_CMD 13078 13079# Used on cygwin: DLL creation program. 13080DLLTOOL="$DLLTOOL" 13081 13082# Used on cygwin: object dumper. 13083OBJDUMP="$OBJDUMP" 13084 13085# Used on cygwin: assembler. 13086AS="$AS" 13087 13088# The name of the directory that contains temporary libtool files. 13089objdir=$objdir 13090 13091# How to create reloadable object files. 13092reload_flag=$lt_reload_flag 13093reload_cmds=$lt_reload_cmds 13094 13095# How to pass a linker flag through the compiler. 13096wl=$lt_lt_prog_compiler_wl 13097 13098# Object file suffix (normally "o"). 13099objext="$ac_objext" 13100 13101# Old archive suffix (normally "a"). 13102libext="$libext" 13103 13104# Shared library suffix (normally ".so"). 13105shrext_cmds='$shrext_cmds' 13106 13107# Executable file suffix (normally ""). 13108exeext="$exeext" 13109 13110# Additional compiler flags for building library objects. 13111pic_flag=$lt_lt_prog_compiler_pic 13112pic_mode=$pic_mode 13113 13114# What is the maximum length of a command? 13115max_cmd_len=$lt_cv_sys_max_cmd_len 13116 13117# Does compiler simultaneously support -c and -o options? 13118compiler_c_o=$lt_lt_cv_prog_compiler_c_o 13119 13120# Must we lock files when doing compilation? 13121need_locks=$lt_need_locks 13122 13123# Do we need the lib prefix for modules? 13124need_lib_prefix=$need_lib_prefix 13125 13126# Do we need a version for libraries? 13127need_version=$need_version 13128 13129# Whether dlopen is supported. 13130dlopen_support=$enable_dlopen 13131 13132# Whether dlopen of programs is supported. 13133dlopen_self=$enable_dlopen_self 13134 13135# Whether dlopen of statically linked programs is supported. 13136dlopen_self_static=$enable_dlopen_self_static 13137 13138# Compiler flag to prevent dynamic linking. 13139link_static_flag=$lt_lt_prog_compiler_static 13140 13141# Compiler flag to turn off builtin functions. 13142no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 13143 13144# Compiler flag to allow reflexive dlopens. 13145export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 13146 13147# Compiler flag to generate shared objects directly from archives. 13148whole_archive_flag_spec=$lt_whole_archive_flag_spec 13149 13150# Compiler flag to generate thread-safe objects. 13151thread_safe_flag_spec=$lt_thread_safe_flag_spec 13152 13153# Library versioning type. 13154version_type=$version_type 13155 13156# Format of library name prefix. 13157libname_spec=$lt_libname_spec 13158 13159# List of archive names. First name is the real one, the rest are links. 13160# The last name is the one that the linker finds with -lNAME. 13161library_names_spec=$lt_library_names_spec 13162 13163# The coded name of the library, if different from the real name. 13164soname_spec=$lt_soname_spec 13165 13166# Commands used to build and install an old-style archive. 13167RANLIB=$lt_RANLIB 13168old_archive_cmds=$lt_old_archive_cmds 13169old_postinstall_cmds=$lt_old_postinstall_cmds 13170old_postuninstall_cmds=$lt_old_postuninstall_cmds 13171 13172# Create an old-style archive from a shared archive. 13173old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 13174 13175# Create a temporary old-style archive to link instead of a shared archive. 13176old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 13177 13178# Commands used to build and install a shared archive. 13179archive_cmds=$lt_archive_cmds 13180archive_expsym_cmds=$lt_archive_expsym_cmds 13181postinstall_cmds=$lt_postinstall_cmds 13182postuninstall_cmds=$lt_postuninstall_cmds 13183 13184# Commands used to build a loadable module (assumed same as above if empty) 13185module_cmds=$lt_module_cmds 13186module_expsym_cmds=$lt_module_expsym_cmds 13187 13188# Commands to strip libraries. 13189old_striplib=$lt_old_striplib 13190striplib=$lt_striplib 13191 13192# Dependencies to place before the objects being linked to create a 13193# shared library. 13194predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 13195 13196# Dependencies to place after the objects being linked to create a 13197# shared library. 13198postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 13199 13200# Dependencies to place before the objects being linked to create a 13201# shared library. 13202predeps=$lt_predeps 13203 13204# Dependencies to place after the objects being linked to create a 13205# shared library. 13206postdeps=$lt_postdeps 13207 13208# The library search path used internally by the compiler when linking 13209# a shared library. 13210compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 13211 13212# Method to check whether dependent libraries are shared objects. 13213deplibs_check_method=$lt_deplibs_check_method 13214 13215# Command to use when deplibs_check_method == file_magic. 13216file_magic_cmd=$lt_file_magic_cmd 13217 13218# Flag that allows shared libraries with undefined symbols to be built. 13219allow_undefined_flag=$lt_allow_undefined_flag 13220 13221# Flag that forces no undefined symbols. 13222no_undefined_flag=$lt_no_undefined_flag 13223 13224# Commands used to finish a libtool library installation in a directory. 13225finish_cmds=$lt_finish_cmds 13226 13227# Same as above, but a single script fragment to be evaled but not shown. 13228finish_eval=$lt_finish_eval 13229 13230# Take the output of nm and produce a listing of raw symbols and C names. 13231global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13232 13233# Transform the output of nm in a proper C declaration 13234global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13235 13236# Transform the output of nm in a C name address pair 13237global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13238 13239# This is the shared library runtime path variable. 13240runpath_var=$runpath_var 13241 13242# This is the shared library path variable. 13243shlibpath_var=$shlibpath_var 13244 13245# Is shlibpath searched before the hard-coded library search path? 13246shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13247 13248# How to hardcode a shared library path into an executable. 13249hardcode_action=$hardcode_action 13250 13251# Whether we should hardcode library paths into libraries. 13252hardcode_into_libs=$hardcode_into_libs 13253 13254# Flag to hardcode \$libdir into a binary during linking. 13255# This must work even if \$libdir does not exist. 13256hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 13257 13258# If ld is used when linking, flag to hardcode \$libdir into 13259# a binary during linking. This must work even if \$libdir does 13260# not exist. 13261hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 13262 13263# Whether we need a single -rpath flag with a separated argument. 13264hardcode_libdir_separator=$lt_hardcode_libdir_separator 13265 13266# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13267# resulting binary. 13268hardcode_direct=$hardcode_direct 13269 13270# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13271# resulting binary. 13272hardcode_minus_L=$hardcode_minus_L 13273 13274# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13275# the resulting binary. 13276hardcode_shlibpath_var=$hardcode_shlibpath_var 13277 13278# Set to yes if building a shared library automatically hardcodes DIR into the library 13279# and all subsequent libraries and executables linked against it. 13280hardcode_automatic=$hardcode_automatic 13281 13282# Variables whose values should be saved in libtool wrapper scripts and 13283# restored at relink time. 13284variables_saved_for_relink="$variables_saved_for_relink" 13285 13286# Whether libtool must link a program against all its dependency libraries. 13287link_all_deplibs=$link_all_deplibs 13288 13289# Compile-time system search path for libraries 13290sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 13291 13292# Run-time system search path for libraries 13293sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13294 13295# Fix the shell variable \$srcfile for the compiler. 13296fix_srcfile_path="$fix_srcfile_path" 13297 13298# Set to yes if exported symbols are required. 13299always_export_symbols=$always_export_symbols 13300 13301# The commands to list exported symbols. 13302export_symbols_cmds=$lt_export_symbols_cmds 13303 13304# The commands to extract the exported symbol list from a shared archive. 13305extract_expsyms_cmds=$lt_extract_expsyms_cmds 13306 13307# Symbols that should not be listed in the preloaded symbols. 13308exclude_expsyms=$lt_exclude_expsyms 13309 13310# Symbols that must always be exported. 13311include_expsyms=$lt_include_expsyms 13312 13313# ### END LIBTOOL CONFIG 13314 13315__EOF__ 13316 13317 13318 case $host_os in 13319 aix3*) 13320 cat <<\EOF >> "$cfgfile" 13321 13322# AIX sometimes has problems with the GCC collect2 program. For some 13323# reason, if we set the COLLECT_NAMES environment variable, the problems 13324# vanish in a puff of smoke. 13325if test "X${COLLECT_NAMES+set}" != Xset; then 13326 COLLECT_NAMES= 13327 export COLLECT_NAMES 13328fi 13329EOF 13330 ;; 13331 esac 13332 13333 # We use sed instead of cat because bash on DJGPP gets confused if 13334 # if finds mixed CR/LF and LF-only lines. Since sed operates in 13335 # text mode, it properly converts lines to CR/LF. This bash problem 13336 # is reportedly fixed, but why not run on old versions too? 13337 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 13338 13339 mv -f "$cfgfile" "$ofile" || \ 13340 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 13341 chmod +x "$ofile" 13342 13343else 13344 # If there is no Makefile yet, we rely on a make rule to execute 13345 # `config.status --recheck' to rerun these tests and create the 13346 # libtool script then. 13347 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13348 if test -f "$ltmain_in"; then 13349 test -f Makefile && make "$ltmain" 13350 fi 13351fi 13352 13353 13354ac_ext=c 13355ac_cpp='$CPP $CPPFLAGS' 13356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13358ac_compiler_gnu=$ac_cv_c_compiler_gnu 13359 13360CC="$lt_save_CC" 13361 13362 13363# Check whether --with-tags or --without-tags was given. 13364if test "${with_tags+set}" = set; then 13365 withval="$with_tags" 13366 tagnames="$withval" 13367fi; 13368 13369if test -f "$ltmain" && test -n "$tagnames"; then 13370 if test ! -f "${ofile}"; then 13371 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 13372echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 13373 fi 13374 13375 if test -z "$LTCC"; then 13376 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 13377 if test -z "$LTCC"; then 13378 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 13379echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 13380 else 13381 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 13382echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 13383 fi 13384 fi 13385 if test -z "$LTCFLAGS"; then 13386 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 13387 fi 13388 13389 # Extract list of available tagged configurations in $ofile. 13390 # Note that this assumes the entire list is on one line. 13391 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 13392 13393 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 13394 for tagname in $tagnames; do 13395 IFS="$lt_save_ifs" 13396 # Check whether tagname contains only valid characters 13397 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 13398 "") ;; 13399 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 13400echo "$as_me: error: invalid tag name: $tagname" >&2;} 13401 { (exit 1); exit 1; }; } 13402 ;; 13403 esac 13404 13405 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 13406 then 13407 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 13408echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 13409 { (exit 1); exit 1; }; } 13410 fi 13411 13412 # Update the list of available tags. 13413 if test -n "$tagname"; then 13414 echo appending configuration tag \"$tagname\" to $ofile 13415 13416 case $tagname in 13417 CXX) 13418 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 13419 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 13420 (test "X$CXX" != "Xg++"))) ; then 13421 ac_ext=cc 13422ac_cpp='$CXXCPP $CPPFLAGS' 13423ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13424ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13425ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13426 13427 13428 13429 13430archive_cmds_need_lc_CXX=no 13431allow_undefined_flag_CXX= 13432always_export_symbols_CXX=no 13433archive_expsym_cmds_CXX= 13434export_dynamic_flag_spec_CXX= 13435hardcode_direct_CXX=no 13436hardcode_libdir_flag_spec_CXX= 13437hardcode_libdir_flag_spec_ld_CXX= 13438hardcode_libdir_separator_CXX= 13439hardcode_minus_L_CXX=no 13440hardcode_shlibpath_var_CXX=unsupported 13441hardcode_automatic_CXX=no 13442module_cmds_CXX= 13443module_expsym_cmds_CXX= 13444link_all_deplibs_CXX=unknown 13445old_archive_cmds_CXX=$old_archive_cmds 13446no_undefined_flag_CXX= 13447whole_archive_flag_spec_CXX= 13448enable_shared_with_static_runtimes_CXX=no 13449 13450# Dependencies to place before and after the object being linked: 13451predep_objects_CXX= 13452postdep_objects_CXX= 13453predeps_CXX= 13454postdeps_CXX= 13455compiler_lib_search_path_CXX= 13456 13457# Source file extension for C++ test sources. 13458ac_ext=cpp 13459 13460# Object file extension for compiled C++ test sources. 13461objext=o 13462objext_CXX=$objext 13463 13464# Code to be used in simple compile tests 13465lt_simple_compile_test_code="int some_variable = 0;\n" 13466 13467# Code to be used in simple link tests 13468lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 13469 13470# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13471 13472# If no C compiler was specified, use CC. 13473LTCC=${LTCC-"$CC"} 13474 13475# If no C compiler flags were specified, use CFLAGS. 13476LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13477 13478# Allow CC to be a program name with arguments. 13479compiler=$CC 13480 13481 13482# save warnings/boilerplate of simple test code 13483ac_outfile=conftest.$ac_objext 13484printf "$lt_simple_compile_test_code" >conftest.$ac_ext 13485eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13486_lt_compiler_boilerplate=`cat conftest.err` 13487$rm conftest* 13488 13489ac_outfile=conftest.$ac_objext 13490printf "$lt_simple_link_test_code" >conftest.$ac_ext 13491eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13492_lt_linker_boilerplate=`cat conftest.err` 13493$rm conftest* 13494 13495 13496# Allow CC to be a program name with arguments. 13497lt_save_CC=$CC 13498lt_save_LD=$LD 13499lt_save_GCC=$GCC 13500GCC=$GXX 13501lt_save_with_gnu_ld=$with_gnu_ld 13502lt_save_path_LD=$lt_cv_path_LD 13503if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13504 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13505else 13506 $as_unset lt_cv_prog_gnu_ld 13507fi 13508if test -n "${lt_cv_path_LDCXX+set}"; then 13509 lt_cv_path_LD=$lt_cv_path_LDCXX 13510else 13511 $as_unset lt_cv_path_LD 13512fi 13513test -z "${LDCXX+set}" || LD=$LDCXX 13514CC=${CXX-"c++"} 13515compiler=$CC 13516compiler_CXX=$CC 13517for cc_temp in $compiler""; do 13518 case $cc_temp in 13519 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13520 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13521 \-*) ;; 13522 *) break;; 13523 esac 13524done 13525cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13526 13527 13528# We don't want -fno-exception wen compiling C++ code, so set the 13529# no_builtin_flag separately 13530if test "$GXX" = yes; then 13531 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13532else 13533 lt_prog_compiler_no_builtin_flag_CXX= 13534fi 13535 13536if test "$GXX" = yes; then 13537 # Set up default GNU C++ configuration 13538 13539 13540# Check whether --with-gnu-ld or --without-gnu-ld was given. 13541if test "${with_gnu_ld+set}" = set; then 13542 withval="$with_gnu_ld" 13543 test "$withval" = no || with_gnu_ld=yes 13544else 13545 with_gnu_ld=no 13546fi; 13547ac_prog=ld 13548if test "$GCC" = yes; then 13549 # Check if gcc -print-prog-name=ld gives a path. 13550 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 13551echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 13552 case $host in 13553 *-*-mingw*) 13554 # gcc leaves a trailing carriage return which upsets mingw 13555 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13556 *) 13557 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13558 esac 13559 case $ac_prog in 13560 # Accept absolute paths. 13561 [\\/]* | ?:[\\/]*) 13562 re_direlt='/[^/][^/]*/\.\./' 13563 # Canonicalize the pathname of ld 13564 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 13565 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 13566 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 13567 done 13568 test -z "$LD" && LD="$ac_prog" 13569 ;; 13570 "") 13571 # If it fails, then pretend we aren't using GCC. 13572 ac_prog=ld 13573 ;; 13574 *) 13575 # If it is relative, then search for the first ld in PATH. 13576 with_gnu_ld=unknown 13577 ;; 13578 esac 13579elif test "$with_gnu_ld" = yes; then 13580 echo "$as_me:$LINENO: checking for GNU ld" >&5 13581echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 13582else 13583 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 13584echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 13585fi 13586if test "${lt_cv_path_LD+set}" = set; then 13587 echo $ECHO_N "(cached) $ECHO_C" >&6 13588else 13589 if test -z "$LD"; then 13590 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 13591 for ac_dir in $PATH; do 13592 IFS="$lt_save_ifs" 13593 test -z "$ac_dir" && ac_dir=. 13594 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13595 lt_cv_path_LD="$ac_dir/$ac_prog" 13596 # Check to see if the program is GNU ld. I'd rather use --version, 13597 # but apparently some variants of GNU ld only accept -v. 13598 # Break only if it was the GNU/non-GNU ld that we prefer. 13599 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13600 *GNU* | *'with BFD'*) 13601 test "$with_gnu_ld" != no && break 13602 ;; 13603 *) 13604 test "$with_gnu_ld" != yes && break 13605 ;; 13606 esac 13607 fi 13608 done 13609 IFS="$lt_save_ifs" 13610else 13611 lt_cv_path_LD="$LD" # Let the user override the test with a path. 13612fi 13613fi 13614 13615LD="$lt_cv_path_LD" 13616if test -n "$LD"; then 13617 echo "$as_me:$LINENO: result: $LD" >&5 13618echo "${ECHO_T}$LD" >&6 13619else 13620 echo "$as_me:$LINENO: result: no" >&5 13621echo "${ECHO_T}no" >&6 13622fi 13623test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 13624echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 13625 { (exit 1); exit 1; }; } 13626echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 13627echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 13628if test "${lt_cv_prog_gnu_ld+set}" = set; then 13629 echo $ECHO_N "(cached) $ECHO_C" >&6 13630else 13631 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13632case `$LD -v 2>&1 </dev/null` in 13633*GNU* | *'with BFD'*) 13634 lt_cv_prog_gnu_ld=yes 13635 ;; 13636*) 13637 lt_cv_prog_gnu_ld=no 13638 ;; 13639esac 13640fi 13641echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 13642echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 13643with_gnu_ld=$lt_cv_prog_gnu_ld 13644 13645 13646 13647 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13648 # archiving commands below assume that GNU ld is being used. 13649 if test "$with_gnu_ld" = yes; then 13650 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13651 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' 13652 13653 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 13654 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13655 13656 # If archive_cmds runs LD, not CC, wlarc should be empty 13657 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13658 # investigate it a little bit more. (MM) 13659 wlarc='${wl}' 13660 13661 # ancient GNU ld didn't support --whole-archive et. al. 13662 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 13663 grep 'no-whole-archive' > /dev/null; then 13664 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13665 else 13666 whole_archive_flag_spec_CXX= 13667 fi 13668 else 13669 with_gnu_ld=no 13670 wlarc= 13671 13672 # A generic and very simple default shared library creation 13673 # command for GNU C++ for the case where it uses the native 13674 # linker, instead of GNU ld. If possible, this setting should 13675 # overridden to take advantage of the native linker features on 13676 # the platform it is being used on. 13677 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13678 fi 13679 13680 # Commands to make compiler produce verbose output that lists 13681 # what "hidden" libraries, object files and flags are used when 13682 # linking a shared library. 13683 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 13684 13685else 13686 GXX=no 13687 with_gnu_ld=no 13688 wlarc= 13689fi 13690 13691# PORTME: fill in a description of your system's C++ link characteristics 13692echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13693echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 13694ld_shlibs_CXX=yes 13695case $host_os in 13696 aix3*) 13697 # FIXME: insert proper C++ library support 13698 ld_shlibs_CXX=no 13699 ;; 13700 aix4* | aix5*) 13701 if test "$host_cpu" = ia64; then 13702 # On IA64, the linker does run time linking by default, so we don't 13703 # have to do anything special. 13704 aix_use_runtimelinking=no 13705 exp_sym_flag='-Bexport' 13706 no_entry_flag="" 13707 else 13708 aix_use_runtimelinking=no 13709 13710 # Test if we are trying to use run time linking or normal 13711 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13712 # need to do runtime linking. 13713 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 13714 for ld_flag in $LDFLAGS; do 13715 case $ld_flag in 13716 *-brtl*) 13717 aix_use_runtimelinking=yes 13718 break 13719 ;; 13720 esac 13721 done 13722 ;; 13723 esac 13724 13725 exp_sym_flag='-bexport' 13726 no_entry_flag='-bnoentry' 13727 fi 13728 13729 # When large executables or shared objects are built, AIX ld can 13730 # have problems creating the table of contents. If linking a library 13731 # or program results in "error TOC overflow" add -mminimal-toc to 13732 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13733 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13734 13735 archive_cmds_CXX='' 13736 hardcode_direct_CXX=yes 13737 hardcode_libdir_separator_CXX=':' 13738 link_all_deplibs_CXX=yes 13739 13740 if test "$GXX" = yes; then 13741 case $host_os in aix4.[012]|aix4.[012].*) 13742 # We only want to do this on AIX 4.2 and lower, the check 13743 # below for broken collect2 doesn't work under 4.3+ 13744 collect2name=`${CC} -print-prog-name=collect2` 13745 if test -f "$collect2name" && \ 13746 strings "$collect2name" | grep resolve_lib_name >/dev/null 13747 then 13748 # We have reworked collect2 13749 hardcode_direct_CXX=yes 13750 else 13751 # We have old collect2 13752 hardcode_direct_CXX=unsupported 13753 # It fails to find uninstalled libraries when the uninstalled 13754 # path is not listed in the libpath. Setting hardcode_minus_L 13755 # to unsupported forces relinking 13756 hardcode_minus_L_CXX=yes 13757 hardcode_libdir_flag_spec_CXX='-L$libdir' 13758 hardcode_libdir_separator_CXX= 13759 fi 13760 ;; 13761 esac 13762 shared_flag='-shared' 13763 if test "$aix_use_runtimelinking" = yes; then 13764 shared_flag="$shared_flag "'${wl}-G' 13765 fi 13766 else 13767 # not using gcc 13768 if test "$host_cpu" = ia64; then 13769 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13770 # chokes on -Wl,-G. The following line is correct: 13771 shared_flag='-G' 13772 else 13773 if test "$aix_use_runtimelinking" = yes; then 13774 shared_flag='${wl}-G' 13775 else 13776 shared_flag='${wl}-bM:SRE' 13777 fi 13778 fi 13779 fi 13780 13781 # It seems that -bexpall does not export symbols beginning with 13782 # underscore (_), so it is better to generate a list of symbols to export. 13783 always_export_symbols_CXX=yes 13784 if test "$aix_use_runtimelinking" = yes; then 13785 # Warning - without using the other runtime loading flags (-brtl), 13786 # -berok will link without error, but may produce a broken library. 13787 allow_undefined_flag_CXX='-berok' 13788 # Determine the default libpath from the value encoded in an empty executable. 13789 cat >conftest.$ac_ext <<_ACEOF 13790/* confdefs.h. */ 13791_ACEOF 13792cat confdefs.h >>conftest.$ac_ext 13793cat >>conftest.$ac_ext <<_ACEOF 13794/* end confdefs.h. */ 13795 13796int 13797main () 13798{ 13799 13800 ; 13801 return 0; 13802} 13803_ACEOF 13804rm -f conftest.$ac_objext conftest$ac_exeext 13805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13806 (eval $ac_link) 2>conftest.er1 13807 ac_status=$? 13808 grep -v '^ *+' conftest.er1 >conftest.err 13809 rm -f conftest.er1 13810 cat conftest.err >&5 13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13812 (exit $ac_status); } && 13813 { ac_try='test -z "$ac_cxx_werror_flag" 13814 || test ! -s conftest.err' 13815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13816 (eval $ac_try) 2>&5 13817 ac_status=$? 13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13819 (exit $ac_status); }; } && 13820 { ac_try='test -s conftest$ac_exeext' 13821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13822 (eval $ac_try) 2>&5 13823 ac_status=$? 13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13825 (exit $ac_status); }; }; then 13826 13827aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13828}'` 13829# Check for a 64-bit object if we didn't find anything. 13830if 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; } 13831}'`; fi 13832else 13833 echo "$as_me: failed program was:" >&5 13834sed 's/^/| /' conftest.$ac_ext >&5 13835 13836fi 13837rm -f conftest.err conftest.$ac_objext \ 13838 conftest$ac_exeext conftest.$ac_ext 13839if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13840 13841 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13842 13843 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 13844 else 13845 if test "$host_cpu" = ia64; then 13846 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 13847 allow_undefined_flag_CXX="-z nodefs" 13848 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 13849 else 13850 # Determine the default libpath from the value encoded in an empty executable. 13851 cat >conftest.$ac_ext <<_ACEOF 13852/* confdefs.h. */ 13853_ACEOF 13854cat confdefs.h >>conftest.$ac_ext 13855cat >>conftest.$ac_ext <<_ACEOF 13856/* end confdefs.h. */ 13857 13858int 13859main () 13860{ 13861 13862 ; 13863 return 0; 13864} 13865_ACEOF 13866rm -f conftest.$ac_objext conftest$ac_exeext 13867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13868 (eval $ac_link) 2>conftest.er1 13869 ac_status=$? 13870 grep -v '^ *+' conftest.er1 >conftest.err 13871 rm -f conftest.er1 13872 cat conftest.err >&5 13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13874 (exit $ac_status); } && 13875 { ac_try='test -z "$ac_cxx_werror_flag" 13876 || test ! -s conftest.err' 13877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13878 (eval $ac_try) 2>&5 13879 ac_status=$? 13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13881 (exit $ac_status); }; } && 13882 { ac_try='test -s conftest$ac_exeext' 13883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13884 (eval $ac_try) 2>&5 13885 ac_status=$? 13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13887 (exit $ac_status); }; }; then 13888 13889aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13890}'` 13891# Check for a 64-bit object if we didn't find anything. 13892if 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; } 13893}'`; fi 13894else 13895 echo "$as_me: failed program was:" >&5 13896sed 's/^/| /' conftest.$ac_ext >&5 13897 13898fi 13899rm -f conftest.err conftest.$ac_objext \ 13900 conftest$ac_exeext conftest.$ac_ext 13901if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13902 13903 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13904 # Warning - without using the other run time loading flags, 13905 # -berok will link without error, but may produce a broken library. 13906 no_undefined_flag_CXX=' ${wl}-bernotok' 13907 allow_undefined_flag_CXX=' ${wl}-berok' 13908 # Exported symbols can be pulled into shared objects from archives 13909 whole_archive_flag_spec_CXX='$convenience' 13910 archive_cmds_need_lc_CXX=yes 13911 # This is similar to how AIX traditionally builds its shared libraries. 13912 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 13913 fi 13914 fi 13915 ;; 13916 13917 beos*) 13918 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13919 allow_undefined_flag_CXX=unsupported 13920 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13921 # support --undefined. This deserves some investigation. FIXME 13922 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13923 else 13924 ld_shlibs_CXX=no 13925 fi 13926 ;; 13927 13928 chorus*) 13929 case $cc_basename in 13930 *) 13931 # FIXME: insert proper C++ library support 13932 ld_shlibs_CXX=no 13933 ;; 13934 esac 13935 ;; 13936 13937 cygwin* | mingw* | pw32*) 13938 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13939 # as there is no search path for DLLs. 13940 hardcode_libdir_flag_spec_CXX='-L$libdir' 13941 allow_undefined_flag_CXX=unsupported 13942 always_export_symbols_CXX=no 13943 enable_shared_with_static_runtimes_CXX=yes 13944 13945 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 13946 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13947 # If the export-symbols file already is a .def file (1st line 13948 # is EXPORTS), use it as is; otherwise, prepend... 13949 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13950 cp $export_symbols $output_objdir/$soname.def; 13951 else 13952 echo EXPORTS > $output_objdir/$soname.def; 13953 cat $export_symbols >> $output_objdir/$soname.def; 13954 fi~ 13955 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13956 else 13957 ld_shlibs_CXX=no 13958 fi 13959 ;; 13960 darwin* | rhapsody*) 13961 case $host_os in 13962 rhapsody* | darwin1.[012]) 13963 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 13964 ;; 13965 *) # Darwin 1.3 on 13966 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 13967 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 13968 else 13969 case ${MACOSX_DEPLOYMENT_TARGET} in 13970 10.[012]) 13971 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 13972 ;; 13973 10.*) 13974 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 13975 ;; 13976 esac 13977 fi 13978 ;; 13979 esac 13980 archive_cmds_need_lc_CXX=no 13981 hardcode_direct_CXX=no 13982 hardcode_automatic_CXX=yes 13983 hardcode_shlibpath_var_CXX=unsupported 13984 whole_archive_flag_spec_CXX='' 13985 link_all_deplibs_CXX=yes 13986 13987 if test "$GXX" = yes ; then 13988 lt_int_apple_cc_single_mod=no 13989 output_verbose_link_cmd='echo' 13990 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 13991 lt_int_apple_cc_single_mod=yes 13992 fi 13993 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 13994 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 13995 else 13996 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 13997 fi 13998 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 13999 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14000 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 14001 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}' 14002 else 14003 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14004 fi 14005 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}' 14006 else 14007 case $cc_basename in 14008 xlc*) 14009 output_verbose_link_cmd='echo' 14010 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14011 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14012 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14013 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14014 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}' 14015 ;; 14016 *) 14017 ld_shlibs_CXX=no 14018 ;; 14019 esac 14020 fi 14021 ;; 14022 14023 dgux*) 14024 case $cc_basename in 14025 ec++*) 14026 # FIXME: insert proper C++ library support 14027 ld_shlibs_CXX=no 14028 ;; 14029 ghcx*) 14030 # Green Hills C++ Compiler 14031 # FIXME: insert proper C++ library support 14032 ld_shlibs_CXX=no 14033 ;; 14034 *) 14035 # FIXME: insert proper C++ library support 14036 ld_shlibs_CXX=no 14037 ;; 14038 esac 14039 ;; 14040 freebsd[12]*) 14041 # C++ shared libraries reported to be fairly broken before switch to ELF 14042 ld_shlibs_CXX=no 14043 ;; 14044 freebsd-elf*) 14045 archive_cmds_need_lc_CXX=no 14046 ;; 14047 freebsd* | kfreebsd*-gnu | dragonfly*) 14048 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14049 # conventions 14050 ld_shlibs_CXX=yes 14051 ;; 14052 gnu*) 14053 ;; 14054 hpux9*) 14055 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 14056 hardcode_libdir_separator_CXX=: 14057 export_dynamic_flag_spec_CXX='${wl}-E' 14058 hardcode_direct_CXX=yes 14059 hardcode_minus_L_CXX=yes # Not in the search PATH, 14060 # but as the default 14061 # location of the library. 14062 14063 case $cc_basename in 14064 CC*) 14065 # FIXME: insert proper C++ library support 14066 ld_shlibs_CXX=no 14067 ;; 14068 aCC*) 14069 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' 14070 # Commands to make compiler produce verbose output that lists 14071 # what "hidden" libraries, object files and flags are used when 14072 # linking a shared library. 14073 # 14074 # There doesn't appear to be a way to prevent this compiler from 14075 # explicitly linking system object files so we need to strip them 14076 # from the output so that they don't get included in the library 14077 # dependencies. 14078 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' 14079 ;; 14080 *) 14081 if test "$GXX" = yes; then 14082 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' 14083 else 14084 # FIXME: insert proper C++ library support 14085 ld_shlibs_CXX=no 14086 fi 14087 ;; 14088 esac 14089 ;; 14090 hpux10*|hpux11*) 14091 if test $with_gnu_ld = no; then 14092 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 14093 hardcode_libdir_separator_CXX=: 14094 14095 case $host_cpu in 14096 hppa*64*|ia64*) 14097 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 14098 ;; 14099 *) 14100 export_dynamic_flag_spec_CXX='${wl}-E' 14101 ;; 14102 esac 14103 fi 14104 case $host_cpu in 14105 hppa*64*|ia64*) 14106 hardcode_direct_CXX=no 14107 hardcode_shlibpath_var_CXX=no 14108 ;; 14109 *) 14110 hardcode_direct_CXX=yes 14111 hardcode_minus_L_CXX=yes # Not in the search PATH, 14112 # but as the default 14113 # location of the library. 14114 ;; 14115 esac 14116 14117 case $cc_basename in 14118 CC*) 14119 # FIXME: insert proper C++ library support 14120 ld_shlibs_CXX=no 14121 ;; 14122 aCC*) 14123 case $host_cpu in 14124 hppa*64*) 14125 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14126 ;; 14127 ia64*) 14128 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14129 ;; 14130 *) 14131 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14132 ;; 14133 esac 14134 # Commands to make compiler produce verbose output that lists 14135 # what "hidden" libraries, object files and flags are used when 14136 # linking a shared library. 14137 # 14138 # There doesn't appear to be a way to prevent this compiler from 14139 # explicitly linking system object files so we need to strip them 14140 # from the output so that they don't get included in the library 14141 # dependencies. 14142 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' 14143 ;; 14144 *) 14145 if test "$GXX" = yes; then 14146 if test $with_gnu_ld = no; then 14147 case $host_cpu in 14148 hppa*64*) 14149 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14150 ;; 14151 ia64*) 14152 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14153 ;; 14154 *) 14155 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' 14156 ;; 14157 esac 14158 fi 14159 else 14160 # FIXME: insert proper C++ library support 14161 ld_shlibs_CXX=no 14162 fi 14163 ;; 14164 esac 14165 ;; 14166 interix3*) 14167 hardcode_direct_CXX=no 14168 hardcode_shlibpath_var_CXX=no 14169 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14170 export_dynamic_flag_spec_CXX='${wl}-E' 14171 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14172 # Instead, shared libraries are loaded at an image base (0x10000000 by 14173 # default) and relocated if they conflict, which is a slow very memory 14174 # consuming and fragmenting process. To avoid this, we pick a random, 14175 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14176 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14177 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14178 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14179 ;; 14180 irix5* | irix6*) 14181 case $cc_basename in 14182 CC*) 14183 # SGI C++ 14184 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 ${output_objdir}/so_locations -o $lib' 14185 14186 # Archives containing C++ object files must be created using 14187 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14188 # necessary to make sure instantiated templates are included 14189 # in the archive. 14190 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14191 ;; 14192 *) 14193 if test "$GXX" = yes; then 14194 if test "$with_gnu_ld" = no; then 14195 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}${output_objdir}/so_locations -o $lib' 14196 else 14197 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' 14198 fi 14199 fi 14200 link_all_deplibs_CXX=yes 14201 ;; 14202 esac 14203 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14204 hardcode_libdir_separator_CXX=: 14205 ;; 14206 linux*) 14207 case $cc_basename in 14208 KCC*) 14209 # Kuck and Associates, Inc. (KAI) C++ Compiler 14210 14211 # KCC will only create a shared library if the output file 14212 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14213 # to its proper name (with version) after linking. 14214 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' 14215 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' 14216 # Commands to make compiler produce verbose output that lists 14217 # what "hidden" libraries, object files and flags are used when 14218 # linking a shared library. 14219 # 14220 # There doesn't appear to be a way to prevent this compiler from 14221 # explicitly linking system object files so we need to strip them 14222 # from the output so that they don't get included in the library 14223 # dependencies. 14224 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' 14225 14226 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 14227 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14228 14229 # Archives containing C++ object files must be created using 14230 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14231 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14232 ;; 14233 icpc*) 14234 # Intel C++ 14235 with_gnu_ld=yes 14236 # version 8.0 and above of icpc choke on multiply defined symbols 14237 # if we add $predep_objects and $postdep_objects, however 7.1 and 14238 # earlier do not add the objects themselves. 14239 case `$CC -V 2>&1` in 14240 *"Version 7."*) 14241 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 14242 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' 14243 ;; 14244 *) # Version 8.0 or newer 14245 tmp_idyn= 14246 case $host_cpu in 14247 ia64*) tmp_idyn=' -i_dynamic';; 14248 esac 14249 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14250 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14251 ;; 14252 esac 14253 archive_cmds_need_lc_CXX=no 14254 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14255 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14256 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 14257 ;; 14258 pgCC*) 14259 # Portland Group C++ compiler 14260 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 14261 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 14262 14263 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 14264 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14265 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14266 ;; 14267 cxx*) 14268 # Compaq C++ 14269 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 14270 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' 14271 14272 runpath_var=LD_RUN_PATH 14273 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14274 hardcode_libdir_separator_CXX=: 14275 14276 # Commands to make compiler produce verbose output that lists 14277 # what "hidden" libraries, object files and flags are used when 14278 # linking a shared library. 14279 # 14280 # There doesn't appear to be a way to prevent this compiler from 14281 # explicitly linking system object files so we need to strip them 14282 # from the output so that they don't get included in the library 14283 # dependencies. 14284 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' 14285 ;; 14286 esac 14287 ;; 14288 lynxos*) 14289 # FIXME: insert proper C++ library support 14290 ld_shlibs_CXX=no 14291 ;; 14292 m88k*) 14293 # FIXME: insert proper C++ library support 14294 ld_shlibs_CXX=no 14295 ;; 14296 mvs*) 14297 case $cc_basename in 14298 cxx*) 14299 # FIXME: insert proper C++ library support 14300 ld_shlibs_CXX=no 14301 ;; 14302 *) 14303 # FIXME: insert proper C++ library support 14304 ld_shlibs_CXX=no 14305 ;; 14306 esac 14307 ;; 14308 netbsd*) 14309 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14310 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14311 wlarc= 14312 hardcode_libdir_flag_spec_CXX='-R$libdir' 14313 hardcode_direct_CXX=yes 14314 hardcode_shlibpath_var_CXX=no 14315 fi 14316 # Workaround some broken pre-1.5 toolchains 14317 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14318 ;; 14319 openbsd2*) 14320 # C++ shared libraries are fairly broken 14321 ld_shlibs_CXX=no 14322 ;; 14323 openbsd*) 14324 hardcode_direct_CXX=yes 14325 hardcode_shlibpath_var_CXX=no 14326 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14327 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14328 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14329 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 14330 export_dynamic_flag_spec_CXX='${wl}-E' 14331 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14332 fi 14333 output_verbose_link_cmd='echo' 14334 ;; 14335 osf3*) 14336 case $cc_basename in 14337 KCC*) 14338 # Kuck and Associates, Inc. (KAI) C++ Compiler 14339 14340 # KCC will only create a shared library if the output file 14341 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14342 # to its proper name (with version) after linking. 14343 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' 14344 14345 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14346 hardcode_libdir_separator_CXX=: 14347 14348 # Archives containing C++ object files must be created using 14349 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14350 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14351 14352 ;; 14353 RCC*) 14354 # Rational C++ 2.4.1 14355 # FIXME: insert proper C++ library support 14356 ld_shlibs_CXX=no 14357 ;; 14358 cxx*) 14359 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 14360 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 ${output_objdir}/so_locations -o $lib' 14361 14362 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14363 hardcode_libdir_separator_CXX=: 14364 14365 # Commands to make compiler produce verbose output that lists 14366 # what "hidden" libraries, object files and flags are used when 14367 # linking a shared library. 14368 # 14369 # There doesn't appear to be a way to prevent this compiler from 14370 # explicitly linking system object files so we need to strip them 14371 # from the output so that they don't get included in the library 14372 # dependencies. 14373 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' 14374 ;; 14375 *) 14376 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 14377 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 14378 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}${output_objdir}/so_locations -o $lib' 14379 14380 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14381 hardcode_libdir_separator_CXX=: 14382 14383 # Commands to make compiler produce verbose output that lists 14384 # what "hidden" libraries, object files and flags are used when 14385 # linking a shared library. 14386 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 14387 14388 else 14389 # FIXME: insert proper C++ library support 14390 ld_shlibs_CXX=no 14391 fi 14392 ;; 14393 esac 14394 ;; 14395 osf4* | osf5*) 14396 case $cc_basename in 14397 KCC*) 14398 # Kuck and Associates, Inc. (KAI) C++ Compiler 14399 14400 # KCC will only create a shared library if the output file 14401 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14402 # to its proper name (with version) after linking. 14403 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' 14404 14405 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14406 hardcode_libdir_separator_CXX=: 14407 14408 # Archives containing C++ object files must be created using 14409 # the KAI C++ compiler. 14410 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 14411 ;; 14412 RCC*) 14413 # Rational C++ 2.4.1 14414 # FIXME: insert proper C++ library support 14415 ld_shlibs_CXX=no 14416 ;; 14417 cxx*) 14418 allow_undefined_flag_CXX=' -expect_unresolved \*' 14419 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 ${output_objdir}/so_locations -o $lib' 14420 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14421 echo "-hidden">> $lib.exp~ 14422 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ 14423 $rm $lib.exp' 14424 14425 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14426 hardcode_libdir_separator_CXX=: 14427 14428 # Commands to make compiler produce verbose output that lists 14429 # what "hidden" libraries, object files and flags are used when 14430 # linking a shared library. 14431 # 14432 # There doesn't appear to be a way to prevent this compiler from 14433 # explicitly linking system object files so we need to strip them 14434 # from the output so that they don't get included in the library 14435 # dependencies. 14436 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' 14437 ;; 14438 *) 14439 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 14440 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 14441 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}${output_objdir}/so_locations -o $lib' 14442 14443 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14444 hardcode_libdir_separator_CXX=: 14445 14446 # Commands to make compiler produce verbose output that lists 14447 # what "hidden" libraries, object files and flags are used when 14448 # linking a shared library. 14449 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 14450 14451 else 14452 # FIXME: insert proper C++ library support 14453 ld_shlibs_CXX=no 14454 fi 14455 ;; 14456 esac 14457 ;; 14458 psos*) 14459 # FIXME: insert proper C++ library support 14460 ld_shlibs_CXX=no 14461 ;; 14462 sunos4*) 14463 case $cc_basename in 14464 CC*) 14465 # Sun C++ 4.x 14466 # FIXME: insert proper C++ library support 14467 ld_shlibs_CXX=no 14468 ;; 14469 lcc*) 14470 # Lucid 14471 # FIXME: insert proper C++ library support 14472 ld_shlibs_CXX=no 14473 ;; 14474 *) 14475 # FIXME: insert proper C++ library support 14476 ld_shlibs_CXX=no 14477 ;; 14478 esac 14479 ;; 14480 solaris*) 14481 case $cc_basename in 14482 CC*) 14483 # Sun C++ 4.2, 5.x and Centerline C++ 14484 archive_cmds_need_lc_CXX=yes 14485 no_undefined_flag_CXX=' -zdefs' 14486 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14487 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14488 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 14489 14490 hardcode_libdir_flag_spec_CXX='-R$libdir' 14491 hardcode_shlibpath_var_CXX=no 14492 case $host_os in 14493 solaris2.[0-5] | solaris2.[0-5].*) ;; 14494 *) 14495 # The C++ compiler is used as linker so we must use $wl 14496 # flag to pass the commands to the underlying system 14497 # linker. We must also pass each convience library through 14498 # to the system linker between allextract/defaultextract. 14499 # The C++ compiler will combine linker options so we 14500 # cannot just pass the convience library names through 14501 # without $wl. 14502 # Supported since Solaris 2.6 (maybe 2.5.1?) 14503 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' 14504 ;; 14505 esac 14506 link_all_deplibs_CXX=yes 14507 14508 output_verbose_link_cmd='echo' 14509 14510 # Archives containing C++ object files must be created using 14511 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14512 # necessary to make sure instantiated templates are included 14513 # in the archive. 14514 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14515 ;; 14516 gcx*) 14517 # Green Hills C++ Compiler 14518 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14519 14520 # The C++ compiler must be used to create the archive. 14521 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14522 ;; 14523 *) 14524 # GNU C++ compiler with Solaris linker 14525 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 14526 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 14527 if $CC --version | grep -v '^2\.7' > /dev/null; then 14528 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14529 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14530 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 14531 14532 # Commands to make compiler produce verbose output that lists 14533 # what "hidden" libraries, object files and flags are used when 14534 # linking a shared library. 14535 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 14536 else 14537 # g++ 2.7 appears to require `-G' NOT `-shared' on this 14538 # platform. 14539 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14540 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14541 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 14542 14543 # Commands to make compiler produce verbose output that lists 14544 # what "hidden" libraries, object files and flags are used when 14545 # linking a shared library. 14546 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 14547 fi 14548 14549 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 14550 fi 14551 ;; 14552 esac 14553 ;; 14554 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14555 no_undefined_flag_CXX='${wl}-z,text' 14556 archive_cmds_need_lc_CXX=no 14557 hardcode_shlibpath_var_CXX=no 14558 runpath_var='LD_RUN_PATH' 14559 14560 case $cc_basename in 14561 CC*) 14562 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14563 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14564 ;; 14565 *) 14566 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14567 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14568 ;; 14569 esac 14570 ;; 14571 sysv5* | sco3.2v5* | sco5v6*) 14572 # Note: We can NOT use -z defs as we might desire, because we do not 14573 # link with -lc, and that would cause any symbols used from libc to 14574 # always be unresolved, which means just about no library would 14575 # ever link correctly. If we're not using GNU ld we use -z text 14576 # though, which does catch some bad symbols but isn't as heavy-handed 14577 # as -z defs. 14578 # For security reasons, it is highly recommended that you always 14579 # use absolute paths for naming shared libraries, and exclude the 14580 # DT_RUNPATH tag from executables and libraries. But doing so 14581 # requires that you compile everything twice, which is a pain. 14582 # So that behaviour is only enabled if SCOABSPATH is set to a 14583 # non-empty value in the environment. Most likely only useful for 14584 # creating official distributions of packages. 14585 # This is a hack until libtool officially supports absolute path 14586 # names for shared libraries. 14587 no_undefined_flag_CXX='${wl}-z,text' 14588 allow_undefined_flag_CXX='${wl}-z,nodefs' 14589 archive_cmds_need_lc_CXX=no 14590 hardcode_shlibpath_var_CXX=no 14591 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 14592 hardcode_libdir_separator_CXX=':' 14593 link_all_deplibs_CXX=yes 14594 export_dynamic_flag_spec_CXX='${wl}-Bexport' 14595 runpath_var='LD_RUN_PATH' 14596 14597 case $cc_basename in 14598 CC*) 14599 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14600 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14601 ;; 14602 *) 14603 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14604 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14605 ;; 14606 esac 14607 ;; 14608 tandem*) 14609 case $cc_basename in 14610 NCC*) 14611 # NonStop-UX NCC 3.20 14612 # FIXME: insert proper C++ library support 14613 ld_shlibs_CXX=no 14614 ;; 14615 *) 14616 # FIXME: insert proper C++ library support 14617 ld_shlibs_CXX=no 14618 ;; 14619 esac 14620 ;; 14621 vxworks*) 14622 # FIXME: insert proper C++ library support 14623 ld_shlibs_CXX=no 14624 ;; 14625 *) 14626 # FIXME: insert proper C++ library support 14627 ld_shlibs_CXX=no 14628 ;; 14629esac 14630echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 14631echo "${ECHO_T}$ld_shlibs_CXX" >&6 14632test "$ld_shlibs_CXX" = no && can_build_shared=no 14633 14634GCC_CXX="$GXX" 14635LD_CXX="$LD" 14636 14637## CAVEAT EMPTOR: 14638## There is no encapsulation within the following macros, do not change 14639## the running order or otherwise move them around unless you know exactly 14640## what you are doing... 14641 14642cat > conftest.$ac_ext <<EOF 14643class Foo 14644{ 14645public: 14646 Foo (void) { a = 0; } 14647private: 14648 int a; 14649}; 14650EOF 14651 14652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14653 (eval $ac_compile) 2>&5 14654 ac_status=$? 14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14656 (exit $ac_status); }; then 14657 # Parse the compiler output and extract the necessary 14658 # objects, libraries and library flags. 14659 14660 # Sentinel used to keep track of whether or not we are before 14661 # the conftest object file. 14662 pre_test_object_deps_done=no 14663 14664 # The `*' in the case matches for architectures that use `case' in 14665 # $output_verbose_cmd can trigger glob expansion during the loop 14666 # eval without this substitution. 14667 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 14668 14669 for p in `eval $output_verbose_link_cmd`; do 14670 case $p in 14671 14672 -L* | -R* | -l*) 14673 # Some compilers place space between "-{L,R}" and the path. 14674 # Remove the space. 14675 if test $p = "-L" \ 14676 || test $p = "-R"; then 14677 prev=$p 14678 continue 14679 else 14680 prev= 14681 fi 14682 14683 if test "$pre_test_object_deps_done" = no; then 14684 case $p in 14685 -L* | -R*) 14686 # Internal compiler library paths should come after those 14687 # provided the user. The postdeps already come after the 14688 # user supplied libs so there is no need to process them. 14689 if test -z "$compiler_lib_search_path_CXX"; then 14690 compiler_lib_search_path_CXX="${prev}${p}" 14691 else 14692 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 14693 fi 14694 ;; 14695 # The "-l" case would never come before the object being 14696 # linked, so don't bother handling this case. 14697 esac 14698 else 14699 if test -z "$postdeps_CXX"; then 14700 postdeps_CXX="${prev}${p}" 14701 else 14702 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 14703 fi 14704 fi 14705 ;; 14706 14707 *.$objext) 14708 # This assumes that the test object file only shows up 14709 # once in the compiler output. 14710 if test "$p" = "conftest.$objext"; then 14711 pre_test_object_deps_done=yes 14712 continue 14713 fi 14714 14715 if test "$pre_test_object_deps_done" = no; then 14716 if test -z "$predep_objects_CXX"; then 14717 predep_objects_CXX="$p" 14718 else 14719 predep_objects_CXX="$predep_objects_CXX $p" 14720 fi 14721 else 14722 if test -z "$postdep_objects_CXX"; then 14723 postdep_objects_CXX="$p" 14724 else 14725 postdep_objects_CXX="$postdep_objects_CXX $p" 14726 fi 14727 fi 14728 ;; 14729 14730 *) ;; # Ignore the rest. 14731 14732 esac 14733 done 14734 14735 # Clean up. 14736 rm -f a.out a.exe 14737else 14738 echo "libtool.m4: error: problem compiling CXX test program" 14739fi 14740 14741$rm -f confest.$objext 14742 14743# PORTME: override above test on systems where it is broken 14744case $host_os in 14745interix3*) 14746 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14747 # hack all around it, let's just trust "g++" to DTRT. 14748 predep_objects_CXX= 14749 postdep_objects_CXX= 14750 postdeps_CXX= 14751 ;; 14752 14753solaris*) 14754 case $cc_basename in 14755 CC*) 14756 # Adding this requires a known-good setup of shared libraries for 14757 # Sun compiler versions before 5.6, else PIC objects from an old 14758 # archive will be linked into the output, leading to subtle bugs. 14759 postdeps_CXX='-lCstd -lCrun' 14760 ;; 14761 esac 14762 ;; 14763esac 14764 14765 14766case " $postdeps_CXX " in 14767*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14768esac 14769 14770lt_prog_compiler_wl_CXX= 14771lt_prog_compiler_pic_CXX= 14772lt_prog_compiler_static_CXX= 14773 14774echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14775echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 14776 14777 # C++ specific cases for pic, static, wl, etc. 14778 if test "$GXX" = yes; then 14779 lt_prog_compiler_wl_CXX='-Wl,' 14780 lt_prog_compiler_static_CXX='-static' 14781 14782 case $host_os in 14783 aix*) 14784 # All AIX code is PIC. 14785 if test "$host_cpu" = ia64; then 14786 # AIX 5 now supports IA64 processor 14787 lt_prog_compiler_static_CXX='-Bstatic' 14788 fi 14789 ;; 14790 amigaos*) 14791 # FIXME: we need at least 68020 code to build shared libraries, but 14792 # adding the `-m68020' flag to GCC prevents building anything better, 14793 # like `-m68040'. 14794 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14795 ;; 14796 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14797 # PIC is the default for these OSes. 14798 ;; 14799 mingw* | os2* | pw32*) 14800 # This hack is so that the source file can tell whether it is being 14801 # built for inclusion in a dll (and should export symbols for example). 14802 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14803 ;; 14804 darwin* | rhapsody*) 14805 # PIC is the default on this platform 14806 # Common symbols not allowed in MH_DYLIB files 14807 lt_prog_compiler_pic_CXX='-fno-common' 14808 ;; 14809 *djgpp*) 14810 # DJGPP does not support shared libraries at all 14811 lt_prog_compiler_pic_CXX= 14812 ;; 14813 interix3*) 14814 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14815 # Instead, we relocate shared libraries at runtime. 14816 ;; 14817 sysv4*MP*) 14818 if test -d /usr/nec; then 14819 lt_prog_compiler_pic_CXX=-Kconform_pic 14820 fi 14821 ;; 14822 hpux*) 14823 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14824 # not for PA HP-UX. 14825 case $host_cpu in 14826 hppa*64*|ia64*) 14827 ;; 14828 *) 14829 lt_prog_compiler_pic_CXX='-fPIC' 14830 ;; 14831 esac 14832 ;; 14833 *) 14834 lt_prog_compiler_pic_CXX='-fPIC' 14835 ;; 14836 esac 14837 else 14838 case $host_os in 14839 aix4* | aix5*) 14840 # All AIX code is PIC. 14841 if test "$host_cpu" = ia64; then 14842 # AIX 5 now supports IA64 processor 14843 lt_prog_compiler_static_CXX='-Bstatic' 14844 else 14845 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14846 fi 14847 ;; 14848 chorus*) 14849 case $cc_basename in 14850 cxch68*) 14851 # Green Hills C++ Compiler 14852 # _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" 14853 ;; 14854 esac 14855 ;; 14856 darwin*) 14857 # PIC is the default on this platform 14858 # Common symbols not allowed in MH_DYLIB files 14859 case $cc_basename in 14860 xlc*) 14861 lt_prog_compiler_pic_CXX='-qnocommon' 14862 lt_prog_compiler_wl_CXX='-Wl,' 14863 ;; 14864 esac 14865 ;; 14866 dgux*) 14867 case $cc_basename in 14868 ec++*) 14869 lt_prog_compiler_pic_CXX='-KPIC' 14870 ;; 14871 ghcx*) 14872 # Green Hills C++ Compiler 14873 lt_prog_compiler_pic_CXX='-pic' 14874 ;; 14875 *) 14876 ;; 14877 esac 14878 ;; 14879 freebsd* | kfreebsd*-gnu | dragonfly*) 14880 # FreeBSD uses GNU C++ 14881 ;; 14882 hpux9* | hpux10* | hpux11*) 14883 case $cc_basename in 14884 CC*) 14885 lt_prog_compiler_wl_CXX='-Wl,' 14886 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14887 if test "$host_cpu" != ia64; then 14888 lt_prog_compiler_pic_CXX='+Z' 14889 fi 14890 ;; 14891 aCC*) 14892 lt_prog_compiler_wl_CXX='-Wl,' 14893 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14894 case $host_cpu in 14895 hppa*64*|ia64*) 14896 # +Z the default 14897 ;; 14898 *) 14899 lt_prog_compiler_pic_CXX='+Z' 14900 ;; 14901 esac 14902 ;; 14903 *) 14904 ;; 14905 esac 14906 ;; 14907 interix*) 14908 # This is c89, which is MS Visual C++ (no shared libs) 14909 # Anyone wants to do a port? 14910 ;; 14911 irix5* | irix6* | nonstopux*) 14912 case $cc_basename in 14913 CC*) 14914 lt_prog_compiler_wl_CXX='-Wl,' 14915 lt_prog_compiler_static_CXX='-non_shared' 14916 # CC pic flag -KPIC is the default. 14917 ;; 14918 *) 14919 ;; 14920 esac 14921 ;; 14922 linux*) 14923 case $cc_basename in 14924 KCC*) 14925 # KAI C++ Compiler 14926 lt_prog_compiler_wl_CXX='--backend -Wl,' 14927 lt_prog_compiler_pic_CXX='-fPIC' 14928 ;; 14929 icpc* | ecpc*) 14930 # Intel C++ 14931 lt_prog_compiler_wl_CXX='-Wl,' 14932 lt_prog_compiler_pic_CXX='-KPIC' 14933 lt_prog_compiler_static_CXX='-static' 14934 ;; 14935 pgCC*) 14936 # Portland Group C++ compiler. 14937 lt_prog_compiler_wl_CXX='-Wl,' 14938 lt_prog_compiler_pic_CXX='-fpic' 14939 lt_prog_compiler_static_CXX='-Bstatic' 14940 ;; 14941 cxx*) 14942 # Compaq C++ 14943 # Make sure the PIC flag is empty. It appears that all Alpha 14944 # Linux and Compaq Tru64 Unix objects are PIC. 14945 lt_prog_compiler_pic_CXX= 14946 lt_prog_compiler_static_CXX='-non_shared' 14947 ;; 14948 *) 14949 ;; 14950 esac 14951 ;; 14952 lynxos*) 14953 ;; 14954 m88k*) 14955 ;; 14956 mvs*) 14957 case $cc_basename in 14958 cxx*) 14959 lt_prog_compiler_pic_CXX='-W c,exportall' 14960 ;; 14961 *) 14962 ;; 14963 esac 14964 ;; 14965 netbsd*) 14966 ;; 14967 osf3* | osf4* | osf5*) 14968 case $cc_basename in 14969 KCC*) 14970 lt_prog_compiler_wl_CXX='--backend -Wl,' 14971 ;; 14972 RCC*) 14973 # Rational C++ 2.4.1 14974 lt_prog_compiler_pic_CXX='-pic' 14975 ;; 14976 cxx*) 14977 # Digital/Compaq C++ 14978 lt_prog_compiler_wl_CXX='-Wl,' 14979 # Make sure the PIC flag is empty. It appears that all Alpha 14980 # Linux and Compaq Tru64 Unix objects are PIC. 14981 lt_prog_compiler_pic_CXX= 14982 lt_prog_compiler_static_CXX='-non_shared' 14983 ;; 14984 *) 14985 ;; 14986 esac 14987 ;; 14988 psos*) 14989 ;; 14990 solaris*) 14991 case $cc_basename in 14992 CC*) 14993 # Sun C++ 4.2, 5.x and Centerline C++ 14994 lt_prog_compiler_pic_CXX='-KPIC' 14995 lt_prog_compiler_static_CXX='-Bstatic' 14996 lt_prog_compiler_wl_CXX='-Qoption ld ' 14997 ;; 14998 gcx*) 14999 # Green Hills C++ Compiler 15000 lt_prog_compiler_pic_CXX='-PIC' 15001 ;; 15002 *) 15003 ;; 15004 esac 15005 ;; 15006 sunos4*) 15007 case $cc_basename in 15008 CC*) 15009 # Sun C++ 4.x 15010 lt_prog_compiler_pic_CXX='-pic' 15011 lt_prog_compiler_static_CXX='-Bstatic' 15012 ;; 15013 lcc*) 15014 # Lucid 15015 lt_prog_compiler_pic_CXX='-pic' 15016 ;; 15017 *) 15018 ;; 15019 esac 15020 ;; 15021 tandem*) 15022 case $cc_basename in 15023 NCC*) 15024 # NonStop-UX NCC 3.20 15025 lt_prog_compiler_pic_CXX='-KPIC' 15026 ;; 15027 *) 15028 ;; 15029 esac 15030 ;; 15031 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15032 case $cc_basename in 15033 CC*) 15034 lt_prog_compiler_wl_CXX='-Wl,' 15035 lt_prog_compiler_pic_CXX='-KPIC' 15036 lt_prog_compiler_static_CXX='-Bstatic' 15037 ;; 15038 esac 15039 ;; 15040 vxworks*) 15041 ;; 15042 *) 15043 lt_prog_compiler_can_build_shared_CXX=no 15044 ;; 15045 esac 15046 fi 15047 15048echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 15049echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 15050 15051# 15052# Check to make sure the PIC flag actually works. 15053# 15054if test -n "$lt_prog_compiler_pic_CXX"; then 15055 15056echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15057echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 15058if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 15059 echo $ECHO_N "(cached) $ECHO_C" >&6 15060else 15061 lt_prog_compiler_pic_works_CXX=no 15062 ac_outfile=conftest.$ac_objext 15063 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15064 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 15065 # Insert the option either (1) after the last *FLAGS variable, or 15066 # (2) before a word containing "conftest.", or (3) at the end. 15067 # Note that $ac_compile itself does not contain backslashes and begins 15068 # with a dollar sign (not a hyphen), so the echo should work correctly. 15069 # The option is referenced via a variable to avoid confusing sed. 15070 lt_compile=`echo "$ac_compile" | $SED \ 15071 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15072 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15073 -e 's:$: $lt_compiler_flag:'` 15074 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 15075 (eval "$lt_compile" 2>conftest.err) 15076 ac_status=$? 15077 cat conftest.err >&5 15078 echo "$as_me:__oline__: \$? = $ac_status" >&5 15079 if (exit $ac_status) && test -s "$ac_outfile"; then 15080 # The compiler can only warn and ignore the option if not recognized 15081 # So say no if there are warnings other than the usual output. 15082 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 15083 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15084 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15085 lt_prog_compiler_pic_works_CXX=yes 15086 fi 15087 fi 15088 $rm conftest* 15089 15090fi 15091echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 15092echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 15093 15094if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 15095 case $lt_prog_compiler_pic_CXX in 15096 "" | " "*) ;; 15097 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15098 esac 15099else 15100 lt_prog_compiler_pic_CXX= 15101 lt_prog_compiler_can_build_shared_CXX=no 15102fi 15103 15104fi 15105case $host_os in 15106 # For platforms which do not support PIC, -DPIC is meaningless: 15107 *djgpp*) 15108 lt_prog_compiler_pic_CXX= 15109 ;; 15110 *) 15111 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15112 ;; 15113esac 15114 15115# 15116# Check to make sure the static flag actually works. 15117# 15118wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15119echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15120echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 15121if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 15122 echo $ECHO_N "(cached) $ECHO_C" >&6 15123else 15124 lt_prog_compiler_static_works_CXX=no 15125 save_LDFLAGS="$LDFLAGS" 15126 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15127 printf "$lt_simple_link_test_code" > conftest.$ac_ext 15128 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15129 # The linker can only warn and ignore the option if not recognized 15130 # So say no if there are warnings 15131 if test -s conftest.err; then 15132 # Append any errors to the config.log. 15133 cat conftest.err 1>&5 15134 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 15135 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15136 if diff conftest.exp conftest.er2 >/dev/null; then 15137 lt_prog_compiler_static_works_CXX=yes 15138 fi 15139 else 15140 lt_prog_compiler_static_works_CXX=yes 15141 fi 15142 fi 15143 $rm conftest* 15144 LDFLAGS="$save_LDFLAGS" 15145 15146fi 15147echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 15148echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 15149 15150if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 15151 : 15152else 15153 lt_prog_compiler_static_CXX= 15154fi 15155 15156 15157echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15158echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 15159if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 15160 echo $ECHO_N "(cached) $ECHO_C" >&6 15161else 15162 lt_cv_prog_compiler_c_o_CXX=no 15163 $rm -r conftest 2>/dev/null 15164 mkdir conftest 15165 cd conftest 15166 mkdir out 15167 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15168 15169 lt_compiler_flag="-o out/conftest2.$ac_objext" 15170 # Insert the option either (1) after the last *FLAGS variable, or 15171 # (2) before a word containing "conftest.", or (3) at the end. 15172 # Note that $ac_compile itself does not contain backslashes and begins 15173 # with a dollar sign (not a hyphen), so the echo should work correctly. 15174 lt_compile=`echo "$ac_compile" | $SED \ 15175 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15176 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15177 -e 's:$: $lt_compiler_flag:'` 15178 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 15179 (eval "$lt_compile" 2>out/conftest.err) 15180 ac_status=$? 15181 cat out/conftest.err >&5 15182 echo "$as_me:__oline__: \$? = $ac_status" >&5 15183 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15184 then 15185 # The compiler can only warn and ignore the option if not recognized 15186 # So say no if there are warnings 15187 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 15188 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15189 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15190 lt_cv_prog_compiler_c_o_CXX=yes 15191 fi 15192 fi 15193 chmod u+w . 2>&5 15194 $rm conftest* 15195 # SGI C++ compiler will create directory out/ii_files/ for 15196 # template instantiation 15197 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 15198 $rm out/* && rmdir out 15199 cd .. 15200 rmdir conftest 15201 $rm conftest* 15202 15203fi 15204echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15205echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 15206 15207 15208hard_links="nottested" 15209if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 15210 # do not overwrite the value of need_locks provided by the user 15211 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 15212echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 15213 hard_links=yes 15214 $rm conftest* 15215 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15216 touch conftest.a 15217 ln conftest.a conftest.b 2>&5 || hard_links=no 15218 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15219 echo "$as_me:$LINENO: result: $hard_links" >&5 15220echo "${ECHO_T}$hard_links" >&6 15221 if test "$hard_links" = no; then 15222 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15223echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15224 need_locks=warn 15225 fi 15226else 15227 need_locks=no 15228fi 15229 15230echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15231echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 15232 15233 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15234 case $host_os in 15235 aix4* | aix5*) 15236 # If we're using GNU nm, then we don't want the "-C" option. 15237 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15238 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15239 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' 15240 else 15241 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' 15242 fi 15243 ;; 15244 pw32*) 15245 export_symbols_cmds_CXX="$ltdll_cmds" 15246 ;; 15247 cygwin* | mingw*) 15248 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 15249 ;; 15250 *) 15251 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15252 ;; 15253 esac 15254 15255echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 15256echo "${ECHO_T}$ld_shlibs_CXX" >&6 15257test "$ld_shlibs_CXX" = no && can_build_shared=no 15258 15259# 15260# Do we need to explicitly link libc? 15261# 15262case "x$archive_cmds_need_lc_CXX" in 15263x|xyes) 15264 # Assume -lc should be added 15265 archive_cmds_need_lc_CXX=yes 15266 15267 if test "$enable_shared" = yes && test "$GCC" = yes; then 15268 case $archive_cmds_CXX in 15269 *'~'*) 15270 # FIXME: we may have to deal with multi-command sequences. 15271 ;; 15272 '$CC '*) 15273 # Test whether the compiler implicitly links with -lc since on some 15274 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15275 # to ld, don't add -lc before -lgcc. 15276 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15277echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 15278 $rm conftest* 15279 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15280 15281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15282 (eval $ac_compile) 2>&5 15283 ac_status=$? 15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15285 (exit $ac_status); } 2>conftest.err; then 15286 soname=conftest 15287 lib=conftest 15288 libobjs=conftest.$ac_objext 15289 deplibs= 15290 wl=$lt_prog_compiler_wl_CXX 15291 pic_flag=$lt_prog_compiler_pic_CXX 15292 compiler_flags=-v 15293 linker_flags=-v 15294 verstring= 15295 output_objdir=. 15296 libname=conftest 15297 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15298 allow_undefined_flag_CXX= 15299 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15300 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15301 ac_status=$? 15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15303 (exit $ac_status); } 15304 then 15305 archive_cmds_need_lc_CXX=no 15306 else 15307 archive_cmds_need_lc_CXX=yes 15308 fi 15309 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15310 else 15311 cat conftest.err 1>&5 15312 fi 15313 $rm conftest* 15314 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 15315echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 15316 ;; 15317 esac 15318 fi 15319 ;; 15320esac 15321 15322echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15323echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 15324library_names_spec= 15325libname_spec='lib$name' 15326soname_spec= 15327shrext_cmds=".so" 15328postinstall_cmds= 15329postuninstall_cmds= 15330finish_cmds= 15331finish_eval= 15332shlibpath_var= 15333shlibpath_overrides_runpath=unknown 15334version_type=none 15335dynamic_linker="$host_os ld.so" 15336sys_lib_dlsearch_path_spec="/lib /usr/lib" 15337if test "$GCC" = yes; then 15338 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15339 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15340 # if the path contains ";" then we assume it to be the separator 15341 # otherwise default to the standard path separator (i.e. ":") - it is 15342 # assumed that no part of a normal pathname contains ";" but that should 15343 # okay in the real world where ";" in dirpaths is itself problematic. 15344 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15345 else 15346 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15347 fi 15348else 15349 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15350fi 15351need_lib_prefix=unknown 15352hardcode_into_libs=no 15353 15354# when you set need_version to no, make sure it does not cause -set_version 15355# flags to be left without arguments 15356need_version=unknown 15357 15358case $host_os in 15359aix3*) 15360 version_type=linux 15361 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15362 shlibpath_var=LIBPATH 15363 15364 # AIX 3 has no versioning support, so we append a major version to the name. 15365 soname_spec='${libname}${release}${shared_ext}$major' 15366 ;; 15367 15368aix4* | aix5*) 15369 version_type=linux 15370 need_lib_prefix=no 15371 need_version=no 15372 hardcode_into_libs=yes 15373 if test "$host_cpu" = ia64; then 15374 # AIX 5 supports IA64 15375 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15376 shlibpath_var=LD_LIBRARY_PATH 15377 else 15378 # With GCC up to 2.95.x, collect2 would create an import file 15379 # for dependence libraries. The import file would start with 15380 # the line `#! .'. This would cause the generated library to 15381 # depend on `.', always an invalid library. This was fixed in 15382 # development snapshots of GCC prior to 3.0. 15383 case $host_os in 15384 aix4 | aix4.[01] | aix4.[01].*) 15385 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15386 echo ' yes ' 15387 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15388 : 15389 else 15390 can_build_shared=no 15391 fi 15392 ;; 15393 esac 15394 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15395 # soname into executable. Probably we can add versioning support to 15396 # collect2, so additional links can be useful in future. 15397 if test "$aix_use_runtimelinking" = yes; then 15398 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15399 # instead of lib<name>.a to let people know that these are not 15400 # typical AIX shared libraries. 15401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15402 else 15403 # We preserve .a as extension for shared libraries through AIX4.2 15404 # and later when we are not doing run time linking. 15405 library_names_spec='${libname}${release}.a $libname.a' 15406 soname_spec='${libname}${release}${shared_ext}$major' 15407 fi 15408 shlibpath_var=LIBPATH 15409 fi 15410 ;; 15411 15412amigaos*) 15413 library_names_spec='$libname.ixlibrary $libname.a' 15414 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15415 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' 15416 ;; 15417 15418beos*) 15419 library_names_spec='${libname}${shared_ext}' 15420 dynamic_linker="$host_os ld.so" 15421 shlibpath_var=LIBRARY_PATH 15422 ;; 15423 15424bsdi[45]*) 15425 version_type=linux 15426 need_version=no 15427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15428 soname_spec='${libname}${release}${shared_ext}$major' 15429 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15430 shlibpath_var=LD_LIBRARY_PATH 15431 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15432 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15433 # the default ld.so.conf also contains /usr/contrib/lib and 15434 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15435 # libtool to hard-code these into programs 15436 ;; 15437 15438cygwin* | mingw* | pw32*) 15439 version_type=windows 15440 shrext_cmds=".dll" 15441 need_version=no 15442 need_lib_prefix=no 15443 15444 case $GCC,$host_os in 15445 yes,cygwin* | yes,mingw* | yes,pw32*) 15446 library_names_spec='$libname.dll.a' 15447 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15448 postinstall_cmds='base_file=`basename \${file}`~ 15449 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15450 dldir=$destdir/`dirname \$dlpath`~ 15451 test -d \$dldir || mkdir -p \$dldir~ 15452 $install_prog $dir/$dlname \$dldir/$dlname~ 15453 chmod a+x \$dldir/$dlname' 15454 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15455 dlpath=$dir/\$dldll~ 15456 $rm \$dlpath' 15457 shlibpath_overrides_runpath=yes 15458 15459 case $host_os in 15460 cygwin*) 15461 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15462 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15463 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15464 ;; 15465 mingw*) 15466 # MinGW DLLs use traditional 'lib' prefix 15467 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15468 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15469 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15470 # It is most probably a Windows format PATH printed by 15471 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15472 # path with ; separators, and with drive letters. We can handle the 15473 # drive letters (cygwin fileutils understands them), so leave them, 15474 # especially as we might pass files found there to a mingw objdump, 15475 # which wouldn't understand a cygwinified path. Ahh. 15476 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15477 else 15478 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15479 fi 15480 ;; 15481 pw32*) 15482 # pw32 DLLs use 'pw' prefix rather than 'lib' 15483 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15484 ;; 15485 esac 15486 ;; 15487 15488 *) 15489 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15490 ;; 15491 esac 15492 dynamic_linker='Win32 ld.exe' 15493 # FIXME: first we should search . and the directory the executable is in 15494 shlibpath_var=PATH 15495 ;; 15496 15497darwin* | rhapsody*) 15498 dynamic_linker="$host_os dyld" 15499 version_type=darwin 15500 need_lib_prefix=no 15501 need_version=no 15502 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15503 soname_spec='${libname}${release}${major}$shared_ext' 15504 shlibpath_overrides_runpath=yes 15505 shlibpath_var=DYLD_LIBRARY_PATH 15506 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15507 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15508 if test "$GCC" = yes; then 15509 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"` 15510 else 15511 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15512 fi 15513 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15514 ;; 15515 15516dgux*) 15517 version_type=linux 15518 need_lib_prefix=no 15519 need_version=no 15520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15521 soname_spec='${libname}${release}${shared_ext}$major' 15522 shlibpath_var=LD_LIBRARY_PATH 15523 ;; 15524 15525freebsd1*) 15526 dynamic_linker=no 15527 ;; 15528 15529kfreebsd*-gnu) 15530 version_type=linux 15531 need_lib_prefix=no 15532 need_version=no 15533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15534 soname_spec='${libname}${release}${shared_ext}$major' 15535 shlibpath_var=LD_LIBRARY_PATH 15536 shlibpath_overrides_runpath=no 15537 hardcode_into_libs=yes 15538 dynamic_linker='GNU ld.so' 15539 ;; 15540 15541freebsd* | dragonfly*) 15542 # DragonFly does not have aout. When/if they implement a new 15543 # versioning mechanism, adjust this. 15544 if test -x /usr/bin/objformat; then 15545 objformat=`/usr/bin/objformat` 15546 else 15547 case $host_os in 15548 freebsd[123]*) objformat=aout ;; 15549 *) objformat=elf ;; 15550 esac 15551 fi 15552 version_type=freebsd-$objformat 15553 case $version_type in 15554 freebsd-elf*) 15555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15556 need_version=no 15557 need_lib_prefix=no 15558 ;; 15559 freebsd-*) 15560 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15561 need_version=yes 15562 ;; 15563 esac 15564 shlibpath_var=LD_LIBRARY_PATH 15565 case $host_os in 15566 freebsd2*) 15567 shlibpath_overrides_runpath=yes 15568 ;; 15569 freebsd3.[01]* | freebsdelf3.[01]*) 15570 shlibpath_overrides_runpath=yes 15571 hardcode_into_libs=yes 15572 ;; 15573 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15574 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15575 shlibpath_overrides_runpath=no 15576 hardcode_into_libs=yes 15577 ;; 15578 freebsd*) # from 4.6 on 15579 shlibpath_overrides_runpath=yes 15580 hardcode_into_libs=yes 15581 ;; 15582 esac 15583 ;; 15584 15585gnu*) 15586 version_type=linux 15587 need_lib_prefix=no 15588 need_version=no 15589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15590 soname_spec='${libname}${release}${shared_ext}$major' 15591 shlibpath_var=LD_LIBRARY_PATH 15592 hardcode_into_libs=yes 15593 ;; 15594 15595hpux9* | hpux10* | hpux11*) 15596 # Give a soname corresponding to the major version so that dld.sl refuses to 15597 # link against other versions. 15598 version_type=sunos 15599 need_lib_prefix=no 15600 need_version=no 15601 case $host_cpu in 15602 ia64*) 15603 shrext_cmds='.so' 15604 hardcode_into_libs=yes 15605 dynamic_linker="$host_os dld.so" 15606 shlibpath_var=LD_LIBRARY_PATH 15607 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15609 soname_spec='${libname}${release}${shared_ext}$major' 15610 if test "X$HPUX_IA64_MODE" = X32; then 15611 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15612 else 15613 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15614 fi 15615 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15616 ;; 15617 hppa*64*) 15618 shrext_cmds='.sl' 15619 hardcode_into_libs=yes 15620 dynamic_linker="$host_os dld.sl" 15621 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15622 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15624 soname_spec='${libname}${release}${shared_ext}$major' 15625 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15626 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15627 ;; 15628 *) 15629 shrext_cmds='.sl' 15630 dynamic_linker="$host_os dld.sl" 15631 shlibpath_var=SHLIB_PATH 15632 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15634 soname_spec='${libname}${release}${shared_ext}$major' 15635 ;; 15636 esac 15637 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15638 postinstall_cmds='chmod 555 $lib' 15639 ;; 15640 15641interix3*) 15642 version_type=linux 15643 need_lib_prefix=no 15644 need_version=no 15645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15646 soname_spec='${libname}${release}${shared_ext}$major' 15647 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15648 shlibpath_var=LD_LIBRARY_PATH 15649 shlibpath_overrides_runpath=no 15650 hardcode_into_libs=yes 15651 ;; 15652 15653irix5* | irix6* | nonstopux*) 15654 case $host_os in 15655 nonstopux*) version_type=nonstopux ;; 15656 *) 15657 if test "$lt_cv_prog_gnu_ld" = yes; then 15658 version_type=linux 15659 else 15660 version_type=irix 15661 fi ;; 15662 esac 15663 need_lib_prefix=no 15664 need_version=no 15665 soname_spec='${libname}${release}${shared_ext}$major' 15666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15667 case $host_os in 15668 irix5* | nonstopux*) 15669 libsuff= shlibsuff= 15670 ;; 15671 *) 15672 case $LD in # libtool.m4 will add one of these switches to LD 15673 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15674 libsuff= shlibsuff= libmagic=32-bit;; 15675 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15676 libsuff=32 shlibsuff=N32 libmagic=N32;; 15677 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15678 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15679 *) libsuff= shlibsuff= libmagic=never-match;; 15680 esac 15681 ;; 15682 esac 15683 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15684 shlibpath_overrides_runpath=no 15685 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15686 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15687 hardcode_into_libs=yes 15688 ;; 15689 15690# No shared lib support for Linux oldld, aout, or coff. 15691linux*oldld* | linux*aout* | linux*coff*) 15692 dynamic_linker=no 15693 ;; 15694 15695# This must be Linux ELF. 15696linux*) 15697 version_type=linux 15698 need_lib_prefix=no 15699 need_version=no 15700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15701 soname_spec='${libname}${release}${shared_ext}$major' 15702 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15703 shlibpath_var=LD_LIBRARY_PATH 15704 shlibpath_overrides_runpath=no 15705 # This implies no fast_install, which is unacceptable. 15706 # Some rework will be needed to allow for fast_install 15707 # before this can be enabled. 15708 hardcode_into_libs=yes 15709 15710 # find out which ABI we are using 15711 libsuff= 15712 case "$host_cpu" in 15713 x86_64*|s390x*|powerpc64*) 15714 echo '#line __oline__ "configure"' > conftest.$ac_ext 15715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15716 (eval $ac_compile) 2>&5 15717 ac_status=$? 15718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15719 (exit $ac_status); }; then 15720 case `/usr/bin/file conftest.$ac_objext` in 15721 *64-bit*) 15722 libsuff=64 15723 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 15724 ;; 15725 esac 15726 fi 15727 rm -rf conftest* 15728 ;; 15729 esac 15730 15731 # Append ld.so.conf contents to the search path 15732 if test -f /etc/ld.so.conf; then 15733 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 15734 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 15735 fi 15736 15737 # We used to test for /lib/ld.so.1 and disable shared libraries on 15738 # powerpc, because MkLinux only supported shared libraries with the 15739 # GNU dynamic linker. Since this was broken with cross compilers, 15740 # most powerpc-linux boxes support dynamic linking these days and 15741 # people can always --disable-shared, the test was removed, and we 15742 # assume the GNU/Linux dynamic linker is in use. 15743 dynamic_linker='GNU/Linux ld.so' 15744 ;; 15745 15746knetbsd*-gnu) 15747 version_type=linux 15748 need_lib_prefix=no 15749 need_version=no 15750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15751 soname_spec='${libname}${release}${shared_ext}$major' 15752 shlibpath_var=LD_LIBRARY_PATH 15753 shlibpath_overrides_runpath=no 15754 hardcode_into_libs=yes 15755 dynamic_linker='GNU ld.so' 15756 ;; 15757 15758netbsd*) 15759 version_type=sunos 15760 need_lib_prefix=no 15761 need_version=no 15762 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15764 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15765 dynamic_linker='NetBSD (a.out) ld.so' 15766 else 15767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15768 soname_spec='${libname}${release}${shared_ext}$major' 15769 dynamic_linker='NetBSD ld.elf_so' 15770 fi 15771 shlibpath_var=LD_LIBRARY_PATH 15772 shlibpath_overrides_runpath=yes 15773 hardcode_into_libs=yes 15774 ;; 15775 15776newsos6) 15777 version_type=linux 15778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15779 shlibpath_var=LD_LIBRARY_PATH 15780 shlibpath_overrides_runpath=yes 15781 ;; 15782 15783nto-qnx*) 15784 version_type=linux 15785 need_lib_prefix=no 15786 need_version=no 15787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15788 soname_spec='${libname}${release}${shared_ext}$major' 15789 shlibpath_var=LD_LIBRARY_PATH 15790 shlibpath_overrides_runpath=yes 15791 ;; 15792 15793openbsd*) 15794 version_type=sunos 15795 sys_lib_dlsearch_path_spec="/usr/lib" 15796 need_lib_prefix=no 15797 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15798 case $host_os in 15799 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15800 *) need_version=no ;; 15801 esac 15802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15803 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15804 shlibpath_var=LD_LIBRARY_PATH 15805 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15806 case $host_os in 15807 openbsd2.[89] | openbsd2.[89].*) 15808 shlibpath_overrides_runpath=no 15809 ;; 15810 *) 15811 shlibpath_overrides_runpath=yes 15812 ;; 15813 esac 15814 else 15815 shlibpath_overrides_runpath=yes 15816 fi 15817 ;; 15818 15819os2*) 15820 libname_spec='$name' 15821 shrext_cmds=".dll" 15822 need_lib_prefix=no 15823 library_names_spec='$libname${shared_ext} $libname.a' 15824 dynamic_linker='OS/2 ld.exe' 15825 shlibpath_var=LIBPATH 15826 ;; 15827 15828osf3* | osf4* | osf5*) 15829 version_type=osf 15830 need_lib_prefix=no 15831 need_version=no 15832 soname_spec='${libname}${release}${shared_ext}$major' 15833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15834 shlibpath_var=LD_LIBRARY_PATH 15835 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15836 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15837 ;; 15838 15839solaris*) 15840 version_type=linux 15841 need_lib_prefix=no 15842 need_version=no 15843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15844 soname_spec='${libname}${release}${shared_ext}$major' 15845 shlibpath_var=LD_LIBRARY_PATH 15846 shlibpath_overrides_runpath=yes 15847 hardcode_into_libs=yes 15848 # ldd complains unless libraries are executable 15849 postinstall_cmds='chmod +x $lib' 15850 ;; 15851 15852sunos4*) 15853 version_type=sunos 15854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15855 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15856 shlibpath_var=LD_LIBRARY_PATH 15857 shlibpath_overrides_runpath=yes 15858 if test "$with_gnu_ld" = yes; then 15859 need_lib_prefix=no 15860 fi 15861 need_version=yes 15862 ;; 15863 15864sysv4 | sysv4.3*) 15865 version_type=linux 15866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15867 soname_spec='${libname}${release}${shared_ext}$major' 15868 shlibpath_var=LD_LIBRARY_PATH 15869 case $host_vendor in 15870 sni) 15871 shlibpath_overrides_runpath=no 15872 need_lib_prefix=no 15873 export_dynamic_flag_spec='${wl}-Blargedynsym' 15874 runpath_var=LD_RUN_PATH 15875 ;; 15876 siemens) 15877 need_lib_prefix=no 15878 ;; 15879 motorola) 15880 need_lib_prefix=no 15881 need_version=no 15882 shlibpath_overrides_runpath=no 15883 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15884 ;; 15885 esac 15886 ;; 15887 15888sysv4*MP*) 15889 if test -d /usr/nec ;then 15890 version_type=linux 15891 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15892 soname_spec='$libname${shared_ext}.$major' 15893 shlibpath_var=LD_LIBRARY_PATH 15894 fi 15895 ;; 15896 15897sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15898 version_type=freebsd-elf 15899 need_lib_prefix=no 15900 need_version=no 15901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15902 soname_spec='${libname}${release}${shared_ext}$major' 15903 shlibpath_var=LD_LIBRARY_PATH 15904 hardcode_into_libs=yes 15905 if test "$with_gnu_ld" = yes; then 15906 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15907 shlibpath_overrides_runpath=no 15908 else 15909 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15910 shlibpath_overrides_runpath=yes 15911 case $host_os in 15912 sco3.2v5*) 15913 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15914 ;; 15915 esac 15916 fi 15917 sys_lib_dlsearch_path_spec='/usr/lib' 15918 ;; 15919 15920uts4*) 15921 version_type=linux 15922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15923 soname_spec='${libname}${release}${shared_ext}$major' 15924 shlibpath_var=LD_LIBRARY_PATH 15925 ;; 15926 15927*) 15928 dynamic_linker=no 15929 ;; 15930esac 15931echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15932echo "${ECHO_T}$dynamic_linker" >&6 15933test "$dynamic_linker" = no && can_build_shared=no 15934 15935variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15936if test "$GCC" = yes; then 15937 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15938fi 15939 15940echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15941echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 15942hardcode_action_CXX= 15943if test -n "$hardcode_libdir_flag_spec_CXX" || \ 15944 test -n "$runpath_var_CXX" || \ 15945 test "X$hardcode_automatic_CXX" = "Xyes" ; then 15946 15947 # We can hardcode non-existant directories. 15948 if test "$hardcode_direct_CXX" != no && 15949 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15950 # have to relink, otherwise we might link with an installed library 15951 # when we should be linking with a yet-to-be-installed one 15952 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 15953 test "$hardcode_minus_L_CXX" != no; then 15954 # Linking always hardcodes the temporary library directory. 15955 hardcode_action_CXX=relink 15956 else 15957 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15958 hardcode_action_CXX=immediate 15959 fi 15960else 15961 # We cannot hardcode anything, or else we can only hardcode existing 15962 # directories. 15963 hardcode_action_CXX=unsupported 15964fi 15965echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 15966echo "${ECHO_T}$hardcode_action_CXX" >&6 15967 15968if test "$hardcode_action_CXX" = relink; then 15969 # Fast installation is not supported 15970 enable_fast_install=no 15971elif test "$shlibpath_overrides_runpath" = yes || 15972 test "$enable_shared" = no; then 15973 # Fast installation is not necessary 15974 enable_fast_install=needless 15975fi 15976 15977 15978# The else clause should only fire when bootstrapping the 15979# libtool distribution, otherwise you forgot to ship ltmain.sh 15980# with your package, and you will get complaints that there are 15981# no rules to generate ltmain.sh. 15982if test -f "$ltmain"; then 15983 # See if we are running on zsh, and set the options which allow our commands through 15984 # without removal of \ escapes. 15985 if test -n "${ZSH_VERSION+set}" ; then 15986 setopt NO_GLOB_SUBST 15987 fi 15988 # Now quote all the things that may contain metacharacters while being 15989 # careful not to overquote the AC_SUBSTed values. We take copies of the 15990 # variables and quote the copies for generation of the libtool script. 15991 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15992 SED SHELL STRIP \ 15993 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15994 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15995 deplibs_check_method reload_flag reload_cmds need_locks \ 15996 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15997 lt_cv_sys_global_symbol_to_c_name_address \ 15998 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15999 old_postinstall_cmds old_postuninstall_cmds \ 16000 compiler_CXX \ 16001 CC_CXX \ 16002 LD_CXX \ 16003 lt_prog_compiler_wl_CXX \ 16004 lt_prog_compiler_pic_CXX \ 16005 lt_prog_compiler_static_CXX \ 16006 lt_prog_compiler_no_builtin_flag_CXX \ 16007 export_dynamic_flag_spec_CXX \ 16008 thread_safe_flag_spec_CXX \ 16009 whole_archive_flag_spec_CXX \ 16010 enable_shared_with_static_runtimes_CXX \ 16011 old_archive_cmds_CXX \ 16012 old_archive_from_new_cmds_CXX \ 16013 predep_objects_CXX \ 16014 postdep_objects_CXX \ 16015 predeps_CXX \ 16016 postdeps_CXX \ 16017 compiler_lib_search_path_CXX \ 16018 archive_cmds_CXX \ 16019 archive_expsym_cmds_CXX \ 16020 postinstall_cmds_CXX \ 16021 postuninstall_cmds_CXX \ 16022 old_archive_from_expsyms_cmds_CXX \ 16023 allow_undefined_flag_CXX \ 16024 no_undefined_flag_CXX \ 16025 export_symbols_cmds_CXX \ 16026 hardcode_libdir_flag_spec_CXX \ 16027 hardcode_libdir_flag_spec_ld_CXX \ 16028 hardcode_libdir_separator_CXX \ 16029 hardcode_automatic_CXX \ 16030 module_cmds_CXX \ 16031 module_expsym_cmds_CXX \ 16032 lt_cv_prog_compiler_c_o_CXX \ 16033 exclude_expsyms_CXX \ 16034 include_expsyms_CXX; do 16035 16036 case $var in 16037 old_archive_cmds_CXX | \ 16038 old_archive_from_new_cmds_CXX | \ 16039 archive_cmds_CXX | \ 16040 archive_expsym_cmds_CXX | \ 16041 module_cmds_CXX | \ 16042 module_expsym_cmds_CXX | \ 16043 old_archive_from_expsyms_cmds_CXX | \ 16044 export_symbols_cmds_CXX | \ 16045 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16046 postinstall_cmds | postuninstall_cmds | \ 16047 old_postinstall_cmds | old_postuninstall_cmds | \ 16048 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16049 # Double-quote double-evaled strings. 16050 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16051 ;; 16052 *) 16053 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16054 ;; 16055 esac 16056 done 16057 16058 case $lt_echo in 16059 *'\$0 --fallback-echo"') 16060 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16061 ;; 16062 esac 16063 16064cfgfile="$ofile" 16065 16066 cat <<__EOF__ >> "$cfgfile" 16067# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16068 16069# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16070 16071# Shell to use when invoking shell scripts. 16072SHELL=$lt_SHELL 16073 16074# Whether or not to build shared libraries. 16075build_libtool_libs=$enable_shared 16076 16077# Whether or not to build static libraries. 16078build_old_libs=$enable_static 16079 16080# Whether or not to add -lc for building shared libraries. 16081build_libtool_need_lc=$archive_cmds_need_lc_CXX 16082 16083# Whether or not to disallow shared libs when runtime libs are static 16084allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 16085 16086# Whether or not to optimize for fast installation. 16087fast_install=$enable_fast_install 16088 16089# The host system. 16090host_alias=$host_alias 16091host=$host 16092host_os=$host_os 16093 16094# The build system. 16095build_alias=$build_alias 16096build=$build 16097build_os=$build_os 16098 16099# An echo program that does not interpret backslashes. 16100echo=$lt_echo 16101 16102# The archiver. 16103AR=$lt_AR 16104AR_FLAGS=$lt_AR_FLAGS 16105 16106# A C compiler. 16107LTCC=$lt_LTCC 16108 16109# LTCC compiler flags. 16110LTCFLAGS=$lt_LTCFLAGS 16111 16112# A language-specific compiler. 16113CC=$lt_compiler_CXX 16114 16115# Is the compiler the GNU C compiler? 16116with_gcc=$GCC_CXX 16117 16118gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 16119gcc_ver=\`gcc -dumpversion\` 16120 16121# An ERE matcher. 16122EGREP=$lt_EGREP 16123 16124# The linker used to build libraries. 16125LD=$lt_LD_CXX 16126 16127# Whether we need hard or soft links. 16128LN_S=$lt_LN_S 16129 16130# A BSD-compatible nm program. 16131NM=$lt_NM 16132 16133# A symbol stripping program 16134STRIP=$lt_STRIP 16135 16136# Used to examine libraries when file_magic_cmd begins "file" 16137MAGIC_CMD=$MAGIC_CMD 16138 16139# Used on cygwin: DLL creation program. 16140DLLTOOL="$DLLTOOL" 16141 16142# Used on cygwin: object dumper. 16143OBJDUMP="$OBJDUMP" 16144 16145# Used on cygwin: assembler. 16146AS="$AS" 16147 16148# The name of the directory that contains temporary libtool files. 16149objdir=$objdir 16150 16151# How to create reloadable object files. 16152reload_flag=$lt_reload_flag 16153reload_cmds=$lt_reload_cmds 16154 16155# How to pass a linker flag through the compiler. 16156wl=$lt_lt_prog_compiler_wl_CXX 16157 16158# Object file suffix (normally "o"). 16159objext="$ac_objext" 16160 16161# Old archive suffix (normally "a"). 16162libext="$libext" 16163 16164# Shared library suffix (normally ".so"). 16165shrext_cmds='$shrext_cmds' 16166 16167# Executable file suffix (normally ""). 16168exeext="$exeext" 16169 16170# Additional compiler flags for building library objects. 16171pic_flag=$lt_lt_prog_compiler_pic_CXX 16172pic_mode=$pic_mode 16173 16174# What is the maximum length of a command? 16175max_cmd_len=$lt_cv_sys_max_cmd_len 16176 16177# Does compiler simultaneously support -c and -o options? 16178compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 16179 16180# Must we lock files when doing compilation? 16181need_locks=$lt_need_locks 16182 16183# Do we need the lib prefix for modules? 16184need_lib_prefix=$need_lib_prefix 16185 16186# Do we need a version for libraries? 16187need_version=$need_version 16188 16189# Whether dlopen is supported. 16190dlopen_support=$enable_dlopen 16191 16192# Whether dlopen of programs is supported. 16193dlopen_self=$enable_dlopen_self 16194 16195# Whether dlopen of statically linked programs is supported. 16196dlopen_self_static=$enable_dlopen_self_static 16197 16198# Compiler flag to prevent dynamic linking. 16199link_static_flag=$lt_lt_prog_compiler_static_CXX 16200 16201# Compiler flag to turn off builtin functions. 16202no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 16203 16204# Compiler flag to allow reflexive dlopens. 16205export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 16206 16207# Compiler flag to generate shared objects directly from archives. 16208whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 16209 16210# Compiler flag to generate thread-safe objects. 16211thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 16212 16213# Library versioning type. 16214version_type=$version_type 16215 16216# Format of library name prefix. 16217libname_spec=$lt_libname_spec 16218 16219# List of archive names. First name is the real one, the rest are links. 16220# The last name is the one that the linker finds with -lNAME. 16221library_names_spec=$lt_library_names_spec 16222 16223# The coded name of the library, if different from the real name. 16224soname_spec=$lt_soname_spec 16225 16226# Commands used to build and install an old-style archive. 16227RANLIB=$lt_RANLIB 16228old_archive_cmds=$lt_old_archive_cmds_CXX 16229old_postinstall_cmds=$lt_old_postinstall_cmds 16230old_postuninstall_cmds=$lt_old_postuninstall_cmds 16231 16232# Create an old-style archive from a shared archive. 16233old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 16234 16235# Create a temporary old-style archive to link instead of a shared archive. 16236old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 16237 16238# Commands used to build and install a shared archive. 16239archive_cmds=$lt_archive_cmds_CXX 16240archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 16241postinstall_cmds=$lt_postinstall_cmds 16242postuninstall_cmds=$lt_postuninstall_cmds 16243 16244# Commands used to build a loadable module (assumed same as above if empty) 16245module_cmds=$lt_module_cmds_CXX 16246module_expsym_cmds=$lt_module_expsym_cmds_CXX 16247 16248# Commands to strip libraries. 16249old_striplib=$lt_old_striplib 16250striplib=$lt_striplib 16251 16252# Dependencies to place before the objects being linked to create a 16253# shared library. 16254predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 16255 16256# Dependencies to place after the objects being linked to create a 16257# shared library. 16258postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 16259 16260# Dependencies to place before the objects being linked to create a 16261# shared library. 16262predeps=$lt_predeps_CXX 16263 16264# Dependencies to place after the objects being linked to create a 16265# shared library. 16266postdeps=$lt_postdeps_CXX 16267 16268# The library search path used internally by the compiler when linking 16269# a shared library. 16270compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 16271 16272# Method to check whether dependent libraries are shared objects. 16273deplibs_check_method=$lt_deplibs_check_method 16274 16275# Command to use when deplibs_check_method == file_magic. 16276file_magic_cmd=$lt_file_magic_cmd 16277 16278# Flag that allows shared libraries with undefined symbols to be built. 16279allow_undefined_flag=$lt_allow_undefined_flag_CXX 16280 16281# Flag that forces no undefined symbols. 16282no_undefined_flag=$lt_no_undefined_flag_CXX 16283 16284# Commands used to finish a libtool library installation in a directory. 16285finish_cmds=$lt_finish_cmds 16286 16287# Same as above, but a single script fragment to be evaled but not shown. 16288finish_eval=$lt_finish_eval 16289 16290# Take the output of nm and produce a listing of raw symbols and C names. 16291global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16292 16293# Transform the output of nm in a proper C declaration 16294global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16295 16296# Transform the output of nm in a C name address pair 16297global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16298 16299# This is the shared library runtime path variable. 16300runpath_var=$runpath_var 16301 16302# This is the shared library path variable. 16303shlibpath_var=$shlibpath_var 16304 16305# Is shlibpath searched before the hard-coded library search path? 16306shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16307 16308# How to hardcode a shared library path into an executable. 16309hardcode_action=$hardcode_action_CXX 16310 16311# Whether we should hardcode library paths into libraries. 16312hardcode_into_libs=$hardcode_into_libs 16313 16314# Flag to hardcode \$libdir into a binary during linking. 16315# This must work even if \$libdir does not exist. 16316hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 16317 16318# If ld is used when linking, flag to hardcode \$libdir into 16319# a binary during linking. This must work even if \$libdir does 16320# not exist. 16321hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 16322 16323# Whether we need a single -rpath flag with a separated argument. 16324hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 16325 16326# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16327# resulting binary. 16328hardcode_direct=$hardcode_direct_CXX 16329 16330# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16331# resulting binary. 16332hardcode_minus_L=$hardcode_minus_L_CXX 16333 16334# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16335# the resulting binary. 16336hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 16337 16338# Set to yes if building a shared library automatically hardcodes DIR into the library 16339# and all subsequent libraries and executables linked against it. 16340hardcode_automatic=$hardcode_automatic_CXX 16341 16342# Variables whose values should be saved in libtool wrapper scripts and 16343# restored at relink time. 16344variables_saved_for_relink="$variables_saved_for_relink" 16345 16346# Whether libtool must link a program against all its dependency libraries. 16347link_all_deplibs=$link_all_deplibs_CXX 16348 16349# Compile-time system search path for libraries 16350sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 16351 16352# Run-time system search path for libraries 16353sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16354 16355# Fix the shell variable \$srcfile for the compiler. 16356fix_srcfile_path="$fix_srcfile_path_CXX" 16357 16358# Set to yes if exported symbols are required. 16359always_export_symbols=$always_export_symbols_CXX 16360 16361# The commands to list exported symbols. 16362export_symbols_cmds=$lt_export_symbols_cmds_CXX 16363 16364# The commands to extract the exported symbol list from a shared archive. 16365extract_expsyms_cmds=$lt_extract_expsyms_cmds 16366 16367# Symbols that should not be listed in the preloaded symbols. 16368exclude_expsyms=$lt_exclude_expsyms_CXX 16369 16370# Symbols that must always be exported. 16371include_expsyms=$lt_include_expsyms_CXX 16372 16373# ### END LIBTOOL TAG CONFIG: $tagname 16374 16375__EOF__ 16376 16377 16378else 16379 # If there is no Makefile yet, we rely on a make rule to execute 16380 # `config.status --recheck' to rerun these tests and create the 16381 # libtool script then. 16382 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16383 if test -f "$ltmain_in"; then 16384 test -f Makefile && make "$ltmain" 16385 fi 16386fi 16387 16388 16389ac_ext=c 16390ac_cpp='$CPP $CPPFLAGS' 16391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16393ac_compiler_gnu=$ac_cv_c_compiler_gnu 16394 16395CC=$lt_save_CC 16396LDCXX=$LD 16397LD=$lt_save_LD 16398GCC=$lt_save_GCC 16399with_gnu_ldcxx=$with_gnu_ld 16400with_gnu_ld=$lt_save_with_gnu_ld 16401lt_cv_path_LDCXX=$lt_cv_path_LD 16402lt_cv_path_LD=$lt_save_path_LD 16403lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16404lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16405 16406 else 16407 tagname="" 16408 fi 16409 ;; 16410 16411 F77) 16412 if test -n "$F77" && test "X$F77" != "Xno"; then 16413 16414ac_ext=f 16415ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 16416ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16417ac_compiler_gnu=$ac_cv_f77_compiler_gnu 16418 16419 16420archive_cmds_need_lc_F77=no 16421allow_undefined_flag_F77= 16422always_export_symbols_F77=no 16423archive_expsym_cmds_F77= 16424export_dynamic_flag_spec_F77= 16425hardcode_direct_F77=no 16426hardcode_libdir_flag_spec_F77= 16427hardcode_libdir_flag_spec_ld_F77= 16428hardcode_libdir_separator_F77= 16429hardcode_minus_L_F77=no 16430hardcode_automatic_F77=no 16431module_cmds_F77= 16432module_expsym_cmds_F77= 16433link_all_deplibs_F77=unknown 16434old_archive_cmds_F77=$old_archive_cmds 16435no_undefined_flag_F77= 16436whole_archive_flag_spec_F77= 16437enable_shared_with_static_runtimes_F77=no 16438 16439# Source file extension for f77 test sources. 16440ac_ext=f 16441 16442# Object file extension for compiled f77 test sources. 16443objext=o 16444objext_F77=$objext 16445 16446# Code to be used in simple compile tests 16447lt_simple_compile_test_code=" subroutine t\n return\n end\n" 16448 16449# Code to be used in simple link tests 16450lt_simple_link_test_code=" program t\n end\n" 16451 16452# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16453 16454# If no C compiler was specified, use CC. 16455LTCC=${LTCC-"$CC"} 16456 16457# If no C compiler flags were specified, use CFLAGS. 16458LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16459 16460# Allow CC to be a program name with arguments. 16461compiler=$CC 16462 16463 16464# save warnings/boilerplate of simple test code 16465ac_outfile=conftest.$ac_objext 16466printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16467eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16468_lt_compiler_boilerplate=`cat conftest.err` 16469$rm conftest* 16470 16471ac_outfile=conftest.$ac_objext 16472printf "$lt_simple_link_test_code" >conftest.$ac_ext 16473eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16474_lt_linker_boilerplate=`cat conftest.err` 16475$rm conftest* 16476 16477 16478# Allow CC to be a program name with arguments. 16479lt_save_CC="$CC" 16480CC=${F77-"f77"} 16481compiler=$CC 16482compiler_F77=$CC 16483for cc_temp in $compiler""; do 16484 case $cc_temp in 16485 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16486 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16487 \-*) ;; 16488 *) break;; 16489 esac 16490done 16491cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16492 16493 16494echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 16495echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 16496echo "$as_me:$LINENO: result: $can_build_shared" >&5 16497echo "${ECHO_T}$can_build_shared" >&6 16498 16499echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 16500echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 16501test "$can_build_shared" = "no" && enable_shared=no 16502 16503# On AIX, shared libraries and static libraries use the same namespace, and 16504# are all built from PIC. 16505case $host_os in 16506aix3*) 16507 test "$enable_shared" = yes && enable_static=no 16508 if test -n "$RANLIB"; then 16509 archive_cmds="$archive_cmds~\$RANLIB \$lib" 16510 postinstall_cmds='$RANLIB $lib' 16511 fi 16512 ;; 16513aix4* | aix5*) 16514 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 16515 test "$enable_shared" = yes && enable_static=no 16516 fi 16517 ;; 16518esac 16519echo "$as_me:$LINENO: result: $enable_shared" >&5 16520echo "${ECHO_T}$enable_shared" >&6 16521 16522echo "$as_me:$LINENO: checking whether to build static libraries" >&5 16523echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 16524# Make sure either enable_shared or enable_static is yes. 16525test "$enable_shared" = yes || enable_static=yes 16526echo "$as_me:$LINENO: result: $enable_static" >&5 16527echo "${ECHO_T}$enable_static" >&6 16528 16529GCC_F77="$G77" 16530LD_F77="$LD" 16531 16532lt_prog_compiler_wl_F77= 16533lt_prog_compiler_pic_F77= 16534lt_prog_compiler_static_F77= 16535 16536echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16537echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 16538 16539 if test "$GCC" = yes; then 16540 lt_prog_compiler_wl_F77='-Wl,' 16541 lt_prog_compiler_static_F77='-static' 16542 16543 case $host_os in 16544 aix*) 16545 # All AIX code is PIC. 16546 if test "$host_cpu" = ia64; then 16547 # AIX 5 now supports IA64 processor 16548 lt_prog_compiler_static_F77='-Bstatic' 16549 fi 16550 ;; 16551 16552 amigaos*) 16553 # FIXME: we need at least 68020 code to build shared libraries, but 16554 # adding the `-m68020' flag to GCC prevents building anything better, 16555 # like `-m68040'. 16556 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 16557 ;; 16558 16559 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16560 # PIC is the default for these OSes. 16561 ;; 16562 16563 mingw* | pw32* | os2*) 16564 # This hack is so that the source file can tell whether it is being 16565 # built for inclusion in a dll (and should export symbols for example). 16566 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 16567 ;; 16568 16569 darwin* | rhapsody*) 16570 # PIC is the default on this platform 16571 # Common symbols not allowed in MH_DYLIB files 16572 lt_prog_compiler_pic_F77='-fno-common' 16573 ;; 16574 16575 interix3*) 16576 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16577 # Instead, we relocate shared libraries at runtime. 16578 ;; 16579 16580 msdosdjgpp*) 16581 # Just because we use GCC doesn't mean we suddenly get shared libraries 16582 # on systems that don't support them. 16583 lt_prog_compiler_can_build_shared_F77=no 16584 enable_shared=no 16585 ;; 16586 16587 sysv4*MP*) 16588 if test -d /usr/nec; then 16589 lt_prog_compiler_pic_F77=-Kconform_pic 16590 fi 16591 ;; 16592 16593 hpux*) 16594 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16595 # not for PA HP-UX. 16596 case $host_cpu in 16597 hppa*64*|ia64*) 16598 # +Z the default 16599 ;; 16600 *) 16601 lt_prog_compiler_pic_F77='-fPIC' 16602 ;; 16603 esac 16604 ;; 16605 16606 *) 16607 lt_prog_compiler_pic_F77='-fPIC' 16608 ;; 16609 esac 16610 else 16611 # PORTME Check for flag to pass linker flags through the system compiler. 16612 case $host_os in 16613 aix*) 16614 lt_prog_compiler_wl_F77='-Wl,' 16615 if test "$host_cpu" = ia64; then 16616 # AIX 5 now supports IA64 processor 16617 lt_prog_compiler_static_F77='-Bstatic' 16618 else 16619 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 16620 fi 16621 ;; 16622 darwin*) 16623 # PIC is the default on this platform 16624 # Common symbols not allowed in MH_DYLIB files 16625 case $cc_basename in 16626 xlc*) 16627 lt_prog_compiler_pic_F77='-qnocommon' 16628 lt_prog_compiler_wl_F77='-Wl,' 16629 ;; 16630 esac 16631 ;; 16632 16633 mingw* | pw32* | os2*) 16634 # This hack is so that the source file can tell whether it is being 16635 # built for inclusion in a dll (and should export symbols for example). 16636 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 16637 ;; 16638 16639 hpux9* | hpux10* | hpux11*) 16640 lt_prog_compiler_wl_F77='-Wl,' 16641 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16642 # not for PA HP-UX. 16643 case $host_cpu in 16644 hppa*64*|ia64*) 16645 # +Z the default 16646 ;; 16647 *) 16648 lt_prog_compiler_pic_F77='+Z' 16649 ;; 16650 esac 16651 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16652 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 16653 ;; 16654 16655 irix5* | irix6* | nonstopux*) 16656 lt_prog_compiler_wl_F77='-Wl,' 16657 # PIC (with -KPIC) is the default. 16658 lt_prog_compiler_static_F77='-non_shared' 16659 ;; 16660 16661 newsos6) 16662 lt_prog_compiler_pic_F77='-KPIC' 16663 lt_prog_compiler_static_F77='-Bstatic' 16664 ;; 16665 16666 linux*) 16667 case $cc_basename in 16668 icc* | ecc*) 16669 lt_prog_compiler_wl_F77='-Wl,' 16670 lt_prog_compiler_pic_F77='-KPIC' 16671 lt_prog_compiler_static_F77='-static' 16672 ;; 16673 pgcc* | pgf77* | pgf90* | pgf95*) 16674 # Portland Group compilers (*not* the Pentium gcc compiler, 16675 # which looks to be a dead project) 16676 lt_prog_compiler_wl_F77='-Wl,' 16677 lt_prog_compiler_pic_F77='-fpic' 16678 lt_prog_compiler_static_F77='-Bstatic' 16679 ;; 16680 ccc*) 16681 lt_prog_compiler_wl_F77='-Wl,' 16682 # All Alpha code is PIC. 16683 lt_prog_compiler_static_F77='-non_shared' 16684 ;; 16685 esac 16686 ;; 16687 16688 osf3* | osf4* | osf5*) 16689 lt_prog_compiler_wl_F77='-Wl,' 16690 # All OSF/1 code is PIC. 16691 lt_prog_compiler_static_F77='-non_shared' 16692 ;; 16693 16694 solaris*) 16695 lt_prog_compiler_pic_F77='-KPIC' 16696 lt_prog_compiler_static_F77='-Bstatic' 16697 case $cc_basename in 16698 f77* | f90* | f95*) 16699 lt_prog_compiler_wl_F77='-Qoption ld ';; 16700 *) 16701 lt_prog_compiler_wl_F77='-Wl,';; 16702 esac 16703 ;; 16704 16705 sunos4*) 16706 lt_prog_compiler_wl_F77='-Qoption ld ' 16707 lt_prog_compiler_pic_F77='-PIC' 16708 lt_prog_compiler_static_F77='-Bstatic' 16709 ;; 16710 16711 sysv4 | sysv4.2uw2* | sysv4.3*) 16712 lt_prog_compiler_wl_F77='-Wl,' 16713 lt_prog_compiler_pic_F77='-KPIC' 16714 lt_prog_compiler_static_F77='-Bstatic' 16715 ;; 16716 16717 sysv4*MP*) 16718 if test -d /usr/nec ;then 16719 lt_prog_compiler_pic_F77='-Kconform_pic' 16720 lt_prog_compiler_static_F77='-Bstatic' 16721 fi 16722 ;; 16723 16724 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16725 lt_prog_compiler_wl_F77='-Wl,' 16726 lt_prog_compiler_pic_F77='-KPIC' 16727 lt_prog_compiler_static_F77='-Bstatic' 16728 ;; 16729 16730 unicos*) 16731 lt_prog_compiler_wl_F77='-Wl,' 16732 lt_prog_compiler_can_build_shared_F77=no 16733 ;; 16734 16735 uts4*) 16736 lt_prog_compiler_pic_F77='-pic' 16737 lt_prog_compiler_static_F77='-Bstatic' 16738 ;; 16739 16740 *) 16741 lt_prog_compiler_can_build_shared_F77=no 16742 ;; 16743 esac 16744 fi 16745 16746echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 16747echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 16748 16749# 16750# Check to make sure the PIC flag actually works. 16751# 16752if test -n "$lt_prog_compiler_pic_F77"; then 16753 16754echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 16755echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 16756if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 16757 echo $ECHO_N "(cached) $ECHO_C" >&6 16758else 16759 lt_prog_compiler_pic_works_F77=no 16760 ac_outfile=conftest.$ac_objext 16761 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16762 lt_compiler_flag="$lt_prog_compiler_pic_F77" 16763 # Insert the option either (1) after the last *FLAGS variable, or 16764 # (2) before a word containing "conftest.", or (3) at the end. 16765 # Note that $ac_compile itself does not contain backslashes and begins 16766 # with a dollar sign (not a hyphen), so the echo should work correctly. 16767 # The option is referenced via a variable to avoid confusing sed. 16768 lt_compile=`echo "$ac_compile" | $SED \ 16769 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16770 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16771 -e 's:$: $lt_compiler_flag:'` 16772 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 16773 (eval "$lt_compile" 2>conftest.err) 16774 ac_status=$? 16775 cat conftest.err >&5 16776 echo "$as_me:__oline__: \$? = $ac_status" >&5 16777 if (exit $ac_status) && test -s "$ac_outfile"; then 16778 # The compiler can only warn and ignore the option if not recognized 16779 # So say no if there are warnings other than the usual output. 16780 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16781 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16782 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16783 lt_prog_compiler_pic_works_F77=yes 16784 fi 16785 fi 16786 $rm conftest* 16787 16788fi 16789echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 16790echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 16791 16792if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 16793 case $lt_prog_compiler_pic_F77 in 16794 "" | " "*) ;; 16795 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 16796 esac 16797else 16798 lt_prog_compiler_pic_F77= 16799 lt_prog_compiler_can_build_shared_F77=no 16800fi 16801 16802fi 16803case $host_os in 16804 # For platforms which do not support PIC, -DPIC is meaningless: 16805 *djgpp*) 16806 lt_prog_compiler_pic_F77= 16807 ;; 16808 *) 16809 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 16810 ;; 16811esac 16812 16813# 16814# Check to make sure the static flag actually works. 16815# 16816wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 16817echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16818echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 16819if test "${lt_prog_compiler_static_works_F77+set}" = set; then 16820 echo $ECHO_N "(cached) $ECHO_C" >&6 16821else 16822 lt_prog_compiler_static_works_F77=no 16823 save_LDFLAGS="$LDFLAGS" 16824 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16825 printf "$lt_simple_link_test_code" > conftest.$ac_ext 16826 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16827 # The linker can only warn and ignore the option if not recognized 16828 # So say no if there are warnings 16829 if test -s conftest.err; then 16830 # Append any errors to the config.log. 16831 cat conftest.err 1>&5 16832 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 16833 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16834 if diff conftest.exp conftest.er2 >/dev/null; then 16835 lt_prog_compiler_static_works_F77=yes 16836 fi 16837 else 16838 lt_prog_compiler_static_works_F77=yes 16839 fi 16840 fi 16841 $rm conftest* 16842 LDFLAGS="$save_LDFLAGS" 16843 16844fi 16845echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 16846echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 16847 16848if test x"$lt_prog_compiler_static_works_F77" = xyes; then 16849 : 16850else 16851 lt_prog_compiler_static_F77= 16852fi 16853 16854 16855echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16856echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 16857if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 16858 echo $ECHO_N "(cached) $ECHO_C" >&6 16859else 16860 lt_cv_prog_compiler_c_o_F77=no 16861 $rm -r conftest 2>/dev/null 16862 mkdir conftest 16863 cd conftest 16864 mkdir out 16865 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16866 16867 lt_compiler_flag="-o out/conftest2.$ac_objext" 16868 # Insert the option either (1) after the last *FLAGS variable, or 16869 # (2) before a word containing "conftest.", or (3) at the end. 16870 # Note that $ac_compile itself does not contain backslashes and begins 16871 # with a dollar sign (not a hyphen), so the echo should work correctly. 16872 lt_compile=`echo "$ac_compile" | $SED \ 16873 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16874 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16875 -e 's:$: $lt_compiler_flag:'` 16876 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 16877 (eval "$lt_compile" 2>out/conftest.err) 16878 ac_status=$? 16879 cat out/conftest.err >&5 16880 echo "$as_me:__oline__: \$? = $ac_status" >&5 16881 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16882 then 16883 # The compiler can only warn and ignore the option if not recognized 16884 # So say no if there are warnings 16885 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 16886 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16887 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16888 lt_cv_prog_compiler_c_o_F77=yes 16889 fi 16890 fi 16891 chmod u+w . 2>&5 16892 $rm conftest* 16893 # SGI C++ compiler will create directory out/ii_files/ for 16894 # template instantiation 16895 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16896 $rm out/* && rmdir out 16897 cd .. 16898 rmdir conftest 16899 $rm conftest* 16900 16901fi 16902echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 16903echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 16904 16905 16906hard_links="nottested" 16907if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 16908 # do not overwrite the value of need_locks provided by the user 16909 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16910echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 16911 hard_links=yes 16912 $rm conftest* 16913 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16914 touch conftest.a 16915 ln conftest.a conftest.b 2>&5 || hard_links=no 16916 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16917 echo "$as_me:$LINENO: result: $hard_links" >&5 16918echo "${ECHO_T}$hard_links" >&6 16919 if test "$hard_links" = no; then 16920 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16921echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16922 need_locks=warn 16923 fi 16924else 16925 need_locks=no 16926fi 16927 16928echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16929echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 16930 16931 runpath_var= 16932 allow_undefined_flag_F77= 16933 enable_shared_with_static_runtimes_F77=no 16934 archive_cmds_F77= 16935 archive_expsym_cmds_F77= 16936 old_archive_From_new_cmds_F77= 16937 old_archive_from_expsyms_cmds_F77= 16938 export_dynamic_flag_spec_F77= 16939 whole_archive_flag_spec_F77= 16940 thread_safe_flag_spec_F77= 16941 hardcode_libdir_flag_spec_F77= 16942 hardcode_libdir_flag_spec_ld_F77= 16943 hardcode_libdir_separator_F77= 16944 hardcode_direct_F77=no 16945 hardcode_minus_L_F77=no 16946 hardcode_shlibpath_var_F77=unsupported 16947 link_all_deplibs_F77=unknown 16948 hardcode_automatic_F77=no 16949 module_cmds_F77= 16950 module_expsym_cmds_F77= 16951 always_export_symbols_F77=no 16952 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16953 # include_expsyms should be a list of space-separated symbols to be *always* 16954 # included in the symbol list 16955 include_expsyms_F77= 16956 # exclude_expsyms can be an extended regexp of symbols to exclude 16957 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16958 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16959 # as well as any symbol that contains `d'. 16960 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 16961 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16962 # platforms (ab)use it in PIC code, but their linkers get confused if 16963 # the symbol is explicitly referenced. Since portable code cannot 16964 # rely on this symbol name, it's probably fine to never include it in 16965 # preloaded symbol tables. 16966 extract_expsyms_cmds= 16967 # Just being paranoid about ensuring that cc_basename is set. 16968 for cc_temp in $compiler""; do 16969 case $cc_temp in 16970 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16971 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16972 \-*) ;; 16973 *) break;; 16974 esac 16975done 16976cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16977 16978 case $host_os in 16979 cygwin* | mingw* | pw32*) 16980 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16981 # When not using gcc, we currently assume that we are using 16982 # Microsoft Visual C++. 16983 if test "$GCC" != yes; then 16984 with_gnu_ld=no 16985 fi 16986 ;; 16987 interix*) 16988 # we just hope/assume this is gcc and not c89 (= MSVC++) 16989 with_gnu_ld=yes 16990 ;; 16991 openbsd*) 16992 with_gnu_ld=no 16993 ;; 16994 esac 16995 16996 ld_shlibs_F77=yes 16997 if test "$with_gnu_ld" = yes; then 16998 # If archive_cmds runs LD, not CC, wlarc should be empty 16999 wlarc='${wl}' 17000 17001 # Set some defaults for GNU ld with shared library support. These 17002 # are reset later if shared libraries are not supported. Putting them 17003 # here allows them to be overridden if necessary. 17004 runpath_var=LD_RUN_PATH 17005 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 17006 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 17007 # ancient GNU ld didn't support --whole-archive et. al. 17008 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17009 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17010 else 17011 whole_archive_flag_spec_F77= 17012 fi 17013 supports_anon_versioning=no 17014 case `$LD -v 2>/dev/null` in 17015 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17016 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17017 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17018 *\ 2.11.*) ;; # other 2.11 versions 17019 *) supports_anon_versioning=yes ;; 17020 esac 17021 17022 # See if GNU ld supports shared libraries. 17023 case $host_os in 17024 aix3* | aix4* | aix5*) 17025 # On AIX/PPC, the GNU linker is very broken 17026 if test "$host_cpu" != ia64; then 17027 ld_shlibs_F77=no 17028 cat <<EOF 1>&2 17029 17030*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17031*** to be unable to reliably create shared libraries on AIX. 17032*** Therefore, libtool is disabling shared libraries support. If you 17033*** really care for shared libraries, you may want to modify your PATH 17034*** so that a non-GNU linker is found, and then restart. 17035 17036EOF 17037 fi 17038 ;; 17039 17040 amigaos*) 17041 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)' 17042 hardcode_libdir_flag_spec_F77='-L$libdir' 17043 hardcode_minus_L_F77=yes 17044 17045 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17046 # that the semantics of dynamic libraries on AmigaOS, at least up 17047 # to version 4, is to share data among multiple programs linked 17048 # with the same dynamic library. Since this doesn't match the 17049 # behavior of shared libraries on other platforms, we can't use 17050 # them. 17051 ld_shlibs_F77=no 17052 ;; 17053 17054 beos*) 17055 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17056 allow_undefined_flag_F77=unsupported 17057 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17058 # support --undefined. This deserves some investigation. FIXME 17059 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17060 else 17061 ld_shlibs_F77=no 17062 fi 17063 ;; 17064 17065 cygwin* | mingw* | pw32*) 17066 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 17067 # as there is no search path for DLLs. 17068 hardcode_libdir_flag_spec_F77='-L$libdir' 17069 allow_undefined_flag_F77=unsupported 17070 always_export_symbols_F77=no 17071 enable_shared_with_static_runtimes_F77=yes 17072 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 17073 17074 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17075 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17076 # If the export-symbols file already is a .def file (1st line 17077 # is EXPORTS), use it as is; otherwise, prepend... 17078 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17079 cp $export_symbols $output_objdir/$soname.def; 17080 else 17081 echo EXPORTS > $output_objdir/$soname.def; 17082 cat $export_symbols >> $output_objdir/$soname.def; 17083 fi~ 17084 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17085 else 17086 ld_shlibs_F77=no 17087 fi 17088 ;; 17089 17090 interix3*) 17091 hardcode_direct_F77=no 17092 hardcode_shlibpath_var_F77=no 17093 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 17094 export_dynamic_flag_spec_F77='${wl}-E' 17095 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17096 # Instead, shared libraries are loaded at an image base (0x10000000 by 17097 # default) and relocated if they conflict, which is a slow very memory 17098 # consuming and fragmenting process. To avoid this, we pick a random, 17099 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17100 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17101 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 17102 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 17103 ;; 17104 17105 linux*) 17106 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17107 tmp_addflag= 17108 case $cc_basename,$host_cpu in 17109 pgcc*) # Portland Group C compiler 17110 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 17111 tmp_addflag=' $pic_flag' 17112 ;; 17113 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17114 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 17115 tmp_addflag=' $pic_flag -Mnomain' ;; 17116 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17117 tmp_addflag=' -i_dynamic' ;; 17118 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17119 tmp_addflag=' -i_dynamic -nofor_main' ;; 17120 ifc* | ifort*) # Intel Fortran compiler 17121 tmp_addflag=' -nofor_main' ;; 17122 esac 17123 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17124 17125 if test $supports_anon_versioning = yes; then 17126 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 17127 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17128 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17129 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17130 fi 17131 else 17132 ld_shlibs_F77=no 17133 fi 17134 ;; 17135 17136 netbsd*) 17137 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17138 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17139 wlarc= 17140 else 17141 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17142 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17143 fi 17144 ;; 17145 17146 solaris*) 17147 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17148 ld_shlibs_F77=no 17149 cat <<EOF 1>&2 17150 17151*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17152*** create shared libraries on Solaris systems. Therefore, libtool 17153*** is disabling shared libraries support. We urge you to upgrade GNU 17154*** binutils to release 2.9.1 or newer. Another option is to modify 17155*** your PATH or compiler configuration so that the native linker is 17156*** used, and then restart. 17157 17158EOF 17159 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17160 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17161 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17162 else 17163 ld_shlibs_F77=no 17164 fi 17165 ;; 17166 17167 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17168 case `$LD -v 2>&1` in 17169 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17170 ld_shlibs_F77=no 17171 cat <<_LT_EOF 1>&2 17172 17173*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17174*** reliably create shared libraries on SCO systems. Therefore, libtool 17175*** is disabling shared libraries support. We urge you to upgrade GNU 17176*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17177*** your PATH or compiler configuration so that the native linker is 17178*** used, and then restart. 17179 17180_LT_EOF 17181 ;; 17182 *) 17183 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17184 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17185 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17186 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17187 else 17188 ld_shlibs_F77=no 17189 fi 17190 ;; 17191 esac 17192 ;; 17193 17194 sunos4*) 17195 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17196 wlarc= 17197 hardcode_direct_F77=yes 17198 hardcode_shlibpath_var_F77=no 17199 ;; 17200 17201 *) 17202 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17203 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17204 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17205 else 17206 ld_shlibs_F77=no 17207 fi 17208 ;; 17209 esac 17210 17211 if test "$ld_shlibs_F77" = no; then 17212 runpath_var= 17213 hardcode_libdir_flag_spec_F77= 17214 export_dynamic_flag_spec_F77= 17215 whole_archive_flag_spec_F77= 17216 fi 17217 else 17218 # PORTME fill in a description of your system's linker (not GNU ld) 17219 case $host_os in 17220 aix3*) 17221 allow_undefined_flag_F77=unsupported 17222 always_export_symbols_F77=yes 17223 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' 17224 # Note: this linker hardcodes the directories in LIBPATH if there 17225 # are no directories specified by -L. 17226 hardcode_minus_L_F77=yes 17227 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17228 # Neither direct hardcoding nor static linking is supported with a 17229 # broken collect2. 17230 hardcode_direct_F77=unsupported 17231 fi 17232 ;; 17233 17234 aix4* | aix5*) 17235 if test "$host_cpu" = ia64; then 17236 # On IA64, the linker does run time linking by default, so we don't 17237 # have to do anything special. 17238 aix_use_runtimelinking=no 17239 exp_sym_flag='-Bexport' 17240 no_entry_flag="" 17241 else 17242 # If we're using GNU nm, then we don't want the "-C" option. 17243 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17244 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17245 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' 17246 else 17247 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' 17248 fi 17249 aix_use_runtimelinking=no 17250 17251 # Test if we are trying to use run time linking or normal 17252 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17253 # need to do runtime linking. 17254 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17255 for ld_flag in $LDFLAGS; do 17256 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17257 aix_use_runtimelinking=yes 17258 break 17259 fi 17260 done 17261 ;; 17262 esac 17263 17264 exp_sym_flag='-bexport' 17265 no_entry_flag='-bnoentry' 17266 fi 17267 17268 # When large executables or shared objects are built, AIX ld can 17269 # have problems creating the table of contents. If linking a library 17270 # or program results in "error TOC overflow" add -mminimal-toc to 17271 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17272 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17273 17274 archive_cmds_F77='' 17275 hardcode_direct_F77=yes 17276 hardcode_libdir_separator_F77=':' 17277 link_all_deplibs_F77=yes 17278 17279 if test "$GCC" = yes; then 17280 case $host_os in aix4.[012]|aix4.[012].*) 17281 # We only want to do this on AIX 4.2 and lower, the check 17282 # below for broken collect2 doesn't work under 4.3+ 17283 collect2name=`${CC} -print-prog-name=collect2` 17284 if test -f "$collect2name" && \ 17285 strings "$collect2name" | grep resolve_lib_name >/dev/null 17286 then 17287 # We have reworked collect2 17288 hardcode_direct_F77=yes 17289 else 17290 # We have old collect2 17291 hardcode_direct_F77=unsupported 17292 # It fails to find uninstalled libraries when the uninstalled 17293 # path is not listed in the libpath. Setting hardcode_minus_L 17294 # to unsupported forces relinking 17295 hardcode_minus_L_F77=yes 17296 hardcode_libdir_flag_spec_F77='-L$libdir' 17297 hardcode_libdir_separator_F77= 17298 fi 17299 ;; 17300 esac 17301 shared_flag='-shared' 17302 if test "$aix_use_runtimelinking" = yes; then 17303 shared_flag="$shared_flag "'${wl}-G' 17304 fi 17305 else 17306 # not using gcc 17307 if test "$host_cpu" = ia64; then 17308 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17309 # chokes on -Wl,-G. The following line is correct: 17310 shared_flag='-G' 17311 else 17312 if test "$aix_use_runtimelinking" = yes; then 17313 shared_flag='${wl}-G' 17314 else 17315 shared_flag='${wl}-bM:SRE' 17316 fi 17317 fi 17318 fi 17319 17320 # It seems that -bexpall does not export symbols beginning with 17321 # underscore (_), so it is better to generate a list of symbols to export. 17322 always_export_symbols_F77=yes 17323 if test "$aix_use_runtimelinking" = yes; then 17324 # Warning - without using the other runtime loading flags (-brtl), 17325 # -berok will link without error, but may produce a broken library. 17326 allow_undefined_flag_F77='-berok' 17327 # Determine the default libpath from the value encoded in an empty executable. 17328 cat >conftest.$ac_ext <<_ACEOF 17329 program main 17330 17331 end 17332_ACEOF 17333rm -f conftest.$ac_objext conftest$ac_exeext 17334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17335 (eval $ac_link) 2>conftest.er1 17336 ac_status=$? 17337 grep -v '^ *+' conftest.er1 >conftest.err 17338 rm -f conftest.er1 17339 cat conftest.err >&5 17340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17341 (exit $ac_status); } && 17342 { ac_try='test -z "$ac_f77_werror_flag" 17343 || test ! -s conftest.err' 17344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17345 (eval $ac_try) 2>&5 17346 ac_status=$? 17347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17348 (exit $ac_status); }; } && 17349 { ac_try='test -s conftest$ac_exeext' 17350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17351 (eval $ac_try) 2>&5 17352 ac_status=$? 17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17354 (exit $ac_status); }; }; then 17355 17356aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17357}'` 17358# Check for a 64-bit object if we didn't find anything. 17359if 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; } 17360}'`; fi 17361else 17362 echo "$as_me: failed program was:" >&5 17363sed 's/^/| /' conftest.$ac_ext >&5 17364 17365fi 17366rm -f conftest.err conftest.$ac_objext \ 17367 conftest$ac_exeext conftest.$ac_ext 17368if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17369 17370 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 17371 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 17372 else 17373 if test "$host_cpu" = ia64; then 17374 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 17375 allow_undefined_flag_F77="-z nodefs" 17376 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 17377 else 17378 # Determine the default libpath from the value encoded in an empty executable. 17379 cat >conftest.$ac_ext <<_ACEOF 17380 program main 17381 17382 end 17383_ACEOF 17384rm -f conftest.$ac_objext conftest$ac_exeext 17385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17386 (eval $ac_link) 2>conftest.er1 17387 ac_status=$? 17388 grep -v '^ *+' conftest.er1 >conftest.err 17389 rm -f conftest.er1 17390 cat conftest.err >&5 17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17392 (exit $ac_status); } && 17393 { ac_try='test -z "$ac_f77_werror_flag" 17394 || test ! -s conftest.err' 17395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17396 (eval $ac_try) 2>&5 17397 ac_status=$? 17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17399 (exit $ac_status); }; } && 17400 { ac_try='test -s conftest$ac_exeext' 17401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17402 (eval $ac_try) 2>&5 17403 ac_status=$? 17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17405 (exit $ac_status); }; }; then 17406 17407aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17408}'` 17409# Check for a 64-bit object if we didn't find anything. 17410if 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; } 17411}'`; fi 17412else 17413 echo "$as_me: failed program was:" >&5 17414sed 's/^/| /' conftest.$ac_ext >&5 17415 17416fi 17417rm -f conftest.err conftest.$ac_objext \ 17418 conftest$ac_exeext conftest.$ac_ext 17419if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17420 17421 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 17422 # Warning - without using the other run time loading flags, 17423 # -berok will link without error, but may produce a broken library. 17424 no_undefined_flag_F77=' ${wl}-bernotok' 17425 allow_undefined_flag_F77=' ${wl}-berok' 17426 # Exported symbols can be pulled into shared objects from archives 17427 whole_archive_flag_spec_F77='$convenience' 17428 archive_cmds_need_lc_F77=yes 17429 # This is similar to how AIX traditionally builds its shared libraries. 17430 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 17431 fi 17432 fi 17433 ;; 17434 17435 amigaos*) 17436 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)' 17437 hardcode_libdir_flag_spec_F77='-L$libdir' 17438 hardcode_minus_L_F77=yes 17439 # see comment about different semantics on the GNU ld section 17440 ld_shlibs_F77=no 17441 ;; 17442 17443 bsdi[45]*) 17444 export_dynamic_flag_spec_F77=-rdynamic 17445 ;; 17446 17447 cygwin* | mingw* | pw32*) 17448 # When not using gcc, we currently assume that we are using 17449 # Microsoft Visual C++. 17450 # hardcode_libdir_flag_spec is actually meaningless, as there is 17451 # no search path for DLLs. 17452 hardcode_libdir_flag_spec_F77=' ' 17453 allow_undefined_flag_F77=unsupported 17454 # Tell ltmain to make .lib files, not .a files. 17455 libext=lib 17456 # Tell ltmain to make .dll files, not .so files. 17457 shrext_cmds=".dll" 17458 # FIXME: Setting linknames here is a bad hack. 17459 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17460 # The linker will automatically build a .lib file if we build a DLL. 17461 old_archive_From_new_cmds_F77='true' 17462 # FIXME: Should let the user specify the lib program. 17463 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 17464 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 17465 enable_shared_with_static_runtimes_F77=yes 17466 ;; 17467 17468 darwin* | rhapsody*) 17469 case $host_os in 17470 rhapsody* | darwin1.[012]) 17471 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 17472 ;; 17473 *) # Darwin 1.3 on 17474 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17475 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17476 else 17477 case ${MACOSX_DEPLOYMENT_TARGET} in 17478 10.[012]) 17479 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17480 ;; 17481 10.*) 17482 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 17483 ;; 17484 esac 17485 fi 17486 ;; 17487 esac 17488 archive_cmds_need_lc_F77=no 17489 hardcode_direct_F77=no 17490 hardcode_automatic_F77=yes 17491 hardcode_shlibpath_var_F77=unsupported 17492 whole_archive_flag_spec_F77='' 17493 link_all_deplibs_F77=yes 17494 if test "$GCC" = yes ; then 17495 output_verbose_link_cmd='echo' 17496 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17497 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17498 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17499 archive_expsym_cmds_F77='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}' 17500 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}' 17501 else 17502 case $cc_basename in 17503 xlc*) 17504 output_verbose_link_cmd='echo' 17505 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17506 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17507 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17508 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17509 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}' 17510 ;; 17511 *) 17512 ld_shlibs_F77=no 17513 ;; 17514 esac 17515 fi 17516 ;; 17517 17518 dgux*) 17519 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17520 hardcode_libdir_flag_spec_F77='-L$libdir' 17521 hardcode_shlibpath_var_F77=no 17522 ;; 17523 17524 freebsd1*) 17525 ld_shlibs_F77=no 17526 ;; 17527 17528 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17529 # support. Future versions do this automatically, but an explicit c++rt0.o 17530 # does not break anything, and helps significantly (at the cost of a little 17531 # extra space). 17532 freebsd2.2*) 17533 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17534 hardcode_libdir_flag_spec_F77='-R$libdir' 17535 hardcode_direct_F77=yes 17536 hardcode_shlibpath_var_F77=no 17537 ;; 17538 17539 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17540 freebsd2*) 17541 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17542 hardcode_direct_F77=yes 17543 hardcode_minus_L_F77=yes 17544 hardcode_shlibpath_var_F77=no 17545 ;; 17546 17547 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17548 freebsd* | kfreebsd*-gnu | dragonfly*) 17549 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17550 hardcode_libdir_flag_spec_F77='-R$libdir' 17551 hardcode_direct_F77=yes 17552 hardcode_shlibpath_var_F77=no 17553 ;; 17554 17555 hpux9*) 17556 if test "$GCC" = yes; then 17557 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' 17558 else 17559 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' 17560 fi 17561 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 17562 hardcode_libdir_separator_F77=: 17563 hardcode_direct_F77=yes 17564 17565 # hardcode_minus_L: Not really in the search PATH, 17566 # but as the default location of the library. 17567 hardcode_minus_L_F77=yes 17568 export_dynamic_flag_spec_F77='${wl}-E' 17569 ;; 17570 17571 hpux10*) 17572 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17573 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17574 else 17575 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17576 fi 17577 if test "$with_gnu_ld" = no; then 17578 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 17579 hardcode_libdir_separator_F77=: 17580 17581 hardcode_direct_F77=yes 17582 export_dynamic_flag_spec_F77='${wl}-E' 17583 17584 # hardcode_minus_L: Not really in the search PATH, 17585 # but as the default location of the library. 17586 hardcode_minus_L_F77=yes 17587 fi 17588 ;; 17589 17590 hpux11*) 17591 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17592 case $host_cpu in 17593 hppa*64*) 17594 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17595 ;; 17596 ia64*) 17597 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17598 ;; 17599 *) 17600 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17601 ;; 17602 esac 17603 else 17604 case $host_cpu in 17605 hppa*64*) 17606 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17607 ;; 17608 ia64*) 17609 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17610 ;; 17611 *) 17612 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17613 ;; 17614 esac 17615 fi 17616 if test "$with_gnu_ld" = no; then 17617 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 17618 hardcode_libdir_separator_F77=: 17619 17620 case $host_cpu in 17621 hppa*64*|ia64*) 17622 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 17623 hardcode_direct_F77=no 17624 hardcode_shlibpath_var_F77=no 17625 ;; 17626 *) 17627 hardcode_direct_F77=yes 17628 export_dynamic_flag_spec_F77='${wl}-E' 17629 17630 # hardcode_minus_L: Not really in the search PATH, 17631 # but as the default location of the library. 17632 hardcode_minus_L_F77=yes 17633 ;; 17634 esac 17635 fi 17636 ;; 17637 17638 irix5* | irix6* | nonstopux*) 17639 if test "$GCC" = yes; then 17640 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' 17641 else 17642 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' 17643 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 17644 fi 17645 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 17646 hardcode_libdir_separator_F77=: 17647 link_all_deplibs_F77=yes 17648 ;; 17649 17650 netbsd*) 17651 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17652 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17653 else 17654 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17655 fi 17656 hardcode_libdir_flag_spec_F77='-R$libdir' 17657 hardcode_direct_F77=yes 17658 hardcode_shlibpath_var_F77=no 17659 ;; 17660 17661 newsos6) 17662 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17663 hardcode_direct_F77=yes 17664 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 17665 hardcode_libdir_separator_F77=: 17666 hardcode_shlibpath_var_F77=no 17667 ;; 17668 17669 openbsd*) 17670 hardcode_direct_F77=yes 17671 hardcode_shlibpath_var_F77=no 17672 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17673 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17674 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17675 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 17676 export_dynamic_flag_spec_F77='${wl}-E' 17677 else 17678 case $host_os in 17679 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17680 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17681 hardcode_libdir_flag_spec_F77='-R$libdir' 17682 ;; 17683 *) 17684 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17685 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 17686 ;; 17687 esac 17688 fi 17689 ;; 17690 17691 os2*) 17692 hardcode_libdir_flag_spec_F77='-L$libdir' 17693 hardcode_minus_L_F77=yes 17694 allow_undefined_flag_F77=unsupported 17695 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' 17696 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17697 ;; 17698 17699 osf3*) 17700 if test "$GCC" = yes; then 17701 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 17702 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' 17703 else 17704 allow_undefined_flag_F77=' -expect_unresolved \*' 17705 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' 17706 fi 17707 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 17708 hardcode_libdir_separator_F77=: 17709 ;; 17710 17711 osf4* | osf5*) # as osf3* with the addition of -msym flag 17712 if test "$GCC" = yes; then 17713 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 17714 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' 17715 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 17716 else 17717 allow_undefined_flag_F77=' -expect_unresolved \*' 17718 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' 17719 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~ 17720 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 17721 17722 # Both c and cxx compiler support -rpath directly 17723 hardcode_libdir_flag_spec_F77='-rpath $libdir' 17724 fi 17725 hardcode_libdir_separator_F77=: 17726 ;; 17727 17728 solaris*) 17729 no_undefined_flag_F77=' -z text' 17730 if test "$GCC" = yes; then 17731 wlarc='${wl}' 17732 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17733 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17734 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17735 else 17736 wlarc='' 17737 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17738 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17739 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17740 fi 17741 hardcode_libdir_flag_spec_F77='-R$libdir' 17742 hardcode_shlibpath_var_F77=no 17743 case $host_os in 17744 solaris2.[0-5] | solaris2.[0-5].*) ;; 17745 *) 17746 # The compiler driver will combine linker options so we 17747 # cannot just pass the convience library names through 17748 # without $wl, iff we do not link with $LD. 17749 # Luckily, gcc supports the same syntax we need for Sun Studio. 17750 # Supported since Solaris 2.6 (maybe 2.5.1?) 17751 case $wlarc in 17752 '') 17753 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 17754 *) 17755 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 17756 esac ;; 17757 esac 17758 link_all_deplibs_F77=yes 17759 ;; 17760 17761 sunos4*) 17762 if test "x$host_vendor" = xsequent; then 17763 # Use $CC to link under sequent, because it throws in some extra .o 17764 # files that make .init and .fini sections work. 17765 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17766 else 17767 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17768 fi 17769 hardcode_libdir_flag_spec_F77='-L$libdir' 17770 hardcode_direct_F77=yes 17771 hardcode_minus_L_F77=yes 17772 hardcode_shlibpath_var_F77=no 17773 ;; 17774 17775 sysv4) 17776 case $host_vendor in 17777 sni) 17778 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17779 hardcode_direct_F77=yes # is this really true??? 17780 ;; 17781 siemens) 17782 ## LD is ld it makes a PLAMLIB 17783 ## CC just makes a GrossModule. 17784 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17785 reload_cmds_F77='$CC -r -o $output$reload_objs' 17786 hardcode_direct_F77=no 17787 ;; 17788 motorola) 17789 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17790 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 17791 ;; 17792 esac 17793 runpath_var='LD_RUN_PATH' 17794 hardcode_shlibpath_var_F77=no 17795 ;; 17796 17797 sysv4.3*) 17798 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17799 hardcode_shlibpath_var_F77=no 17800 export_dynamic_flag_spec_F77='-Bexport' 17801 ;; 17802 17803 sysv4*MP*) 17804 if test -d /usr/nec; then 17805 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17806 hardcode_shlibpath_var_F77=no 17807 runpath_var=LD_RUN_PATH 17808 hardcode_runpath_var=yes 17809 ld_shlibs_F77=yes 17810 fi 17811 ;; 17812 17813 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 17814 no_undefined_flag_F77='${wl}-z,text' 17815 archive_cmds_need_lc_F77=no 17816 hardcode_shlibpath_var_F77=no 17817 runpath_var='LD_RUN_PATH' 17818 17819 if test "$GCC" = yes; then 17820 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17821 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17822 else 17823 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17824 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17825 fi 17826 ;; 17827 17828 sysv5* | sco3.2v5* | sco5v6*) 17829 # Note: We can NOT use -z defs as we might desire, because we do not 17830 # link with -lc, and that would cause any symbols used from libc to 17831 # always be unresolved, which means just about no library would 17832 # ever link correctly. If we're not using GNU ld we use -z text 17833 # though, which does catch some bad symbols but isn't as heavy-handed 17834 # as -z defs. 17835 no_undefined_flag_F77='${wl}-z,text' 17836 allow_undefined_flag_F77='${wl}-z,nodefs' 17837 archive_cmds_need_lc_F77=no 17838 hardcode_shlibpath_var_F77=no 17839 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 17840 hardcode_libdir_separator_F77=':' 17841 link_all_deplibs_F77=yes 17842 export_dynamic_flag_spec_F77='${wl}-Bexport' 17843 runpath_var='LD_RUN_PATH' 17844 17845 if test "$GCC" = yes; then 17846 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17847 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17848 else 17849 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17850 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17851 fi 17852 ;; 17853 17854 uts4*) 17855 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17856 hardcode_libdir_flag_spec_F77='-L$libdir' 17857 hardcode_shlibpath_var_F77=no 17858 ;; 17859 17860 *) 17861 ld_shlibs_F77=no 17862 ;; 17863 esac 17864 fi 17865 17866echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 17867echo "${ECHO_T}$ld_shlibs_F77" >&6 17868test "$ld_shlibs_F77" = no && can_build_shared=no 17869 17870# 17871# Do we need to explicitly link libc? 17872# 17873case "x$archive_cmds_need_lc_F77" in 17874x|xyes) 17875 # Assume -lc should be added 17876 archive_cmds_need_lc_F77=yes 17877 17878 if test "$enable_shared" = yes && test "$GCC" = yes; then 17879 case $archive_cmds_F77 in 17880 *'~'*) 17881 # FIXME: we may have to deal with multi-command sequences. 17882 ;; 17883 '$CC '*) 17884 # Test whether the compiler implicitly links with -lc since on some 17885 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17886 # to ld, don't add -lc before -lgcc. 17887 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17888echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 17889 $rm conftest* 17890 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17891 17892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17893 (eval $ac_compile) 2>&5 17894 ac_status=$? 17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17896 (exit $ac_status); } 2>conftest.err; then 17897 soname=conftest 17898 lib=conftest 17899 libobjs=conftest.$ac_objext 17900 deplibs= 17901 wl=$lt_prog_compiler_wl_F77 17902 pic_flag=$lt_prog_compiler_pic_F77 17903 compiler_flags=-v 17904 linker_flags=-v 17905 verstring= 17906 output_objdir=. 17907 libname=conftest 17908 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 17909 allow_undefined_flag_F77= 17910 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17911 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17912 ac_status=$? 17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17914 (exit $ac_status); } 17915 then 17916 archive_cmds_need_lc_F77=no 17917 else 17918 archive_cmds_need_lc_F77=yes 17919 fi 17920 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 17921 else 17922 cat conftest.err 1>&5 17923 fi 17924 $rm conftest* 17925 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 17926echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 17927 ;; 17928 esac 17929 fi 17930 ;; 17931esac 17932 17933echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17934echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 17935library_names_spec= 17936libname_spec='lib$name' 17937soname_spec= 17938shrext_cmds=".so" 17939postinstall_cmds= 17940postuninstall_cmds= 17941finish_cmds= 17942finish_eval= 17943shlibpath_var= 17944shlibpath_overrides_runpath=unknown 17945version_type=none 17946dynamic_linker="$host_os ld.so" 17947sys_lib_dlsearch_path_spec="/lib /usr/lib" 17948if test "$GCC" = yes; then 17949 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17950 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17951 # if the path contains ";" then we assume it to be the separator 17952 # otherwise default to the standard path separator (i.e. ":") - it is 17953 # assumed that no part of a normal pathname contains ";" but that should 17954 # okay in the real world where ";" in dirpaths is itself problematic. 17955 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17956 else 17957 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17958 fi 17959else 17960 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17961fi 17962need_lib_prefix=unknown 17963hardcode_into_libs=no 17964 17965# when you set need_version to no, make sure it does not cause -set_version 17966# flags to be left without arguments 17967need_version=unknown 17968 17969case $host_os in 17970aix3*) 17971 version_type=linux 17972 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17973 shlibpath_var=LIBPATH 17974 17975 # AIX 3 has no versioning support, so we append a major version to the name. 17976 soname_spec='${libname}${release}${shared_ext}$major' 17977 ;; 17978 17979aix4* | aix5*) 17980 version_type=linux 17981 need_lib_prefix=no 17982 need_version=no 17983 hardcode_into_libs=yes 17984 if test "$host_cpu" = ia64; then 17985 # AIX 5 supports IA64 17986 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17987 shlibpath_var=LD_LIBRARY_PATH 17988 else 17989 # With GCC up to 2.95.x, collect2 would create an import file 17990 # for dependence libraries. The import file would start with 17991 # the line `#! .'. This would cause the generated library to 17992 # depend on `.', always an invalid library. This was fixed in 17993 # development snapshots of GCC prior to 3.0. 17994 case $host_os in 17995 aix4 | aix4.[01] | aix4.[01].*) 17996 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17997 echo ' yes ' 17998 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17999 : 18000 else 18001 can_build_shared=no 18002 fi 18003 ;; 18004 esac 18005 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18006 # soname into executable. Probably we can add versioning support to 18007 # collect2, so additional links can be useful in future. 18008 if test "$aix_use_runtimelinking" = yes; then 18009 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18010 # instead of lib<name>.a to let people know that these are not 18011 # typical AIX shared libraries. 18012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18013 else 18014 # We preserve .a as extension for shared libraries through AIX4.2 18015 # and later when we are not doing run time linking. 18016 library_names_spec='${libname}${release}.a $libname.a' 18017 soname_spec='${libname}${release}${shared_ext}$major' 18018 fi 18019 shlibpath_var=LIBPATH 18020 fi 18021 ;; 18022 18023amigaos*) 18024 library_names_spec='$libname.ixlibrary $libname.a' 18025 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18026 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' 18027 ;; 18028 18029beos*) 18030 library_names_spec='${libname}${shared_ext}' 18031 dynamic_linker="$host_os ld.so" 18032 shlibpath_var=LIBRARY_PATH 18033 ;; 18034 18035bsdi[45]*) 18036 version_type=linux 18037 need_version=no 18038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18039 soname_spec='${libname}${release}${shared_ext}$major' 18040 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18041 shlibpath_var=LD_LIBRARY_PATH 18042 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18043 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18044 # the default ld.so.conf also contains /usr/contrib/lib and 18045 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18046 # libtool to hard-code these into programs 18047 ;; 18048 18049cygwin* | mingw* | pw32*) 18050 version_type=windows 18051 shrext_cmds=".dll" 18052 need_version=no 18053 need_lib_prefix=no 18054 18055 case $GCC,$host_os in 18056 yes,cygwin* | yes,mingw* | yes,pw32*) 18057 library_names_spec='$libname.dll.a' 18058 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18059 postinstall_cmds='base_file=`basename \${file}`~ 18060 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18061 dldir=$destdir/`dirname \$dlpath`~ 18062 test -d \$dldir || mkdir -p \$dldir~ 18063 $install_prog $dir/$dlname \$dldir/$dlname~ 18064 chmod a+x \$dldir/$dlname' 18065 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18066 dlpath=$dir/\$dldll~ 18067 $rm \$dlpath' 18068 shlibpath_overrides_runpath=yes 18069 18070 case $host_os in 18071 cygwin*) 18072 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18073 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18074 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18075 ;; 18076 mingw*) 18077 # MinGW DLLs use traditional 'lib' prefix 18078 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18079 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18080 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18081 # It is most probably a Windows format PATH printed by 18082 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18083 # path with ; separators, and with drive letters. We can handle the 18084 # drive letters (cygwin fileutils understands them), so leave them, 18085 # especially as we might pass files found there to a mingw objdump, 18086 # which wouldn't understand a cygwinified path. Ahh. 18087 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18088 else 18089 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18090 fi 18091 ;; 18092 pw32*) 18093 # pw32 DLLs use 'pw' prefix rather than 'lib' 18094 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18095 ;; 18096 esac 18097 ;; 18098 18099 *) 18100 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18101 ;; 18102 esac 18103 dynamic_linker='Win32 ld.exe' 18104 # FIXME: first we should search . and the directory the executable is in 18105 shlibpath_var=PATH 18106 ;; 18107 18108darwin* | rhapsody*) 18109 dynamic_linker="$host_os dyld" 18110 version_type=darwin 18111 need_lib_prefix=no 18112 need_version=no 18113 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18114 soname_spec='${libname}${release}${major}$shared_ext' 18115 shlibpath_overrides_runpath=yes 18116 shlibpath_var=DYLD_LIBRARY_PATH 18117 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18118 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 18119 if test "$GCC" = yes; then 18120 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"` 18121 else 18122 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 18123 fi 18124 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18125 ;; 18126 18127dgux*) 18128 version_type=linux 18129 need_lib_prefix=no 18130 need_version=no 18131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18132 soname_spec='${libname}${release}${shared_ext}$major' 18133 shlibpath_var=LD_LIBRARY_PATH 18134 ;; 18135 18136freebsd1*) 18137 dynamic_linker=no 18138 ;; 18139 18140kfreebsd*-gnu) 18141 version_type=linux 18142 need_lib_prefix=no 18143 need_version=no 18144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18145 soname_spec='${libname}${release}${shared_ext}$major' 18146 shlibpath_var=LD_LIBRARY_PATH 18147 shlibpath_overrides_runpath=no 18148 hardcode_into_libs=yes 18149 dynamic_linker='GNU ld.so' 18150 ;; 18151 18152freebsd* | dragonfly*) 18153 # DragonFly does not have aout. When/if they implement a new 18154 # versioning mechanism, adjust this. 18155 if test -x /usr/bin/objformat; then 18156 objformat=`/usr/bin/objformat` 18157 else 18158 case $host_os in 18159 freebsd[123]*) objformat=aout ;; 18160 *) objformat=elf ;; 18161 esac 18162 fi 18163 version_type=freebsd-$objformat 18164 case $version_type in 18165 freebsd-elf*) 18166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18167 need_version=no 18168 need_lib_prefix=no 18169 ;; 18170 freebsd-*) 18171 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18172 need_version=yes 18173 ;; 18174 esac 18175 shlibpath_var=LD_LIBRARY_PATH 18176 case $host_os in 18177 freebsd2*) 18178 shlibpath_overrides_runpath=yes 18179 ;; 18180 freebsd3.[01]* | freebsdelf3.[01]*) 18181 shlibpath_overrides_runpath=yes 18182 hardcode_into_libs=yes 18183 ;; 18184 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18185 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18186 shlibpath_overrides_runpath=no 18187 hardcode_into_libs=yes 18188 ;; 18189 freebsd*) # from 4.6 on 18190 shlibpath_overrides_runpath=yes 18191 hardcode_into_libs=yes 18192 ;; 18193 esac 18194 ;; 18195 18196gnu*) 18197 version_type=linux 18198 need_lib_prefix=no 18199 need_version=no 18200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18201 soname_spec='${libname}${release}${shared_ext}$major' 18202 shlibpath_var=LD_LIBRARY_PATH 18203 hardcode_into_libs=yes 18204 ;; 18205 18206hpux9* | hpux10* | hpux11*) 18207 # Give a soname corresponding to the major version so that dld.sl refuses to 18208 # link against other versions. 18209 version_type=sunos 18210 need_lib_prefix=no 18211 need_version=no 18212 case $host_cpu in 18213 ia64*) 18214 shrext_cmds='.so' 18215 hardcode_into_libs=yes 18216 dynamic_linker="$host_os dld.so" 18217 shlibpath_var=LD_LIBRARY_PATH 18218 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18220 soname_spec='${libname}${release}${shared_ext}$major' 18221 if test "X$HPUX_IA64_MODE" = X32; then 18222 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18223 else 18224 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18225 fi 18226 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18227 ;; 18228 hppa*64*) 18229 shrext_cmds='.sl' 18230 hardcode_into_libs=yes 18231 dynamic_linker="$host_os dld.sl" 18232 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18233 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18235 soname_spec='${libname}${release}${shared_ext}$major' 18236 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18237 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18238 ;; 18239 *) 18240 shrext_cmds='.sl' 18241 dynamic_linker="$host_os dld.sl" 18242 shlibpath_var=SHLIB_PATH 18243 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18245 soname_spec='${libname}${release}${shared_ext}$major' 18246 ;; 18247 esac 18248 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18249 postinstall_cmds='chmod 555 $lib' 18250 ;; 18251 18252interix3*) 18253 version_type=linux 18254 need_lib_prefix=no 18255 need_version=no 18256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18257 soname_spec='${libname}${release}${shared_ext}$major' 18258 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18259 shlibpath_var=LD_LIBRARY_PATH 18260 shlibpath_overrides_runpath=no 18261 hardcode_into_libs=yes 18262 ;; 18263 18264irix5* | irix6* | nonstopux*) 18265 case $host_os in 18266 nonstopux*) version_type=nonstopux ;; 18267 *) 18268 if test "$lt_cv_prog_gnu_ld" = yes; then 18269 version_type=linux 18270 else 18271 version_type=irix 18272 fi ;; 18273 esac 18274 need_lib_prefix=no 18275 need_version=no 18276 soname_spec='${libname}${release}${shared_ext}$major' 18277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18278 case $host_os in 18279 irix5* | nonstopux*) 18280 libsuff= shlibsuff= 18281 ;; 18282 *) 18283 case $LD in # libtool.m4 will add one of these switches to LD 18284 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18285 libsuff= shlibsuff= libmagic=32-bit;; 18286 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18287 libsuff=32 shlibsuff=N32 libmagic=N32;; 18288 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18289 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18290 *) libsuff= shlibsuff= libmagic=never-match;; 18291 esac 18292 ;; 18293 esac 18294 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18295 shlibpath_overrides_runpath=no 18296 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18297 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18298 hardcode_into_libs=yes 18299 ;; 18300 18301# No shared lib support for Linux oldld, aout, or coff. 18302linux*oldld* | linux*aout* | linux*coff*) 18303 dynamic_linker=no 18304 ;; 18305 18306# This must be Linux ELF. 18307linux*) 18308 version_type=linux 18309 need_lib_prefix=no 18310 need_version=no 18311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18312 soname_spec='${libname}${release}${shared_ext}$major' 18313 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18314 shlibpath_var=LD_LIBRARY_PATH 18315 shlibpath_overrides_runpath=no 18316 # This implies no fast_install, which is unacceptable. 18317 # Some rework will be needed to allow for fast_install 18318 # before this can be enabled. 18319 hardcode_into_libs=yes 18320 18321 # find out which ABI we are using 18322 libsuff= 18323 case "$host_cpu" in 18324 x86_64*|s390x*|powerpc64*) 18325 echo '#line __oline__ "configure"' > conftest.$ac_ext 18326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18327 (eval $ac_compile) 2>&5 18328 ac_status=$? 18329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18330 (exit $ac_status); }; then 18331 case `/usr/bin/file conftest.$ac_objext` in 18332 *64-bit*) 18333 libsuff=64 18334 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 18335 ;; 18336 esac 18337 fi 18338 rm -rf conftest* 18339 ;; 18340 esac 18341 18342 # Append ld.so.conf contents to the search path 18343 if test -f /etc/ld.so.conf; then 18344 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 18345 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 18346 fi 18347 18348 # We used to test for /lib/ld.so.1 and disable shared libraries on 18349 # powerpc, because MkLinux only supported shared libraries with the 18350 # GNU dynamic linker. Since this was broken with cross compilers, 18351 # most powerpc-linux boxes support dynamic linking these days and 18352 # people can always --disable-shared, the test was removed, and we 18353 # assume the GNU/Linux dynamic linker is in use. 18354 dynamic_linker='GNU/Linux ld.so' 18355 ;; 18356 18357knetbsd*-gnu) 18358 version_type=linux 18359 need_lib_prefix=no 18360 need_version=no 18361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18362 soname_spec='${libname}${release}${shared_ext}$major' 18363 shlibpath_var=LD_LIBRARY_PATH 18364 shlibpath_overrides_runpath=no 18365 hardcode_into_libs=yes 18366 dynamic_linker='GNU ld.so' 18367 ;; 18368 18369netbsd*) 18370 version_type=sunos 18371 need_lib_prefix=no 18372 need_version=no 18373 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18375 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18376 dynamic_linker='NetBSD (a.out) ld.so' 18377 else 18378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18379 soname_spec='${libname}${release}${shared_ext}$major' 18380 dynamic_linker='NetBSD ld.elf_so' 18381 fi 18382 shlibpath_var=LD_LIBRARY_PATH 18383 shlibpath_overrides_runpath=yes 18384 hardcode_into_libs=yes 18385 ;; 18386 18387newsos6) 18388 version_type=linux 18389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18390 shlibpath_var=LD_LIBRARY_PATH 18391 shlibpath_overrides_runpath=yes 18392 ;; 18393 18394nto-qnx*) 18395 version_type=linux 18396 need_lib_prefix=no 18397 need_version=no 18398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18399 soname_spec='${libname}${release}${shared_ext}$major' 18400 shlibpath_var=LD_LIBRARY_PATH 18401 shlibpath_overrides_runpath=yes 18402 ;; 18403 18404openbsd*) 18405 version_type=sunos 18406 sys_lib_dlsearch_path_spec="/usr/lib" 18407 need_lib_prefix=no 18408 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18409 case $host_os in 18410 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18411 *) need_version=no ;; 18412 esac 18413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18415 shlibpath_var=LD_LIBRARY_PATH 18416 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18417 case $host_os in 18418 openbsd2.[89] | openbsd2.[89].*) 18419 shlibpath_overrides_runpath=no 18420 ;; 18421 *) 18422 shlibpath_overrides_runpath=yes 18423 ;; 18424 esac 18425 else 18426 shlibpath_overrides_runpath=yes 18427 fi 18428 ;; 18429 18430os2*) 18431 libname_spec='$name' 18432 shrext_cmds=".dll" 18433 need_lib_prefix=no 18434 library_names_spec='$libname${shared_ext} $libname.a' 18435 dynamic_linker='OS/2 ld.exe' 18436 shlibpath_var=LIBPATH 18437 ;; 18438 18439osf3* | osf4* | osf5*) 18440 version_type=osf 18441 need_lib_prefix=no 18442 need_version=no 18443 soname_spec='${libname}${release}${shared_ext}$major' 18444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18445 shlibpath_var=LD_LIBRARY_PATH 18446 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18447 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18448 ;; 18449 18450solaris*) 18451 version_type=linux 18452 need_lib_prefix=no 18453 need_version=no 18454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18455 soname_spec='${libname}${release}${shared_ext}$major' 18456 shlibpath_var=LD_LIBRARY_PATH 18457 shlibpath_overrides_runpath=yes 18458 hardcode_into_libs=yes 18459 # ldd complains unless libraries are executable 18460 postinstall_cmds='chmod +x $lib' 18461 ;; 18462 18463sunos4*) 18464 version_type=sunos 18465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18466 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18467 shlibpath_var=LD_LIBRARY_PATH 18468 shlibpath_overrides_runpath=yes 18469 if test "$with_gnu_ld" = yes; then 18470 need_lib_prefix=no 18471 fi 18472 need_version=yes 18473 ;; 18474 18475sysv4 | sysv4.3*) 18476 version_type=linux 18477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18478 soname_spec='${libname}${release}${shared_ext}$major' 18479 shlibpath_var=LD_LIBRARY_PATH 18480 case $host_vendor in 18481 sni) 18482 shlibpath_overrides_runpath=no 18483 need_lib_prefix=no 18484 export_dynamic_flag_spec='${wl}-Blargedynsym' 18485 runpath_var=LD_RUN_PATH 18486 ;; 18487 siemens) 18488 need_lib_prefix=no 18489 ;; 18490 motorola) 18491 need_lib_prefix=no 18492 need_version=no 18493 shlibpath_overrides_runpath=no 18494 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18495 ;; 18496 esac 18497 ;; 18498 18499sysv4*MP*) 18500 if test -d /usr/nec ;then 18501 version_type=linux 18502 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18503 soname_spec='$libname${shared_ext}.$major' 18504 shlibpath_var=LD_LIBRARY_PATH 18505 fi 18506 ;; 18507 18508sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18509 version_type=freebsd-elf 18510 need_lib_prefix=no 18511 need_version=no 18512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18513 soname_spec='${libname}${release}${shared_ext}$major' 18514 shlibpath_var=LD_LIBRARY_PATH 18515 hardcode_into_libs=yes 18516 if test "$with_gnu_ld" = yes; then 18517 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18518 shlibpath_overrides_runpath=no 18519 else 18520 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18521 shlibpath_overrides_runpath=yes 18522 case $host_os in 18523 sco3.2v5*) 18524 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18525 ;; 18526 esac 18527 fi 18528 sys_lib_dlsearch_path_spec='/usr/lib' 18529 ;; 18530 18531uts4*) 18532 version_type=linux 18533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18534 soname_spec='${libname}${release}${shared_ext}$major' 18535 shlibpath_var=LD_LIBRARY_PATH 18536 ;; 18537 18538*) 18539 dynamic_linker=no 18540 ;; 18541esac 18542echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18543echo "${ECHO_T}$dynamic_linker" >&6 18544test "$dynamic_linker" = no && can_build_shared=no 18545 18546variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18547if test "$GCC" = yes; then 18548 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18549fi 18550 18551echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18552echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 18553hardcode_action_F77= 18554if test -n "$hardcode_libdir_flag_spec_F77" || \ 18555 test -n "$runpath_var_F77" || \ 18556 test "X$hardcode_automatic_F77" = "Xyes" ; then 18557 18558 # We can hardcode non-existant directories. 18559 if test "$hardcode_direct_F77" != no && 18560 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18561 # have to relink, otherwise we might link with an installed library 18562 # when we should be linking with a yet-to-be-installed one 18563 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 18564 test "$hardcode_minus_L_F77" != no; then 18565 # Linking always hardcodes the temporary library directory. 18566 hardcode_action_F77=relink 18567 else 18568 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18569 hardcode_action_F77=immediate 18570 fi 18571else 18572 # We cannot hardcode anything, or else we can only hardcode existing 18573 # directories. 18574 hardcode_action_F77=unsupported 18575fi 18576echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 18577echo "${ECHO_T}$hardcode_action_F77" >&6 18578 18579if test "$hardcode_action_F77" = relink; then 18580 # Fast installation is not supported 18581 enable_fast_install=no 18582elif test "$shlibpath_overrides_runpath" = yes || 18583 test "$enable_shared" = no; then 18584 # Fast installation is not necessary 18585 enable_fast_install=needless 18586fi 18587 18588 18589# The else clause should only fire when bootstrapping the 18590# libtool distribution, otherwise you forgot to ship ltmain.sh 18591# with your package, and you will get complaints that there are 18592# no rules to generate ltmain.sh. 18593if test -f "$ltmain"; then 18594 # See if we are running on zsh, and set the options which allow our commands through 18595 # without removal of \ escapes. 18596 if test -n "${ZSH_VERSION+set}" ; then 18597 setopt NO_GLOB_SUBST 18598 fi 18599 # Now quote all the things that may contain metacharacters while being 18600 # careful not to overquote the AC_SUBSTed values. We take copies of the 18601 # variables and quote the copies for generation of the libtool script. 18602 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18603 SED SHELL STRIP \ 18604 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18605 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18606 deplibs_check_method reload_flag reload_cmds need_locks \ 18607 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18608 lt_cv_sys_global_symbol_to_c_name_address \ 18609 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18610 old_postinstall_cmds old_postuninstall_cmds \ 18611 compiler_F77 \ 18612 CC_F77 \ 18613 LD_F77 \ 18614 lt_prog_compiler_wl_F77 \ 18615 lt_prog_compiler_pic_F77 \ 18616 lt_prog_compiler_static_F77 \ 18617 lt_prog_compiler_no_builtin_flag_F77 \ 18618 export_dynamic_flag_spec_F77 \ 18619 thread_safe_flag_spec_F77 \ 18620 whole_archive_flag_spec_F77 \ 18621 enable_shared_with_static_runtimes_F77 \ 18622 old_archive_cmds_F77 \ 18623 old_archive_from_new_cmds_F77 \ 18624 predep_objects_F77 \ 18625 postdep_objects_F77 \ 18626 predeps_F77 \ 18627 postdeps_F77 \ 18628 compiler_lib_search_path_F77 \ 18629 archive_cmds_F77 \ 18630 archive_expsym_cmds_F77 \ 18631 postinstall_cmds_F77 \ 18632 postuninstall_cmds_F77 \ 18633 old_archive_from_expsyms_cmds_F77 \ 18634 allow_undefined_flag_F77 \ 18635 no_undefined_flag_F77 \ 18636 export_symbols_cmds_F77 \ 18637 hardcode_libdir_flag_spec_F77 \ 18638 hardcode_libdir_flag_spec_ld_F77 \ 18639 hardcode_libdir_separator_F77 \ 18640 hardcode_automatic_F77 \ 18641 module_cmds_F77 \ 18642 module_expsym_cmds_F77 \ 18643 lt_cv_prog_compiler_c_o_F77 \ 18644 exclude_expsyms_F77 \ 18645 include_expsyms_F77; do 18646 18647 case $var in 18648 old_archive_cmds_F77 | \ 18649 old_archive_from_new_cmds_F77 | \ 18650 archive_cmds_F77 | \ 18651 archive_expsym_cmds_F77 | \ 18652 module_cmds_F77 | \ 18653 module_expsym_cmds_F77 | \ 18654 old_archive_from_expsyms_cmds_F77 | \ 18655 export_symbols_cmds_F77 | \ 18656 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18657 postinstall_cmds | postuninstall_cmds | \ 18658 old_postinstall_cmds | old_postuninstall_cmds | \ 18659 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18660 # Double-quote double-evaled strings. 18661 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18662 ;; 18663 *) 18664 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18665 ;; 18666 esac 18667 done 18668 18669 case $lt_echo in 18670 *'\$0 --fallback-echo"') 18671 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18672 ;; 18673 esac 18674 18675cfgfile="$ofile" 18676 18677 cat <<__EOF__ >> "$cfgfile" 18678# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18679 18680# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18681 18682# Shell to use when invoking shell scripts. 18683SHELL=$lt_SHELL 18684 18685# Whether or not to build shared libraries. 18686build_libtool_libs=$enable_shared 18687 18688# Whether or not to build static libraries. 18689build_old_libs=$enable_static 18690 18691# Whether or not to add -lc for building shared libraries. 18692build_libtool_need_lc=$archive_cmds_need_lc_F77 18693 18694# Whether or not to disallow shared libs when runtime libs are static 18695allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 18696 18697# Whether or not to optimize for fast installation. 18698fast_install=$enable_fast_install 18699 18700# The host system. 18701host_alias=$host_alias 18702host=$host 18703host_os=$host_os 18704 18705# The build system. 18706build_alias=$build_alias 18707build=$build 18708build_os=$build_os 18709 18710# An echo program that does not interpret backslashes. 18711echo=$lt_echo 18712 18713# The archiver. 18714AR=$lt_AR 18715AR_FLAGS=$lt_AR_FLAGS 18716 18717# A C compiler. 18718LTCC=$lt_LTCC 18719 18720# LTCC compiler flags. 18721LTCFLAGS=$lt_LTCFLAGS 18722 18723# A language-specific compiler. 18724CC=$lt_compiler_F77 18725 18726# Is the compiler the GNU C compiler? 18727with_gcc=$GCC_F77 18728 18729gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 18730gcc_ver=\`gcc -dumpversion\` 18731 18732# An ERE matcher. 18733EGREP=$lt_EGREP 18734 18735# The linker used to build libraries. 18736LD=$lt_LD_F77 18737 18738# Whether we need hard or soft links. 18739LN_S=$lt_LN_S 18740 18741# A BSD-compatible nm program. 18742NM=$lt_NM 18743 18744# A symbol stripping program 18745STRIP=$lt_STRIP 18746 18747# Used to examine libraries when file_magic_cmd begins "file" 18748MAGIC_CMD=$MAGIC_CMD 18749 18750# Used on cygwin: DLL creation program. 18751DLLTOOL="$DLLTOOL" 18752 18753# Used on cygwin: object dumper. 18754OBJDUMP="$OBJDUMP" 18755 18756# Used on cygwin: assembler. 18757AS="$AS" 18758 18759# The name of the directory that contains temporary libtool files. 18760objdir=$objdir 18761 18762# How to create reloadable object files. 18763reload_flag=$lt_reload_flag 18764reload_cmds=$lt_reload_cmds 18765 18766# How to pass a linker flag through the compiler. 18767wl=$lt_lt_prog_compiler_wl_F77 18768 18769# Object file suffix (normally "o"). 18770objext="$ac_objext" 18771 18772# Old archive suffix (normally "a"). 18773libext="$libext" 18774 18775# Shared library suffix (normally ".so"). 18776shrext_cmds='$shrext_cmds' 18777 18778# Executable file suffix (normally ""). 18779exeext="$exeext" 18780 18781# Additional compiler flags for building library objects. 18782pic_flag=$lt_lt_prog_compiler_pic_F77 18783pic_mode=$pic_mode 18784 18785# What is the maximum length of a command? 18786max_cmd_len=$lt_cv_sys_max_cmd_len 18787 18788# Does compiler simultaneously support -c and -o options? 18789compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 18790 18791# Must we lock files when doing compilation? 18792need_locks=$lt_need_locks 18793 18794# Do we need the lib prefix for modules? 18795need_lib_prefix=$need_lib_prefix 18796 18797# Do we need a version for libraries? 18798need_version=$need_version 18799 18800# Whether dlopen is supported. 18801dlopen_support=$enable_dlopen 18802 18803# Whether dlopen of programs is supported. 18804dlopen_self=$enable_dlopen_self 18805 18806# Whether dlopen of statically linked programs is supported. 18807dlopen_self_static=$enable_dlopen_self_static 18808 18809# Compiler flag to prevent dynamic linking. 18810link_static_flag=$lt_lt_prog_compiler_static_F77 18811 18812# Compiler flag to turn off builtin functions. 18813no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 18814 18815# Compiler flag to allow reflexive dlopens. 18816export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 18817 18818# Compiler flag to generate shared objects directly from archives. 18819whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 18820 18821# Compiler flag to generate thread-safe objects. 18822thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 18823 18824# Library versioning type. 18825version_type=$version_type 18826 18827# Format of library name prefix. 18828libname_spec=$lt_libname_spec 18829 18830# List of archive names. First name is the real one, the rest are links. 18831# The last name is the one that the linker finds with -lNAME. 18832library_names_spec=$lt_library_names_spec 18833 18834# The coded name of the library, if different from the real name. 18835soname_spec=$lt_soname_spec 18836 18837# Commands used to build and install an old-style archive. 18838RANLIB=$lt_RANLIB 18839old_archive_cmds=$lt_old_archive_cmds_F77 18840old_postinstall_cmds=$lt_old_postinstall_cmds 18841old_postuninstall_cmds=$lt_old_postuninstall_cmds 18842 18843# Create an old-style archive from a shared archive. 18844old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 18845 18846# Create a temporary old-style archive to link instead of a shared archive. 18847old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 18848 18849# Commands used to build and install a shared archive. 18850archive_cmds=$lt_archive_cmds_F77 18851archive_expsym_cmds=$lt_archive_expsym_cmds_F77 18852postinstall_cmds=$lt_postinstall_cmds 18853postuninstall_cmds=$lt_postuninstall_cmds 18854 18855# Commands used to build a loadable module (assumed same as above if empty) 18856module_cmds=$lt_module_cmds_F77 18857module_expsym_cmds=$lt_module_expsym_cmds_F77 18858 18859# Commands to strip libraries. 18860old_striplib=$lt_old_striplib 18861striplib=$lt_striplib 18862 18863# Dependencies to place before the objects being linked to create a 18864# shared library. 18865predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 18866 18867# Dependencies to place after the objects being linked to create a 18868# shared library. 18869postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 18870 18871# Dependencies to place before the objects being linked to create a 18872# shared library. 18873predeps=$lt_predeps_F77 18874 18875# Dependencies to place after the objects being linked to create a 18876# shared library. 18877postdeps=$lt_postdeps_F77 18878 18879# The library search path used internally by the compiler when linking 18880# a shared library. 18881compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 18882 18883# Method to check whether dependent libraries are shared objects. 18884deplibs_check_method=$lt_deplibs_check_method 18885 18886# Command to use when deplibs_check_method == file_magic. 18887file_magic_cmd=$lt_file_magic_cmd 18888 18889# Flag that allows shared libraries with undefined symbols to be built. 18890allow_undefined_flag=$lt_allow_undefined_flag_F77 18891 18892# Flag that forces no undefined symbols. 18893no_undefined_flag=$lt_no_undefined_flag_F77 18894 18895# Commands used to finish a libtool library installation in a directory. 18896finish_cmds=$lt_finish_cmds 18897 18898# Same as above, but a single script fragment to be evaled but not shown. 18899finish_eval=$lt_finish_eval 18900 18901# Take the output of nm and produce a listing of raw symbols and C names. 18902global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18903 18904# Transform the output of nm in a proper C declaration 18905global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18906 18907# Transform the output of nm in a C name address pair 18908global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18909 18910# This is the shared library runtime path variable. 18911runpath_var=$runpath_var 18912 18913# This is the shared library path variable. 18914shlibpath_var=$shlibpath_var 18915 18916# Is shlibpath searched before the hard-coded library search path? 18917shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18918 18919# How to hardcode a shared library path into an executable. 18920hardcode_action=$hardcode_action_F77 18921 18922# Whether we should hardcode library paths into libraries. 18923hardcode_into_libs=$hardcode_into_libs 18924 18925# Flag to hardcode \$libdir into a binary during linking. 18926# This must work even if \$libdir does not exist. 18927hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 18928 18929# If ld is used when linking, flag to hardcode \$libdir into 18930# a binary during linking. This must work even if \$libdir does 18931# not exist. 18932hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 18933 18934# Whether we need a single -rpath flag with a separated argument. 18935hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 18936 18937# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18938# resulting binary. 18939hardcode_direct=$hardcode_direct_F77 18940 18941# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18942# resulting binary. 18943hardcode_minus_L=$hardcode_minus_L_F77 18944 18945# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18946# the resulting binary. 18947hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 18948 18949# Set to yes if building a shared library automatically hardcodes DIR into the library 18950# and all subsequent libraries and executables linked against it. 18951hardcode_automatic=$hardcode_automatic_F77 18952 18953# Variables whose values should be saved in libtool wrapper scripts and 18954# restored at relink time. 18955variables_saved_for_relink="$variables_saved_for_relink" 18956 18957# Whether libtool must link a program against all its dependency libraries. 18958link_all_deplibs=$link_all_deplibs_F77 18959 18960# Compile-time system search path for libraries 18961sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 18962 18963# Run-time system search path for libraries 18964sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18965 18966# Fix the shell variable \$srcfile for the compiler. 18967fix_srcfile_path="$fix_srcfile_path_F77" 18968 18969# Set to yes if exported symbols are required. 18970always_export_symbols=$always_export_symbols_F77 18971 18972# The commands to list exported symbols. 18973export_symbols_cmds=$lt_export_symbols_cmds_F77 18974 18975# The commands to extract the exported symbol list from a shared archive. 18976extract_expsyms_cmds=$lt_extract_expsyms_cmds 18977 18978# Symbols that should not be listed in the preloaded symbols. 18979exclude_expsyms=$lt_exclude_expsyms_F77 18980 18981# Symbols that must always be exported. 18982include_expsyms=$lt_include_expsyms_F77 18983 18984# ### END LIBTOOL TAG CONFIG: $tagname 18985 18986__EOF__ 18987 18988 18989else 18990 # If there is no Makefile yet, we rely on a make rule to execute 18991 # `config.status --recheck' to rerun these tests and create the 18992 # libtool script then. 18993 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18994 if test -f "$ltmain_in"; then 18995 test -f Makefile && make "$ltmain" 18996 fi 18997fi 18998 18999 19000ac_ext=c 19001ac_cpp='$CPP $CPPFLAGS' 19002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19004ac_compiler_gnu=$ac_cv_c_compiler_gnu 19005 19006CC="$lt_save_CC" 19007 19008 else 19009 tagname="" 19010 fi 19011 ;; 19012 19013 GCJ) 19014 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 19015 19016 19017 19018# Source file extension for Java test sources. 19019ac_ext=java 19020 19021# Object file extension for compiled Java test sources. 19022objext=o 19023objext_GCJ=$objext 19024 19025# Code to be used in simple compile tests 19026lt_simple_compile_test_code="class foo {}\n" 19027 19028# Code to be used in simple link tests 19029lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 19030 19031# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19032 19033# If no C compiler was specified, use CC. 19034LTCC=${LTCC-"$CC"} 19035 19036# If no C compiler flags were specified, use CFLAGS. 19037LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19038 19039# Allow CC to be a program name with arguments. 19040compiler=$CC 19041 19042 19043# save warnings/boilerplate of simple test code 19044ac_outfile=conftest.$ac_objext 19045printf "$lt_simple_compile_test_code" >conftest.$ac_ext 19046eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19047_lt_compiler_boilerplate=`cat conftest.err` 19048$rm conftest* 19049 19050ac_outfile=conftest.$ac_objext 19051printf "$lt_simple_link_test_code" >conftest.$ac_ext 19052eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19053_lt_linker_boilerplate=`cat conftest.err` 19054$rm conftest* 19055 19056 19057# Allow CC to be a program name with arguments. 19058lt_save_CC="$CC" 19059CC=${GCJ-"gcj"} 19060compiler=$CC 19061compiler_GCJ=$CC 19062for cc_temp in $compiler""; do 19063 case $cc_temp in 19064 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19065 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19066 \-*) ;; 19067 *) break;; 19068 esac 19069done 19070cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19071 19072 19073# GCJ did not exist at the time GCC didn't implicitly link libc in. 19074archive_cmds_need_lc_GCJ=no 19075 19076old_archive_cmds_GCJ=$old_archive_cmds 19077 19078## CAVEAT EMPTOR: 19079## There is no encapsulation within the following macros, do not change 19080## the running order or otherwise move them around unless you know exactly 19081## what you are doing... 19082 19083lt_prog_compiler_no_builtin_flag_GCJ= 19084 19085if test "$GCC" = yes; then 19086 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 19087 19088 19089echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 19090echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 19091if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 19092 echo $ECHO_N "(cached) $ECHO_C" >&6 19093else 19094 lt_cv_prog_compiler_rtti_exceptions=no 19095 ac_outfile=conftest.$ac_objext 19096 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 19097 lt_compiler_flag="-fno-rtti -fno-exceptions" 19098 # Insert the option either (1) after the last *FLAGS variable, or 19099 # (2) before a word containing "conftest.", or (3) at the end. 19100 # Note that $ac_compile itself does not contain backslashes and begins 19101 # with a dollar sign (not a hyphen), so the echo should work correctly. 19102 # The option is referenced via a variable to avoid confusing sed. 19103 lt_compile=`echo "$ac_compile" | $SED \ 19104 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19105 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19106 -e 's:$: $lt_compiler_flag:'` 19107 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 19108 (eval "$lt_compile" 2>conftest.err) 19109 ac_status=$? 19110 cat conftest.err >&5 19111 echo "$as_me:__oline__: \$? = $ac_status" >&5 19112 if (exit $ac_status) && test -s "$ac_outfile"; then 19113 # The compiler can only warn and ignore the option if not recognized 19114 # So say no if there are warnings other than the usual output. 19115 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 19116 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19117 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 19118 lt_cv_prog_compiler_rtti_exceptions=yes 19119 fi 19120 fi 19121 $rm conftest* 19122 19123fi 19124echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 19125echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 19126 19127if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 19128 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 19129else 19130 : 19131fi 19132 19133fi 19134 19135lt_prog_compiler_wl_GCJ= 19136lt_prog_compiler_pic_GCJ= 19137lt_prog_compiler_static_GCJ= 19138 19139echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 19140echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 19141 19142 if test "$GCC" = yes; then 19143 lt_prog_compiler_wl_GCJ='-Wl,' 19144 lt_prog_compiler_static_GCJ='-static' 19145 19146 case $host_os in 19147 aix*) 19148 # All AIX code is PIC. 19149 if test "$host_cpu" = ia64; then 19150 # AIX 5 now supports IA64 processor 19151 lt_prog_compiler_static_GCJ='-Bstatic' 19152 fi 19153 ;; 19154 19155 amigaos*) 19156 # FIXME: we need at least 68020 code to build shared libraries, but 19157 # adding the `-m68020' flag to GCC prevents building anything better, 19158 # like `-m68040'. 19159 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 19160 ;; 19161 19162 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 19163 # PIC is the default for these OSes. 19164 ;; 19165 19166 mingw* | pw32* | os2*) 19167 # This hack is so that the source file can tell whether it is being 19168 # built for inclusion in a dll (and should export symbols for example). 19169 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 19170 ;; 19171 19172 darwin* | rhapsody*) 19173 # PIC is the default on this platform 19174 # Common symbols not allowed in MH_DYLIB files 19175 lt_prog_compiler_pic_GCJ='-fno-common' 19176 ;; 19177 19178 interix3*) 19179 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 19180 # Instead, we relocate shared libraries at runtime. 19181 ;; 19182 19183 msdosdjgpp*) 19184 # Just because we use GCC doesn't mean we suddenly get shared libraries 19185 # on systems that don't support them. 19186 lt_prog_compiler_can_build_shared_GCJ=no 19187 enable_shared=no 19188 ;; 19189 19190 sysv4*MP*) 19191 if test -d /usr/nec; then 19192 lt_prog_compiler_pic_GCJ=-Kconform_pic 19193 fi 19194 ;; 19195 19196 hpux*) 19197 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 19198 # not for PA HP-UX. 19199 case $host_cpu in 19200 hppa*64*|ia64*) 19201 # +Z the default 19202 ;; 19203 *) 19204 lt_prog_compiler_pic_GCJ='-fPIC' 19205 ;; 19206 esac 19207 ;; 19208 19209 *) 19210 lt_prog_compiler_pic_GCJ='-fPIC' 19211 ;; 19212 esac 19213 else 19214 # PORTME Check for flag to pass linker flags through the system compiler. 19215 case $host_os in 19216 aix*) 19217 lt_prog_compiler_wl_GCJ='-Wl,' 19218 if test "$host_cpu" = ia64; then 19219 # AIX 5 now supports IA64 processor 19220 lt_prog_compiler_static_GCJ='-Bstatic' 19221 else 19222 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 19223 fi 19224 ;; 19225 darwin*) 19226 # PIC is the default on this platform 19227 # Common symbols not allowed in MH_DYLIB files 19228 case $cc_basename in 19229 xlc*) 19230 lt_prog_compiler_pic_GCJ='-qnocommon' 19231 lt_prog_compiler_wl_GCJ='-Wl,' 19232 ;; 19233 esac 19234 ;; 19235 19236 mingw* | pw32* | os2*) 19237 # This hack is so that the source file can tell whether it is being 19238 # built for inclusion in a dll (and should export symbols for example). 19239 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 19240 ;; 19241 19242 hpux9* | hpux10* | hpux11*) 19243 lt_prog_compiler_wl_GCJ='-Wl,' 19244 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 19245 # not for PA HP-UX. 19246 case $host_cpu in 19247 hppa*64*|ia64*) 19248 # +Z the default 19249 ;; 19250 *) 19251 lt_prog_compiler_pic_GCJ='+Z' 19252 ;; 19253 esac 19254 # Is there a better lt_prog_compiler_static that works with the bundled CC? 19255 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 19256 ;; 19257 19258 irix5* | irix6* | nonstopux*) 19259 lt_prog_compiler_wl_GCJ='-Wl,' 19260 # PIC (with -KPIC) is the default. 19261 lt_prog_compiler_static_GCJ='-non_shared' 19262 ;; 19263 19264 newsos6) 19265 lt_prog_compiler_pic_GCJ='-KPIC' 19266 lt_prog_compiler_static_GCJ='-Bstatic' 19267 ;; 19268 19269 linux*) 19270 case $cc_basename in 19271 icc* | ecc*) 19272 lt_prog_compiler_wl_GCJ='-Wl,' 19273 lt_prog_compiler_pic_GCJ='-KPIC' 19274 lt_prog_compiler_static_GCJ='-static' 19275 ;; 19276 pgcc* | pgf77* | pgf90* | pgf95*) 19277 # Portland Group compilers (*not* the Pentium gcc compiler, 19278 # which looks to be a dead project) 19279 lt_prog_compiler_wl_GCJ='-Wl,' 19280 lt_prog_compiler_pic_GCJ='-fpic' 19281 lt_prog_compiler_static_GCJ='-Bstatic' 19282 ;; 19283 ccc*) 19284 lt_prog_compiler_wl_GCJ='-Wl,' 19285 # All Alpha code is PIC. 19286 lt_prog_compiler_static_GCJ='-non_shared' 19287 ;; 19288 esac 19289 ;; 19290 19291 osf3* | osf4* | osf5*) 19292 lt_prog_compiler_wl_GCJ='-Wl,' 19293 # All OSF/1 code is PIC. 19294 lt_prog_compiler_static_GCJ='-non_shared' 19295 ;; 19296 19297 solaris*) 19298 lt_prog_compiler_pic_GCJ='-KPIC' 19299 lt_prog_compiler_static_GCJ='-Bstatic' 19300 case $cc_basename in 19301 f77* | f90* | f95*) 19302 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 19303 *) 19304 lt_prog_compiler_wl_GCJ='-Wl,';; 19305 esac 19306 ;; 19307 19308 sunos4*) 19309 lt_prog_compiler_wl_GCJ='-Qoption ld ' 19310 lt_prog_compiler_pic_GCJ='-PIC' 19311 lt_prog_compiler_static_GCJ='-Bstatic' 19312 ;; 19313 19314 sysv4 | sysv4.2uw2* | sysv4.3*) 19315 lt_prog_compiler_wl_GCJ='-Wl,' 19316 lt_prog_compiler_pic_GCJ='-KPIC' 19317 lt_prog_compiler_static_GCJ='-Bstatic' 19318 ;; 19319 19320 sysv4*MP*) 19321 if test -d /usr/nec ;then 19322 lt_prog_compiler_pic_GCJ='-Kconform_pic' 19323 lt_prog_compiler_static_GCJ='-Bstatic' 19324 fi 19325 ;; 19326 19327 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 19328 lt_prog_compiler_wl_GCJ='-Wl,' 19329 lt_prog_compiler_pic_GCJ='-KPIC' 19330 lt_prog_compiler_static_GCJ='-Bstatic' 19331 ;; 19332 19333 unicos*) 19334 lt_prog_compiler_wl_GCJ='-Wl,' 19335 lt_prog_compiler_can_build_shared_GCJ=no 19336 ;; 19337 19338 uts4*) 19339 lt_prog_compiler_pic_GCJ='-pic' 19340 lt_prog_compiler_static_GCJ='-Bstatic' 19341 ;; 19342 19343 *) 19344 lt_prog_compiler_can_build_shared_GCJ=no 19345 ;; 19346 esac 19347 fi 19348 19349echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 19350echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 19351 19352# 19353# Check to make sure the PIC flag actually works. 19354# 19355if test -n "$lt_prog_compiler_pic_GCJ"; then 19356 19357echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 19358echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 19359if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 19360 echo $ECHO_N "(cached) $ECHO_C" >&6 19361else 19362 lt_prog_compiler_pic_works_GCJ=no 19363 ac_outfile=conftest.$ac_objext 19364 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 19365 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 19366 # Insert the option either (1) after the last *FLAGS variable, or 19367 # (2) before a word containing "conftest.", or (3) at the end. 19368 # Note that $ac_compile itself does not contain backslashes and begins 19369 # with a dollar sign (not a hyphen), so the echo should work correctly. 19370 # The option is referenced via a variable to avoid confusing sed. 19371 lt_compile=`echo "$ac_compile" | $SED \ 19372 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19373 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19374 -e 's:$: $lt_compiler_flag:'` 19375 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 19376 (eval "$lt_compile" 2>conftest.err) 19377 ac_status=$? 19378 cat conftest.err >&5 19379 echo "$as_me:__oline__: \$? = $ac_status" >&5 19380 if (exit $ac_status) && test -s "$ac_outfile"; then 19381 # The compiler can only warn and ignore the option if not recognized 19382 # So say no if there are warnings other than the usual output. 19383 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 19384 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19385 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 19386 lt_prog_compiler_pic_works_GCJ=yes 19387 fi 19388 fi 19389 $rm conftest* 19390 19391fi 19392echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 19393echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 19394 19395if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 19396 case $lt_prog_compiler_pic_GCJ in 19397 "" | " "*) ;; 19398 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 19399 esac 19400else 19401 lt_prog_compiler_pic_GCJ= 19402 lt_prog_compiler_can_build_shared_GCJ=no 19403fi 19404 19405fi 19406case $host_os in 19407 # For platforms which do not support PIC, -DPIC is meaningless: 19408 *djgpp*) 19409 lt_prog_compiler_pic_GCJ= 19410 ;; 19411 *) 19412 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 19413 ;; 19414esac 19415 19416# 19417# Check to make sure the static flag actually works. 19418# 19419wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 19420echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 19421echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 19422if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 19423 echo $ECHO_N "(cached) $ECHO_C" >&6 19424else 19425 lt_prog_compiler_static_works_GCJ=no 19426 save_LDFLAGS="$LDFLAGS" 19427 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 19428 printf "$lt_simple_link_test_code" > conftest.$ac_ext 19429 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 19430 # The linker can only warn and ignore the option if not recognized 19431 # So say no if there are warnings 19432 if test -s conftest.err; then 19433 # Append any errors to the config.log. 19434 cat conftest.err 1>&5 19435 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 19436 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19437 if diff conftest.exp conftest.er2 >/dev/null; then 19438 lt_prog_compiler_static_works_GCJ=yes 19439 fi 19440 else 19441 lt_prog_compiler_static_works_GCJ=yes 19442 fi 19443 fi 19444 $rm conftest* 19445 LDFLAGS="$save_LDFLAGS" 19446 19447fi 19448echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 19449echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 19450 19451if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 19452 : 19453else 19454 lt_prog_compiler_static_GCJ= 19455fi 19456 19457 19458echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 19459echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 19460if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 19461 echo $ECHO_N "(cached) $ECHO_C" >&6 19462else 19463 lt_cv_prog_compiler_c_o_GCJ=no 19464 $rm -r conftest 2>/dev/null 19465 mkdir conftest 19466 cd conftest 19467 mkdir out 19468 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 19469 19470 lt_compiler_flag="-o out/conftest2.$ac_objext" 19471 # Insert the option either (1) after the last *FLAGS variable, or 19472 # (2) before a word containing "conftest.", or (3) at the end. 19473 # Note that $ac_compile itself does not contain backslashes and begins 19474 # with a dollar sign (not a hyphen), so the echo should work correctly. 19475 lt_compile=`echo "$ac_compile" | $SED \ 19476 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19477 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19478 -e 's:$: $lt_compiler_flag:'` 19479 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 19480 (eval "$lt_compile" 2>out/conftest.err) 19481 ac_status=$? 19482 cat out/conftest.err >&5 19483 echo "$as_me:__oline__: \$? = $ac_status" >&5 19484 if (exit $ac_status) && test -s out/conftest2.$ac_objext 19485 then 19486 # The compiler can only warn and ignore the option if not recognized 19487 # So say no if there are warnings 19488 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 19489 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 19490 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 19491 lt_cv_prog_compiler_c_o_GCJ=yes 19492 fi 19493 fi 19494 chmod u+w . 2>&5 19495 $rm conftest* 19496 # SGI C++ compiler will create directory out/ii_files/ for 19497 # template instantiation 19498 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 19499 $rm out/* && rmdir out 19500 cd .. 19501 rmdir conftest 19502 $rm conftest* 19503 19504fi 19505echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 19506echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 19507 19508 19509hard_links="nottested" 19510if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 19511 # do not overwrite the value of need_locks provided by the user 19512 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 19513echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 19514 hard_links=yes 19515 $rm conftest* 19516 ln conftest.a conftest.b 2>/dev/null && hard_links=no 19517 touch conftest.a 19518 ln conftest.a conftest.b 2>&5 || hard_links=no 19519 ln conftest.a conftest.b 2>/dev/null && hard_links=no 19520 echo "$as_me:$LINENO: result: $hard_links" >&5 19521echo "${ECHO_T}$hard_links" >&6 19522 if test "$hard_links" = no; then 19523 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 19524echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 19525 need_locks=warn 19526 fi 19527else 19528 need_locks=no 19529fi 19530 19531echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 19532echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 19533 19534 runpath_var= 19535 allow_undefined_flag_GCJ= 19536 enable_shared_with_static_runtimes_GCJ=no 19537 archive_cmds_GCJ= 19538 archive_expsym_cmds_GCJ= 19539 old_archive_From_new_cmds_GCJ= 19540 old_archive_from_expsyms_cmds_GCJ= 19541 export_dynamic_flag_spec_GCJ= 19542 whole_archive_flag_spec_GCJ= 19543 thread_safe_flag_spec_GCJ= 19544 hardcode_libdir_flag_spec_GCJ= 19545 hardcode_libdir_flag_spec_ld_GCJ= 19546 hardcode_libdir_separator_GCJ= 19547 hardcode_direct_GCJ=no 19548 hardcode_minus_L_GCJ=no 19549 hardcode_shlibpath_var_GCJ=unsupported 19550 link_all_deplibs_GCJ=unknown 19551 hardcode_automatic_GCJ=no 19552 module_cmds_GCJ= 19553 module_expsym_cmds_GCJ= 19554 always_export_symbols_GCJ=no 19555 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 19556 # include_expsyms should be a list of space-separated symbols to be *always* 19557 # included in the symbol list 19558 include_expsyms_GCJ= 19559 # exclude_expsyms can be an extended regexp of symbols to exclude 19560 # it will be wrapped by ` (' and `)$', so one must not match beginning or 19561 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 19562 # as well as any symbol that contains `d'. 19563 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 19564 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 19565 # platforms (ab)use it in PIC code, but their linkers get confused if 19566 # the symbol is explicitly referenced. Since portable code cannot 19567 # rely on this symbol name, it's probably fine to never include it in 19568 # preloaded symbol tables. 19569 extract_expsyms_cmds= 19570 # Just being paranoid about ensuring that cc_basename is set. 19571 for cc_temp in $compiler""; do 19572 case $cc_temp in 19573 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19574 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19575 \-*) ;; 19576 *) break;; 19577 esac 19578done 19579cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19580 19581 case $host_os in 19582 cygwin* | mingw* | pw32*) 19583 # FIXME: the MSVC++ port hasn't been tested in a loooong time 19584 # When not using gcc, we currently assume that we are using 19585 # Microsoft Visual C++. 19586 if test "$GCC" != yes; then 19587 with_gnu_ld=no 19588 fi 19589 ;; 19590 interix*) 19591 # we just hope/assume this is gcc and not c89 (= MSVC++) 19592 with_gnu_ld=yes 19593 ;; 19594 openbsd*) 19595 with_gnu_ld=no 19596 ;; 19597 esac 19598 19599 ld_shlibs_GCJ=yes 19600 if test "$with_gnu_ld" = yes; then 19601 # If archive_cmds runs LD, not CC, wlarc should be empty 19602 wlarc='${wl}' 19603 19604 # Set some defaults for GNU ld with shared library support. These 19605 # are reset later if shared libraries are not supported. Putting them 19606 # here allows them to be overridden if necessary. 19607 runpath_var=LD_RUN_PATH 19608 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 19609 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 19610 # ancient GNU ld didn't support --whole-archive et. al. 19611 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 19612 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 19613 else 19614 whole_archive_flag_spec_GCJ= 19615 fi 19616 supports_anon_versioning=no 19617 case `$LD -v 2>/dev/null` in 19618 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 19619 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 19620 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 19621 *\ 2.11.*) ;; # other 2.11 versions 19622 *) supports_anon_versioning=yes ;; 19623 esac 19624 19625 # See if GNU ld supports shared libraries. 19626 case $host_os in 19627 aix3* | aix4* | aix5*) 19628 # On AIX/PPC, the GNU linker is very broken 19629 if test "$host_cpu" != ia64; then 19630 ld_shlibs_GCJ=no 19631 cat <<EOF 1>&2 19632 19633*** Warning: the GNU linker, at least up to release 2.9.1, is reported 19634*** to be unable to reliably create shared libraries on AIX. 19635*** Therefore, libtool is disabling shared libraries support. If you 19636*** really care for shared libraries, you may want to modify your PATH 19637*** so that a non-GNU linker is found, and then restart. 19638 19639EOF 19640 fi 19641 ;; 19642 19643 amigaos*) 19644 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)' 19645 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19646 hardcode_minus_L_GCJ=yes 19647 19648 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 19649 # that the semantics of dynamic libraries on AmigaOS, at least up 19650 # to version 4, is to share data among multiple programs linked 19651 # with the same dynamic library. Since this doesn't match the 19652 # behavior of shared libraries on other platforms, we can't use 19653 # them. 19654 ld_shlibs_GCJ=no 19655 ;; 19656 19657 beos*) 19658 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 19659 allow_undefined_flag_GCJ=unsupported 19660 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 19661 # support --undefined. This deserves some investigation. FIXME 19662 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 19663 else 19664 ld_shlibs_GCJ=no 19665 fi 19666 ;; 19667 19668 cygwin* | mingw* | pw32*) 19669 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 19670 # as there is no search path for DLLs. 19671 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19672 allow_undefined_flag_GCJ=unsupported 19673 always_export_symbols_GCJ=no 19674 enable_shared_with_static_runtimes_GCJ=yes 19675 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 19676 19677 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 19678 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 19679 # If the export-symbols file already is a .def file (1st line 19680 # is EXPORTS), use it as is; otherwise, prepend... 19681 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 19682 cp $export_symbols $output_objdir/$soname.def; 19683 else 19684 echo EXPORTS > $output_objdir/$soname.def; 19685 cat $export_symbols >> $output_objdir/$soname.def; 19686 fi~ 19687 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 19688 else 19689 ld_shlibs_GCJ=no 19690 fi 19691 ;; 19692 19693 interix3*) 19694 hardcode_direct_GCJ=no 19695 hardcode_shlibpath_var_GCJ=no 19696 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 19697 export_dynamic_flag_spec_GCJ='${wl}-E' 19698 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 19699 # Instead, shared libraries are loaded at an image base (0x10000000 by 19700 # default) and relocated if they conflict, which is a slow very memory 19701 # consuming and fragmenting process. To avoid this, we pick a random, 19702 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 19703 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 19704 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 19705 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 19706 ;; 19707 19708 linux*) 19709 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 19710 tmp_addflag= 19711 case $cc_basename,$host_cpu in 19712 pgcc*) # Portland Group C compiler 19713 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 19714 tmp_addflag=' $pic_flag' 19715 ;; 19716 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 19717 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 19718 tmp_addflag=' $pic_flag -Mnomain' ;; 19719 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 19720 tmp_addflag=' -i_dynamic' ;; 19721 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 19722 tmp_addflag=' -i_dynamic -nofor_main' ;; 19723 ifc* | ifort*) # Intel Fortran compiler 19724 tmp_addflag=' -nofor_main' ;; 19725 esac 19726 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 19727 19728 if test $supports_anon_versioning = yes; then 19729 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 19730 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 19731 $echo "local: *; };" >> $output_objdir/$libname.ver~ 19732 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 19733 fi 19734 else 19735 ld_shlibs_GCJ=no 19736 fi 19737 ;; 19738 19739 netbsd*) 19740 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 19741 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 19742 wlarc= 19743 else 19744 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 19745 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 19746 fi 19747 ;; 19748 19749 solaris*) 19750 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 19751 ld_shlibs_GCJ=no 19752 cat <<EOF 1>&2 19753 19754*** Warning: The releases 2.8.* of the GNU linker cannot reliably 19755*** create shared libraries on Solaris systems. Therefore, libtool 19756*** is disabling shared libraries support. We urge you to upgrade GNU 19757*** binutils to release 2.9.1 or newer. Another option is to modify 19758*** your PATH or compiler configuration so that the native linker is 19759*** used, and then restart. 19760 19761EOF 19762 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 19763 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 19764 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 19765 else 19766 ld_shlibs_GCJ=no 19767 fi 19768 ;; 19769 19770 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 19771 case `$LD -v 2>&1` in 19772 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 19773 ld_shlibs_GCJ=no 19774 cat <<_LT_EOF 1>&2 19775 19776*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 19777*** reliably create shared libraries on SCO systems. Therefore, libtool 19778*** is disabling shared libraries support. We urge you to upgrade GNU 19779*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 19780*** your PATH or compiler configuration so that the native linker is 19781*** used, and then restart. 19782 19783_LT_EOF 19784 ;; 19785 *) 19786 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 19787 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 19788 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 19789 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 19790 else 19791 ld_shlibs_GCJ=no 19792 fi 19793 ;; 19794 esac 19795 ;; 19796 19797 sunos4*) 19798 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 19799 wlarc= 19800 hardcode_direct_GCJ=yes 19801 hardcode_shlibpath_var_GCJ=no 19802 ;; 19803 19804 *) 19805 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 19806 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 19807 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 19808 else 19809 ld_shlibs_GCJ=no 19810 fi 19811 ;; 19812 esac 19813 19814 if test "$ld_shlibs_GCJ" = no; then 19815 runpath_var= 19816 hardcode_libdir_flag_spec_GCJ= 19817 export_dynamic_flag_spec_GCJ= 19818 whole_archive_flag_spec_GCJ= 19819 fi 19820 else 19821 # PORTME fill in a description of your system's linker (not GNU ld) 19822 case $host_os in 19823 aix3*) 19824 allow_undefined_flag_GCJ=unsupported 19825 always_export_symbols_GCJ=yes 19826 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' 19827 # Note: this linker hardcodes the directories in LIBPATH if there 19828 # are no directories specified by -L. 19829 hardcode_minus_L_GCJ=yes 19830 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 19831 # Neither direct hardcoding nor static linking is supported with a 19832 # broken collect2. 19833 hardcode_direct_GCJ=unsupported 19834 fi 19835 ;; 19836 19837 aix4* | aix5*) 19838 if test "$host_cpu" = ia64; then 19839 # On IA64, the linker does run time linking by default, so we don't 19840 # have to do anything special. 19841 aix_use_runtimelinking=no 19842 exp_sym_flag='-Bexport' 19843 no_entry_flag="" 19844 else 19845 # If we're using GNU nm, then we don't want the "-C" option. 19846 # -C means demangle to AIX nm, but means don't demangle with GNU nm 19847 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 19848 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' 19849 else 19850 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' 19851 fi 19852 aix_use_runtimelinking=no 19853 19854 # Test if we are trying to use run time linking or normal 19855 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 19856 # need to do runtime linking. 19857 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 19858 for ld_flag in $LDFLAGS; do 19859 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 19860 aix_use_runtimelinking=yes 19861 break 19862 fi 19863 done 19864 ;; 19865 esac 19866 19867 exp_sym_flag='-bexport' 19868 no_entry_flag='-bnoentry' 19869 fi 19870 19871 # When large executables or shared objects are built, AIX ld can 19872 # have problems creating the table of contents. If linking a library 19873 # or program results in "error TOC overflow" add -mminimal-toc to 19874 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 19875 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 19876 19877 archive_cmds_GCJ='' 19878 hardcode_direct_GCJ=yes 19879 hardcode_libdir_separator_GCJ=':' 19880 link_all_deplibs_GCJ=yes 19881 19882 if test "$GCC" = yes; then 19883 case $host_os in aix4.[012]|aix4.[012].*) 19884 # We only want to do this on AIX 4.2 and lower, the check 19885 # below for broken collect2 doesn't work under 4.3+ 19886 collect2name=`${CC} -print-prog-name=collect2` 19887 if test -f "$collect2name" && \ 19888 strings "$collect2name" | grep resolve_lib_name >/dev/null 19889 then 19890 # We have reworked collect2 19891 hardcode_direct_GCJ=yes 19892 else 19893 # We have old collect2 19894 hardcode_direct_GCJ=unsupported 19895 # It fails to find uninstalled libraries when the uninstalled 19896 # path is not listed in the libpath. Setting hardcode_minus_L 19897 # to unsupported forces relinking 19898 hardcode_minus_L_GCJ=yes 19899 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19900 hardcode_libdir_separator_GCJ= 19901 fi 19902 ;; 19903 esac 19904 shared_flag='-shared' 19905 if test "$aix_use_runtimelinking" = yes; then 19906 shared_flag="$shared_flag "'${wl}-G' 19907 fi 19908 else 19909 # not using gcc 19910 if test "$host_cpu" = ia64; then 19911 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 19912 # chokes on -Wl,-G. The following line is correct: 19913 shared_flag='-G' 19914 else 19915 if test "$aix_use_runtimelinking" = yes; then 19916 shared_flag='${wl}-G' 19917 else 19918 shared_flag='${wl}-bM:SRE' 19919 fi 19920 fi 19921 fi 19922 19923 # It seems that -bexpall does not export symbols beginning with 19924 # underscore (_), so it is better to generate a list of symbols to export. 19925 always_export_symbols_GCJ=yes 19926 if test "$aix_use_runtimelinking" = yes; then 19927 # Warning - without using the other runtime loading flags (-brtl), 19928 # -berok will link without error, but may produce a broken library. 19929 allow_undefined_flag_GCJ='-berok' 19930 # Determine the default libpath from the value encoded in an empty executable. 19931 cat >conftest.$ac_ext <<_ACEOF 19932/* confdefs.h. */ 19933_ACEOF 19934cat confdefs.h >>conftest.$ac_ext 19935cat >>conftest.$ac_ext <<_ACEOF 19936/* end confdefs.h. */ 19937 19938int 19939main () 19940{ 19941 19942 ; 19943 return 0; 19944} 19945_ACEOF 19946rm -f conftest.$ac_objext conftest$ac_exeext 19947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19948 (eval $ac_link) 2>conftest.er1 19949 ac_status=$? 19950 grep -v '^ *+' conftest.er1 >conftest.err 19951 rm -f conftest.er1 19952 cat conftest.err >&5 19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19954 (exit $ac_status); } && 19955 { ac_try='test -z "$ac_c_werror_flag" 19956 || test ! -s conftest.err' 19957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19958 (eval $ac_try) 2>&5 19959 ac_status=$? 19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19961 (exit $ac_status); }; } && 19962 { ac_try='test -s conftest$ac_exeext' 19963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19964 (eval $ac_try) 2>&5 19965 ac_status=$? 19966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19967 (exit $ac_status); }; }; then 19968 19969aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 19970}'` 19971# Check for a 64-bit object if we didn't find anything. 19972if 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; } 19973}'`; fi 19974else 19975 echo "$as_me: failed program was:" >&5 19976sed 's/^/| /' conftest.$ac_ext >&5 19977 19978fi 19979rm -f conftest.err conftest.$ac_objext \ 19980 conftest$ac_exeext conftest.$ac_ext 19981if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 19982 19983 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 19984 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 19985 else 19986 if test "$host_cpu" = ia64; then 19987 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 19988 allow_undefined_flag_GCJ="-z nodefs" 19989 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 19990 else 19991 # Determine the default libpath from the value encoded in an empty executable. 19992 cat >conftest.$ac_ext <<_ACEOF 19993/* confdefs.h. */ 19994_ACEOF 19995cat confdefs.h >>conftest.$ac_ext 19996cat >>conftest.$ac_ext <<_ACEOF 19997/* end confdefs.h. */ 19998 19999int 20000main () 20001{ 20002 20003 ; 20004 return 0; 20005} 20006_ACEOF 20007rm -f conftest.$ac_objext conftest$ac_exeext 20008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20009 (eval $ac_link) 2>conftest.er1 20010 ac_status=$? 20011 grep -v '^ *+' conftest.er1 >conftest.err 20012 rm -f conftest.er1 20013 cat conftest.err >&5 20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20015 (exit $ac_status); } && 20016 { ac_try='test -z "$ac_c_werror_flag" 20017 || test ! -s conftest.err' 20018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20019 (eval $ac_try) 2>&5 20020 ac_status=$? 20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20022 (exit $ac_status); }; } && 20023 { ac_try='test -s conftest$ac_exeext' 20024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20025 (eval $ac_try) 2>&5 20026 ac_status=$? 20027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20028 (exit $ac_status); }; }; then 20029 20030aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 20031}'` 20032# Check for a 64-bit object if we didn't find anything. 20033if 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; } 20034}'`; fi 20035else 20036 echo "$as_me: failed program was:" >&5 20037sed 's/^/| /' conftest.$ac_ext >&5 20038 20039fi 20040rm -f conftest.err conftest.$ac_objext \ 20041 conftest$ac_exeext conftest.$ac_ext 20042if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 20043 20044 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 20045 # Warning - without using the other run time loading flags, 20046 # -berok will link without error, but may produce a broken library. 20047 no_undefined_flag_GCJ=' ${wl}-bernotok' 20048 allow_undefined_flag_GCJ=' ${wl}-berok' 20049 # Exported symbols can be pulled into shared objects from archives 20050 whole_archive_flag_spec_GCJ='$convenience' 20051 archive_cmds_need_lc_GCJ=yes 20052 # This is similar to how AIX traditionally builds its shared libraries. 20053 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 20054 fi 20055 fi 20056 ;; 20057 20058 amigaos*) 20059 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)' 20060 hardcode_libdir_flag_spec_GCJ='-L$libdir' 20061 hardcode_minus_L_GCJ=yes 20062 # see comment about different semantics on the GNU ld section 20063 ld_shlibs_GCJ=no 20064 ;; 20065 20066 bsdi[45]*) 20067 export_dynamic_flag_spec_GCJ=-rdynamic 20068 ;; 20069 20070 cygwin* | mingw* | pw32*) 20071 # When not using gcc, we currently assume that we are using 20072 # Microsoft Visual C++. 20073 # hardcode_libdir_flag_spec is actually meaningless, as there is 20074 # no search path for DLLs. 20075 hardcode_libdir_flag_spec_GCJ=' ' 20076 allow_undefined_flag_GCJ=unsupported 20077 # Tell ltmain to make .lib files, not .a files. 20078 libext=lib 20079 # Tell ltmain to make .dll files, not .so files. 20080 shrext_cmds=".dll" 20081 # FIXME: Setting linknames here is a bad hack. 20082 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 20083 # The linker will automatically build a .lib file if we build a DLL. 20084 old_archive_From_new_cmds_GCJ='true' 20085 # FIXME: Should let the user specify the lib program. 20086 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 20087 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 20088 enable_shared_with_static_runtimes_GCJ=yes 20089 ;; 20090 20091 darwin* | rhapsody*) 20092 case $host_os in 20093 rhapsody* | darwin1.[012]) 20094 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 20095 ;; 20096 *) # Darwin 1.3 on 20097 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 20098 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 20099 else 20100 case ${MACOSX_DEPLOYMENT_TARGET} in 20101 10.[012]) 20102 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 20103 ;; 20104 10.*) 20105 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 20106 ;; 20107 esac 20108 fi 20109 ;; 20110 esac 20111 archive_cmds_need_lc_GCJ=no 20112 hardcode_direct_GCJ=no 20113 hardcode_automatic_GCJ=yes 20114 hardcode_shlibpath_var_GCJ=unsupported 20115 whole_archive_flag_spec_GCJ='' 20116 link_all_deplibs_GCJ=yes 20117 if test "$GCC" = yes ; then 20118 output_verbose_link_cmd='echo' 20119 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 20120 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 20121 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 20122 archive_expsym_cmds_GCJ='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}' 20123 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}' 20124 else 20125 case $cc_basename in 20126 xlc*) 20127 output_verbose_link_cmd='echo' 20128 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 20129 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 20130 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 20131 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 20132 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}' 20133 ;; 20134 *) 20135 ld_shlibs_GCJ=no 20136 ;; 20137 esac 20138 fi 20139 ;; 20140 20141 dgux*) 20142 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20143 hardcode_libdir_flag_spec_GCJ='-L$libdir' 20144 hardcode_shlibpath_var_GCJ=no 20145 ;; 20146 20147 freebsd1*) 20148 ld_shlibs_GCJ=no 20149 ;; 20150 20151 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 20152 # support. Future versions do this automatically, but an explicit c++rt0.o 20153 # does not break anything, and helps significantly (at the cost of a little 20154 # extra space). 20155 freebsd2.2*) 20156 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 20157 hardcode_libdir_flag_spec_GCJ='-R$libdir' 20158 hardcode_direct_GCJ=yes 20159 hardcode_shlibpath_var_GCJ=no 20160 ;; 20161 20162 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 20163 freebsd2*) 20164 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 20165 hardcode_direct_GCJ=yes 20166 hardcode_minus_L_GCJ=yes 20167 hardcode_shlibpath_var_GCJ=no 20168 ;; 20169 20170 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 20171 freebsd* | kfreebsd*-gnu | dragonfly*) 20172 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 20173 hardcode_libdir_flag_spec_GCJ='-R$libdir' 20174 hardcode_direct_GCJ=yes 20175 hardcode_shlibpath_var_GCJ=no 20176 ;; 20177 20178 hpux9*) 20179 if test "$GCC" = yes; then 20180 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' 20181 else 20182 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' 20183 fi 20184 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 20185 hardcode_libdir_separator_GCJ=: 20186 hardcode_direct_GCJ=yes 20187 20188 # hardcode_minus_L: Not really in the search PATH, 20189 # but as the default location of the library. 20190 hardcode_minus_L_GCJ=yes 20191 export_dynamic_flag_spec_GCJ='${wl}-E' 20192 ;; 20193 20194 hpux10*) 20195 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 20196 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 20197 else 20198 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 20199 fi 20200 if test "$with_gnu_ld" = no; then 20201 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 20202 hardcode_libdir_separator_GCJ=: 20203 20204 hardcode_direct_GCJ=yes 20205 export_dynamic_flag_spec_GCJ='${wl}-E' 20206 20207 # hardcode_minus_L: Not really in the search PATH, 20208 # but as the default location of the library. 20209 hardcode_minus_L_GCJ=yes 20210 fi 20211 ;; 20212 20213 hpux11*) 20214 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 20215 case $host_cpu in 20216 hppa*64*) 20217 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 20218 ;; 20219 ia64*) 20220 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 20221 ;; 20222 *) 20223 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 20224 ;; 20225 esac 20226 else 20227 case $host_cpu in 20228 hppa*64*) 20229 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 20230 ;; 20231 ia64*) 20232 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 20233 ;; 20234 *) 20235 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 20236 ;; 20237 esac 20238 fi 20239 if test "$with_gnu_ld" = no; then 20240 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 20241 hardcode_libdir_separator_GCJ=: 20242 20243 case $host_cpu in 20244 hppa*64*|ia64*) 20245 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 20246 hardcode_direct_GCJ=no 20247 hardcode_shlibpath_var_GCJ=no 20248 ;; 20249 *) 20250 hardcode_direct_GCJ=yes 20251 export_dynamic_flag_spec_GCJ='${wl}-E' 20252 20253 # hardcode_minus_L: Not really in the search PATH, 20254 # but as the default location of the library. 20255 hardcode_minus_L_GCJ=yes 20256 ;; 20257 esac 20258 fi 20259 ;; 20260 20261 irix5* | irix6* | nonstopux*) 20262 if test "$GCC" = yes; then 20263 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' 20264 else 20265 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' 20266 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 20267 fi 20268 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 20269 hardcode_libdir_separator_GCJ=: 20270 link_all_deplibs_GCJ=yes 20271 ;; 20272 20273 netbsd*) 20274 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 20275 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 20276 else 20277 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 20278 fi 20279 hardcode_libdir_flag_spec_GCJ='-R$libdir' 20280 hardcode_direct_GCJ=yes 20281 hardcode_shlibpath_var_GCJ=no 20282 ;; 20283 20284 newsos6) 20285 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20286 hardcode_direct_GCJ=yes 20287 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 20288 hardcode_libdir_separator_GCJ=: 20289 hardcode_shlibpath_var_GCJ=no 20290 ;; 20291 20292 openbsd*) 20293 hardcode_direct_GCJ=yes 20294 hardcode_shlibpath_var_GCJ=no 20295 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 20296 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20297 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 20298 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 20299 export_dynamic_flag_spec_GCJ='${wl}-E' 20300 else 20301 case $host_os in 20302 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 20303 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 20304 hardcode_libdir_flag_spec_GCJ='-R$libdir' 20305 ;; 20306 *) 20307 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20308 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 20309 ;; 20310 esac 20311 fi 20312 ;; 20313 20314 os2*) 20315 hardcode_libdir_flag_spec_GCJ='-L$libdir' 20316 hardcode_minus_L_GCJ=yes 20317 allow_undefined_flag_GCJ=unsupported 20318 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' 20319 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 20320 ;; 20321 20322 osf3*) 20323 if test "$GCC" = yes; then 20324 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 20325 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' 20326 else 20327 allow_undefined_flag_GCJ=' -expect_unresolved \*' 20328 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' 20329 fi 20330 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 20331 hardcode_libdir_separator_GCJ=: 20332 ;; 20333 20334 osf4* | osf5*) # as osf3* with the addition of -msym flag 20335 if test "$GCC" = yes; then 20336 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 20337 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' 20338 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 20339 else 20340 allow_undefined_flag_GCJ=' -expect_unresolved \*' 20341 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' 20342 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~ 20343 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 20344 20345 # Both c and cxx compiler support -rpath directly 20346 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 20347 fi 20348 hardcode_libdir_separator_GCJ=: 20349 ;; 20350 20351 solaris*) 20352 no_undefined_flag_GCJ=' -z text' 20353 if test "$GCC" = yes; then 20354 wlarc='${wl}' 20355 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 20356 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 20357 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 20358 else 20359 wlarc='' 20360 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 20361 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 20362 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 20363 fi 20364 hardcode_libdir_flag_spec_GCJ='-R$libdir' 20365 hardcode_shlibpath_var_GCJ=no 20366 case $host_os in 20367 solaris2.[0-5] | solaris2.[0-5].*) ;; 20368 *) 20369 # The compiler driver will combine linker options so we 20370 # cannot just pass the convience library names through 20371 # without $wl, iff we do not link with $LD. 20372 # Luckily, gcc supports the same syntax we need for Sun Studio. 20373 # Supported since Solaris 2.6 (maybe 2.5.1?) 20374 case $wlarc in 20375 '') 20376 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 20377 *) 20378 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 20379 esac ;; 20380 esac 20381 link_all_deplibs_GCJ=yes 20382 ;; 20383 20384 sunos4*) 20385 if test "x$host_vendor" = xsequent; then 20386 # Use $CC to link under sequent, because it throws in some extra .o 20387 # files that make .init and .fini sections work. 20388 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 20389 else 20390 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 20391 fi 20392 hardcode_libdir_flag_spec_GCJ='-L$libdir' 20393 hardcode_direct_GCJ=yes 20394 hardcode_minus_L_GCJ=yes 20395 hardcode_shlibpath_var_GCJ=no 20396 ;; 20397 20398 sysv4) 20399 case $host_vendor in 20400 sni) 20401 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20402 hardcode_direct_GCJ=yes # is this really true??? 20403 ;; 20404 siemens) 20405 ## LD is ld it makes a PLAMLIB 20406 ## CC just makes a GrossModule. 20407 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 20408 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 20409 hardcode_direct_GCJ=no 20410 ;; 20411 motorola) 20412 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20413 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 20414 ;; 20415 esac 20416 runpath_var='LD_RUN_PATH' 20417 hardcode_shlibpath_var_GCJ=no 20418 ;; 20419 20420 sysv4.3*) 20421 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20422 hardcode_shlibpath_var_GCJ=no 20423 export_dynamic_flag_spec_GCJ='-Bexport' 20424 ;; 20425 20426 sysv4*MP*) 20427 if test -d /usr/nec; then 20428 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20429 hardcode_shlibpath_var_GCJ=no 20430 runpath_var=LD_RUN_PATH 20431 hardcode_runpath_var=yes 20432 ld_shlibs_GCJ=yes 20433 fi 20434 ;; 20435 20436 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 20437 no_undefined_flag_GCJ='${wl}-z,text' 20438 archive_cmds_need_lc_GCJ=no 20439 hardcode_shlibpath_var_GCJ=no 20440 runpath_var='LD_RUN_PATH' 20441 20442 if test "$GCC" = yes; then 20443 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20444 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20445 else 20446 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20447 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20448 fi 20449 ;; 20450 20451 sysv5* | sco3.2v5* | sco5v6*) 20452 # Note: We can NOT use -z defs as we might desire, because we do not 20453 # link with -lc, and that would cause any symbols used from libc to 20454 # always be unresolved, which means just about no library would 20455 # ever link correctly. If we're not using GNU ld we use -z text 20456 # though, which does catch some bad symbols but isn't as heavy-handed 20457 # as -z defs. 20458 no_undefined_flag_GCJ='${wl}-z,text' 20459 allow_undefined_flag_GCJ='${wl}-z,nodefs' 20460 archive_cmds_need_lc_GCJ=no 20461 hardcode_shlibpath_var_GCJ=no 20462 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 20463 hardcode_libdir_separator_GCJ=':' 20464 link_all_deplibs_GCJ=yes 20465 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 20466 runpath_var='LD_RUN_PATH' 20467 20468 if test "$GCC" = yes; then 20469 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 20470 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 20471 else 20472 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 20473 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 20474 fi 20475 ;; 20476 20477 uts4*) 20478 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20479 hardcode_libdir_flag_spec_GCJ='-L$libdir' 20480 hardcode_shlibpath_var_GCJ=no 20481 ;; 20482 20483 *) 20484 ld_shlibs_GCJ=no 20485 ;; 20486 esac 20487 fi 20488 20489echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 20490echo "${ECHO_T}$ld_shlibs_GCJ" >&6 20491test "$ld_shlibs_GCJ" = no && can_build_shared=no 20492 20493# 20494# Do we need to explicitly link libc? 20495# 20496case "x$archive_cmds_need_lc_GCJ" in 20497x|xyes) 20498 # Assume -lc should be added 20499 archive_cmds_need_lc_GCJ=yes 20500 20501 if test "$enable_shared" = yes && test "$GCC" = yes; then 20502 case $archive_cmds_GCJ in 20503 *'~'*) 20504 # FIXME: we may have to deal with multi-command sequences. 20505 ;; 20506 '$CC '*) 20507 # Test whether the compiler implicitly links with -lc since on some 20508 # systems, -lgcc has to come before -lc. If gcc already passes -lc 20509 # to ld, don't add -lc before -lgcc. 20510 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 20511echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 20512 $rm conftest* 20513 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 20514 20515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20516 (eval $ac_compile) 2>&5 20517 ac_status=$? 20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20519 (exit $ac_status); } 2>conftest.err; then 20520 soname=conftest 20521 lib=conftest 20522 libobjs=conftest.$ac_objext 20523 deplibs= 20524 wl=$lt_prog_compiler_wl_GCJ 20525 pic_flag=$lt_prog_compiler_pic_GCJ 20526 compiler_flags=-v 20527 linker_flags=-v 20528 verstring= 20529 output_objdir=. 20530 libname=conftest 20531 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 20532 allow_undefined_flag_GCJ= 20533 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 20534 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 20535 ac_status=$? 20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20537 (exit $ac_status); } 20538 then 20539 archive_cmds_need_lc_GCJ=no 20540 else 20541 archive_cmds_need_lc_GCJ=yes 20542 fi 20543 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 20544 else 20545 cat conftest.err 1>&5 20546 fi 20547 $rm conftest* 20548 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 20549echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 20550 ;; 20551 esac 20552 fi 20553 ;; 20554esac 20555 20556echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 20557echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 20558library_names_spec= 20559libname_spec='lib$name' 20560soname_spec= 20561shrext_cmds=".so" 20562postinstall_cmds= 20563postuninstall_cmds= 20564finish_cmds= 20565finish_eval= 20566shlibpath_var= 20567shlibpath_overrides_runpath=unknown 20568version_type=none 20569dynamic_linker="$host_os ld.so" 20570sys_lib_dlsearch_path_spec="/lib /usr/lib" 20571if test "$GCC" = yes; then 20572 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 20573 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 20574 # if the path contains ";" then we assume it to be the separator 20575 # otherwise default to the standard path separator (i.e. ":") - it is 20576 # assumed that no part of a normal pathname contains ";" but that should 20577 # okay in the real world where ";" in dirpaths is itself problematic. 20578 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 20579 else 20580 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 20581 fi 20582else 20583 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 20584fi 20585need_lib_prefix=unknown 20586hardcode_into_libs=no 20587 20588# when you set need_version to no, make sure it does not cause -set_version 20589# flags to be left without arguments 20590need_version=unknown 20591 20592case $host_os in 20593aix3*) 20594 version_type=linux 20595 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 20596 shlibpath_var=LIBPATH 20597 20598 # AIX 3 has no versioning support, so we append a major version to the name. 20599 soname_spec='${libname}${release}${shared_ext}$major' 20600 ;; 20601 20602aix4* | aix5*) 20603 version_type=linux 20604 need_lib_prefix=no 20605 need_version=no 20606 hardcode_into_libs=yes 20607 if test "$host_cpu" = ia64; then 20608 # AIX 5 supports IA64 20609 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 20610 shlibpath_var=LD_LIBRARY_PATH 20611 else 20612 # With GCC up to 2.95.x, collect2 would create an import file 20613 # for dependence libraries. The import file would start with 20614 # the line `#! .'. This would cause the generated library to 20615 # depend on `.', always an invalid library. This was fixed in 20616 # development snapshots of GCC prior to 3.0. 20617 case $host_os in 20618 aix4 | aix4.[01] | aix4.[01].*) 20619 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 20620 echo ' yes ' 20621 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 20622 : 20623 else 20624 can_build_shared=no 20625 fi 20626 ;; 20627 esac 20628 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 20629 # soname into executable. Probably we can add versioning support to 20630 # collect2, so additional links can be useful in future. 20631 if test "$aix_use_runtimelinking" = yes; then 20632 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 20633 # instead of lib<name>.a to let people know that these are not 20634 # typical AIX shared libraries. 20635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20636 else 20637 # We preserve .a as extension for shared libraries through AIX4.2 20638 # and later when we are not doing run time linking. 20639 library_names_spec='${libname}${release}.a $libname.a' 20640 soname_spec='${libname}${release}${shared_ext}$major' 20641 fi 20642 shlibpath_var=LIBPATH 20643 fi 20644 ;; 20645 20646amigaos*) 20647 library_names_spec='$libname.ixlibrary $libname.a' 20648 # Create ${libname}_ixlibrary.a entries in /sys/libs. 20649 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' 20650 ;; 20651 20652beos*) 20653 library_names_spec='${libname}${shared_ext}' 20654 dynamic_linker="$host_os ld.so" 20655 shlibpath_var=LIBRARY_PATH 20656 ;; 20657 20658bsdi[45]*) 20659 version_type=linux 20660 need_version=no 20661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20662 soname_spec='${libname}${release}${shared_ext}$major' 20663 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 20664 shlibpath_var=LD_LIBRARY_PATH 20665 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 20666 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 20667 # the default ld.so.conf also contains /usr/contrib/lib and 20668 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 20669 # libtool to hard-code these into programs 20670 ;; 20671 20672cygwin* | mingw* | pw32*) 20673 version_type=windows 20674 shrext_cmds=".dll" 20675 need_version=no 20676 need_lib_prefix=no 20677 20678 case $GCC,$host_os in 20679 yes,cygwin* | yes,mingw* | yes,pw32*) 20680 library_names_spec='$libname.dll.a' 20681 # DLL is installed to $(libdir)/../bin by postinstall_cmds 20682 postinstall_cmds='base_file=`basename \${file}`~ 20683 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 20684 dldir=$destdir/`dirname \$dlpath`~ 20685 test -d \$dldir || mkdir -p \$dldir~ 20686 $install_prog $dir/$dlname \$dldir/$dlname~ 20687 chmod a+x \$dldir/$dlname' 20688 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 20689 dlpath=$dir/\$dldll~ 20690 $rm \$dlpath' 20691 shlibpath_overrides_runpath=yes 20692 20693 case $host_os in 20694 cygwin*) 20695 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 20696 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 20697 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 20698 ;; 20699 mingw*) 20700 # MinGW DLLs use traditional 'lib' prefix 20701 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 20702 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 20703 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 20704 # It is most probably a Windows format PATH printed by 20705 # mingw gcc, but we are running on Cygwin. Gcc prints its search 20706 # path with ; separators, and with drive letters. We can handle the 20707 # drive letters (cygwin fileutils understands them), so leave them, 20708 # especially as we might pass files found there to a mingw objdump, 20709 # which wouldn't understand a cygwinified path. Ahh. 20710 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 20711 else 20712 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 20713 fi 20714 ;; 20715 pw32*) 20716 # pw32 DLLs use 'pw' prefix rather than 'lib' 20717 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 20718 ;; 20719 esac 20720 ;; 20721 20722 *) 20723 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 20724 ;; 20725 esac 20726 dynamic_linker='Win32 ld.exe' 20727 # FIXME: first we should search . and the directory the executable is in 20728 shlibpath_var=PATH 20729 ;; 20730 20731darwin* | rhapsody*) 20732 dynamic_linker="$host_os dyld" 20733 version_type=darwin 20734 need_lib_prefix=no 20735 need_version=no 20736 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 20737 soname_spec='${libname}${release}${major}$shared_ext' 20738 shlibpath_overrides_runpath=yes 20739 shlibpath_var=DYLD_LIBRARY_PATH 20740 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 20741 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 20742 if test "$GCC" = yes; then 20743 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"` 20744 else 20745 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 20746 fi 20747 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 20748 ;; 20749 20750dgux*) 20751 version_type=linux 20752 need_lib_prefix=no 20753 need_version=no 20754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 20755 soname_spec='${libname}${release}${shared_ext}$major' 20756 shlibpath_var=LD_LIBRARY_PATH 20757 ;; 20758 20759freebsd1*) 20760 dynamic_linker=no 20761 ;; 20762 20763kfreebsd*-gnu) 20764 version_type=linux 20765 need_lib_prefix=no 20766 need_version=no 20767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 20768 soname_spec='${libname}${release}${shared_ext}$major' 20769 shlibpath_var=LD_LIBRARY_PATH 20770 shlibpath_overrides_runpath=no 20771 hardcode_into_libs=yes 20772 dynamic_linker='GNU ld.so' 20773 ;; 20774 20775freebsd* | dragonfly*) 20776 # DragonFly does not have aout. When/if they implement a new 20777 # versioning mechanism, adjust this. 20778 if test -x /usr/bin/objformat; then 20779 objformat=`/usr/bin/objformat` 20780 else 20781 case $host_os in 20782 freebsd[123]*) objformat=aout ;; 20783 *) objformat=elf ;; 20784 esac 20785 fi 20786 version_type=freebsd-$objformat 20787 case $version_type in 20788 freebsd-elf*) 20789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 20790 need_version=no 20791 need_lib_prefix=no 20792 ;; 20793 freebsd-*) 20794 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 20795 need_version=yes 20796 ;; 20797 esac 20798 shlibpath_var=LD_LIBRARY_PATH 20799 case $host_os in 20800 freebsd2*) 20801 shlibpath_overrides_runpath=yes 20802 ;; 20803 freebsd3.[01]* | freebsdelf3.[01]*) 20804 shlibpath_overrides_runpath=yes 20805 hardcode_into_libs=yes 20806 ;; 20807 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 20808 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 20809 shlibpath_overrides_runpath=no 20810 hardcode_into_libs=yes 20811 ;; 20812 freebsd*) # from 4.6 on 20813 shlibpath_overrides_runpath=yes 20814 hardcode_into_libs=yes 20815 ;; 20816 esac 20817 ;; 20818 20819gnu*) 20820 version_type=linux 20821 need_lib_prefix=no 20822 need_version=no 20823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 20824 soname_spec='${libname}${release}${shared_ext}$major' 20825 shlibpath_var=LD_LIBRARY_PATH 20826 hardcode_into_libs=yes 20827 ;; 20828 20829hpux9* | hpux10* | hpux11*) 20830 # Give a soname corresponding to the major version so that dld.sl refuses to 20831 # link against other versions. 20832 version_type=sunos 20833 need_lib_prefix=no 20834 need_version=no 20835 case $host_cpu in 20836 ia64*) 20837 shrext_cmds='.so' 20838 hardcode_into_libs=yes 20839 dynamic_linker="$host_os dld.so" 20840 shlibpath_var=LD_LIBRARY_PATH 20841 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 20842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20843 soname_spec='${libname}${release}${shared_ext}$major' 20844 if test "X$HPUX_IA64_MODE" = X32; then 20845 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 20846 else 20847 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 20848 fi 20849 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 20850 ;; 20851 hppa*64*) 20852 shrext_cmds='.sl' 20853 hardcode_into_libs=yes 20854 dynamic_linker="$host_os dld.sl" 20855 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 20856 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 20857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20858 soname_spec='${libname}${release}${shared_ext}$major' 20859 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 20860 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 20861 ;; 20862 *) 20863 shrext_cmds='.sl' 20864 dynamic_linker="$host_os dld.sl" 20865 shlibpath_var=SHLIB_PATH 20866 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 20867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20868 soname_spec='${libname}${release}${shared_ext}$major' 20869 ;; 20870 esac 20871 # HP-UX runs *really* slowly unless shared libraries are mode 555. 20872 postinstall_cmds='chmod 555 $lib' 20873 ;; 20874 20875interix3*) 20876 version_type=linux 20877 need_lib_prefix=no 20878 need_version=no 20879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 20880 soname_spec='${libname}${release}${shared_ext}$major' 20881 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 20882 shlibpath_var=LD_LIBRARY_PATH 20883 shlibpath_overrides_runpath=no 20884 hardcode_into_libs=yes 20885 ;; 20886 20887irix5* | irix6* | nonstopux*) 20888 case $host_os in 20889 nonstopux*) version_type=nonstopux ;; 20890 *) 20891 if test "$lt_cv_prog_gnu_ld" = yes; then 20892 version_type=linux 20893 else 20894 version_type=irix 20895 fi ;; 20896 esac 20897 need_lib_prefix=no 20898 need_version=no 20899 soname_spec='${libname}${release}${shared_ext}$major' 20900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 20901 case $host_os in 20902 irix5* | nonstopux*) 20903 libsuff= shlibsuff= 20904 ;; 20905 *) 20906 case $LD in # libtool.m4 will add one of these switches to LD 20907 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 20908 libsuff= shlibsuff= libmagic=32-bit;; 20909 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 20910 libsuff=32 shlibsuff=N32 libmagic=N32;; 20911 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 20912 libsuff=64 shlibsuff=64 libmagic=64-bit;; 20913 *) libsuff= shlibsuff= libmagic=never-match;; 20914 esac 20915 ;; 20916 esac 20917 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 20918 shlibpath_overrides_runpath=no 20919 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 20920 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 20921 hardcode_into_libs=yes 20922 ;; 20923 20924# No shared lib support for Linux oldld, aout, or coff. 20925linux*oldld* | linux*aout* | linux*coff*) 20926 dynamic_linker=no 20927 ;; 20928 20929# This must be Linux ELF. 20930linux*) 20931 version_type=linux 20932 need_lib_prefix=no 20933 need_version=no 20934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20935 soname_spec='${libname}${release}${shared_ext}$major' 20936 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 20937 shlibpath_var=LD_LIBRARY_PATH 20938 shlibpath_overrides_runpath=no 20939 # This implies no fast_install, which is unacceptable. 20940 # Some rework will be needed to allow for fast_install 20941 # before this can be enabled. 20942 hardcode_into_libs=yes 20943 20944 # find out which ABI we are using 20945 libsuff= 20946 case "$host_cpu" in 20947 x86_64*|s390x*|powerpc64*) 20948 echo '#line __oline__ "configure"' > conftest.$ac_ext 20949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20950 (eval $ac_compile) 2>&5 20951 ac_status=$? 20952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20953 (exit $ac_status); }; then 20954 case `/usr/bin/file conftest.$ac_objext` in 20955 *64-bit*) 20956 libsuff=64 20957 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 20958 ;; 20959 esac 20960 fi 20961 rm -rf conftest* 20962 ;; 20963 esac 20964 20965 # Append ld.so.conf contents to the search path 20966 if test -f /etc/ld.so.conf; then 20967 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 20968 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 20969 fi 20970 20971 # We used to test for /lib/ld.so.1 and disable shared libraries on 20972 # powerpc, because MkLinux only supported shared libraries with the 20973 # GNU dynamic linker. Since this was broken with cross compilers, 20974 # most powerpc-linux boxes support dynamic linking these days and 20975 # people can always --disable-shared, the test was removed, and we 20976 # assume the GNU/Linux dynamic linker is in use. 20977 dynamic_linker='GNU/Linux ld.so' 20978 ;; 20979 20980knetbsd*-gnu) 20981 version_type=linux 20982 need_lib_prefix=no 20983 need_version=no 20984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 20985 soname_spec='${libname}${release}${shared_ext}$major' 20986 shlibpath_var=LD_LIBRARY_PATH 20987 shlibpath_overrides_runpath=no 20988 hardcode_into_libs=yes 20989 dynamic_linker='GNU ld.so' 20990 ;; 20991 20992netbsd*) 20993 version_type=sunos 20994 need_lib_prefix=no 20995 need_version=no 20996 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 20997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 20998 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 20999 dynamic_linker='NetBSD (a.out) ld.so' 21000 else 21001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 21002 soname_spec='${libname}${release}${shared_ext}$major' 21003 dynamic_linker='NetBSD ld.elf_so' 21004 fi 21005 shlibpath_var=LD_LIBRARY_PATH 21006 shlibpath_overrides_runpath=yes 21007 hardcode_into_libs=yes 21008 ;; 21009 21010newsos6) 21011 version_type=linux 21012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21013 shlibpath_var=LD_LIBRARY_PATH 21014 shlibpath_overrides_runpath=yes 21015 ;; 21016 21017nto-qnx*) 21018 version_type=linux 21019 need_lib_prefix=no 21020 need_version=no 21021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21022 soname_spec='${libname}${release}${shared_ext}$major' 21023 shlibpath_var=LD_LIBRARY_PATH 21024 shlibpath_overrides_runpath=yes 21025 ;; 21026 21027openbsd*) 21028 version_type=sunos 21029 sys_lib_dlsearch_path_spec="/usr/lib" 21030 need_lib_prefix=no 21031 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 21032 case $host_os in 21033 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 21034 *) need_version=no ;; 21035 esac 21036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 21037 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 21038 shlibpath_var=LD_LIBRARY_PATH 21039 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 21040 case $host_os in 21041 openbsd2.[89] | openbsd2.[89].*) 21042 shlibpath_overrides_runpath=no 21043 ;; 21044 *) 21045 shlibpath_overrides_runpath=yes 21046 ;; 21047 esac 21048 else 21049 shlibpath_overrides_runpath=yes 21050 fi 21051 ;; 21052 21053os2*) 21054 libname_spec='$name' 21055 shrext_cmds=".dll" 21056 need_lib_prefix=no 21057 library_names_spec='$libname${shared_ext} $libname.a' 21058 dynamic_linker='OS/2 ld.exe' 21059 shlibpath_var=LIBPATH 21060 ;; 21061 21062osf3* | osf4* | osf5*) 21063 version_type=osf 21064 need_lib_prefix=no 21065 need_version=no 21066 soname_spec='${libname}${release}${shared_ext}$major' 21067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21068 shlibpath_var=LD_LIBRARY_PATH 21069 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 21070 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 21071 ;; 21072 21073solaris*) 21074 version_type=linux 21075 need_lib_prefix=no 21076 need_version=no 21077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21078 soname_spec='${libname}${release}${shared_ext}$major' 21079 shlibpath_var=LD_LIBRARY_PATH 21080 shlibpath_overrides_runpath=yes 21081 hardcode_into_libs=yes 21082 # ldd complains unless libraries are executable 21083 postinstall_cmds='chmod +x $lib' 21084 ;; 21085 21086sunos4*) 21087 version_type=sunos 21088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 21089 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 21090 shlibpath_var=LD_LIBRARY_PATH 21091 shlibpath_overrides_runpath=yes 21092 if test "$with_gnu_ld" = yes; then 21093 need_lib_prefix=no 21094 fi 21095 need_version=yes 21096 ;; 21097 21098sysv4 | sysv4.3*) 21099 version_type=linux 21100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21101 soname_spec='${libname}${release}${shared_ext}$major' 21102 shlibpath_var=LD_LIBRARY_PATH 21103 case $host_vendor in 21104 sni) 21105 shlibpath_overrides_runpath=no 21106 need_lib_prefix=no 21107 export_dynamic_flag_spec='${wl}-Blargedynsym' 21108 runpath_var=LD_RUN_PATH 21109 ;; 21110 siemens) 21111 need_lib_prefix=no 21112 ;; 21113 motorola) 21114 need_lib_prefix=no 21115 need_version=no 21116 shlibpath_overrides_runpath=no 21117 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 21118 ;; 21119 esac 21120 ;; 21121 21122sysv4*MP*) 21123 if test -d /usr/nec ;then 21124 version_type=linux 21125 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 21126 soname_spec='$libname${shared_ext}.$major' 21127 shlibpath_var=LD_LIBRARY_PATH 21128 fi 21129 ;; 21130 21131sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 21132 version_type=freebsd-elf 21133 need_lib_prefix=no 21134 need_version=no 21135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 21136 soname_spec='${libname}${release}${shared_ext}$major' 21137 shlibpath_var=LD_LIBRARY_PATH 21138 hardcode_into_libs=yes 21139 if test "$with_gnu_ld" = yes; then 21140 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 21141 shlibpath_overrides_runpath=no 21142 else 21143 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 21144 shlibpath_overrides_runpath=yes 21145 case $host_os in 21146 sco3.2v5*) 21147 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 21148 ;; 21149 esac 21150 fi 21151 sys_lib_dlsearch_path_spec='/usr/lib' 21152 ;; 21153 21154uts4*) 21155 version_type=linux 21156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21157 soname_spec='${libname}${release}${shared_ext}$major' 21158 shlibpath_var=LD_LIBRARY_PATH 21159 ;; 21160 21161*) 21162 dynamic_linker=no 21163 ;; 21164esac 21165echo "$as_me:$LINENO: result: $dynamic_linker" >&5 21166echo "${ECHO_T}$dynamic_linker" >&6 21167test "$dynamic_linker" = no && can_build_shared=no 21168 21169variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 21170if test "$GCC" = yes; then 21171 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 21172fi 21173 21174echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 21175echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 21176hardcode_action_GCJ= 21177if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 21178 test -n "$runpath_var_GCJ" || \ 21179 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 21180 21181 # We can hardcode non-existant directories. 21182 if test "$hardcode_direct_GCJ" != no && 21183 # If the only mechanism to avoid hardcoding is shlibpath_var, we 21184 # have to relink, otherwise we might link with an installed library 21185 # when we should be linking with a yet-to-be-installed one 21186 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 21187 test "$hardcode_minus_L_GCJ" != no; then 21188 # Linking always hardcodes the temporary library directory. 21189 hardcode_action_GCJ=relink 21190 else 21191 # We can link without hardcoding, and we can hardcode nonexisting dirs. 21192 hardcode_action_GCJ=immediate 21193 fi 21194else 21195 # We cannot hardcode anything, or else we can only hardcode existing 21196 # directories. 21197 hardcode_action_GCJ=unsupported 21198fi 21199echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 21200echo "${ECHO_T}$hardcode_action_GCJ" >&6 21201 21202if test "$hardcode_action_GCJ" = relink; then 21203 # Fast installation is not supported 21204 enable_fast_install=no 21205elif test "$shlibpath_overrides_runpath" = yes || 21206 test "$enable_shared" = no; then 21207 # Fast installation is not necessary 21208 enable_fast_install=needless 21209fi 21210 21211 21212# The else clause should only fire when bootstrapping the 21213# libtool distribution, otherwise you forgot to ship ltmain.sh 21214# with your package, and you will get complaints that there are 21215# no rules to generate ltmain.sh. 21216if test -f "$ltmain"; then 21217 # See if we are running on zsh, and set the options which allow our commands through 21218 # without removal of \ escapes. 21219 if test -n "${ZSH_VERSION+set}" ; then 21220 setopt NO_GLOB_SUBST 21221 fi 21222 # Now quote all the things that may contain metacharacters while being 21223 # careful not to overquote the AC_SUBSTed values. We take copies of the 21224 # variables and quote the copies for generation of the libtool script. 21225 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 21226 SED SHELL STRIP \ 21227 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 21228 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 21229 deplibs_check_method reload_flag reload_cmds need_locks \ 21230 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 21231 lt_cv_sys_global_symbol_to_c_name_address \ 21232 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 21233 old_postinstall_cmds old_postuninstall_cmds \ 21234 compiler_GCJ \ 21235 CC_GCJ \ 21236 LD_GCJ \ 21237 lt_prog_compiler_wl_GCJ \ 21238 lt_prog_compiler_pic_GCJ \ 21239 lt_prog_compiler_static_GCJ \ 21240 lt_prog_compiler_no_builtin_flag_GCJ \ 21241 export_dynamic_flag_spec_GCJ \ 21242 thread_safe_flag_spec_GCJ \ 21243 whole_archive_flag_spec_GCJ \ 21244 enable_shared_with_static_runtimes_GCJ \ 21245 old_archive_cmds_GCJ \ 21246 old_archive_from_new_cmds_GCJ \ 21247 predep_objects_GCJ \ 21248 postdep_objects_GCJ \ 21249 predeps_GCJ \ 21250 postdeps_GCJ \ 21251 compiler_lib_search_path_GCJ \ 21252 archive_cmds_GCJ \ 21253 archive_expsym_cmds_GCJ \ 21254 postinstall_cmds_GCJ \ 21255 postuninstall_cmds_GCJ \ 21256 old_archive_from_expsyms_cmds_GCJ \ 21257 allow_undefined_flag_GCJ \ 21258 no_undefined_flag_GCJ \ 21259 export_symbols_cmds_GCJ \ 21260 hardcode_libdir_flag_spec_GCJ \ 21261 hardcode_libdir_flag_spec_ld_GCJ \ 21262 hardcode_libdir_separator_GCJ \ 21263 hardcode_automatic_GCJ \ 21264 module_cmds_GCJ \ 21265 module_expsym_cmds_GCJ \ 21266 lt_cv_prog_compiler_c_o_GCJ \ 21267 exclude_expsyms_GCJ \ 21268 include_expsyms_GCJ; do 21269 21270 case $var in 21271 old_archive_cmds_GCJ | \ 21272 old_archive_from_new_cmds_GCJ | \ 21273 archive_cmds_GCJ | \ 21274 archive_expsym_cmds_GCJ | \ 21275 module_cmds_GCJ | \ 21276 module_expsym_cmds_GCJ | \ 21277 old_archive_from_expsyms_cmds_GCJ | \ 21278 export_symbols_cmds_GCJ | \ 21279 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 21280 postinstall_cmds | postuninstall_cmds | \ 21281 old_postinstall_cmds | old_postuninstall_cmds | \ 21282 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 21283 # Double-quote double-evaled strings. 21284 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 21285 ;; 21286 *) 21287 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 21288 ;; 21289 esac 21290 done 21291 21292 case $lt_echo in 21293 *'\$0 --fallback-echo"') 21294 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 21295 ;; 21296 esac 21297 21298cfgfile="$ofile" 21299 21300 cat <<__EOF__ >> "$cfgfile" 21301# ### BEGIN LIBTOOL TAG CONFIG: $tagname 21302 21303# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21304 21305# Shell to use when invoking shell scripts. 21306SHELL=$lt_SHELL 21307 21308# Whether or not to build shared libraries. 21309build_libtool_libs=$enable_shared 21310 21311# Whether or not to build static libraries. 21312build_old_libs=$enable_static 21313 21314# Whether or not to add -lc for building shared libraries. 21315build_libtool_need_lc=$archive_cmds_need_lc_GCJ 21316 21317# Whether or not to disallow shared libs when runtime libs are static 21318allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 21319 21320# Whether or not to optimize for fast installation. 21321fast_install=$enable_fast_install 21322 21323# The host system. 21324host_alias=$host_alias 21325host=$host 21326host_os=$host_os 21327 21328# The build system. 21329build_alias=$build_alias 21330build=$build 21331build_os=$build_os 21332 21333# An echo program that does not interpret backslashes. 21334echo=$lt_echo 21335 21336# The archiver. 21337AR=$lt_AR 21338AR_FLAGS=$lt_AR_FLAGS 21339 21340# A C compiler. 21341LTCC=$lt_LTCC 21342 21343# LTCC compiler flags. 21344LTCFLAGS=$lt_LTCFLAGS 21345 21346# A language-specific compiler. 21347CC=$lt_compiler_GCJ 21348 21349# Is the compiler the GNU C compiler? 21350with_gcc=$GCC_GCJ 21351 21352gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 21353gcc_ver=\`gcc -dumpversion\` 21354 21355# An ERE matcher. 21356EGREP=$lt_EGREP 21357 21358# The linker used to build libraries. 21359LD=$lt_LD_GCJ 21360 21361# Whether we need hard or soft links. 21362LN_S=$lt_LN_S 21363 21364# A BSD-compatible nm program. 21365NM=$lt_NM 21366 21367# A symbol stripping program 21368STRIP=$lt_STRIP 21369 21370# Used to examine libraries when file_magic_cmd begins "file" 21371MAGIC_CMD=$MAGIC_CMD 21372 21373# Used on cygwin: DLL creation program. 21374DLLTOOL="$DLLTOOL" 21375 21376# Used on cygwin: object dumper. 21377OBJDUMP="$OBJDUMP" 21378 21379# Used on cygwin: assembler. 21380AS="$AS" 21381 21382# The name of the directory that contains temporary libtool files. 21383objdir=$objdir 21384 21385# How to create reloadable object files. 21386reload_flag=$lt_reload_flag 21387reload_cmds=$lt_reload_cmds 21388 21389# How to pass a linker flag through the compiler. 21390wl=$lt_lt_prog_compiler_wl_GCJ 21391 21392# Object file suffix (normally "o"). 21393objext="$ac_objext" 21394 21395# Old archive suffix (normally "a"). 21396libext="$libext" 21397 21398# Shared library suffix (normally ".so"). 21399shrext_cmds='$shrext_cmds' 21400 21401# Executable file suffix (normally ""). 21402exeext="$exeext" 21403 21404# Additional compiler flags for building library objects. 21405pic_flag=$lt_lt_prog_compiler_pic_GCJ 21406pic_mode=$pic_mode 21407 21408# What is the maximum length of a command? 21409max_cmd_len=$lt_cv_sys_max_cmd_len 21410 21411# Does compiler simultaneously support -c and -o options? 21412compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 21413 21414# Must we lock files when doing compilation? 21415need_locks=$lt_need_locks 21416 21417# Do we need the lib prefix for modules? 21418need_lib_prefix=$need_lib_prefix 21419 21420# Do we need a version for libraries? 21421need_version=$need_version 21422 21423# Whether dlopen is supported. 21424dlopen_support=$enable_dlopen 21425 21426# Whether dlopen of programs is supported. 21427dlopen_self=$enable_dlopen_self 21428 21429# Whether dlopen of statically linked programs is supported. 21430dlopen_self_static=$enable_dlopen_self_static 21431 21432# Compiler flag to prevent dynamic linking. 21433link_static_flag=$lt_lt_prog_compiler_static_GCJ 21434 21435# Compiler flag to turn off builtin functions. 21436no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 21437 21438# Compiler flag to allow reflexive dlopens. 21439export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 21440 21441# Compiler flag to generate shared objects directly from archives. 21442whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 21443 21444# Compiler flag to generate thread-safe objects. 21445thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 21446 21447# Library versioning type. 21448version_type=$version_type 21449 21450# Format of library name prefix. 21451libname_spec=$lt_libname_spec 21452 21453# List of archive names. First name is the real one, the rest are links. 21454# The last name is the one that the linker finds with -lNAME. 21455library_names_spec=$lt_library_names_spec 21456 21457# The coded name of the library, if different from the real name. 21458soname_spec=$lt_soname_spec 21459 21460# Commands used to build and install an old-style archive. 21461RANLIB=$lt_RANLIB 21462old_archive_cmds=$lt_old_archive_cmds_GCJ 21463old_postinstall_cmds=$lt_old_postinstall_cmds 21464old_postuninstall_cmds=$lt_old_postuninstall_cmds 21465 21466# Create an old-style archive from a shared archive. 21467old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 21468 21469# Create a temporary old-style archive to link instead of a shared archive. 21470old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 21471 21472# Commands used to build and install a shared archive. 21473archive_cmds=$lt_archive_cmds_GCJ 21474archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 21475postinstall_cmds=$lt_postinstall_cmds 21476postuninstall_cmds=$lt_postuninstall_cmds 21477 21478# Commands used to build a loadable module (assumed same as above if empty) 21479module_cmds=$lt_module_cmds_GCJ 21480module_expsym_cmds=$lt_module_expsym_cmds_GCJ 21481 21482# Commands to strip libraries. 21483old_striplib=$lt_old_striplib 21484striplib=$lt_striplib 21485 21486# Dependencies to place before the objects being linked to create a 21487# shared library. 21488predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 21489 21490# Dependencies to place after the objects being linked to create a 21491# shared library. 21492postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 21493 21494# Dependencies to place before the objects being linked to create a 21495# shared library. 21496predeps=$lt_predeps_GCJ 21497 21498# Dependencies to place after the objects being linked to create a 21499# shared library. 21500postdeps=$lt_postdeps_GCJ 21501 21502# The library search path used internally by the compiler when linking 21503# a shared library. 21504compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 21505 21506# Method to check whether dependent libraries are shared objects. 21507deplibs_check_method=$lt_deplibs_check_method 21508 21509# Command to use when deplibs_check_method == file_magic. 21510file_magic_cmd=$lt_file_magic_cmd 21511 21512# Flag that allows shared libraries with undefined symbols to be built. 21513allow_undefined_flag=$lt_allow_undefined_flag_GCJ 21514 21515# Flag that forces no undefined symbols. 21516no_undefined_flag=$lt_no_undefined_flag_GCJ 21517 21518# Commands used to finish a libtool library installation in a directory. 21519finish_cmds=$lt_finish_cmds 21520 21521# Same as above, but a single script fragment to be evaled but not shown. 21522finish_eval=$lt_finish_eval 21523 21524# Take the output of nm and produce a listing of raw symbols and C names. 21525global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21526 21527# Transform the output of nm in a proper C declaration 21528global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21529 21530# Transform the output of nm in a C name address pair 21531global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21532 21533# This is the shared library runtime path variable. 21534runpath_var=$runpath_var 21535 21536# This is the shared library path variable. 21537shlibpath_var=$shlibpath_var 21538 21539# Is shlibpath searched before the hard-coded library search path? 21540shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21541 21542# How to hardcode a shared library path into an executable. 21543hardcode_action=$hardcode_action_GCJ 21544 21545# Whether we should hardcode library paths into libraries. 21546hardcode_into_libs=$hardcode_into_libs 21547 21548# Flag to hardcode \$libdir into a binary during linking. 21549# This must work even if \$libdir does not exist. 21550hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 21551 21552# If ld is used when linking, flag to hardcode \$libdir into 21553# a binary during linking. This must work even if \$libdir does 21554# not exist. 21555hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 21556 21557# Whether we need a single -rpath flag with a separated argument. 21558hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 21559 21560# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 21561# resulting binary. 21562hardcode_direct=$hardcode_direct_GCJ 21563 21564# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 21565# resulting binary. 21566hardcode_minus_L=$hardcode_minus_L_GCJ 21567 21568# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 21569# the resulting binary. 21570hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 21571 21572# Set to yes if building a shared library automatically hardcodes DIR into the library 21573# and all subsequent libraries and executables linked against it. 21574hardcode_automatic=$hardcode_automatic_GCJ 21575 21576# Variables whose values should be saved in libtool wrapper scripts and 21577# restored at relink time. 21578variables_saved_for_relink="$variables_saved_for_relink" 21579 21580# Whether libtool must link a program against all its dependency libraries. 21581link_all_deplibs=$link_all_deplibs_GCJ 21582 21583# Compile-time system search path for libraries 21584sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 21585 21586# Run-time system search path for libraries 21587sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 21588 21589# Fix the shell variable \$srcfile for the compiler. 21590fix_srcfile_path="$fix_srcfile_path_GCJ" 21591 21592# Set to yes if exported symbols are required. 21593always_export_symbols=$always_export_symbols_GCJ 21594 21595# The commands to list exported symbols. 21596export_symbols_cmds=$lt_export_symbols_cmds_GCJ 21597 21598# The commands to extract the exported symbol list from a shared archive. 21599extract_expsyms_cmds=$lt_extract_expsyms_cmds 21600 21601# Symbols that should not be listed in the preloaded symbols. 21602exclude_expsyms=$lt_exclude_expsyms_GCJ 21603 21604# Symbols that must always be exported. 21605include_expsyms=$lt_include_expsyms_GCJ 21606 21607# ### END LIBTOOL TAG CONFIG: $tagname 21608 21609__EOF__ 21610 21611 21612else 21613 # If there is no Makefile yet, we rely on a make rule to execute 21614 # `config.status --recheck' to rerun these tests and create the 21615 # libtool script then. 21616 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 21617 if test -f "$ltmain_in"; then 21618 test -f Makefile && make "$ltmain" 21619 fi 21620fi 21621 21622 21623ac_ext=c 21624ac_cpp='$CPP $CPPFLAGS' 21625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21627ac_compiler_gnu=$ac_cv_c_compiler_gnu 21628 21629CC="$lt_save_CC" 21630 21631 else 21632 tagname="" 21633 fi 21634 ;; 21635 21636 RC) 21637 21638 21639 21640# Source file extension for RC test sources. 21641ac_ext=rc 21642 21643# Object file extension for compiled RC test sources. 21644objext=o 21645objext_RC=$objext 21646 21647# Code to be used in simple compile tests 21648lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 21649 21650# Code to be used in simple link tests 21651lt_simple_link_test_code="$lt_simple_compile_test_code" 21652 21653# ltmain only uses $CC for tagged configurations so make sure $CC is set. 21654 21655# If no C compiler was specified, use CC. 21656LTCC=${LTCC-"$CC"} 21657 21658# If no C compiler flags were specified, use CFLAGS. 21659LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 21660 21661# Allow CC to be a program name with arguments. 21662compiler=$CC 21663 21664 21665# save warnings/boilerplate of simple test code 21666ac_outfile=conftest.$ac_objext 21667printf "$lt_simple_compile_test_code" >conftest.$ac_ext 21668eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 21669_lt_compiler_boilerplate=`cat conftest.err` 21670$rm conftest* 21671 21672ac_outfile=conftest.$ac_objext 21673printf "$lt_simple_link_test_code" >conftest.$ac_ext 21674eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 21675_lt_linker_boilerplate=`cat conftest.err` 21676$rm conftest* 21677 21678 21679# Allow CC to be a program name with arguments. 21680lt_save_CC="$CC" 21681CC=${RC-"windres"} 21682compiler=$CC 21683compiler_RC=$CC 21684for cc_temp in $compiler""; do 21685 case $cc_temp in 21686 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21687 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21688 \-*) ;; 21689 *) break;; 21690 esac 21691done 21692cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 21693 21694lt_cv_prog_compiler_c_o_RC=yes 21695 21696# The else clause should only fire when bootstrapping the 21697# libtool distribution, otherwise you forgot to ship ltmain.sh 21698# with your package, and you will get complaints that there are 21699# no rules to generate ltmain.sh. 21700if test -f "$ltmain"; then 21701 # See if we are running on zsh, and set the options which allow our commands through 21702 # without removal of \ escapes. 21703 if test -n "${ZSH_VERSION+set}" ; then 21704 setopt NO_GLOB_SUBST 21705 fi 21706 # Now quote all the things that may contain metacharacters while being 21707 # careful not to overquote the AC_SUBSTed values. We take copies of the 21708 # variables and quote the copies for generation of the libtool script. 21709 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 21710 SED SHELL STRIP \ 21711 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 21712 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 21713 deplibs_check_method reload_flag reload_cmds need_locks \ 21714 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 21715 lt_cv_sys_global_symbol_to_c_name_address \ 21716 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 21717 old_postinstall_cmds old_postuninstall_cmds \ 21718 compiler_RC \ 21719 CC_RC \ 21720 LD_RC \ 21721 lt_prog_compiler_wl_RC \ 21722 lt_prog_compiler_pic_RC \ 21723 lt_prog_compiler_static_RC \ 21724 lt_prog_compiler_no_builtin_flag_RC \ 21725 export_dynamic_flag_spec_RC \ 21726 thread_safe_flag_spec_RC \ 21727 whole_archive_flag_spec_RC \ 21728 enable_shared_with_static_runtimes_RC \ 21729 old_archive_cmds_RC \ 21730 old_archive_from_new_cmds_RC \ 21731 predep_objects_RC \ 21732 postdep_objects_RC \ 21733 predeps_RC \ 21734 postdeps_RC \ 21735 compiler_lib_search_path_RC \ 21736 archive_cmds_RC \ 21737 archive_expsym_cmds_RC \ 21738 postinstall_cmds_RC \ 21739 postuninstall_cmds_RC \ 21740 old_archive_from_expsyms_cmds_RC \ 21741 allow_undefined_flag_RC \ 21742 no_undefined_flag_RC \ 21743 export_symbols_cmds_RC \ 21744 hardcode_libdir_flag_spec_RC \ 21745 hardcode_libdir_flag_spec_ld_RC \ 21746 hardcode_libdir_separator_RC \ 21747 hardcode_automatic_RC \ 21748 module_cmds_RC \ 21749 module_expsym_cmds_RC \ 21750 lt_cv_prog_compiler_c_o_RC \ 21751 exclude_expsyms_RC \ 21752 include_expsyms_RC; do 21753 21754 case $var in 21755 old_archive_cmds_RC | \ 21756 old_archive_from_new_cmds_RC | \ 21757 archive_cmds_RC | \ 21758 archive_expsym_cmds_RC | \ 21759 module_cmds_RC | \ 21760 module_expsym_cmds_RC | \ 21761 old_archive_from_expsyms_cmds_RC | \ 21762 export_symbols_cmds_RC | \ 21763 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 21764 postinstall_cmds | postuninstall_cmds | \ 21765 old_postinstall_cmds | old_postuninstall_cmds | \ 21766 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 21767 # Double-quote double-evaled strings. 21768 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 21769 ;; 21770 *) 21771 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 21772 ;; 21773 esac 21774 done 21775 21776 case $lt_echo in 21777 *'\$0 --fallback-echo"') 21778 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 21779 ;; 21780 esac 21781 21782cfgfile="$ofile" 21783 21784 cat <<__EOF__ >> "$cfgfile" 21785# ### BEGIN LIBTOOL TAG CONFIG: $tagname 21786 21787# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21788 21789# Shell to use when invoking shell scripts. 21790SHELL=$lt_SHELL 21791 21792# Whether or not to build shared libraries. 21793build_libtool_libs=$enable_shared 21794 21795# Whether or not to build static libraries. 21796build_old_libs=$enable_static 21797 21798# Whether or not to add -lc for building shared libraries. 21799build_libtool_need_lc=$archive_cmds_need_lc_RC 21800 21801# Whether or not to disallow shared libs when runtime libs are static 21802allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 21803 21804# Whether or not to optimize for fast installation. 21805fast_install=$enable_fast_install 21806 21807# The host system. 21808host_alias=$host_alias 21809host=$host 21810host_os=$host_os 21811 21812# The build system. 21813build_alias=$build_alias 21814build=$build 21815build_os=$build_os 21816 21817# An echo program that does not interpret backslashes. 21818echo=$lt_echo 21819 21820# The archiver. 21821AR=$lt_AR 21822AR_FLAGS=$lt_AR_FLAGS 21823 21824# A C compiler. 21825LTCC=$lt_LTCC 21826 21827# LTCC compiler flags. 21828LTCFLAGS=$lt_LTCFLAGS 21829 21830# A language-specific compiler. 21831CC=$lt_compiler_RC 21832 21833# Is the compiler the GNU C compiler? 21834with_gcc=$GCC_RC 21835 21836gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 21837gcc_ver=\`gcc -dumpversion\` 21838 21839# An ERE matcher. 21840EGREP=$lt_EGREP 21841 21842# The linker used to build libraries. 21843LD=$lt_LD_RC 21844 21845# Whether we need hard or soft links. 21846LN_S=$lt_LN_S 21847 21848# A BSD-compatible nm program. 21849NM=$lt_NM 21850 21851# A symbol stripping program 21852STRIP=$lt_STRIP 21853 21854# Used to examine libraries when file_magic_cmd begins "file" 21855MAGIC_CMD=$MAGIC_CMD 21856 21857# Used on cygwin: DLL creation program. 21858DLLTOOL="$DLLTOOL" 21859 21860# Used on cygwin: object dumper. 21861OBJDUMP="$OBJDUMP" 21862 21863# Used on cygwin: assembler. 21864AS="$AS" 21865 21866# The name of the directory that contains temporary libtool files. 21867objdir=$objdir 21868 21869# How to create reloadable object files. 21870reload_flag=$lt_reload_flag 21871reload_cmds=$lt_reload_cmds 21872 21873# How to pass a linker flag through the compiler. 21874wl=$lt_lt_prog_compiler_wl_RC 21875 21876# Object file suffix (normally "o"). 21877objext="$ac_objext" 21878 21879# Old archive suffix (normally "a"). 21880libext="$libext" 21881 21882# Shared library suffix (normally ".so"). 21883shrext_cmds='$shrext_cmds' 21884 21885# Executable file suffix (normally ""). 21886exeext="$exeext" 21887 21888# Additional compiler flags for building library objects. 21889pic_flag=$lt_lt_prog_compiler_pic_RC 21890pic_mode=$pic_mode 21891 21892# What is the maximum length of a command? 21893max_cmd_len=$lt_cv_sys_max_cmd_len 21894 21895# Does compiler simultaneously support -c and -o options? 21896compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 21897 21898# Must we lock files when doing compilation? 21899need_locks=$lt_need_locks 21900 21901# Do we need the lib prefix for modules? 21902need_lib_prefix=$need_lib_prefix 21903 21904# Do we need a version for libraries? 21905need_version=$need_version 21906 21907# Whether dlopen is supported. 21908dlopen_support=$enable_dlopen 21909 21910# Whether dlopen of programs is supported. 21911dlopen_self=$enable_dlopen_self 21912 21913# Whether dlopen of statically linked programs is supported. 21914dlopen_self_static=$enable_dlopen_self_static 21915 21916# Compiler flag to prevent dynamic linking. 21917link_static_flag=$lt_lt_prog_compiler_static_RC 21918 21919# Compiler flag to turn off builtin functions. 21920no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 21921 21922# Compiler flag to allow reflexive dlopens. 21923export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 21924 21925# Compiler flag to generate shared objects directly from archives. 21926whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 21927 21928# Compiler flag to generate thread-safe objects. 21929thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 21930 21931# Library versioning type. 21932version_type=$version_type 21933 21934# Format of library name prefix. 21935libname_spec=$lt_libname_spec 21936 21937# List of archive names. First name is the real one, the rest are links. 21938# The last name is the one that the linker finds with -lNAME. 21939library_names_spec=$lt_library_names_spec 21940 21941# The coded name of the library, if different from the real name. 21942soname_spec=$lt_soname_spec 21943 21944# Commands used to build and install an old-style archive. 21945RANLIB=$lt_RANLIB 21946old_archive_cmds=$lt_old_archive_cmds_RC 21947old_postinstall_cmds=$lt_old_postinstall_cmds 21948old_postuninstall_cmds=$lt_old_postuninstall_cmds 21949 21950# Create an old-style archive from a shared archive. 21951old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 21952 21953# Create a temporary old-style archive to link instead of a shared archive. 21954old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 21955 21956# Commands used to build and install a shared archive. 21957archive_cmds=$lt_archive_cmds_RC 21958archive_expsym_cmds=$lt_archive_expsym_cmds_RC 21959postinstall_cmds=$lt_postinstall_cmds 21960postuninstall_cmds=$lt_postuninstall_cmds 21961 21962# Commands used to build a loadable module (assumed same as above if empty) 21963module_cmds=$lt_module_cmds_RC 21964module_expsym_cmds=$lt_module_expsym_cmds_RC 21965 21966# Commands to strip libraries. 21967old_striplib=$lt_old_striplib 21968striplib=$lt_striplib 21969 21970# Dependencies to place before the objects being linked to create a 21971# shared library. 21972predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 21973 21974# Dependencies to place after the objects being linked to create a 21975# shared library. 21976postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 21977 21978# Dependencies to place before the objects being linked to create a 21979# shared library. 21980predeps=$lt_predeps_RC 21981 21982# Dependencies to place after the objects being linked to create a 21983# shared library. 21984postdeps=$lt_postdeps_RC 21985 21986# The library search path used internally by the compiler when linking 21987# a shared library. 21988compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 21989 21990# Method to check whether dependent libraries are shared objects. 21991deplibs_check_method=$lt_deplibs_check_method 21992 21993# Command to use when deplibs_check_method == file_magic. 21994file_magic_cmd=$lt_file_magic_cmd 21995 21996# Flag that allows shared libraries with undefined symbols to be built. 21997allow_undefined_flag=$lt_allow_undefined_flag_RC 21998 21999# Flag that forces no undefined symbols. 22000no_undefined_flag=$lt_no_undefined_flag_RC 22001 22002# Commands used to finish a libtool library installation in a directory. 22003finish_cmds=$lt_finish_cmds 22004 22005# Same as above, but a single script fragment to be evaled but not shown. 22006finish_eval=$lt_finish_eval 22007 22008# Take the output of nm and produce a listing of raw symbols and C names. 22009global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22010 22011# Transform the output of nm in a proper C declaration 22012global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22013 22014# Transform the output of nm in a C name address pair 22015global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22016 22017# This is the shared library runtime path variable. 22018runpath_var=$runpath_var 22019 22020# This is the shared library path variable. 22021shlibpath_var=$shlibpath_var 22022 22023# Is shlibpath searched before the hard-coded library search path? 22024shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22025 22026# How to hardcode a shared library path into an executable. 22027hardcode_action=$hardcode_action_RC 22028 22029# Whether we should hardcode library paths into libraries. 22030hardcode_into_libs=$hardcode_into_libs 22031 22032# Flag to hardcode \$libdir into a binary during linking. 22033# This must work even if \$libdir does not exist. 22034hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 22035 22036# If ld is used when linking, flag to hardcode \$libdir into 22037# a binary during linking. This must work even if \$libdir does 22038# not exist. 22039hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 22040 22041# Whether we need a single -rpath flag with a separated argument. 22042hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 22043 22044# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 22045# resulting binary. 22046hardcode_direct=$hardcode_direct_RC 22047 22048# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 22049# resulting binary. 22050hardcode_minus_L=$hardcode_minus_L_RC 22051 22052# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 22053# the resulting binary. 22054hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 22055 22056# Set to yes if building a shared library automatically hardcodes DIR into the library 22057# and all subsequent libraries and executables linked against it. 22058hardcode_automatic=$hardcode_automatic_RC 22059 22060# Variables whose values should be saved in libtool wrapper scripts and 22061# restored at relink time. 22062variables_saved_for_relink="$variables_saved_for_relink" 22063 22064# Whether libtool must link a program against all its dependency libraries. 22065link_all_deplibs=$link_all_deplibs_RC 22066 22067# Compile-time system search path for libraries 22068sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 22069 22070# Run-time system search path for libraries 22071sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 22072 22073# Fix the shell variable \$srcfile for the compiler. 22074fix_srcfile_path="$fix_srcfile_path_RC" 22075 22076# Set to yes if exported symbols are required. 22077always_export_symbols=$always_export_symbols_RC 22078 22079# The commands to list exported symbols. 22080export_symbols_cmds=$lt_export_symbols_cmds_RC 22081 22082# The commands to extract the exported symbol list from a shared archive. 22083extract_expsyms_cmds=$lt_extract_expsyms_cmds 22084 22085# Symbols that should not be listed in the preloaded symbols. 22086exclude_expsyms=$lt_exclude_expsyms_RC 22087 22088# Symbols that must always be exported. 22089include_expsyms=$lt_include_expsyms_RC 22090 22091# ### END LIBTOOL TAG CONFIG: $tagname 22092 22093__EOF__ 22094 22095 22096else 22097 # If there is no Makefile yet, we rely on a make rule to execute 22098 # `config.status --recheck' to rerun these tests and create the 22099 # libtool script then. 22100 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 22101 if test -f "$ltmain_in"; then 22102 test -f Makefile && make "$ltmain" 22103 fi 22104fi 22105 22106 22107ac_ext=c 22108ac_cpp='$CPP $CPPFLAGS' 22109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22111ac_compiler_gnu=$ac_cv_c_compiler_gnu 22112 22113CC="$lt_save_CC" 22114 22115 ;; 22116 22117 *) 22118 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 22119echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 22120 { (exit 1); exit 1; }; } 22121 ;; 22122 esac 22123 22124 # Append the new tag name to the list of available tags. 22125 if test -n "$tagname" ; then 22126 available_tags="$available_tags $tagname" 22127 fi 22128 fi 22129 done 22130 IFS="$lt_save_ifs" 22131 22132 # Now substitute the updated list of available tags. 22133 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 22134 mv "${ofile}T" "$ofile" 22135 chmod +x "$ofile" 22136 else 22137 rm -f "${ofile}T" 22138 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 22139echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 22140 { (exit 1); exit 1; }; } 22141 fi 22142fi 22143 22144 22145 22146# This can be used to rebuild libtool when needed 22147LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 22148 22149# Always use our own libtool. 22150LIBTOOL='$(SHELL) $(top_builddir)/libtool' 22151 22152# Prevent multiple expansion 22153 22154 22155 22156 22157 22158 22159 22160 22161 22162 22163 22164 22165 22166 22167 22168 22169 22170 22171 22172 22173 22174 22175 22176LIBMCRYPT_LIBS="$LIBS -L${libdir} -lmcrypt $LTLIBS" 22177LIBMCRYPT_CFLAGS="-I${includedir}" 22178 22179 22180 22181 ac_config_commands="$ac_config_commands default-1" 22182 22183 22184 ac_config_files="$ac_config_files Makefile libmcrypt.spec lib/Makefile doc/Makefile src/Makefile include/Makefile modules/Makefile modules/modes/Makefile modules/algorithms/Makefile lib/mcrypt.h lib/libmcrypt-config" 22185 22186cat >confcache <<\_ACEOF 22187# This file is a shell script that caches the results of configure 22188# tests run on this system so they can be shared between configure 22189# scripts and configure runs, see configure's option --config-cache. 22190# It is not useful on other systems. If it contains results you don't 22191# want to keep, you may remove or edit it. 22192# 22193# config.status only pays attention to the cache file if you give it 22194# the --recheck option to rerun configure. 22195# 22196# `ac_cv_env_foo' variables (set or unset) will be overridden when 22197# loading this file, other *unset* `ac_cv_foo' will be assigned the 22198# following values. 22199 22200_ACEOF 22201 22202# The following way of writing the cache mishandles newlines in values, 22203# but we know of no workaround that is simple, portable, and efficient. 22204# So, don't put newlines in cache variables' values. 22205# Ultrix sh set writes to stderr and can't be redirected directly, 22206# and sets the high bit in the cache file unless we assign to the vars. 22207{ 22208 (set) 2>&1 | 22209 case `(ac_space=' '; set | grep ac_space) 2>&1` in 22210 *ac_space=\ *) 22211 # `set' does not quote correctly, so add quotes (double-quote 22212 # substitution turns \\\\ into \\, and sed turns \\ into \). 22213 sed -n \ 22214 "s/'/'\\\\''/g; 22215 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22216 ;; 22217 *) 22218 # `set' quotes correctly as required by POSIX, so do not add quotes. 22219 sed -n \ 22220 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 22221 ;; 22222 esac; 22223} | 22224 sed ' 22225 t clear 22226 : clear 22227 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22228 t end 22229 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22230 : end' >>confcache 22231if diff $cache_file confcache >/dev/null 2>&1; then :; else 22232 if test -w $cache_file; then 22233 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 22234 cat confcache >$cache_file 22235 else 22236 echo "not updating unwritable cache $cache_file" 22237 fi 22238fi 22239rm -f confcache 22240 22241test "x$prefix" = xNONE && prefix=$ac_default_prefix 22242# Let make expand exec_prefix. 22243test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22244 22245# VPATH may cause trouble with some makes, so we remove $(srcdir), 22246# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22247# trailing colons and then remove the whole line if VPATH becomes empty 22248# (actually we leave an empty line to preserve line numbers). 22249if test "x$srcdir" = x.; then 22250 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22251s/:*\$(srcdir):*/:/; 22252s/:*\${srcdir}:*/:/; 22253s/:*@srcdir@:*/:/; 22254s/^\([^=]*=[ ]*\):*/\1/; 22255s/:*$//; 22256s/^[^=]*=[ ]*$//; 22257}' 22258fi 22259 22260DEFS=-DHAVE_CONFIG_H 22261 22262ac_libobjs= 22263ac_ltlibobjs= 22264for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue 22265 # 1. Remove the extension, and $U if already installed. 22266 ac_i=`echo "$ac_i" | 22267 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 22268 # 2. Add them. 22269 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 22270 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 22271done 22272LIB@&t@OBJS=$ac_libobjs 22273 22274LTLIBOBJS=$ac_ltlibobjs 22275 22276 22277if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22278 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 22279Usually this means the macro was only invoked conditionally." >&5 22280echo "$as_me: error: conditional \"AMDEP\" was never defined. 22281Usually this means the macro was only invoked conditionally." >&2;} 22282 { (exit 1); exit 1; }; } 22283fi 22284if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22285 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22286Usually this means the macro was only invoked conditionally." >&5 22287echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22288Usually this means the macro was only invoked conditionally." >&2;} 22289 { (exit 1); exit 1; }; } 22290fi 22291if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 22292 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 22293Usually this means the macro was only invoked conditionally." >&5 22294echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 22295Usually this means the macro was only invoked conditionally." >&2;} 22296 { (exit 1); exit 1; }; } 22297fi 22298 22299: ${CONFIG_STATUS=./config.status} 22300ac_clean_files_save=$ac_clean_files 22301ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22302{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 22303echo "$as_me: creating $CONFIG_STATUS" >&6;} 22304cat >$CONFIG_STATUS <<_ACEOF 22305#! $SHELL 22306# Generated by $as_me. 22307# Run this file to recreate the current configuration. 22308# Compiler output produced by configure, useful for debugging 22309# configure, is in config.log if it exists. 22310 22311debug=false 22312ac_cs_recheck=false 22313ac_cs_silent=false 22314SHELL=\${CONFIG_SHELL-$SHELL} 22315_ACEOF 22316 22317cat >>$CONFIG_STATUS <<\_ACEOF 22318## --------------------- ## 22319## M4sh Initialization. ## 22320## --------------------- ## 22321 22322# Be Bourne compatible 22323if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22324 emulate sh 22325 NULLCMD=: 22326 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22327 # is contrary to our usage. Disable this feature. 22328 alias -g '${1+"$@"}'='"$@"' 22329elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22330 set -o posix 22331fi 22332DUALCASE=1; export DUALCASE # for MKS sh 22333 22334# Support unset when possible. 22335if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 22336 as_unset=unset 22337else 22338 as_unset=false 22339fi 22340 22341 22342# Work around bugs in pre-3.0 UWIN ksh. 22343$as_unset ENV MAIL MAILPATH 22344PS1='$ ' 22345PS2='> ' 22346PS4='+ ' 22347 22348# NLS nuisances. 22349for as_var in \ 22350 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 22351 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 22352 LC_TELEPHONE LC_TIME 22353do 22354 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 22355 eval $as_var=C; export $as_var 22356 else 22357 $as_unset $as_var 22358 fi 22359done 22360 22361# Required to use basename. 22362if expr a : '\(a\)' >/dev/null 2>&1; then 22363 as_expr=expr 22364else 22365 as_expr=false 22366fi 22367 22368if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 22369 as_basename=basename 22370else 22371 as_basename=false 22372fi 22373 22374 22375# Name of the executable. 22376as_me=`$as_basename "$0" || 22377$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22378 X"$0" : 'X\(//\)$' \| \ 22379 X"$0" : 'X\(/\)$' \| \ 22380 . : '\(.\)' 2>/dev/null || 22381echo X/"$0" | 22382 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 22383 /^X\/\(\/\/\)$/{ s//\1/; q; } 22384 /^X\/\(\/\).*/{ s//\1/; q; } 22385 s/.*/./; q'` 22386 22387 22388# PATH needs CR, and LINENO needs CR and PATH. 22389# Avoid depending upon Character Ranges. 22390as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22391as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22392as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22393as_cr_digits='0123456789' 22394as_cr_alnum=$as_cr_Letters$as_cr_digits 22395 22396# The user is always right. 22397if test "${PATH_SEPARATOR+set}" != set; then 22398 echo "#! /bin/sh" >conf$$.sh 22399 echo "exit 0" >>conf$$.sh 22400 chmod +x conf$$.sh 22401 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 22402 PATH_SEPARATOR=';' 22403 else 22404 PATH_SEPARATOR=: 22405 fi 22406 rm -f conf$$.sh 22407fi 22408 22409 22410 as_lineno_1=$LINENO 22411 as_lineno_2=$LINENO 22412 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 22413 test "x$as_lineno_1" != "x$as_lineno_2" && 22414 test "x$as_lineno_3" = "x$as_lineno_2" || { 22415 # Find who we are. Look in the path if we contain no path at all 22416 # relative or not. 22417 case $0 in 22418 *[\\/]* ) as_myself=$0 ;; 22419 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22420for as_dir in $PATH 22421do 22422 IFS=$as_save_IFS 22423 test -z "$as_dir" && as_dir=. 22424 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22425done 22426 22427 ;; 22428 esac 22429 # We did not find ourselves, most probably we were run as `sh COMMAND' 22430 # in which case we are not to be found in the path. 22431 if test "x$as_myself" = x; then 22432 as_myself=$0 22433 fi 22434 if test ! -f "$as_myself"; then 22435 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 22436echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 22437 { (exit 1); exit 1; }; } 22438 fi 22439 case $CONFIG_SHELL in 22440 '') 22441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22442for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 22443do 22444 IFS=$as_save_IFS 22445 test -z "$as_dir" && as_dir=. 22446 for as_base in sh bash ksh sh5; do 22447 case $as_dir in 22448 /*) 22449 if ("$as_dir/$as_base" -c ' 22450 as_lineno_1=$LINENO 22451 as_lineno_2=$LINENO 22452 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 22453 test "x$as_lineno_1" != "x$as_lineno_2" && 22454 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 22455 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 22456 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 22457 CONFIG_SHELL=$as_dir/$as_base 22458 export CONFIG_SHELL 22459 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 22460 fi;; 22461 esac 22462 done 22463done 22464;; 22465 esac 22466 22467 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22468 # uniformly replaced by the line number. The first 'sed' inserts a 22469 # line-number line before each line; the second 'sed' does the real 22470 # work. The second script uses 'N' to pair each line-number line 22471 # with the numbered line, and appends trailing '-' during 22472 # substitution so that $LINENO is not a special case at line end. 22473 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22474 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 22475 sed '=' <$as_myself | 22476 sed ' 22477 N 22478 s,$,-, 22479 : loop 22480 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 22481 t loop 22482 s,-$,, 22483 s,^['$as_cr_digits']*\n,, 22484 ' >$as_me.lineno && 22485 chmod +x $as_me.lineno || 22486 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 22487echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 22488 { (exit 1); exit 1; }; } 22489 22490 # Don't try to exec as it changes $[0], causing all sort of problems 22491 # (the dirname of $[0] is not the place where we might find the 22492 # original and so on. Autoconf is especially sensible to this). 22493 . ./$as_me.lineno 22494 # Exit status is that of the last command. 22495 exit 22496} 22497 22498 22499case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 22500 *c*,-n*) ECHO_N= ECHO_C=' 22501' ECHO_T=' ' ;; 22502 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 22503 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 22504esac 22505 22506if expr a : '\(a\)' >/dev/null 2>&1; then 22507 as_expr=expr 22508else 22509 as_expr=false 22510fi 22511 22512rm -f conf$$ conf$$.exe conf$$.file 22513echo >conf$$.file 22514if ln -s conf$$.file conf$$ 2>/dev/null; then 22515 # We could just check for DJGPP; but this test a) works b) is more generic 22516 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 22517 if test -f conf$$.exe; then 22518 # Don't use ln at all; we don't have any links 22519 as_ln_s='cp -p' 22520 else 22521 as_ln_s='ln -s' 22522 fi 22523elif ln conf$$.file conf$$ 2>/dev/null; then 22524 as_ln_s=ln 22525else 22526 as_ln_s='cp -p' 22527fi 22528rm -f conf$$ conf$$.exe conf$$.file 22529 22530if mkdir -p . 2>/dev/null; then 22531 as_mkdir_p=: 22532else 22533 test -d ./-p && rmdir ./-p 22534 as_mkdir_p=false 22535fi 22536 22537as_executable_p="test -f" 22538 22539# Sed expression to map a string onto a valid CPP name. 22540as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22541 22542# Sed expression to map a string onto a valid variable name. 22543as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22544 22545 22546# IFS 22547# We need space, tab and new line, in precisely that order. 22548as_nl=' 22549' 22550IFS=" $as_nl" 22551 22552# CDPATH. 22553$as_unset CDPATH 22554 22555exec 6>&1 22556 22557# Open the log real soon, to keep \$[0] and so on meaningful, and to 22558# report actual input values of CONFIG_FILES etc. instead of their 22559# values after options handling. Logging --version etc. is OK. 22560exec 5>>config.log 22561{ 22562 echo 22563 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX 22564@%:@@%:@ Running $as_me. @%:@@%:@ 22565_ASBOX 22566} >&5 22567cat >&5 <<_CSEOF 22568 22569This file was extended by $as_me, which was 22570generated by GNU Autoconf 2.59. Invocation command line was 22571 22572 CONFIG_FILES = $CONFIG_FILES 22573 CONFIG_HEADERS = $CONFIG_HEADERS 22574 CONFIG_LINKS = $CONFIG_LINKS 22575 CONFIG_COMMANDS = $CONFIG_COMMANDS 22576 $ $0 $@ 22577 22578_CSEOF 22579echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 22580echo >&5 22581_ACEOF 22582 22583# Files that config.status was made for. 22584if test -n "$ac_config_files"; then 22585 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 22586fi 22587 22588if test -n "$ac_config_headers"; then 22589 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 22590fi 22591 22592if test -n "$ac_config_links"; then 22593 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 22594fi 22595 22596if test -n "$ac_config_commands"; then 22597 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 22598fi 22599 22600cat >>$CONFIG_STATUS <<\_ACEOF 22601 22602ac_cs_usage="\ 22603\`$as_me' instantiates files from templates according to the 22604current configuration. 22605 22606Usage: $0 [OPTIONS] [FILE]... 22607 22608 -h, --help print this help, then exit 22609 -V, --version print version number, then exit 22610 -q, --quiet do not print progress messages 22611 -d, --debug don't remove temporary files 22612 --recheck update $as_me by reconfiguring in the same conditions 22613 --file=FILE[:TEMPLATE] 22614 instantiate the configuration file FILE 22615 --header=FILE[:TEMPLATE] 22616 instantiate the configuration header FILE 22617 22618Configuration files: 22619$config_files 22620 22621Configuration headers: 22622$config_headers 22623 22624Configuration commands: 22625$config_commands 22626 22627Report bugs to <bug-autoconf@gnu.org>." 22628_ACEOF 22629 22630cat >>$CONFIG_STATUS <<_ACEOF 22631ac_cs_version="\\ 22632config.status 22633configured by $0, generated by GNU Autoconf 2.59, 22634 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 22635 22636Copyright (C) 2003 Free Software Foundation, Inc. 22637This config.status script is free software; the Free Software Foundation 22638gives unlimited permission to copy, distribute and modify it." 22639srcdir=$srcdir 22640INSTALL="$INSTALL" 22641_ACEOF 22642 22643cat >>$CONFIG_STATUS <<\_ACEOF 22644# If no file are specified by the user, then we need to provide default 22645# value. By we need to know if files were specified by the user. 22646ac_need_defaults=: 22647while test $# != 0 22648do 22649 case $1 in 22650 --*=*) 22651 ac_option=`expr "x$1" : 'x\([^=]*\)='` 22652 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 22653 ac_shift=: 22654 ;; 22655 -*) 22656 ac_option=$1 22657 ac_optarg=$2 22658 ac_shift=shift 22659 ;; 22660 *) # This is not an option, so the user has probably given explicit 22661 # arguments. 22662 ac_option=$1 22663 ac_need_defaults=false;; 22664 esac 22665 22666 case $ac_option in 22667 # Handling of the options. 22668_ACEOF 22669cat >>$CONFIG_STATUS <<\_ACEOF 22670 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22671 ac_cs_recheck=: ;; 22672 --version | --vers* | -V ) 22673 echo "$ac_cs_version"; exit 0 ;; 22674 --he | --h) 22675 # Conflict between --help and --header 22676 { { echo "$as_me:$LINENO: error: ambiguous option: $1 22677Try \`$0 --help' for more information." >&5 22678echo "$as_me: error: ambiguous option: $1 22679Try \`$0 --help' for more information." >&2;} 22680 { (exit 1); exit 1; }; };; 22681 --help | --hel | -h ) 22682 echo "$ac_cs_usage"; exit 0 ;; 22683 --debug | --d* | -d ) 22684 debug=: ;; 22685 --file | --fil | --fi | --f ) 22686 $ac_shift 22687 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 22688 ac_need_defaults=false;; 22689 --header | --heade | --head | --hea ) 22690 $ac_shift 22691 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 22692 ac_need_defaults=false;; 22693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22694 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22695 ac_cs_silent=: ;; 22696 22697 # This is an error. 22698 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 22699Try \`$0 --help' for more information." >&5 22700echo "$as_me: error: unrecognized option: $1 22701Try \`$0 --help' for more information." >&2;} 22702 { (exit 1); exit 1; }; } ;; 22703 22704 *) ac_config_targets="$ac_config_targets $1" ;; 22705 22706 esac 22707 shift 22708done 22709 22710ac_configure_extra_args= 22711 22712if $ac_cs_silent; then 22713 exec 6>/dev/null 22714 ac_configure_extra_args="$ac_configure_extra_args --silent" 22715fi 22716 22717_ACEOF 22718cat >>$CONFIG_STATUS <<_ACEOF 22719if \$ac_cs_recheck; then 22720 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 22721 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22722fi 22723 22724_ACEOF 22725 22726cat >>$CONFIG_STATUS <<_ACEOF 22727# 22728# INIT-COMMANDS section. 22729# 22730 22731AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 22732 22733 22734_ACEOF 22735 22736 22737 22738cat >>$CONFIG_STATUS <<\_ACEOF 22739for ac_config_target in $ac_config_targets 22740do 22741 case "$ac_config_target" in 22742 # Handling of arguments. 22743 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22744 "libmcrypt.spec" ) CONFIG_FILES="$CONFIG_FILES libmcrypt.spec" ;; 22745 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 22746 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 22747 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 22748 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 22749 "modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; 22750 "modules/modes/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/modes/Makefile" ;; 22751 "modules/algorithms/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/algorithms/Makefile" ;; 22752 "lib/mcrypt.h" ) CONFIG_FILES="$CONFIG_FILES lib/mcrypt.h" ;; 22753 "lib/libmcrypt-config" ) CONFIG_FILES="$CONFIG_FILES lib/libmcrypt-config" ;; 22754 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22755 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 22756 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22757 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 22758echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 22759 { (exit 1); exit 1; }; };; 22760 esac 22761done 22762 22763# If the user did not use the arguments to specify the items to instantiate, 22764# then the envvar interface is used. Set only those that are not. 22765# We use the long form for the default assignment because of an extremely 22766# bizarre bug on SunOS 4.1.3. 22767if $ac_need_defaults; then 22768 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22769 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22770 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22771fi 22772 22773# Have a temporary directory for convenience. Make it in the build tree 22774# simply because there is no reason to put it here, and in addition, 22775# creating and moving files from /tmp can sometimes cause problems. 22776# Create a temporary directory, and hook for its removal unless debugging. 22777$debug || 22778{ 22779 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 22780 trap '{ (exit 1); exit 1; }' 1 2 13 15 22781} 22782 22783# Create a (secure) tmp directory for tmp files. 22784 22785{ 22786 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 22787 test -n "$tmp" && test -d "$tmp" 22788} || 22789{ 22790 tmp=./confstat$$-$RANDOM 22791 (umask 077 && mkdir $tmp) 22792} || 22793{ 22794 echo "$me: cannot create a temporary directory in ." >&2 22795 { (exit 1); exit 1; } 22796} 22797 22798_ACEOF 22799 22800cat >>$CONFIG_STATUS <<_ACEOF 22801 22802# 22803# CONFIG_FILES section. 22804# 22805 22806# No need to generate the scripts if there are no CONFIG_FILES. 22807# This happens for instance when ./config.status config.h 22808if test -n "\$CONFIG_FILES"; then 22809 # Protect against being on the right side of a sed subst in config.status. 22810 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 22811 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 22812s,@SHELL@,$SHELL,;t t 22813s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 22814s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 22815s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 22816s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 22817s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 22818s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 22819s,@exec_prefix@,$exec_prefix,;t t 22820s,@prefix@,$prefix,;t t 22821s,@program_transform_name@,$program_transform_name,;t t 22822s,@bindir@,$bindir,;t t 22823s,@sbindir@,$sbindir,;t t 22824s,@libexecdir@,$libexecdir,;t t 22825s,@datadir@,$datadir,;t t 22826s,@sysconfdir@,$sysconfdir,;t t 22827s,@sharedstatedir@,$sharedstatedir,;t t 22828s,@localstatedir@,$localstatedir,;t t 22829s,@libdir@,$libdir,;t t 22830s,@includedir@,$includedir,;t t 22831s,@oldincludedir@,$oldincludedir,;t t 22832s,@infodir@,$infodir,;t t 22833s,@mandir@,$mandir,;t t 22834s,@build_alias@,$build_alias,;t t 22835s,@host_alias@,$host_alias,;t t 22836s,@target_alias@,$target_alias,;t t 22837s,@DEFS@,$DEFS,;t t 22838s,@ECHO_C@,$ECHO_C,;t t 22839s,@ECHO_N@,$ECHO_N,;t t 22840s,@ECHO_T@,$ECHO_T,;t t 22841s,@LIBS@,$LIBS,;t t 22842s,@build@,$build,;t t 22843s,@build_cpu@,$build_cpu,;t t 22844s,@build_vendor@,$build_vendor,;t t 22845s,@build_os@,$build_os,;t t 22846s,@host@,$host,;t t 22847s,@host_cpu@,$host_cpu,;t t 22848s,@host_vendor@,$host_vendor,;t t 22849s,@host_os@,$host_os,;t t 22850s,@target@,$target,;t t 22851s,@target_cpu@,$target_cpu,;t t 22852s,@target_vendor@,$target_vendor,;t t 22853s,@target_os@,$target_os,;t t 22854s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 22855s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 22856s,@INSTALL_DATA@,$INSTALL_DATA,;t t 22857s,@CYGPATH_W@,$CYGPATH_W,;t t 22858s,@PACKAGE@,$PACKAGE,;t t 22859s,@VERSION@,$VERSION,;t t 22860s,@ACLOCAL@,$ACLOCAL,;t t 22861s,@AUTOCONF@,$AUTOCONF,;t t 22862s,@AUTOMAKE@,$AUTOMAKE,;t t 22863s,@AUTOHEADER@,$AUTOHEADER,;t t 22864s,@MAKEINFO@,$MAKEINFO,;t t 22865s,@install_sh@,$install_sh,;t t 22866s,@STRIP@,$STRIP,;t t 22867s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 22868s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 22869s,@mkdir_p@,$mkdir_p,;t t 22870s,@AWK@,$AWK,;t t 22871s,@SET_MAKE@,$SET_MAKE,;t t 22872s,@am__leading_dot@,$am__leading_dot,;t t 22873s,@AMTAR@,$AMTAR,;t t 22874s,@am__tar@,$am__tar,;t t 22875s,@am__untar@,$am__untar,;t t 22876s,@CC@,$CC,;t t 22877s,@CFLAGS@,$CFLAGS,;t t 22878s,@LDFLAGS@,$LDFLAGS,;t t 22879s,@CPPFLAGS@,$CPPFLAGS,;t t 22880s,@ac_ct_CC@,$ac_ct_CC,;t t 22881s,@EXEEXT@,$EXEEXT,;t t 22882s,@OBJEXT@,$OBJEXT,;t t 22883s,@DEPDIR@,$DEPDIR,;t t 22884s,@am__include@,$am__include,;t t 22885s,@am__quote@,$am__quote,;t t 22886s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 22887s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 22888s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 22889s,@CCDEPMODE@,$CCDEPMODE,;t t 22890s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 22891s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 22892s,@LN_S@,$LN_S,;t t 22893s,@INCLTDL@,$INCLTDL,;t t 22894s,@LIBLTDL@,$LIBLTDL,;t t 22895s,@LIBLTDL_DIR@,$LIBLTDL_DIR,;t t 22896s,@subdirs@,$subdirs,;t t 22897s,@INSTALL_ALGORITHM_MODULES@,$INSTALL_ALGORITHM_MODULES,;t t 22898s,@INSTALL_MODE_MODULES@,$INSTALL_MODE_MODULES,;t t 22899s,@NOINSTALL_ALGORITHM_MODULES@,$NOINSTALL_ALGORITHM_MODULES,;t t 22900s,@NOINSTALL_MODE_MODULES@,$NOINSTALL_MODE_MODULES,;t t 22901s,@EXTRA_ALGOS@,$EXTRA_ALGOS,;t t 22902s,@EXTRA_OBJECTS@,$EXTRA_OBJECTS,;t t 22903s,@LIBMCRYPT_MAJOR_VERSION@,$LIBMCRYPT_MAJOR_VERSION,;t t 22904s,@LIBMCRYPT_MINOR_VERSION@,$LIBMCRYPT_MINOR_VERSION,;t t 22905s,@LIBMCRYPT_MICRO_VERSION@,$LIBMCRYPT_MICRO_VERSION,;t t 22906s,@LIBMCRYPT_VERSION@,$LIBMCRYPT_VERSION,;t t 22907s,@LIBMCRYPT_MOST_RECENT_INTERFACE@,$LIBMCRYPT_MOST_RECENT_INTERFACE,;t t 22908s,@LIBMCRYPT_CURRENT_INTERFACE_IMPLEMENTATION_NUMBER@,$LIBMCRYPT_CURRENT_INTERFACE_IMPLEMENTATION_NUMBER,;t t 22909s,@LIBMCRYPT_OLDEST_INTERFACE@,$LIBMCRYPT_OLDEST_INTERFACE,;t t 22910s,@LT_CURRENT@,$LT_CURRENT,;t t 22911s,@LT_REVISION@,$LT_REVISION,;t t 22912s,@LT_AGE@,$LT_AGE,;t t 22913s,@CPP@,$CPP,;t t 22914s,@EGREP@,$EGREP,;t t 22915s,@SED@,$SED,;t t 22916s,@ECHO@,$ECHO,;t t 22917s,@AR@,$AR,;t t 22918s,@ac_ct_AR@,$ac_ct_AR,;t t 22919s,@RANLIB@,$RANLIB,;t t 22920s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 22921s,@DLLTOOL@,$DLLTOOL,;t t 22922s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t 22923s,@AS@,$AS,;t t 22924s,@ac_ct_AS@,$ac_ct_AS,;t t 22925s,@OBJDUMP@,$OBJDUMP,;t t 22926s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t 22927s,@CXX@,$CXX,;t t 22928s,@CXXFLAGS@,$CXXFLAGS,;t t 22929s,@ac_ct_CXX@,$ac_ct_CXX,;t t 22930s,@CXXDEPMODE@,$CXXDEPMODE,;t t 22931s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 22932s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 22933s,@CXXCPP@,$CXXCPP,;t t 22934s,@F77@,$F77,;t t 22935s,@FFLAGS@,$FFLAGS,;t t 22936s,@ac_ct_F77@,$ac_ct_F77,;t t 22937s,@LIBTOOL@,$LIBTOOL,;t t 22938s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t 22939s,@LIBMCRYPT_LIBS@,$LIBMCRYPT_LIBS,;t t 22940s,@LIBMCRYPT_CFLAGS@,$LIBMCRYPT_CFLAGS,;t t 22941s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t 22942s,@LTLIBOBJS@,$LTLIBOBJS,;t t 22943CEOF 22944 22945_ACEOF 22946 22947 cat >>$CONFIG_STATUS <<\_ACEOF 22948 # Split the substitutions into bite-sized pieces for seds with 22949 # small command number limits, like on Digital OSF/1 and HP-UX. 22950 ac_max_sed_lines=48 22951 ac_sed_frag=1 # Number of current file. 22952 ac_beg=1 # First line for current file. 22953 ac_end=$ac_max_sed_lines # Line after last line for current file. 22954 ac_more_lines=: 22955 ac_sed_cmds= 22956 while $ac_more_lines; do 22957 if test $ac_beg -gt 1; then 22958 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 22959 else 22960 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 22961 fi 22962 if test ! -s $tmp/subs.frag; then 22963 ac_more_lines=false 22964 else 22965 # The purpose of the label and of the branching condition is to 22966 # speed up the sed processing (if there are no `@' at all, there 22967 # is no need to browse any of the substitutions). 22968 # These are the two extra sed commands mentioned above. 22969 (echo ':t 22970 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 22971 if test -z "$ac_sed_cmds"; then 22972 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 22973 else 22974 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 22975 fi 22976 ac_sed_frag=`expr $ac_sed_frag + 1` 22977 ac_beg=$ac_end 22978 ac_end=`expr $ac_end + $ac_max_sed_lines` 22979 fi 22980 done 22981 if test -z "$ac_sed_cmds"; then 22982 ac_sed_cmds=cat 22983 fi 22984fi # test -n "$CONFIG_FILES" 22985 22986_ACEOF 22987cat >>$CONFIG_STATUS <<\_ACEOF 22988for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 22989 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 22990 case $ac_file in 22991 - | *:- | *:-:* ) # input from stdin 22992 cat >$tmp/stdin 22993 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 22994 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 22995 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 22996 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 22997 * ) ac_file_in=$ac_file.in ;; 22998 esac 22999 23000 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 23001 ac_dir=`(dirname "$ac_file") 2>/dev/null || 23002$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23003 X"$ac_file" : 'X\(//\)[^/]' \| \ 23004 X"$ac_file" : 'X\(//\)$' \| \ 23005 X"$ac_file" : 'X\(/\)' \| \ 23006 . : '\(.\)' 2>/dev/null || 23007echo X"$ac_file" | 23008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23009 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23010 /^X\(\/\/\)$/{ s//\1/; q; } 23011 /^X\(\/\).*/{ s//\1/; q; } 23012 s/.*/./; q'` 23013 { if $as_mkdir_p; then 23014 mkdir -p "$ac_dir" 23015 else 23016 as_dir="$ac_dir" 23017 as_dirs= 23018 while test ! -d "$as_dir"; do 23019 as_dirs="$as_dir $as_dirs" 23020 as_dir=`(dirname "$as_dir") 2>/dev/null || 23021$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23022 X"$as_dir" : 'X\(//\)[^/]' \| \ 23023 X"$as_dir" : 'X\(//\)$' \| \ 23024 X"$as_dir" : 'X\(/\)' \| \ 23025 . : '\(.\)' 2>/dev/null || 23026echo X"$as_dir" | 23027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23028 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23029 /^X\(\/\/\)$/{ s//\1/; q; } 23030 /^X\(\/\).*/{ s//\1/; q; } 23031 s/.*/./; q'` 23032 done 23033 test ! -n "$as_dirs" || mkdir $as_dirs 23034 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 23035echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 23036 { (exit 1); exit 1; }; }; } 23037 23038 ac_builddir=. 23039 23040if test "$ac_dir" != .; then 23041 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23042 # A "../" for each directory in $ac_dir_suffix. 23043 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 23044else 23045 ac_dir_suffix= ac_top_builddir= 23046fi 23047 23048case $srcdir in 23049 .) # No --srcdir option. We are building in place. 23050 ac_srcdir=. 23051 if test -z "$ac_top_builddir"; then 23052 ac_top_srcdir=. 23053 else 23054 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 23055 fi ;; 23056 [\\/]* | ?:[\\/]* ) # Absolute path. 23057 ac_srcdir=$srcdir$ac_dir_suffix; 23058 ac_top_srcdir=$srcdir ;; 23059 *) # Relative path. 23060 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 23061 ac_top_srcdir=$ac_top_builddir$srcdir ;; 23062esac 23063 23064# Do not use `cd foo && pwd` to compute absolute paths, because 23065# the directories may not exist. 23066case `pwd` in 23067.) ac_abs_builddir="$ac_dir";; 23068*) 23069 case "$ac_dir" in 23070 .) ac_abs_builddir=`pwd`;; 23071 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 23072 *) ac_abs_builddir=`pwd`/"$ac_dir";; 23073 esac;; 23074esac 23075case $ac_abs_builddir in 23076.) ac_abs_top_builddir=${ac_top_builddir}.;; 23077*) 23078 case ${ac_top_builddir}. in 23079 .) ac_abs_top_builddir=$ac_abs_builddir;; 23080 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 23081 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 23082 esac;; 23083esac 23084case $ac_abs_builddir in 23085.) ac_abs_srcdir=$ac_srcdir;; 23086*) 23087 case $ac_srcdir in 23088 .) ac_abs_srcdir=$ac_abs_builddir;; 23089 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 23090 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 23091 esac;; 23092esac 23093case $ac_abs_builddir in 23094.) ac_abs_top_srcdir=$ac_top_srcdir;; 23095*) 23096 case $ac_top_srcdir in 23097 .) ac_abs_top_srcdir=$ac_abs_builddir;; 23098 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 23099 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 23100 esac;; 23101esac 23102 23103 23104 case $INSTALL in 23105 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23106 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 23107 esac 23108 23109 if test x"$ac_file" != x-; then 23110 { echo "$as_me:$LINENO: creating $ac_file" >&5 23111echo "$as_me: creating $ac_file" >&6;} 23112 rm -f "$ac_file" 23113 fi 23114 # Let's still pretend it is `configure' which instantiates (i.e., don't 23115 # use $as_me), people would be surprised to read: 23116 # /* config.h. Generated by config.status. */ 23117 if test x"$ac_file" = x-; then 23118 configure_input= 23119 else 23120 configure_input="$ac_file. " 23121 fi 23122 configure_input=$configure_input"Generated from `echo $ac_file_in | 23123 sed 's,.*/,,'` by configure." 23124 23125 # First look for the input files in the build tree, otherwise in the 23126 # src tree. 23127 ac_file_inputs=`IFS=: 23128 for f in $ac_file_in; do 23129 case $f in 23130 -) echo $tmp/stdin ;; 23131 [\\/$]*) 23132 # Absolute (can't be DOS-style, as IFS=:) 23133 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23134echo "$as_me: error: cannot find input file: $f" >&2;} 23135 { (exit 1); exit 1; }; } 23136 echo "$f";; 23137 *) # Relative 23138 if test -f "$f"; then 23139 # Build tree 23140 echo "$f" 23141 elif test -f "$srcdir/$f"; then 23142 # Source tree 23143 echo "$srcdir/$f" 23144 else 23145 # /dev/null tree 23146 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23147echo "$as_me: error: cannot find input file: $f" >&2;} 23148 { (exit 1); exit 1; }; } 23149 fi;; 23150 esac 23151 done` || { (exit 1); exit 1; } 23152_ACEOF 23153cat >>$CONFIG_STATUS <<_ACEOF 23154 sed "$ac_vpsub 23155$extrasub 23156_ACEOF 23157cat >>$CONFIG_STATUS <<\_ACEOF 23158:t 23159/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23160s,@configure_input@,$configure_input,;t t 23161s,@srcdir@,$ac_srcdir,;t t 23162s,@abs_srcdir@,$ac_abs_srcdir,;t t 23163s,@top_srcdir@,$ac_top_srcdir,;t t 23164s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 23165s,@builddir@,$ac_builddir,;t t 23166s,@abs_builddir@,$ac_abs_builddir,;t t 23167s,@top_builddir@,$ac_top_builddir,;t t 23168s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 23169s,@INSTALL@,$ac_INSTALL,;t t 23170" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 23171 rm -f $tmp/stdin 23172 if test x"$ac_file" != x-; then 23173 mv $tmp/out $ac_file 23174 else 23175 cat $tmp/out 23176 rm -f $tmp/out 23177 fi 23178 23179done 23180_ACEOF 23181cat >>$CONFIG_STATUS <<\_ACEOF 23182 23183# 23184# CONFIG_HEADER section. 23185# 23186 23187# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 23188# NAME is the cpp macro being defined and VALUE is the value it is being given. 23189# 23190# ac_d sets the value in "#define NAME VALUE" lines. 23191ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 23192ac_dB='[ ].*$,\1#\2' 23193ac_dC=' ' 23194ac_dD=',;t' 23195# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 23196ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 23197ac_uB='$,\1#\2define\3' 23198ac_uC=' ' 23199ac_uD=',;t' 23200 23201for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 23202 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 23203 case $ac_file in 23204 - | *:- | *:-:* ) # input from stdin 23205 cat >$tmp/stdin 23206 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23207 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23208 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23209 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23210 * ) ac_file_in=$ac_file.in ;; 23211 esac 23212 23213 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 23214echo "$as_me: creating $ac_file" >&6;} 23215 23216 # First look for the input files in the build tree, otherwise in the 23217 # src tree. 23218 ac_file_inputs=`IFS=: 23219 for f in $ac_file_in; do 23220 case $f in 23221 -) echo $tmp/stdin ;; 23222 [\\/$]*) 23223 # Absolute (can't be DOS-style, as IFS=:) 23224 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23225echo "$as_me: error: cannot find input file: $f" >&2;} 23226 { (exit 1); exit 1; }; } 23227 # Do quote $f, to prevent DOS paths from being IFS'd. 23228 echo "$f";; 23229 *) # Relative 23230 if test -f "$f"; then 23231 # Build tree 23232 echo "$f" 23233 elif test -f "$srcdir/$f"; then 23234 # Source tree 23235 echo "$srcdir/$f" 23236 else 23237 # /dev/null tree 23238 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23239echo "$as_me: error: cannot find input file: $f" >&2;} 23240 { (exit 1); exit 1; }; } 23241 fi;; 23242 esac 23243 done` || { (exit 1); exit 1; } 23244 # Remove the trailing spaces. 23245 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 23246 23247_ACEOF 23248 23249# Transform confdefs.h into two sed scripts, `conftest.defines' and 23250# `conftest.undefs', that substitutes the proper values into 23251# config.h.in to produce config.h. The first handles `#define' 23252# templates, and the second `#undef' templates. 23253# And first: Protect against being on the right side of a sed subst in 23254# config.status. Protect against being in an unquoted here document 23255# in config.status. 23256rm -f conftest.defines conftest.undefs 23257# Using a here document instead of a string reduces the quoting nightmare. 23258# Putting comments in sed scripts is not portable. 23259# 23260# `end' is used to avoid that the second main sed command (meant for 23261# 0-ary CPP macros) applies to n-ary macro definitions. 23262# See the Autoconf documentation for `clear'. 23263cat >confdef2sed.sed <<\_ACEOF 23264s/[\\&,]/\\&/g 23265s,[\\$`],\\&,g 23266t clear 23267: clear 23268s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 23269t end 23270s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 23271: end 23272_ACEOF 23273# If some macros were called several times there might be several times 23274# the same #defines, which is useless. Nevertheless, we may not want to 23275# sort them, since we want the *last* AC-DEFINE to be honored. 23276uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 23277sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 23278rm -f confdef2sed.sed 23279 23280# This sed command replaces #undef with comments. This is necessary, for 23281# example, in the case of _POSIX_SOURCE, which is predefined and required 23282# on some systems where configure will not decide to define it. 23283cat >>conftest.undefs <<\_ACEOF 23284s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 23285_ACEOF 23286 23287# Break up conftest.defines because some shells have a limit on the size 23288# of here documents, and old seds have small limits too (100 cmds). 23289echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 23290echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 23291echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 23292echo ' :' >>$CONFIG_STATUS 23293rm -f conftest.tail 23294while grep . conftest.defines >/dev/null 23295do 23296 # Write a limited-size here document to $tmp/defines.sed. 23297 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 23298 # Speed up: don't consider the non `#define' lines. 23299 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 23300 # Work around the forget-to-reset-the-flag bug. 23301 echo 't clr' >>$CONFIG_STATUS 23302 echo ': clr' >>$CONFIG_STATUS 23303 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 23304 echo 'CEOF 23305 sed -f $tmp/defines.sed $tmp/in >$tmp/out 23306 rm -f $tmp/in 23307 mv $tmp/out $tmp/in 23308' >>$CONFIG_STATUS 23309 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 23310 rm -f conftest.defines 23311 mv conftest.tail conftest.defines 23312done 23313rm -f conftest.defines 23314echo ' fi # grep' >>$CONFIG_STATUS 23315echo >>$CONFIG_STATUS 23316 23317# Break up conftest.undefs because some shells have a limit on the size 23318# of here documents, and old seds have small limits too (100 cmds). 23319echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 23320rm -f conftest.tail 23321while grep . conftest.undefs >/dev/null 23322do 23323 # Write a limited-size here document to $tmp/undefs.sed. 23324 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 23325 # Speed up: don't consider the non `#undef' 23326 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 23327 # Work around the forget-to-reset-the-flag bug. 23328 echo 't clr' >>$CONFIG_STATUS 23329 echo ': clr' >>$CONFIG_STATUS 23330 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 23331 echo 'CEOF 23332 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 23333 rm -f $tmp/in 23334 mv $tmp/out $tmp/in 23335' >>$CONFIG_STATUS 23336 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 23337 rm -f conftest.undefs 23338 mv conftest.tail conftest.undefs 23339done 23340rm -f conftest.undefs 23341 23342cat >>$CONFIG_STATUS <<\_ACEOF 23343 # Let's still pretend it is `configure' which instantiates (i.e., don't 23344 # use $as_me), people would be surprised to read: 23345 # /* config.h. Generated by config.status. */ 23346 if test x"$ac_file" = x-; then 23347 echo "/* Generated by configure. */" >$tmp/config.h 23348 else 23349 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 23350 fi 23351 cat $tmp/in >>$tmp/config.h 23352 rm -f $tmp/in 23353 if test x"$ac_file" != x-; then 23354 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 23355 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 23356echo "$as_me: $ac_file is unchanged" >&6;} 23357 else 23358 ac_dir=`(dirname "$ac_file") 2>/dev/null || 23359$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23360 X"$ac_file" : 'X\(//\)[^/]' \| \ 23361 X"$ac_file" : 'X\(//\)$' \| \ 23362 X"$ac_file" : 'X\(/\)' \| \ 23363 . : '\(.\)' 2>/dev/null || 23364echo X"$ac_file" | 23365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23366 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23367 /^X\(\/\/\)$/{ s//\1/; q; } 23368 /^X\(\/\).*/{ s//\1/; q; } 23369 s/.*/./; q'` 23370 { if $as_mkdir_p; then 23371 mkdir -p "$ac_dir" 23372 else 23373 as_dir="$ac_dir" 23374 as_dirs= 23375 while test ! -d "$as_dir"; do 23376 as_dirs="$as_dir $as_dirs" 23377 as_dir=`(dirname "$as_dir") 2>/dev/null || 23378$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23379 X"$as_dir" : 'X\(//\)[^/]' \| \ 23380 X"$as_dir" : 'X\(//\)$' \| \ 23381 X"$as_dir" : 'X\(/\)' \| \ 23382 . : '\(.\)' 2>/dev/null || 23383echo X"$as_dir" | 23384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23385 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23386 /^X\(\/\/\)$/{ s//\1/; q; } 23387 /^X\(\/\).*/{ s//\1/; q; } 23388 s/.*/./; q'` 23389 done 23390 test ! -n "$as_dirs" || mkdir $as_dirs 23391 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 23392echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 23393 { (exit 1); exit 1; }; }; } 23394 23395 rm -f $ac_file 23396 mv $tmp/config.h $ac_file 23397 fi 23398 else 23399 cat $tmp/config.h 23400 rm -f $tmp/config.h 23401 fi 23402# Compute $ac_file's index in $config_headers. 23403_am_stamp_count=1 23404for _am_header in $config_headers :; do 23405 case $_am_header in 23406 $ac_file | $ac_file:* ) 23407 break ;; 23408 * ) 23409 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23410 esac 23411done 23412echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 23413$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23414 X$ac_file : 'X\(//\)[^/]' \| \ 23415 X$ac_file : 'X\(//\)$' \| \ 23416 X$ac_file : 'X\(/\)' \| \ 23417 . : '\(.\)' 2>/dev/null || 23418echo X$ac_file | 23419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23420 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23421 /^X\(\/\/\)$/{ s//\1/; q; } 23422 /^X\(\/\).*/{ s//\1/; q; } 23423 s/.*/./; q'`/stamp-h$_am_stamp_count 23424done 23425_ACEOF 23426cat >>$CONFIG_STATUS <<\_ACEOF 23427 23428# 23429# CONFIG_COMMANDS section. 23430# 23431for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 23432 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 23433 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 23434 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 23435$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23436 X"$ac_dest" : 'X\(//\)[^/]' \| \ 23437 X"$ac_dest" : 'X\(//\)$' \| \ 23438 X"$ac_dest" : 'X\(/\)' \| \ 23439 . : '\(.\)' 2>/dev/null || 23440echo X"$ac_dest" | 23441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23442 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23443 /^X\(\/\/\)$/{ s//\1/; q; } 23444 /^X\(\/\).*/{ s//\1/; q; } 23445 s/.*/./; q'` 23446 { if $as_mkdir_p; then 23447 mkdir -p "$ac_dir" 23448 else 23449 as_dir="$ac_dir" 23450 as_dirs= 23451 while test ! -d "$as_dir"; do 23452 as_dirs="$as_dir $as_dirs" 23453 as_dir=`(dirname "$as_dir") 2>/dev/null || 23454$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23455 X"$as_dir" : 'X\(//\)[^/]' \| \ 23456 X"$as_dir" : 'X\(//\)$' \| \ 23457 X"$as_dir" : 'X\(/\)' \| \ 23458 . : '\(.\)' 2>/dev/null || 23459echo X"$as_dir" | 23460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23461 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23462 /^X\(\/\/\)$/{ s//\1/; q; } 23463 /^X\(\/\).*/{ s//\1/; q; } 23464 s/.*/./; q'` 23465 done 23466 test ! -n "$as_dirs" || mkdir $as_dirs 23467 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 23468echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 23469 { (exit 1); exit 1; }; }; } 23470 23471 ac_builddir=. 23472 23473if test "$ac_dir" != .; then 23474 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23475 # A "../" for each directory in $ac_dir_suffix. 23476 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 23477else 23478 ac_dir_suffix= ac_top_builddir= 23479fi 23480 23481case $srcdir in 23482 .) # No --srcdir option. We are building in place. 23483 ac_srcdir=. 23484 if test -z "$ac_top_builddir"; then 23485 ac_top_srcdir=. 23486 else 23487 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 23488 fi ;; 23489 [\\/]* | ?:[\\/]* ) # Absolute path. 23490 ac_srcdir=$srcdir$ac_dir_suffix; 23491 ac_top_srcdir=$srcdir ;; 23492 *) # Relative path. 23493 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 23494 ac_top_srcdir=$ac_top_builddir$srcdir ;; 23495esac 23496 23497# Do not use `cd foo && pwd` to compute absolute paths, because 23498# the directories may not exist. 23499case `pwd` in 23500.) ac_abs_builddir="$ac_dir";; 23501*) 23502 case "$ac_dir" in 23503 .) ac_abs_builddir=`pwd`;; 23504 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 23505 *) ac_abs_builddir=`pwd`/"$ac_dir";; 23506 esac;; 23507esac 23508case $ac_abs_builddir in 23509.) ac_abs_top_builddir=${ac_top_builddir}.;; 23510*) 23511 case ${ac_top_builddir}. in 23512 .) ac_abs_top_builddir=$ac_abs_builddir;; 23513 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 23514 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 23515 esac;; 23516esac 23517case $ac_abs_builddir in 23518.) ac_abs_srcdir=$ac_srcdir;; 23519*) 23520 case $ac_srcdir in 23521 .) ac_abs_srcdir=$ac_abs_builddir;; 23522 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 23523 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 23524 esac;; 23525esac 23526case $ac_abs_builddir in 23527.) ac_abs_top_srcdir=$ac_top_srcdir;; 23528*) 23529 case $ac_top_srcdir in 23530 .) ac_abs_top_srcdir=$ac_abs_builddir;; 23531 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 23532 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 23533 esac;; 23534esac 23535 23536 23537 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 23538echo "$as_me: executing $ac_dest commands" >&6;} 23539 case $ac_dest in 23540 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 23541 # Strip MF so we end up with the name of the file. 23542 mf=`echo "$mf" | sed -e 's/:.*$//'` 23543 # Check whether this is an Automake generated Makefile or not. 23544 # We used to match only the files named `Makefile.in', but 23545 # some people rename them; so instead we look at the file content. 23546 # Grep'ing the first line is not enough: some people post-process 23547 # each Makefile.in and add a new line on top of each file to say so. 23548 # So let's grep whole file. 23549 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 23550 dirpart=`(dirname "$mf") 2>/dev/null || 23551$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23552 X"$mf" : 'X\(//\)[^/]' \| \ 23553 X"$mf" : 'X\(//\)$' \| \ 23554 X"$mf" : 'X\(/\)' \| \ 23555 . : '\(.\)' 2>/dev/null || 23556echo X"$mf" | 23557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23558 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23559 /^X\(\/\/\)$/{ s//\1/; q; } 23560 /^X\(\/\).*/{ s//\1/; q; } 23561 s/.*/./; q'` 23562 else 23563 continue 23564 fi 23565 # Extract the definition of DEPDIR, am__include, and am__quote 23566 # from the Makefile without running `make'. 23567 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 23568 test -z "$DEPDIR" && continue 23569 am__include=`sed -n 's/^am__include = //p' < "$mf"` 23570 test -z "am__include" && continue 23571 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 23572 # When using ansi2knr, U may be empty or an underscore; expand it 23573 U=`sed -n 's/^U = //p' < "$mf"` 23574 # Find all dependency output files, they are included files with 23575 # $(DEPDIR) in their names. We invoke sed twice because it is the 23576 # simplest approach to changing $(DEPDIR) to its actual value in the 23577 # expansion. 23578 for file in `sed -n " 23579 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 23580 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 23581 # Make sure the directory exists. 23582 test -f "$dirpart/$file" && continue 23583 fdir=`(dirname "$file") 2>/dev/null || 23584$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23585 X"$file" : 'X\(//\)[^/]' \| \ 23586 X"$file" : 'X\(//\)$' \| \ 23587 X"$file" : 'X\(/\)' \| \ 23588 . : '\(.\)' 2>/dev/null || 23589echo X"$file" | 23590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23591 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23592 /^X\(\/\/\)$/{ s//\1/; q; } 23593 /^X\(\/\).*/{ s//\1/; q; } 23594 s/.*/./; q'` 23595 { if $as_mkdir_p; then 23596 mkdir -p $dirpart/$fdir 23597 else 23598 as_dir=$dirpart/$fdir 23599 as_dirs= 23600 while test ! -d "$as_dir"; do 23601 as_dirs="$as_dir $as_dirs" 23602 as_dir=`(dirname "$as_dir") 2>/dev/null || 23603$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23604 X"$as_dir" : 'X\(//\)[^/]' \| \ 23605 X"$as_dir" : 'X\(//\)$' \| \ 23606 X"$as_dir" : 'X\(/\)' \| \ 23607 . : '\(.\)' 2>/dev/null || 23608echo X"$as_dir" | 23609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23610 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23611 /^X\(\/\/\)$/{ s//\1/; q; } 23612 /^X\(\/\).*/{ s//\1/; q; } 23613 s/.*/./; q'` 23614 done 23615 test ! -n "$as_dirs" || mkdir $as_dirs 23616 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 23617echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 23618 { (exit 1); exit 1; }; }; } 23619 23620 # echo "creating $dirpart/$file" 23621 echo '# dummy' > "$dirpart/$file" 23622 done 23623done 23624 ;; 23625 default-1 ) 23626 chmod +x lib/libmcrypt-config 23627 ;; 23628 esac 23629done 23630_ACEOF 23631 23632cat >>$CONFIG_STATUS <<\_ACEOF 23633 23634{ (exit 0); exit 0; } 23635_ACEOF 23636chmod +x $CONFIG_STATUS 23637ac_clean_files=$ac_clean_files_save 23638 23639 23640# configure is writing to config.log, and then calls config.status. 23641# config.status does its own redirection, appending to config.log. 23642# Unfortunately, on DOS this fails, as config.log is still kept open 23643# by configure, so config.status won't be able to write to it; its 23644# output is simply discarded. So we exec the FD to /dev/null, 23645# effectively closing config.log, so it can be properly (re)opened and 23646# appended to by config.status. When coming back to configure, we 23647# need to make the FD available again. 23648if test "$no_create" != yes; then 23649 ac_cs_success=: 23650 ac_config_status_args= 23651 test "$silent" = yes && 23652 ac_config_status_args="$ac_config_status_args --quiet" 23653 exec 5>/dev/null 23654 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23655 exec 5>>config.log 23656 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23657 # would make configure fail if this is the last instruction. 23658 $ac_cs_success || { (exit 1); exit 1; } 23659fi 23660 23661# 23662# CONFIG_SUBDIRS section. 23663# 23664if test "$no_recursion" != yes; then 23665 23666 # Remove --cache-file and --srcdir arguments so they do not pile up. 23667 ac_sub_configure_args= 23668 ac_prev= 23669 for ac_arg in $ac_configure_args; do 23670 if test -n "$ac_prev"; then 23671 ac_prev= 23672 continue 23673 fi 23674 case $ac_arg in 23675 -cache-file | --cache-file | --cache-fil | --cache-fi \ 23676 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 23677 ac_prev=cache_file ;; 23678 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 23679 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 23680 | --c=*) 23681 ;; 23682 --config-cache | -C) 23683 ;; 23684 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 23685 ac_prev=srcdir ;; 23686 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 23687 ;; 23688 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 23689 ac_prev=prefix ;; 23690 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 23691 ;; 23692 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; 23693 esac 23694 done 23695 23696 # Always prepend --prefix to ensure using the same prefix 23697 # in subdir configurations. 23698 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" 23699 23700 ac_popdir=`pwd` 23701 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 23702 23703 # Do not complain, so a configure script can configure whichever 23704 # parts of a large source tree are present. 23705 test -d $srcdir/$ac_dir || continue 23706 23707 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 23708echo "$as_me: configuring in $ac_dir" >&6;} 23709 { if $as_mkdir_p; then 23710 mkdir -p "$ac_dir" 23711 else 23712 as_dir="$ac_dir" 23713 as_dirs= 23714 while test ! -d "$as_dir"; do 23715 as_dirs="$as_dir $as_dirs" 23716 as_dir=`(dirname "$as_dir") 2>/dev/null || 23717$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23718 X"$as_dir" : 'X\(//\)[^/]' \| \ 23719 X"$as_dir" : 'X\(//\)$' \| \ 23720 X"$as_dir" : 'X\(/\)' \| \ 23721 . : '\(.\)' 2>/dev/null || 23722echo X"$as_dir" | 23723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23724 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23725 /^X\(\/\/\)$/{ s//\1/; q; } 23726 /^X\(\/\).*/{ s//\1/; q; } 23727 s/.*/./; q'` 23728 done 23729 test ! -n "$as_dirs" || mkdir $as_dirs 23730 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 23731echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 23732 { (exit 1); exit 1; }; }; } 23733 23734 ac_builddir=. 23735 23736if test "$ac_dir" != .; then 23737 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23738 # A "../" for each directory in $ac_dir_suffix. 23739 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 23740else 23741 ac_dir_suffix= ac_top_builddir= 23742fi 23743 23744case $srcdir in 23745 .) # No --srcdir option. We are building in place. 23746 ac_srcdir=. 23747 if test -z "$ac_top_builddir"; then 23748 ac_top_srcdir=. 23749 else 23750 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 23751 fi ;; 23752 [\\/]* | ?:[\\/]* ) # Absolute path. 23753 ac_srcdir=$srcdir$ac_dir_suffix; 23754 ac_top_srcdir=$srcdir ;; 23755 *) # Relative path. 23756 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 23757 ac_top_srcdir=$ac_top_builddir$srcdir ;; 23758esac 23759 23760# Do not use `cd foo && pwd` to compute absolute paths, because 23761# the directories may not exist. 23762case `pwd` in 23763.) ac_abs_builddir="$ac_dir";; 23764*) 23765 case "$ac_dir" in 23766 .) ac_abs_builddir=`pwd`;; 23767 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 23768 *) ac_abs_builddir=`pwd`/"$ac_dir";; 23769 esac;; 23770esac 23771case $ac_abs_builddir in 23772.) ac_abs_top_builddir=${ac_top_builddir}.;; 23773*) 23774 case ${ac_top_builddir}. in 23775 .) ac_abs_top_builddir=$ac_abs_builddir;; 23776 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 23777 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 23778 esac;; 23779esac 23780case $ac_abs_builddir in 23781.) ac_abs_srcdir=$ac_srcdir;; 23782*) 23783 case $ac_srcdir in 23784 .) ac_abs_srcdir=$ac_abs_builddir;; 23785 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 23786 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 23787 esac;; 23788esac 23789case $ac_abs_builddir in 23790.) ac_abs_top_srcdir=$ac_top_srcdir;; 23791*) 23792 case $ac_top_srcdir in 23793 .) ac_abs_top_srcdir=$ac_abs_builddir;; 23794 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 23795 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 23796 esac;; 23797esac 23798 23799 23800 cd $ac_dir 23801 23802 # Check for guested configure; otherwise get Cygnus style configure. 23803 if test -f $ac_srcdir/configure.gnu; then 23804 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" 23805 elif test -f $ac_srcdir/configure; then 23806 ac_sub_configure="$SHELL '$ac_srcdir/configure'" 23807 elif test -f $ac_srcdir/configure.in; then 23808 ac_sub_configure=$ac_configure 23809 else 23810 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 23811echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 23812 ac_sub_configure= 23813 fi 23814 23815 # The recursion is here. 23816 if test -n "$ac_sub_configure"; then 23817 # Make the cache file name correct relative to the subdirectory. 23818 case $cache_file in 23819 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 23820 *) # Relative path. 23821 ac_sub_cache_file=$ac_top_builddir$cache_file ;; 23822 esac 23823 23824 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 23825echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 23826 # The eval makes quoting arguments work. 23827 eval $ac_sub_configure $ac_sub_configure_args \ 23828 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || 23829 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 23830echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 23831 { (exit 1); exit 1; }; } 23832 fi 23833 23834 cd $ac_popdir 23835 done 23836fi 23837 23838 23839