1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for Hapy 0.0.8. 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 396# Name of the host. 397# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 398# so uname gets run too. 399ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 400 401exec 6>&1 402 403# 404# Initializations. 405# 406ac_default_prefix=/usr/local 407ac_config_libobj_dir=. 408cross_compiling=no 409subdirs= 410MFLAGS= 411MAKEFLAGS= 412SHELL=${CONFIG_SHELL-/bin/sh} 413 414# Maximum number of lines to put in a shell here document. 415# This variable seems obsolete. It should probably be removed, and 416# only ac_max_sed_lines should be used. 417: ${ac_max_here_lines=38} 418 419# Identity of this package. 420PACKAGE_NAME='Hapy' 421PACKAGE_TARNAME='Hapy' 422PACKAGE_VERSION='0.0.8' 423PACKAGE_STRING='Hapy 0.0.8' 424PACKAGE_BUGREPORT='' 425 426ac_unique_file="src/Pree.cc" 427ac_default_prefix=/usr/local 428# Factoring default headers for most tests. 429ac_includes_default="\ 430#include <stdio.h> 431#if HAVE_SYS_TYPES_H 432# include <sys/types.h> 433#endif 434#if HAVE_SYS_STAT_H 435# include <sys/stat.h> 436#endif 437#if STDC_HEADERS 438# include <stdlib.h> 439# include <stddef.h> 440#else 441# if HAVE_STDLIB_H 442# include <stdlib.h> 443# endif 444#endif 445#if HAVE_STRING_H 446# if !STDC_HEADERS && HAVE_MEMORY_H 447# include <memory.h> 448# endif 449# include <string.h> 450#endif 451#if HAVE_STRINGS_H 452# include <strings.h> 453#endif 454#if HAVE_INTTYPES_H 455# include <inttypes.h> 456#else 457# if HAVE_STDINT_H 458# include <stdint.h> 459# endif 460#endif 461#if HAVE_UNISTD_H 462# include <unistd.h> 463#endif" 464 465ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL LIBOBJS LTLIBOBJS' 466ac_subst_files='' 467 468# Initialize some variables set by options. 469ac_init_help= 470ac_init_version=false 471# The variables have the same names as the options, with 472# dashes changed to underlines. 473cache_file=/dev/null 474exec_prefix=NONE 475no_create= 476no_recursion= 477prefix=NONE 478program_prefix=NONE 479program_suffix=NONE 480program_transform_name=s,x,x, 481silent= 482site= 483srcdir= 484verbose= 485x_includes=NONE 486x_libraries=NONE 487 488# Installation directory options. 489# These are left unexpanded so users can "make install exec_prefix=/foo" 490# and all the variables that are supposed to be based on exec_prefix 491# by default will actually change. 492# Use braces instead of parens because sh, perl, etc. also accept them. 493bindir='${exec_prefix}/bin' 494sbindir='${exec_prefix}/sbin' 495libexecdir='${exec_prefix}/libexec' 496datadir='${prefix}/share' 497sysconfdir='${prefix}/etc' 498sharedstatedir='${prefix}/com' 499localstatedir='${prefix}/var' 500libdir='${exec_prefix}/lib' 501includedir='${prefix}/include' 502oldincludedir='/usr/include' 503infodir='${prefix}/info' 504mandir='${prefix}/man' 505 506ac_prev= 507for ac_option 508do 509 # If the previous option needs an argument, assign it. 510 if test -n "$ac_prev"; then 511 eval "$ac_prev=\$ac_option" 512 ac_prev= 513 continue 514 fi 515 516 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 517 518 # Accept the important Cygnus configure options, so we can diagnose typos. 519 520 case $ac_option in 521 522 -bindir | --bindir | --bindi | --bind | --bin | --bi) 523 ac_prev=bindir ;; 524 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 525 bindir=$ac_optarg ;; 526 527 -build | --build | --buil | --bui | --bu) 528 ac_prev=build_alias ;; 529 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 530 build_alias=$ac_optarg ;; 531 532 -cache-file | --cache-file | --cache-fil | --cache-fi \ 533 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 534 ac_prev=cache_file ;; 535 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 536 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 537 cache_file=$ac_optarg ;; 538 539 --config-cache | -C) 540 cache_file=config.cache ;; 541 542 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 543 ac_prev=datadir ;; 544 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 545 | --da=*) 546 datadir=$ac_optarg ;; 547 548 -disable-* | --disable-*) 549 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 550 # Reject names that are not valid shell variable names. 551 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 552 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 553 { (exit 1); exit 1; }; } 554 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 555 eval "enable_$ac_feature=no" ;; 556 557 -enable-* | --enable-*) 558 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 559 # Reject names that are not valid shell variable names. 560 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 561 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 562 { (exit 1); exit 1; }; } 563 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 564 case $ac_option in 565 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 566 *) ac_optarg=yes ;; 567 esac 568 eval "enable_$ac_feature='$ac_optarg'" ;; 569 570 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 571 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 572 | --exec | --exe | --ex) 573 ac_prev=exec_prefix ;; 574 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 575 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 576 | --exec=* | --exe=* | --ex=*) 577 exec_prefix=$ac_optarg ;; 578 579 -gas | --gas | --ga | --g) 580 # Obsolete; use --with-gas. 581 with_gas=yes ;; 582 583 -help | --help | --hel | --he | -h) 584 ac_init_help=long ;; 585 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 586 ac_init_help=recursive ;; 587 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 588 ac_init_help=short ;; 589 590 -host | --host | --hos | --ho) 591 ac_prev=host_alias ;; 592 -host=* | --host=* | --hos=* | --ho=*) 593 host_alias=$ac_optarg ;; 594 595 -includedir | --includedir | --includedi | --included | --include \ 596 | --includ | --inclu | --incl | --inc) 597 ac_prev=includedir ;; 598 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 599 | --includ=* | --inclu=* | --incl=* | --inc=*) 600 includedir=$ac_optarg ;; 601 602 -infodir | --infodir | --infodi | --infod | --info | --inf) 603 ac_prev=infodir ;; 604 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 605 infodir=$ac_optarg ;; 606 607 -libdir | --libdir | --libdi | --libd) 608 ac_prev=libdir ;; 609 -libdir=* | --libdir=* | --libdi=* | --libd=*) 610 libdir=$ac_optarg ;; 611 612 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 613 | --libexe | --libex | --libe) 614 ac_prev=libexecdir ;; 615 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 616 | --libexe=* | --libex=* | --libe=*) 617 libexecdir=$ac_optarg ;; 618 619 -localstatedir | --localstatedir | --localstatedi | --localstated \ 620 | --localstate | --localstat | --localsta | --localst \ 621 | --locals | --local | --loca | --loc | --lo) 622 ac_prev=localstatedir ;; 623 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 624 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 625 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 626 localstatedir=$ac_optarg ;; 627 628 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 629 ac_prev=mandir ;; 630 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 631 mandir=$ac_optarg ;; 632 633 -nfp | --nfp | --nf) 634 # Obsolete; use --without-fp. 635 with_fp=no ;; 636 637 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 638 | --no-cr | --no-c | -n) 639 no_create=yes ;; 640 641 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 642 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 643 no_recursion=yes ;; 644 645 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 646 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 647 | --oldin | --oldi | --old | --ol | --o) 648 ac_prev=oldincludedir ;; 649 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 650 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 651 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 652 oldincludedir=$ac_optarg ;; 653 654 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 655 ac_prev=prefix ;; 656 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 657 prefix=$ac_optarg ;; 658 659 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 660 | --program-pre | --program-pr | --program-p) 661 ac_prev=program_prefix ;; 662 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 663 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 664 program_prefix=$ac_optarg ;; 665 666 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 667 | --program-suf | --program-su | --program-s) 668 ac_prev=program_suffix ;; 669 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 670 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 671 program_suffix=$ac_optarg ;; 672 673 -program-transform-name | --program-transform-name \ 674 | --program-transform-nam | --program-transform-na \ 675 | --program-transform-n | --program-transform- \ 676 | --program-transform | --program-transfor \ 677 | --program-transfo | --program-transf \ 678 | --program-trans | --program-tran \ 679 | --progr-tra | --program-tr | --program-t) 680 ac_prev=program_transform_name ;; 681 -program-transform-name=* | --program-transform-name=* \ 682 | --program-transform-nam=* | --program-transform-na=* \ 683 | --program-transform-n=* | --program-transform-=* \ 684 | --program-transform=* | --program-transfor=* \ 685 | --program-transfo=* | --program-transf=* \ 686 | --program-trans=* | --program-tran=* \ 687 | --progr-tra=* | --program-tr=* | --program-t=*) 688 program_transform_name=$ac_optarg ;; 689 690 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 691 | -silent | --silent | --silen | --sile | --sil) 692 silent=yes ;; 693 694 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 695 ac_prev=sbindir ;; 696 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 697 | --sbi=* | --sb=*) 698 sbindir=$ac_optarg ;; 699 700 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 701 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 702 | --sharedst | --shareds | --shared | --share | --shar \ 703 | --sha | --sh) 704 ac_prev=sharedstatedir ;; 705 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 706 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 707 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 708 | --sha=* | --sh=*) 709 sharedstatedir=$ac_optarg ;; 710 711 -site | --site | --sit) 712 ac_prev=site ;; 713 -site=* | --site=* | --sit=*) 714 site=$ac_optarg ;; 715 716 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 717 ac_prev=srcdir ;; 718 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 719 srcdir=$ac_optarg ;; 720 721 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 722 | --syscon | --sysco | --sysc | --sys | --sy) 723 ac_prev=sysconfdir ;; 724 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 725 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 726 sysconfdir=$ac_optarg ;; 727 728 -target | --target | --targe | --targ | --tar | --ta | --t) 729 ac_prev=target_alias ;; 730 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 731 target_alias=$ac_optarg ;; 732 733 -v | -verbose | --verbose | --verbos | --verbo | --verb) 734 verbose=yes ;; 735 736 -version | --version | --versio | --versi | --vers | -V) 737 ac_init_version=: ;; 738 739 -with-* | --with-*) 740 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 741 # Reject names that are not valid shell variable names. 742 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 743 { echo "$as_me: error: invalid package name: $ac_package" >&2 744 { (exit 1); exit 1; }; } 745 ac_package=`echo $ac_package| sed 's/-/_/g'` 746 case $ac_option in 747 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 748 *) ac_optarg=yes ;; 749 esac 750 eval "with_$ac_package='$ac_optarg'" ;; 751 752 -without-* | --without-*) 753 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 754 # Reject names that are not valid shell variable names. 755 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 756 { echo "$as_me: error: invalid package name: $ac_package" >&2 757 { (exit 1); exit 1; }; } 758 ac_package=`echo $ac_package | sed 's/-/_/g'` 759 eval "with_$ac_package=no" ;; 760 761 --x) 762 # Obsolete; use --with-x. 763 with_x=yes ;; 764 765 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 766 | --x-incl | --x-inc | --x-in | --x-i) 767 ac_prev=x_includes ;; 768 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 769 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 770 x_includes=$ac_optarg ;; 771 772 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 773 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 774 ac_prev=x_libraries ;; 775 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 776 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 777 x_libraries=$ac_optarg ;; 778 779 -*) { echo "$as_me: error: unrecognized option: $ac_option 780Try \`$0 --help' for more information." >&2 781 { (exit 1); exit 1; }; } 782 ;; 783 784 *=*) 785 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 786 # Reject names that are not valid shell variable names. 787 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 788 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 789 { (exit 1); exit 1; }; } 790 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 791 eval "$ac_envvar='$ac_optarg'" 792 export $ac_envvar ;; 793 794 *) 795 # FIXME: should be removed in autoconf 3.0. 796 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 797 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 798 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 799 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 800 ;; 801 802 esac 803done 804 805if test -n "$ac_prev"; then 806 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 807 { echo "$as_me: error: missing argument to $ac_option" >&2 808 { (exit 1); exit 1; }; } 809fi 810 811# Be sure to have absolute paths. 812for ac_var in exec_prefix prefix 813do 814 eval ac_val=$`echo $ac_var` 815 case $ac_val in 816 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 817 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 818 { (exit 1); exit 1; }; };; 819 esac 820done 821 822# Be sure to have absolute paths. 823for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 824 localstatedir libdir includedir oldincludedir infodir mandir 825do 826 eval ac_val=$`echo $ac_var` 827 case $ac_val in 828 [\\/$]* | ?:[\\/]* ) ;; 829 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 830 { (exit 1); exit 1; }; };; 831 esac 832done 833 834# There might be people who depend on the old broken behavior: `$host' 835# used to hold the argument of --host etc. 836# FIXME: To remove some day. 837build=$build_alias 838host=$host_alias 839target=$target_alias 840 841# FIXME: To remove some day. 842if test "x$host_alias" != x; then 843 if test "x$build_alias" = x; then 844 cross_compiling=maybe 845 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 846 If a cross compiler is detected then cross compile mode will be used." >&2 847 elif test "x$build_alias" != "x$host_alias"; then 848 cross_compiling=yes 849 fi 850fi 851 852ac_tool_prefix= 853test -n "$host_alias" && ac_tool_prefix=$host_alias- 854 855test "$silent" = yes && exec 6>/dev/null 856 857 858# Find the source files, if location was not specified. 859if test -z "$srcdir"; then 860 ac_srcdir_defaulted=yes 861 # Try the directory containing this script, then its parent. 862 ac_confdir=`(dirname "$0") 2>/dev/null || 863$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 864 X"$0" : 'X\(//\)[^/]' \| \ 865 X"$0" : 'X\(//\)$' \| \ 866 X"$0" : 'X\(/\)' \| \ 867 . : '\(.\)' 2>/dev/null || 868echo X"$0" | 869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 870 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 871 /^X\(\/\/\)$/{ s//\1/; q; } 872 /^X\(\/\).*/{ s//\1/; q; } 873 s/.*/./; q'` 874 srcdir=$ac_confdir 875 if test ! -r $srcdir/$ac_unique_file; then 876 srcdir=.. 877 fi 878else 879 ac_srcdir_defaulted=no 880fi 881if test ! -r $srcdir/$ac_unique_file; then 882 if test "$ac_srcdir_defaulted" = yes; then 883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 884 { (exit 1); exit 1; }; } 885 else 886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 887 { (exit 1); exit 1; }; } 888 fi 889fi 890(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 891 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 892 { (exit 1); exit 1; }; } 893srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 894ac_env_build_alias_set=${build_alias+set} 895ac_env_build_alias_value=$build_alias 896ac_cv_env_build_alias_set=${build_alias+set} 897ac_cv_env_build_alias_value=$build_alias 898ac_env_host_alias_set=${host_alias+set} 899ac_env_host_alias_value=$host_alias 900ac_cv_env_host_alias_set=${host_alias+set} 901ac_cv_env_host_alias_value=$host_alias 902ac_env_target_alias_set=${target_alias+set} 903ac_env_target_alias_value=$target_alias 904ac_cv_env_target_alias_set=${target_alias+set} 905ac_cv_env_target_alias_value=$target_alias 906ac_env_CC_set=${CC+set} 907ac_env_CC_value=$CC 908ac_cv_env_CC_set=${CC+set} 909ac_cv_env_CC_value=$CC 910ac_env_CFLAGS_set=${CFLAGS+set} 911ac_env_CFLAGS_value=$CFLAGS 912ac_cv_env_CFLAGS_set=${CFLAGS+set} 913ac_cv_env_CFLAGS_value=$CFLAGS 914ac_env_LDFLAGS_set=${LDFLAGS+set} 915ac_env_LDFLAGS_value=$LDFLAGS 916ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 917ac_cv_env_LDFLAGS_value=$LDFLAGS 918ac_env_CPPFLAGS_set=${CPPFLAGS+set} 919ac_env_CPPFLAGS_value=$CPPFLAGS 920ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 921ac_cv_env_CPPFLAGS_value=$CPPFLAGS 922ac_env_CPP_set=${CPP+set} 923ac_env_CPP_value=$CPP 924ac_cv_env_CPP_set=${CPP+set} 925ac_cv_env_CPP_value=$CPP 926ac_env_CXX_set=${CXX+set} 927ac_env_CXX_value=$CXX 928ac_cv_env_CXX_set=${CXX+set} 929ac_cv_env_CXX_value=$CXX 930ac_env_CXXFLAGS_set=${CXXFLAGS+set} 931ac_env_CXXFLAGS_value=$CXXFLAGS 932ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 933ac_cv_env_CXXFLAGS_value=$CXXFLAGS 934ac_env_CXXCPP_set=${CXXCPP+set} 935ac_env_CXXCPP_value=$CXXCPP 936ac_cv_env_CXXCPP_set=${CXXCPP+set} 937ac_cv_env_CXXCPP_value=$CXXCPP 938 939# 940# Report the --help message. 941# 942if test "$ac_init_help" = "long"; then 943 # Omit some internal or obsolete options to make the list less imposing. 944 # This message is too long to be a string in the A/UX 3.1 sh. 945 cat <<_ACEOF 946\`configure' configures Hapy 0.0.8 to adapt to many kinds of systems. 947 948Usage: $0 [OPTION]... [VAR=VALUE]... 949 950To assign environment variables (e.g., CC, CFLAGS...), specify them as 951VAR=VALUE. See below for descriptions of some of the useful variables. 952 953Defaults for the options are specified in brackets. 954 955Configuration: 956 -h, --help display this help and exit 957 --help=short display options specific to this package 958 --help=recursive display the short help of all the included packages 959 -V, --version display version information and exit 960 -q, --quiet, --silent do not print \`checking...' messages 961 --cache-file=FILE cache test results in FILE [disabled] 962 -C, --config-cache alias for \`--cache-file=config.cache' 963 -n, --no-create do not create output files 964 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 965 966_ACEOF 967 968 cat <<_ACEOF 969Installation directories: 970 --prefix=PREFIX install architecture-independent files in PREFIX 971 [$ac_default_prefix] 972 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 973 [PREFIX] 974 975By default, \`make install' will install all the files in 976\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 977an installation prefix other than \`$ac_default_prefix' using \`--prefix', 978for instance \`--prefix=\$HOME'. 979 980For better control, use the options below. 981 982Fine tuning of the installation directories: 983 --bindir=DIR user executables [EPREFIX/bin] 984 --sbindir=DIR system admin executables [EPREFIX/sbin] 985 --libexecdir=DIR program executables [EPREFIX/libexec] 986 --datadir=DIR read-only architecture-independent data [PREFIX/share] 987 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 988 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 989 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 990 --libdir=DIR object code libraries [EPREFIX/lib] 991 --includedir=DIR C header files [PREFIX/include] 992 --oldincludedir=DIR C header files for non-gcc [/usr/include] 993 --infodir=DIR info documentation [PREFIX/info] 994 --mandir=DIR man documentation [PREFIX/man] 995_ACEOF 996 997 cat <<\_ACEOF 998 999Program names: 1000 --program-prefix=PREFIX prepend PREFIX to installed program names 1001 --program-suffix=SUFFIX append SUFFIX to installed program names 1002 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1003 1004System types: 1005 --build=BUILD configure for building on BUILD [guessed] 1006 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1007_ACEOF 1008fi 1009 1010if test -n "$ac_init_help"; then 1011 case $ac_init_help in 1012 short | recursive ) echo "Configuration of Hapy 0.0.8:";; 1013 esac 1014 cat <<\_ACEOF 1015 1016Optional Features: 1017 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1018 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1019 --enable-maintainer-mode enable make rules and dependencies not useful 1020 (and sometimes confusing) to the casual installer 1021 --enable-shared[=PKGS] 1022 build shared libraries [default=no] 1023 --enable-static[=PKGS] 1024 build static libraries [default=yes] 1025 --enable-fast-install[=PKGS] 1026 optimize for fast installation [default=yes] 1027 --disable-dependency-tracking speeds up one-time build 1028 --enable-dependency-tracking do not reject slow dependency extractors 1029 --disable-libtool-lock avoid locking (might break parallel builds) 1030 1031Optional Packages: 1032 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1033 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1034 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1035 --with-pic try to use only PIC/non-PIC objects [default=use 1036 both] 1037 1038Some influential environment variables: 1039 CC C compiler command 1040 CFLAGS C compiler flags 1041 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1042 nonstandard directory <lib dir> 1043 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1044 headers in a nonstandard directory <include dir> 1045 CPP C preprocessor 1046 CXX C++ compiler command 1047 CXXFLAGS C++ compiler flags 1048 CXXCPP C++ preprocessor 1049 1050Use these variables to override the choices made by `configure' or to help 1051it to find libraries and programs with nonstandard names/locations. 1052 1053_ACEOF 1054fi 1055 1056if test "$ac_init_help" = "recursive"; then 1057 # If there are subdirs, report their specific --help. 1058 ac_popdir=`pwd` 1059 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1060 test -d $ac_dir || continue 1061 ac_builddir=. 1062 1063if test "$ac_dir" != .; then 1064 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1065 # A "../" for each directory in $ac_dir_suffix. 1066 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1067else 1068 ac_dir_suffix= ac_top_builddir= 1069fi 1070 1071case $srcdir in 1072 .) # No --srcdir option. We are building in place. 1073 ac_srcdir=. 1074 if test -z "$ac_top_builddir"; then 1075 ac_top_srcdir=. 1076 else 1077 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1078 fi ;; 1079 [\\/]* | ?:[\\/]* ) # Absolute path. 1080 ac_srcdir=$srcdir$ac_dir_suffix; 1081 ac_top_srcdir=$srcdir ;; 1082 *) # Relative path. 1083 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1084 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1085esac 1086 1087# Do not use `cd foo && pwd` to compute absolute paths, because 1088# the directories may not exist. 1089case `pwd` in 1090.) ac_abs_builddir="$ac_dir";; 1091*) 1092 case "$ac_dir" in 1093 .) ac_abs_builddir=`pwd`;; 1094 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1095 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1096 esac;; 1097esac 1098case $ac_abs_builddir in 1099.) ac_abs_top_builddir=${ac_top_builddir}.;; 1100*) 1101 case ${ac_top_builddir}. in 1102 .) ac_abs_top_builddir=$ac_abs_builddir;; 1103 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1104 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1105 esac;; 1106esac 1107case $ac_abs_builddir in 1108.) ac_abs_srcdir=$ac_srcdir;; 1109*) 1110 case $ac_srcdir in 1111 .) ac_abs_srcdir=$ac_abs_builddir;; 1112 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1113 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1114 esac;; 1115esac 1116case $ac_abs_builddir in 1117.) ac_abs_top_srcdir=$ac_top_srcdir;; 1118*) 1119 case $ac_top_srcdir in 1120 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1121 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1122 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1123 esac;; 1124esac 1125 1126 cd $ac_dir 1127 # Check for guested configure; otherwise get Cygnus style configure. 1128 if test -f $ac_srcdir/configure.gnu; then 1129 echo 1130 $SHELL $ac_srcdir/configure.gnu --help=recursive 1131 elif test -f $ac_srcdir/configure; then 1132 echo 1133 $SHELL $ac_srcdir/configure --help=recursive 1134 elif test -f $ac_srcdir/configure.ac || 1135 test -f $ac_srcdir/configure.in; then 1136 echo 1137 $ac_configure --help 1138 else 1139 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1140 fi 1141 cd $ac_popdir 1142 done 1143fi 1144 1145test -n "$ac_init_help" && exit 0 1146if $ac_init_version; then 1147 cat <<\_ACEOF 1148Hapy configure 0.0.8 1149generated by GNU Autoconf 2.59 1150 1151Copyright (C) 2003 Free Software Foundation, Inc. 1152This configure script is free software; the Free Software Foundation 1153gives unlimited permission to copy, distribute and modify it. 1154_ACEOF 1155 exit 0 1156fi 1157exec 5>config.log 1158cat >&5 <<_ACEOF 1159This file contains any messages produced by compilers while 1160running configure, to aid debugging if configure makes a mistake. 1161 1162It was created by Hapy $as_me 0.0.8, which was 1163generated by GNU Autoconf 2.59. Invocation command line was 1164 1165 $ $0 $@ 1166 1167_ACEOF 1168{ 1169cat <<_ASUNAME 1170## --------- ## 1171## Platform. ## 1172## --------- ## 1173 1174hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1175uname -m = `(uname -m) 2>/dev/null || echo unknown` 1176uname -r = `(uname -r) 2>/dev/null || echo unknown` 1177uname -s = `(uname -s) 2>/dev/null || echo unknown` 1178uname -v = `(uname -v) 2>/dev/null || echo unknown` 1179 1180/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1181/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1182 1183/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1184/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1185/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1186hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1187/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1188/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1189/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1190 1191_ASUNAME 1192 1193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1194for as_dir in $PATH 1195do 1196 IFS=$as_save_IFS 1197 test -z "$as_dir" && as_dir=. 1198 echo "PATH: $as_dir" 1199done 1200 1201} >&5 1202 1203cat >&5 <<_ACEOF 1204 1205 1206## ----------- ## 1207## Core tests. ## 1208## ----------- ## 1209 1210_ACEOF 1211 1212 1213# Keep a trace of the command line. 1214# Strip out --no-create and --no-recursion so they do not pile up. 1215# Strip out --silent because we don't want to record it for future runs. 1216# Also quote any args containing shell meta-characters. 1217# Make two passes to allow for proper duplicate-argument suppression. 1218ac_configure_args= 1219ac_configure_args0= 1220ac_configure_args1= 1221ac_sep= 1222ac_must_keep_next=false 1223for ac_pass in 1 2 1224do 1225 for ac_arg 1226 do 1227 case $ac_arg in 1228 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1230 | -silent | --silent | --silen | --sile | --sil) 1231 continue ;; 1232 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1233 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1234 esac 1235 case $ac_pass in 1236 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1237 2) 1238 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1239 if test $ac_must_keep_next = true; then 1240 ac_must_keep_next=false # Got value, back to normal. 1241 else 1242 case $ac_arg in 1243 *=* | --config-cache | -C | -disable-* | --disable-* \ 1244 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1245 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1246 | -with-* | --with-* | -without-* | --without-* | --x) 1247 case "$ac_configure_args0 " in 1248 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1249 esac 1250 ;; 1251 -* ) ac_must_keep_next=true ;; 1252 esac 1253 fi 1254 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1255 # Get rid of the leading space. 1256 ac_sep=" " 1257 ;; 1258 esac 1259 done 1260done 1261$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1262$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1263 1264# When interrupted or exit'd, cleanup temporary files, and complete 1265# config.log. We remove comments because anyway the quotes in there 1266# would cause problems or look ugly. 1267# WARNING: Be sure not to use single quotes in there, as some shells, 1268# such as our DU 5.0 friend, will then `close' the trap. 1269trap 'exit_status=$? 1270 # Save into config.log some information that might help in debugging. 1271 { 1272 echo 1273 1274 cat <<\_ASBOX 1275## ---------------- ## 1276## Cache variables. ## 1277## ---------------- ## 1278_ASBOX 1279 echo 1280 # The following way of writing the cache mishandles newlines in values, 1281{ 1282 (set) 2>&1 | 1283 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1284 *ac_space=\ *) 1285 sed -n \ 1286 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1287 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1288 ;; 1289 *) 1290 sed -n \ 1291 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1292 ;; 1293 esac; 1294} 1295 echo 1296 1297 cat <<\_ASBOX 1298## ----------------- ## 1299## Output variables. ## 1300## ----------------- ## 1301_ASBOX 1302 echo 1303 for ac_var in $ac_subst_vars 1304 do 1305 eval ac_val=$`echo $ac_var` 1306 echo "$ac_var='"'"'$ac_val'"'"'" 1307 done | sort 1308 echo 1309 1310 if test -n "$ac_subst_files"; then 1311 cat <<\_ASBOX 1312## ------------- ## 1313## Output files. ## 1314## ------------- ## 1315_ASBOX 1316 echo 1317 for ac_var in $ac_subst_files 1318 do 1319 eval ac_val=$`echo $ac_var` 1320 echo "$ac_var='"'"'$ac_val'"'"'" 1321 done | sort 1322 echo 1323 fi 1324 1325 if test -s confdefs.h; then 1326 cat <<\_ASBOX 1327## ----------- ## 1328## confdefs.h. ## 1329## ----------- ## 1330_ASBOX 1331 echo 1332 sed "/^$/d" confdefs.h | sort 1333 echo 1334 fi 1335 test "$ac_signal" != 0 && 1336 echo "$as_me: caught signal $ac_signal" 1337 echo "$as_me: exit $exit_status" 1338 } >&5 1339 rm -f core *.core && 1340 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1341 exit $exit_status 1342 ' 0 1343for ac_signal in 1 2 13 15; do 1344 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1345done 1346ac_signal=0 1347 1348# confdefs.h avoids OS command line length limits that DEFS can exceed. 1349rm -rf conftest* confdefs.h 1350# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1351echo >confdefs.h 1352 1353# Predefined preprocessor variables. 1354 1355cat >>confdefs.h <<_ACEOF 1356#define PACKAGE_NAME "$PACKAGE_NAME" 1357_ACEOF 1358 1359 1360cat >>confdefs.h <<_ACEOF 1361#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1362_ACEOF 1363 1364 1365cat >>confdefs.h <<_ACEOF 1366#define PACKAGE_VERSION "$PACKAGE_VERSION" 1367_ACEOF 1368 1369 1370cat >>confdefs.h <<_ACEOF 1371#define PACKAGE_STRING "$PACKAGE_STRING" 1372_ACEOF 1373 1374 1375cat >>confdefs.h <<_ACEOF 1376#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1377_ACEOF 1378 1379 1380# Let the site file select an alternate cache file if it wants to. 1381# Prefer explicitly selected file to automatically selected ones. 1382if test -z "$CONFIG_SITE"; then 1383 if test "x$prefix" != xNONE; then 1384 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1385 else 1386 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1387 fi 1388fi 1389for ac_site_file in $CONFIG_SITE; do 1390 if test -r "$ac_site_file"; then 1391 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1392echo "$as_me: loading site script $ac_site_file" >&6;} 1393 sed 's/^/| /' "$ac_site_file" >&5 1394 . "$ac_site_file" 1395 fi 1396done 1397 1398if test -r "$cache_file"; then 1399 # Some versions of bash will fail to source /dev/null (special 1400 # files actually), so we avoid doing that. 1401 if test -f "$cache_file"; then 1402 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1403echo "$as_me: loading cache $cache_file" >&6;} 1404 case $cache_file in 1405 [\\/]* | ?:[\\/]* ) . $cache_file;; 1406 *) . ./$cache_file;; 1407 esac 1408 fi 1409else 1410 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1411echo "$as_me: creating cache $cache_file" >&6;} 1412 >$cache_file 1413fi 1414 1415# Check that the precious variables saved in the cache have kept the same 1416# value. 1417ac_cache_corrupted=false 1418for ac_var in `(set) 2>&1 | 1419 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1420 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1421 eval ac_new_set=\$ac_env_${ac_var}_set 1422 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1423 eval ac_new_val="\$ac_env_${ac_var}_value" 1424 case $ac_old_set,$ac_new_set in 1425 set,) 1426 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1427echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1428 ac_cache_corrupted=: ;; 1429 ,set) 1430 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1431echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1432 ac_cache_corrupted=: ;; 1433 ,);; 1434 *) 1435 if test "x$ac_old_val" != "x$ac_new_val"; then 1436 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1437echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1438 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1439echo "$as_me: former value: $ac_old_val" >&2;} 1440 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1441echo "$as_me: current value: $ac_new_val" >&2;} 1442 ac_cache_corrupted=: 1443 fi;; 1444 esac 1445 # Pass precious variables to config.status. 1446 if test "$ac_new_set" = set; then 1447 case $ac_new_val in 1448 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1449 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1450 *) ac_arg=$ac_var=$ac_new_val ;; 1451 esac 1452 case " $ac_configure_args " in 1453 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1454 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1455 esac 1456 fi 1457done 1458if $ac_cache_corrupted; then 1459 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1460echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1461 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1462echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1463 { (exit 1); exit 1; }; } 1464fi 1465 1466ac_ext=c 1467ac_cpp='$CPP $CPPFLAGS' 1468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1470ac_compiler_gnu=$ac_cv_c_compiler_gnu 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499ac_aux_dir= 1500for ac_dir in cfgaux $srcdir/cfgaux; do 1501 if test -f $ac_dir/install-sh; then 1502 ac_aux_dir=$ac_dir 1503 ac_install_sh="$ac_aux_dir/install-sh -c" 1504 break 1505 elif test -f $ac_dir/install.sh; then 1506 ac_aux_dir=$ac_dir 1507 ac_install_sh="$ac_aux_dir/install.sh -c" 1508 break 1509 elif test -f $ac_dir/shtool; then 1510 ac_aux_dir=$ac_dir 1511 ac_install_sh="$ac_aux_dir/shtool install -c" 1512 break 1513 fi 1514done 1515if test -z "$ac_aux_dir"; then 1516 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in cfgaux $srcdir/cfgaux" >&5 1517echo "$as_me: error: cannot find install-sh or install.sh in cfgaux $srcdir/cfgaux" >&2;} 1518 { (exit 1); exit 1; }; } 1519fi 1520ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1521ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1522ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1523 1524 1525PRESET_CXXFLAGS="$CXXFLAGS" 1526PRESET_LDFLAGS="$LDFLAGS" 1527 1528am__api_version="1.9" 1529# Find a good install program. We prefer a C program (faster), 1530# so one script is as good as another. But avoid the broken or 1531# incompatible versions: 1532# SysV /etc/install, /usr/sbin/install 1533# SunOS /usr/etc/install 1534# IRIX /sbin/install 1535# AIX /bin/install 1536# AmigaOS /C/install, which installs bootblocks on floppy discs 1537# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1538# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1539# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1540# OS/2's system install, which has a completely different semantic 1541# ./install, which can be erroneously created by make from ./install.sh. 1542echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1543echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1544if test -z "$INSTALL"; then 1545if test "${ac_cv_path_install+set}" = set; then 1546 echo $ECHO_N "(cached) $ECHO_C" >&6 1547else 1548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1549for as_dir in $PATH 1550do 1551 IFS=$as_save_IFS 1552 test -z "$as_dir" && as_dir=. 1553 # Account for people who put trailing slashes in PATH elements. 1554case $as_dir/ in 1555 ./ | .// | /cC/* | \ 1556 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1557 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1558 /usr/ucb/* ) ;; 1559 *) 1560 # OSF1 and SCO ODT 3.0 have their own names for install. 1561 # Don't use installbsd from OSF since it installs stuff as root 1562 # by default. 1563 for ac_prog in ginstall scoinst install; do 1564 for ac_exec_ext in '' $ac_executable_extensions; do 1565 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1566 if test $ac_prog = install && 1567 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1568 # AIX install. It has an incompatible calling convention. 1569 : 1570 elif test $ac_prog = install && 1571 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1572 # program-specific install script used by HP pwplus--don't use. 1573 : 1574 else 1575 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1576 break 3 1577 fi 1578 fi 1579 done 1580 done 1581 ;; 1582esac 1583done 1584 1585 1586fi 1587 if test "${ac_cv_path_install+set}" = set; then 1588 INSTALL=$ac_cv_path_install 1589 else 1590 # As a last resort, use the slow shell script. We don't cache a 1591 # path for INSTALL within a source directory, because that will 1592 # break other packages using the cache if that directory is 1593 # removed, or if the path is relative. 1594 INSTALL=$ac_install_sh 1595 fi 1596fi 1597echo "$as_me:$LINENO: result: $INSTALL" >&5 1598echo "${ECHO_T}$INSTALL" >&6 1599 1600# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1601# It thinks the first close brace ends the variable substitution. 1602test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1603 1604test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1605 1606test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1607 1608echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1609echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1610# Just in case 1611sleep 1 1612echo timestamp > conftest.file 1613# Do `set' in a subshell so we don't clobber the current shell's 1614# arguments. Must try -L first in case configure is actually a 1615# symlink; some systems play weird games with the mod time of symlinks 1616# (eg FreeBSD returns the mod time of the symlink's containing 1617# directory). 1618if ( 1619 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1620 if test "$*" = "X"; then 1621 # -L didn't work. 1622 set X `ls -t $srcdir/configure conftest.file` 1623 fi 1624 rm -f conftest.file 1625 if test "$*" != "X $srcdir/configure conftest.file" \ 1626 && test "$*" != "X conftest.file $srcdir/configure"; then 1627 1628 # If neither matched, then we have a broken ls. This can happen 1629 # if, for instance, CONFIG_SHELL is bash and it inherits a 1630 # broken ls alias from the environment. This has actually 1631 # happened. Such a system could not be considered "sane". 1632 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1633alias in your environment" >&5 1634echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1635alias in your environment" >&2;} 1636 { (exit 1); exit 1; }; } 1637 fi 1638 1639 test "$2" = conftest.file 1640 ) 1641then 1642 # Ok. 1643 : 1644else 1645 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1646Check your system clock" >&5 1647echo "$as_me: error: newly created file is older than distributed files! 1648Check your system clock" >&2;} 1649 { (exit 1); exit 1; }; } 1650fi 1651echo "$as_me:$LINENO: result: yes" >&5 1652echo "${ECHO_T}yes" >&6 1653test "$program_prefix" != NONE && 1654 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1655# Use a double $ so make ignores it. 1656test "$program_suffix" != NONE && 1657 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1658# Double any \ or $. echo might interpret backslashes. 1659# By default was `s,x,x', remove it if useless. 1660cat <<\_ACEOF >conftest.sed 1661s/[\\$]/&&/g;s/;s,x,x,$// 1662_ACEOF 1663program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1664rm conftest.sed 1665 1666# expand $ac_aux_dir to an absolute path 1667am_aux_dir=`cd $ac_aux_dir && pwd` 1668 1669test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1670# Use eval to expand $SHELL 1671if eval "$MISSING --run true"; then 1672 am_missing_run="$MISSING --run " 1673else 1674 am_missing_run= 1675 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1676echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1677fi 1678 1679if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1680 # We used to keeping the `.' as first argument, in order to 1681 # allow $(mkdir_p) to be used without argument. As in 1682 # $(mkdir_p) $(somedir) 1683 # where $(somedir) is conditionally defined. However this is wrong 1684 # for two reasons: 1685 # 1. if the package is installed by a user who cannot write `.' 1686 # make install will fail, 1687 # 2. the above comment should most certainly read 1688 # $(mkdir_p) $(DESTDIR)$(somedir) 1689 # so it does not work when $(somedir) is undefined and 1690 # $(DESTDIR) is not. 1691 # To support the latter case, we have to write 1692 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 1693 # so the `.' trick is pointless. 1694 mkdir_p='mkdir -p --' 1695else 1696 # On NextStep and OpenStep, the `mkdir' command does not 1697 # recognize any option. It will interpret all options as 1698 # directories to create, and then abort because `.' already 1699 # exists. 1700 for d in ./-p ./--version; 1701 do 1702 test -d $d && rmdir $d 1703 done 1704 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1705 if test -f "$ac_aux_dir/mkinstalldirs"; then 1706 mkdir_p='$(mkinstalldirs)' 1707 else 1708 mkdir_p='$(install_sh) -d' 1709 fi 1710fi 1711 1712for ac_prog in gawk mawk nawk awk 1713do 1714 # Extract the first word of "$ac_prog", so it can be a program name with args. 1715set dummy $ac_prog; ac_word=$2 1716echo "$as_me:$LINENO: checking for $ac_word" >&5 1717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1718if test "${ac_cv_prog_AWK+set}" = set; then 1719 echo $ECHO_N "(cached) $ECHO_C" >&6 1720else 1721 if test -n "$AWK"; then 1722 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1723else 1724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1725for as_dir in $PATH 1726do 1727 IFS=$as_save_IFS 1728 test -z "$as_dir" && as_dir=. 1729 for ac_exec_ext in '' $ac_executable_extensions; do 1730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1731 ac_cv_prog_AWK="$ac_prog" 1732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1733 break 2 1734 fi 1735done 1736done 1737 1738fi 1739fi 1740AWK=$ac_cv_prog_AWK 1741if test -n "$AWK"; then 1742 echo "$as_me:$LINENO: result: $AWK" >&5 1743echo "${ECHO_T}$AWK" >&6 1744else 1745 echo "$as_me:$LINENO: result: no" >&5 1746echo "${ECHO_T}no" >&6 1747fi 1748 1749 test -n "$AWK" && break 1750done 1751 1752echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1753echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1754set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1755if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1756 echo $ECHO_N "(cached) $ECHO_C" >&6 1757else 1758 cat >conftest.make <<\_ACEOF 1759all: 1760 @echo 'ac_maketemp="$(MAKE)"' 1761_ACEOF 1762# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1763eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1764if test -n "$ac_maketemp"; then 1765 eval ac_cv_prog_make_${ac_make}_set=yes 1766else 1767 eval ac_cv_prog_make_${ac_make}_set=no 1768fi 1769rm -f conftest.make 1770fi 1771if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1772 echo "$as_me:$LINENO: result: yes" >&5 1773echo "${ECHO_T}yes" >&6 1774 SET_MAKE= 1775else 1776 echo "$as_me:$LINENO: result: no" >&5 1777echo "${ECHO_T}no" >&6 1778 SET_MAKE="MAKE=${MAKE-make}" 1779fi 1780 1781rm -rf .tst 2>/dev/null 1782mkdir .tst 2>/dev/null 1783if test -d .tst; then 1784 am__leading_dot=. 1785else 1786 am__leading_dot=_ 1787fi 1788rmdir .tst 2>/dev/null 1789 1790# test to see if srcdir already configured 1791if test "`cd $srcdir && pwd`" != "`pwd`" && 1792 test -f $srcdir/config.status; then 1793 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1794echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1795 { (exit 1); exit 1; }; } 1796fi 1797 1798# test whether we have cygpath 1799if test -z "$CYGPATH_W"; then 1800 if (cygpath --version) >/dev/null 2>/dev/null; then 1801 CYGPATH_W='cygpath -w' 1802 else 1803 CYGPATH_W=echo 1804 fi 1805fi 1806 1807 1808# Define the identity of the package. 1809 PACKAGE='Hapy' 1810 VERSION='0.0.8' 1811 1812 1813# Some tools Automake needs. 1814 1815ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1816 1817 1818AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1819 1820 1821AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1822 1823 1824AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1825 1826 1827MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1828 1829install_sh=${install_sh-"$am_aux_dir/install-sh"} 1830 1831# Installed binaries are usually stripped using `strip' when the user 1832# run `make install-strip'. However `strip' might not be the right 1833# tool to use in cross-compilation environments, therefore Automake 1834# will honor the `STRIP' environment variable to overrule this program. 1835if test "$cross_compiling" != no; then 1836 if test -n "$ac_tool_prefix"; then 1837 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1838set dummy ${ac_tool_prefix}strip; ac_word=$2 1839echo "$as_me:$LINENO: checking for $ac_word" >&5 1840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1841if test "${ac_cv_prog_STRIP+set}" = set; then 1842 echo $ECHO_N "(cached) $ECHO_C" >&6 1843else 1844 if test -n "$STRIP"; then 1845 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1846else 1847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1848for as_dir in $PATH 1849do 1850 IFS=$as_save_IFS 1851 test -z "$as_dir" && as_dir=. 1852 for ac_exec_ext in '' $ac_executable_extensions; do 1853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1854 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1856 break 2 1857 fi 1858done 1859done 1860 1861fi 1862fi 1863STRIP=$ac_cv_prog_STRIP 1864if test -n "$STRIP"; then 1865 echo "$as_me:$LINENO: result: $STRIP" >&5 1866echo "${ECHO_T}$STRIP" >&6 1867else 1868 echo "$as_me:$LINENO: result: no" >&5 1869echo "${ECHO_T}no" >&6 1870fi 1871 1872fi 1873if test -z "$ac_cv_prog_STRIP"; then 1874 ac_ct_STRIP=$STRIP 1875 # Extract the first word of "strip", so it can be a program name with args. 1876set dummy strip; ac_word=$2 1877echo "$as_me:$LINENO: checking for $ac_word" >&5 1878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1879if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1880 echo $ECHO_N "(cached) $ECHO_C" >&6 1881else 1882 if test -n "$ac_ct_STRIP"; then 1883 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1884else 1885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1886for as_dir in $PATH 1887do 1888 IFS=$as_save_IFS 1889 test -z "$as_dir" && as_dir=. 1890 for ac_exec_ext in '' $ac_executable_extensions; do 1891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1892 ac_cv_prog_ac_ct_STRIP="strip" 1893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1894 break 2 1895 fi 1896done 1897done 1898 1899 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1900fi 1901fi 1902ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1903if test -n "$ac_ct_STRIP"; then 1904 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1905echo "${ECHO_T}$ac_ct_STRIP" >&6 1906else 1907 echo "$as_me:$LINENO: result: no" >&5 1908echo "${ECHO_T}no" >&6 1909fi 1910 1911 STRIP=$ac_ct_STRIP 1912else 1913 STRIP="$ac_cv_prog_STRIP" 1914fi 1915 1916fi 1917INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1918 1919# We need awk for the "check" target. The system "awk" is bad on 1920# some platforms. 1921# Always define AMTAR for backward compatibility. 1922 1923AMTAR=${AMTAR-"${am_missing_run}tar"} 1924 1925am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 1926 1927 1928 1929 1930 1931echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 1932echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 1933 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 1934if test "${enable_maintainer_mode+set}" = set; then 1935 enableval="$enable_maintainer_mode" 1936 USE_MAINTAINER_MODE=$enableval 1937else 1938 USE_MAINTAINER_MODE=no 1939fi; 1940 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 1941echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 1942 1943 1944if test $USE_MAINTAINER_MODE = yes; then 1945 MAINTAINER_MODE_TRUE= 1946 MAINTAINER_MODE_FALSE='#' 1947else 1948 MAINTAINER_MODE_TRUE='#' 1949 MAINTAINER_MODE_FALSE= 1950fi 1951 1952 MAINT=$MAINTAINER_MODE_TRUE 1953 1954 1955 ac_config_headers="$ac_config_headers src/include/Hapy/ac-config.h" 1956 1957 1958 ac_config_commands="$ac_config_commands src/include/Hapy/config.h" 1959 1960 1961 1962 1963 1964ac_ext=cc 1965ac_cpp='$CXXCPP $CPPFLAGS' 1966ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1967ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1968ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 1969 1970 1971# Check whether --enable-shared or --disable-shared was given. 1972if test "${enable_shared+set}" = set; then 1973 enableval="$enable_shared" 1974 p=${PACKAGE-default} 1975 case $enableval in 1976 yes) enable_shared=yes ;; 1977 no) enable_shared=no ;; 1978 *) 1979 enable_shared=no 1980 # Look at the argument we got. We use all the common list separators. 1981 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 1982 for pkg in $enableval; do 1983 IFS="$lt_save_ifs" 1984 if test "X$pkg" = "X$p"; then 1985 enable_shared=yes 1986 fi 1987 done 1988 IFS="$lt_save_ifs" 1989 ;; 1990 esac 1991else 1992 enable_shared=no 1993fi; 1994 1995 1996 1997 1998# Check whether --enable-static or --disable-static was given. 1999if test "${enable_static+set}" = set; then 2000 enableval="$enable_static" 2001 p=${PACKAGE-default} 2002 case $enableval in 2003 yes) enable_static=yes ;; 2004 no) enable_static=no ;; 2005 *) 2006 enable_static=no 2007 # Look at the argument we got. We use all the common list separators. 2008 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2009 for pkg in $enableval; do 2010 IFS="$lt_save_ifs" 2011 if test "X$pkg" = "X$p"; then 2012 enable_static=yes 2013 fi 2014 done 2015 IFS="$lt_save_ifs" 2016 ;; 2017 esac 2018else 2019 enable_static=yes 2020fi; 2021 2022# Check whether --enable-fast-install or --disable-fast-install was given. 2023if test "${enable_fast_install+set}" = set; then 2024 enableval="$enable_fast_install" 2025 p=${PACKAGE-default} 2026 case $enableval in 2027 yes) enable_fast_install=yes ;; 2028 no) enable_fast_install=no ;; 2029 *) 2030 enable_fast_install=no 2031 # Look at the argument we got. We use all the common list separators. 2032 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2033 for pkg in $enableval; do 2034 IFS="$lt_save_ifs" 2035 if test "X$pkg" = "X$p"; then 2036 enable_fast_install=yes 2037 fi 2038 done 2039 IFS="$lt_save_ifs" 2040 ;; 2041 esac 2042else 2043 enable_fast_install=yes 2044fi; 2045 2046# Make sure we can run config.sub. 2047$ac_config_sub sun4 >/dev/null 2>&1 || 2048 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 2049echo "$as_me: error: cannot run $ac_config_sub" >&2;} 2050 { (exit 1); exit 1; }; } 2051 2052echo "$as_me:$LINENO: checking build system type" >&5 2053echo $ECHO_N "checking build system type... $ECHO_C" >&6 2054if test "${ac_cv_build+set}" = set; then 2055 echo $ECHO_N "(cached) $ECHO_C" >&6 2056else 2057 ac_cv_build_alias=$build_alias 2058test -z "$ac_cv_build_alias" && 2059 ac_cv_build_alias=`$ac_config_guess` 2060test -z "$ac_cv_build_alias" && 2061 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2062echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2063 { (exit 1); exit 1; }; } 2064ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 2065 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 2066echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 2067 { (exit 1); exit 1; }; } 2068 2069fi 2070echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2071echo "${ECHO_T}$ac_cv_build" >&6 2072build=$ac_cv_build 2073build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2074build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2075build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2076 2077 2078echo "$as_me:$LINENO: checking host system type" >&5 2079echo $ECHO_N "checking host system type... $ECHO_C" >&6 2080if test "${ac_cv_host+set}" = set; then 2081 echo $ECHO_N "(cached) $ECHO_C" >&6 2082else 2083 ac_cv_host_alias=$host_alias 2084test -z "$ac_cv_host_alias" && 2085 ac_cv_host_alias=$ac_cv_build_alias 2086ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 2087 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 2088echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 2089 { (exit 1); exit 1; }; } 2090 2091fi 2092echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2093echo "${ECHO_T}$ac_cv_host" >&6 2094host=$ac_cv_host 2095host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2096host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2097host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2098 2099 2100DEPDIR="${am__leading_dot}deps" 2101 2102 ac_config_commands="$ac_config_commands depfiles" 2103 2104 2105am_make=${MAKE-make} 2106cat > confinc << 'END' 2107am__doit: 2108 @echo done 2109.PHONY: am__doit 2110END 2111# If we don't find an include directive, just comment out the code. 2112echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2113echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2114am__include="#" 2115am__quote= 2116_am_result=none 2117# First try GNU make style include. 2118echo "include confinc" > confmf 2119# We grep out `Entering directory' and `Leaving directory' 2120# messages which can occur if `w' ends up in MAKEFLAGS. 2121# In particular we don't look at `^make:' because GNU make might 2122# be invoked under some other name (usually "gmake"), in which 2123# case it prints its new name instead of `make'. 2124if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2125 am__include=include 2126 am__quote= 2127 _am_result=GNU 2128fi 2129# Now try BSD make style include. 2130if test "$am__include" = "#"; then 2131 echo '.include "confinc"' > confmf 2132 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2133 am__include=.include 2134 am__quote="\"" 2135 _am_result=BSD 2136 fi 2137fi 2138 2139 2140echo "$as_me:$LINENO: result: $_am_result" >&5 2141echo "${ECHO_T}$_am_result" >&6 2142rm -f confinc confmf 2143 2144# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2145if test "${enable_dependency_tracking+set}" = set; then 2146 enableval="$enable_dependency_tracking" 2147 2148fi; 2149if test "x$enable_dependency_tracking" != xno; then 2150 am_depcomp="$ac_aux_dir/depcomp" 2151 AMDEPBACKSLASH='\' 2152fi 2153 2154 2155if test "x$enable_dependency_tracking" != xno; then 2156 AMDEP_TRUE= 2157 AMDEP_FALSE='#' 2158else 2159 AMDEP_TRUE='#' 2160 AMDEP_FALSE= 2161fi 2162 2163 2164 2165ac_ext=c 2166ac_cpp='$CPP $CPPFLAGS' 2167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2169ac_compiler_gnu=$ac_cv_c_compiler_gnu 2170if test -n "$ac_tool_prefix"; then 2171 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2172set dummy ${ac_tool_prefix}gcc; ac_word=$2 2173echo "$as_me:$LINENO: checking for $ac_word" >&5 2174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2175if test "${ac_cv_prog_CC+set}" = set; then 2176 echo $ECHO_N "(cached) $ECHO_C" >&6 2177else 2178 if test -n "$CC"; then 2179 ac_cv_prog_CC="$CC" # Let the user override the test. 2180else 2181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2182for as_dir in $PATH 2183do 2184 IFS=$as_save_IFS 2185 test -z "$as_dir" && as_dir=. 2186 for ac_exec_ext in '' $ac_executable_extensions; do 2187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2188 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2190 break 2 2191 fi 2192done 2193done 2194 2195fi 2196fi 2197CC=$ac_cv_prog_CC 2198if test -n "$CC"; then 2199 echo "$as_me:$LINENO: result: $CC" >&5 2200echo "${ECHO_T}$CC" >&6 2201else 2202 echo "$as_me:$LINENO: result: no" >&5 2203echo "${ECHO_T}no" >&6 2204fi 2205 2206fi 2207if test -z "$ac_cv_prog_CC"; then 2208 ac_ct_CC=$CC 2209 # Extract the first word of "gcc", so it can be a program name with args. 2210set dummy gcc; ac_word=$2 2211echo "$as_me:$LINENO: checking for $ac_word" >&5 2212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2213if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2214 echo $ECHO_N "(cached) $ECHO_C" >&6 2215else 2216 if test -n "$ac_ct_CC"; then 2217 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2218else 2219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2220for as_dir in $PATH 2221do 2222 IFS=$as_save_IFS 2223 test -z "$as_dir" && as_dir=. 2224 for ac_exec_ext in '' $ac_executable_extensions; do 2225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2226 ac_cv_prog_ac_ct_CC="gcc" 2227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2228 break 2 2229 fi 2230done 2231done 2232 2233fi 2234fi 2235ac_ct_CC=$ac_cv_prog_ac_ct_CC 2236if test -n "$ac_ct_CC"; then 2237 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2238echo "${ECHO_T}$ac_ct_CC" >&6 2239else 2240 echo "$as_me:$LINENO: result: no" >&5 2241echo "${ECHO_T}no" >&6 2242fi 2243 2244 CC=$ac_ct_CC 2245else 2246 CC="$ac_cv_prog_CC" 2247fi 2248 2249if test -z "$CC"; then 2250 if test -n "$ac_tool_prefix"; then 2251 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2252set dummy ${ac_tool_prefix}cc; ac_word=$2 2253echo "$as_me:$LINENO: checking for $ac_word" >&5 2254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2255if test "${ac_cv_prog_CC+set}" = set; then 2256 echo $ECHO_N "(cached) $ECHO_C" >&6 2257else 2258 if test -n "$CC"; then 2259 ac_cv_prog_CC="$CC" # Let the user override the test. 2260else 2261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2262for as_dir in $PATH 2263do 2264 IFS=$as_save_IFS 2265 test -z "$as_dir" && as_dir=. 2266 for ac_exec_ext in '' $ac_executable_extensions; do 2267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2268 ac_cv_prog_CC="${ac_tool_prefix}cc" 2269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2270 break 2 2271 fi 2272done 2273done 2274 2275fi 2276fi 2277CC=$ac_cv_prog_CC 2278if test -n "$CC"; then 2279 echo "$as_me:$LINENO: result: $CC" >&5 2280echo "${ECHO_T}$CC" >&6 2281else 2282 echo "$as_me:$LINENO: result: no" >&5 2283echo "${ECHO_T}no" >&6 2284fi 2285 2286fi 2287if test -z "$ac_cv_prog_CC"; then 2288 ac_ct_CC=$CC 2289 # Extract the first word of "cc", so it can be a program name with args. 2290set dummy cc; 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_ac_ct_CC+set}" = set; then 2294 echo $ECHO_N "(cached) $ECHO_C" >&6 2295else 2296 if test -n "$ac_ct_CC"; then 2297 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="cc" 2307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2308 break 2 2309 fi 2310done 2311done 2312 2313fi 2314fi 2315ac_ct_CC=$ac_cv_prog_ac_ct_CC 2316if test -n "$ac_ct_CC"; then 2317 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2318echo "${ECHO_T}$ac_ct_CC" >&6 2319else 2320 echo "$as_me:$LINENO: result: no" >&5 2321echo "${ECHO_T}no" >&6 2322fi 2323 2324 CC=$ac_ct_CC 2325else 2326 CC="$ac_cv_prog_CC" 2327fi 2328 2329fi 2330if test -z "$CC"; then 2331 # Extract the first word of "cc", so it can be a program name with args. 2332set dummy cc; 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_CC+set}" = set; then 2336 echo $ECHO_N "(cached) $ECHO_C" >&6 2337else 2338 if test -n "$CC"; then 2339 ac_cv_prog_CC="$CC" # Let the user override the test. 2340else 2341 ac_prog_rejected=no 2342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2343for as_dir in $PATH 2344do 2345 IFS=$as_save_IFS 2346 test -z "$as_dir" && as_dir=. 2347 for ac_exec_ext in '' $ac_executable_extensions; do 2348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2349 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2350 ac_prog_rejected=yes 2351 continue 2352 fi 2353 ac_cv_prog_CC="cc" 2354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2355 break 2 2356 fi 2357done 2358done 2359 2360if test $ac_prog_rejected = yes; then 2361 # We found a bogon in the path, so make sure we never use it. 2362 set dummy $ac_cv_prog_CC 2363 shift 2364 if test $# != 0; then 2365 # We chose a different compiler from the bogus one. 2366 # However, it has the same basename, so the bogon will be chosen 2367 # first if we set CC to just the basename; use the full file name. 2368 shift 2369 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2370 fi 2371fi 2372fi 2373fi 2374CC=$ac_cv_prog_CC 2375if test -n "$CC"; then 2376 echo "$as_me:$LINENO: result: $CC" >&5 2377echo "${ECHO_T}$CC" >&6 2378else 2379 echo "$as_me:$LINENO: result: no" >&5 2380echo "${ECHO_T}no" >&6 2381fi 2382 2383fi 2384if test -z "$CC"; then 2385 if test -n "$ac_tool_prefix"; then 2386 for ac_prog in cl 2387 do 2388 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2389set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2390echo "$as_me:$LINENO: checking for $ac_word" >&5 2391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2392if test "${ac_cv_prog_CC+set}" = set; then 2393 echo $ECHO_N "(cached) $ECHO_C" >&6 2394else 2395 if test -n "$CC"; then 2396 ac_cv_prog_CC="$CC" # Let the user override the test. 2397else 2398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2399for as_dir in $PATH 2400do 2401 IFS=$as_save_IFS 2402 test -z "$as_dir" && as_dir=. 2403 for ac_exec_ext in '' $ac_executable_extensions; do 2404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2405 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2407 break 2 2408 fi 2409done 2410done 2411 2412fi 2413fi 2414CC=$ac_cv_prog_CC 2415if test -n "$CC"; then 2416 echo "$as_me:$LINENO: result: $CC" >&5 2417echo "${ECHO_T}$CC" >&6 2418else 2419 echo "$as_me:$LINENO: result: no" >&5 2420echo "${ECHO_T}no" >&6 2421fi 2422 2423 test -n "$CC" && break 2424 done 2425fi 2426if test -z "$CC"; then 2427 ac_ct_CC=$CC 2428 for ac_prog in cl 2429do 2430 # Extract the first word of "$ac_prog", so it can be a program name with args. 2431set dummy $ac_prog; ac_word=$2 2432echo "$as_me:$LINENO: checking for $ac_word" >&5 2433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2434if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2435 echo $ECHO_N "(cached) $ECHO_C" >&6 2436else 2437 if test -n "$ac_ct_CC"; then 2438 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2439else 2440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2441for as_dir in $PATH 2442do 2443 IFS=$as_save_IFS 2444 test -z "$as_dir" && as_dir=. 2445 for ac_exec_ext in '' $ac_executable_extensions; do 2446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2447 ac_cv_prog_ac_ct_CC="$ac_prog" 2448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2449 break 2 2450 fi 2451done 2452done 2453 2454fi 2455fi 2456ac_ct_CC=$ac_cv_prog_ac_ct_CC 2457if test -n "$ac_ct_CC"; then 2458 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2459echo "${ECHO_T}$ac_ct_CC" >&6 2460else 2461 echo "$as_me:$LINENO: result: no" >&5 2462echo "${ECHO_T}no" >&6 2463fi 2464 2465 test -n "$ac_ct_CC" && break 2466done 2467 2468 CC=$ac_ct_CC 2469fi 2470 2471fi 2472 2473 2474test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2475See \`config.log' for more details." >&5 2476echo "$as_me: error: no acceptable C compiler found in \$PATH 2477See \`config.log' for more details." >&2;} 2478 { (exit 1); exit 1; }; } 2479 2480# Provide some information about the compiler. 2481echo "$as_me:$LINENO:" \ 2482 "checking for C compiler version" >&5 2483ac_compiler=`set X $ac_compile; echo $2` 2484{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2485 (eval $ac_compiler --version </dev/null >&5) 2>&5 2486 ac_status=$? 2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2488 (exit $ac_status); } 2489{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2490 (eval $ac_compiler -v </dev/null >&5) 2>&5 2491 ac_status=$? 2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2493 (exit $ac_status); } 2494{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2495 (eval $ac_compiler -V </dev/null >&5) 2>&5 2496 ac_status=$? 2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2498 (exit $ac_status); } 2499 2500cat >conftest.$ac_ext <<_ACEOF 2501/* confdefs.h. */ 2502_ACEOF 2503cat confdefs.h >>conftest.$ac_ext 2504cat >>conftest.$ac_ext <<_ACEOF 2505/* end confdefs.h. */ 2506 2507int 2508main () 2509{ 2510 2511 ; 2512 return 0; 2513} 2514_ACEOF 2515ac_clean_files_save=$ac_clean_files 2516ac_clean_files="$ac_clean_files a.out a.exe b.out" 2517# Try to create an executable without -o first, disregard a.out. 2518# It will help us diagnose broken compilers, and finding out an intuition 2519# of exeext. 2520echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2521echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2522ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2523if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2524 (eval $ac_link_default) 2>&5 2525 ac_status=$? 2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2527 (exit $ac_status); }; then 2528 # Find the output, starting from the most likely. This scheme is 2529# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2530# resort. 2531 2532# Be careful to initialize this variable, since it used to be cached. 2533# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2534ac_cv_exeext= 2535# b.out is created by i960 compilers. 2536for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2537do 2538 test -f "$ac_file" || continue 2539 case $ac_file in 2540 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2541 ;; 2542 conftest.$ac_ext ) 2543 # This is the source file. 2544 ;; 2545 [ab].out ) 2546 # We found the default executable, but exeext='' is most 2547 # certainly right. 2548 break;; 2549 *.* ) 2550 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2551 # FIXME: I believe we export ac_cv_exeext for Libtool, 2552 # but it would be cool to find out if it's true. Does anybody 2553 # maintain Libtool? --akim. 2554 export ac_cv_exeext 2555 break;; 2556 * ) 2557 break;; 2558 esac 2559done 2560else 2561 echo "$as_me: failed program was:" >&5 2562sed 's/^/| /' conftest.$ac_ext >&5 2563 2564{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2565See \`config.log' for more details." >&5 2566echo "$as_me: error: C compiler cannot create executables 2567See \`config.log' for more details." >&2;} 2568 { (exit 77); exit 77; }; } 2569fi 2570 2571ac_exeext=$ac_cv_exeext 2572echo "$as_me:$LINENO: result: $ac_file" >&5 2573echo "${ECHO_T}$ac_file" >&6 2574 2575# Check the compiler produces executables we can run. If not, either 2576# the compiler is broken, or we cross compile. 2577echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2578echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2579# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2580# If not cross compiling, check that we can run a simple program. 2581if test "$cross_compiling" != yes; then 2582 if { ac_try='./$ac_file' 2583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2584 (eval $ac_try) 2>&5 2585 ac_status=$? 2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2587 (exit $ac_status); }; }; then 2588 cross_compiling=no 2589 else 2590 if test "$cross_compiling" = maybe; then 2591 cross_compiling=yes 2592 else 2593 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2594If you meant to cross compile, use \`--host'. 2595See \`config.log' for more details." >&5 2596echo "$as_me: error: cannot run C compiled programs. 2597If you meant to cross compile, use \`--host'. 2598See \`config.log' for more details." >&2;} 2599 { (exit 1); exit 1; }; } 2600 fi 2601 fi 2602fi 2603echo "$as_me:$LINENO: result: yes" >&5 2604echo "${ECHO_T}yes" >&6 2605 2606rm -f a.out a.exe conftest$ac_cv_exeext b.out 2607ac_clean_files=$ac_clean_files_save 2608# Check the compiler produces executables we can run. If not, either 2609# the compiler is broken, or we cross compile. 2610echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2611echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2612echo "$as_me:$LINENO: result: $cross_compiling" >&5 2613echo "${ECHO_T}$cross_compiling" >&6 2614 2615echo "$as_me:$LINENO: checking for suffix of executables" >&5 2616echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2618 (eval $ac_link) 2>&5 2619 ac_status=$? 2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2621 (exit $ac_status); }; then 2622 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2623# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2624# work properly (i.e., refer to `conftest.exe'), while it won't with 2625# `rm'. 2626for ac_file in conftest.exe conftest conftest.*; do 2627 test -f "$ac_file" || continue 2628 case $ac_file in 2629 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2630 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2631 export ac_cv_exeext 2632 break;; 2633 * ) break;; 2634 esac 2635done 2636else 2637 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2638See \`config.log' for more details." >&5 2639echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2640See \`config.log' for more details." >&2;} 2641 { (exit 1); exit 1; }; } 2642fi 2643 2644rm -f conftest$ac_cv_exeext 2645echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2646echo "${ECHO_T}$ac_cv_exeext" >&6 2647 2648rm -f conftest.$ac_ext 2649EXEEXT=$ac_cv_exeext 2650ac_exeext=$EXEEXT 2651echo "$as_me:$LINENO: checking for suffix of object files" >&5 2652echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2653if test "${ac_cv_objext+set}" = set; then 2654 echo $ECHO_N "(cached) $ECHO_C" >&6 2655else 2656 cat >conftest.$ac_ext <<_ACEOF 2657/* confdefs.h. */ 2658_ACEOF 2659cat confdefs.h >>conftest.$ac_ext 2660cat >>conftest.$ac_ext <<_ACEOF 2661/* end confdefs.h. */ 2662 2663int 2664main () 2665{ 2666 2667 ; 2668 return 0; 2669} 2670_ACEOF 2671rm -f conftest.o conftest.obj 2672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2673 (eval $ac_compile) 2>&5 2674 ac_status=$? 2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2676 (exit $ac_status); }; then 2677 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2678 case $ac_file in 2679 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2680 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2681 break;; 2682 esac 2683done 2684else 2685 echo "$as_me: failed program was:" >&5 2686sed 's/^/| /' conftest.$ac_ext >&5 2687 2688{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2689See \`config.log' for more details." >&5 2690echo "$as_me: error: cannot compute suffix of object files: cannot compile 2691See \`config.log' for more details." >&2;} 2692 { (exit 1); exit 1; }; } 2693fi 2694 2695rm -f conftest.$ac_cv_objext conftest.$ac_ext 2696fi 2697echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2698echo "${ECHO_T}$ac_cv_objext" >&6 2699OBJEXT=$ac_cv_objext 2700ac_objext=$OBJEXT 2701echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2702echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2703if test "${ac_cv_c_compiler_gnu+set}" = set; then 2704 echo $ECHO_N "(cached) $ECHO_C" >&6 2705else 2706 cat >conftest.$ac_ext <<_ACEOF 2707/* confdefs.h. */ 2708_ACEOF 2709cat confdefs.h >>conftest.$ac_ext 2710cat >>conftest.$ac_ext <<_ACEOF 2711/* end confdefs.h. */ 2712 2713int 2714main () 2715{ 2716#ifndef __GNUC__ 2717 choke me 2718#endif 2719 2720 ; 2721 return 0; 2722} 2723_ACEOF 2724rm -f conftest.$ac_objext 2725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2726 (eval $ac_compile) 2>conftest.er1 2727 ac_status=$? 2728 grep -v '^ *+' conftest.er1 >conftest.err 2729 rm -f conftest.er1 2730 cat conftest.err >&5 2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2732 (exit $ac_status); } && 2733 { ac_try='test -z "$ac_c_werror_flag" 2734 || test ! -s conftest.err' 2735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2736 (eval $ac_try) 2>&5 2737 ac_status=$? 2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2739 (exit $ac_status); }; } && 2740 { ac_try='test -s conftest.$ac_objext' 2741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2742 (eval $ac_try) 2>&5 2743 ac_status=$? 2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2745 (exit $ac_status); }; }; then 2746 ac_compiler_gnu=yes 2747else 2748 echo "$as_me: failed program was:" >&5 2749sed 's/^/| /' conftest.$ac_ext >&5 2750 2751ac_compiler_gnu=no 2752fi 2753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2754ac_cv_c_compiler_gnu=$ac_compiler_gnu 2755 2756fi 2757echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2758echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2759GCC=`test $ac_compiler_gnu = yes && echo yes` 2760ac_test_CFLAGS=${CFLAGS+set} 2761ac_save_CFLAGS=$CFLAGS 2762CFLAGS="-g" 2763echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2764echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2765if test "${ac_cv_prog_cc_g+set}" = set; then 2766 echo $ECHO_N "(cached) $ECHO_C" >&6 2767else 2768 cat >conftest.$ac_ext <<_ACEOF 2769/* confdefs.h. */ 2770_ACEOF 2771cat confdefs.h >>conftest.$ac_ext 2772cat >>conftest.$ac_ext <<_ACEOF 2773/* end confdefs.h. */ 2774 2775int 2776main () 2777{ 2778 2779 ; 2780 return 0; 2781} 2782_ACEOF 2783rm -f conftest.$ac_objext 2784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2785 (eval $ac_compile) 2>conftest.er1 2786 ac_status=$? 2787 grep -v '^ *+' conftest.er1 >conftest.err 2788 rm -f conftest.er1 2789 cat conftest.err >&5 2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2791 (exit $ac_status); } && 2792 { ac_try='test -z "$ac_c_werror_flag" 2793 || test ! -s conftest.err' 2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2795 (eval $ac_try) 2>&5 2796 ac_status=$? 2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2798 (exit $ac_status); }; } && 2799 { ac_try='test -s conftest.$ac_objext' 2800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2801 (eval $ac_try) 2>&5 2802 ac_status=$? 2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2804 (exit $ac_status); }; }; then 2805 ac_cv_prog_cc_g=yes 2806else 2807 echo "$as_me: failed program was:" >&5 2808sed 's/^/| /' conftest.$ac_ext >&5 2809 2810ac_cv_prog_cc_g=no 2811fi 2812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2813fi 2814echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2815echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2816if test "$ac_test_CFLAGS" = set; then 2817 CFLAGS=$ac_save_CFLAGS 2818elif test $ac_cv_prog_cc_g = yes; then 2819 if test "$GCC" = yes; then 2820 CFLAGS="-g -O2" 2821 else 2822 CFLAGS="-g" 2823 fi 2824else 2825 if test "$GCC" = yes; then 2826 CFLAGS="-O2" 2827 else 2828 CFLAGS= 2829 fi 2830fi 2831echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2832echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2833if test "${ac_cv_prog_cc_stdc+set}" = set; then 2834 echo $ECHO_N "(cached) $ECHO_C" >&6 2835else 2836 ac_cv_prog_cc_stdc=no 2837ac_save_CC=$CC 2838cat >conftest.$ac_ext <<_ACEOF 2839/* confdefs.h. */ 2840_ACEOF 2841cat confdefs.h >>conftest.$ac_ext 2842cat >>conftest.$ac_ext <<_ACEOF 2843/* end confdefs.h. */ 2844#include <stdarg.h> 2845#include <stdio.h> 2846#include <sys/types.h> 2847#include <sys/stat.h> 2848/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2849struct buf { int x; }; 2850FILE * (*rcsopen) (struct buf *, struct stat *, int); 2851static char *e (p, i) 2852 char **p; 2853 int i; 2854{ 2855 return p[i]; 2856} 2857static char *f (char * (*g) (char **, int), char **p, ...) 2858{ 2859 char *s; 2860 va_list v; 2861 va_start (v,p); 2862 s = g (p, va_arg (v,int)); 2863 va_end (v); 2864 return s; 2865} 2866 2867/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2868 function prototypes and stuff, but not '\xHH' hex character constants. 2869 These don't provoke an error unfortunately, instead are silently treated 2870 as 'x'. The following induces an error, until -std1 is added to get 2871 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2872 array size at least. It's necessary to write '\x00'==0 to get something 2873 that's true only with -std1. */ 2874int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2875 2876int test (int i, double x); 2877struct s1 {int (*f) (int a);}; 2878struct s2 {int (*f) (double a);}; 2879int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2880int argc; 2881char **argv; 2882int 2883main () 2884{ 2885return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2886 ; 2887 return 0; 2888} 2889_ACEOF 2890# Don't try gcc -ansi; that turns off useful extensions and 2891# breaks some systems' header files. 2892# AIX -qlanglvl=ansi 2893# Ultrix and OSF/1 -std1 2894# HP-UX 10.20 and later -Ae 2895# HP-UX older versions -Aa -D_HPUX_SOURCE 2896# SVR4 -Xc -D__EXTENSIONS__ 2897for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2898do 2899 CC="$ac_save_CC $ac_arg" 2900 rm -f conftest.$ac_objext 2901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2902 (eval $ac_compile) 2>conftest.er1 2903 ac_status=$? 2904 grep -v '^ *+' conftest.er1 >conftest.err 2905 rm -f conftest.er1 2906 cat conftest.err >&5 2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2908 (exit $ac_status); } && 2909 { ac_try='test -z "$ac_c_werror_flag" 2910 || test ! -s conftest.err' 2911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2912 (eval $ac_try) 2>&5 2913 ac_status=$? 2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2915 (exit $ac_status); }; } && 2916 { ac_try='test -s conftest.$ac_objext' 2917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2918 (eval $ac_try) 2>&5 2919 ac_status=$? 2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2921 (exit $ac_status); }; }; then 2922 ac_cv_prog_cc_stdc=$ac_arg 2923break 2924else 2925 echo "$as_me: failed program was:" >&5 2926sed 's/^/| /' conftest.$ac_ext >&5 2927 2928fi 2929rm -f conftest.err conftest.$ac_objext 2930done 2931rm -f conftest.$ac_ext conftest.$ac_objext 2932CC=$ac_save_CC 2933 2934fi 2935 2936case "x$ac_cv_prog_cc_stdc" in 2937 x|xno) 2938 echo "$as_me:$LINENO: result: none needed" >&5 2939echo "${ECHO_T}none needed" >&6 ;; 2940 *) 2941 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2942echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2943 CC="$CC $ac_cv_prog_cc_stdc" ;; 2944esac 2945 2946# Some people use a C++ compiler to compile C. Since we use `exit', 2947# in C++ we need to declare it. In case someone uses the same compiler 2948# for both compiling C and C++ we need to have the C++ compiler decide 2949# the declaration of exit, since it's the most demanding environment. 2950cat >conftest.$ac_ext <<_ACEOF 2951#ifndef __cplusplus 2952 choke me 2953#endif 2954_ACEOF 2955rm -f conftest.$ac_objext 2956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2957 (eval $ac_compile) 2>conftest.er1 2958 ac_status=$? 2959 grep -v '^ *+' conftest.er1 >conftest.err 2960 rm -f conftest.er1 2961 cat conftest.err >&5 2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2963 (exit $ac_status); } && 2964 { ac_try='test -z "$ac_c_werror_flag" 2965 || test ! -s conftest.err' 2966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2967 (eval $ac_try) 2>&5 2968 ac_status=$? 2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2970 (exit $ac_status); }; } && 2971 { ac_try='test -s conftest.$ac_objext' 2972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2973 (eval $ac_try) 2>&5 2974 ac_status=$? 2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2976 (exit $ac_status); }; }; then 2977 for ac_declaration in \ 2978 '' \ 2979 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2980 'extern "C" void std::exit (int); using std::exit;' \ 2981 'extern "C" void exit (int) throw ();' \ 2982 'extern "C" void exit (int);' \ 2983 'void exit (int);' 2984do 2985 cat >conftest.$ac_ext <<_ACEOF 2986/* confdefs.h. */ 2987_ACEOF 2988cat confdefs.h >>conftest.$ac_ext 2989cat >>conftest.$ac_ext <<_ACEOF 2990/* end confdefs.h. */ 2991$ac_declaration 2992#include <stdlib.h> 2993int 2994main () 2995{ 2996exit (42); 2997 ; 2998 return 0; 2999} 3000_ACEOF 3001rm -f conftest.$ac_objext 3002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3003 (eval $ac_compile) 2>conftest.er1 3004 ac_status=$? 3005 grep -v '^ *+' conftest.er1 >conftest.err 3006 rm -f conftest.er1 3007 cat conftest.err >&5 3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3009 (exit $ac_status); } && 3010 { ac_try='test -z "$ac_c_werror_flag" 3011 || test ! -s conftest.err' 3012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3013 (eval $ac_try) 2>&5 3014 ac_status=$? 3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3016 (exit $ac_status); }; } && 3017 { ac_try='test -s conftest.$ac_objext' 3018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3019 (eval $ac_try) 2>&5 3020 ac_status=$? 3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3022 (exit $ac_status); }; }; then 3023 : 3024else 3025 echo "$as_me: failed program was:" >&5 3026sed 's/^/| /' conftest.$ac_ext >&5 3027 3028continue 3029fi 3030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3031 cat >conftest.$ac_ext <<_ACEOF 3032/* confdefs.h. */ 3033_ACEOF 3034cat confdefs.h >>conftest.$ac_ext 3035cat >>conftest.$ac_ext <<_ACEOF 3036/* end confdefs.h. */ 3037$ac_declaration 3038int 3039main () 3040{ 3041exit (42); 3042 ; 3043 return 0; 3044} 3045_ACEOF 3046rm -f conftest.$ac_objext 3047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3048 (eval $ac_compile) 2>conftest.er1 3049 ac_status=$? 3050 grep -v '^ *+' conftest.er1 >conftest.err 3051 rm -f conftest.er1 3052 cat conftest.err >&5 3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3054 (exit $ac_status); } && 3055 { ac_try='test -z "$ac_c_werror_flag" 3056 || test ! -s conftest.err' 3057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3058 (eval $ac_try) 2>&5 3059 ac_status=$? 3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3061 (exit $ac_status); }; } && 3062 { ac_try='test -s conftest.$ac_objext' 3063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3064 (eval $ac_try) 2>&5 3065 ac_status=$? 3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3067 (exit $ac_status); }; }; then 3068 break 3069else 3070 echo "$as_me: failed program was:" >&5 3071sed 's/^/| /' conftest.$ac_ext >&5 3072 3073fi 3074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3075done 3076rm -f conftest* 3077if test -n "$ac_declaration"; then 3078 echo '#ifdef __cplusplus' >>confdefs.h 3079 echo $ac_declaration >>confdefs.h 3080 echo '#endif' >>confdefs.h 3081fi 3082 3083else 3084 echo "$as_me: failed program was:" >&5 3085sed 's/^/| /' conftest.$ac_ext >&5 3086 3087fi 3088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3089ac_ext=cc 3090ac_cpp='$CXXCPP $CPPFLAGS' 3091ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3092ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3093ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3094 3095depcc="$CC" am_compiler_list= 3096 3097echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3098echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3099if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3100 echo $ECHO_N "(cached) $ECHO_C" >&6 3101else 3102 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3103 # We make a subdir and do the tests there. Otherwise we can end up 3104 # making bogus files that we don't know about and never remove. For 3105 # instance it was reported that on HP-UX the gcc test will end up 3106 # making a dummy file named `D' -- because `-MD' means `put the output 3107 # in D'. 3108 mkdir conftest.dir 3109 # Copy depcomp to subdir because otherwise we won't find it if we're 3110 # using a relative directory. 3111 cp "$am_depcomp" conftest.dir 3112 cd conftest.dir 3113 # We will build objects and dependencies in a subdirectory because 3114 # it helps to detect inapplicable dependency modes. For instance 3115 # both Tru64's cc and ICC support -MD to output dependencies as a 3116 # side effect of compilation, but ICC will put the dependencies in 3117 # the current directory while Tru64 will put them in the object 3118 # directory. 3119 mkdir sub 3120 3121 am_cv_CC_dependencies_compiler_type=none 3122 if test "$am_compiler_list" = ""; then 3123 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3124 fi 3125 for depmode in $am_compiler_list; do 3126 # Setup a source with many dependencies, because some compilers 3127 # like to wrap large dependency lists on column 80 (with \), and 3128 # we should not choose a depcomp mode which is confused by this. 3129 # 3130 # We need to recreate these files for each test, as the compiler may 3131 # overwrite some of them when testing with obscure command lines. 3132 # This happens at least with the AIX C compiler. 3133 : > sub/conftest.c 3134 for i in 1 2 3 4 5 6; do 3135 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3136 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3137 # Solaris 8's {/usr,}/bin/sh. 3138 touch sub/conftst$i.h 3139 done 3140 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3141 3142 case $depmode in 3143 nosideeffect) 3144 # after this tag, mechanisms are not by side-effect, so they'll 3145 # only be used when explicitly requested 3146 if test "x$enable_dependency_tracking" = xyes; then 3147 continue 3148 else 3149 break 3150 fi 3151 ;; 3152 none) break ;; 3153 esac 3154 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3155 # mode. It turns out that the SunPro C++ compiler does not properly 3156 # handle `-M -o', and we need to detect this. 3157 if depmode=$depmode \ 3158 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3159 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3160 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3161 >/dev/null 2>conftest.err && 3162 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3163 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3164 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3165 # icc doesn't choke on unknown options, it will just issue warnings 3166 # or remarks (even with -Werror). So we grep stderr for any message 3167 # that says an option was ignored or not supported. 3168 # When given -MP, icc 7.0 and 7.1 complain thusly: 3169 # icc: Command line warning: ignoring option '-M'; no argument required 3170 # The diagnosis changed in icc 8.0: 3171 # icc: Command line remark: option '-MP' not supported 3172 if (grep 'ignoring option' conftest.err || 3173 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3174 am_cv_CC_dependencies_compiler_type=$depmode 3175 break 3176 fi 3177 fi 3178 done 3179 3180 cd .. 3181 rm -rf conftest.dir 3182else 3183 am_cv_CC_dependencies_compiler_type=none 3184fi 3185 3186fi 3187echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3188echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3189CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3190 3191 3192 3193if 3194 test "x$enable_dependency_tracking" != xno \ 3195 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3196 am__fastdepCC_TRUE= 3197 am__fastdepCC_FALSE='#' 3198else 3199 am__fastdepCC_TRUE='#' 3200 am__fastdepCC_FALSE= 3201fi 3202 3203 3204echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3205echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 3206if test "${lt_cv_path_SED+set}" = set; then 3207 echo $ECHO_N "(cached) $ECHO_C" >&6 3208else 3209 # Loop through the user's path and test for sed and gsed. 3210# Then use that list of sed's as ones to test for truncation. 3211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3212for as_dir in $PATH 3213do 3214 IFS=$as_save_IFS 3215 test -z "$as_dir" && as_dir=. 3216 for lt_ac_prog in sed gsed; do 3217 for ac_exec_ext in '' $ac_executable_extensions; do 3218 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3219 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3220 fi 3221 done 3222 done 3223done 3224lt_ac_max=0 3225lt_ac_count=0 3226# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3227# along with /bin/sed that truncates output. 3228for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3229 test ! -f $lt_ac_sed && continue 3230 cat /dev/null > conftest.in 3231 lt_ac_count=0 3232 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3233 # Check for GNU sed and select it if it is found. 3234 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3235 lt_cv_path_SED=$lt_ac_sed 3236 break 3237 fi 3238 while true; do 3239 cat conftest.in conftest.in >conftest.tmp 3240 mv conftest.tmp conftest.in 3241 cp conftest.in conftest.nl 3242 echo >>conftest.nl 3243 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3244 cmp -s conftest.out conftest.nl || break 3245 # 10000 chars as input seems more than enough 3246 test $lt_ac_count -gt 10 && break 3247 lt_ac_count=`expr $lt_ac_count + 1` 3248 if test $lt_ac_count -gt $lt_ac_max; then 3249 lt_ac_max=$lt_ac_count 3250 lt_cv_path_SED=$lt_ac_sed 3251 fi 3252 done 3253done 3254 3255fi 3256 3257SED=$lt_cv_path_SED 3258echo "$as_me:$LINENO: result: $SED" >&5 3259echo "${ECHO_T}$SED" >&6 3260 3261echo "$as_me:$LINENO: checking for egrep" >&5 3262echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3263if test "${ac_cv_prog_egrep+set}" = set; then 3264 echo $ECHO_N "(cached) $ECHO_C" >&6 3265else 3266 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3267 then ac_cv_prog_egrep='grep -E' 3268 else ac_cv_prog_egrep='egrep' 3269 fi 3270fi 3271echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3272echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3273 EGREP=$ac_cv_prog_egrep 3274 3275 3276 3277# Check whether --with-gnu-ld or --without-gnu-ld was given. 3278if test "${with_gnu_ld+set}" = set; then 3279 withval="$with_gnu_ld" 3280 test "$withval" = no || with_gnu_ld=yes 3281else 3282 with_gnu_ld=no 3283fi; 3284ac_prog=ld 3285if test "$GCC" = yes; then 3286 # Check if gcc -print-prog-name=ld gives a path. 3287 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3288echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 3289 case $host in 3290 *-*-mingw*) 3291 # gcc leaves a trailing carriage return which upsets mingw 3292 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3293 *) 3294 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3295 esac 3296 case $ac_prog in 3297 # Accept absolute paths. 3298 [\\/]* | ?:[\\/]*) 3299 re_direlt='/[^/][^/]*/\.\./' 3300 # Canonicalize the pathname of ld 3301 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3302 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3303 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3304 done 3305 test -z "$LD" && LD="$ac_prog" 3306 ;; 3307 "") 3308 # If it fails, then pretend we aren't using GCC. 3309 ac_prog=ld 3310 ;; 3311 *) 3312 # If it is relative, then search for the first ld in PATH. 3313 with_gnu_ld=unknown 3314 ;; 3315 esac 3316elif test "$with_gnu_ld" = yes; then 3317 echo "$as_me:$LINENO: checking for GNU ld" >&5 3318echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3319else 3320 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3321echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3322fi 3323if test "${lt_cv_path_LD+set}" = set; then 3324 echo $ECHO_N "(cached) $ECHO_C" >&6 3325else 3326 if test -z "$LD"; then 3327 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3328 for ac_dir in $PATH; do 3329 IFS="$lt_save_ifs" 3330 test -z "$ac_dir" && ac_dir=. 3331 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3332 lt_cv_path_LD="$ac_dir/$ac_prog" 3333 # Check to see if the program is GNU ld. I'd rather use --version, 3334 # but apparently some variants of GNU ld only accept -v. 3335 # Break only if it was the GNU/non-GNU ld that we prefer. 3336 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3337 *GNU* | *'with BFD'*) 3338 test "$with_gnu_ld" != no && break 3339 ;; 3340 *) 3341 test "$with_gnu_ld" != yes && break 3342 ;; 3343 esac 3344 fi 3345 done 3346 IFS="$lt_save_ifs" 3347else 3348 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3349fi 3350fi 3351 3352LD="$lt_cv_path_LD" 3353if test -n "$LD"; then 3354 echo "$as_me:$LINENO: result: $LD" >&5 3355echo "${ECHO_T}$LD" >&6 3356else 3357 echo "$as_me:$LINENO: result: no" >&5 3358echo "${ECHO_T}no" >&6 3359fi 3360test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3361echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3362 { (exit 1); exit 1; }; } 3363echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3364echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3365if test "${lt_cv_prog_gnu_ld+set}" = set; then 3366 echo $ECHO_N "(cached) $ECHO_C" >&6 3367else 3368 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3369case `$LD -v 2>&1 </dev/null` in 3370*GNU* | *'with BFD'*) 3371 lt_cv_prog_gnu_ld=yes 3372 ;; 3373*) 3374 lt_cv_prog_gnu_ld=no 3375 ;; 3376esac 3377fi 3378echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3379echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3380with_gnu_ld=$lt_cv_prog_gnu_ld 3381 3382 3383echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3384echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3385if test "${lt_cv_ld_reload_flag+set}" = set; then 3386 echo $ECHO_N "(cached) $ECHO_C" >&6 3387else 3388 lt_cv_ld_reload_flag='-r' 3389fi 3390echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3391echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3392reload_flag=$lt_cv_ld_reload_flag 3393case $reload_flag in 3394"" | " "*) ;; 3395*) reload_flag=" $reload_flag" ;; 3396esac 3397reload_cmds='$LD$reload_flag -o $output$reload_objs' 3398case $host_os in 3399 darwin*) 3400 if test "$GCC" = yes; then 3401 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 3402 else 3403 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3404 fi 3405 ;; 3406esac 3407 3408echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3409echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3410if test "${lt_cv_path_NM+set}" = set; then 3411 echo $ECHO_N "(cached) $ECHO_C" >&6 3412else 3413 if test -n "$NM"; then 3414 # Let the user override the test. 3415 lt_cv_path_NM="$NM" 3416else 3417 lt_nm_to_check="${ac_tool_prefix}nm" 3418 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3419 lt_nm_to_check="$lt_nm_to_check nm" 3420 fi 3421 for lt_tmp_nm in $lt_nm_to_check; do 3422 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3423 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 3424 IFS="$lt_save_ifs" 3425 test -z "$ac_dir" && ac_dir=. 3426 tmp_nm="$ac_dir/$lt_tmp_nm" 3427 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3428 # Check to see if the nm accepts a BSD-compat flag. 3429 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3430 # nm: unknown option "B" ignored 3431 # Tru64's nm complains that /dev/null is an invalid object file 3432 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3433 */dev/null* | *'Invalid file or object type'*) 3434 lt_cv_path_NM="$tmp_nm -B" 3435 break 3436 ;; 3437 *) 3438 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3439 */dev/null*) 3440 lt_cv_path_NM="$tmp_nm -p" 3441 break 3442 ;; 3443 *) 3444 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3445 continue # so that we can try to find one that supports BSD flags 3446 ;; 3447 esac 3448 ;; 3449 esac 3450 fi 3451 done 3452 IFS="$lt_save_ifs" 3453 done 3454 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3455fi 3456fi 3457echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3458echo "${ECHO_T}$lt_cv_path_NM" >&6 3459NM="$lt_cv_path_NM" 3460 3461echo "$as_me:$LINENO: checking whether ln -s works" >&5 3462echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3463LN_S=$as_ln_s 3464if test "$LN_S" = "ln -s"; then 3465 echo "$as_me:$LINENO: result: yes" >&5 3466echo "${ECHO_T}yes" >&6 3467else 3468 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3469echo "${ECHO_T}no, using $LN_S" >&6 3470fi 3471 3472echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 3473echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 3474if test "${lt_cv_deplibs_check_method+set}" = set; then 3475 echo $ECHO_N "(cached) $ECHO_C" >&6 3476else 3477 lt_cv_file_magic_cmd='$MAGIC_CMD' 3478lt_cv_file_magic_test_file= 3479lt_cv_deplibs_check_method='unknown' 3480# Need to set the preceding variable on all platforms that support 3481# interlibrary dependencies. 3482# 'none' -- dependencies not supported. 3483# `unknown' -- same as none, but documents that we really don't know. 3484# 'pass_all' -- all dependencies passed with no checks. 3485# 'test_compile' -- check by making test program. 3486# 'file_magic [[regex]]' -- check by looking for files in library path 3487# which responds to the $file_magic_cmd with a given extended regex. 3488# If you have `file' or equivalent on your system and you're not sure 3489# whether `pass_all' will *always* work, you probably want this one. 3490 3491case $host_os in 3492aix4* | aix5*) 3493 lt_cv_deplibs_check_method=pass_all 3494 ;; 3495 3496beos*) 3497 lt_cv_deplibs_check_method=pass_all 3498 ;; 3499 3500bsdi[45]*) 3501 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3502 lt_cv_file_magic_cmd='/usr/bin/file -L' 3503 lt_cv_file_magic_test_file=/shlib/libc.so 3504 ;; 3505 3506cygwin*) 3507 # func_win32_libid is a shell function defined in ltmain.sh 3508 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3509 lt_cv_file_magic_cmd='func_win32_libid' 3510 ;; 3511 3512mingw* | pw32*) 3513 # Base MSYS/MinGW do not provide the 'file' command needed by 3514 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 3515 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3516 lt_cv_file_magic_cmd='$OBJDUMP -f' 3517 ;; 3518 3519darwin* | rhapsody*) 3520 lt_cv_deplibs_check_method=pass_all 3521 ;; 3522 3523freebsd* | kfreebsd*-gnu | dragonfly*) 3524 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3525 case $host_cpu in 3526 i*86 ) 3527 # Not sure whether the presence of OpenBSD here was a mistake. 3528 # Let's accept both of them until this is cleared up. 3529 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 3530 lt_cv_file_magic_cmd=/usr/bin/file 3531 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3532 ;; 3533 esac 3534 else 3535 lt_cv_deplibs_check_method=pass_all 3536 fi 3537 ;; 3538 3539gnu*) 3540 lt_cv_deplibs_check_method=pass_all 3541 ;; 3542 3543hpux10.20* | hpux11*) 3544 lt_cv_file_magic_cmd=/usr/bin/file 3545 case $host_cpu in 3546 ia64*) 3547 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 3548 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3549 ;; 3550 hppa*64*) 3551 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]' 3552 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3553 ;; 3554 *) 3555 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3556 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3557 ;; 3558 esac 3559 ;; 3560 3561interix3*) 3562 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 3563 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 3564 ;; 3565 3566irix5* | irix6* | nonstopux*) 3567 case $LD in 3568 *-32|*"-32 ") libmagic=32-bit;; 3569 *-n32|*"-n32 ") libmagic=N32;; 3570 *-64|*"-64 ") libmagic=64-bit;; 3571 *) libmagic=never-match;; 3572 esac 3573 lt_cv_deplibs_check_method=pass_all 3574 ;; 3575 3576# This must be Linux ELF. 3577linux*) 3578 lt_cv_deplibs_check_method=pass_all 3579 ;; 3580 3581netbsd*) 3582 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3583 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3584 else 3585 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 3586 fi 3587 ;; 3588 3589newos6*) 3590 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 3591 lt_cv_file_magic_cmd=/usr/bin/file 3592 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3593 ;; 3594 3595nto-qnx*) 3596 lt_cv_deplibs_check_method=unknown 3597 ;; 3598 3599openbsd*) 3600 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3601 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 3602 else 3603 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3604 fi 3605 ;; 3606 3607osf3* | osf4* | osf5*) 3608 lt_cv_deplibs_check_method=pass_all 3609 ;; 3610 3611solaris*) 3612 lt_cv_deplibs_check_method=pass_all 3613 ;; 3614 3615sysv4 | sysv4.3*) 3616 case $host_vendor in 3617 motorola) 3618 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]' 3619 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3620 ;; 3621 ncr) 3622 lt_cv_deplibs_check_method=pass_all 3623 ;; 3624 sequent) 3625 lt_cv_file_magic_cmd='/bin/file' 3626 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 3627 ;; 3628 sni) 3629 lt_cv_file_magic_cmd='/bin/file' 3630 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 3631 lt_cv_file_magic_test_file=/lib/libc.so 3632 ;; 3633 siemens) 3634 lt_cv_deplibs_check_method=pass_all 3635 ;; 3636 pc) 3637 lt_cv_deplibs_check_method=pass_all 3638 ;; 3639 esac 3640 ;; 3641 3642sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 3643 lt_cv_deplibs_check_method=pass_all 3644 ;; 3645esac 3646 3647fi 3648echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 3649echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 3650file_magic_cmd=$lt_cv_file_magic_cmd 3651deplibs_check_method=$lt_cv_deplibs_check_method 3652test -z "$deplibs_check_method" && deplibs_check_method=unknown 3653 3654 3655 3656 3657# If no C compiler was specified, use CC. 3658LTCC=${LTCC-"$CC"} 3659 3660# If no C compiler flags were specified, use CFLAGS. 3661LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 3662 3663# Allow CC to be a program name with arguments. 3664compiler=$CC 3665 3666 3667# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 3668if test "${enable_libtool_lock+set}" = set; then 3669 enableval="$enable_libtool_lock" 3670 3671fi; 3672test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 3673 3674# Some flags need to be propagated to the compiler or linker for good 3675# libtool support. 3676case $host in 3677ia64-*-hpux*) 3678 # Find out which ABI we are using. 3679 echo 'int i;' > conftest.$ac_ext 3680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3681 (eval $ac_compile) 2>&5 3682 ac_status=$? 3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3684 (exit $ac_status); }; then 3685 case `/usr/bin/file conftest.$ac_objext` in 3686 *ELF-32*) 3687 HPUX_IA64_MODE="32" 3688 ;; 3689 *ELF-64*) 3690 HPUX_IA64_MODE="64" 3691 ;; 3692 esac 3693 fi 3694 rm -rf conftest* 3695 ;; 3696*-*-irix6*) 3697 # Find out which ABI we are using. 3698 echo '#line 3698 "configure"' > conftest.$ac_ext 3699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3700 (eval $ac_compile) 2>&5 3701 ac_status=$? 3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3703 (exit $ac_status); }; then 3704 if test "$lt_cv_prog_gnu_ld" = yes; then 3705 case `/usr/bin/file conftest.$ac_objext` in 3706 *32-bit*) 3707 LD="${LD-ld} -melf32bsmip" 3708 ;; 3709 *N32*) 3710 LD="${LD-ld} -melf32bmipn32" 3711 ;; 3712 *64-bit*) 3713 LD="${LD-ld} -melf64bmip" 3714 ;; 3715 esac 3716 else 3717 case `/usr/bin/file conftest.$ac_objext` in 3718 *32-bit*) 3719 LD="${LD-ld} -32" 3720 ;; 3721 *N32*) 3722 LD="${LD-ld} -n32" 3723 ;; 3724 *64-bit*) 3725 LD="${LD-ld} -64" 3726 ;; 3727 esac 3728 fi 3729 fi 3730 rm -rf conftest* 3731 ;; 3732 3733x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 3734 # Find out which ABI we are using. 3735 echo 'int i;' > conftest.$ac_ext 3736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3737 (eval $ac_compile) 2>&5 3738 ac_status=$? 3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3740 (exit $ac_status); }; then 3741 case `/usr/bin/file conftest.o` in 3742 *32-bit*) 3743 case $host in 3744 x86_64-*linux*) 3745 LD="${LD-ld} -m elf_i386" 3746 ;; 3747 ppc64-*linux*|powerpc64-*linux*) 3748 LD="${LD-ld} -m elf32ppclinux" 3749 ;; 3750 s390x-*linux*) 3751 LD="${LD-ld} -m elf_s390" 3752 ;; 3753 sparc64-*linux*) 3754 LD="${LD-ld} -m elf32_sparc" 3755 ;; 3756 esac 3757 ;; 3758 *64-bit*) 3759 case $host in 3760 x86_64-*linux*) 3761 LD="${LD-ld} -m elf_x86_64" 3762 ;; 3763 ppc*-*linux*|powerpc*-*linux*) 3764 LD="${LD-ld} -m elf64ppc" 3765 ;; 3766 s390*-*linux*) 3767 LD="${LD-ld} -m elf64_s390" 3768 ;; 3769 sparc*-*linux*) 3770 LD="${LD-ld} -m elf64_sparc" 3771 ;; 3772 esac 3773 ;; 3774 esac 3775 fi 3776 rm -rf conftest* 3777 ;; 3778 3779*-*-sco3.2v5*) 3780 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3781 SAVE_CFLAGS="$CFLAGS" 3782 CFLAGS="$CFLAGS -belf" 3783 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 3784echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 3785if test "${lt_cv_cc_needs_belf+set}" = set; then 3786 echo $ECHO_N "(cached) $ECHO_C" >&6 3787else 3788 ac_ext=c 3789ac_cpp='$CPP $CPPFLAGS' 3790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3792ac_compiler_gnu=$ac_cv_c_compiler_gnu 3793 3794 cat >conftest.$ac_ext <<_ACEOF 3795/* confdefs.h. */ 3796_ACEOF 3797cat confdefs.h >>conftest.$ac_ext 3798cat >>conftest.$ac_ext <<_ACEOF 3799/* end confdefs.h. */ 3800 3801int 3802main () 3803{ 3804 3805 ; 3806 return 0; 3807} 3808_ACEOF 3809rm -f conftest.$ac_objext conftest$ac_exeext 3810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3811 (eval $ac_link) 2>conftest.er1 3812 ac_status=$? 3813 grep -v '^ *+' conftest.er1 >conftest.err 3814 rm -f conftest.er1 3815 cat conftest.err >&5 3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3817 (exit $ac_status); } && 3818 { ac_try='test -z "$ac_c_werror_flag" 3819 || test ! -s conftest.err' 3820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3821 (eval $ac_try) 2>&5 3822 ac_status=$? 3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3824 (exit $ac_status); }; } && 3825 { ac_try='test -s conftest$ac_exeext' 3826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3827 (eval $ac_try) 2>&5 3828 ac_status=$? 3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3830 (exit $ac_status); }; }; then 3831 lt_cv_cc_needs_belf=yes 3832else 3833 echo "$as_me: failed program was:" >&5 3834sed 's/^/| /' conftest.$ac_ext >&5 3835 3836lt_cv_cc_needs_belf=no 3837fi 3838rm -f conftest.err conftest.$ac_objext \ 3839 conftest$ac_exeext conftest.$ac_ext 3840 ac_ext=c 3841ac_cpp='$CPP $CPPFLAGS' 3842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3844ac_compiler_gnu=$ac_cv_c_compiler_gnu 3845 3846fi 3847echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 3848echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 3849 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3850 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3851 CFLAGS="$SAVE_CFLAGS" 3852 fi 3853 ;; 3854sparc*-*solaris*) 3855 # Find out which ABI we are using. 3856 echo 'int i;' > conftest.$ac_ext 3857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3858 (eval $ac_compile) 2>&5 3859 ac_status=$? 3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3861 (exit $ac_status); }; then 3862 case `/usr/bin/file conftest.o` in 3863 *64-bit*) 3864 case $lt_cv_prog_gnu_ld in 3865 yes*) LD="${LD-ld} -m elf64_sparc" ;; 3866 *) LD="${LD-ld} -64" ;; 3867 esac 3868 ;; 3869 esac 3870 fi 3871 rm -rf conftest* 3872 ;; 3873 3874 3875esac 3876 3877need_locks="$enable_libtool_lock" 3878 3879 3880ac_ext=c 3881ac_cpp='$CPP $CPPFLAGS' 3882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3884ac_compiler_gnu=$ac_cv_c_compiler_gnu 3885echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3886echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3887# On Suns, sometimes $CPP names a directory. 3888if test -n "$CPP" && test -d "$CPP"; then 3889 CPP= 3890fi 3891if test -z "$CPP"; then 3892 if test "${ac_cv_prog_CPP+set}" = set; then 3893 echo $ECHO_N "(cached) $ECHO_C" >&6 3894else 3895 # Double quotes because CPP needs to be expanded 3896 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3897 do 3898 ac_preproc_ok=false 3899for ac_c_preproc_warn_flag in '' yes 3900do 3901 # Use a header file that comes with gcc, so configuring glibc 3902 # with a fresh cross-compiler works. 3903 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3904 # <limits.h> exists even on freestanding compilers. 3905 # On the NeXT, cc -E runs the code through the compiler's parser, 3906 # not just through cpp. "Syntax error" is here to catch this case. 3907 cat >conftest.$ac_ext <<_ACEOF 3908/* confdefs.h. */ 3909_ACEOF 3910cat confdefs.h >>conftest.$ac_ext 3911cat >>conftest.$ac_ext <<_ACEOF 3912/* end confdefs.h. */ 3913#ifdef __STDC__ 3914# include <limits.h> 3915#else 3916# include <assert.h> 3917#endif 3918 Syntax error 3919_ACEOF 3920if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3922 ac_status=$? 3923 grep -v '^ *+' conftest.er1 >conftest.err 3924 rm -f conftest.er1 3925 cat conftest.err >&5 3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3927 (exit $ac_status); } >/dev/null; then 3928 if test -s conftest.err; then 3929 ac_cpp_err=$ac_c_preproc_warn_flag 3930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3931 else 3932 ac_cpp_err= 3933 fi 3934else 3935 ac_cpp_err=yes 3936fi 3937if test -z "$ac_cpp_err"; then 3938 : 3939else 3940 echo "$as_me: failed program was:" >&5 3941sed 's/^/| /' conftest.$ac_ext >&5 3942 3943 # Broken: fails on valid input. 3944continue 3945fi 3946rm -f conftest.err conftest.$ac_ext 3947 3948 # OK, works on sane cases. Now check whether non-existent headers 3949 # can be detected and how. 3950 cat >conftest.$ac_ext <<_ACEOF 3951/* confdefs.h. */ 3952_ACEOF 3953cat confdefs.h >>conftest.$ac_ext 3954cat >>conftest.$ac_ext <<_ACEOF 3955/* end confdefs.h. */ 3956#include <ac_nonexistent.h> 3957_ACEOF 3958if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3960 ac_status=$? 3961 grep -v '^ *+' conftest.er1 >conftest.err 3962 rm -f conftest.er1 3963 cat conftest.err >&5 3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3965 (exit $ac_status); } >/dev/null; then 3966 if test -s conftest.err; then 3967 ac_cpp_err=$ac_c_preproc_warn_flag 3968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3969 else 3970 ac_cpp_err= 3971 fi 3972else 3973 ac_cpp_err=yes 3974fi 3975if test -z "$ac_cpp_err"; then 3976 # Broken: success on invalid input. 3977continue 3978else 3979 echo "$as_me: failed program was:" >&5 3980sed 's/^/| /' conftest.$ac_ext >&5 3981 3982 # Passes both tests. 3983ac_preproc_ok=: 3984break 3985fi 3986rm -f conftest.err conftest.$ac_ext 3987 3988done 3989# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3990rm -f conftest.err conftest.$ac_ext 3991if $ac_preproc_ok; then 3992 break 3993fi 3994 3995 done 3996 ac_cv_prog_CPP=$CPP 3997 3998fi 3999 CPP=$ac_cv_prog_CPP 4000else 4001 ac_cv_prog_CPP=$CPP 4002fi 4003echo "$as_me:$LINENO: result: $CPP" >&5 4004echo "${ECHO_T}$CPP" >&6 4005ac_preproc_ok=false 4006for ac_c_preproc_warn_flag in '' yes 4007do 4008 # Use a header file that comes with gcc, so configuring glibc 4009 # with a fresh cross-compiler works. 4010 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4011 # <limits.h> exists even on freestanding compilers. 4012 # On the NeXT, cc -E runs the code through the compiler's parser, 4013 # not just through cpp. "Syntax error" is here to catch this case. 4014 cat >conftest.$ac_ext <<_ACEOF 4015/* confdefs.h. */ 4016_ACEOF 4017cat confdefs.h >>conftest.$ac_ext 4018cat >>conftest.$ac_ext <<_ACEOF 4019/* end confdefs.h. */ 4020#ifdef __STDC__ 4021# include <limits.h> 4022#else 4023# include <assert.h> 4024#endif 4025 Syntax error 4026_ACEOF 4027if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4029 ac_status=$? 4030 grep -v '^ *+' conftest.er1 >conftest.err 4031 rm -f conftest.er1 4032 cat conftest.err >&5 4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4034 (exit $ac_status); } >/dev/null; then 4035 if test -s conftest.err; then 4036 ac_cpp_err=$ac_c_preproc_warn_flag 4037 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4038 else 4039 ac_cpp_err= 4040 fi 4041else 4042 ac_cpp_err=yes 4043fi 4044if test -z "$ac_cpp_err"; then 4045 : 4046else 4047 echo "$as_me: failed program was:" >&5 4048sed 's/^/| /' conftest.$ac_ext >&5 4049 4050 # Broken: fails on valid input. 4051continue 4052fi 4053rm -f conftest.err conftest.$ac_ext 4054 4055 # OK, works on sane cases. Now check whether non-existent headers 4056 # can be detected and how. 4057 cat >conftest.$ac_ext <<_ACEOF 4058/* confdefs.h. */ 4059_ACEOF 4060cat confdefs.h >>conftest.$ac_ext 4061cat >>conftest.$ac_ext <<_ACEOF 4062/* end confdefs.h. */ 4063#include <ac_nonexistent.h> 4064_ACEOF 4065if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4066 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4067 ac_status=$? 4068 grep -v '^ *+' conftest.er1 >conftest.err 4069 rm -f conftest.er1 4070 cat conftest.err >&5 4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4072 (exit $ac_status); } >/dev/null; then 4073 if test -s conftest.err; then 4074 ac_cpp_err=$ac_c_preproc_warn_flag 4075 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4076 else 4077 ac_cpp_err= 4078 fi 4079else 4080 ac_cpp_err=yes 4081fi 4082if test -z "$ac_cpp_err"; then 4083 # Broken: success on invalid input. 4084continue 4085else 4086 echo "$as_me: failed program was:" >&5 4087sed 's/^/| /' conftest.$ac_ext >&5 4088 4089 # Passes both tests. 4090ac_preproc_ok=: 4091break 4092fi 4093rm -f conftest.err conftest.$ac_ext 4094 4095done 4096# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4097rm -f conftest.err conftest.$ac_ext 4098if $ac_preproc_ok; then 4099 : 4100else 4101 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4102See \`config.log' for more details." >&5 4103echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4104See \`config.log' for more details." >&2;} 4105 { (exit 1); exit 1; }; } 4106fi 4107 4108ac_ext=c 4109ac_cpp='$CPP $CPPFLAGS' 4110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4112ac_compiler_gnu=$ac_cv_c_compiler_gnu 4113 4114 4115echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4116echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4117if test "${ac_cv_header_stdc+set}" = set; then 4118 echo $ECHO_N "(cached) $ECHO_C" >&6 4119else 4120 cat >conftest.$ac_ext <<_ACEOF 4121/* confdefs.h. */ 4122_ACEOF 4123cat confdefs.h >>conftest.$ac_ext 4124cat >>conftest.$ac_ext <<_ACEOF 4125/* end confdefs.h. */ 4126#include <stdlib.h> 4127#include <stdarg.h> 4128#include <string.h> 4129#include <float.h> 4130 4131int 4132main () 4133{ 4134 4135 ; 4136 return 0; 4137} 4138_ACEOF 4139rm -f conftest.$ac_objext 4140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4141 (eval $ac_compile) 2>conftest.er1 4142 ac_status=$? 4143 grep -v '^ *+' conftest.er1 >conftest.err 4144 rm -f conftest.er1 4145 cat conftest.err >&5 4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4147 (exit $ac_status); } && 4148 { ac_try='test -z "$ac_c_werror_flag" 4149 || test ! -s conftest.err' 4150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4151 (eval $ac_try) 2>&5 4152 ac_status=$? 4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4154 (exit $ac_status); }; } && 4155 { ac_try='test -s conftest.$ac_objext' 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); }; }; then 4161 ac_cv_header_stdc=yes 4162else 4163 echo "$as_me: failed program was:" >&5 4164sed 's/^/| /' conftest.$ac_ext >&5 4165 4166ac_cv_header_stdc=no 4167fi 4168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4169 4170if test $ac_cv_header_stdc = yes; then 4171 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4172 cat >conftest.$ac_ext <<_ACEOF 4173/* confdefs.h. */ 4174_ACEOF 4175cat confdefs.h >>conftest.$ac_ext 4176cat >>conftest.$ac_ext <<_ACEOF 4177/* end confdefs.h. */ 4178#include <string.h> 4179 4180_ACEOF 4181if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4182 $EGREP "memchr" >/dev/null 2>&1; then 4183 : 4184else 4185 ac_cv_header_stdc=no 4186fi 4187rm -f conftest* 4188 4189fi 4190 4191if test $ac_cv_header_stdc = yes; then 4192 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4193 cat >conftest.$ac_ext <<_ACEOF 4194/* confdefs.h. */ 4195_ACEOF 4196cat confdefs.h >>conftest.$ac_ext 4197cat >>conftest.$ac_ext <<_ACEOF 4198/* end confdefs.h. */ 4199#include <stdlib.h> 4200 4201_ACEOF 4202if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4203 $EGREP "free" >/dev/null 2>&1; then 4204 : 4205else 4206 ac_cv_header_stdc=no 4207fi 4208rm -f conftest* 4209 4210fi 4211 4212if test $ac_cv_header_stdc = yes; then 4213 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4214 if test "$cross_compiling" = yes; then 4215 : 4216else 4217 cat >conftest.$ac_ext <<_ACEOF 4218/* confdefs.h. */ 4219_ACEOF 4220cat confdefs.h >>conftest.$ac_ext 4221cat >>conftest.$ac_ext <<_ACEOF 4222/* end confdefs.h. */ 4223#include <ctype.h> 4224#if ((' ' & 0x0FF) == 0x020) 4225# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4226# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4227#else 4228# define ISLOWER(c) \ 4229 (('a' <= (c) && (c) <= 'i') \ 4230 || ('j' <= (c) && (c) <= 'r') \ 4231 || ('s' <= (c) && (c) <= 'z')) 4232# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4233#endif 4234 4235#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4236int 4237main () 4238{ 4239 int i; 4240 for (i = 0; i < 256; i++) 4241 if (XOR (islower (i), ISLOWER (i)) 4242 || toupper (i) != TOUPPER (i)) 4243 exit(2); 4244 exit (0); 4245} 4246_ACEOF 4247rm -f conftest$ac_exeext 4248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4249 (eval $ac_link) 2>&5 4250 ac_status=$? 4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4252 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4254 (eval $ac_try) 2>&5 4255 ac_status=$? 4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4257 (exit $ac_status); }; }; then 4258 : 4259else 4260 echo "$as_me: program exited with status $ac_status" >&5 4261echo "$as_me: failed program was:" >&5 4262sed 's/^/| /' conftest.$ac_ext >&5 4263 4264( exit $ac_status ) 4265ac_cv_header_stdc=no 4266fi 4267rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4268fi 4269fi 4270fi 4271echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4272echo "${ECHO_T}$ac_cv_header_stdc" >&6 4273if test $ac_cv_header_stdc = yes; then 4274 4275cat >>confdefs.h <<\_ACEOF 4276#define STDC_HEADERS 1 4277_ACEOF 4278 4279fi 4280 4281# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4292 inttypes.h stdint.h unistd.h 4293do 4294as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4295echo "$as_me:$LINENO: checking for $ac_header" >&5 4296echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4297if eval "test \"\${$as_ac_Header+set}\" = set"; then 4298 echo $ECHO_N "(cached) $ECHO_C" >&6 4299else 4300 cat >conftest.$ac_ext <<_ACEOF 4301/* confdefs.h. */ 4302_ACEOF 4303cat confdefs.h >>conftest.$ac_ext 4304cat >>conftest.$ac_ext <<_ACEOF 4305/* end confdefs.h. */ 4306$ac_includes_default 4307 4308#include <$ac_header> 4309_ACEOF 4310rm -f conftest.$ac_objext 4311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4312 (eval $ac_compile) 2>conftest.er1 4313 ac_status=$? 4314 grep -v '^ *+' conftest.er1 >conftest.err 4315 rm -f conftest.er1 4316 cat conftest.err >&5 4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4318 (exit $ac_status); } && 4319 { ac_try='test -z "$ac_c_werror_flag" 4320 || test ! -s conftest.err' 4321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4322 (eval $ac_try) 2>&5 4323 ac_status=$? 4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4325 (exit $ac_status); }; } && 4326 { ac_try='test -s conftest.$ac_objext' 4327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4328 (eval $ac_try) 2>&5 4329 ac_status=$? 4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4331 (exit $ac_status); }; }; then 4332 eval "$as_ac_Header=yes" 4333else 4334 echo "$as_me: failed program was:" >&5 4335sed 's/^/| /' conftest.$ac_ext >&5 4336 4337eval "$as_ac_Header=no" 4338fi 4339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4340fi 4341echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4342echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4343if test `eval echo '${'$as_ac_Header'}'` = yes; then 4344 cat >>confdefs.h <<_ACEOF 4345#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4346_ACEOF 4347 4348fi 4349 4350done 4351 4352 4353 4354for ac_header in dlfcn.h 4355do 4356as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4357if eval "test \"\${$as_ac_Header+set}\" = set"; then 4358 echo "$as_me:$LINENO: checking for $ac_header" >&5 4359echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4360if eval "test \"\${$as_ac_Header+set}\" = set"; then 4361 echo $ECHO_N "(cached) $ECHO_C" >&6 4362fi 4363echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4364echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4365else 4366 # Is the header compilable? 4367echo "$as_me:$LINENO: checking $ac_header usability" >&5 4368echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4369cat >conftest.$ac_ext <<_ACEOF 4370/* confdefs.h. */ 4371_ACEOF 4372cat confdefs.h >>conftest.$ac_ext 4373cat >>conftest.$ac_ext <<_ACEOF 4374/* end confdefs.h. */ 4375$ac_includes_default 4376#include <$ac_header> 4377_ACEOF 4378rm -f conftest.$ac_objext 4379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4380 (eval $ac_compile) 2>conftest.er1 4381 ac_status=$? 4382 grep -v '^ *+' conftest.er1 >conftest.err 4383 rm -f conftest.er1 4384 cat conftest.err >&5 4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4386 (exit $ac_status); } && 4387 { ac_try='test -z "$ac_c_werror_flag" 4388 || test ! -s conftest.err' 4389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4390 (eval $ac_try) 2>&5 4391 ac_status=$? 4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4393 (exit $ac_status); }; } && 4394 { ac_try='test -s conftest.$ac_objext' 4395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4396 (eval $ac_try) 2>&5 4397 ac_status=$? 4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4399 (exit $ac_status); }; }; then 4400 ac_header_compiler=yes 4401else 4402 echo "$as_me: failed program was:" >&5 4403sed 's/^/| /' conftest.$ac_ext >&5 4404 4405ac_header_compiler=no 4406fi 4407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4408echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4409echo "${ECHO_T}$ac_header_compiler" >&6 4410 4411# Is the header present? 4412echo "$as_me:$LINENO: checking $ac_header presence" >&5 4413echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4414cat >conftest.$ac_ext <<_ACEOF 4415/* confdefs.h. */ 4416_ACEOF 4417cat confdefs.h >>conftest.$ac_ext 4418cat >>conftest.$ac_ext <<_ACEOF 4419/* end confdefs.h. */ 4420#include <$ac_header> 4421_ACEOF 4422if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4424 ac_status=$? 4425 grep -v '^ *+' conftest.er1 >conftest.err 4426 rm -f conftest.er1 4427 cat conftest.err >&5 4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4429 (exit $ac_status); } >/dev/null; then 4430 if test -s conftest.err; then 4431 ac_cpp_err=$ac_c_preproc_warn_flag 4432 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4433 else 4434 ac_cpp_err= 4435 fi 4436else 4437 ac_cpp_err=yes 4438fi 4439if test -z "$ac_cpp_err"; then 4440 ac_header_preproc=yes 4441else 4442 echo "$as_me: failed program was:" >&5 4443sed 's/^/| /' conftest.$ac_ext >&5 4444 4445 ac_header_preproc=no 4446fi 4447rm -f conftest.err conftest.$ac_ext 4448echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4449echo "${ECHO_T}$ac_header_preproc" >&6 4450 4451# So? What about this header? 4452case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4453 yes:no: ) 4454 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4455echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4457echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4458 ac_header_preproc=yes 4459 ;; 4460 no:yes:* ) 4461 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4462echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4463 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4464echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4465 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4466echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4467 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4468echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4470echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4471 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4472echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4473 ( 4474 cat <<\_ASBOX 4475## ------------------------------- ## 4476## Report this to the Hapy lists. ## 4477## ------------------------------- ## 4478_ASBOX 4479 ) | 4480 sed "s/^/$as_me: WARNING: /" >&2 4481 ;; 4482esac 4483echo "$as_me:$LINENO: checking for $ac_header" >&5 4484echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4485if eval "test \"\${$as_ac_Header+set}\" = set"; then 4486 echo $ECHO_N "(cached) $ECHO_C" >&6 4487else 4488 eval "$as_ac_Header=\$ac_header_preproc" 4489fi 4490echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4491echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4492 4493fi 4494if test `eval echo '${'$as_ac_Header'}'` = yes; then 4495 cat >>confdefs.h <<_ACEOF 4496#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4497_ACEOF 4498 4499fi 4500 4501done 4502 4503ac_ext=cc 4504ac_cpp='$CXXCPP $CPPFLAGS' 4505ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4506ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4507ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4508if test -n "$ac_tool_prefix"; then 4509 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4510 do 4511 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4512set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4513echo "$as_me:$LINENO: checking for $ac_word" >&5 4514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4515if test "${ac_cv_prog_CXX+set}" = set; then 4516 echo $ECHO_N "(cached) $ECHO_C" >&6 4517else 4518 if test -n "$CXX"; then 4519 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4520else 4521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4522for as_dir in $PATH 4523do 4524 IFS=$as_save_IFS 4525 test -z "$as_dir" && as_dir=. 4526 for ac_exec_ext in '' $ac_executable_extensions; do 4527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4528 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4530 break 2 4531 fi 4532done 4533done 4534 4535fi 4536fi 4537CXX=$ac_cv_prog_CXX 4538if test -n "$CXX"; then 4539 echo "$as_me:$LINENO: result: $CXX" >&5 4540echo "${ECHO_T}$CXX" >&6 4541else 4542 echo "$as_me:$LINENO: result: no" >&5 4543echo "${ECHO_T}no" >&6 4544fi 4545 4546 test -n "$CXX" && break 4547 done 4548fi 4549if test -z "$CXX"; then 4550 ac_ct_CXX=$CXX 4551 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4552do 4553 # Extract the first word of "$ac_prog", so it can be a program name with args. 4554set dummy $ac_prog; ac_word=$2 4555echo "$as_me:$LINENO: checking for $ac_word" >&5 4556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4557if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 4558 echo $ECHO_N "(cached) $ECHO_C" >&6 4559else 4560 if test -n "$ac_ct_CXX"; then 4561 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4562else 4563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4564for as_dir in $PATH 4565do 4566 IFS=$as_save_IFS 4567 test -z "$as_dir" && as_dir=. 4568 for ac_exec_ext in '' $ac_executable_extensions; do 4569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4570 ac_cv_prog_ac_ct_CXX="$ac_prog" 4571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4572 break 2 4573 fi 4574done 4575done 4576 4577fi 4578fi 4579ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4580if test -n "$ac_ct_CXX"; then 4581 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 4582echo "${ECHO_T}$ac_ct_CXX" >&6 4583else 4584 echo "$as_me:$LINENO: result: no" >&5 4585echo "${ECHO_T}no" >&6 4586fi 4587 4588 test -n "$ac_ct_CXX" && break 4589done 4590test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 4591 4592 CXX=$ac_ct_CXX 4593fi 4594 4595 4596# Provide some information about the compiler. 4597echo "$as_me:$LINENO:" \ 4598 "checking for C++ compiler version" >&5 4599ac_compiler=`set X $ac_compile; echo $2` 4600{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4601 (eval $ac_compiler --version </dev/null >&5) 2>&5 4602 ac_status=$? 4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4604 (exit $ac_status); } 4605{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4606 (eval $ac_compiler -v </dev/null >&5) 2>&5 4607 ac_status=$? 4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4609 (exit $ac_status); } 4610{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4611 (eval $ac_compiler -V </dev/null >&5) 2>&5 4612 ac_status=$? 4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4614 (exit $ac_status); } 4615 4616echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 4617echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 4618if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 4619 echo $ECHO_N "(cached) $ECHO_C" >&6 4620else 4621 cat >conftest.$ac_ext <<_ACEOF 4622/* confdefs.h. */ 4623_ACEOF 4624cat confdefs.h >>conftest.$ac_ext 4625cat >>conftest.$ac_ext <<_ACEOF 4626/* end confdefs.h. */ 4627 4628int 4629main () 4630{ 4631#ifndef __GNUC__ 4632 choke me 4633#endif 4634 4635 ; 4636 return 0; 4637} 4638_ACEOF 4639rm -f conftest.$ac_objext 4640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4641 (eval $ac_compile) 2>conftest.er1 4642 ac_status=$? 4643 grep -v '^ *+' conftest.er1 >conftest.err 4644 rm -f conftest.er1 4645 cat conftest.err >&5 4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4647 (exit $ac_status); } && 4648 { ac_try='test -z "$ac_cxx_werror_flag" 4649 || test ! -s conftest.err' 4650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4651 (eval $ac_try) 2>&5 4652 ac_status=$? 4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4654 (exit $ac_status); }; } && 4655 { ac_try='test -s conftest.$ac_objext' 4656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4657 (eval $ac_try) 2>&5 4658 ac_status=$? 4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4660 (exit $ac_status); }; }; then 4661 ac_compiler_gnu=yes 4662else 4663 echo "$as_me: failed program was:" >&5 4664sed 's/^/| /' conftest.$ac_ext >&5 4665 4666ac_compiler_gnu=no 4667fi 4668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4669ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4670 4671fi 4672echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 4673echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 4674GXX=`test $ac_compiler_gnu = yes && echo yes` 4675ac_test_CXXFLAGS=${CXXFLAGS+set} 4676ac_save_CXXFLAGS=$CXXFLAGS 4677CXXFLAGS="-g" 4678echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 4679echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 4680if test "${ac_cv_prog_cxx_g+set}" = set; then 4681 echo $ECHO_N "(cached) $ECHO_C" >&6 4682else 4683 cat >conftest.$ac_ext <<_ACEOF 4684/* confdefs.h. */ 4685_ACEOF 4686cat confdefs.h >>conftest.$ac_ext 4687cat >>conftest.$ac_ext <<_ACEOF 4688/* end confdefs.h. */ 4689 4690int 4691main () 4692{ 4693 4694 ; 4695 return 0; 4696} 4697_ACEOF 4698rm -f conftest.$ac_objext 4699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4700 (eval $ac_compile) 2>conftest.er1 4701 ac_status=$? 4702 grep -v '^ *+' conftest.er1 >conftest.err 4703 rm -f conftest.er1 4704 cat conftest.err >&5 4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4706 (exit $ac_status); } && 4707 { ac_try='test -z "$ac_cxx_werror_flag" 4708 || test ! -s conftest.err' 4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4710 (eval $ac_try) 2>&5 4711 ac_status=$? 4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4713 (exit $ac_status); }; } && 4714 { ac_try='test -s conftest.$ac_objext' 4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4716 (eval $ac_try) 2>&5 4717 ac_status=$? 4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4719 (exit $ac_status); }; }; then 4720 ac_cv_prog_cxx_g=yes 4721else 4722 echo "$as_me: failed program was:" >&5 4723sed 's/^/| /' conftest.$ac_ext >&5 4724 4725ac_cv_prog_cxx_g=no 4726fi 4727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4728fi 4729echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 4730echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 4731if test "$ac_test_CXXFLAGS" = set; then 4732 CXXFLAGS=$ac_save_CXXFLAGS 4733elif test $ac_cv_prog_cxx_g = yes; then 4734 if test "$GXX" = yes; then 4735 CXXFLAGS="-g -O2" 4736 else 4737 CXXFLAGS="-g" 4738 fi 4739else 4740 if test "$GXX" = yes; then 4741 CXXFLAGS="-O2" 4742 else 4743 CXXFLAGS= 4744 fi 4745fi 4746for ac_declaration in \ 4747 '' \ 4748 'extern "C" void std::exit (int) throw (); using std::exit;' \ 4749 'extern "C" void std::exit (int); using std::exit;' \ 4750 'extern "C" void exit (int) throw ();' \ 4751 'extern "C" void exit (int);' \ 4752 'void exit (int);' 4753do 4754 cat >conftest.$ac_ext <<_ACEOF 4755/* confdefs.h. */ 4756_ACEOF 4757cat confdefs.h >>conftest.$ac_ext 4758cat >>conftest.$ac_ext <<_ACEOF 4759/* end confdefs.h. */ 4760$ac_declaration 4761#include <stdlib.h> 4762int 4763main () 4764{ 4765exit (42); 4766 ; 4767 return 0; 4768} 4769_ACEOF 4770rm -f conftest.$ac_objext 4771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4772 (eval $ac_compile) 2>conftest.er1 4773 ac_status=$? 4774 grep -v '^ *+' conftest.er1 >conftest.err 4775 rm -f conftest.er1 4776 cat conftest.err >&5 4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4778 (exit $ac_status); } && 4779 { ac_try='test -z "$ac_cxx_werror_flag" 4780 || test ! -s conftest.err' 4781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4782 (eval $ac_try) 2>&5 4783 ac_status=$? 4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4785 (exit $ac_status); }; } && 4786 { ac_try='test -s conftest.$ac_objext' 4787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4788 (eval $ac_try) 2>&5 4789 ac_status=$? 4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4791 (exit $ac_status); }; }; then 4792 : 4793else 4794 echo "$as_me: failed program was:" >&5 4795sed 's/^/| /' conftest.$ac_ext >&5 4796 4797continue 4798fi 4799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4800 cat >conftest.$ac_ext <<_ACEOF 4801/* confdefs.h. */ 4802_ACEOF 4803cat confdefs.h >>conftest.$ac_ext 4804cat >>conftest.$ac_ext <<_ACEOF 4805/* end confdefs.h. */ 4806$ac_declaration 4807int 4808main () 4809{ 4810exit (42); 4811 ; 4812 return 0; 4813} 4814_ACEOF 4815rm -f conftest.$ac_objext 4816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4817 (eval $ac_compile) 2>conftest.er1 4818 ac_status=$? 4819 grep -v '^ *+' conftest.er1 >conftest.err 4820 rm -f conftest.er1 4821 cat conftest.err >&5 4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4823 (exit $ac_status); } && 4824 { ac_try='test -z "$ac_cxx_werror_flag" 4825 || test ! -s conftest.err' 4826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4827 (eval $ac_try) 2>&5 4828 ac_status=$? 4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4830 (exit $ac_status); }; } && 4831 { ac_try='test -s conftest.$ac_objext' 4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4833 (eval $ac_try) 2>&5 4834 ac_status=$? 4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4836 (exit $ac_status); }; }; then 4837 break 4838else 4839 echo "$as_me: failed program was:" >&5 4840sed 's/^/| /' conftest.$ac_ext >&5 4841 4842fi 4843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4844done 4845rm -f conftest* 4846if test -n "$ac_declaration"; then 4847 echo '#ifdef __cplusplus' >>confdefs.h 4848 echo $ac_declaration >>confdefs.h 4849 echo '#endif' >>confdefs.h 4850fi 4851 4852ac_ext=cc 4853ac_cpp='$CXXCPP $CPPFLAGS' 4854ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4855ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4856ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4857 4858depcc="$CXX" am_compiler_list= 4859 4860echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4861echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 4862if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 4863 echo $ECHO_N "(cached) $ECHO_C" >&6 4864else 4865 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4866 # We make a subdir and do the tests there. Otherwise we can end up 4867 # making bogus files that we don't know about and never remove. For 4868 # instance it was reported that on HP-UX the gcc test will end up 4869 # making a dummy file named `D' -- because `-MD' means `put the output 4870 # in D'. 4871 mkdir conftest.dir 4872 # Copy depcomp to subdir because otherwise we won't find it if we're 4873 # using a relative directory. 4874 cp "$am_depcomp" conftest.dir 4875 cd conftest.dir 4876 # We will build objects and dependencies in a subdirectory because 4877 # it helps to detect inapplicable dependency modes. For instance 4878 # both Tru64's cc and ICC support -MD to output dependencies as a 4879 # side effect of compilation, but ICC will put the dependencies in 4880 # the current directory while Tru64 will put them in the object 4881 # directory. 4882 mkdir sub 4883 4884 am_cv_CXX_dependencies_compiler_type=none 4885 if test "$am_compiler_list" = ""; then 4886 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4887 fi 4888 for depmode in $am_compiler_list; do 4889 # Setup a source with many dependencies, because some compilers 4890 # like to wrap large dependency lists on column 80 (with \), and 4891 # we should not choose a depcomp mode which is confused by this. 4892 # 4893 # We need to recreate these files for each test, as the compiler may 4894 # overwrite some of them when testing with obscure command lines. 4895 # This happens at least with the AIX C compiler. 4896 : > sub/conftest.c 4897 for i in 1 2 3 4 5 6; do 4898 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4899 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4900 # Solaris 8's {/usr,}/bin/sh. 4901 touch sub/conftst$i.h 4902 done 4903 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4904 4905 case $depmode in 4906 nosideeffect) 4907 # after this tag, mechanisms are not by side-effect, so they'll 4908 # only be used when explicitly requested 4909 if test "x$enable_dependency_tracking" = xyes; then 4910 continue 4911 else 4912 break 4913 fi 4914 ;; 4915 none) break ;; 4916 esac 4917 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4918 # mode. It turns out that the SunPro C++ compiler does not properly 4919 # handle `-M -o', and we need to detect this. 4920 if depmode=$depmode \ 4921 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4922 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4923 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4924 >/dev/null 2>conftest.err && 4925 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4926 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4927 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4928 # icc doesn't choke on unknown options, it will just issue warnings 4929 # or remarks (even with -Werror). So we grep stderr for any message 4930 # that says an option was ignored or not supported. 4931 # When given -MP, icc 7.0 and 7.1 complain thusly: 4932 # icc: Command line warning: ignoring option '-M'; no argument required 4933 # The diagnosis changed in icc 8.0: 4934 # icc: Command line remark: option '-MP' not supported 4935 if (grep 'ignoring option' conftest.err || 4936 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4937 am_cv_CXX_dependencies_compiler_type=$depmode 4938 break 4939 fi 4940 fi 4941 done 4942 4943 cd .. 4944 rm -rf conftest.dir 4945else 4946 am_cv_CXX_dependencies_compiler_type=none 4947fi 4948 4949fi 4950echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 4951echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 4952CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4953 4954 4955 4956if 4957 test "x$enable_dependency_tracking" != xno \ 4958 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4959 am__fastdepCXX_TRUE= 4960 am__fastdepCXX_FALSE='#' 4961else 4962 am__fastdepCXX_TRUE='#' 4963 am__fastdepCXX_FALSE= 4964fi 4965 4966 4967 4968 4969if test -n "$CXX" && ( test "X$CXX" != "Xno" && 4970 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 4971 (test "X$CXX" != "Xg++"))) ; then 4972 ac_ext=cc 4973ac_cpp='$CXXCPP $CPPFLAGS' 4974ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4975ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4976ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4977echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 4978echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 4979if test -z "$CXXCPP"; then 4980 if test "${ac_cv_prog_CXXCPP+set}" = set; then 4981 echo $ECHO_N "(cached) $ECHO_C" >&6 4982else 4983 # Double quotes because CXXCPP needs to be expanded 4984 for CXXCPP in "$CXX -E" "/lib/cpp" 4985 do 4986 ac_preproc_ok=false 4987for ac_cxx_preproc_warn_flag in '' yes 4988do 4989 # Use a header file that comes with gcc, so configuring glibc 4990 # with a fresh cross-compiler works. 4991 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4992 # <limits.h> exists even on freestanding compilers. 4993 # On the NeXT, cc -E runs the code through the compiler's parser, 4994 # not just through cpp. "Syntax error" is here to catch this case. 4995 cat >conftest.$ac_ext <<_ACEOF 4996/* confdefs.h. */ 4997_ACEOF 4998cat confdefs.h >>conftest.$ac_ext 4999cat >>conftest.$ac_ext <<_ACEOF 5000/* end confdefs.h. */ 5001#ifdef __STDC__ 5002# include <limits.h> 5003#else 5004# include <assert.h> 5005#endif 5006 Syntax error 5007_ACEOF 5008if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5010 ac_status=$? 5011 grep -v '^ *+' conftest.er1 >conftest.err 5012 rm -f conftest.er1 5013 cat conftest.err >&5 5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5015 (exit $ac_status); } >/dev/null; then 5016 if test -s conftest.err; then 5017 ac_cpp_err=$ac_cxx_preproc_warn_flag 5018 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5019 else 5020 ac_cpp_err= 5021 fi 5022else 5023 ac_cpp_err=yes 5024fi 5025if test -z "$ac_cpp_err"; then 5026 : 5027else 5028 echo "$as_me: failed program was:" >&5 5029sed 's/^/| /' conftest.$ac_ext >&5 5030 5031 # Broken: fails on valid input. 5032continue 5033fi 5034rm -f conftest.err conftest.$ac_ext 5035 5036 # OK, works on sane cases. Now check whether non-existent headers 5037 # can be detected and how. 5038 cat >conftest.$ac_ext <<_ACEOF 5039/* confdefs.h. */ 5040_ACEOF 5041cat confdefs.h >>conftest.$ac_ext 5042cat >>conftest.$ac_ext <<_ACEOF 5043/* end confdefs.h. */ 5044#include <ac_nonexistent.h> 5045_ACEOF 5046if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5048 ac_status=$? 5049 grep -v '^ *+' conftest.er1 >conftest.err 5050 rm -f conftest.er1 5051 cat conftest.err >&5 5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5053 (exit $ac_status); } >/dev/null; then 5054 if test -s conftest.err; then 5055 ac_cpp_err=$ac_cxx_preproc_warn_flag 5056 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5057 else 5058 ac_cpp_err= 5059 fi 5060else 5061 ac_cpp_err=yes 5062fi 5063if test -z "$ac_cpp_err"; then 5064 # Broken: success on invalid input. 5065continue 5066else 5067 echo "$as_me: failed program was:" >&5 5068sed 's/^/| /' conftest.$ac_ext >&5 5069 5070 # Passes both tests. 5071ac_preproc_ok=: 5072break 5073fi 5074rm -f conftest.err conftest.$ac_ext 5075 5076done 5077# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5078rm -f conftest.err conftest.$ac_ext 5079if $ac_preproc_ok; then 5080 break 5081fi 5082 5083 done 5084 ac_cv_prog_CXXCPP=$CXXCPP 5085 5086fi 5087 CXXCPP=$ac_cv_prog_CXXCPP 5088else 5089 ac_cv_prog_CXXCPP=$CXXCPP 5090fi 5091echo "$as_me:$LINENO: result: $CXXCPP" >&5 5092echo "${ECHO_T}$CXXCPP" >&6 5093ac_preproc_ok=false 5094for ac_cxx_preproc_warn_flag in '' yes 5095do 5096 # Use a header file that comes with gcc, so configuring glibc 5097 # with a fresh cross-compiler works. 5098 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5099 # <limits.h> exists even on freestanding compilers. 5100 # On the NeXT, cc -E runs the code through the compiler's parser, 5101 # not just through cpp. "Syntax error" is here to catch this case. 5102 cat >conftest.$ac_ext <<_ACEOF 5103/* confdefs.h. */ 5104_ACEOF 5105cat confdefs.h >>conftest.$ac_ext 5106cat >>conftest.$ac_ext <<_ACEOF 5107/* end confdefs.h. */ 5108#ifdef __STDC__ 5109# include <limits.h> 5110#else 5111# include <assert.h> 5112#endif 5113 Syntax error 5114_ACEOF 5115if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5117 ac_status=$? 5118 grep -v '^ *+' conftest.er1 >conftest.err 5119 rm -f conftest.er1 5120 cat conftest.err >&5 5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5122 (exit $ac_status); } >/dev/null; then 5123 if test -s conftest.err; then 5124 ac_cpp_err=$ac_cxx_preproc_warn_flag 5125 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5126 else 5127 ac_cpp_err= 5128 fi 5129else 5130 ac_cpp_err=yes 5131fi 5132if test -z "$ac_cpp_err"; then 5133 : 5134else 5135 echo "$as_me: failed program was:" >&5 5136sed 's/^/| /' conftest.$ac_ext >&5 5137 5138 # Broken: fails on valid input. 5139continue 5140fi 5141rm -f conftest.err conftest.$ac_ext 5142 5143 # OK, works on sane cases. Now check whether non-existent headers 5144 # can be detected and how. 5145 cat >conftest.$ac_ext <<_ACEOF 5146/* confdefs.h. */ 5147_ACEOF 5148cat confdefs.h >>conftest.$ac_ext 5149cat >>conftest.$ac_ext <<_ACEOF 5150/* end confdefs.h. */ 5151#include <ac_nonexistent.h> 5152_ACEOF 5153if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5155 ac_status=$? 5156 grep -v '^ *+' conftest.er1 >conftest.err 5157 rm -f conftest.er1 5158 cat conftest.err >&5 5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5160 (exit $ac_status); } >/dev/null; then 5161 if test -s conftest.err; then 5162 ac_cpp_err=$ac_cxx_preproc_warn_flag 5163 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5164 else 5165 ac_cpp_err= 5166 fi 5167else 5168 ac_cpp_err=yes 5169fi 5170if test -z "$ac_cpp_err"; then 5171 # Broken: success on invalid input. 5172continue 5173else 5174 echo "$as_me: failed program was:" >&5 5175sed 's/^/| /' conftest.$ac_ext >&5 5176 5177 # Passes both tests. 5178ac_preproc_ok=: 5179break 5180fi 5181rm -f conftest.err conftest.$ac_ext 5182 5183done 5184# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5185rm -f conftest.err conftest.$ac_ext 5186if $ac_preproc_ok; then 5187 : 5188else 5189 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5190See \`config.log' for more details." >&5 5191echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5192See \`config.log' for more details." >&2;} 5193 { (exit 1); exit 1; }; } 5194fi 5195 5196ac_ext=cc 5197ac_cpp='$CXXCPP $CPPFLAGS' 5198ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5199ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5200ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5201 5202fi 5203 5204 5205 5206# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5207 5208# find the maximum length of command line arguments 5209echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5210echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 5211if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5212 echo $ECHO_N "(cached) $ECHO_C" >&6 5213else 5214 i=0 5215 teststring="ABCD" 5216 5217 case $build_os in 5218 msdosdjgpp*) 5219 # On DJGPP, this test can blow up pretty badly due to problems in libc 5220 # (any single argument exceeding 2000 bytes causes a buffer overrun 5221 # during glob expansion). Even if it were fixed, the result of this 5222 # check would be larger than it should be. 5223 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5224 ;; 5225 5226 gnu*) 5227 # Under GNU Hurd, this test is not required because there is 5228 # no limit to the length of command line arguments. 5229 # Libtool will interpret -1 as no limit whatsoever 5230 lt_cv_sys_max_cmd_len=-1; 5231 ;; 5232 5233 cygwin* | mingw*) 5234 # On Win9x/ME, this test blows up -- it succeeds, but takes 5235 # about 5 minutes as the teststring grows exponentially. 5236 # Worse, since 9x/ME are not pre-emptively multitasking, 5237 # you end up with a "frozen" computer, even though with patience 5238 # the test eventually succeeds (with a max line length of 256k). 5239 # Instead, let's just punt: use the minimum linelength reported by 5240 # all of the supported platforms: 8192 (on NT/2K/XP). 5241 lt_cv_sys_max_cmd_len=8192; 5242 ;; 5243 5244 amigaos*) 5245 # On AmigaOS with pdksh, this test takes hours, literally. 5246 # So we just punt and use a minimum line length of 8192. 5247 lt_cv_sys_max_cmd_len=8192; 5248 ;; 5249 5250 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5251 # This has been around since 386BSD, at least. Likely further. 5252 if test -x /sbin/sysctl; then 5253 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5254 elif test -x /usr/sbin/sysctl; then 5255 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5256 else 5257 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5258 fi 5259 # And add a safety zone 5260 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5261 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5262 ;; 5263 5264 interix*) 5265 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5266 lt_cv_sys_max_cmd_len=196608 5267 ;; 5268 5269 osf*) 5270 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5271 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5272 # nice to cause kernel panics so lets avoid the loop below. 5273 # First set a reasonable default. 5274 lt_cv_sys_max_cmd_len=16384 5275 # 5276 if test -x /sbin/sysconfig; then 5277 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5278 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5279 esac 5280 fi 5281 ;; 5282 sco3.2v5*) 5283 lt_cv_sys_max_cmd_len=102400 5284 ;; 5285 sysv5* | sco5v6* | sysv4.2uw2*) 5286 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5287 if test -n "$kargmax"; then 5288 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5289 else 5290 lt_cv_sys_max_cmd_len=32768 5291 fi 5292 ;; 5293 *) 5294 # If test is not a shell built-in, we'll probably end up computing a 5295 # maximum length that is only half of the actual maximum length, but 5296 # we can't tell. 5297 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5298 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 5299 = "XX$teststring") >/dev/null 2>&1 && 5300 new_result=`expr "X$teststring" : ".*" 2>&1` && 5301 lt_cv_sys_max_cmd_len=$new_result && 5302 test $i != 17 # 1/2 MB should be enough 5303 do 5304 i=`expr $i + 1` 5305 teststring=$teststring$teststring 5306 done 5307 teststring= 5308 # Add a significant safety factor because C++ compilers can tack on massive 5309 # amounts of additional arguments before passing them to the linker. 5310 # It appears as though 1/2 is a usable value. 5311 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5312 ;; 5313 esac 5314 5315fi 5316 5317if test -n $lt_cv_sys_max_cmd_len ; then 5318 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5319echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 5320else 5321 echo "$as_me:$LINENO: result: none" >&5 5322echo "${ECHO_T}none" >&6 5323fi 5324 5325 5326 5327 5328# Check for command to grab the raw symbol name followed by C symbol from nm. 5329echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5330echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 5331if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5332 echo $ECHO_N "(cached) $ECHO_C" >&6 5333else 5334 5335# These are sane defaults that work on at least a few old systems. 5336# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5337 5338# Character class describing NM global symbol codes. 5339symcode='[BCDEGRST]' 5340 5341# Regexp to match symbols that can be accessed directly from C. 5342sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5343 5344# Transform an extracted symbol line into a proper C declaration 5345lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5346 5347# Transform an extracted symbol line into symbol name and symbol address 5348lt_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'" 5349 5350# Define system-specific variables. 5351case $host_os in 5352aix*) 5353 symcode='[BCDT]' 5354 ;; 5355cygwin* | mingw* | pw32*) 5356 symcode='[ABCDGISTW]' 5357 ;; 5358hpux*) # Its linker distinguishes data from code symbols 5359 if test "$host_cpu" = ia64; then 5360 symcode='[ABCDEGRST]' 5361 fi 5362 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5363 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'" 5364 ;; 5365linux*) 5366 if test "$host_cpu" = ia64; then 5367 symcode='[ABCDGIRSTW]' 5368 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5369 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'" 5370 fi 5371 ;; 5372irix* | nonstopux*) 5373 symcode='[BCDEGRST]' 5374 ;; 5375osf*) 5376 symcode='[BCDEGQRST]' 5377 ;; 5378solaris*) 5379 symcode='[BDRT]' 5380 ;; 5381sco3.2v5*) 5382 symcode='[DT]' 5383 ;; 5384sysv4.2uw2*) 5385 symcode='[DT]' 5386 ;; 5387sysv5* | sco5v6* | unixware* | OpenUNIX*) 5388 symcode='[ABDT]' 5389 ;; 5390sysv4) 5391 symcode='[DFNSTU]' 5392 ;; 5393esac 5394 5395# Handle CRLF in mingw tool chain 5396opt_cr= 5397case $build_os in 5398mingw*) 5399 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5400 ;; 5401esac 5402 5403# If we're using GNU nm, then use its standard symbol codes. 5404case `$NM -V 2>&1` in 5405*GNU* | *'with BFD'*) 5406 symcode='[ABCDGIRSTW]' ;; 5407esac 5408 5409# Try without a prefix undercore, then with it. 5410for ac_symprfx in "" "_"; do 5411 5412 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5413 symxfrm="\\1 $ac_symprfx\\2 \\2" 5414 5415 # Write the raw and C identifiers. 5416 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5417 5418 # Check to see that the pipe works correctly. 5419 pipe_works=no 5420 5421 rm -f conftest* 5422 cat > conftest.$ac_ext <<EOF 5423#ifdef __cplusplus 5424extern "C" { 5425#endif 5426char nm_test_var; 5427void nm_test_func(){} 5428#ifdef __cplusplus 5429} 5430#endif 5431int main(){nm_test_var='a';nm_test_func();return(0);} 5432EOF 5433 5434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5435 (eval $ac_compile) 2>&5 5436 ac_status=$? 5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5438 (exit $ac_status); }; then 5439 # Now try to grab the symbols. 5440 nlist=conftest.nm 5441 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5442 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5443 ac_status=$? 5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5445 (exit $ac_status); } && test -s "$nlist"; then 5446 # Try sorting and uniquifying the output. 5447 if sort "$nlist" | uniq > "$nlist"T; then 5448 mv -f "$nlist"T "$nlist" 5449 else 5450 rm -f "$nlist"T 5451 fi 5452 5453 # Make sure that we snagged all the symbols we need. 5454 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5455 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5456 cat <<EOF > conftest.$ac_ext 5457#ifdef __cplusplus 5458extern "C" { 5459#endif 5460 5461EOF 5462 # Now generate the symbol file. 5463 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5464 5465 cat <<EOF >> conftest.$ac_ext 5466#if defined (__STDC__) && __STDC__ 5467# define lt_ptr_t void * 5468#else 5469# define lt_ptr_t char * 5470# define const 5471#endif 5472 5473/* The mapping between symbol names and symbols. */ 5474const struct { 5475 const char *name; 5476 lt_ptr_t address; 5477} 5478lt_preloaded_symbols[] = 5479{ 5480EOF 5481 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5482 cat <<\EOF >> conftest.$ac_ext 5483 {0, (lt_ptr_t) 0} 5484}; 5485 5486#ifdef __cplusplus 5487} 5488#endif 5489EOF 5490 # Now try linking the two files. 5491 mv conftest.$ac_objext conftstm.$ac_objext 5492 lt_save_LIBS="$LIBS" 5493 lt_save_CFLAGS="$CFLAGS" 5494 LIBS="conftstm.$ac_objext" 5495 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5497 (eval $ac_link) 2>&5 5498 ac_status=$? 5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5500 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5501 pipe_works=yes 5502 fi 5503 LIBS="$lt_save_LIBS" 5504 CFLAGS="$lt_save_CFLAGS" 5505 else 5506 echo "cannot find nm_test_func in $nlist" >&5 5507 fi 5508 else 5509 echo "cannot find nm_test_var in $nlist" >&5 5510 fi 5511 else 5512 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5513 fi 5514 else 5515 echo "$progname: failed program was:" >&5 5516 cat conftest.$ac_ext >&5 5517 fi 5518 rm -f conftest* conftst* 5519 5520 # Do not use the global_symbol_pipe unless it works. 5521 if test "$pipe_works" = yes; then 5522 break 5523 else 5524 lt_cv_sys_global_symbol_pipe= 5525 fi 5526done 5527 5528fi 5529 5530if test -z "$lt_cv_sys_global_symbol_pipe"; then 5531 lt_cv_sys_global_symbol_to_cdecl= 5532fi 5533if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5534 echo "$as_me:$LINENO: result: failed" >&5 5535echo "${ECHO_T}failed" >&6 5536else 5537 echo "$as_me:$LINENO: result: ok" >&5 5538echo "${ECHO_T}ok" >&6 5539fi 5540 5541echo "$as_me:$LINENO: checking for objdir" >&5 5542echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5543if test "${lt_cv_objdir+set}" = set; then 5544 echo $ECHO_N "(cached) $ECHO_C" >&6 5545else 5546 rm -f .libs 2>/dev/null 5547mkdir .libs 2>/dev/null 5548if test -d .libs; then 5549 lt_cv_objdir=.libs 5550else 5551 # MS-DOS does not allow filenames that begin with a dot. 5552 lt_cv_objdir=_libs 5553fi 5554rmdir .libs 2>/dev/null 5555fi 5556echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5557echo "${ECHO_T}$lt_cv_objdir" >&6 5558objdir=$lt_cv_objdir 5559 5560 5561 5562 5563 5564case $host_os in 5565aix3*) 5566 # AIX sometimes has problems with the GCC collect2 program. For some 5567 # reason, if we set the COLLECT_NAMES environment variable, the problems 5568 # vanish in a puff of smoke. 5569 if test "X${COLLECT_NAMES+set}" != Xset; then 5570 COLLECT_NAMES= 5571 export COLLECT_NAMES 5572 fi 5573 ;; 5574esac 5575 5576# Sed substitution that helps us do robust quoting. It backslashifies 5577# metacharacters that are still active within double-quoted strings. 5578Xsed='sed -e 1s/^X//' 5579sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5580 5581# Same as above, but do not quote variable references. 5582double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5583 5584# Sed substitution to delay expansion of an escaped shell variable in a 5585# double_quote_subst'ed string. 5586delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5587 5588# Sed substitution to avoid accidental globbing in evaled expressions 5589no_glob_subst='s/\*/\\\*/g' 5590 5591# Constants: 5592rm="rm -f" 5593 5594# Global variables: 5595default_ofile=libtool 5596can_build_shared=yes 5597 5598# All known linkers require a `.a' archive for static linking (except MSVC, 5599# which needs '.lib'). 5600libext=a 5601ltmain="$ac_aux_dir/ltmain.sh" 5602ofile="$default_ofile" 5603with_gnu_ld="$lt_cv_prog_gnu_ld" 5604 5605if test -n "$ac_tool_prefix"; then 5606 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5607set dummy ${ac_tool_prefix}ar; ac_word=$2 5608echo "$as_me:$LINENO: checking for $ac_word" >&5 5609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5610if test "${ac_cv_prog_AR+set}" = set; then 5611 echo $ECHO_N "(cached) $ECHO_C" >&6 5612else 5613 if test -n "$AR"; then 5614 ac_cv_prog_AR="$AR" # Let the user override the test. 5615else 5616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5617for as_dir in $PATH 5618do 5619 IFS=$as_save_IFS 5620 test -z "$as_dir" && as_dir=. 5621 for ac_exec_ext in '' $ac_executable_extensions; do 5622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5623 ac_cv_prog_AR="${ac_tool_prefix}ar" 5624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5625 break 2 5626 fi 5627done 5628done 5629 5630fi 5631fi 5632AR=$ac_cv_prog_AR 5633if test -n "$AR"; then 5634 echo "$as_me:$LINENO: result: $AR" >&5 5635echo "${ECHO_T}$AR" >&6 5636else 5637 echo "$as_me:$LINENO: result: no" >&5 5638echo "${ECHO_T}no" >&6 5639fi 5640 5641fi 5642if test -z "$ac_cv_prog_AR"; then 5643 ac_ct_AR=$AR 5644 # Extract the first word of "ar", so it can be a program name with args. 5645set dummy ar; ac_word=$2 5646echo "$as_me:$LINENO: checking for $ac_word" >&5 5647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5648if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5649 echo $ECHO_N "(cached) $ECHO_C" >&6 5650else 5651 if test -n "$ac_ct_AR"; then 5652 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5653else 5654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5655for as_dir in $PATH 5656do 5657 IFS=$as_save_IFS 5658 test -z "$as_dir" && as_dir=. 5659 for ac_exec_ext in '' $ac_executable_extensions; do 5660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5661 ac_cv_prog_ac_ct_AR="ar" 5662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5663 break 2 5664 fi 5665done 5666done 5667 5668 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 5669fi 5670fi 5671ac_ct_AR=$ac_cv_prog_ac_ct_AR 5672if test -n "$ac_ct_AR"; then 5673 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5674echo "${ECHO_T}$ac_ct_AR" >&6 5675else 5676 echo "$as_me:$LINENO: result: no" >&5 5677echo "${ECHO_T}no" >&6 5678fi 5679 5680 AR=$ac_ct_AR 5681else 5682 AR="$ac_cv_prog_AR" 5683fi 5684 5685if test -n "$ac_tool_prefix"; then 5686 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5687set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5688echo "$as_me:$LINENO: checking for $ac_word" >&5 5689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5690if test "${ac_cv_prog_RANLIB+set}" = set; then 5691 echo $ECHO_N "(cached) $ECHO_C" >&6 5692else 5693 if test -n "$RANLIB"; then 5694 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5695else 5696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5697for as_dir in $PATH 5698do 5699 IFS=$as_save_IFS 5700 test -z "$as_dir" && as_dir=. 5701 for ac_exec_ext in '' $ac_executable_extensions; do 5702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5703 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5705 break 2 5706 fi 5707done 5708done 5709 5710fi 5711fi 5712RANLIB=$ac_cv_prog_RANLIB 5713if test -n "$RANLIB"; then 5714 echo "$as_me:$LINENO: result: $RANLIB" >&5 5715echo "${ECHO_T}$RANLIB" >&6 5716else 5717 echo "$as_me:$LINENO: result: no" >&5 5718echo "${ECHO_T}no" >&6 5719fi 5720 5721fi 5722if test -z "$ac_cv_prog_RANLIB"; then 5723 ac_ct_RANLIB=$RANLIB 5724 # Extract the first word of "ranlib", so it can be a program name with args. 5725set dummy ranlib; ac_word=$2 5726echo "$as_me:$LINENO: checking for $ac_word" >&5 5727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5728if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5729 echo $ECHO_N "(cached) $ECHO_C" >&6 5730else 5731 if test -n "$ac_ct_RANLIB"; then 5732 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5733else 5734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5735for as_dir in $PATH 5736do 5737 IFS=$as_save_IFS 5738 test -z "$as_dir" && as_dir=. 5739 for ac_exec_ext in '' $ac_executable_extensions; do 5740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5741 ac_cv_prog_ac_ct_RANLIB="ranlib" 5742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5743 break 2 5744 fi 5745done 5746done 5747 5748 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 5749fi 5750fi 5751ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5752if test -n "$ac_ct_RANLIB"; then 5753 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5754echo "${ECHO_T}$ac_ct_RANLIB" >&6 5755else 5756 echo "$as_me:$LINENO: result: no" >&5 5757echo "${ECHO_T}no" >&6 5758fi 5759 5760 RANLIB=$ac_ct_RANLIB 5761else 5762 RANLIB="$ac_cv_prog_RANLIB" 5763fi 5764 5765if test -n "$ac_tool_prefix"; then 5766 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5767set dummy ${ac_tool_prefix}strip; ac_word=$2 5768echo "$as_me:$LINENO: checking for $ac_word" >&5 5769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5770if test "${ac_cv_prog_STRIP+set}" = set; then 5771 echo $ECHO_N "(cached) $ECHO_C" >&6 5772else 5773 if test -n "$STRIP"; then 5774 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5775else 5776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5777for as_dir in $PATH 5778do 5779 IFS=$as_save_IFS 5780 test -z "$as_dir" && as_dir=. 5781 for ac_exec_ext in '' $ac_executable_extensions; do 5782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5783 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5785 break 2 5786 fi 5787done 5788done 5789 5790fi 5791fi 5792STRIP=$ac_cv_prog_STRIP 5793if test -n "$STRIP"; then 5794 echo "$as_me:$LINENO: result: $STRIP" >&5 5795echo "${ECHO_T}$STRIP" >&6 5796else 5797 echo "$as_me:$LINENO: result: no" >&5 5798echo "${ECHO_T}no" >&6 5799fi 5800 5801fi 5802if test -z "$ac_cv_prog_STRIP"; then 5803 ac_ct_STRIP=$STRIP 5804 # Extract the first word of "strip", so it can be a program name with args. 5805set dummy strip; ac_word=$2 5806echo "$as_me:$LINENO: checking for $ac_word" >&5 5807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5808if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5809 echo $ECHO_N "(cached) $ECHO_C" >&6 5810else 5811 if test -n "$ac_ct_STRIP"; then 5812 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5813else 5814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5815for as_dir in $PATH 5816do 5817 IFS=$as_save_IFS 5818 test -z "$as_dir" && as_dir=. 5819 for ac_exec_ext in '' $ac_executable_extensions; do 5820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5821 ac_cv_prog_ac_ct_STRIP="strip" 5822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5823 break 2 5824 fi 5825done 5826done 5827 5828 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 5829fi 5830fi 5831ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5832if test -n "$ac_ct_STRIP"; then 5833 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5834echo "${ECHO_T}$ac_ct_STRIP" >&6 5835else 5836 echo "$as_me:$LINENO: result: no" >&5 5837echo "${ECHO_T}no" >&6 5838fi 5839 5840 STRIP=$ac_ct_STRIP 5841else 5842 STRIP="$ac_cv_prog_STRIP" 5843fi 5844 5845 5846old_CC="$CC" 5847old_CFLAGS="$CFLAGS" 5848 5849# Set sane defaults for various variables 5850test -z "$AR" && AR=ar 5851test -z "$AR_FLAGS" && AR_FLAGS=cru 5852test -z "$AS" && AS=as 5853test -z "$CC" && CC=cc 5854test -z "$LTCC" && LTCC=$CC 5855test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 5856test -z "$DLLTOOL" && DLLTOOL=dlltool 5857test -z "$LD" && LD=ld 5858test -z "$LN_S" && LN_S="ln -s" 5859test -z "$MAGIC_CMD" && MAGIC_CMD=file 5860test -z "$NM" && NM=nm 5861test -z "$SED" && SED=sed 5862test -z "$OBJDUMP" && OBJDUMP=objdump 5863test -z "$RANLIB" && RANLIB=: 5864test -z "$STRIP" && STRIP=: 5865test -z "$ac_objext" && ac_objext=o 5866 5867# Determine commands to create old-style static archives. 5868old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 5869old_postinstall_cmds='chmod 644 $oldlib' 5870old_postuninstall_cmds= 5871 5872if test -n "$RANLIB"; then 5873 case $host_os in 5874 openbsd*) 5875 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5876 ;; 5877 *) 5878 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5879 ;; 5880 esac 5881 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5882fi 5883 5884for cc_temp in $compiler""; do 5885 case $cc_temp in 5886 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 5887 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 5888 \-*) ;; 5889 *) break;; 5890 esac 5891done 5892cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 5893 5894 5895# Only perform the check for file, if the check method requires it 5896case $deplibs_check_method in 5897file_magic*) 5898 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 5899 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 5900echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 5901if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 5902 echo $ECHO_N "(cached) $ECHO_C" >&6 5903else 5904 case $MAGIC_CMD in 5905[\\/*] | ?:[\\/]*) 5906 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5907 ;; 5908*) 5909 lt_save_MAGIC_CMD="$MAGIC_CMD" 5910 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5911 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 5912 for ac_dir in $ac_dummy; do 5913 IFS="$lt_save_ifs" 5914 test -z "$ac_dir" && ac_dir=. 5915 if test -f $ac_dir/${ac_tool_prefix}file; then 5916 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 5917 if test -n "$file_magic_test_file"; then 5918 case $deplibs_check_method in 5919 "file_magic "*) 5920 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 5921 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5922 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5923 $EGREP "$file_magic_regex" > /dev/null; then 5924 : 5925 else 5926 cat <<EOF 1>&2 5927 5928*** Warning: the command libtool uses to detect shared libraries, 5929*** $file_magic_cmd, produces output that libtool cannot recognize. 5930*** The result is that libtool may fail to recognize shared libraries 5931*** as such. This will affect the creation of libtool libraries that 5932*** depend on shared libraries, but programs linked with such libtool 5933*** libraries will work regardless of this problem. Nevertheless, you 5934*** may want to report the problem to your system manager and/or to 5935*** bug-libtool@gnu.org 5936 5937EOF 5938 fi ;; 5939 esac 5940 fi 5941 break 5942 fi 5943 done 5944 IFS="$lt_save_ifs" 5945 MAGIC_CMD="$lt_save_MAGIC_CMD" 5946 ;; 5947esac 5948fi 5949 5950MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5951if test -n "$MAGIC_CMD"; then 5952 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 5953echo "${ECHO_T}$MAGIC_CMD" >&6 5954else 5955 echo "$as_me:$LINENO: result: no" >&5 5956echo "${ECHO_T}no" >&6 5957fi 5958 5959if test -z "$lt_cv_path_MAGIC_CMD"; then 5960 if test -n "$ac_tool_prefix"; then 5961 echo "$as_me:$LINENO: checking for file" >&5 5962echo $ECHO_N "checking for file... $ECHO_C" >&6 5963if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 5964 echo $ECHO_N "(cached) $ECHO_C" >&6 5965else 5966 case $MAGIC_CMD in 5967[\\/*] | ?:[\\/]*) 5968 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5969 ;; 5970*) 5971 lt_save_MAGIC_CMD="$MAGIC_CMD" 5972 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5973 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 5974 for ac_dir in $ac_dummy; do 5975 IFS="$lt_save_ifs" 5976 test -z "$ac_dir" && ac_dir=. 5977 if test -f $ac_dir/file; then 5978 lt_cv_path_MAGIC_CMD="$ac_dir/file" 5979 if test -n "$file_magic_test_file"; then 5980 case $deplibs_check_method in 5981 "file_magic "*) 5982 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 5983 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5984 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5985 $EGREP "$file_magic_regex" > /dev/null; then 5986 : 5987 else 5988 cat <<EOF 1>&2 5989 5990*** Warning: the command libtool uses to detect shared libraries, 5991*** $file_magic_cmd, produces output that libtool cannot recognize. 5992*** The result is that libtool may fail to recognize shared libraries 5993*** as such. This will affect the creation of libtool libraries that 5994*** depend on shared libraries, but programs linked with such libtool 5995*** libraries will work regardless of this problem. Nevertheless, you 5996*** may want to report the problem to your system manager and/or to 5997*** bug-libtool@gnu.org 5998 5999EOF 6000 fi ;; 6001 esac 6002 fi 6003 break 6004 fi 6005 done 6006 IFS="$lt_save_ifs" 6007 MAGIC_CMD="$lt_save_MAGIC_CMD" 6008 ;; 6009esac 6010fi 6011 6012MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6013if test -n "$MAGIC_CMD"; then 6014 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6015echo "${ECHO_T}$MAGIC_CMD" >&6 6016else 6017 echo "$as_me:$LINENO: result: no" >&5 6018echo "${ECHO_T}no" >&6 6019fi 6020 6021 else 6022 MAGIC_CMD=: 6023 fi 6024fi 6025 6026 fi 6027 ;; 6028esac 6029 6030enable_dlopen=no 6031enable_win32_dll=no 6032 6033# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6034if test "${enable_libtool_lock+set}" = set; then 6035 enableval="$enable_libtool_lock" 6036 6037fi; 6038test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6039 6040 6041# Check whether --with-pic or --without-pic was given. 6042if test "${with_pic+set}" = set; then 6043 withval="$with_pic" 6044 pic_mode="$withval" 6045else 6046 pic_mode=default 6047fi; 6048test -z "$pic_mode" && pic_mode=default 6049 6050# Use C for the default configuration in the libtool script 6051tagname= 6052lt_save_CC="$CC" 6053ac_ext=c 6054ac_cpp='$CPP $CPPFLAGS' 6055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6057ac_compiler_gnu=$ac_cv_c_compiler_gnu 6058 6059 6060# Source file extension for C test sources. 6061ac_ext=c 6062 6063# Object file extension for compiled C test sources. 6064objext=o 6065objext=$objext 6066 6067# Code to be used in simple compile tests 6068lt_simple_compile_test_code="int some_variable = 0;\n" 6069 6070# Code to be used in simple link tests 6071lt_simple_link_test_code='int main(){return(0);}\n' 6072 6073 6074# If no C compiler was specified, use CC. 6075LTCC=${LTCC-"$CC"} 6076 6077# If no C compiler flags were specified, use CFLAGS. 6078LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6079 6080# Allow CC to be a program name with arguments. 6081compiler=$CC 6082 6083 6084# save warnings/boilerplate of simple test code 6085ac_outfile=conftest.$ac_objext 6086printf "$lt_simple_compile_test_code" >conftest.$ac_ext 6087eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6088_lt_compiler_boilerplate=`cat conftest.err` 6089$rm conftest* 6090 6091ac_outfile=conftest.$ac_objext 6092printf "$lt_simple_link_test_code" >conftest.$ac_ext 6093eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6094_lt_linker_boilerplate=`cat conftest.err` 6095$rm conftest* 6096 6097 6098## CAVEAT EMPTOR: 6099## There is no encapsulation within the following macros, do not change 6100## the running order or otherwise move them around unless you know exactly 6101## what you are doing... 6102 6103lt_prog_compiler_no_builtin_flag= 6104 6105if test "$GCC" = yes; then 6106 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6107 6108 6109echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6110echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 6111if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6112 echo $ECHO_N "(cached) $ECHO_C" >&6 6113else 6114 lt_cv_prog_compiler_rtti_exceptions=no 6115 ac_outfile=conftest.$ac_objext 6116 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6117 lt_compiler_flag="-fno-rtti -fno-exceptions" 6118 # Insert the option either (1) after the last *FLAGS variable, or 6119 # (2) before a word containing "conftest.", or (3) at the end. 6120 # Note that $ac_compile itself does not contain backslashes and begins 6121 # with a dollar sign (not a hyphen), so the echo should work correctly. 6122 # The option is referenced via a variable to avoid confusing sed. 6123 lt_compile=`echo "$ac_compile" | $SED \ 6124 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6125 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6126 -e 's:$: $lt_compiler_flag:'` 6127 (eval echo "\"\$as_me:6127: $lt_compile\"" >&5) 6128 (eval "$lt_compile" 2>conftest.err) 6129 ac_status=$? 6130 cat conftest.err >&5 6131 echo "$as_me:6131: \$? = $ac_status" >&5 6132 if (exit $ac_status) && test -s "$ac_outfile"; then 6133 # The compiler can only warn and ignore the option if not recognized 6134 # So say no if there are warnings other than the usual output. 6135 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6136 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6137 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6138 lt_cv_prog_compiler_rtti_exceptions=yes 6139 fi 6140 fi 6141 $rm conftest* 6142 6143fi 6144echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6145echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 6146 6147if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6148 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6149else 6150 : 6151fi 6152 6153fi 6154 6155lt_prog_compiler_wl= 6156lt_prog_compiler_pic= 6157lt_prog_compiler_static= 6158 6159echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6160echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 6161 6162 if test "$GCC" = yes; then 6163 lt_prog_compiler_wl='-Wl,' 6164 lt_prog_compiler_static='-static' 6165 6166 case $host_os in 6167 aix*) 6168 # All AIX code is PIC. 6169 if test "$host_cpu" = ia64; then 6170 # AIX 5 now supports IA64 processor 6171 lt_prog_compiler_static='-Bstatic' 6172 fi 6173 ;; 6174 6175 amigaos*) 6176 # FIXME: we need at least 68020 code to build shared libraries, but 6177 # adding the `-m68020' flag to GCC prevents building anything better, 6178 # like `-m68040'. 6179 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6180 ;; 6181 6182 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6183 # PIC is the default for these OSes. 6184 ;; 6185 6186 mingw* | pw32* | os2*) 6187 # This hack is so that the source file can tell whether it is being 6188 # built for inclusion in a dll (and should export symbols for example). 6189 lt_prog_compiler_pic='-DDLL_EXPORT' 6190 ;; 6191 6192 darwin* | rhapsody*) 6193 # PIC is the default on this platform 6194 # Common symbols not allowed in MH_DYLIB files 6195 lt_prog_compiler_pic='-fno-common' 6196 ;; 6197 6198 interix3*) 6199 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 6200 # Instead, we relocate shared libraries at runtime. 6201 ;; 6202 6203 msdosdjgpp*) 6204 # Just because we use GCC doesn't mean we suddenly get shared libraries 6205 # on systems that don't support them. 6206 lt_prog_compiler_can_build_shared=no 6207 enable_shared=no 6208 ;; 6209 6210 sysv4*MP*) 6211 if test -d /usr/nec; then 6212 lt_prog_compiler_pic=-Kconform_pic 6213 fi 6214 ;; 6215 6216 hpux*) 6217 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6218 # not for PA HP-UX. 6219 case $host_cpu in 6220 hppa*64*|ia64*) 6221 # +Z the default 6222 ;; 6223 *) 6224 lt_prog_compiler_pic='-fPIC' 6225 ;; 6226 esac 6227 ;; 6228 6229 *) 6230 lt_prog_compiler_pic='-fPIC' 6231 ;; 6232 esac 6233 else 6234 # PORTME Check for flag to pass linker flags through the system compiler. 6235 case $host_os in 6236 aix*) 6237 lt_prog_compiler_wl='-Wl,' 6238 if test "$host_cpu" = ia64; then 6239 # AIX 5 now supports IA64 processor 6240 lt_prog_compiler_static='-Bstatic' 6241 else 6242 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6243 fi 6244 ;; 6245 darwin*) 6246 # PIC is the default on this platform 6247 # Common symbols not allowed in MH_DYLIB files 6248 case $cc_basename in 6249 xlc*) 6250 lt_prog_compiler_pic='-qnocommon' 6251 lt_prog_compiler_wl='-Wl,' 6252 ;; 6253 esac 6254 ;; 6255 6256 mingw* | pw32* | os2*) 6257 # This hack is so that the source file can tell whether it is being 6258 # built for inclusion in a dll (and should export symbols for example). 6259 lt_prog_compiler_pic='-DDLL_EXPORT' 6260 ;; 6261 6262 hpux9* | hpux10* | hpux11*) 6263 lt_prog_compiler_wl='-Wl,' 6264 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6265 # not for PA HP-UX. 6266 case $host_cpu in 6267 hppa*64*|ia64*) 6268 # +Z the default 6269 ;; 6270 *) 6271 lt_prog_compiler_pic='+Z' 6272 ;; 6273 esac 6274 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6275 lt_prog_compiler_static='${wl}-a ${wl}archive' 6276 ;; 6277 6278 irix5* | irix6* | nonstopux*) 6279 lt_prog_compiler_wl='-Wl,' 6280 # PIC (with -KPIC) is the default. 6281 lt_prog_compiler_static='-non_shared' 6282 ;; 6283 6284 newsos6) 6285 lt_prog_compiler_pic='-KPIC' 6286 lt_prog_compiler_static='-Bstatic' 6287 ;; 6288 6289 linux*) 6290 case $cc_basename in 6291 icc* | ecc*) 6292 lt_prog_compiler_wl='-Wl,' 6293 lt_prog_compiler_pic='-KPIC' 6294 lt_prog_compiler_static='-static' 6295 ;; 6296 pgcc* | pgf77* | pgf90* | pgf95*) 6297 # Portland Group compilers (*not* the Pentium gcc compiler, 6298 # which looks to be a dead project) 6299 lt_prog_compiler_wl='-Wl,' 6300 lt_prog_compiler_pic='-fpic' 6301 lt_prog_compiler_static='-Bstatic' 6302 ;; 6303 ccc*) 6304 lt_prog_compiler_wl='-Wl,' 6305 # All Alpha code is PIC. 6306 lt_prog_compiler_static='-non_shared' 6307 ;; 6308 esac 6309 ;; 6310 6311 osf3* | osf4* | osf5*) 6312 lt_prog_compiler_wl='-Wl,' 6313 # All OSF/1 code is PIC. 6314 lt_prog_compiler_static='-non_shared' 6315 ;; 6316 6317 solaris*) 6318 lt_prog_compiler_pic='-KPIC' 6319 lt_prog_compiler_static='-Bstatic' 6320 case $cc_basename in 6321 f77* | f90* | f95*) 6322 lt_prog_compiler_wl='-Qoption ld ';; 6323 *) 6324 lt_prog_compiler_wl='-Wl,';; 6325 esac 6326 ;; 6327 6328 sunos4*) 6329 lt_prog_compiler_wl='-Qoption ld ' 6330 lt_prog_compiler_pic='-PIC' 6331 lt_prog_compiler_static='-Bstatic' 6332 ;; 6333 6334 sysv4 | sysv4.2uw2* | sysv4.3*) 6335 lt_prog_compiler_wl='-Wl,' 6336 lt_prog_compiler_pic='-KPIC' 6337 lt_prog_compiler_static='-Bstatic' 6338 ;; 6339 6340 sysv4*MP*) 6341 if test -d /usr/nec ;then 6342 lt_prog_compiler_pic='-Kconform_pic' 6343 lt_prog_compiler_static='-Bstatic' 6344 fi 6345 ;; 6346 6347 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 6348 lt_prog_compiler_wl='-Wl,' 6349 lt_prog_compiler_pic='-KPIC' 6350 lt_prog_compiler_static='-Bstatic' 6351 ;; 6352 6353 unicos*) 6354 lt_prog_compiler_wl='-Wl,' 6355 lt_prog_compiler_can_build_shared=no 6356 ;; 6357 6358 uts4*) 6359 lt_prog_compiler_pic='-pic' 6360 lt_prog_compiler_static='-Bstatic' 6361 ;; 6362 6363 *) 6364 lt_prog_compiler_can_build_shared=no 6365 ;; 6366 esac 6367 fi 6368 6369echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 6370echo "${ECHO_T}$lt_prog_compiler_pic" >&6 6371 6372# 6373# Check to make sure the PIC flag actually works. 6374# 6375if test -n "$lt_prog_compiler_pic"; then 6376 6377echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6378echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 6379if test "${lt_prog_compiler_pic_works+set}" = set; then 6380 echo $ECHO_N "(cached) $ECHO_C" >&6 6381else 6382 lt_prog_compiler_pic_works=no 6383 ac_outfile=conftest.$ac_objext 6384 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6385 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6386 # Insert the option either (1) after the last *FLAGS variable, or 6387 # (2) before a word containing "conftest.", or (3) at the end. 6388 # Note that $ac_compile itself does not contain backslashes and begins 6389 # with a dollar sign (not a hyphen), so the echo should work correctly. 6390 # The option is referenced via a variable to avoid confusing sed. 6391 lt_compile=`echo "$ac_compile" | $SED \ 6392 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6393 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6394 -e 's:$: $lt_compiler_flag:'` 6395 (eval echo "\"\$as_me:6395: $lt_compile\"" >&5) 6396 (eval "$lt_compile" 2>conftest.err) 6397 ac_status=$? 6398 cat conftest.err >&5 6399 echo "$as_me:6399: \$? = $ac_status" >&5 6400 if (exit $ac_status) && test -s "$ac_outfile"; then 6401 # The compiler can only warn and ignore the option if not recognized 6402 # So say no if there are warnings other than the usual output. 6403 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6404 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6405 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6406 lt_prog_compiler_pic_works=yes 6407 fi 6408 fi 6409 $rm conftest* 6410 6411fi 6412echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 6413echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 6414 6415if test x"$lt_prog_compiler_pic_works" = xyes; then 6416 case $lt_prog_compiler_pic in 6417 "" | " "*) ;; 6418 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6419 esac 6420else 6421 lt_prog_compiler_pic= 6422 lt_prog_compiler_can_build_shared=no 6423fi 6424 6425fi 6426case $host_os in 6427 # For platforms which do not support PIC, -DPIC is meaningless: 6428 *djgpp*) 6429 lt_prog_compiler_pic= 6430 ;; 6431 *) 6432 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6433 ;; 6434esac 6435 6436# 6437# Check to make sure the static flag actually works. 6438# 6439wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 6440echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 6441echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 6442if test "${lt_prog_compiler_static_works+set}" = set; then 6443 echo $ECHO_N "(cached) $ECHO_C" >&6 6444else 6445 lt_prog_compiler_static_works=no 6446 save_LDFLAGS="$LDFLAGS" 6447 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 6448 printf "$lt_simple_link_test_code" > conftest.$ac_ext 6449 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6450 # The linker can only warn and ignore the option if not recognized 6451 # So say no if there are warnings 6452 if test -s conftest.err; then 6453 # Append any errors to the config.log. 6454 cat conftest.err 1>&5 6455 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 6456 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6457 if diff conftest.exp conftest.er2 >/dev/null; then 6458 lt_prog_compiler_static_works=yes 6459 fi 6460 else 6461 lt_prog_compiler_static_works=yes 6462 fi 6463 fi 6464 $rm conftest* 6465 LDFLAGS="$save_LDFLAGS" 6466 6467fi 6468echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 6469echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 6470 6471if test x"$lt_prog_compiler_static_works" = xyes; then 6472 : 6473else 6474 lt_prog_compiler_static= 6475fi 6476 6477 6478echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6479echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 6480if test "${lt_cv_prog_compiler_c_o+set}" = set; then 6481 echo $ECHO_N "(cached) $ECHO_C" >&6 6482else 6483 lt_cv_prog_compiler_c_o=no 6484 $rm -r conftest 2>/dev/null 6485 mkdir conftest 6486 cd conftest 6487 mkdir out 6488 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6489 6490 lt_compiler_flag="-o out/conftest2.$ac_objext" 6491 # Insert the option either (1) after the last *FLAGS variable, or 6492 # (2) before a word containing "conftest.", or (3) at the end. 6493 # Note that $ac_compile itself does not contain backslashes and begins 6494 # with a dollar sign (not a hyphen), so the echo should work correctly. 6495 lt_compile=`echo "$ac_compile" | $SED \ 6496 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6497 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6498 -e 's:$: $lt_compiler_flag:'` 6499 (eval echo "\"\$as_me:6499: $lt_compile\"" >&5) 6500 (eval "$lt_compile" 2>out/conftest.err) 6501 ac_status=$? 6502 cat out/conftest.err >&5 6503 echo "$as_me:6503: \$? = $ac_status" >&5 6504 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6505 then 6506 # The compiler can only warn and ignore the option if not recognized 6507 # So say no if there are warnings 6508 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 6509 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 6510 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 6511 lt_cv_prog_compiler_c_o=yes 6512 fi 6513 fi 6514 chmod u+w . 2>&5 6515 $rm conftest* 6516 # SGI C++ compiler will create directory out/ii_files/ for 6517 # template instantiation 6518 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 6519 $rm out/* && rmdir out 6520 cd .. 6521 rmdir conftest 6522 $rm conftest* 6523 6524fi 6525echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6526echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 6527 6528 6529hard_links="nottested" 6530if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 6531 # do not overwrite the value of need_locks provided by the user 6532 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 6533echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 6534 hard_links=yes 6535 $rm conftest* 6536 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6537 touch conftest.a 6538 ln conftest.a conftest.b 2>&5 || hard_links=no 6539 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6540 echo "$as_me:$LINENO: result: $hard_links" >&5 6541echo "${ECHO_T}$hard_links" >&6 6542 if test "$hard_links" = no; then 6543 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 6544echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 6545 need_locks=warn 6546 fi 6547else 6548 need_locks=no 6549fi 6550 6551echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 6552echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 6553 6554 runpath_var= 6555 allow_undefined_flag= 6556 enable_shared_with_static_runtimes=no 6557 archive_cmds= 6558 archive_expsym_cmds= 6559 old_archive_From_new_cmds= 6560 old_archive_from_expsyms_cmds= 6561 export_dynamic_flag_spec= 6562 whole_archive_flag_spec= 6563 thread_safe_flag_spec= 6564 hardcode_libdir_flag_spec= 6565 hardcode_libdir_flag_spec_ld= 6566 hardcode_libdir_separator= 6567 hardcode_direct=no 6568 hardcode_minus_L=no 6569 hardcode_shlibpath_var=unsupported 6570 link_all_deplibs=unknown 6571 hardcode_automatic=no 6572 module_cmds= 6573 module_expsym_cmds= 6574 always_export_symbols=no 6575 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6576 # include_expsyms should be a list of space-separated symbols to be *always* 6577 # included in the symbol list 6578 include_expsyms= 6579 # exclude_expsyms can be an extended regexp of symbols to exclude 6580 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6581 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6582 # as well as any symbol that contains `d'. 6583 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 6584 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6585 # platforms (ab)use it in PIC code, but their linkers get confused if 6586 # the symbol is explicitly referenced. Since portable code cannot 6587 # rely on this symbol name, it's probably fine to never include it in 6588 # preloaded symbol tables. 6589 extract_expsyms_cmds= 6590 # Just being paranoid about ensuring that cc_basename is set. 6591 for cc_temp in $compiler""; do 6592 case $cc_temp in 6593 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6594 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6595 \-*) ;; 6596 *) break;; 6597 esac 6598done 6599cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6600 6601 case $host_os in 6602 cygwin* | mingw* | pw32*) 6603 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6604 # When not using gcc, we currently assume that we are using 6605 # Microsoft Visual C++. 6606 if test "$GCC" != yes; then 6607 with_gnu_ld=no 6608 fi 6609 ;; 6610 interix*) 6611 # we just hope/assume this is gcc and not c89 (= MSVC++) 6612 with_gnu_ld=yes 6613 ;; 6614 openbsd*) 6615 with_gnu_ld=no 6616 ;; 6617 esac 6618 6619 ld_shlibs=yes 6620 if test "$with_gnu_ld" = yes; then 6621 # If archive_cmds runs LD, not CC, wlarc should be empty 6622 wlarc='${wl}' 6623 6624 # Set some defaults for GNU ld with shared library support. These 6625 # are reset later if shared libraries are not supported. Putting them 6626 # here allows them to be overridden if necessary. 6627 runpath_var=LD_RUN_PATH 6628 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6629 export_dynamic_flag_spec='${wl}--export-dynamic' 6630 # ancient GNU ld didn't support --whole-archive et. al. 6631 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 6632 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6633 else 6634 whole_archive_flag_spec= 6635 fi 6636 supports_anon_versioning=no 6637 case `$LD -v 2>/dev/null` in 6638 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 6639 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6640 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6641 *\ 2.11.*) ;; # other 2.11 versions 6642 *) supports_anon_versioning=yes ;; 6643 esac 6644 6645 # See if GNU ld supports shared libraries. 6646 case $host_os in 6647 aix3* | aix4* | aix5*) 6648 # On AIX/PPC, the GNU linker is very broken 6649 if test "$host_cpu" != ia64; then 6650 ld_shlibs=no 6651 cat <<EOF 1>&2 6652 6653*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6654*** to be unable to reliably create shared libraries on AIX. 6655*** Therefore, libtool is disabling shared libraries support. If you 6656*** really care for shared libraries, you may want to modify your PATH 6657*** so that a non-GNU linker is found, and then restart. 6658 6659EOF 6660 fi 6661 ;; 6662 6663 amigaos*) 6664 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)' 6665 hardcode_libdir_flag_spec='-L$libdir' 6666 hardcode_minus_L=yes 6667 6668 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 6669 # that the semantics of dynamic libraries on AmigaOS, at least up 6670 # to version 4, is to share data among multiple programs linked 6671 # with the same dynamic library. Since this doesn't match the 6672 # behavior of shared libraries on other platforms, we can't use 6673 # them. 6674 ld_shlibs=no 6675 ;; 6676 6677 beos*) 6678 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6679 allow_undefined_flag=unsupported 6680 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6681 # support --undefined. This deserves some investigation. FIXME 6682 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6683 else 6684 ld_shlibs=no 6685 fi 6686 ;; 6687 6688 cygwin* | mingw* | pw32*) 6689 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 6690 # as there is no search path for DLLs. 6691 hardcode_libdir_flag_spec='-L$libdir' 6692 allow_undefined_flag=unsupported 6693 always_export_symbols=no 6694 enable_shared_with_static_runtimes=yes 6695 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 6696 6697 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 6698 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6699 # If the export-symbols file already is a .def file (1st line 6700 # is EXPORTS), use it as is; otherwise, prepend... 6701 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6702 cp $export_symbols $output_objdir/$soname.def; 6703 else 6704 echo EXPORTS > $output_objdir/$soname.def; 6705 cat $export_symbols >> $output_objdir/$soname.def; 6706 fi~ 6707 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6708 else 6709 ld_shlibs=no 6710 fi 6711 ;; 6712 6713 interix3*) 6714 hardcode_direct=no 6715 hardcode_shlibpath_var=no 6716 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6717 export_dynamic_flag_spec='${wl}-E' 6718 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 6719 # Instead, shared libraries are loaded at an image base (0x10000000 by 6720 # default) and relocated if they conflict, which is a slow very memory 6721 # consuming and fragmenting process. To avoid this, we pick a random, 6722 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 6723 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 6724 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 6725 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' 6726 ;; 6727 6728 linux*) 6729 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6730 tmp_addflag= 6731 case $cc_basename,$host_cpu in 6732 pgcc*) # Portland Group C compiler 6733 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' 6734 tmp_addflag=' $pic_flag' 6735 ;; 6736 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 6737 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' 6738 tmp_addflag=' $pic_flag -Mnomain' ;; 6739 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 6740 tmp_addflag=' -i_dynamic' ;; 6741 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 6742 tmp_addflag=' -i_dynamic -nofor_main' ;; 6743 ifc* | ifort*) # Intel Fortran compiler 6744 tmp_addflag=' -nofor_main' ;; 6745 esac 6746 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6747 6748 if test $supports_anon_versioning = yes; then 6749 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 6750 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6751 $echo "local: *; };" >> $output_objdir/$libname.ver~ 6752 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 6753 fi 6754 else 6755 ld_shlibs=no 6756 fi 6757 ;; 6758 6759 netbsd*) 6760 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6761 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6762 wlarc= 6763 else 6764 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6765 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6766 fi 6767 ;; 6768 6769 solaris*) 6770 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 6771 ld_shlibs=no 6772 cat <<EOF 1>&2 6773 6774*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6775*** create shared libraries on Solaris systems. Therefore, libtool 6776*** is disabling shared libraries support. We urge you to upgrade GNU 6777*** binutils to release 2.9.1 or newer. Another option is to modify 6778*** your PATH or compiler configuration so that the native linker is 6779*** used, and then restart. 6780 6781EOF 6782 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6783 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6784 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6785 else 6786 ld_shlibs=no 6787 fi 6788 ;; 6789 6790 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 6791 case `$LD -v 2>&1` in 6792 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 6793 ld_shlibs=no 6794 cat <<_LT_EOF 1>&2 6795 6796*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 6797*** reliably create shared libraries on SCO systems. Therefore, libtool 6798*** is disabling shared libraries support. We urge you to upgrade GNU 6799*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 6800*** your PATH or compiler configuration so that the native linker is 6801*** used, and then restart. 6802 6803_LT_EOF 6804 ;; 6805 *) 6806 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6807 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 6808 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 6809 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 6810 else 6811 ld_shlibs=no 6812 fi 6813 ;; 6814 esac 6815 ;; 6816 6817 sunos4*) 6818 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6819 wlarc= 6820 hardcode_direct=yes 6821 hardcode_shlibpath_var=no 6822 ;; 6823 6824 *) 6825 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6826 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6827 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6828 else 6829 ld_shlibs=no 6830 fi 6831 ;; 6832 esac 6833 6834 if test "$ld_shlibs" = no; then 6835 runpath_var= 6836 hardcode_libdir_flag_spec= 6837 export_dynamic_flag_spec= 6838 whole_archive_flag_spec= 6839 fi 6840 else 6841 # PORTME fill in a description of your system's linker (not GNU ld) 6842 case $host_os in 6843 aix3*) 6844 allow_undefined_flag=unsupported 6845 always_export_symbols=yes 6846 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' 6847 # Note: this linker hardcodes the directories in LIBPATH if there 6848 # are no directories specified by -L. 6849 hardcode_minus_L=yes 6850 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 6851 # Neither direct hardcoding nor static linking is supported with a 6852 # broken collect2. 6853 hardcode_direct=unsupported 6854 fi 6855 ;; 6856 6857 aix4* | aix5*) 6858 if test "$host_cpu" = ia64; then 6859 # On IA64, the linker does run time linking by default, so we don't 6860 # have to do anything special. 6861 aix_use_runtimelinking=no 6862 exp_sym_flag='-Bexport' 6863 no_entry_flag="" 6864 else 6865 # If we're using GNU nm, then we don't want the "-C" option. 6866 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6867 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 6868 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' 6869 else 6870 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' 6871 fi 6872 aix_use_runtimelinking=no 6873 6874 # Test if we are trying to use run time linking or normal 6875 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6876 # need to do runtime linking. 6877 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 6878 for ld_flag in $LDFLAGS; do 6879 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 6880 aix_use_runtimelinking=yes 6881 break 6882 fi 6883 done 6884 ;; 6885 esac 6886 6887 exp_sym_flag='-bexport' 6888 no_entry_flag='-bnoentry' 6889 fi 6890 6891 # When large executables or shared objects are built, AIX ld can 6892 # have problems creating the table of contents. If linking a library 6893 # or program results in "error TOC overflow" add -mminimal-toc to 6894 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6895 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6896 6897 archive_cmds='' 6898 hardcode_direct=yes 6899 hardcode_libdir_separator=':' 6900 link_all_deplibs=yes 6901 6902 if test "$GCC" = yes; then 6903 case $host_os in aix4.[012]|aix4.[012].*) 6904 # We only want to do this on AIX 4.2 and lower, the check 6905 # below for broken collect2 doesn't work under 4.3+ 6906 collect2name=`${CC} -print-prog-name=collect2` 6907 if test -f "$collect2name" && \ 6908 strings "$collect2name" | grep resolve_lib_name >/dev/null 6909 then 6910 # We have reworked collect2 6911 hardcode_direct=yes 6912 else 6913 # We have old collect2 6914 hardcode_direct=unsupported 6915 # It fails to find uninstalled libraries when the uninstalled 6916 # path is not listed in the libpath. Setting hardcode_minus_L 6917 # to unsupported forces relinking 6918 hardcode_minus_L=yes 6919 hardcode_libdir_flag_spec='-L$libdir' 6920 hardcode_libdir_separator= 6921 fi 6922 ;; 6923 esac 6924 shared_flag='-shared' 6925 if test "$aix_use_runtimelinking" = yes; then 6926 shared_flag="$shared_flag "'${wl}-G' 6927 fi 6928 else 6929 # not using gcc 6930 if test "$host_cpu" = ia64; then 6931 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 6932 # chokes on -Wl,-G. The following line is correct: 6933 shared_flag='-G' 6934 else 6935 if test "$aix_use_runtimelinking" = yes; then 6936 shared_flag='${wl}-G' 6937 else 6938 shared_flag='${wl}-bM:SRE' 6939 fi 6940 fi 6941 fi 6942 6943 # It seems that -bexpall does not export symbols beginning with 6944 # underscore (_), so it is better to generate a list of symbols to export. 6945 always_export_symbols=yes 6946 if test "$aix_use_runtimelinking" = yes; then 6947 # Warning - without using the other runtime loading flags (-brtl), 6948 # -berok will link without error, but may produce a broken library. 6949 allow_undefined_flag='-berok' 6950 # Determine the default libpath from the value encoded in an empty executable. 6951 cat >conftest.$ac_ext <<_ACEOF 6952/* confdefs.h. */ 6953_ACEOF 6954cat confdefs.h >>conftest.$ac_ext 6955cat >>conftest.$ac_ext <<_ACEOF 6956/* end confdefs.h. */ 6957 6958int 6959main () 6960{ 6961 6962 ; 6963 return 0; 6964} 6965_ACEOF 6966rm -f conftest.$ac_objext conftest$ac_exeext 6967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6968 (eval $ac_link) 2>conftest.er1 6969 ac_status=$? 6970 grep -v '^ *+' conftest.er1 >conftest.err 6971 rm -f conftest.er1 6972 cat conftest.err >&5 6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6974 (exit $ac_status); } && 6975 { ac_try='test -z "$ac_c_werror_flag" 6976 || test ! -s conftest.err' 6977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6978 (eval $ac_try) 2>&5 6979 ac_status=$? 6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6981 (exit $ac_status); }; } && 6982 { ac_try='test -s conftest$ac_exeext' 6983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6984 (eval $ac_try) 2>&5 6985 ac_status=$? 6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6987 (exit $ac_status); }; }; then 6988 6989aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 6990}'` 6991# Check for a 64-bit object if we didn't find anything. 6992if 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; } 6993}'`; fi 6994else 6995 echo "$as_me: failed program was:" >&5 6996sed 's/^/| /' conftest.$ac_ext >&5 6997 6998fi 6999rm -f conftest.err conftest.$ac_objext \ 7000 conftest$ac_exeext conftest.$ac_ext 7001if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7002 7003 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7004 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" 7005 else 7006 if test "$host_cpu" = ia64; then 7007 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7008 allow_undefined_flag="-z nodefs" 7009 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" 7010 else 7011 # Determine the default libpath from the value encoded in an empty executable. 7012 cat >conftest.$ac_ext <<_ACEOF 7013/* confdefs.h. */ 7014_ACEOF 7015cat confdefs.h >>conftest.$ac_ext 7016cat >>conftest.$ac_ext <<_ACEOF 7017/* end confdefs.h. */ 7018 7019int 7020main () 7021{ 7022 7023 ; 7024 return 0; 7025} 7026_ACEOF 7027rm -f conftest.$ac_objext conftest$ac_exeext 7028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7029 (eval $ac_link) 2>conftest.er1 7030 ac_status=$? 7031 grep -v '^ *+' conftest.er1 >conftest.err 7032 rm -f conftest.er1 7033 cat conftest.err >&5 7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7035 (exit $ac_status); } && 7036 { ac_try='test -z "$ac_c_werror_flag" 7037 || test ! -s conftest.err' 7038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7039 (eval $ac_try) 2>&5 7040 ac_status=$? 7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7042 (exit $ac_status); }; } && 7043 { ac_try='test -s conftest$ac_exeext' 7044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7045 (eval $ac_try) 2>&5 7046 ac_status=$? 7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7048 (exit $ac_status); }; }; then 7049 7050aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7051}'` 7052# Check for a 64-bit object if we didn't find anything. 7053if 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; } 7054}'`; fi 7055else 7056 echo "$as_me: failed program was:" >&5 7057sed 's/^/| /' conftest.$ac_ext >&5 7058 7059fi 7060rm -f conftest.err conftest.$ac_objext \ 7061 conftest$ac_exeext conftest.$ac_ext 7062if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7063 7064 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7065 # Warning - without using the other run time loading flags, 7066 # -berok will link without error, but may produce a broken library. 7067 no_undefined_flag=' ${wl}-bernotok' 7068 allow_undefined_flag=' ${wl}-berok' 7069 # Exported symbols can be pulled into shared objects from archives 7070 whole_archive_flag_spec='$convenience' 7071 archive_cmds_need_lc=yes 7072 # This is similar to how AIX traditionally builds its shared libraries. 7073 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' 7074 fi 7075 fi 7076 ;; 7077 7078 amigaos*) 7079 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)' 7080 hardcode_libdir_flag_spec='-L$libdir' 7081 hardcode_minus_L=yes 7082 # see comment about different semantics on the GNU ld section 7083 ld_shlibs=no 7084 ;; 7085 7086 bsdi[45]*) 7087 export_dynamic_flag_spec=-rdynamic 7088 ;; 7089 7090 cygwin* | mingw* | pw32*) 7091 # When not using gcc, we currently assume that we are using 7092 # Microsoft Visual C++. 7093 # hardcode_libdir_flag_spec is actually meaningless, as there is 7094 # no search path for DLLs. 7095 hardcode_libdir_flag_spec=' ' 7096 allow_undefined_flag=unsupported 7097 # Tell ltmain to make .lib files, not .a files. 7098 libext=lib 7099 # Tell ltmain to make .dll files, not .so files. 7100 shrext_cmds=".dll" 7101 # FIXME: Setting linknames here is a bad hack. 7102 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7103 # The linker will automatically build a .lib file if we build a DLL. 7104 old_archive_From_new_cmds='true' 7105 # FIXME: Should let the user specify the lib program. 7106 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 7107 fix_srcfile_path='`cygpath -w "$srcfile"`' 7108 enable_shared_with_static_runtimes=yes 7109 ;; 7110 7111 darwin* | rhapsody*) 7112 case $host_os in 7113 rhapsody* | darwin1.[012]) 7114 allow_undefined_flag='${wl}-undefined ${wl}suppress' 7115 ;; 7116 *) # Darwin 1.3 on 7117 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 7118 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7119 else 7120 case ${MACOSX_DEPLOYMENT_TARGET} in 7121 10.[012]) 7122 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7123 ;; 7124 10.*) 7125 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 7126 ;; 7127 esac 7128 fi 7129 ;; 7130 esac 7131 archive_cmds_need_lc=no 7132 hardcode_direct=no 7133 hardcode_automatic=yes 7134 hardcode_shlibpath_var=unsupported 7135 whole_archive_flag_spec='' 7136 link_all_deplibs=yes 7137 if test "$GCC" = yes ; then 7138 output_verbose_link_cmd='echo' 7139 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7140 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7141 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7142 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}' 7143 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}' 7144 else 7145 case $cc_basename in 7146 xlc*) 7147 output_verbose_link_cmd='echo' 7148 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 7149 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7150 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7151 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}' 7152 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}' 7153 ;; 7154 *) 7155 ld_shlibs=no 7156 ;; 7157 esac 7158 fi 7159 ;; 7160 7161 dgux*) 7162 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7163 hardcode_libdir_flag_spec='-L$libdir' 7164 hardcode_shlibpath_var=no 7165 ;; 7166 7167 freebsd1*) 7168 ld_shlibs=no 7169 ;; 7170 7171 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7172 # support. Future versions do this automatically, but an explicit c++rt0.o 7173 # does not break anything, and helps significantly (at the cost of a little 7174 # extra space). 7175 freebsd2.2*) 7176 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7177 hardcode_libdir_flag_spec='-R$libdir' 7178 hardcode_direct=yes 7179 hardcode_shlibpath_var=no 7180 ;; 7181 7182 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7183 freebsd2*) 7184 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7185 hardcode_direct=yes 7186 hardcode_minus_L=yes 7187 hardcode_shlibpath_var=no 7188 ;; 7189 7190 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7191 freebsd* | kfreebsd*-gnu | dragonfly*) 7192 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7193 hardcode_libdir_flag_spec='-R$libdir' 7194 hardcode_direct=yes 7195 hardcode_shlibpath_var=no 7196 ;; 7197 7198 hpux9*) 7199 if test "$GCC" = yes; then 7200 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' 7201 else 7202 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' 7203 fi 7204 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7205 hardcode_libdir_separator=: 7206 hardcode_direct=yes 7207 7208 # hardcode_minus_L: Not really in the search PATH, 7209 # but as the default location of the library. 7210 hardcode_minus_L=yes 7211 export_dynamic_flag_spec='${wl}-E' 7212 ;; 7213 7214 hpux10*) 7215 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7216 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7217 else 7218 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7219 fi 7220 if test "$with_gnu_ld" = no; then 7221 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7222 hardcode_libdir_separator=: 7223 7224 hardcode_direct=yes 7225 export_dynamic_flag_spec='${wl}-E' 7226 7227 # hardcode_minus_L: Not really in the search PATH, 7228 # but as the default location of the library. 7229 hardcode_minus_L=yes 7230 fi 7231 ;; 7232 7233 hpux11*) 7234 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7235 case $host_cpu in 7236 hppa*64*) 7237 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7238 ;; 7239 ia64*) 7240 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7241 ;; 7242 *) 7243 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7244 ;; 7245 esac 7246 else 7247 case $host_cpu in 7248 hppa*64*) 7249 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7250 ;; 7251 ia64*) 7252 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7253 ;; 7254 *) 7255 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7256 ;; 7257 esac 7258 fi 7259 if test "$with_gnu_ld" = no; then 7260 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7261 hardcode_libdir_separator=: 7262 7263 case $host_cpu in 7264 hppa*64*|ia64*) 7265 hardcode_libdir_flag_spec_ld='+b $libdir' 7266 hardcode_direct=no 7267 hardcode_shlibpath_var=no 7268 ;; 7269 *) 7270 hardcode_direct=yes 7271 export_dynamic_flag_spec='${wl}-E' 7272 7273 # hardcode_minus_L: Not really in the search PATH, 7274 # but as the default location of the library. 7275 hardcode_minus_L=yes 7276 ;; 7277 esac 7278 fi 7279 ;; 7280 7281 irix5* | irix6* | nonstopux*) 7282 if test "$GCC" = yes; then 7283 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' 7284 else 7285 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' 7286 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7287 fi 7288 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7289 hardcode_libdir_separator=: 7290 link_all_deplibs=yes 7291 ;; 7292 7293 netbsd*) 7294 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7295 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7296 else 7297 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7298 fi 7299 hardcode_libdir_flag_spec='-R$libdir' 7300 hardcode_direct=yes 7301 hardcode_shlibpath_var=no 7302 ;; 7303 7304 newsos6) 7305 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7306 hardcode_direct=yes 7307 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7308 hardcode_libdir_separator=: 7309 hardcode_shlibpath_var=no 7310 ;; 7311 7312 openbsd*) 7313 hardcode_direct=yes 7314 hardcode_shlibpath_var=no 7315 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7316 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7317 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 7318 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7319 export_dynamic_flag_spec='${wl}-E' 7320 else 7321 case $host_os in 7322 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7323 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7324 hardcode_libdir_flag_spec='-R$libdir' 7325 ;; 7326 *) 7327 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7328 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7329 ;; 7330 esac 7331 fi 7332 ;; 7333 7334 os2*) 7335 hardcode_libdir_flag_spec='-L$libdir' 7336 hardcode_minus_L=yes 7337 allow_undefined_flag=unsupported 7338 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' 7339 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7340 ;; 7341 7342 osf3*) 7343 if test "$GCC" = yes; then 7344 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7345 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' 7346 else 7347 allow_undefined_flag=' -expect_unresolved \*' 7348 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' 7349 fi 7350 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7351 hardcode_libdir_separator=: 7352 ;; 7353 7354 osf4* | osf5*) # as osf3* with the addition of -msym flag 7355 if test "$GCC" = yes; then 7356 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7357 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' 7358 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7359 else 7360 allow_undefined_flag=' -expect_unresolved \*' 7361 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' 7362 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 7363 $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' 7364 7365 # Both c and cxx compiler support -rpath directly 7366 hardcode_libdir_flag_spec='-rpath $libdir' 7367 fi 7368 hardcode_libdir_separator=: 7369 ;; 7370 7371 solaris*) 7372 no_undefined_flag=' -z text' 7373 if test "$GCC" = yes; then 7374 wlarc='${wl}' 7375 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7376 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7377 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 7378 else 7379 wlarc='' 7380 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7381 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7382 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7383 fi 7384 hardcode_libdir_flag_spec='-R$libdir' 7385 hardcode_shlibpath_var=no 7386 case $host_os in 7387 solaris2.[0-5] | solaris2.[0-5].*) ;; 7388 *) 7389 # The compiler driver will combine linker options so we 7390 # cannot just pass the convience library names through 7391 # without $wl, iff we do not link with $LD. 7392 # Luckily, gcc supports the same syntax we need for Sun Studio. 7393 # Supported since Solaris 2.6 (maybe 2.5.1?) 7394 case $wlarc in 7395 '') 7396 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 7397 *) 7398 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' ;; 7399 esac ;; 7400 esac 7401 link_all_deplibs=yes 7402 ;; 7403 7404 sunos4*) 7405 if test "x$host_vendor" = xsequent; then 7406 # Use $CC to link under sequent, because it throws in some extra .o 7407 # files that make .init and .fini sections work. 7408 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7409 else 7410 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7411 fi 7412 hardcode_libdir_flag_spec='-L$libdir' 7413 hardcode_direct=yes 7414 hardcode_minus_L=yes 7415 hardcode_shlibpath_var=no 7416 ;; 7417 7418 sysv4) 7419 case $host_vendor in 7420 sni) 7421 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7422 hardcode_direct=yes # is this really true??? 7423 ;; 7424 siemens) 7425 ## LD is ld it makes a PLAMLIB 7426 ## CC just makes a GrossModule. 7427 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7428 reload_cmds='$CC -r -o $output$reload_objs' 7429 hardcode_direct=no 7430 ;; 7431 motorola) 7432 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7433 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 7434 ;; 7435 esac 7436 runpath_var='LD_RUN_PATH' 7437 hardcode_shlibpath_var=no 7438 ;; 7439 7440 sysv4.3*) 7441 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7442 hardcode_shlibpath_var=no 7443 export_dynamic_flag_spec='-Bexport' 7444 ;; 7445 7446 sysv4*MP*) 7447 if test -d /usr/nec; then 7448 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7449 hardcode_shlibpath_var=no 7450 runpath_var=LD_RUN_PATH 7451 hardcode_runpath_var=yes 7452 ld_shlibs=yes 7453 fi 7454 ;; 7455 7456 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 7457 no_undefined_flag='${wl}-z,text' 7458 archive_cmds_need_lc=no 7459 hardcode_shlibpath_var=no 7460 runpath_var='LD_RUN_PATH' 7461 7462 if test "$GCC" = yes; then 7463 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7464 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7465 else 7466 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7467 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7468 fi 7469 ;; 7470 7471 sysv5* | sco3.2v5* | sco5v6*) 7472 # Note: We can NOT use -z defs as we might desire, because we do not 7473 # link with -lc, and that would cause any symbols used from libc to 7474 # always be unresolved, which means just about no library would 7475 # ever link correctly. If we're not using GNU ld we use -z text 7476 # though, which does catch some bad symbols but isn't as heavy-handed 7477 # as -z defs. 7478 no_undefined_flag='${wl}-z,text' 7479 allow_undefined_flag='${wl}-z,nodefs' 7480 archive_cmds_need_lc=no 7481 hardcode_shlibpath_var=no 7482 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 7483 hardcode_libdir_separator=':' 7484 link_all_deplibs=yes 7485 export_dynamic_flag_spec='${wl}-Bexport' 7486 runpath_var='LD_RUN_PATH' 7487 7488 if test "$GCC" = yes; then 7489 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7490 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7491 else 7492 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7493 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7494 fi 7495 ;; 7496 7497 uts4*) 7498 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7499 hardcode_libdir_flag_spec='-L$libdir' 7500 hardcode_shlibpath_var=no 7501 ;; 7502 7503 *) 7504 ld_shlibs=no 7505 ;; 7506 esac 7507 fi 7508 7509echo "$as_me:$LINENO: result: $ld_shlibs" >&5 7510echo "${ECHO_T}$ld_shlibs" >&6 7511test "$ld_shlibs" = no && can_build_shared=no 7512 7513# 7514# Do we need to explicitly link libc? 7515# 7516case "x$archive_cmds_need_lc" in 7517x|xyes) 7518 # Assume -lc should be added 7519 archive_cmds_need_lc=yes 7520 7521 if test "$enable_shared" = yes && test "$GCC" = yes; then 7522 case $archive_cmds in 7523 *'~'*) 7524 # FIXME: we may have to deal with multi-command sequences. 7525 ;; 7526 '$CC '*) 7527 # Test whether the compiler implicitly links with -lc since on some 7528 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7529 # to ld, don't add -lc before -lgcc. 7530 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7531echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7532 $rm conftest* 7533 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7534 7535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7536 (eval $ac_compile) 2>&5 7537 ac_status=$? 7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7539 (exit $ac_status); } 2>conftest.err; then 7540 soname=conftest 7541 lib=conftest 7542 libobjs=conftest.$ac_objext 7543 deplibs= 7544 wl=$lt_prog_compiler_wl 7545 pic_flag=$lt_prog_compiler_pic 7546 compiler_flags=-v 7547 linker_flags=-v 7548 verstring= 7549 output_objdir=. 7550 libname=conftest 7551 lt_save_allow_undefined_flag=$allow_undefined_flag 7552 allow_undefined_flag= 7553 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 7554 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7555 ac_status=$? 7556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7557 (exit $ac_status); } 7558 then 7559 archive_cmds_need_lc=no 7560 else 7561 archive_cmds_need_lc=yes 7562 fi 7563 allow_undefined_flag=$lt_save_allow_undefined_flag 7564 else 7565 cat conftest.err 1>&5 7566 fi 7567 $rm conftest* 7568 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 7569echo "${ECHO_T}$archive_cmds_need_lc" >&6 7570 ;; 7571 esac 7572 fi 7573 ;; 7574esac 7575 7576echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 7577echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 7578library_names_spec= 7579libname_spec='lib$name' 7580soname_spec= 7581shrext_cmds=".so" 7582postinstall_cmds= 7583postuninstall_cmds= 7584finish_cmds= 7585finish_eval= 7586shlibpath_var= 7587shlibpath_overrides_runpath=unknown 7588version_type=none 7589dynamic_linker="$host_os ld.so" 7590sys_lib_dlsearch_path_spec="/lib /usr/lib" 7591if test "$GCC" = yes; then 7592 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7593 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 7594 # if the path contains ";" then we assume it to be the separator 7595 # otherwise default to the standard path separator (i.e. ":") - it is 7596 # assumed that no part of a normal pathname contains ";" but that should 7597 # okay in the real world where ";" in dirpaths is itself problematic. 7598 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7599 else 7600 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7601 fi 7602else 7603 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 7604fi 7605need_lib_prefix=unknown 7606hardcode_into_libs=no 7607 7608# when you set need_version to no, make sure it does not cause -set_version 7609# flags to be left without arguments 7610need_version=unknown 7611 7612case $host_os in 7613aix3*) 7614 version_type=linux 7615 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 7616 shlibpath_var=LIBPATH 7617 7618 # AIX 3 has no versioning support, so we append a major version to the name. 7619 soname_spec='${libname}${release}${shared_ext}$major' 7620 ;; 7621 7622aix4* | aix5*) 7623 version_type=linux 7624 need_lib_prefix=no 7625 need_version=no 7626 hardcode_into_libs=yes 7627 if test "$host_cpu" = ia64; then 7628 # AIX 5 supports IA64 7629 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 7630 shlibpath_var=LD_LIBRARY_PATH 7631 else 7632 # With GCC up to 2.95.x, collect2 would create an import file 7633 # for dependence libraries. The import file would start with 7634 # the line `#! .'. This would cause the generated library to 7635 # depend on `.', always an invalid library. This was fixed in 7636 # development snapshots of GCC prior to 3.0. 7637 case $host_os in 7638 aix4 | aix4.[01] | aix4.[01].*) 7639 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 7640 echo ' yes ' 7641 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 7642 : 7643 else 7644 can_build_shared=no 7645 fi 7646 ;; 7647 esac 7648 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 7649 # soname into executable. Probably we can add versioning support to 7650 # collect2, so additional links can be useful in future. 7651 if test "$aix_use_runtimelinking" = yes; then 7652 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 7653 # instead of lib<name>.a to let people know that these are not 7654 # typical AIX shared libraries. 7655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7656 else 7657 # We preserve .a as extension for shared libraries through AIX4.2 7658 # and later when we are not doing run time linking. 7659 library_names_spec='${libname}${release}.a $libname.a' 7660 soname_spec='${libname}${release}${shared_ext}$major' 7661 fi 7662 shlibpath_var=LIBPATH 7663 fi 7664 ;; 7665 7666amigaos*) 7667 library_names_spec='$libname.ixlibrary $libname.a' 7668 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7669 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' 7670 ;; 7671 7672beos*) 7673 library_names_spec='${libname}${shared_ext}' 7674 dynamic_linker="$host_os ld.so" 7675 shlibpath_var=LIBRARY_PATH 7676 ;; 7677 7678bsdi[45]*) 7679 version_type=linux 7680 need_version=no 7681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7682 soname_spec='${libname}${release}${shared_ext}$major' 7683 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 7684 shlibpath_var=LD_LIBRARY_PATH 7685 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 7686 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 7687 # the default ld.so.conf also contains /usr/contrib/lib and 7688 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 7689 # libtool to hard-code these into programs 7690 ;; 7691 7692cygwin* | mingw* | pw32*) 7693 version_type=windows 7694 shrext_cmds=".dll" 7695 need_version=no 7696 need_lib_prefix=no 7697 7698 case $GCC,$host_os in 7699 yes,cygwin* | yes,mingw* | yes,pw32*) 7700 library_names_spec='$libname.dll.a' 7701 # DLL is installed to $(libdir)/../bin by postinstall_cmds 7702 postinstall_cmds='base_file=`basename \${file}`~ 7703 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 7704 dldir=$destdir/`dirname \$dlpath`~ 7705 test -d \$dldir || mkdir -p \$dldir~ 7706 $install_prog $dir/$dlname \$dldir/$dlname~ 7707 chmod a+x \$dldir/$dlname' 7708 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 7709 dlpath=$dir/\$dldll~ 7710 $rm \$dlpath' 7711 shlibpath_overrides_runpath=yes 7712 7713 case $host_os in 7714 cygwin*) 7715 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 7716 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7717 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 7718 ;; 7719 mingw*) 7720 # MinGW DLLs use traditional 'lib' prefix 7721 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7722 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7723 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 7724 # It is most probably a Windows format PATH printed by 7725 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7726 # path with ; separators, and with drive letters. We can handle the 7727 # drive letters (cygwin fileutils understands them), so leave them, 7728 # especially as we might pass files found there to a mingw objdump, 7729 # which wouldn't understand a cygwinified path. Ahh. 7730 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7731 else 7732 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7733 fi 7734 ;; 7735 pw32*) 7736 # pw32 DLLs use 'pw' prefix rather than 'lib' 7737 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7738 ;; 7739 esac 7740 ;; 7741 7742 *) 7743 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 7744 ;; 7745 esac 7746 dynamic_linker='Win32 ld.exe' 7747 # FIXME: first we should search . and the directory the executable is in 7748 shlibpath_var=PATH 7749 ;; 7750 7751darwin* | rhapsody*) 7752 dynamic_linker="$host_os dyld" 7753 version_type=darwin 7754 need_lib_prefix=no 7755 need_version=no 7756 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 7757 soname_spec='${libname}${release}${major}$shared_ext' 7758 shlibpath_overrides_runpath=yes 7759 shlibpath_var=DYLD_LIBRARY_PATH 7760 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 7761 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 7762 if test "$GCC" = yes; then 7763 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"` 7764 else 7765 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 7766 fi 7767 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 7768 ;; 7769 7770dgux*) 7771 version_type=linux 7772 need_lib_prefix=no 7773 need_version=no 7774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 7775 soname_spec='${libname}${release}${shared_ext}$major' 7776 shlibpath_var=LD_LIBRARY_PATH 7777 ;; 7778 7779freebsd1*) 7780 dynamic_linker=no 7781 ;; 7782 7783kfreebsd*-gnu) 7784 version_type=linux 7785 need_lib_prefix=no 7786 need_version=no 7787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7788 soname_spec='${libname}${release}${shared_ext}$major' 7789 shlibpath_var=LD_LIBRARY_PATH 7790 shlibpath_overrides_runpath=no 7791 hardcode_into_libs=yes 7792 dynamic_linker='GNU ld.so' 7793 ;; 7794 7795freebsd* | dragonfly*) 7796 # DragonFly does not have aout. When/if they implement a new 7797 # versioning mechanism, adjust this. 7798 if test -x /usr/bin/objformat; then 7799 objformat=`/usr/bin/objformat` 7800 else 7801 case $host_os in 7802 freebsd[123]*) objformat=aout ;; 7803 *) objformat=elf ;; 7804 esac 7805 fi 7806 version_type=freebsd-$objformat 7807 case $version_type in 7808 freebsd-elf*) 7809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 7810 need_version=no 7811 need_lib_prefix=no 7812 ;; 7813 freebsd-*) 7814 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 7815 need_version=yes 7816 ;; 7817 esac 7818 shlibpath_var=LD_LIBRARY_PATH 7819 case $host_os in 7820 freebsd2*) 7821 shlibpath_overrides_runpath=yes 7822 ;; 7823 freebsd3.[01]* | freebsdelf3.[01]*) 7824 shlibpath_overrides_runpath=yes 7825 hardcode_into_libs=yes 7826 ;; 7827 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 7828 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 7829 shlibpath_overrides_runpath=no 7830 hardcode_into_libs=yes 7831 ;; 7832 freebsd*) # from 4.6 on 7833 shlibpath_overrides_runpath=yes 7834 hardcode_into_libs=yes 7835 ;; 7836 esac 7837 ;; 7838 7839gnu*) 7840 version_type=linux 7841 need_lib_prefix=no 7842 need_version=no 7843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 7844 soname_spec='${libname}${release}${shared_ext}$major' 7845 shlibpath_var=LD_LIBRARY_PATH 7846 hardcode_into_libs=yes 7847 ;; 7848 7849hpux9* | hpux10* | hpux11*) 7850 # Give a soname corresponding to the major version so that dld.sl refuses to 7851 # link against other versions. 7852 version_type=sunos 7853 need_lib_prefix=no 7854 need_version=no 7855 case $host_cpu in 7856 ia64*) 7857 shrext_cmds='.so' 7858 hardcode_into_libs=yes 7859 dynamic_linker="$host_os dld.so" 7860 shlibpath_var=LD_LIBRARY_PATH 7861 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7863 soname_spec='${libname}${release}${shared_ext}$major' 7864 if test "X$HPUX_IA64_MODE" = X32; then 7865 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 7866 else 7867 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 7868 fi 7869 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7870 ;; 7871 hppa*64*) 7872 shrext_cmds='.sl' 7873 hardcode_into_libs=yes 7874 dynamic_linker="$host_os dld.sl" 7875 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 7876 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7878 soname_spec='${libname}${release}${shared_ext}$major' 7879 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 7880 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7881 ;; 7882 *) 7883 shrext_cmds='.sl' 7884 dynamic_linker="$host_os dld.sl" 7885 shlibpath_var=SHLIB_PATH 7886 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 7887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7888 soname_spec='${libname}${release}${shared_ext}$major' 7889 ;; 7890 esac 7891 # HP-UX runs *really* slowly unless shared libraries are mode 555. 7892 postinstall_cmds='chmod 555 $lib' 7893 ;; 7894 7895interix3*) 7896 version_type=linux 7897 need_lib_prefix=no 7898 need_version=no 7899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7900 soname_spec='${libname}${release}${shared_ext}$major' 7901 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 7902 shlibpath_var=LD_LIBRARY_PATH 7903 shlibpath_overrides_runpath=no 7904 hardcode_into_libs=yes 7905 ;; 7906 7907irix5* | irix6* | nonstopux*) 7908 case $host_os in 7909 nonstopux*) version_type=nonstopux ;; 7910 *) 7911 if test "$lt_cv_prog_gnu_ld" = yes; then 7912 version_type=linux 7913 else 7914 version_type=irix 7915 fi ;; 7916 esac 7917 need_lib_prefix=no 7918 need_version=no 7919 soname_spec='${libname}${release}${shared_ext}$major' 7920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 7921 case $host_os in 7922 irix5* | nonstopux*) 7923 libsuff= shlibsuff= 7924 ;; 7925 *) 7926 case $LD in # libtool.m4 will add one of these switches to LD 7927 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 7928 libsuff= shlibsuff= libmagic=32-bit;; 7929 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 7930 libsuff=32 shlibsuff=N32 libmagic=N32;; 7931 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 7932 libsuff=64 shlibsuff=64 libmagic=64-bit;; 7933 *) libsuff= shlibsuff= libmagic=never-match;; 7934 esac 7935 ;; 7936 esac 7937 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 7938 shlibpath_overrides_runpath=no 7939 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 7940 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 7941 hardcode_into_libs=yes 7942 ;; 7943 7944# No shared lib support for Linux oldld, aout, or coff. 7945linux*oldld* | linux*aout* | linux*coff*) 7946 dynamic_linker=no 7947 ;; 7948 7949# This must be Linux ELF. 7950linux*) 7951 version_type=linux 7952 need_lib_prefix=no 7953 need_version=no 7954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7955 soname_spec='${libname}${release}${shared_ext}$major' 7956 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 7957 shlibpath_var=LD_LIBRARY_PATH 7958 shlibpath_overrides_runpath=no 7959 # This implies no fast_install, which is unacceptable. 7960 # Some rework will be needed to allow for fast_install 7961 # before this can be enabled. 7962 hardcode_into_libs=yes 7963 7964 # Append ld.so.conf contents to the search path 7965 if test -f /etc/ld.so.conf; then 7966 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 7967 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 7968 fi 7969 7970 # We used to test for /lib/ld.so.1 and disable shared libraries on 7971 # powerpc, because MkLinux only supported shared libraries with the 7972 # GNU dynamic linker. Since this was broken with cross compilers, 7973 # most powerpc-linux boxes support dynamic linking these days and 7974 # people can always --disable-shared, the test was removed, and we 7975 # assume the GNU/Linux dynamic linker is in use. 7976 dynamic_linker='GNU/Linux ld.so' 7977 ;; 7978 7979knetbsd*-gnu) 7980 version_type=linux 7981 need_lib_prefix=no 7982 need_version=no 7983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7984 soname_spec='${libname}${release}${shared_ext}$major' 7985 shlibpath_var=LD_LIBRARY_PATH 7986 shlibpath_overrides_runpath=no 7987 hardcode_into_libs=yes 7988 dynamic_linker='GNU ld.so' 7989 ;; 7990 7991netbsd*) 7992 version_type=sunos 7993 need_lib_prefix=no 7994 need_version=no 7995 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7997 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7998 dynamic_linker='NetBSD (a.out) ld.so' 7999 else 8000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8001 soname_spec='${libname}${release}${shared_ext}$major' 8002 dynamic_linker='NetBSD ld.elf_so' 8003 fi 8004 shlibpath_var=LD_LIBRARY_PATH 8005 shlibpath_overrides_runpath=yes 8006 hardcode_into_libs=yes 8007 ;; 8008 8009newsos6) 8010 version_type=linux 8011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8012 shlibpath_var=LD_LIBRARY_PATH 8013 shlibpath_overrides_runpath=yes 8014 ;; 8015 8016nto-qnx*) 8017 version_type=linux 8018 need_lib_prefix=no 8019 need_version=no 8020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8021 soname_spec='${libname}${release}${shared_ext}$major' 8022 shlibpath_var=LD_LIBRARY_PATH 8023 shlibpath_overrides_runpath=yes 8024 ;; 8025 8026openbsd*) 8027 version_type=sunos 8028 sys_lib_dlsearch_path_spec="/usr/lib" 8029 need_lib_prefix=no 8030 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8031 case $host_os in 8032 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8033 *) need_version=no ;; 8034 esac 8035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8036 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8037 shlibpath_var=LD_LIBRARY_PATH 8038 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8039 case $host_os in 8040 openbsd2.[89] | openbsd2.[89].*) 8041 shlibpath_overrides_runpath=no 8042 ;; 8043 *) 8044 shlibpath_overrides_runpath=yes 8045 ;; 8046 esac 8047 else 8048 shlibpath_overrides_runpath=yes 8049 fi 8050 ;; 8051 8052os2*) 8053 libname_spec='$name' 8054 shrext_cmds=".dll" 8055 need_lib_prefix=no 8056 library_names_spec='$libname${shared_ext} $libname.a' 8057 dynamic_linker='OS/2 ld.exe' 8058 shlibpath_var=LIBPATH 8059 ;; 8060 8061osf3* | osf4* | osf5*) 8062 version_type=osf 8063 need_lib_prefix=no 8064 need_version=no 8065 soname_spec='${libname}${release}${shared_ext}$major' 8066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8067 shlibpath_var=LD_LIBRARY_PATH 8068 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8069 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8070 ;; 8071 8072solaris*) 8073 version_type=linux 8074 need_lib_prefix=no 8075 need_version=no 8076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8077 soname_spec='${libname}${release}${shared_ext}$major' 8078 shlibpath_var=LD_LIBRARY_PATH 8079 shlibpath_overrides_runpath=yes 8080 hardcode_into_libs=yes 8081 # ldd complains unless libraries are executable 8082 postinstall_cmds='chmod +x $lib' 8083 ;; 8084 8085sunos4*) 8086 version_type=sunos 8087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8088 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8089 shlibpath_var=LD_LIBRARY_PATH 8090 shlibpath_overrides_runpath=yes 8091 if test "$with_gnu_ld" = yes; then 8092 need_lib_prefix=no 8093 fi 8094 need_version=yes 8095 ;; 8096 8097sysv4 | sysv4.3*) 8098 version_type=linux 8099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8100 soname_spec='${libname}${release}${shared_ext}$major' 8101 shlibpath_var=LD_LIBRARY_PATH 8102 case $host_vendor in 8103 sni) 8104 shlibpath_overrides_runpath=no 8105 need_lib_prefix=no 8106 export_dynamic_flag_spec='${wl}-Blargedynsym' 8107 runpath_var=LD_RUN_PATH 8108 ;; 8109 siemens) 8110 need_lib_prefix=no 8111 ;; 8112 motorola) 8113 need_lib_prefix=no 8114 need_version=no 8115 shlibpath_overrides_runpath=no 8116 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8117 ;; 8118 esac 8119 ;; 8120 8121sysv4*MP*) 8122 if test -d /usr/nec ;then 8123 version_type=linux 8124 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8125 soname_spec='$libname${shared_ext}.$major' 8126 shlibpath_var=LD_LIBRARY_PATH 8127 fi 8128 ;; 8129 8130sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8131 version_type=freebsd-elf 8132 need_lib_prefix=no 8133 need_version=no 8134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8135 soname_spec='${libname}${release}${shared_ext}$major' 8136 shlibpath_var=LD_LIBRARY_PATH 8137 hardcode_into_libs=yes 8138 if test "$with_gnu_ld" = yes; then 8139 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 8140 shlibpath_overrides_runpath=no 8141 else 8142 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 8143 shlibpath_overrides_runpath=yes 8144 case $host_os in 8145 sco3.2v5*) 8146 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 8147 ;; 8148 esac 8149 fi 8150 sys_lib_dlsearch_path_spec='/usr/lib' 8151 ;; 8152 8153uts4*) 8154 version_type=linux 8155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8156 soname_spec='${libname}${release}${shared_ext}$major' 8157 shlibpath_var=LD_LIBRARY_PATH 8158 ;; 8159 8160*) 8161 dynamic_linker=no 8162 ;; 8163esac 8164echo "$as_me:$LINENO: result: $dynamic_linker" >&5 8165echo "${ECHO_T}$dynamic_linker" >&6 8166test "$dynamic_linker" = no && can_build_shared=no 8167 8168variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 8169if test "$GCC" = yes; then 8170 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 8171fi 8172 8173echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 8174echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 8175hardcode_action= 8176if test -n "$hardcode_libdir_flag_spec" || \ 8177 test -n "$runpath_var" || \ 8178 test "X$hardcode_automatic" = "Xyes" ; then 8179 8180 # We can hardcode non-existant directories. 8181 if test "$hardcode_direct" != no && 8182 # If the only mechanism to avoid hardcoding is shlibpath_var, we 8183 # have to relink, otherwise we might link with an installed library 8184 # when we should be linking with a yet-to-be-installed one 8185 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 8186 test "$hardcode_minus_L" != no; then 8187 # Linking always hardcodes the temporary library directory. 8188 hardcode_action=relink 8189 else 8190 # We can link without hardcoding, and we can hardcode nonexisting dirs. 8191 hardcode_action=immediate 8192 fi 8193else 8194 # We cannot hardcode anything, or else we can only hardcode existing 8195 # directories. 8196 hardcode_action=unsupported 8197fi 8198echo "$as_me:$LINENO: result: $hardcode_action" >&5 8199echo "${ECHO_T}$hardcode_action" >&6 8200 8201if test "$hardcode_action" = relink; then 8202 # Fast installation is not supported 8203 enable_fast_install=no 8204elif test "$shlibpath_overrides_runpath" = yes || 8205 test "$enable_shared" = no; then 8206 # Fast installation is not necessary 8207 enable_fast_install=needless 8208fi 8209 8210striplib= 8211old_striplib= 8212echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 8213echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 8214if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 8215 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 8216 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 8217 echo "$as_me:$LINENO: result: yes" >&5 8218echo "${ECHO_T}yes" >&6 8219else 8220# FIXME - insert some real tests, host_os isn't really good enough 8221 case $host_os in 8222 darwin*) 8223 if test -n "$STRIP" ; then 8224 striplib="$STRIP -x" 8225 echo "$as_me:$LINENO: result: yes" >&5 8226echo "${ECHO_T}yes" >&6 8227 else 8228 echo "$as_me:$LINENO: result: no" >&5 8229echo "${ECHO_T}no" >&6 8230fi 8231 ;; 8232 *) 8233 echo "$as_me:$LINENO: result: no" >&5 8234echo "${ECHO_T}no" >&6 8235 ;; 8236 esac 8237fi 8238 8239if test "x$enable_dlopen" != xyes; then 8240 enable_dlopen=unknown 8241 enable_dlopen_self=unknown 8242 enable_dlopen_self_static=unknown 8243else 8244 lt_cv_dlopen=no 8245 lt_cv_dlopen_libs= 8246 8247 case $host_os in 8248 beos*) 8249 lt_cv_dlopen="load_add_on" 8250 lt_cv_dlopen_libs= 8251 lt_cv_dlopen_self=yes 8252 ;; 8253 8254 mingw* | pw32*) 8255 lt_cv_dlopen="LoadLibrary" 8256 lt_cv_dlopen_libs= 8257 ;; 8258 8259 cygwin*) 8260 lt_cv_dlopen="dlopen" 8261 lt_cv_dlopen_libs= 8262 ;; 8263 8264 darwin*) 8265 # if libdl is installed we need to link against it 8266 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8267echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8268if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8269 echo $ECHO_N "(cached) $ECHO_C" >&6 8270else 8271 ac_check_lib_save_LIBS=$LIBS 8272LIBS="-ldl $LIBS" 8273cat >conftest.$ac_ext <<_ACEOF 8274/* confdefs.h. */ 8275_ACEOF 8276cat confdefs.h >>conftest.$ac_ext 8277cat >>conftest.$ac_ext <<_ACEOF 8278/* end confdefs.h. */ 8279 8280/* Override any gcc2 internal prototype to avoid an error. */ 8281#ifdef __cplusplus 8282extern "C" 8283#endif 8284/* We use char because int might match the return type of a gcc2 8285 builtin and then its argument prototype would still apply. */ 8286char dlopen (); 8287int 8288main () 8289{ 8290dlopen (); 8291 ; 8292 return 0; 8293} 8294_ACEOF 8295rm -f conftest.$ac_objext conftest$ac_exeext 8296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8297 (eval $ac_link) 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_c_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_exeext' 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 ac_cv_lib_dl_dlopen=yes 8318else 8319 echo "$as_me: failed program was:" >&5 8320sed 's/^/| /' conftest.$ac_ext >&5 8321 8322ac_cv_lib_dl_dlopen=no 8323fi 8324rm -f conftest.err conftest.$ac_objext \ 8325 conftest$ac_exeext conftest.$ac_ext 8326LIBS=$ac_check_lib_save_LIBS 8327fi 8328echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8329echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8330if test $ac_cv_lib_dl_dlopen = yes; then 8331 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8332else 8333 8334 lt_cv_dlopen="dyld" 8335 lt_cv_dlopen_libs= 8336 lt_cv_dlopen_self=yes 8337 8338fi 8339 8340 ;; 8341 8342 *) 8343 echo "$as_me:$LINENO: checking for shl_load" >&5 8344echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 8345if test "${ac_cv_func_shl_load+set}" = set; then 8346 echo $ECHO_N "(cached) $ECHO_C" >&6 8347else 8348 cat >conftest.$ac_ext <<_ACEOF 8349/* confdefs.h. */ 8350_ACEOF 8351cat confdefs.h >>conftest.$ac_ext 8352cat >>conftest.$ac_ext <<_ACEOF 8353/* end confdefs.h. */ 8354/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 8355 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8356#define shl_load innocuous_shl_load 8357 8358/* System header to define __stub macros and hopefully few prototypes, 8359 which can conflict with char shl_load (); below. 8360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8361 <limits.h> exists even on freestanding compilers. */ 8362 8363#ifdef __STDC__ 8364# include <limits.h> 8365#else 8366# include <assert.h> 8367#endif 8368 8369#undef shl_load 8370 8371/* Override any gcc2 internal prototype to avoid an error. */ 8372#ifdef __cplusplus 8373extern "C" 8374{ 8375#endif 8376/* We use char because int might match the return type of a gcc2 8377 builtin and then its argument prototype would still apply. */ 8378char shl_load (); 8379/* The GNU C library defines this for functions which it implements 8380 to always fail with ENOSYS. Some functions are actually named 8381 something starting with __ and the normal name is an alias. */ 8382#if defined (__stub_shl_load) || defined (__stub___shl_load) 8383choke me 8384#else 8385char (*f) () = shl_load; 8386#endif 8387#ifdef __cplusplus 8388} 8389#endif 8390 8391int 8392main () 8393{ 8394return f != shl_load; 8395 ; 8396 return 0; 8397} 8398_ACEOF 8399rm -f conftest.$ac_objext conftest$ac_exeext 8400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8401 (eval $ac_link) 2>conftest.er1 8402 ac_status=$? 8403 grep -v '^ *+' conftest.er1 >conftest.err 8404 rm -f conftest.er1 8405 cat conftest.err >&5 8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8407 (exit $ac_status); } && 8408 { ac_try='test -z "$ac_c_werror_flag" 8409 || test ! -s conftest.err' 8410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8411 (eval $ac_try) 2>&5 8412 ac_status=$? 8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8414 (exit $ac_status); }; } && 8415 { ac_try='test -s conftest$ac_exeext' 8416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8417 (eval $ac_try) 2>&5 8418 ac_status=$? 8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8420 (exit $ac_status); }; }; then 8421 ac_cv_func_shl_load=yes 8422else 8423 echo "$as_me: failed program was:" >&5 8424sed 's/^/| /' conftest.$ac_ext >&5 8425 8426ac_cv_func_shl_load=no 8427fi 8428rm -f conftest.err conftest.$ac_objext \ 8429 conftest$ac_exeext conftest.$ac_ext 8430fi 8431echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 8432echo "${ECHO_T}$ac_cv_func_shl_load" >&6 8433if test $ac_cv_func_shl_load = yes; then 8434 lt_cv_dlopen="shl_load" 8435else 8436 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8437echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 8438if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8439 echo $ECHO_N "(cached) $ECHO_C" >&6 8440else 8441 ac_check_lib_save_LIBS=$LIBS 8442LIBS="-ldld $LIBS" 8443cat >conftest.$ac_ext <<_ACEOF 8444/* confdefs.h. */ 8445_ACEOF 8446cat confdefs.h >>conftest.$ac_ext 8447cat >>conftest.$ac_ext <<_ACEOF 8448/* end confdefs.h. */ 8449 8450/* Override any gcc2 internal prototype to avoid an error. */ 8451#ifdef __cplusplus 8452extern "C" 8453#endif 8454/* We use char because int might match the return type of a gcc2 8455 builtin and then its argument prototype would still apply. */ 8456char shl_load (); 8457int 8458main () 8459{ 8460shl_load (); 8461 ; 8462 return 0; 8463} 8464_ACEOF 8465rm -f conftest.$ac_objext conftest$ac_exeext 8466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8467 (eval $ac_link) 2>conftest.er1 8468 ac_status=$? 8469 grep -v '^ *+' conftest.er1 >conftest.err 8470 rm -f conftest.er1 8471 cat conftest.err >&5 8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8473 (exit $ac_status); } && 8474 { ac_try='test -z "$ac_c_werror_flag" 8475 || test ! -s conftest.err' 8476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8477 (eval $ac_try) 2>&5 8478 ac_status=$? 8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8480 (exit $ac_status); }; } && 8481 { ac_try='test -s conftest$ac_exeext' 8482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8483 (eval $ac_try) 2>&5 8484 ac_status=$? 8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8486 (exit $ac_status); }; }; then 8487 ac_cv_lib_dld_shl_load=yes 8488else 8489 echo "$as_me: failed program was:" >&5 8490sed 's/^/| /' conftest.$ac_ext >&5 8491 8492ac_cv_lib_dld_shl_load=no 8493fi 8494rm -f conftest.err conftest.$ac_objext \ 8495 conftest$ac_exeext conftest.$ac_ext 8496LIBS=$ac_check_lib_save_LIBS 8497fi 8498echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8499echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 8500if test $ac_cv_lib_dld_shl_load = yes; then 8501 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 8502else 8503 echo "$as_me:$LINENO: checking for dlopen" >&5 8504echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 8505if test "${ac_cv_func_dlopen+set}" = set; then 8506 echo $ECHO_N "(cached) $ECHO_C" >&6 8507else 8508 cat >conftest.$ac_ext <<_ACEOF 8509/* confdefs.h. */ 8510_ACEOF 8511cat confdefs.h >>conftest.$ac_ext 8512cat >>conftest.$ac_ext <<_ACEOF 8513/* end confdefs.h. */ 8514/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 8515 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8516#define dlopen innocuous_dlopen 8517 8518/* System header to define __stub macros and hopefully few prototypes, 8519 which can conflict with char dlopen (); below. 8520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8521 <limits.h> exists even on freestanding compilers. */ 8522 8523#ifdef __STDC__ 8524# include <limits.h> 8525#else 8526# include <assert.h> 8527#endif 8528 8529#undef dlopen 8530 8531/* Override any gcc2 internal prototype to avoid an error. */ 8532#ifdef __cplusplus 8533extern "C" 8534{ 8535#endif 8536/* We use char because int might match the return type of a gcc2 8537 builtin and then its argument prototype would still apply. */ 8538char dlopen (); 8539/* The GNU C library defines this for functions which it implements 8540 to always fail with ENOSYS. Some functions are actually named 8541 something starting with __ and the normal name is an alias. */ 8542#if defined (__stub_dlopen) || defined (__stub___dlopen) 8543choke me 8544#else 8545char (*f) () = dlopen; 8546#endif 8547#ifdef __cplusplus 8548} 8549#endif 8550 8551int 8552main () 8553{ 8554return f != dlopen; 8555 ; 8556 return 0; 8557} 8558_ACEOF 8559rm -f conftest.$ac_objext conftest$ac_exeext 8560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8561 (eval $ac_link) 2>conftest.er1 8562 ac_status=$? 8563 grep -v '^ *+' conftest.er1 >conftest.err 8564 rm -f conftest.er1 8565 cat conftest.err >&5 8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8567 (exit $ac_status); } && 8568 { ac_try='test -z "$ac_c_werror_flag" 8569 || test ! -s conftest.err' 8570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8571 (eval $ac_try) 2>&5 8572 ac_status=$? 8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8574 (exit $ac_status); }; } && 8575 { ac_try='test -s conftest$ac_exeext' 8576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8577 (eval $ac_try) 2>&5 8578 ac_status=$? 8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8580 (exit $ac_status); }; }; then 8581 ac_cv_func_dlopen=yes 8582else 8583 echo "$as_me: failed program was:" >&5 8584sed 's/^/| /' conftest.$ac_ext >&5 8585 8586ac_cv_func_dlopen=no 8587fi 8588rm -f conftest.err conftest.$ac_objext \ 8589 conftest$ac_exeext conftest.$ac_ext 8590fi 8591echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 8592echo "${ECHO_T}$ac_cv_func_dlopen" >&6 8593if test $ac_cv_func_dlopen = yes; then 8594 lt_cv_dlopen="dlopen" 8595else 8596 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8597echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8598if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8599 echo $ECHO_N "(cached) $ECHO_C" >&6 8600else 8601 ac_check_lib_save_LIBS=$LIBS 8602LIBS="-ldl $LIBS" 8603cat >conftest.$ac_ext <<_ACEOF 8604/* confdefs.h. */ 8605_ACEOF 8606cat confdefs.h >>conftest.$ac_ext 8607cat >>conftest.$ac_ext <<_ACEOF 8608/* end confdefs.h. */ 8609 8610/* Override any gcc2 internal prototype to avoid an error. */ 8611#ifdef __cplusplus 8612extern "C" 8613#endif 8614/* We use char because int might match the return type of a gcc2 8615 builtin and then its argument prototype would still apply. */ 8616char dlopen (); 8617int 8618main () 8619{ 8620dlopen (); 8621 ; 8622 return 0; 8623} 8624_ACEOF 8625rm -f conftest.$ac_objext conftest$ac_exeext 8626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8627 (eval $ac_link) 2>conftest.er1 8628 ac_status=$? 8629 grep -v '^ *+' conftest.er1 >conftest.err 8630 rm -f conftest.er1 8631 cat conftest.err >&5 8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8633 (exit $ac_status); } && 8634 { ac_try='test -z "$ac_c_werror_flag" 8635 || test ! -s conftest.err' 8636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8637 (eval $ac_try) 2>&5 8638 ac_status=$? 8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8640 (exit $ac_status); }; } && 8641 { ac_try='test -s conftest$ac_exeext' 8642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8643 (eval $ac_try) 2>&5 8644 ac_status=$? 8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8646 (exit $ac_status); }; }; then 8647 ac_cv_lib_dl_dlopen=yes 8648else 8649 echo "$as_me: failed program was:" >&5 8650sed 's/^/| /' conftest.$ac_ext >&5 8651 8652ac_cv_lib_dl_dlopen=no 8653fi 8654rm -f conftest.err conftest.$ac_objext \ 8655 conftest$ac_exeext conftest.$ac_ext 8656LIBS=$ac_check_lib_save_LIBS 8657fi 8658echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8659echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8660if test $ac_cv_lib_dl_dlopen = yes; then 8661 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8662else 8663 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 8664echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 8665if test "${ac_cv_lib_svld_dlopen+set}" = set; then 8666 echo $ECHO_N "(cached) $ECHO_C" >&6 8667else 8668 ac_check_lib_save_LIBS=$LIBS 8669LIBS="-lsvld $LIBS" 8670cat >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 8677/* Override any gcc2 internal prototype to avoid an error. */ 8678#ifdef __cplusplus 8679extern "C" 8680#endif 8681/* We use char because int might match the return type of a gcc2 8682 builtin and then its argument prototype would still apply. */ 8683char dlopen (); 8684int 8685main () 8686{ 8687dlopen (); 8688 ; 8689 return 0; 8690} 8691_ACEOF 8692rm -f conftest.$ac_objext conftest$ac_exeext 8693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8694 (eval $ac_link) 2>conftest.er1 8695 ac_status=$? 8696 grep -v '^ *+' conftest.er1 >conftest.err 8697 rm -f conftest.er1 8698 cat conftest.err >&5 8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8700 (exit $ac_status); } && 8701 { ac_try='test -z "$ac_c_werror_flag" 8702 || test ! -s conftest.err' 8703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8704 (eval $ac_try) 2>&5 8705 ac_status=$? 8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8707 (exit $ac_status); }; } && 8708 { ac_try='test -s conftest$ac_exeext' 8709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8710 (eval $ac_try) 2>&5 8711 ac_status=$? 8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8713 (exit $ac_status); }; }; then 8714 ac_cv_lib_svld_dlopen=yes 8715else 8716 echo "$as_me: failed program was:" >&5 8717sed 's/^/| /' conftest.$ac_ext >&5 8718 8719ac_cv_lib_svld_dlopen=no 8720fi 8721rm -f conftest.err conftest.$ac_objext \ 8722 conftest$ac_exeext conftest.$ac_ext 8723LIBS=$ac_check_lib_save_LIBS 8724fi 8725echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 8726echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 8727if test $ac_cv_lib_svld_dlopen = yes; then 8728 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 8729else 8730 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 8731echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 8732if test "${ac_cv_lib_dld_dld_link+set}" = set; then 8733 echo $ECHO_N "(cached) $ECHO_C" >&6 8734else 8735 ac_check_lib_save_LIBS=$LIBS 8736LIBS="-ldld $LIBS" 8737cat >conftest.$ac_ext <<_ACEOF 8738/* confdefs.h. */ 8739_ACEOF 8740cat confdefs.h >>conftest.$ac_ext 8741cat >>conftest.$ac_ext <<_ACEOF 8742/* end confdefs.h. */ 8743 8744/* Override any gcc2 internal prototype to avoid an error. */ 8745#ifdef __cplusplus 8746extern "C" 8747#endif 8748/* We use char because int might match the return type of a gcc2 8749 builtin and then its argument prototype would still apply. */ 8750char dld_link (); 8751int 8752main () 8753{ 8754dld_link (); 8755 ; 8756 return 0; 8757} 8758_ACEOF 8759rm -f conftest.$ac_objext conftest$ac_exeext 8760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8761 (eval $ac_link) 2>conftest.er1 8762 ac_status=$? 8763 grep -v '^ *+' conftest.er1 >conftest.err 8764 rm -f conftest.er1 8765 cat conftest.err >&5 8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8767 (exit $ac_status); } && 8768 { ac_try='test -z "$ac_c_werror_flag" 8769 || test ! -s conftest.err' 8770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8771 (eval $ac_try) 2>&5 8772 ac_status=$? 8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8774 (exit $ac_status); }; } && 8775 { ac_try='test -s conftest$ac_exeext' 8776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8777 (eval $ac_try) 2>&5 8778 ac_status=$? 8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8780 (exit $ac_status); }; }; then 8781 ac_cv_lib_dld_dld_link=yes 8782else 8783 echo "$as_me: failed program was:" >&5 8784sed 's/^/| /' conftest.$ac_ext >&5 8785 8786ac_cv_lib_dld_dld_link=no 8787fi 8788rm -f conftest.err conftest.$ac_objext \ 8789 conftest$ac_exeext conftest.$ac_ext 8790LIBS=$ac_check_lib_save_LIBS 8791fi 8792echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 8793echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 8794if test $ac_cv_lib_dld_dld_link = yes; then 8795 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 8796fi 8797 8798 8799fi 8800 8801 8802fi 8803 8804 8805fi 8806 8807 8808fi 8809 8810 8811fi 8812 8813 ;; 8814 esac 8815 8816 if test "x$lt_cv_dlopen" != xno; then 8817 enable_dlopen=yes 8818 else 8819 enable_dlopen=no 8820 fi 8821 8822 case $lt_cv_dlopen in 8823 dlopen) 8824 save_CPPFLAGS="$CPPFLAGS" 8825 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 8826 8827 save_LDFLAGS="$LDFLAGS" 8828 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 8829 8830 save_LIBS="$LIBS" 8831 LIBS="$lt_cv_dlopen_libs $LIBS" 8832 8833 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 8834echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 8835if test "${lt_cv_dlopen_self+set}" = set; then 8836 echo $ECHO_N "(cached) $ECHO_C" >&6 8837else 8838 if test "$cross_compiling" = yes; then : 8839 lt_cv_dlopen_self=cross 8840else 8841 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8842 lt_status=$lt_dlunknown 8843 cat > conftest.$ac_ext <<EOF 8844#line 8844 "configure" 8845#include "confdefs.h" 8846 8847#if HAVE_DLFCN_H 8848#include <dlfcn.h> 8849#endif 8850 8851#include <stdio.h> 8852 8853#ifdef RTLD_GLOBAL 8854# define LT_DLGLOBAL RTLD_GLOBAL 8855#else 8856# ifdef DL_GLOBAL 8857# define LT_DLGLOBAL DL_GLOBAL 8858# else 8859# define LT_DLGLOBAL 0 8860# endif 8861#endif 8862 8863/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 8864 find out it does not work in some platform. */ 8865#ifndef LT_DLLAZY_OR_NOW 8866# ifdef RTLD_LAZY 8867# define LT_DLLAZY_OR_NOW RTLD_LAZY 8868# else 8869# ifdef DL_LAZY 8870# define LT_DLLAZY_OR_NOW DL_LAZY 8871# else 8872# ifdef RTLD_NOW 8873# define LT_DLLAZY_OR_NOW RTLD_NOW 8874# else 8875# ifdef DL_NOW 8876# define LT_DLLAZY_OR_NOW DL_NOW 8877# else 8878# define LT_DLLAZY_OR_NOW 0 8879# endif 8880# endif 8881# endif 8882# endif 8883#endif 8884 8885#ifdef __cplusplus 8886extern "C" void exit (int); 8887#endif 8888 8889void fnord() { int i=42;} 8890int main () 8891{ 8892 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 8893 int status = $lt_dlunknown; 8894 8895 if (self) 8896 { 8897 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 8898 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 8899 /* dlclose (self); */ 8900 } 8901 else 8902 puts (dlerror ()); 8903 8904 exit (status); 8905} 8906EOF 8907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8908 (eval $ac_link) 2>&5 8909 ac_status=$? 8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8911 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8912 (./conftest; exit; ) >&5 2>/dev/null 8913 lt_status=$? 8914 case x$lt_status in 8915 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 8916 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 8917 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 8918 esac 8919 else : 8920 # compilation failed 8921 lt_cv_dlopen_self=no 8922 fi 8923fi 8924rm -fr conftest* 8925 8926 8927fi 8928echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 8929echo "${ECHO_T}$lt_cv_dlopen_self" >&6 8930 8931 if test "x$lt_cv_dlopen_self" = xyes; then 8932 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 8933 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 8934echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 8935if test "${lt_cv_dlopen_self_static+set}" = set; then 8936 echo $ECHO_N "(cached) $ECHO_C" >&6 8937else 8938 if test "$cross_compiling" = yes; then : 8939 lt_cv_dlopen_self_static=cross 8940else 8941 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8942 lt_status=$lt_dlunknown 8943 cat > conftest.$ac_ext <<EOF 8944#line 8944 "configure" 8945#include "confdefs.h" 8946 8947#if HAVE_DLFCN_H 8948#include <dlfcn.h> 8949#endif 8950 8951#include <stdio.h> 8952 8953#ifdef RTLD_GLOBAL 8954# define LT_DLGLOBAL RTLD_GLOBAL 8955#else 8956# ifdef DL_GLOBAL 8957# define LT_DLGLOBAL DL_GLOBAL 8958# else 8959# define LT_DLGLOBAL 0 8960# endif 8961#endif 8962 8963/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 8964 find out it does not work in some platform. */ 8965#ifndef LT_DLLAZY_OR_NOW 8966# ifdef RTLD_LAZY 8967# define LT_DLLAZY_OR_NOW RTLD_LAZY 8968# else 8969# ifdef DL_LAZY 8970# define LT_DLLAZY_OR_NOW DL_LAZY 8971# else 8972# ifdef RTLD_NOW 8973# define LT_DLLAZY_OR_NOW RTLD_NOW 8974# else 8975# ifdef DL_NOW 8976# define LT_DLLAZY_OR_NOW DL_NOW 8977# else 8978# define LT_DLLAZY_OR_NOW 0 8979# endif 8980# endif 8981# endif 8982# endif 8983#endif 8984 8985#ifdef __cplusplus 8986extern "C" void exit (int); 8987#endif 8988 8989void fnord() { int i=42;} 8990int main () 8991{ 8992 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 8993 int status = $lt_dlunknown; 8994 8995 if (self) 8996 { 8997 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 8998 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 8999 /* dlclose (self); */ 9000 } 9001 else 9002 puts (dlerror ()); 9003 9004 exit (status); 9005} 9006EOF 9007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9008 (eval $ac_link) 2>&5 9009 ac_status=$? 9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9011 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9012 (./conftest; exit; ) >&5 2>/dev/null 9013 lt_status=$? 9014 case x$lt_status in 9015 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9016 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9017 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 9018 esac 9019 else : 9020 # compilation failed 9021 lt_cv_dlopen_self_static=no 9022 fi 9023fi 9024rm -fr conftest* 9025 9026 9027fi 9028echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9029echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 9030 fi 9031 9032 CPPFLAGS="$save_CPPFLAGS" 9033 LDFLAGS="$save_LDFLAGS" 9034 LIBS="$save_LIBS" 9035 ;; 9036 esac 9037 9038 case $lt_cv_dlopen_self in 9039 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9040 *) enable_dlopen_self=unknown ;; 9041 esac 9042 9043 case $lt_cv_dlopen_self_static in 9044 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9045 *) enable_dlopen_self_static=unknown ;; 9046 esac 9047fi 9048 9049 9050# Report which library types will actually be built 9051echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9052echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 9053echo "$as_me:$LINENO: result: $can_build_shared" >&5 9054echo "${ECHO_T}$can_build_shared" >&6 9055 9056echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9057echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 9058test "$can_build_shared" = "no" && enable_shared=no 9059 9060# On AIX, shared libraries and static libraries use the same namespace, and 9061# are all built from PIC. 9062case $host_os in 9063aix3*) 9064 test "$enable_shared" = yes && enable_static=no 9065 if test -n "$RANLIB"; then 9066 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9067 postinstall_cmds='$RANLIB $lib' 9068 fi 9069 ;; 9070 9071aix4* | aix5*) 9072 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9073 test "$enable_shared" = yes && enable_static=no 9074 fi 9075 ;; 9076esac 9077echo "$as_me:$LINENO: result: $enable_shared" >&5 9078echo "${ECHO_T}$enable_shared" >&6 9079 9080echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9081echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 9082# Make sure either enable_shared or enable_static is yes. 9083test "$enable_shared" = yes || enable_static=yes 9084echo "$as_me:$LINENO: result: $enable_static" >&5 9085echo "${ECHO_T}$enable_static" >&6 9086 9087# The else clause should only fire when bootstrapping the 9088# libtool distribution, otherwise you forgot to ship ltmain.sh 9089# with your package, and you will get complaints that there are 9090# no rules to generate ltmain.sh. 9091if test -f "$ltmain"; then 9092 # See if we are running on zsh, and set the options which allow our commands through 9093 # without removal of \ escapes. 9094 if test -n "${ZSH_VERSION+set}" ; then 9095 setopt NO_GLOB_SUBST 9096 fi 9097 # Now quote all the things that may contain metacharacters while being 9098 # careful not to overquote the AC_SUBSTed values. We take copies of the 9099 # variables and quote the copies for generation of the libtool script. 9100 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 9101 SED SHELL STRIP \ 9102 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9103 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9104 deplibs_check_method reload_flag reload_cmds need_locks \ 9105 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9106 lt_cv_sys_global_symbol_to_c_name_address \ 9107 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9108 old_postinstall_cmds old_postuninstall_cmds \ 9109 compiler \ 9110 CC \ 9111 LD \ 9112 lt_prog_compiler_wl \ 9113 lt_prog_compiler_pic \ 9114 lt_prog_compiler_static \ 9115 lt_prog_compiler_no_builtin_flag \ 9116 export_dynamic_flag_spec \ 9117 thread_safe_flag_spec \ 9118 whole_archive_flag_spec \ 9119 enable_shared_with_static_runtimes \ 9120 old_archive_cmds \ 9121 old_archive_from_new_cmds \ 9122 predep_objects \ 9123 postdep_objects \ 9124 predeps \ 9125 postdeps \ 9126 compiler_lib_search_path \ 9127 archive_cmds \ 9128 archive_expsym_cmds \ 9129 postinstall_cmds \ 9130 postuninstall_cmds \ 9131 old_archive_from_expsyms_cmds \ 9132 allow_undefined_flag \ 9133 no_undefined_flag \ 9134 export_symbols_cmds \ 9135 hardcode_libdir_flag_spec \ 9136 hardcode_libdir_flag_spec_ld \ 9137 hardcode_libdir_separator \ 9138 hardcode_automatic \ 9139 module_cmds \ 9140 module_expsym_cmds \ 9141 lt_cv_prog_compiler_c_o \ 9142 exclude_expsyms \ 9143 include_expsyms; do 9144 9145 case $var in 9146 old_archive_cmds | \ 9147 old_archive_from_new_cmds | \ 9148 archive_cmds | \ 9149 archive_expsym_cmds | \ 9150 module_cmds | \ 9151 module_expsym_cmds | \ 9152 old_archive_from_expsyms_cmds | \ 9153 export_symbols_cmds | \ 9154 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 9155 postinstall_cmds | postuninstall_cmds | \ 9156 old_postinstall_cmds | old_postuninstall_cmds | \ 9157 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 9158 # Double-quote double-evaled strings. 9159 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 9160 ;; 9161 *) 9162 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 9163 ;; 9164 esac 9165 done 9166 9167 case $lt_echo in 9168 *'\$0 --fallback-echo"') 9169 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 9170 ;; 9171 esac 9172 9173cfgfile="${ofile}T" 9174 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 9175 $rm -f "$cfgfile" 9176 { echo "$as_me:$LINENO: creating $ofile" >&5 9177echo "$as_me: creating $ofile" >&6;} 9178 9179 cat <<__EOF__ >> "$cfgfile" 9180#! $SHELL 9181 9182# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 9183# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 9184# NOTE: Changes made to this file will be lost: look at ltmain.sh. 9185# 9186# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 9187# Free Software Foundation, Inc. 9188# 9189# This file is part of GNU Libtool: 9190# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 9191# 9192# This program is free software; you can redistribute it and/or modify 9193# it under the terms of the GNU General Public License as published by 9194# the Free Software Foundation; either version 2 of the License, or 9195# (at your option) any later version. 9196# 9197# This program is distributed in the hope that it will be useful, but 9198# WITHOUT ANY WARRANTY; without even the implied warranty of 9199# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9200# General Public License for more details. 9201# 9202# You should have received a copy of the GNU General Public License 9203# along with this program; if not, write to the Free Software 9204# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 9205# 9206# As a special exception to the GNU General Public License, if you 9207# distribute this file as part of a program that contains a 9208# configuration script generated by Autoconf, you may include it under 9209# the same distribution terms that you use for the rest of that program. 9210 9211# A sed program that does not truncate output. 9212SED=$lt_SED 9213 9214# Sed that helps us avoid accidentally triggering echo(1) options like -n. 9215Xsed="$SED -e 1s/^X//" 9216 9217# The HP-UX ksh and POSIX shell print the target directory to stdout 9218# if CDPATH is set. 9219(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 9220 9221# The names of the tagged configurations supported by this script. 9222available_tags= 9223 9224# ### BEGIN LIBTOOL CONFIG 9225 9226# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 9227 9228# Shell to use when invoking shell scripts. 9229SHELL=$lt_SHELL 9230 9231# Whether or not to build shared libraries. 9232build_libtool_libs=$enable_shared 9233 9234# Whether or not to build static libraries. 9235build_old_libs=$enable_static 9236 9237# Whether or not to add -lc for building shared libraries. 9238build_libtool_need_lc=$archive_cmds_need_lc 9239 9240# Whether or not to disallow shared libs when runtime libs are static 9241allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 9242 9243# Whether or not to optimize for fast installation. 9244fast_install=$enable_fast_install 9245 9246# The host system. 9247host_alias=$host_alias 9248host=$host 9249host_os=$host_os 9250 9251# The build system. 9252build_alias=$build_alias 9253build=$build 9254build_os=$build_os 9255 9256# An echo program that does not interpret backslashes. 9257echo=$lt_echo 9258 9259# The archiver. 9260AR=$lt_AR 9261AR_FLAGS=$lt_AR_FLAGS 9262 9263# A C compiler. 9264LTCC=$lt_LTCC 9265 9266# LTCC compiler flags. 9267LTCFLAGS=$lt_LTCFLAGS 9268 9269# A language-specific compiler. 9270CC=$lt_compiler 9271 9272# Is the compiler the GNU C compiler? 9273with_gcc=$GCC 9274 9275# An ERE matcher. 9276EGREP=$lt_EGREP 9277 9278# The linker used to build libraries. 9279LD=$lt_LD 9280 9281# Whether we need hard or soft links. 9282LN_S=$lt_LN_S 9283 9284# A BSD-compatible nm program. 9285NM=$lt_NM 9286 9287# A symbol stripping program 9288STRIP=$lt_STRIP 9289 9290# Used to examine libraries when file_magic_cmd begins "file" 9291MAGIC_CMD=$MAGIC_CMD 9292 9293# Used on cygwin: DLL creation program. 9294DLLTOOL="$DLLTOOL" 9295 9296# Used on cygwin: object dumper. 9297OBJDUMP="$OBJDUMP" 9298 9299# Used on cygwin: assembler. 9300AS="$AS" 9301 9302# The name of the directory that contains temporary libtool files. 9303objdir=$objdir 9304 9305# How to create reloadable object files. 9306reload_flag=$lt_reload_flag 9307reload_cmds=$lt_reload_cmds 9308 9309# How to pass a linker flag through the compiler. 9310wl=$lt_lt_prog_compiler_wl 9311 9312# Object file suffix (normally "o"). 9313objext="$ac_objext" 9314 9315# Old archive suffix (normally "a"). 9316libext="$libext" 9317 9318# Shared library suffix (normally ".so"). 9319shrext_cmds='$shrext_cmds' 9320 9321# Executable file suffix (normally ""). 9322exeext="$exeext" 9323 9324# Additional compiler flags for building library objects. 9325pic_flag=$lt_lt_prog_compiler_pic 9326pic_mode=$pic_mode 9327 9328# What is the maximum length of a command? 9329max_cmd_len=$lt_cv_sys_max_cmd_len 9330 9331# Does compiler simultaneously support -c and -o options? 9332compiler_c_o=$lt_lt_cv_prog_compiler_c_o 9333 9334# Must we lock files when doing compilation? 9335need_locks=$lt_need_locks 9336 9337# Do we need the lib prefix for modules? 9338need_lib_prefix=$need_lib_prefix 9339 9340# Do we need a version for libraries? 9341need_version=$need_version 9342 9343# Whether dlopen is supported. 9344dlopen_support=$enable_dlopen 9345 9346# Whether dlopen of programs is supported. 9347dlopen_self=$enable_dlopen_self 9348 9349# Whether dlopen of statically linked programs is supported. 9350dlopen_self_static=$enable_dlopen_self_static 9351 9352# Compiler flag to prevent dynamic linking. 9353link_static_flag=$lt_lt_prog_compiler_static 9354 9355# Compiler flag to turn off builtin functions. 9356no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 9357 9358# Compiler flag to allow reflexive dlopens. 9359export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 9360 9361# Compiler flag to generate shared objects directly from archives. 9362whole_archive_flag_spec=$lt_whole_archive_flag_spec 9363 9364# Compiler flag to generate thread-safe objects. 9365thread_safe_flag_spec=$lt_thread_safe_flag_spec 9366 9367# Library versioning type. 9368version_type=$version_type 9369 9370# Format of library name prefix. 9371libname_spec=$lt_libname_spec 9372 9373# List of archive names. First name is the real one, the rest are links. 9374# The last name is the one that the linker finds with -lNAME. 9375library_names_spec=$lt_library_names_spec 9376 9377# The coded name of the library, if different from the real name. 9378soname_spec=$lt_soname_spec 9379 9380# Commands used to build and install an old-style archive. 9381RANLIB=$lt_RANLIB 9382old_archive_cmds=$lt_old_archive_cmds 9383old_postinstall_cmds=$lt_old_postinstall_cmds 9384old_postuninstall_cmds=$lt_old_postuninstall_cmds 9385 9386# Create an old-style archive from a shared archive. 9387old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 9388 9389# Create a temporary old-style archive to link instead of a shared archive. 9390old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 9391 9392# Commands used to build and install a shared archive. 9393archive_cmds=$lt_archive_cmds 9394archive_expsym_cmds=$lt_archive_expsym_cmds 9395postinstall_cmds=$lt_postinstall_cmds 9396postuninstall_cmds=$lt_postuninstall_cmds 9397 9398# Commands used to build a loadable module (assumed same as above if empty) 9399module_cmds=$lt_module_cmds 9400module_expsym_cmds=$lt_module_expsym_cmds 9401 9402# Commands to strip libraries. 9403old_striplib=$lt_old_striplib 9404striplib=$lt_striplib 9405 9406# Dependencies to place before the objects being linked to create a 9407# shared library. 9408predep_objects=$lt_predep_objects 9409 9410# Dependencies to place after the objects being linked to create a 9411# shared library. 9412postdep_objects=$lt_postdep_objects 9413 9414# Dependencies to place before the objects being linked to create a 9415# shared library. 9416predeps=$lt_predeps 9417 9418# Dependencies to place after the objects being linked to create a 9419# shared library. 9420postdeps=$lt_postdeps 9421 9422# The library search path used internally by the compiler when linking 9423# a shared library. 9424compiler_lib_search_path=$lt_compiler_lib_search_path 9425 9426# Method to check whether dependent libraries are shared objects. 9427deplibs_check_method=$lt_deplibs_check_method 9428 9429# Command to use when deplibs_check_method == file_magic. 9430file_magic_cmd=$lt_file_magic_cmd 9431 9432# Flag that allows shared libraries with undefined symbols to be built. 9433allow_undefined_flag=$lt_allow_undefined_flag 9434 9435# Flag that forces no undefined symbols. 9436no_undefined_flag=$lt_no_undefined_flag 9437 9438# Commands used to finish a libtool library installation in a directory. 9439finish_cmds=$lt_finish_cmds 9440 9441# Same as above, but a single script fragment to be evaled but not shown. 9442finish_eval=$lt_finish_eval 9443 9444# Take the output of nm and produce a listing of raw symbols and C names. 9445global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 9446 9447# Transform the output of nm in a proper C declaration 9448global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 9449 9450# Transform the output of nm in a C name address pair 9451global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 9452 9453# This is the shared library runtime path variable. 9454runpath_var=$runpath_var 9455 9456# This is the shared library path variable. 9457shlibpath_var=$shlibpath_var 9458 9459# Is shlibpath searched before the hard-coded library search path? 9460shlibpath_overrides_runpath=$shlibpath_overrides_runpath 9461 9462# How to hardcode a shared library path into an executable. 9463hardcode_action=$hardcode_action 9464 9465# Whether we should hardcode library paths into libraries. 9466hardcode_into_libs=$hardcode_into_libs 9467 9468# Flag to hardcode \$libdir into a binary during linking. 9469# This must work even if \$libdir does not exist. 9470hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 9471 9472# If ld is used when linking, flag to hardcode \$libdir into 9473# a binary during linking. This must work even if \$libdir does 9474# not exist. 9475hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 9476 9477# Whether we need a single -rpath flag with a separated argument. 9478hardcode_libdir_separator=$lt_hardcode_libdir_separator 9479 9480# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 9481# resulting binary. 9482hardcode_direct=$hardcode_direct 9483 9484# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 9485# resulting binary. 9486hardcode_minus_L=$hardcode_minus_L 9487 9488# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 9489# the resulting binary. 9490hardcode_shlibpath_var=$hardcode_shlibpath_var 9491 9492# Set to yes if building a shared library automatically hardcodes DIR into the library 9493# and all subsequent libraries and executables linked against it. 9494hardcode_automatic=$hardcode_automatic 9495 9496# Variables whose values should be saved in libtool wrapper scripts and 9497# restored at relink time. 9498variables_saved_for_relink="$variables_saved_for_relink" 9499 9500# Whether libtool must link a program against all its dependency libraries. 9501link_all_deplibs=$link_all_deplibs 9502 9503# Compile-time system search path for libraries 9504sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 9505 9506# Run-time system search path for libraries 9507sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 9508 9509# Fix the shell variable \$srcfile for the compiler. 9510fix_srcfile_path="$fix_srcfile_path" 9511 9512# Set to yes if exported symbols are required. 9513always_export_symbols=$always_export_symbols 9514 9515# The commands to list exported symbols. 9516export_symbols_cmds=$lt_export_symbols_cmds 9517 9518# The commands to extract the exported symbol list from a shared archive. 9519extract_expsyms_cmds=$lt_extract_expsyms_cmds 9520 9521# Symbols that should not be listed in the preloaded symbols. 9522exclude_expsyms=$lt_exclude_expsyms 9523 9524# Symbols that must always be exported. 9525include_expsyms=$lt_include_expsyms 9526 9527# ### END LIBTOOL CONFIG 9528 9529__EOF__ 9530 9531 9532 case $host_os in 9533 aix3*) 9534 cat <<\EOF >> "$cfgfile" 9535 9536# AIX sometimes has problems with the GCC collect2 program. For some 9537# reason, if we set the COLLECT_NAMES environment variable, the problems 9538# vanish in a puff of smoke. 9539if test "X${COLLECT_NAMES+set}" != Xset; then 9540 COLLECT_NAMES= 9541 export COLLECT_NAMES 9542fi 9543EOF 9544 ;; 9545 esac 9546 9547 # We use sed instead of cat because bash on DJGPP gets confused if 9548 # if finds mixed CR/LF and LF-only lines. Since sed operates in 9549 # text mode, it properly converts lines to CR/LF. This bash problem 9550 # is reportedly fixed, but why not run on old versions too? 9551 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 9552 9553 mv -f "$cfgfile" "$ofile" || \ 9554 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 9555 chmod +x "$ofile" 9556 9557else 9558 # If there is no Makefile yet, we rely on a make rule to execute 9559 # `config.status --recheck' to rerun these tests and create the 9560 # libtool script then. 9561 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 9562 if test -f "$ltmain_in"; then 9563 test -f Makefile && make "$ltmain" 9564 fi 9565fi 9566 9567 9568ac_ext=cc 9569ac_cpp='$CXXCPP $CPPFLAGS' 9570ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9571ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9572ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9573 9574CC="$lt_save_CC" 9575 9576 9577 if test -f "$ltmain"; then 9578 if test ! -f "${ofile}"; then 9579 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 9580echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 9581 fi 9582 9583 if test -z "$LTCC"; then 9584 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 9585 if test -z "$LTCC"; then 9586 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 9587echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 9588 else 9589 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 9590echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 9591 fi 9592 fi 9593 9594 9595 9596 # setting tagname to avoid 'libtool: ignoring unknown tag' warnings 9597 # because AC_LIBTOOL_LANG_*_CONFIG below call AC_LIBTOOL_CONFIG with 9598 # that parameter (or the latter gets it from global namespace, not sure). 9599 # -- Alex. 9600 tagname=CXX 9601 9602 echo "configuring $ofile for $tagname support" 9603 9604 if test -n "$CXX" && test "X$CXX" != "Xno"; then 9605 ac_ext=cc 9606ac_cpp='$CXXCPP $CPPFLAGS' 9607ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9608ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9609ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9610 9611 9612 9613 9614archive_cmds_need_lc_CXX=no 9615allow_undefined_flag_CXX= 9616always_export_symbols_CXX=no 9617archive_expsym_cmds_CXX= 9618export_dynamic_flag_spec_CXX= 9619hardcode_direct_CXX=no 9620hardcode_libdir_flag_spec_CXX= 9621hardcode_libdir_flag_spec_ld_CXX= 9622hardcode_libdir_separator_CXX= 9623hardcode_minus_L_CXX=no 9624hardcode_shlibpath_var_CXX=unsupported 9625hardcode_automatic_CXX=no 9626module_cmds_CXX= 9627module_expsym_cmds_CXX= 9628link_all_deplibs_CXX=unknown 9629old_archive_cmds_CXX=$old_archive_cmds 9630no_undefined_flag_CXX= 9631whole_archive_flag_spec_CXX= 9632enable_shared_with_static_runtimes_CXX=no 9633 9634# Dependencies to place before and after the object being linked: 9635predep_objects_CXX= 9636postdep_objects_CXX= 9637predeps_CXX= 9638postdeps_CXX= 9639compiler_lib_search_path_CXX= 9640 9641# Source file extension for C++ test sources. 9642ac_ext=cpp 9643 9644# Object file extension for compiled C++ test sources. 9645objext=o 9646objext_CXX=$objext 9647 9648# Code to be used in simple compile tests 9649lt_simple_compile_test_code="int some_variable = 0;\n" 9650 9651# Code to be used in simple link tests 9652lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 9653 9654# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9655 9656# If no C compiler was specified, use CC. 9657LTCC=${LTCC-"$CC"} 9658 9659# If no C compiler flags were specified, use CFLAGS. 9660LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9661 9662# Allow CC to be a program name with arguments. 9663compiler=$CC 9664 9665 9666# save warnings/boilerplate of simple test code 9667ac_outfile=conftest.$ac_objext 9668printf "$lt_simple_compile_test_code" >conftest.$ac_ext 9669eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9670_lt_compiler_boilerplate=`cat conftest.err` 9671$rm conftest* 9672 9673ac_outfile=conftest.$ac_objext 9674printf "$lt_simple_link_test_code" >conftest.$ac_ext 9675eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9676_lt_linker_boilerplate=`cat conftest.err` 9677$rm conftest* 9678 9679 9680# Allow CC to be a program name with arguments. 9681lt_save_CC=$CC 9682lt_save_LD=$LD 9683lt_save_GCC=$GCC 9684GCC=$GXX 9685lt_save_with_gnu_ld=$with_gnu_ld 9686lt_save_path_LD=$lt_cv_path_LD 9687if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 9688 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 9689else 9690 $as_unset lt_cv_prog_gnu_ld 9691fi 9692if test -n "${lt_cv_path_LDCXX+set}"; then 9693 lt_cv_path_LD=$lt_cv_path_LDCXX 9694else 9695 $as_unset lt_cv_path_LD 9696fi 9697test -z "${LDCXX+set}" || LD=$LDCXX 9698CC=${CXX-"c++"} 9699compiler=$CC 9700compiler_CXX=$CC 9701for cc_temp in $compiler""; do 9702 case $cc_temp in 9703 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9704 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9705 \-*) ;; 9706 *) break;; 9707 esac 9708done 9709cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 9710 9711 9712# We don't want -fno-exception wen compiling C++ code, so set the 9713# no_builtin_flag separately 9714if test "$GXX" = yes; then 9715 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 9716else 9717 lt_prog_compiler_no_builtin_flag_CXX= 9718fi 9719 9720if test "$GXX" = yes; then 9721 # Set up default GNU C++ configuration 9722 9723 9724# Check whether --with-gnu-ld or --without-gnu-ld was given. 9725if test "${with_gnu_ld+set}" = set; then 9726 withval="$with_gnu_ld" 9727 test "$withval" = no || with_gnu_ld=yes 9728else 9729 with_gnu_ld=no 9730fi; 9731ac_prog=ld 9732if test "$GCC" = yes; then 9733 # Check if gcc -print-prog-name=ld gives a path. 9734 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 9735echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 9736 case $host in 9737 *-*-mingw*) 9738 # gcc leaves a trailing carriage return which upsets mingw 9739 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 9740 *) 9741 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 9742 esac 9743 case $ac_prog in 9744 # Accept absolute paths. 9745 [\\/]* | ?:[\\/]*) 9746 re_direlt='/[^/][^/]*/\.\./' 9747 # Canonicalize the pathname of ld 9748 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 9749 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 9750 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 9751 done 9752 test -z "$LD" && LD="$ac_prog" 9753 ;; 9754 "") 9755 # If it fails, then pretend we aren't using GCC. 9756 ac_prog=ld 9757 ;; 9758 *) 9759 # If it is relative, then search for the first ld in PATH. 9760 with_gnu_ld=unknown 9761 ;; 9762 esac 9763elif test "$with_gnu_ld" = yes; then 9764 echo "$as_me:$LINENO: checking for GNU ld" >&5 9765echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 9766else 9767 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 9768echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 9769fi 9770if test "${lt_cv_path_LD+set}" = set; then 9771 echo $ECHO_N "(cached) $ECHO_C" >&6 9772else 9773 if test -z "$LD"; then 9774 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9775 for ac_dir in $PATH; do 9776 IFS="$lt_save_ifs" 9777 test -z "$ac_dir" && ac_dir=. 9778 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 9779 lt_cv_path_LD="$ac_dir/$ac_prog" 9780 # Check to see if the program is GNU ld. I'd rather use --version, 9781 # but apparently some variants of GNU ld only accept -v. 9782 # Break only if it was the GNU/non-GNU ld that we prefer. 9783 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 9784 *GNU* | *'with BFD'*) 9785 test "$with_gnu_ld" != no && break 9786 ;; 9787 *) 9788 test "$with_gnu_ld" != yes && break 9789 ;; 9790 esac 9791 fi 9792 done 9793 IFS="$lt_save_ifs" 9794else 9795 lt_cv_path_LD="$LD" # Let the user override the test with a path. 9796fi 9797fi 9798 9799LD="$lt_cv_path_LD" 9800if test -n "$LD"; then 9801 echo "$as_me:$LINENO: result: $LD" >&5 9802echo "${ECHO_T}$LD" >&6 9803else 9804 echo "$as_me:$LINENO: result: no" >&5 9805echo "${ECHO_T}no" >&6 9806fi 9807test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 9808echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 9809 { (exit 1); exit 1; }; } 9810echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 9811echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 9812if test "${lt_cv_prog_gnu_ld+set}" = set; then 9813 echo $ECHO_N "(cached) $ECHO_C" >&6 9814else 9815 # I'd rather use --version here, but apparently some GNU lds only accept -v. 9816case `$LD -v 2>&1 </dev/null` in 9817*GNU* | *'with BFD'*) 9818 lt_cv_prog_gnu_ld=yes 9819 ;; 9820*) 9821 lt_cv_prog_gnu_ld=no 9822 ;; 9823esac 9824fi 9825echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 9826echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 9827with_gnu_ld=$lt_cv_prog_gnu_ld 9828 9829 9830 9831 # Check if GNU C++ uses GNU ld as the underlying linker, since the 9832 # archiving commands below assume that GNU ld is being used. 9833 if test "$with_gnu_ld" = yes; then 9834 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 9835 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' 9836 9837 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 9838 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 9839 9840 # If archive_cmds runs LD, not CC, wlarc should be empty 9841 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 9842 # investigate it a little bit more. (MM) 9843 wlarc='${wl}' 9844 9845 # ancient GNU ld didn't support --whole-archive et. al. 9846 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 9847 grep 'no-whole-archive' > /dev/null; then 9848 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9849 else 9850 whole_archive_flag_spec_CXX= 9851 fi 9852 else 9853 with_gnu_ld=no 9854 wlarc= 9855 9856 # A generic and very simple default shared library creation 9857 # command for GNU C++ for the case where it uses the native 9858 # linker, instead of GNU ld. If possible, this setting should 9859 # overridden to take advantage of the native linker features on 9860 # the platform it is being used on. 9861 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 9862 fi 9863 9864 # Commands to make compiler produce verbose output that lists 9865 # what "hidden" libraries, object files and flags are used when 9866 # linking a shared library. 9867 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 9868 9869else 9870 GXX=no 9871 with_gnu_ld=no 9872 wlarc= 9873fi 9874 9875# PORTME: fill in a description of your system's C++ link characteristics 9876echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9877echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 9878ld_shlibs_CXX=yes 9879case $host_os in 9880 aix3*) 9881 # FIXME: insert proper C++ library support 9882 ld_shlibs_CXX=no 9883 ;; 9884 aix4* | aix5*) 9885 if test "$host_cpu" = ia64; then 9886 # On IA64, the linker does run time linking by default, so we don't 9887 # have to do anything special. 9888 aix_use_runtimelinking=no 9889 exp_sym_flag='-Bexport' 9890 no_entry_flag="" 9891 else 9892 aix_use_runtimelinking=no 9893 9894 # Test if we are trying to use run time linking or normal 9895 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9896 # need to do runtime linking. 9897 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 9898 for ld_flag in $LDFLAGS; do 9899 case $ld_flag in 9900 *-brtl*) 9901 aix_use_runtimelinking=yes 9902 break 9903 ;; 9904 esac 9905 done 9906 ;; 9907 esac 9908 9909 exp_sym_flag='-bexport' 9910 no_entry_flag='-bnoentry' 9911 fi 9912 9913 # When large executables or shared objects are built, AIX ld can 9914 # have problems creating the table of contents. If linking a library 9915 # or program results in "error TOC overflow" add -mminimal-toc to 9916 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9917 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9918 9919 archive_cmds_CXX='' 9920 hardcode_direct_CXX=yes 9921 hardcode_libdir_separator_CXX=':' 9922 link_all_deplibs_CXX=yes 9923 9924 if test "$GXX" = yes; then 9925 case $host_os in aix4.[012]|aix4.[012].*) 9926 # We only want to do this on AIX 4.2 and lower, the check 9927 # below for broken collect2 doesn't work under 4.3+ 9928 collect2name=`${CC} -print-prog-name=collect2` 9929 if test -f "$collect2name" && \ 9930 strings "$collect2name" | grep resolve_lib_name >/dev/null 9931 then 9932 # We have reworked collect2 9933 hardcode_direct_CXX=yes 9934 else 9935 # We have old collect2 9936 hardcode_direct_CXX=unsupported 9937 # It fails to find uninstalled libraries when the uninstalled 9938 # path is not listed in the libpath. Setting hardcode_minus_L 9939 # to unsupported forces relinking 9940 hardcode_minus_L_CXX=yes 9941 hardcode_libdir_flag_spec_CXX='-L$libdir' 9942 hardcode_libdir_separator_CXX= 9943 fi 9944 ;; 9945 esac 9946 shared_flag='-shared' 9947 if test "$aix_use_runtimelinking" = yes; then 9948 shared_flag="$shared_flag "'${wl}-G' 9949 fi 9950 else 9951 # not using gcc 9952 if test "$host_cpu" = ia64; then 9953 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9954 # chokes on -Wl,-G. The following line is correct: 9955 shared_flag='-G' 9956 else 9957 if test "$aix_use_runtimelinking" = yes; then 9958 shared_flag='${wl}-G' 9959 else 9960 shared_flag='${wl}-bM:SRE' 9961 fi 9962 fi 9963 fi 9964 9965 # It seems that -bexpall does not export symbols beginning with 9966 # underscore (_), so it is better to generate a list of symbols to export. 9967 always_export_symbols_CXX=yes 9968 if test "$aix_use_runtimelinking" = yes; then 9969 # Warning - without using the other runtime loading flags (-brtl), 9970 # -berok will link without error, but may produce a broken library. 9971 allow_undefined_flag_CXX='-berok' 9972 # Determine the default libpath from the value encoded in an empty executable. 9973 cat >conftest.$ac_ext <<_ACEOF 9974/* confdefs.h. */ 9975_ACEOF 9976cat confdefs.h >>conftest.$ac_ext 9977cat >>conftest.$ac_ext <<_ACEOF 9978/* end confdefs.h. */ 9979 9980int 9981main () 9982{ 9983 9984 ; 9985 return 0; 9986} 9987_ACEOF 9988rm -f conftest.$ac_objext conftest$ac_exeext 9989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9990 (eval $ac_link) 2>conftest.er1 9991 ac_status=$? 9992 grep -v '^ *+' conftest.er1 >conftest.err 9993 rm -f conftest.er1 9994 cat conftest.err >&5 9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9996 (exit $ac_status); } && 9997 { ac_try='test -z "$ac_cxx_werror_flag" 9998 || test ! -s conftest.err' 9999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10000 (eval $ac_try) 2>&5 10001 ac_status=$? 10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10003 (exit $ac_status); }; } && 10004 { ac_try='test -s conftest$ac_exeext' 10005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10006 (eval $ac_try) 2>&5 10007 ac_status=$? 10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10009 (exit $ac_status); }; }; then 10010 10011aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10012}'` 10013# Check for a 64-bit object if we didn't find anything. 10014if 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; } 10015}'`; fi 10016else 10017 echo "$as_me: failed program was:" >&5 10018sed 's/^/| /' conftest.$ac_ext >&5 10019 10020fi 10021rm -f conftest.err conftest.$ac_objext \ 10022 conftest$ac_exeext conftest.$ac_ext 10023if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10024 10025 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10026 10027 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" 10028 else 10029 if test "$host_cpu" = ia64; then 10030 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10031 allow_undefined_flag_CXX="-z nodefs" 10032 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" 10033 else 10034 # Determine the default libpath from the value encoded in an empty executable. 10035 cat >conftest.$ac_ext <<_ACEOF 10036/* confdefs.h. */ 10037_ACEOF 10038cat confdefs.h >>conftest.$ac_ext 10039cat >>conftest.$ac_ext <<_ACEOF 10040/* end confdefs.h. */ 10041 10042int 10043main () 10044{ 10045 10046 ; 10047 return 0; 10048} 10049_ACEOF 10050rm -f conftest.$ac_objext conftest$ac_exeext 10051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10052 (eval $ac_link) 2>conftest.er1 10053 ac_status=$? 10054 grep -v '^ *+' conftest.er1 >conftest.err 10055 rm -f conftest.er1 10056 cat conftest.err >&5 10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10058 (exit $ac_status); } && 10059 { ac_try='test -z "$ac_cxx_werror_flag" 10060 || test ! -s conftest.err' 10061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10062 (eval $ac_try) 2>&5 10063 ac_status=$? 10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10065 (exit $ac_status); }; } && 10066 { ac_try='test -s conftest$ac_exeext' 10067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10068 (eval $ac_try) 2>&5 10069 ac_status=$? 10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10071 (exit $ac_status); }; }; then 10072 10073aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10074}'` 10075# Check for a 64-bit object if we didn't find anything. 10076if 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; } 10077}'`; fi 10078else 10079 echo "$as_me: failed program was:" >&5 10080sed 's/^/| /' conftest.$ac_ext >&5 10081 10082fi 10083rm -f conftest.err conftest.$ac_objext \ 10084 conftest$ac_exeext conftest.$ac_ext 10085if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10086 10087 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10088 # Warning - without using the other run time loading flags, 10089 # -berok will link without error, but may produce a broken library. 10090 no_undefined_flag_CXX=' ${wl}-bernotok' 10091 allow_undefined_flag_CXX=' ${wl}-berok' 10092 # Exported symbols can be pulled into shared objects from archives 10093 whole_archive_flag_spec_CXX='$convenience' 10094 archive_cmds_need_lc_CXX=yes 10095 # This is similar to how AIX traditionally builds its shared libraries. 10096 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' 10097 fi 10098 fi 10099 ;; 10100 10101 beos*) 10102 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10103 allow_undefined_flag_CXX=unsupported 10104 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10105 # support --undefined. This deserves some investigation. FIXME 10106 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10107 else 10108 ld_shlibs_CXX=no 10109 fi 10110 ;; 10111 10112 chorus*) 10113 case $cc_basename in 10114 *) 10115 # FIXME: insert proper C++ library support 10116 ld_shlibs_CXX=no 10117 ;; 10118 esac 10119 ;; 10120 10121 cygwin* | mingw* | pw32*) 10122 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 10123 # as there is no search path for DLLs. 10124 hardcode_libdir_flag_spec_CXX='-L$libdir' 10125 allow_undefined_flag_CXX=unsupported 10126 always_export_symbols_CXX=no 10127 enable_shared_with_static_runtimes_CXX=yes 10128 10129 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10130 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' 10131 # If the export-symbols file already is a .def file (1st line 10132 # is EXPORTS), use it as is; otherwise, prepend... 10133 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10134 cp $export_symbols $output_objdir/$soname.def; 10135 else 10136 echo EXPORTS > $output_objdir/$soname.def; 10137 cat $export_symbols >> $output_objdir/$soname.def; 10138 fi~ 10139 $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' 10140 else 10141 ld_shlibs_CXX=no 10142 fi 10143 ;; 10144 darwin* | rhapsody*) 10145 case $host_os in 10146 rhapsody* | darwin1.[012]) 10147 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 10148 ;; 10149 *) # Darwin 1.3 on 10150 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 10151 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10152 else 10153 case ${MACOSX_DEPLOYMENT_TARGET} in 10154 10.[012]) 10155 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10156 ;; 10157 10.*) 10158 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 10159 ;; 10160 esac 10161 fi 10162 ;; 10163 esac 10164 archive_cmds_need_lc_CXX=no 10165 hardcode_direct_CXX=no 10166 hardcode_automatic_CXX=yes 10167 hardcode_shlibpath_var_CXX=unsupported 10168 whole_archive_flag_spec_CXX='' 10169 link_all_deplibs_CXX=yes 10170 10171 if test "$GXX" = yes ; then 10172 lt_int_apple_cc_single_mod=no 10173 output_verbose_link_cmd='echo' 10174 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 10175 lt_int_apple_cc_single_mod=yes 10176 fi 10177 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10178 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10179 else 10180 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' 10181 fi 10182 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10183 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10184 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10185 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}' 10186 else 10187 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}' 10188 fi 10189 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}' 10190 else 10191 case $cc_basename in 10192 xlc*) 10193 output_verbose_link_cmd='echo' 10194 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' 10195 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10196 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10197 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}' 10198 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}' 10199 ;; 10200 *) 10201 ld_shlibs_CXX=no 10202 ;; 10203 esac 10204 fi 10205 ;; 10206 10207 dgux*) 10208 case $cc_basename in 10209 ec++*) 10210 # FIXME: insert proper C++ library support 10211 ld_shlibs_CXX=no 10212 ;; 10213 ghcx*) 10214 # Green Hills C++ Compiler 10215 # FIXME: insert proper C++ library support 10216 ld_shlibs_CXX=no 10217 ;; 10218 *) 10219 # FIXME: insert proper C++ library support 10220 ld_shlibs_CXX=no 10221 ;; 10222 esac 10223 ;; 10224 freebsd[12]*) 10225 # C++ shared libraries reported to be fairly broken before switch to ELF 10226 ld_shlibs_CXX=no 10227 ;; 10228 freebsd-elf*) 10229 archive_cmds_need_lc_CXX=no 10230 ;; 10231 freebsd* | kfreebsd*-gnu | dragonfly*) 10232 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 10233 # conventions 10234 ld_shlibs_CXX=yes 10235 ;; 10236 gnu*) 10237 ;; 10238 hpux9*) 10239 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10240 hardcode_libdir_separator_CXX=: 10241 export_dynamic_flag_spec_CXX='${wl}-E' 10242 hardcode_direct_CXX=yes 10243 hardcode_minus_L_CXX=yes # Not in the search PATH, 10244 # but as the default 10245 # location of the library. 10246 10247 case $cc_basename in 10248 CC*) 10249 # FIXME: insert proper C++ library support 10250 ld_shlibs_CXX=no 10251 ;; 10252 aCC*) 10253 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' 10254 # Commands to make compiler produce verbose output that lists 10255 # what "hidden" libraries, object files and flags are used when 10256 # linking a shared library. 10257 # 10258 # There doesn't appear to be a way to prevent this compiler from 10259 # explicitly linking system object files so we need to strip them 10260 # from the output so that they don't get included in the library 10261 # dependencies. 10262 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' 10263 ;; 10264 *) 10265 if test "$GXX" = yes; then 10266 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' 10267 else 10268 # FIXME: insert proper C++ library support 10269 ld_shlibs_CXX=no 10270 fi 10271 ;; 10272 esac 10273 ;; 10274 hpux10*|hpux11*) 10275 if test $with_gnu_ld = no; then 10276 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10277 hardcode_libdir_separator_CXX=: 10278 10279 case $host_cpu in 10280 hppa*64*|ia64*) 10281 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 10282 ;; 10283 *) 10284 export_dynamic_flag_spec_CXX='${wl}-E' 10285 ;; 10286 esac 10287 fi 10288 case $host_cpu in 10289 hppa*64*|ia64*) 10290 hardcode_direct_CXX=no 10291 hardcode_shlibpath_var_CXX=no 10292 ;; 10293 *) 10294 hardcode_direct_CXX=yes 10295 hardcode_minus_L_CXX=yes # Not in the search PATH, 10296 # but as the default 10297 # location of the library. 10298 ;; 10299 esac 10300 10301 case $cc_basename in 10302 CC*) 10303 # FIXME: insert proper C++ library support 10304 ld_shlibs_CXX=no 10305 ;; 10306 aCC*) 10307 case $host_cpu in 10308 hppa*64*) 10309 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10310 ;; 10311 ia64*) 10312 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10313 ;; 10314 *) 10315 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10316 ;; 10317 esac 10318 # Commands to make compiler produce verbose output that lists 10319 # what "hidden" libraries, object files and flags are used when 10320 # linking a shared library. 10321 # 10322 # There doesn't appear to be a way to prevent this compiler from 10323 # explicitly linking system object files so we need to strip them 10324 # from the output so that they don't get included in the library 10325 # dependencies. 10326 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' 10327 ;; 10328 *) 10329 if test "$GXX" = yes; then 10330 if test $with_gnu_ld = no; then 10331 case $host_cpu in 10332 hppa*64*) 10333 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10334 ;; 10335 ia64*) 10336 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10337 ;; 10338 *) 10339 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' 10340 ;; 10341 esac 10342 fi 10343 else 10344 # FIXME: insert proper C++ library support 10345 ld_shlibs_CXX=no 10346 fi 10347 ;; 10348 esac 10349 ;; 10350 interix3*) 10351 hardcode_direct_CXX=no 10352 hardcode_shlibpath_var_CXX=no 10353 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10354 export_dynamic_flag_spec_CXX='${wl}-E' 10355 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10356 # Instead, shared libraries are loaded at an image base (0x10000000 by 10357 # default) and relocated if they conflict, which is a slow very memory 10358 # consuming and fragmenting process. To avoid this, we pick a random, 10359 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10360 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10361 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' 10362 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' 10363 ;; 10364 irix5* | irix6*) 10365 case $cc_basename in 10366 CC*) 10367 # SGI C++ 10368 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' 10369 10370 # Archives containing C++ object files must be created using 10371 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 10372 # necessary to make sure instantiated templates are included 10373 # in the archive. 10374 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 10375 ;; 10376 *) 10377 if test "$GXX" = yes; then 10378 if test "$with_gnu_ld" = no; then 10379 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' 10380 else 10381 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' 10382 fi 10383 fi 10384 link_all_deplibs_CXX=yes 10385 ;; 10386 esac 10387 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10388 hardcode_libdir_separator_CXX=: 10389 ;; 10390 linux*) 10391 case $cc_basename in 10392 KCC*) 10393 # Kuck and Associates, Inc. (KAI) C++ Compiler 10394 10395 # KCC will only create a shared library if the output file 10396 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10397 # to its proper name (with version) after linking. 10398 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' 10399 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' 10400 # Commands to make compiler produce verbose output that lists 10401 # what "hidden" libraries, object files and flags are used when 10402 # linking a shared library. 10403 # 10404 # There doesn't appear to be a way to prevent this compiler from 10405 # explicitly linking system object files so we need to strip them 10406 # from the output so that they don't get included in the library 10407 # dependencies. 10408 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' 10409 10410 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 10411 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10412 10413 # Archives containing C++ object files must be created using 10414 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10415 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10416 ;; 10417 icpc*) 10418 # Intel C++ 10419 with_gnu_ld=yes 10420 # version 8.0 and above of icpc choke on multiply defined symbols 10421 # if we add $predep_objects and $postdep_objects, however 7.1 and 10422 # earlier do not add the objects themselves. 10423 case `$CC -V 2>&1` in 10424 *"Version 7."*) 10425 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10426 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' 10427 ;; 10428 *) # Version 8.0 or newer 10429 tmp_idyn= 10430 case $host_cpu in 10431 ia64*) tmp_idyn=' -i_dynamic';; 10432 esac 10433 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10434 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' 10435 ;; 10436 esac 10437 archive_cmds_need_lc_CXX=no 10438 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10439 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10440 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10441 ;; 10442 pgCC*) 10443 # Portland Group C++ compiler 10444 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 10445 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' 10446 10447 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10448 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10449 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' 10450 ;; 10451 cxx*) 10452 # Compaq C++ 10453 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10454 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' 10455 10456 runpath_var=LD_RUN_PATH 10457 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10458 hardcode_libdir_separator_CXX=: 10459 10460 # Commands to make compiler produce verbose output that lists 10461 # what "hidden" libraries, object files and flags are used when 10462 # linking a shared library. 10463 # 10464 # There doesn't appear to be a way to prevent this compiler from 10465 # explicitly linking system object files so we need to strip them 10466 # from the output so that they don't get included in the library 10467 # dependencies. 10468 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' 10469 ;; 10470 esac 10471 ;; 10472 lynxos*) 10473 # FIXME: insert proper C++ library support 10474 ld_shlibs_CXX=no 10475 ;; 10476 m88k*) 10477 # FIXME: insert proper C++ library support 10478 ld_shlibs_CXX=no 10479 ;; 10480 mvs*) 10481 case $cc_basename in 10482 cxx*) 10483 # FIXME: insert proper C++ library support 10484 ld_shlibs_CXX=no 10485 ;; 10486 *) 10487 # FIXME: insert proper C++ library support 10488 ld_shlibs_CXX=no 10489 ;; 10490 esac 10491 ;; 10492 netbsd*) 10493 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10494 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 10495 wlarc= 10496 hardcode_libdir_flag_spec_CXX='-R$libdir' 10497 hardcode_direct_CXX=yes 10498 hardcode_shlibpath_var_CXX=no 10499 fi 10500 # Workaround some broken pre-1.5 toolchains 10501 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 10502 ;; 10503 openbsd2*) 10504 # C++ shared libraries are fairly broken 10505 ld_shlibs_CXX=no 10506 ;; 10507 openbsd*) 10508 hardcode_direct_CXX=yes 10509 hardcode_shlibpath_var_CXX=no 10510 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10511 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10512 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10513 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 10514 export_dynamic_flag_spec_CXX='${wl}-E' 10515 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10516 fi 10517 output_verbose_link_cmd='echo' 10518 ;; 10519 osf3*) 10520 case $cc_basename in 10521 KCC*) 10522 # Kuck and Associates, Inc. (KAI) C++ Compiler 10523 10524 # KCC will only create a shared library if the output file 10525 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10526 # to its proper name (with version) after linking. 10527 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' 10528 10529 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10530 hardcode_libdir_separator_CXX=: 10531 10532 # Archives containing C++ object files must be created using 10533 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10534 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10535 10536 ;; 10537 RCC*) 10538 # Rational C++ 2.4.1 10539 # FIXME: insert proper C++ library support 10540 ld_shlibs_CXX=no 10541 ;; 10542 cxx*) 10543 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10544 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' 10545 10546 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10547 hardcode_libdir_separator_CXX=: 10548 10549 # Commands to make compiler produce verbose output that lists 10550 # what "hidden" libraries, object files and flags are used when 10551 # linking a shared library. 10552 # 10553 # There doesn't appear to be a way to prevent this compiler from 10554 # explicitly linking system object files so we need to strip them 10555 # from the output so that they don't get included in the library 10556 # dependencies. 10557 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' 10558 ;; 10559 *) 10560 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10561 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10562 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' 10563 10564 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10565 hardcode_libdir_separator_CXX=: 10566 10567 # Commands to make compiler produce verbose output that lists 10568 # what "hidden" libraries, object files and flags are used when 10569 # linking a shared library. 10570 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10571 10572 else 10573 # FIXME: insert proper C++ library support 10574 ld_shlibs_CXX=no 10575 fi 10576 ;; 10577 esac 10578 ;; 10579 osf4* | osf5*) 10580 case $cc_basename in 10581 KCC*) 10582 # Kuck and Associates, Inc. (KAI) C++ Compiler 10583 10584 # KCC will only create a shared library if the output file 10585 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10586 # to its proper name (with version) after linking. 10587 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' 10588 10589 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10590 hardcode_libdir_separator_CXX=: 10591 10592 # Archives containing C++ object files must be created using 10593 # the KAI C++ compiler. 10594 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 10595 ;; 10596 RCC*) 10597 # Rational C++ 2.4.1 10598 # FIXME: insert proper C++ library support 10599 ld_shlibs_CXX=no 10600 ;; 10601 cxx*) 10602 allow_undefined_flag_CXX=' -expect_unresolved \*' 10603 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' 10604 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 10605 echo "-hidden">> $lib.exp~ 10606 $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~ 10607 $rm $lib.exp' 10608 10609 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10610 hardcode_libdir_separator_CXX=: 10611 10612 # Commands to make compiler produce verbose output that lists 10613 # what "hidden" libraries, object files and flags are used when 10614 # linking a shared library. 10615 # 10616 # There doesn't appear to be a way to prevent this compiler from 10617 # explicitly linking system object files so we need to strip them 10618 # from the output so that they don't get included in the library 10619 # dependencies. 10620 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' 10621 ;; 10622 *) 10623 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10624 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10625 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' 10626 10627 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10628 hardcode_libdir_separator_CXX=: 10629 10630 # Commands to make compiler produce verbose output that lists 10631 # what "hidden" libraries, object files and flags are used when 10632 # linking a shared library. 10633 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10634 10635 else 10636 # FIXME: insert proper C++ library support 10637 ld_shlibs_CXX=no 10638 fi 10639 ;; 10640 esac 10641 ;; 10642 psos*) 10643 # FIXME: insert proper C++ library support 10644 ld_shlibs_CXX=no 10645 ;; 10646 sunos4*) 10647 case $cc_basename in 10648 CC*) 10649 # Sun C++ 4.x 10650 # FIXME: insert proper C++ library support 10651 ld_shlibs_CXX=no 10652 ;; 10653 lcc*) 10654 # Lucid 10655 # FIXME: insert proper C++ library support 10656 ld_shlibs_CXX=no 10657 ;; 10658 *) 10659 # FIXME: insert proper C++ library support 10660 ld_shlibs_CXX=no 10661 ;; 10662 esac 10663 ;; 10664 solaris*) 10665 case $cc_basename in 10666 CC*) 10667 # Sun C++ 4.2, 5.x and Centerline C++ 10668 archive_cmds_need_lc_CXX=yes 10669 no_undefined_flag_CXX=' -zdefs' 10670 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10671 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10672 $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' 10673 10674 hardcode_libdir_flag_spec_CXX='-R$libdir' 10675 hardcode_shlibpath_var_CXX=no 10676 case $host_os in 10677 solaris2.[0-5] | solaris2.[0-5].*) ;; 10678 *) 10679 # The C++ compiler is used as linker so we must use $wl 10680 # flag to pass the commands to the underlying system 10681 # linker. We must also pass each convience library through 10682 # to the system linker between allextract/defaultextract. 10683 # The C++ compiler will combine linker options so we 10684 # cannot just pass the convience library names through 10685 # without $wl. 10686 # Supported since Solaris 2.6 (maybe 2.5.1?) 10687 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' 10688 ;; 10689 esac 10690 link_all_deplibs_CXX=yes 10691 10692 output_verbose_link_cmd='echo' 10693 10694 # Archives containing C++ object files must be created using 10695 # "CC -xar", where "CC" is the Sun C++ compiler. This is 10696 # necessary to make sure instantiated templates are included 10697 # in the archive. 10698 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 10699 ;; 10700 gcx*) 10701 # Green Hills C++ Compiler 10702 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10703 10704 # The C++ compiler must be used to create the archive. 10705 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 10706 ;; 10707 *) 10708 # GNU C++ compiler with Solaris linker 10709 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10710 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 10711 if $CC --version | grep -v '^2\.7' > /dev/null; then 10712 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10713 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10714 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10715 10716 # Commands to make compiler produce verbose output that lists 10717 # what "hidden" libraries, object files and flags are used when 10718 # linking a shared library. 10719 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10720 else 10721 # g++ 2.7 appears to require `-G' NOT `-shared' on this 10722 # platform. 10723 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10724 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10725 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10726 10727 # Commands to make compiler produce verbose output that lists 10728 # what "hidden" libraries, object files and flags are used when 10729 # linking a shared library. 10730 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10731 fi 10732 10733 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 10734 fi 10735 ;; 10736 esac 10737 ;; 10738 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10739 no_undefined_flag_CXX='${wl}-z,text' 10740 archive_cmds_need_lc_CXX=no 10741 hardcode_shlibpath_var_CXX=no 10742 runpath_var='LD_RUN_PATH' 10743 10744 case $cc_basename in 10745 CC*) 10746 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10747 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10748 ;; 10749 *) 10750 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10751 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10752 ;; 10753 esac 10754 ;; 10755 sysv5* | sco3.2v5* | sco5v6*) 10756 # Note: We can NOT use -z defs as we might desire, because we do not 10757 # link with -lc, and that would cause any symbols used from libc to 10758 # always be unresolved, which means just about no library would 10759 # ever link correctly. If we're not using GNU ld we use -z text 10760 # though, which does catch some bad symbols but isn't as heavy-handed 10761 # as -z defs. 10762 # For security reasons, it is highly recommended that you always 10763 # use absolute paths for naming shared libraries, and exclude the 10764 # DT_RUNPATH tag from executables and libraries. But doing so 10765 # requires that you compile everything twice, which is a pain. 10766 # So that behaviour is only enabled if SCOABSPATH is set to a 10767 # non-empty value in the environment. Most likely only useful for 10768 # creating official distributions of packages. 10769 # This is a hack until libtool officially supports absolute path 10770 # names for shared libraries. 10771 no_undefined_flag_CXX='${wl}-z,text' 10772 allow_undefined_flag_CXX='${wl}-z,nodefs' 10773 archive_cmds_need_lc_CXX=no 10774 hardcode_shlibpath_var_CXX=no 10775 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 10776 hardcode_libdir_separator_CXX=':' 10777 link_all_deplibs_CXX=yes 10778 export_dynamic_flag_spec_CXX='${wl}-Bexport' 10779 runpath_var='LD_RUN_PATH' 10780 10781 case $cc_basename in 10782 CC*) 10783 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10784 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10785 ;; 10786 *) 10787 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10788 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10789 ;; 10790 esac 10791 ;; 10792 tandem*) 10793 case $cc_basename in 10794 NCC*) 10795 # NonStop-UX NCC 3.20 10796 # FIXME: insert proper C++ library support 10797 ld_shlibs_CXX=no 10798 ;; 10799 *) 10800 # FIXME: insert proper C++ library support 10801 ld_shlibs_CXX=no 10802 ;; 10803 esac 10804 ;; 10805 vxworks*) 10806 # FIXME: insert proper C++ library support 10807 ld_shlibs_CXX=no 10808 ;; 10809 *) 10810 # FIXME: insert proper C++ library support 10811 ld_shlibs_CXX=no 10812 ;; 10813esac 10814echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 10815echo "${ECHO_T}$ld_shlibs_CXX" >&6 10816test "$ld_shlibs_CXX" = no && can_build_shared=no 10817 10818GCC_CXX="$GXX" 10819LD_CXX="$LD" 10820 10821## CAVEAT EMPTOR: 10822## There is no encapsulation within the following macros, do not change 10823## the running order or otherwise move them around unless you know exactly 10824## what you are doing... 10825 10826cat > conftest.$ac_ext <<EOF 10827class Foo 10828{ 10829public: 10830 Foo (void) { a = 0; } 10831private: 10832 int a; 10833}; 10834EOF 10835 10836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10837 (eval $ac_compile) 2>&5 10838 ac_status=$? 10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10840 (exit $ac_status); }; then 10841 # Parse the compiler output and extract the necessary 10842 # objects, libraries and library flags. 10843 10844 # Sentinel used to keep track of whether or not we are before 10845 # the conftest object file. 10846 pre_test_object_deps_done=no 10847 10848 # The `*' in the case matches for architectures that use `case' in 10849 # $output_verbose_cmd can trigger glob expansion during the loop 10850 # eval without this substitution. 10851 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 10852 10853 for p in `eval $output_verbose_link_cmd`; do 10854 case $p in 10855 10856 -L* | -R* | -l*) 10857 # Some compilers place space between "-{L,R}" and the path. 10858 # Remove the space. 10859 if test $p = "-L" \ 10860 || test $p = "-R"; then 10861 prev=$p 10862 continue 10863 else 10864 prev= 10865 fi 10866 10867 if test "$pre_test_object_deps_done" = no; then 10868 case $p in 10869 -L* | -R*) 10870 # Internal compiler library paths should come after those 10871 # provided the user. The postdeps already come after the 10872 # user supplied libs so there is no need to process them. 10873 if test -z "$compiler_lib_search_path_CXX"; then 10874 compiler_lib_search_path_CXX="${prev}${p}" 10875 else 10876 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 10877 fi 10878 ;; 10879 # The "-l" case would never come before the object being 10880 # linked, so don't bother handling this case. 10881 esac 10882 else 10883 if test -z "$postdeps_CXX"; then 10884 postdeps_CXX="${prev}${p}" 10885 else 10886 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 10887 fi 10888 fi 10889 ;; 10890 10891 *.$objext) 10892 # This assumes that the test object file only shows up 10893 # once in the compiler output. 10894 if test "$p" = "conftest.$objext"; then 10895 pre_test_object_deps_done=yes 10896 continue 10897 fi 10898 10899 if test "$pre_test_object_deps_done" = no; then 10900 if test -z "$predep_objects_CXX"; then 10901 predep_objects_CXX="$p" 10902 else 10903 predep_objects_CXX="$predep_objects_CXX $p" 10904 fi 10905 else 10906 if test -z "$postdep_objects_CXX"; then 10907 postdep_objects_CXX="$p" 10908 else 10909 postdep_objects_CXX="$postdep_objects_CXX $p" 10910 fi 10911 fi 10912 ;; 10913 10914 *) ;; # Ignore the rest. 10915 10916 esac 10917 done 10918 10919 # Clean up. 10920 rm -f a.out a.exe 10921else 10922 echo "libtool.m4: error: problem compiling CXX test program" 10923fi 10924 10925$rm -f confest.$objext 10926 10927# PORTME: override above test on systems where it is broken 10928case $host_os in 10929interix3*) 10930 # Interix 3.5 installs completely hosed .la files for C++, so rather than 10931 # hack all around it, let's just trust "g++" to DTRT. 10932 predep_objects_CXX= 10933 postdep_objects_CXX= 10934 postdeps_CXX= 10935 ;; 10936 10937solaris*) 10938 case $cc_basename in 10939 CC*) 10940 # Adding this requires a known-good setup of shared libraries for 10941 # Sun compiler versions before 5.6, else PIC objects from an old 10942 # archive will be linked into the output, leading to subtle bugs. 10943 postdeps_CXX='-lCstd -lCrun' 10944 ;; 10945 esac 10946 ;; 10947esac 10948 10949 10950case " $postdeps_CXX " in 10951*" -lc "*) archive_cmds_need_lc_CXX=no ;; 10952esac 10953 10954lt_prog_compiler_wl_CXX= 10955lt_prog_compiler_pic_CXX= 10956lt_prog_compiler_static_CXX= 10957 10958echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 10959echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 10960 10961 # C++ specific cases for pic, static, wl, etc. 10962 if test "$GXX" = yes; then 10963 lt_prog_compiler_wl_CXX='-Wl,' 10964 lt_prog_compiler_static_CXX='-static' 10965 10966 case $host_os in 10967 aix*) 10968 # All AIX code is PIC. 10969 if test "$host_cpu" = ia64; then 10970 # AIX 5 now supports IA64 processor 10971 lt_prog_compiler_static_CXX='-Bstatic' 10972 fi 10973 ;; 10974 amigaos*) 10975 # FIXME: we need at least 68020 code to build shared libraries, but 10976 # adding the `-m68020' flag to GCC prevents building anything better, 10977 # like `-m68040'. 10978 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 10979 ;; 10980 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10981 # PIC is the default for these OSes. 10982 ;; 10983 mingw* | os2* | pw32*) 10984 # This hack is so that the source file can tell whether it is being 10985 # built for inclusion in a dll (and should export symbols for example). 10986 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 10987 ;; 10988 darwin* | rhapsody*) 10989 # PIC is the default on this platform 10990 # Common symbols not allowed in MH_DYLIB files 10991 lt_prog_compiler_pic_CXX='-fno-common' 10992 ;; 10993 *djgpp*) 10994 # DJGPP does not support shared libraries at all 10995 lt_prog_compiler_pic_CXX= 10996 ;; 10997 interix3*) 10998 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10999 # Instead, we relocate shared libraries at runtime. 11000 ;; 11001 sysv4*MP*) 11002 if test -d /usr/nec; then 11003 lt_prog_compiler_pic_CXX=-Kconform_pic 11004 fi 11005 ;; 11006 hpux*) 11007 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11008 # not for PA HP-UX. 11009 case $host_cpu in 11010 hppa*64*|ia64*) 11011 ;; 11012 *) 11013 lt_prog_compiler_pic_CXX='-fPIC' 11014 ;; 11015 esac 11016 ;; 11017 *) 11018 lt_prog_compiler_pic_CXX='-fPIC' 11019 ;; 11020 esac 11021 else 11022 case $host_os in 11023 aix4* | aix5*) 11024 # All AIX code is PIC. 11025 if test "$host_cpu" = ia64; then 11026 # AIX 5 now supports IA64 processor 11027 lt_prog_compiler_static_CXX='-Bstatic' 11028 else 11029 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11030 fi 11031 ;; 11032 chorus*) 11033 case $cc_basename in 11034 cxch68*) 11035 # Green Hills C++ Compiler 11036 # _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" 11037 ;; 11038 esac 11039 ;; 11040 darwin*) 11041 # PIC is the default on this platform 11042 # Common symbols not allowed in MH_DYLIB files 11043 case $cc_basename in 11044 xlc*) 11045 lt_prog_compiler_pic_CXX='-qnocommon' 11046 lt_prog_compiler_wl_CXX='-Wl,' 11047 ;; 11048 esac 11049 ;; 11050 dgux*) 11051 case $cc_basename in 11052 ec++*) 11053 lt_prog_compiler_pic_CXX='-KPIC' 11054 ;; 11055 ghcx*) 11056 # Green Hills C++ Compiler 11057 lt_prog_compiler_pic_CXX='-pic' 11058 ;; 11059 *) 11060 ;; 11061 esac 11062 ;; 11063 freebsd* | kfreebsd*-gnu | dragonfly*) 11064 # FreeBSD uses GNU C++ 11065 ;; 11066 hpux9* | hpux10* | hpux11*) 11067 case $cc_basename in 11068 CC*) 11069 lt_prog_compiler_wl_CXX='-Wl,' 11070 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11071 if test "$host_cpu" != ia64; then 11072 lt_prog_compiler_pic_CXX='+Z' 11073 fi 11074 ;; 11075 aCC*) 11076 lt_prog_compiler_wl_CXX='-Wl,' 11077 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11078 case $host_cpu in 11079 hppa*64*|ia64*) 11080 # +Z the default 11081 ;; 11082 *) 11083 lt_prog_compiler_pic_CXX='+Z' 11084 ;; 11085 esac 11086 ;; 11087 *) 11088 ;; 11089 esac 11090 ;; 11091 interix*) 11092 # This is c89, which is MS Visual C++ (no shared libs) 11093 # Anyone wants to do a port? 11094 ;; 11095 irix5* | irix6* | nonstopux*) 11096 case $cc_basename in 11097 CC*) 11098 lt_prog_compiler_wl_CXX='-Wl,' 11099 lt_prog_compiler_static_CXX='-non_shared' 11100 # CC pic flag -KPIC is the default. 11101 ;; 11102 *) 11103 ;; 11104 esac 11105 ;; 11106 linux*) 11107 case $cc_basename in 11108 KCC*) 11109 # KAI C++ Compiler 11110 lt_prog_compiler_wl_CXX='--backend -Wl,' 11111 lt_prog_compiler_pic_CXX='-fPIC' 11112 ;; 11113 icpc* | ecpc*) 11114 # Intel C++ 11115 lt_prog_compiler_wl_CXX='-Wl,' 11116 lt_prog_compiler_pic_CXX='-KPIC' 11117 lt_prog_compiler_static_CXX='-static' 11118 ;; 11119 pgCC*) 11120 # Portland Group C++ compiler. 11121 lt_prog_compiler_wl_CXX='-Wl,' 11122 lt_prog_compiler_pic_CXX='-fpic' 11123 lt_prog_compiler_static_CXX='-Bstatic' 11124 ;; 11125 cxx*) 11126 # Compaq C++ 11127 # Make sure the PIC flag is empty. It appears that all Alpha 11128 # Linux and Compaq Tru64 Unix objects are PIC. 11129 lt_prog_compiler_pic_CXX= 11130 lt_prog_compiler_static_CXX='-non_shared' 11131 ;; 11132 *) 11133 ;; 11134 esac 11135 ;; 11136 lynxos*) 11137 ;; 11138 m88k*) 11139 ;; 11140 mvs*) 11141 case $cc_basename in 11142 cxx*) 11143 lt_prog_compiler_pic_CXX='-W c,exportall' 11144 ;; 11145 *) 11146 ;; 11147 esac 11148 ;; 11149 netbsd*) 11150 ;; 11151 osf3* | osf4* | osf5*) 11152 case $cc_basename in 11153 KCC*) 11154 lt_prog_compiler_wl_CXX='--backend -Wl,' 11155 ;; 11156 RCC*) 11157 # Rational C++ 2.4.1 11158 lt_prog_compiler_pic_CXX='-pic' 11159 ;; 11160 cxx*) 11161 # Digital/Compaq C++ 11162 lt_prog_compiler_wl_CXX='-Wl,' 11163 # Make sure the PIC flag is empty. It appears that all Alpha 11164 # Linux and Compaq Tru64 Unix objects are PIC. 11165 lt_prog_compiler_pic_CXX= 11166 lt_prog_compiler_static_CXX='-non_shared' 11167 ;; 11168 *) 11169 ;; 11170 esac 11171 ;; 11172 psos*) 11173 ;; 11174 solaris*) 11175 case $cc_basename in 11176 CC*) 11177 # Sun C++ 4.2, 5.x and Centerline C++ 11178 lt_prog_compiler_pic_CXX='-KPIC' 11179 lt_prog_compiler_static_CXX='-Bstatic' 11180 lt_prog_compiler_wl_CXX='-Qoption ld ' 11181 ;; 11182 gcx*) 11183 # Green Hills C++ Compiler 11184 lt_prog_compiler_pic_CXX='-PIC' 11185 ;; 11186 *) 11187 ;; 11188 esac 11189 ;; 11190 sunos4*) 11191 case $cc_basename in 11192 CC*) 11193 # Sun C++ 4.x 11194 lt_prog_compiler_pic_CXX='-pic' 11195 lt_prog_compiler_static_CXX='-Bstatic' 11196 ;; 11197 lcc*) 11198 # Lucid 11199 lt_prog_compiler_pic_CXX='-pic' 11200 ;; 11201 *) 11202 ;; 11203 esac 11204 ;; 11205 tandem*) 11206 case $cc_basename in 11207 NCC*) 11208 # NonStop-UX NCC 3.20 11209 lt_prog_compiler_pic_CXX='-KPIC' 11210 ;; 11211 *) 11212 ;; 11213 esac 11214 ;; 11215 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11216 case $cc_basename in 11217 CC*) 11218 lt_prog_compiler_wl_CXX='-Wl,' 11219 lt_prog_compiler_pic_CXX='-KPIC' 11220 lt_prog_compiler_static_CXX='-Bstatic' 11221 ;; 11222 esac 11223 ;; 11224 vxworks*) 11225 ;; 11226 *) 11227 lt_prog_compiler_can_build_shared_CXX=no 11228 ;; 11229 esac 11230 fi 11231 11232echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 11233echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 11234 11235# 11236# Check to make sure the PIC flag actually works. 11237# 11238if test -n "$lt_prog_compiler_pic_CXX"; then 11239 11240echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 11241echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 11242if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 11243 echo $ECHO_N "(cached) $ECHO_C" >&6 11244else 11245 lt_prog_compiler_pic_works_CXX=no 11246 ac_outfile=conftest.$ac_objext 11247 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11248 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 11249 # Insert the option either (1) after the last *FLAGS variable, or 11250 # (2) before a word containing "conftest.", or (3) at the end. 11251 # Note that $ac_compile itself does not contain backslashes and begins 11252 # with a dollar sign (not a hyphen), so the echo should work correctly. 11253 # The option is referenced via a variable to avoid confusing sed. 11254 lt_compile=`echo "$ac_compile" | $SED \ 11255 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11256 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11257 -e 's:$: $lt_compiler_flag:'` 11258 (eval echo "\"\$as_me:11258: $lt_compile\"" >&5) 11259 (eval "$lt_compile" 2>conftest.err) 11260 ac_status=$? 11261 cat conftest.err >&5 11262 echo "$as_me:11262: \$? = $ac_status" >&5 11263 if (exit $ac_status) && test -s "$ac_outfile"; then 11264 # The compiler can only warn and ignore the option if not recognized 11265 # So say no if there are warnings other than the usual output. 11266 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 11267 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11268 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11269 lt_prog_compiler_pic_works_CXX=yes 11270 fi 11271 fi 11272 $rm conftest* 11273 11274fi 11275echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 11276echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 11277 11278if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 11279 case $lt_prog_compiler_pic_CXX in 11280 "" | " "*) ;; 11281 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 11282 esac 11283else 11284 lt_prog_compiler_pic_CXX= 11285 lt_prog_compiler_can_build_shared_CXX=no 11286fi 11287 11288fi 11289case $host_os in 11290 # For platforms which do not support PIC, -DPIC is meaningless: 11291 *djgpp*) 11292 lt_prog_compiler_pic_CXX= 11293 ;; 11294 *) 11295 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 11296 ;; 11297esac 11298 11299# 11300# Check to make sure the static flag actually works. 11301# 11302wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 11303echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11304echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 11305if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 11306 echo $ECHO_N "(cached) $ECHO_C" >&6 11307else 11308 lt_prog_compiler_static_works_CXX=no 11309 save_LDFLAGS="$LDFLAGS" 11310 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11311 printf "$lt_simple_link_test_code" > conftest.$ac_ext 11312 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11313 # The linker can only warn and ignore the option if not recognized 11314 # So say no if there are warnings 11315 if test -s conftest.err; then 11316 # Append any errors to the config.log. 11317 cat conftest.err 1>&5 11318 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 11319 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11320 if diff conftest.exp conftest.er2 >/dev/null; then 11321 lt_prog_compiler_static_works_CXX=yes 11322 fi 11323 else 11324 lt_prog_compiler_static_works_CXX=yes 11325 fi 11326 fi 11327 $rm conftest* 11328 LDFLAGS="$save_LDFLAGS" 11329 11330fi 11331echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 11332echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 11333 11334if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 11335 : 11336else 11337 lt_prog_compiler_static_CXX= 11338fi 11339 11340 11341echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 11342echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 11343if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 11344 echo $ECHO_N "(cached) $ECHO_C" >&6 11345else 11346 lt_cv_prog_compiler_c_o_CXX=no 11347 $rm -r conftest 2>/dev/null 11348 mkdir conftest 11349 cd conftest 11350 mkdir out 11351 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11352 11353 lt_compiler_flag="-o out/conftest2.$ac_objext" 11354 # Insert the option either (1) after the last *FLAGS variable, or 11355 # (2) before a word containing "conftest.", or (3) at the end. 11356 # Note that $ac_compile itself does not contain backslashes and begins 11357 # with a dollar sign (not a hyphen), so the echo should work correctly. 11358 lt_compile=`echo "$ac_compile" | $SED \ 11359 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11360 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11361 -e 's:$: $lt_compiler_flag:'` 11362 (eval echo "\"\$as_me:11362: $lt_compile\"" >&5) 11363 (eval "$lt_compile" 2>out/conftest.err) 11364 ac_status=$? 11365 cat out/conftest.err >&5 11366 echo "$as_me:11366: \$? = $ac_status" >&5 11367 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11368 then 11369 # The compiler can only warn and ignore the option if not recognized 11370 # So say no if there are warnings 11371 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 11372 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11373 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11374 lt_cv_prog_compiler_c_o_CXX=yes 11375 fi 11376 fi 11377 chmod u+w . 2>&5 11378 $rm conftest* 11379 # SGI C++ compiler will create directory out/ii_files/ for 11380 # template instantiation 11381 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 11382 $rm out/* && rmdir out 11383 cd .. 11384 rmdir conftest 11385 $rm conftest* 11386 11387fi 11388echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 11389echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 11390 11391 11392hard_links="nottested" 11393if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 11394 # do not overwrite the value of need_locks provided by the user 11395 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 11396echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 11397 hard_links=yes 11398 $rm conftest* 11399 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11400 touch conftest.a 11401 ln conftest.a conftest.b 2>&5 || hard_links=no 11402 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11403 echo "$as_me:$LINENO: result: $hard_links" >&5 11404echo "${ECHO_T}$hard_links" >&6 11405 if test "$hard_links" = no; then 11406 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11407echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11408 need_locks=warn 11409 fi 11410else 11411 need_locks=no 11412fi 11413 11414echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11415echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11416 11417 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11418 case $host_os in 11419 aix4* | aix5*) 11420 # If we're using GNU nm, then we don't want the "-C" option. 11421 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11422 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 11423 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' 11424 else 11425 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' 11426 fi 11427 ;; 11428 pw32*) 11429 export_symbols_cmds_CXX="$ltdll_cmds" 11430 ;; 11431 cygwin* | mingw*) 11432 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' 11433 ;; 11434 *) 11435 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11436 ;; 11437 esac 11438 11439echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11440echo "${ECHO_T}$ld_shlibs_CXX" >&6 11441test "$ld_shlibs_CXX" = no && can_build_shared=no 11442 11443# 11444# Do we need to explicitly link libc? 11445# 11446case "x$archive_cmds_need_lc_CXX" in 11447x|xyes) 11448 # Assume -lc should be added 11449 archive_cmds_need_lc_CXX=yes 11450 11451 if test "$enable_shared" = yes && test "$GCC" = yes; then 11452 case $archive_cmds_CXX in 11453 *'~'*) 11454 # FIXME: we may have to deal with multi-command sequences. 11455 ;; 11456 '$CC '*) 11457 # Test whether the compiler implicitly links with -lc since on some 11458 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11459 # to ld, don't add -lc before -lgcc. 11460 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 11461echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 11462 $rm conftest* 11463 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11464 11465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11466 (eval $ac_compile) 2>&5 11467 ac_status=$? 11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11469 (exit $ac_status); } 2>conftest.err; then 11470 soname=conftest 11471 lib=conftest 11472 libobjs=conftest.$ac_objext 11473 deplibs= 11474 wl=$lt_prog_compiler_wl_CXX 11475 pic_flag=$lt_prog_compiler_pic_CXX 11476 compiler_flags=-v 11477 linker_flags=-v 11478 verstring= 11479 output_objdir=. 11480 libname=conftest 11481 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 11482 allow_undefined_flag_CXX= 11483 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 11484 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 11485 ac_status=$? 11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11487 (exit $ac_status); } 11488 then 11489 archive_cmds_need_lc_CXX=no 11490 else 11491 archive_cmds_need_lc_CXX=yes 11492 fi 11493 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 11494 else 11495 cat conftest.err 1>&5 11496 fi 11497 $rm conftest* 11498 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 11499echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 11500 ;; 11501 esac 11502 fi 11503 ;; 11504esac 11505 11506echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 11507echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 11508library_names_spec= 11509libname_spec='lib$name' 11510soname_spec= 11511shrext_cmds=".so" 11512postinstall_cmds= 11513postuninstall_cmds= 11514finish_cmds= 11515finish_eval= 11516shlibpath_var= 11517shlibpath_overrides_runpath=unknown 11518version_type=none 11519dynamic_linker="$host_os ld.so" 11520sys_lib_dlsearch_path_spec="/lib /usr/lib" 11521if test "$GCC" = yes; then 11522 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11523 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 11524 # if the path contains ";" then we assume it to be the separator 11525 # otherwise default to the standard path separator (i.e. ":") - it is 11526 # assumed that no part of a normal pathname contains ";" but that should 11527 # okay in the real world where ";" in dirpaths is itself problematic. 11528 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11529 else 11530 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11531 fi 11532else 11533 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11534fi 11535need_lib_prefix=unknown 11536hardcode_into_libs=no 11537 11538# when you set need_version to no, make sure it does not cause -set_version 11539# flags to be left without arguments 11540need_version=unknown 11541 11542case $host_os in 11543aix3*) 11544 version_type=linux 11545 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11546 shlibpath_var=LIBPATH 11547 11548 # AIX 3 has no versioning support, so we append a major version to the name. 11549 soname_spec='${libname}${release}${shared_ext}$major' 11550 ;; 11551 11552aix4* | aix5*) 11553 version_type=linux 11554 need_lib_prefix=no 11555 need_version=no 11556 hardcode_into_libs=yes 11557 if test "$host_cpu" = ia64; then 11558 # AIX 5 supports IA64 11559 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11560 shlibpath_var=LD_LIBRARY_PATH 11561 else 11562 # With GCC up to 2.95.x, collect2 would create an import file 11563 # for dependence libraries. The import file would start with 11564 # the line `#! .'. This would cause the generated library to 11565 # depend on `.', always an invalid library. This was fixed in 11566 # development snapshots of GCC prior to 3.0. 11567 case $host_os in 11568 aix4 | aix4.[01] | aix4.[01].*) 11569 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11570 echo ' yes ' 11571 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 11572 : 11573 else 11574 can_build_shared=no 11575 fi 11576 ;; 11577 esac 11578 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11579 # soname into executable. Probably we can add versioning support to 11580 # collect2, so additional links can be useful in future. 11581 if test "$aix_use_runtimelinking" = yes; then 11582 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11583 # instead of lib<name>.a to let people know that these are not 11584 # typical AIX shared libraries. 11585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11586 else 11587 # We preserve .a as extension for shared libraries through AIX4.2 11588 # and later when we are not doing run time linking. 11589 library_names_spec='${libname}${release}.a $libname.a' 11590 soname_spec='${libname}${release}${shared_ext}$major' 11591 fi 11592 shlibpath_var=LIBPATH 11593 fi 11594 ;; 11595 11596amigaos*) 11597 library_names_spec='$libname.ixlibrary $libname.a' 11598 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11599 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' 11600 ;; 11601 11602beos*) 11603 library_names_spec='${libname}${shared_ext}' 11604 dynamic_linker="$host_os ld.so" 11605 shlibpath_var=LIBRARY_PATH 11606 ;; 11607 11608bsdi[45]*) 11609 version_type=linux 11610 need_version=no 11611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11612 soname_spec='${libname}${release}${shared_ext}$major' 11613 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11614 shlibpath_var=LD_LIBRARY_PATH 11615 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11616 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11617 # the default ld.so.conf also contains /usr/contrib/lib and 11618 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11619 # libtool to hard-code these into programs 11620 ;; 11621 11622cygwin* | mingw* | pw32*) 11623 version_type=windows 11624 shrext_cmds=".dll" 11625 need_version=no 11626 need_lib_prefix=no 11627 11628 case $GCC,$host_os in 11629 yes,cygwin* | yes,mingw* | yes,pw32*) 11630 library_names_spec='$libname.dll.a' 11631 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11632 postinstall_cmds='base_file=`basename \${file}`~ 11633 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 11634 dldir=$destdir/`dirname \$dlpath`~ 11635 test -d \$dldir || mkdir -p \$dldir~ 11636 $install_prog $dir/$dlname \$dldir/$dlname~ 11637 chmod a+x \$dldir/$dlname' 11638 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11639 dlpath=$dir/\$dldll~ 11640 $rm \$dlpath' 11641 shlibpath_overrides_runpath=yes 11642 11643 case $host_os in 11644 cygwin*) 11645 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11646 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11647 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11648 ;; 11649 mingw*) 11650 # MinGW DLLs use traditional 'lib' prefix 11651 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11652 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11653 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 11654 # It is most probably a Windows format PATH printed by 11655 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11656 # path with ; separators, and with drive letters. We can handle the 11657 # drive letters (cygwin fileutils understands them), so leave them, 11658 # especially as we might pass files found there to a mingw objdump, 11659 # which wouldn't understand a cygwinified path. Ahh. 11660 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11661 else 11662 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11663 fi 11664 ;; 11665 pw32*) 11666 # pw32 DLLs use 'pw' prefix rather than 'lib' 11667 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11668 ;; 11669 esac 11670 ;; 11671 11672 *) 11673 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11674 ;; 11675 esac 11676 dynamic_linker='Win32 ld.exe' 11677 # FIXME: first we should search . and the directory the executable is in 11678 shlibpath_var=PATH 11679 ;; 11680 11681darwin* | rhapsody*) 11682 dynamic_linker="$host_os dyld" 11683 version_type=darwin 11684 need_lib_prefix=no 11685 need_version=no 11686 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11687 soname_spec='${libname}${release}${major}$shared_ext' 11688 shlibpath_overrides_runpath=yes 11689 shlibpath_var=DYLD_LIBRARY_PATH 11690 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11691 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 11692 if test "$GCC" = yes; then 11693 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"` 11694 else 11695 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 11696 fi 11697 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11698 ;; 11699 11700dgux*) 11701 version_type=linux 11702 need_lib_prefix=no 11703 need_version=no 11704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11705 soname_spec='${libname}${release}${shared_ext}$major' 11706 shlibpath_var=LD_LIBRARY_PATH 11707 ;; 11708 11709freebsd1*) 11710 dynamic_linker=no 11711 ;; 11712 11713kfreebsd*-gnu) 11714 version_type=linux 11715 need_lib_prefix=no 11716 need_version=no 11717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11718 soname_spec='${libname}${release}${shared_ext}$major' 11719 shlibpath_var=LD_LIBRARY_PATH 11720 shlibpath_overrides_runpath=no 11721 hardcode_into_libs=yes 11722 dynamic_linker='GNU ld.so' 11723 ;; 11724 11725freebsd* | dragonfly*) 11726 # DragonFly does not have aout. When/if they implement a new 11727 # versioning mechanism, adjust this. 11728 if test -x /usr/bin/objformat; then 11729 objformat=`/usr/bin/objformat` 11730 else 11731 case $host_os in 11732 freebsd[123]*) objformat=aout ;; 11733 *) objformat=elf ;; 11734 esac 11735 fi 11736 version_type=freebsd-$objformat 11737 case $version_type in 11738 freebsd-elf*) 11739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11740 need_version=no 11741 need_lib_prefix=no 11742 ;; 11743 freebsd-*) 11744 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11745 need_version=yes 11746 ;; 11747 esac 11748 shlibpath_var=LD_LIBRARY_PATH 11749 case $host_os in 11750 freebsd2*) 11751 shlibpath_overrides_runpath=yes 11752 ;; 11753 freebsd3.[01]* | freebsdelf3.[01]*) 11754 shlibpath_overrides_runpath=yes 11755 hardcode_into_libs=yes 11756 ;; 11757 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11758 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11759 shlibpath_overrides_runpath=no 11760 hardcode_into_libs=yes 11761 ;; 11762 freebsd*) # from 4.6 on 11763 shlibpath_overrides_runpath=yes 11764 hardcode_into_libs=yes 11765 ;; 11766 esac 11767 ;; 11768 11769gnu*) 11770 version_type=linux 11771 need_lib_prefix=no 11772 need_version=no 11773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11774 soname_spec='${libname}${release}${shared_ext}$major' 11775 shlibpath_var=LD_LIBRARY_PATH 11776 hardcode_into_libs=yes 11777 ;; 11778 11779hpux9* | hpux10* | hpux11*) 11780 # Give a soname corresponding to the major version so that dld.sl refuses to 11781 # link against other versions. 11782 version_type=sunos 11783 need_lib_prefix=no 11784 need_version=no 11785 case $host_cpu in 11786 ia64*) 11787 shrext_cmds='.so' 11788 hardcode_into_libs=yes 11789 dynamic_linker="$host_os dld.so" 11790 shlibpath_var=LD_LIBRARY_PATH 11791 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11793 soname_spec='${libname}${release}${shared_ext}$major' 11794 if test "X$HPUX_IA64_MODE" = X32; then 11795 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11796 else 11797 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11798 fi 11799 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11800 ;; 11801 hppa*64*) 11802 shrext_cmds='.sl' 11803 hardcode_into_libs=yes 11804 dynamic_linker="$host_os dld.sl" 11805 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11806 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11808 soname_spec='${libname}${release}${shared_ext}$major' 11809 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11810 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11811 ;; 11812 *) 11813 shrext_cmds='.sl' 11814 dynamic_linker="$host_os dld.sl" 11815 shlibpath_var=SHLIB_PATH 11816 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11818 soname_spec='${libname}${release}${shared_ext}$major' 11819 ;; 11820 esac 11821 # HP-UX runs *really* slowly unless shared libraries are mode 555. 11822 postinstall_cmds='chmod 555 $lib' 11823 ;; 11824 11825interix3*) 11826 version_type=linux 11827 need_lib_prefix=no 11828 need_version=no 11829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11830 soname_spec='${libname}${release}${shared_ext}$major' 11831 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11832 shlibpath_var=LD_LIBRARY_PATH 11833 shlibpath_overrides_runpath=no 11834 hardcode_into_libs=yes 11835 ;; 11836 11837irix5* | irix6* | nonstopux*) 11838 case $host_os in 11839 nonstopux*) version_type=nonstopux ;; 11840 *) 11841 if test "$lt_cv_prog_gnu_ld" = yes; then 11842 version_type=linux 11843 else 11844 version_type=irix 11845 fi ;; 11846 esac 11847 need_lib_prefix=no 11848 need_version=no 11849 soname_spec='${libname}${release}${shared_ext}$major' 11850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11851 case $host_os in 11852 irix5* | nonstopux*) 11853 libsuff= shlibsuff= 11854 ;; 11855 *) 11856 case $LD in # libtool.m4 will add one of these switches to LD 11857 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11858 libsuff= shlibsuff= libmagic=32-bit;; 11859 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11860 libsuff=32 shlibsuff=N32 libmagic=N32;; 11861 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11862 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11863 *) libsuff= shlibsuff= libmagic=never-match;; 11864 esac 11865 ;; 11866 esac 11867 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11868 shlibpath_overrides_runpath=no 11869 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11870 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11871 hardcode_into_libs=yes 11872 ;; 11873 11874# No shared lib support for Linux oldld, aout, or coff. 11875linux*oldld* | linux*aout* | linux*coff*) 11876 dynamic_linker=no 11877 ;; 11878 11879# This must be Linux ELF. 11880linux*) 11881 version_type=linux 11882 need_lib_prefix=no 11883 need_version=no 11884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11885 soname_spec='${libname}${release}${shared_ext}$major' 11886 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11887 shlibpath_var=LD_LIBRARY_PATH 11888 shlibpath_overrides_runpath=no 11889 # This implies no fast_install, which is unacceptable. 11890 # Some rework will be needed to allow for fast_install 11891 # before this can be enabled. 11892 hardcode_into_libs=yes 11893 11894 # Append ld.so.conf contents to the search path 11895 if test -f /etc/ld.so.conf; then 11896 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 11897 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11898 fi 11899 11900 # We used to test for /lib/ld.so.1 and disable shared libraries on 11901 # powerpc, because MkLinux only supported shared libraries with the 11902 # GNU dynamic linker. Since this was broken with cross compilers, 11903 # most powerpc-linux boxes support dynamic linking these days and 11904 # people can always --disable-shared, the test was removed, and we 11905 # assume the GNU/Linux dynamic linker is in use. 11906 dynamic_linker='GNU/Linux ld.so' 11907 ;; 11908 11909knetbsd*-gnu) 11910 version_type=linux 11911 need_lib_prefix=no 11912 need_version=no 11913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11914 soname_spec='${libname}${release}${shared_ext}$major' 11915 shlibpath_var=LD_LIBRARY_PATH 11916 shlibpath_overrides_runpath=no 11917 hardcode_into_libs=yes 11918 dynamic_linker='GNU ld.so' 11919 ;; 11920 11921netbsd*) 11922 version_type=sunos 11923 need_lib_prefix=no 11924 need_version=no 11925 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11927 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11928 dynamic_linker='NetBSD (a.out) ld.so' 11929 else 11930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11931 soname_spec='${libname}${release}${shared_ext}$major' 11932 dynamic_linker='NetBSD ld.elf_so' 11933 fi 11934 shlibpath_var=LD_LIBRARY_PATH 11935 shlibpath_overrides_runpath=yes 11936 hardcode_into_libs=yes 11937 ;; 11938 11939newsos6) 11940 version_type=linux 11941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11942 shlibpath_var=LD_LIBRARY_PATH 11943 shlibpath_overrides_runpath=yes 11944 ;; 11945 11946nto-qnx*) 11947 version_type=linux 11948 need_lib_prefix=no 11949 need_version=no 11950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11951 soname_spec='${libname}${release}${shared_ext}$major' 11952 shlibpath_var=LD_LIBRARY_PATH 11953 shlibpath_overrides_runpath=yes 11954 ;; 11955 11956openbsd*) 11957 version_type=sunos 11958 sys_lib_dlsearch_path_spec="/usr/lib" 11959 need_lib_prefix=no 11960 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11961 case $host_os in 11962 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11963 *) need_version=no ;; 11964 esac 11965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11966 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11967 shlibpath_var=LD_LIBRARY_PATH 11968 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11969 case $host_os in 11970 openbsd2.[89] | openbsd2.[89].*) 11971 shlibpath_overrides_runpath=no 11972 ;; 11973 *) 11974 shlibpath_overrides_runpath=yes 11975 ;; 11976 esac 11977 else 11978 shlibpath_overrides_runpath=yes 11979 fi 11980 ;; 11981 11982os2*) 11983 libname_spec='$name' 11984 shrext_cmds=".dll" 11985 need_lib_prefix=no 11986 library_names_spec='$libname${shared_ext} $libname.a' 11987 dynamic_linker='OS/2 ld.exe' 11988 shlibpath_var=LIBPATH 11989 ;; 11990 11991osf3* | osf4* | osf5*) 11992 version_type=osf 11993 need_lib_prefix=no 11994 need_version=no 11995 soname_spec='${libname}${release}${shared_ext}$major' 11996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11997 shlibpath_var=LD_LIBRARY_PATH 11998 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11999 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12000 ;; 12001 12002solaris*) 12003 version_type=linux 12004 need_lib_prefix=no 12005 need_version=no 12006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12007 soname_spec='${libname}${release}${shared_ext}$major' 12008 shlibpath_var=LD_LIBRARY_PATH 12009 shlibpath_overrides_runpath=yes 12010 hardcode_into_libs=yes 12011 # ldd complains unless libraries are executable 12012 postinstall_cmds='chmod +x $lib' 12013 ;; 12014 12015sunos4*) 12016 version_type=sunos 12017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12018 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12019 shlibpath_var=LD_LIBRARY_PATH 12020 shlibpath_overrides_runpath=yes 12021 if test "$with_gnu_ld" = yes; then 12022 need_lib_prefix=no 12023 fi 12024 need_version=yes 12025 ;; 12026 12027sysv4 | sysv4.3*) 12028 version_type=linux 12029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12030 soname_spec='${libname}${release}${shared_ext}$major' 12031 shlibpath_var=LD_LIBRARY_PATH 12032 case $host_vendor in 12033 sni) 12034 shlibpath_overrides_runpath=no 12035 need_lib_prefix=no 12036 export_dynamic_flag_spec='${wl}-Blargedynsym' 12037 runpath_var=LD_RUN_PATH 12038 ;; 12039 siemens) 12040 need_lib_prefix=no 12041 ;; 12042 motorola) 12043 need_lib_prefix=no 12044 need_version=no 12045 shlibpath_overrides_runpath=no 12046 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12047 ;; 12048 esac 12049 ;; 12050 12051sysv4*MP*) 12052 if test -d /usr/nec ;then 12053 version_type=linux 12054 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12055 soname_spec='$libname${shared_ext}.$major' 12056 shlibpath_var=LD_LIBRARY_PATH 12057 fi 12058 ;; 12059 12060sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12061 version_type=freebsd-elf 12062 need_lib_prefix=no 12063 need_version=no 12064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12065 soname_spec='${libname}${release}${shared_ext}$major' 12066 shlibpath_var=LD_LIBRARY_PATH 12067 hardcode_into_libs=yes 12068 if test "$with_gnu_ld" = yes; then 12069 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12070 shlibpath_overrides_runpath=no 12071 else 12072 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12073 shlibpath_overrides_runpath=yes 12074 case $host_os in 12075 sco3.2v5*) 12076 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12077 ;; 12078 esac 12079 fi 12080 sys_lib_dlsearch_path_spec='/usr/lib' 12081 ;; 12082 12083uts4*) 12084 version_type=linux 12085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12086 soname_spec='${libname}${release}${shared_ext}$major' 12087 shlibpath_var=LD_LIBRARY_PATH 12088 ;; 12089 12090*) 12091 dynamic_linker=no 12092 ;; 12093esac 12094echo "$as_me:$LINENO: result: $dynamic_linker" >&5 12095echo "${ECHO_T}$dynamic_linker" >&6 12096test "$dynamic_linker" = no && can_build_shared=no 12097 12098variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12099if test "$GCC" = yes; then 12100 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12101fi 12102 12103echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12104echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 12105hardcode_action_CXX= 12106if test -n "$hardcode_libdir_flag_spec_CXX" || \ 12107 test -n "$runpath_var_CXX" || \ 12108 test "X$hardcode_automatic_CXX" = "Xyes" ; then 12109 12110 # We can hardcode non-existant directories. 12111 if test "$hardcode_direct_CXX" != no && 12112 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12113 # have to relink, otherwise we might link with an installed library 12114 # when we should be linking with a yet-to-be-installed one 12115 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 12116 test "$hardcode_minus_L_CXX" != no; then 12117 # Linking always hardcodes the temporary library directory. 12118 hardcode_action_CXX=relink 12119 else 12120 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12121 hardcode_action_CXX=immediate 12122 fi 12123else 12124 # We cannot hardcode anything, or else we can only hardcode existing 12125 # directories. 12126 hardcode_action_CXX=unsupported 12127fi 12128echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 12129echo "${ECHO_T}$hardcode_action_CXX" >&6 12130 12131if test "$hardcode_action_CXX" = relink; then 12132 # Fast installation is not supported 12133 enable_fast_install=no 12134elif test "$shlibpath_overrides_runpath" = yes || 12135 test "$enable_shared" = no; then 12136 # Fast installation is not necessary 12137 enable_fast_install=needless 12138fi 12139 12140 12141# The else clause should only fire when bootstrapping the 12142# libtool distribution, otherwise you forgot to ship ltmain.sh 12143# with your package, and you will get complaints that there are 12144# no rules to generate ltmain.sh. 12145if test -f "$ltmain"; then 12146 # See if we are running on zsh, and set the options which allow our commands through 12147 # without removal of \ escapes. 12148 if test -n "${ZSH_VERSION+set}" ; then 12149 setopt NO_GLOB_SUBST 12150 fi 12151 # Now quote all the things that may contain metacharacters while being 12152 # careful not to overquote the AC_SUBSTed values. We take copies of the 12153 # variables and quote the copies for generation of the libtool script. 12154 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 12155 SED SHELL STRIP \ 12156 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 12157 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 12158 deplibs_check_method reload_flag reload_cmds need_locks \ 12159 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 12160 lt_cv_sys_global_symbol_to_c_name_address \ 12161 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 12162 old_postinstall_cmds old_postuninstall_cmds \ 12163 compiler_CXX \ 12164 CC_CXX \ 12165 LD_CXX \ 12166 lt_prog_compiler_wl_CXX \ 12167 lt_prog_compiler_pic_CXX \ 12168 lt_prog_compiler_static_CXX \ 12169 lt_prog_compiler_no_builtin_flag_CXX \ 12170 export_dynamic_flag_spec_CXX \ 12171 thread_safe_flag_spec_CXX \ 12172 whole_archive_flag_spec_CXX \ 12173 enable_shared_with_static_runtimes_CXX \ 12174 old_archive_cmds_CXX \ 12175 old_archive_from_new_cmds_CXX \ 12176 predep_objects_CXX \ 12177 postdep_objects_CXX \ 12178 predeps_CXX \ 12179 postdeps_CXX \ 12180 compiler_lib_search_path_CXX \ 12181 archive_cmds_CXX \ 12182 archive_expsym_cmds_CXX \ 12183 postinstall_cmds_CXX \ 12184 postuninstall_cmds_CXX \ 12185 old_archive_from_expsyms_cmds_CXX \ 12186 allow_undefined_flag_CXX \ 12187 no_undefined_flag_CXX \ 12188 export_symbols_cmds_CXX \ 12189 hardcode_libdir_flag_spec_CXX \ 12190 hardcode_libdir_flag_spec_ld_CXX \ 12191 hardcode_libdir_separator_CXX \ 12192 hardcode_automatic_CXX \ 12193 module_cmds_CXX \ 12194 module_expsym_cmds_CXX \ 12195 lt_cv_prog_compiler_c_o_CXX \ 12196 exclude_expsyms_CXX \ 12197 include_expsyms_CXX; do 12198 12199 case $var in 12200 old_archive_cmds_CXX | \ 12201 old_archive_from_new_cmds_CXX | \ 12202 archive_cmds_CXX | \ 12203 archive_expsym_cmds_CXX | \ 12204 module_cmds_CXX | \ 12205 module_expsym_cmds_CXX | \ 12206 old_archive_from_expsyms_cmds_CXX | \ 12207 export_symbols_cmds_CXX | \ 12208 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 12209 postinstall_cmds | postuninstall_cmds | \ 12210 old_postinstall_cmds | old_postuninstall_cmds | \ 12211 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 12212 # Double-quote double-evaled strings. 12213 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 12214 ;; 12215 *) 12216 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 12217 ;; 12218 esac 12219 done 12220 12221 case $lt_echo in 12222 *'\$0 --fallback-echo"') 12223 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 12224 ;; 12225 esac 12226 12227cfgfile="$ofile" 12228 12229 cat <<__EOF__ >> "$cfgfile" 12230# ### BEGIN LIBTOOL TAG CONFIG: $tagname 12231 12232# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12233 12234# Shell to use when invoking shell scripts. 12235SHELL=$lt_SHELL 12236 12237# Whether or not to build shared libraries. 12238build_libtool_libs=$enable_shared 12239 12240# Whether or not to build static libraries. 12241build_old_libs=$enable_static 12242 12243# Whether or not to add -lc for building shared libraries. 12244build_libtool_need_lc=$archive_cmds_need_lc_CXX 12245 12246# Whether or not to disallow shared libs when runtime libs are static 12247allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 12248 12249# Whether or not to optimize for fast installation. 12250fast_install=$enable_fast_install 12251 12252# The host system. 12253host_alias=$host_alias 12254host=$host 12255host_os=$host_os 12256 12257# The build system. 12258build_alias=$build_alias 12259build=$build 12260build_os=$build_os 12261 12262# An echo program that does not interpret backslashes. 12263echo=$lt_echo 12264 12265# The archiver. 12266AR=$lt_AR 12267AR_FLAGS=$lt_AR_FLAGS 12268 12269# A C compiler. 12270LTCC=$lt_LTCC 12271 12272# LTCC compiler flags. 12273LTCFLAGS=$lt_LTCFLAGS 12274 12275# A language-specific compiler. 12276CC=$lt_compiler_CXX 12277 12278# Is the compiler the GNU C compiler? 12279with_gcc=$GCC_CXX 12280 12281# An ERE matcher. 12282EGREP=$lt_EGREP 12283 12284# The linker used to build libraries. 12285LD=$lt_LD_CXX 12286 12287# Whether we need hard or soft links. 12288LN_S=$lt_LN_S 12289 12290# A BSD-compatible nm program. 12291NM=$lt_NM 12292 12293# A symbol stripping program 12294STRIP=$lt_STRIP 12295 12296# Used to examine libraries when file_magic_cmd begins "file" 12297MAGIC_CMD=$MAGIC_CMD 12298 12299# Used on cygwin: DLL creation program. 12300DLLTOOL="$DLLTOOL" 12301 12302# Used on cygwin: object dumper. 12303OBJDUMP="$OBJDUMP" 12304 12305# Used on cygwin: assembler. 12306AS="$AS" 12307 12308# The name of the directory that contains temporary libtool files. 12309objdir=$objdir 12310 12311# How to create reloadable object files. 12312reload_flag=$lt_reload_flag 12313reload_cmds=$lt_reload_cmds 12314 12315# How to pass a linker flag through the compiler. 12316wl=$lt_lt_prog_compiler_wl_CXX 12317 12318# Object file suffix (normally "o"). 12319objext="$ac_objext" 12320 12321# Old archive suffix (normally "a"). 12322libext="$libext" 12323 12324# Shared library suffix (normally ".so"). 12325shrext_cmds='$shrext_cmds' 12326 12327# Executable file suffix (normally ""). 12328exeext="$exeext" 12329 12330# Additional compiler flags for building library objects. 12331pic_flag=$lt_lt_prog_compiler_pic_CXX 12332pic_mode=$pic_mode 12333 12334# What is the maximum length of a command? 12335max_cmd_len=$lt_cv_sys_max_cmd_len 12336 12337# Does compiler simultaneously support -c and -o options? 12338compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 12339 12340# Must we lock files when doing compilation? 12341need_locks=$lt_need_locks 12342 12343# Do we need the lib prefix for modules? 12344need_lib_prefix=$need_lib_prefix 12345 12346# Do we need a version for libraries? 12347need_version=$need_version 12348 12349# Whether dlopen is supported. 12350dlopen_support=$enable_dlopen 12351 12352# Whether dlopen of programs is supported. 12353dlopen_self=$enable_dlopen_self 12354 12355# Whether dlopen of statically linked programs is supported. 12356dlopen_self_static=$enable_dlopen_self_static 12357 12358# Compiler flag to prevent dynamic linking. 12359link_static_flag=$lt_lt_prog_compiler_static_CXX 12360 12361# Compiler flag to turn off builtin functions. 12362no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 12363 12364# Compiler flag to allow reflexive dlopens. 12365export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 12366 12367# Compiler flag to generate shared objects directly from archives. 12368whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 12369 12370# Compiler flag to generate thread-safe objects. 12371thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 12372 12373# Library versioning type. 12374version_type=$version_type 12375 12376# Format of library name prefix. 12377libname_spec=$lt_libname_spec 12378 12379# List of archive names. First name is the real one, the rest are links. 12380# The last name is the one that the linker finds with -lNAME. 12381library_names_spec=$lt_library_names_spec 12382 12383# The coded name of the library, if different from the real name. 12384soname_spec=$lt_soname_spec 12385 12386# Commands used to build and install an old-style archive. 12387RANLIB=$lt_RANLIB 12388old_archive_cmds=$lt_old_archive_cmds_CXX 12389old_postinstall_cmds=$lt_old_postinstall_cmds 12390old_postuninstall_cmds=$lt_old_postuninstall_cmds 12391 12392# Create an old-style archive from a shared archive. 12393old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 12394 12395# Create a temporary old-style archive to link instead of a shared archive. 12396old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 12397 12398# Commands used to build and install a shared archive. 12399archive_cmds=$lt_archive_cmds_CXX 12400archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 12401postinstall_cmds=$lt_postinstall_cmds 12402postuninstall_cmds=$lt_postuninstall_cmds 12403 12404# Commands used to build a loadable module (assumed same as above if empty) 12405module_cmds=$lt_module_cmds_CXX 12406module_expsym_cmds=$lt_module_expsym_cmds_CXX 12407 12408# Commands to strip libraries. 12409old_striplib=$lt_old_striplib 12410striplib=$lt_striplib 12411 12412# Dependencies to place before the objects being linked to create a 12413# shared library. 12414predep_objects=$lt_predep_objects_CXX 12415 12416# Dependencies to place after the objects being linked to create a 12417# shared library. 12418postdep_objects=$lt_postdep_objects_CXX 12419 12420# Dependencies to place before the objects being linked to create a 12421# shared library. 12422predeps=$lt_predeps_CXX 12423 12424# Dependencies to place after the objects being linked to create a 12425# shared library. 12426postdeps=$lt_postdeps_CXX 12427 12428# The library search path used internally by the compiler when linking 12429# a shared library. 12430compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 12431 12432# Method to check whether dependent libraries are shared objects. 12433deplibs_check_method=$lt_deplibs_check_method 12434 12435# Command to use when deplibs_check_method == file_magic. 12436file_magic_cmd=$lt_file_magic_cmd 12437 12438# Flag that allows shared libraries with undefined symbols to be built. 12439allow_undefined_flag=$lt_allow_undefined_flag_CXX 12440 12441# Flag that forces no undefined symbols. 12442no_undefined_flag=$lt_no_undefined_flag_CXX 12443 12444# Commands used to finish a libtool library installation in a directory. 12445finish_cmds=$lt_finish_cmds 12446 12447# Same as above, but a single script fragment to be evaled but not shown. 12448finish_eval=$lt_finish_eval 12449 12450# Take the output of nm and produce a listing of raw symbols and C names. 12451global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 12452 12453# Transform the output of nm in a proper C declaration 12454global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 12455 12456# Transform the output of nm in a C name address pair 12457global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 12458 12459# This is the shared library runtime path variable. 12460runpath_var=$runpath_var 12461 12462# This is the shared library path variable. 12463shlibpath_var=$shlibpath_var 12464 12465# Is shlibpath searched before the hard-coded library search path? 12466shlibpath_overrides_runpath=$shlibpath_overrides_runpath 12467 12468# How to hardcode a shared library path into an executable. 12469hardcode_action=$hardcode_action_CXX 12470 12471# Whether we should hardcode library paths into libraries. 12472hardcode_into_libs=$hardcode_into_libs 12473 12474# Flag to hardcode \$libdir into a binary during linking. 12475# This must work even if \$libdir does not exist. 12476hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 12477 12478# If ld is used when linking, flag to hardcode \$libdir into 12479# a binary during linking. This must work even if \$libdir does 12480# not exist. 12481hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 12482 12483# Whether we need a single -rpath flag with a separated argument. 12484hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 12485 12486# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 12487# resulting binary. 12488hardcode_direct=$hardcode_direct_CXX 12489 12490# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 12491# resulting binary. 12492hardcode_minus_L=$hardcode_minus_L_CXX 12493 12494# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 12495# the resulting binary. 12496hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 12497 12498# Set to yes if building a shared library automatically hardcodes DIR into the library 12499# and all subsequent libraries and executables linked against it. 12500hardcode_automatic=$hardcode_automatic_CXX 12501 12502# Variables whose values should be saved in libtool wrapper scripts and 12503# restored at relink time. 12504variables_saved_for_relink="$variables_saved_for_relink" 12505 12506# Whether libtool must link a program against all its dependency libraries. 12507link_all_deplibs=$link_all_deplibs_CXX 12508 12509# Compile-time system search path for libraries 12510sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 12511 12512# Run-time system search path for libraries 12513sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 12514 12515# Fix the shell variable \$srcfile for the compiler. 12516fix_srcfile_path="$fix_srcfile_path_CXX" 12517 12518# Set to yes if exported symbols are required. 12519always_export_symbols=$always_export_symbols_CXX 12520 12521# The commands to list exported symbols. 12522export_symbols_cmds=$lt_export_symbols_cmds_CXX 12523 12524# The commands to extract the exported symbol list from a shared archive. 12525extract_expsyms_cmds=$lt_extract_expsyms_cmds 12526 12527# Symbols that should not be listed in the preloaded symbols. 12528exclude_expsyms=$lt_exclude_expsyms_CXX 12529 12530# Symbols that must always be exported. 12531include_expsyms=$lt_include_expsyms_CXX 12532 12533# ### END LIBTOOL TAG CONFIG: $tagname 12534 12535__EOF__ 12536 12537 12538else 12539 # If there is no Makefile yet, we rely on a make rule to execute 12540 # `config.status --recheck' to rerun these tests and create the 12541 # libtool script then. 12542 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 12543 if test -f "$ltmain_in"; then 12544 test -f Makefile && make "$ltmain" 12545 fi 12546fi 12547 12548 12549ac_ext=cc 12550ac_cpp='$CXXCPP $CPPFLAGS' 12551ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12552ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12553ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12554 12555CC=$lt_save_CC 12556LDCXX=$LD 12557LD=$lt_save_LD 12558GCC=$lt_save_GCC 12559with_gnu_ldcxx=$with_gnu_ld 12560with_gnu_ld=$lt_save_with_gnu_ld 12561lt_cv_path_LDCXX=$lt_cv_path_LD 12562lt_cv_path_LD=$lt_save_path_LD 12563lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 12564lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 12565 12566 available_tags="$available_tags CXX" 12567 fi 12568 12569 12570 # Now substitute the updated list of available tags. 12571 # because original _LT_AC_TAGCONFIG in libtool.m4 does it --Alex 12572 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 12573 mv "${ofile}T" "$ofile" 12574 chmod +x "$ofile" 12575 else 12576 rm -f "${ofile}T" 12577 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 12578echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 12579 { (exit 1); exit 1; }; } 12580 fi 12581 12582 12583 fi 12584 12585 12586 12587 12588# This can be used to rebuild libtool when needed 12589LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 12590 12591# Always use our own libtool. 12592LIBTOOL='$(SHELL) $(top_builddir)/libtool' 12593 12594# Prevent multiple expansion 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611echo "$as_me:$LINENO: checking whether $CXX compiler understands C++" >&5 12612echo $ECHO_N "checking whether $CXX compiler understands C++... $ECHO_C" >&6 12613cat >conftest.$ac_ext <<_ACEOF 12614/* confdefs.h. */ 12615_ACEOF 12616cat confdefs.h >>conftest.$ac_ext 12617cat >>conftest.$ac_ext <<_ACEOF 12618/* end confdefs.h. */ 12619 12620 #define Concat(a,b) a ## b 12621 struct T { 12622 virtual ~T(); 12623 virtual int m() const = 0; 12624 mutable bool a; 12625 }; 12626 12627 template <class P> 12628 struct C: public P { 12629 C(int): c(0) {} 12630 int m() const; 12631 int c; 12632 }; 12633 12634 template <class P> 12635 int C<P>::m() const { Concat(re,turn) c; } 12636 12637 namespace N { 12638 struct Spaced { 12639 Spaced(); 12640 int m; 12641 }; 12642 } 12643 12644 N::Spaced::Spaced() { 12645 } 12646 12647 using N::Spaced; 12648 12649 inline int test_inline() { return 0; } 12650 12651int 12652main () 12653{ 12654 12655 // this is main()'s body 12656 static C<T> ct(1); 12657 Spaced spaced; 12658 return sizeof(spaced) > 0 ? 0 : 1; 12659 12660 ; 12661 return 0; 12662} 12663_ACEOF 12664rm -f conftest.$ac_objext 12665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12666 (eval $ac_compile) 2>conftest.er1 12667 ac_status=$? 12668 grep -v '^ *+' conftest.er1 >conftest.err 12669 rm -f conftest.er1 12670 cat conftest.err >&5 12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12672 (exit $ac_status); } && 12673 { ac_try='test -z "$ac_cxx_werror_flag" 12674 || test ! -s conftest.err' 12675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12676 (eval $ac_try) 2>&5 12677 ac_status=$? 12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12679 (exit $ac_status); }; } && 12680 { ac_try='test -s conftest.$ac_objext' 12681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12682 (eval $ac_try) 2>&5 12683 ac_status=$? 12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12685 (exit $ac_status); }; }; then 12686 12687 echo "$as_me:$LINENO: result: yes" >&5 12688echo "${ECHO_T}yes" >&6 12689 12690else 12691 echo "$as_me: failed program was:" >&5 12692sed 's/^/| /' conftest.$ac_ext >&5 12693 12694 12695 echo "$as_me:$LINENO: result: no" >&5 12696echo "${ECHO_T}no" >&6 12697 { { echo "$as_me:$LINENO: error: the compiler ($CXX) failed to interpret straightforward C++; check config.log for details" >&5 12698echo "$as_me: error: the compiler ($CXX) failed to interpret straightforward C++; check config.log for details" >&2;} 12699 { (exit 1); exit 1; }; } 12700 12701fi 12702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12703 12704 12705 12706OLD_CXXFLAGS=$CXXFLAGS 12707if test -z "$PRESET_CXXFLAGS" 12708then 12709 if test "x$GXX" = xyes 12710 then 12711 12712 # reset to preferred options 12713 # replace -O? with -O3 12714 CXXFLAGS=`echo $CXXFLAGS | sed 's/-O[0-9]*/-O3/'`; 12715 # enable useful warnings 12716 CXXFLAGS="$CXXFLAGS -Wall -Wwrite-strings -Woverloaded-virtual" 12717 12718 # custom host-dependent tuning 12719 case "$host" in 12720 alpha-*) 12721 # we get random coredumps with g++ -O on alpha-dec-osf4 12722 # g++ -O3 warns about being buggy on alpha-*-freebsd4.* 12723 echo deleting -On on $host 12724 CXXFLAGS=`echo $CXXFLAGS | sed -e 's/-O[0-9]* *//'` 12725 ;; 12726 *-linux-*) 12727 # -O2,3 seems to produce coredumps on RH and MDK linux 12728 echo enforcing -O1 on $host 12729 CXXFLAGS=`echo $CXXFLAGS | sed -e 's/-O[0-9]* */-O1 /'` 12730 ;; 12731 esac 12732 fi 12733else 12734 { echo "$as_me:$LINENO: WARNING: CXXFLAGS manualy set to \"$PRESET_CXXFLAGS\"" >&5 12735echo "$as_me: WARNING: CXXFLAGS manualy set to \"$PRESET_CXXFLAGS\"" >&2;} 12736fi 12737 12738if test "x$PRESET_CXXFLAGS" != "x$CXXFLAGS" 12739then 12740 echo "$as_me:$LINENO: checking whether custom $CXX flags work" >&5 12741echo $ECHO_N "checking whether custom $CXX flags work... $ECHO_C" >&6 12742 cat >conftest.$ac_ext <<_ACEOF 12743/* confdefs.h. */ 12744_ACEOF 12745cat confdefs.h >>conftest.$ac_ext 12746cat >>conftest.$ac_ext <<_ACEOF 12747/* end confdefs.h. */ 12748 12749 12750int 12751main () 12752{ 12753 12754 return 0; 12755 12756 ; 12757 return 0; 12758} 12759_ACEOF 12760rm -f conftest.$ac_objext 12761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12762 (eval $ac_compile) 2>conftest.er1 12763 ac_status=$? 12764 grep -v '^ *+' conftest.er1 >conftest.err 12765 rm -f conftest.er1 12766 cat conftest.err >&5 12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12768 (exit $ac_status); } && 12769 { ac_try='test -z "$ac_cxx_werror_flag" 12770 || test ! -s conftest.err' 12771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12772 (eval $ac_try) 2>&5 12773 ac_status=$? 12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12775 (exit $ac_status); }; } && 12776 { ac_try='test -s conftest.$ac_objext' 12777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12778 (eval $ac_try) 2>&5 12779 ac_status=$? 12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12781 (exit $ac_status); }; }; then 12782 12783 echo "$as_me:$LINENO: result: probably" >&5 12784echo "${ECHO_T}probably" >&6 12785 echo "changing $CXX flags to $CXXFLAGS" 12786 12787else 12788 echo "$as_me: failed program was:" >&5 12789sed 's/^/| /' conftest.$ac_ext >&5 12790 12791 12792 echo "$as_me:$LINENO: result: no" >&5 12793echo "${ECHO_T}no" >&6 12794 CXXFLAGS=$OLD_CXXFLAGS 12795 echo "leaving $CXX flags at $CXXFLAGS" 12796 12797 12798fi 12799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12800fi 12801 12802 12803 12804echo "$as_me:$LINENO: checking for main in -lnsl" >&5 12805echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6 12806if test "${ac_cv_lib_nsl_main+set}" = set; then 12807 echo $ECHO_N "(cached) $ECHO_C" >&6 12808else 12809 ac_check_lib_save_LIBS=$LIBS 12810LIBS="-lnsl $LIBS" 12811cat >conftest.$ac_ext <<_ACEOF 12812/* confdefs.h. */ 12813_ACEOF 12814cat confdefs.h >>conftest.$ac_ext 12815cat >>conftest.$ac_ext <<_ACEOF 12816/* end confdefs.h. */ 12817 12818 12819int 12820main () 12821{ 12822main (); 12823 ; 12824 return 0; 12825} 12826_ACEOF 12827rm -f conftest.$ac_objext conftest$ac_exeext 12828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12829 (eval $ac_link) 2>conftest.er1 12830 ac_status=$? 12831 grep -v '^ *+' conftest.er1 >conftest.err 12832 rm -f conftest.er1 12833 cat conftest.err >&5 12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12835 (exit $ac_status); } && 12836 { ac_try='test -z "$ac_cxx_werror_flag" 12837 || test ! -s conftest.err' 12838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12839 (eval $ac_try) 2>&5 12840 ac_status=$? 12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12842 (exit $ac_status); }; } && 12843 { ac_try='test -s conftest$ac_exeext' 12844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12845 (eval $ac_try) 2>&5 12846 ac_status=$? 12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12848 (exit $ac_status); }; }; then 12849 ac_cv_lib_nsl_main=yes 12850else 12851 echo "$as_me: failed program was:" >&5 12852sed 's/^/| /' conftest.$ac_ext >&5 12853 12854ac_cv_lib_nsl_main=no 12855fi 12856rm -f conftest.err conftest.$ac_objext \ 12857 conftest$ac_exeext conftest.$ac_ext 12858LIBS=$ac_check_lib_save_LIBS 12859fi 12860echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5 12861echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6 12862if test $ac_cv_lib_nsl_main = yes; then 12863 cat >>confdefs.h <<_ACEOF 12864#define HAVE_LIBNSL 1 12865_ACEOF 12866 12867 LIBS="-lnsl $LIBS" 12868 12869fi 12870 12871 12872 12873 12874 12875 12876 12877 12878for ac_header in \ 12879 iterator \ 12880 limits \ 12881 climits \ 12882 limits.h \ 12883 12884do 12885as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12886if eval "test \"\${$as_ac_Header+set}\" = set"; then 12887 echo "$as_me:$LINENO: checking for $ac_header" >&5 12888echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12889if eval "test \"\${$as_ac_Header+set}\" = set"; then 12890 echo $ECHO_N "(cached) $ECHO_C" >&6 12891fi 12892echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 12893echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 12894else 12895 # Is the header compilable? 12896echo "$as_me:$LINENO: checking $ac_header usability" >&5 12897echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 12898cat >conftest.$ac_ext <<_ACEOF 12899/* confdefs.h. */ 12900_ACEOF 12901cat confdefs.h >>conftest.$ac_ext 12902cat >>conftest.$ac_ext <<_ACEOF 12903/* end confdefs.h. */ 12904$ac_includes_default 12905#include <$ac_header> 12906_ACEOF 12907rm -f conftest.$ac_objext 12908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12909 (eval $ac_compile) 2>conftest.er1 12910 ac_status=$? 12911 grep -v '^ *+' conftest.er1 >conftest.err 12912 rm -f conftest.er1 12913 cat conftest.err >&5 12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12915 (exit $ac_status); } && 12916 { ac_try='test -z "$ac_cxx_werror_flag" 12917 || test ! -s conftest.err' 12918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12919 (eval $ac_try) 2>&5 12920 ac_status=$? 12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12922 (exit $ac_status); }; } && 12923 { ac_try='test -s conftest.$ac_objext' 12924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12925 (eval $ac_try) 2>&5 12926 ac_status=$? 12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12928 (exit $ac_status); }; }; then 12929 ac_header_compiler=yes 12930else 12931 echo "$as_me: failed program was:" >&5 12932sed 's/^/| /' conftest.$ac_ext >&5 12933 12934ac_header_compiler=no 12935fi 12936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12937echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12938echo "${ECHO_T}$ac_header_compiler" >&6 12939 12940# Is the header present? 12941echo "$as_me:$LINENO: checking $ac_header presence" >&5 12942echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 12943cat >conftest.$ac_ext <<_ACEOF 12944/* confdefs.h. */ 12945_ACEOF 12946cat confdefs.h >>conftest.$ac_ext 12947cat >>conftest.$ac_ext <<_ACEOF 12948/* end confdefs.h. */ 12949#include <$ac_header> 12950_ACEOF 12951if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 12952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 12953 ac_status=$? 12954 grep -v '^ *+' conftest.er1 >conftest.err 12955 rm -f conftest.er1 12956 cat conftest.err >&5 12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12958 (exit $ac_status); } >/dev/null; then 12959 if test -s conftest.err; then 12960 ac_cpp_err=$ac_cxx_preproc_warn_flag 12961 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 12962 else 12963 ac_cpp_err= 12964 fi 12965else 12966 ac_cpp_err=yes 12967fi 12968if test -z "$ac_cpp_err"; then 12969 ac_header_preproc=yes 12970else 12971 echo "$as_me: failed program was:" >&5 12972sed 's/^/| /' conftest.$ac_ext >&5 12973 12974 ac_header_preproc=no 12975fi 12976rm -f conftest.err conftest.$ac_ext 12977echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12978echo "${ECHO_T}$ac_header_preproc" >&6 12979 12980# So? What about this header? 12981case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 12982 yes:no: ) 12983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12984echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12986echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12987 ac_header_preproc=yes 12988 ;; 12989 no:yes:* ) 12990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12991echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12993echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12995echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12997echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12999echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 13001echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 13002 ( 13003 cat <<\_ASBOX 13004## ------------------------------- ## 13005## Report this to the Hapy lists. ## 13006## ------------------------------- ## 13007_ASBOX 13008 ) | 13009 sed "s/^/$as_me: WARNING: /" >&2 13010 ;; 13011esac 13012echo "$as_me:$LINENO: checking for $ac_header" >&5 13013echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 13014if eval "test \"\${$as_ac_Header+set}\" = set"; then 13015 echo $ECHO_N "(cached) $ECHO_C" >&6 13016else 13017 eval "$as_ac_Header=\$ac_header_preproc" 13018fi 13019echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 13020echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 13021 13022fi 13023if test `eval echo '${'$as_ac_Header'}'` = yes; then 13024 cat >>confdefs.h <<_ACEOF 13025#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 13026_ACEOF 13027 13028fi 13029 13030done 13031 13032 13033echo "$as_me:$LINENO: checking for non-standard std::string::compare profile" >&5 13034echo $ECHO_N "checking for non-standard std::string::compare profile... $ECHO_C" >&6 13035if test "${ac_cv_have_spn_string_compare+set}" = set; then 13036 echo $ECHO_N "(cached) $ECHO_C" >&6 13037else 13038 13039 cat >conftest.$ac_ext <<_ACEOF 13040/* confdefs.h. */ 13041_ACEOF 13042cat confdefs.h >>conftest.$ac_ext 13043cat >>conftest.$ac_ext <<_ACEOF 13044/* end confdefs.h. */ 13045 13046 #include <string> 13047 13048int 13049main () 13050{ 13051 13052 const string s1 = "abcd"; 13053 const string s2 = "bc"; 13054 return (s1.compare(s2, 1, s2.size()) == 0) ? 0 : 255; 13055 13056 ; 13057 return 0; 13058} 13059_ACEOF 13060rm -f conftest.$ac_objext 13061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13062 (eval $ac_compile) 2>conftest.er1 13063 ac_status=$? 13064 grep -v '^ *+' conftest.er1 >conftest.err 13065 rm -f conftest.er1 13066 cat conftest.err >&5 13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13068 (exit $ac_status); } && 13069 { ac_try='test -z "$ac_cxx_werror_flag" 13070 || test ! -s conftest.err' 13071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13072 (eval $ac_try) 2>&5 13073 ac_status=$? 13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13075 (exit $ac_status); }; } && 13076 { ac_try='test -s conftest.$ac_objext' 13077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13078 (eval $ac_try) 2>&5 13079 ac_status=$? 13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13081 (exit $ac_status); }; }; then 13082 13083 ac_cv_have_spn_string_compare="yes"; 13084 13085else 13086 echo "$as_me: failed program was:" >&5 13087sed 's/^/| /' conftest.$ac_ext >&5 13088 13089 13090 ac_cv_have_spn_string_compare="no"; 13091 13092fi 13093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13094 13095fi 13096echo "$as_me:$LINENO: result: $ac_cv_have_spn_string_compare" >&5 13097echo "${ECHO_T}$ac_cv_have_spn_string_compare" >&6 13098if test "x$ac_cv_have_spn_string_compare" = xyes; then 13099 13100cat >>confdefs.h <<\_ACEOF 13101#define HAVE_SPN_STRING_COMPARE 1 13102_ACEOF 13103 13104fi 13105 13106echo "$as_me:$LINENO: checking for std::numeric_limits" >&5 13107echo $ECHO_N "checking for std::numeric_limits... $ECHO_C" >&6 13108if test "${ac_cv_have_numeric_limits+set}" = set; then 13109 echo $ECHO_N "(cached) $ECHO_C" >&6 13110else 13111 13112 cat >conftest.$ac_ext <<_ACEOF 13113/* confdefs.h. */ 13114_ACEOF 13115cat confdefs.h >>conftest.$ac_ext 13116cat >>conftest.$ac_ext <<_ACEOF 13117/* end confdefs.h. */ 13118 13119 #include <limits> 13120 // try #including non-standard ones too? 13121 13122int 13123main () 13124{ 13125 13126 return std::numeric_limits<unsigned long>::max() == 0; 13127 13128 ; 13129 return 0; 13130} 13131_ACEOF 13132rm -f conftest.$ac_objext 13133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13134 (eval $ac_compile) 2>conftest.er1 13135 ac_status=$? 13136 grep -v '^ *+' conftest.er1 >conftest.err 13137 rm -f conftest.er1 13138 cat conftest.err >&5 13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13140 (exit $ac_status); } && 13141 { ac_try='test -z "$ac_cxx_werror_flag" 13142 || test ! -s conftest.err' 13143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13144 (eval $ac_try) 2>&5 13145 ac_status=$? 13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13147 (exit $ac_status); }; } && 13148 { ac_try='test -s conftest.$ac_objext' 13149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13150 (eval $ac_try) 2>&5 13151 ac_status=$? 13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13153 (exit $ac_status); }; }; then 13154 13155 ac_cv_have_numeric_limits="yes"; 13156 13157else 13158 echo "$as_me: failed program was:" >&5 13159sed 's/^/| /' conftest.$ac_ext >&5 13160 13161 13162 ac_cv_have_numeric_limits="no"; 13163 13164fi 13165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13166 13167fi 13168echo "$as_me:$LINENO: result: $ac_cv_have_numeric_limits" >&5 13169echo "${ECHO_T}$ac_cv_have_numeric_limits" >&6 13170if test "x$ac_cv_have_numeric_limits" = xyes; then 13171 13172cat >>confdefs.h <<\_ACEOF 13173#define HAVE_NUMERIC_LIMITS 1 13174_ACEOF 13175 13176fi 13177 13178echo "$as_me:$LINENO: checking for std::iterator" >&5 13179echo $ECHO_N "checking for std::iterator... $ECHO_C" >&6 13180if test "${ac_cv_have_std_iterator_type+set}" = set; then 13181 echo $ECHO_N "(cached) $ECHO_C" >&6 13182else 13183 13184 cat >conftest.$ac_ext <<_ACEOF 13185/* confdefs.h. */ 13186_ACEOF 13187cat confdefs.h >>conftest.$ac_ext 13188cat >>conftest.$ac_ext <<_ACEOF 13189/* end confdefs.h. */ 13190 13191 #ifdef HAVE_ITERATOR 13192 # include <iterator> 13193 #endif 13194 template <typename V, typename D> 13195 struct std_bidirectional_iterator: 13196 public std::iterator<std::bidirectional_iterator_tag, V, D> { 13197 }; 13198 13199int 13200main () 13201{ 13202 13203 typedef std_bidirectional_iterator<int*,int> MyIterator; 13204 return 0; 13205 13206 ; 13207 return 0; 13208} 13209_ACEOF 13210rm -f conftest.$ac_objext 13211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13212 (eval $ac_compile) 2>conftest.er1 13213 ac_status=$? 13214 grep -v '^ *+' conftest.er1 >conftest.err 13215 rm -f conftest.er1 13216 cat conftest.err >&5 13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13218 (exit $ac_status); } && 13219 { ac_try='test -z "$ac_cxx_werror_flag" 13220 || test ! -s conftest.err' 13221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13222 (eval $ac_try) 2>&5 13223 ac_status=$? 13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13225 (exit $ac_status); }; } && 13226 { ac_try='test -s conftest.$ac_objext' 13227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13228 (eval $ac_try) 2>&5 13229 ac_status=$? 13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13231 (exit $ac_status); }; }; then 13232 13233 ac_cv_have_std_iterator_type="yes"; 13234 13235else 13236 echo "$as_me: failed program was:" >&5 13237sed 's/^/| /' conftest.$ac_ext >&5 13238 13239 13240 ac_cv_have_std_iterator_type="no"; 13241 13242fi 13243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13244 13245fi 13246echo "$as_me:$LINENO: result: $ac_cv_have_std_iterator_type" >&5 13247echo "${ECHO_T}$ac_cv_have_std_iterator_type" >&6 13248if test "x$ac_cv_have_std_iterator_type" = xyes; then 13249 13250cat >>confdefs.h <<\_ACEOF 13251#define HAVE_STD_ITERATOR_TYPE 1 13252_ACEOF 13253 13254fi 13255 13256 ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile tests/Makefile" 13257 13258cat >confcache <<\_ACEOF 13259# This file is a shell script that caches the results of configure 13260# tests run on this system so they can be shared between configure 13261# scripts and configure runs, see configure's option --config-cache. 13262# It is not useful on other systems. If it contains results you don't 13263# want to keep, you may remove or edit it. 13264# 13265# config.status only pays attention to the cache file if you give it 13266# the --recheck option to rerun configure. 13267# 13268# `ac_cv_env_foo' variables (set or unset) will be overridden when 13269# loading this file, other *unset* `ac_cv_foo' will be assigned the 13270# following values. 13271 13272_ACEOF 13273 13274# The following way of writing the cache mishandles newlines in values, 13275# but we know of no workaround that is simple, portable, and efficient. 13276# So, don't put newlines in cache variables' values. 13277# Ultrix sh set writes to stderr and can't be redirected directly, 13278# and sets the high bit in the cache file unless we assign to the vars. 13279{ 13280 (set) 2>&1 | 13281 case `(ac_space=' '; set | grep ac_space) 2>&1` in 13282 *ac_space=\ *) 13283 # `set' does not quote correctly, so add quotes (double-quote 13284 # substitution turns \\\\ into \\, and sed turns \\ into \). 13285 sed -n \ 13286 "s/'/'\\\\''/g; 13287 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13288 ;; 13289 *) 13290 # `set' quotes correctly as required by POSIX, so do not add quotes. 13291 sed -n \ 13292 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 13293 ;; 13294 esac; 13295} | 13296 sed ' 13297 t clear 13298 : clear 13299 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13300 t end 13301 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13302 : end' >>confcache 13303if diff $cache_file confcache >/dev/null 2>&1; then :; else 13304 if test -w $cache_file; then 13305 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 13306 cat confcache >$cache_file 13307 else 13308 echo "not updating unwritable cache $cache_file" 13309 fi 13310fi 13311rm -f confcache 13312 13313test "x$prefix" = xNONE && prefix=$ac_default_prefix 13314# Let make expand exec_prefix. 13315test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13316 13317# VPATH may cause trouble with some makes, so we remove $(srcdir), 13318# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 13319# trailing colons and then remove the whole line if VPATH becomes empty 13320# (actually we leave an empty line to preserve line numbers). 13321if test "x$srcdir" = x.; then 13322 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 13323s/:*\$(srcdir):*/:/; 13324s/:*\${srcdir}:*/:/; 13325s/:*@srcdir@:*/:/; 13326s/^\([^=]*=[ ]*\):*/\1/; 13327s/:*$//; 13328s/^[^=]*=[ ]*$//; 13329}' 13330fi 13331 13332DEFS=-DHAVE_CONFIG_H 13333 13334ac_libobjs= 13335ac_ltlibobjs= 13336for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13337 # 1. Remove the extension, and $U if already installed. 13338 ac_i=`echo "$ac_i" | 13339 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 13340 # 2. Add them. 13341 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 13342 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 13343done 13344LIBOBJS=$ac_libobjs 13345 13346LTLIBOBJS=$ac_ltlibobjs 13347 13348 13349if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 13350 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 13351Usually this means the macro was only invoked conditionally." >&5 13352echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 13353Usually this means the macro was only invoked conditionally." >&2;} 13354 { (exit 1); exit 1; }; } 13355fi 13356if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13357 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 13358Usually this means the macro was only invoked conditionally." >&5 13359echo "$as_me: error: conditional \"AMDEP\" was never defined. 13360Usually this means the macro was only invoked conditionally." >&2;} 13361 { (exit 1); exit 1; }; } 13362fi 13363if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13364 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 13365Usually this means the macro was only invoked conditionally." >&5 13366echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 13367Usually this means the macro was only invoked conditionally." >&2;} 13368 { (exit 1); exit 1; }; } 13369fi 13370if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 13371 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 13372Usually this means the macro was only invoked conditionally." >&5 13373echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 13374Usually this means the macro was only invoked conditionally." >&2;} 13375 { (exit 1); exit 1; }; } 13376fi 13377 13378: ${CONFIG_STATUS=./config.status} 13379ac_clean_files_save=$ac_clean_files 13380ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13381{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 13382echo "$as_me: creating $CONFIG_STATUS" >&6;} 13383cat >$CONFIG_STATUS <<_ACEOF 13384#! $SHELL 13385# Generated by $as_me. 13386# Run this file to recreate the current configuration. 13387# Compiler output produced by configure, useful for debugging 13388# configure, is in config.log if it exists. 13389 13390debug=false 13391ac_cs_recheck=false 13392ac_cs_silent=false 13393SHELL=\${CONFIG_SHELL-$SHELL} 13394_ACEOF 13395 13396cat >>$CONFIG_STATUS <<\_ACEOF 13397## --------------------- ## 13398## M4sh Initialization. ## 13399## --------------------- ## 13400 13401# Be Bourne compatible 13402if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 13403 emulate sh 13404 NULLCMD=: 13405 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 13406 # is contrary to our usage. Disable this feature. 13407 alias -g '${1+"$@"}'='"$@"' 13408elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 13409 set -o posix 13410fi 13411DUALCASE=1; export DUALCASE # for MKS sh 13412 13413# Support unset when possible. 13414if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 13415 as_unset=unset 13416else 13417 as_unset=false 13418fi 13419 13420 13421# Work around bugs in pre-3.0 UWIN ksh. 13422$as_unset ENV MAIL MAILPATH 13423PS1='$ ' 13424PS2='> ' 13425PS4='+ ' 13426 13427# NLS nuisances. 13428for as_var in \ 13429 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 13430 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 13431 LC_TELEPHONE LC_TIME 13432do 13433 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 13434 eval $as_var=C; export $as_var 13435 else 13436 $as_unset $as_var 13437 fi 13438done 13439 13440# Required to use basename. 13441if expr a : '\(a\)' >/dev/null 2>&1; then 13442 as_expr=expr 13443else 13444 as_expr=false 13445fi 13446 13447if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 13448 as_basename=basename 13449else 13450 as_basename=false 13451fi 13452 13453 13454# Name of the executable. 13455as_me=`$as_basename "$0" || 13456$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13457 X"$0" : 'X\(//\)$' \| \ 13458 X"$0" : 'X\(/\)$' \| \ 13459 . : '\(.\)' 2>/dev/null || 13460echo X/"$0" | 13461 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 13462 /^X\/\(\/\/\)$/{ s//\1/; q; } 13463 /^X\/\(\/\).*/{ s//\1/; q; } 13464 s/.*/./; q'` 13465 13466 13467# PATH needs CR, and LINENO needs CR and PATH. 13468# Avoid depending upon Character Ranges. 13469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13472as_cr_digits='0123456789' 13473as_cr_alnum=$as_cr_Letters$as_cr_digits 13474 13475# The user is always right. 13476if test "${PATH_SEPARATOR+set}" != set; then 13477 echo "#! /bin/sh" >conf$$.sh 13478 echo "exit 0" >>conf$$.sh 13479 chmod +x conf$$.sh 13480 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 13481 PATH_SEPARATOR=';' 13482 else 13483 PATH_SEPARATOR=: 13484 fi 13485 rm -f conf$$.sh 13486fi 13487 13488 13489 as_lineno_1=$LINENO 13490 as_lineno_2=$LINENO 13491 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 13492 test "x$as_lineno_1" != "x$as_lineno_2" && 13493 test "x$as_lineno_3" = "x$as_lineno_2" || { 13494 # Find who we are. Look in the path if we contain no path at all 13495 # relative or not. 13496 case $0 in 13497 *[\\/]* ) as_myself=$0 ;; 13498 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13499for as_dir in $PATH 13500do 13501 IFS=$as_save_IFS 13502 test -z "$as_dir" && as_dir=. 13503 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13504done 13505 13506 ;; 13507 esac 13508 # We did not find ourselves, most probably we were run as `sh COMMAND' 13509 # in which case we are not to be found in the path. 13510 if test "x$as_myself" = x; then 13511 as_myself=$0 13512 fi 13513 if test ! -f "$as_myself"; then 13514 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 13515echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 13516 { (exit 1); exit 1; }; } 13517 fi 13518 case $CONFIG_SHELL in 13519 '') 13520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13521for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 13522do 13523 IFS=$as_save_IFS 13524 test -z "$as_dir" && as_dir=. 13525 for as_base in sh bash ksh sh5; do 13526 case $as_dir in 13527 /*) 13528 if ("$as_dir/$as_base" -c ' 13529 as_lineno_1=$LINENO 13530 as_lineno_2=$LINENO 13531 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 13532 test "x$as_lineno_1" != "x$as_lineno_2" && 13533 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 13534 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 13535 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 13536 CONFIG_SHELL=$as_dir/$as_base 13537 export CONFIG_SHELL 13538 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 13539 fi;; 13540 esac 13541 done 13542done 13543;; 13544 esac 13545 13546 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 13547 # uniformly replaced by the line number. The first 'sed' inserts a 13548 # line-number line before each line; the second 'sed' does the real 13549 # work. The second script uses 'N' to pair each line-number line 13550 # with the numbered line, and appends trailing '-' during 13551 # substitution so that $LINENO is not a special case at line end. 13552 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 13553 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 13554 sed '=' <$as_myself | 13555 sed ' 13556 N 13557 s,$,-, 13558 : loop 13559 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 13560 t loop 13561 s,-$,, 13562 s,^['$as_cr_digits']*\n,, 13563 ' >$as_me.lineno && 13564 chmod +x $as_me.lineno || 13565 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 13566echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 13567 { (exit 1); exit 1; }; } 13568 13569 # Don't try to exec as it changes $[0], causing all sort of problems 13570 # (the dirname of $[0] is not the place where we might find the 13571 # original and so on. Autoconf is especially sensible to this). 13572 . ./$as_me.lineno 13573 # Exit status is that of the last command. 13574 exit 13575} 13576 13577 13578case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 13579 *c*,-n*) ECHO_N= ECHO_C=' 13580' ECHO_T=' ' ;; 13581 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 13582 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 13583esac 13584 13585if expr a : '\(a\)' >/dev/null 2>&1; then 13586 as_expr=expr 13587else 13588 as_expr=false 13589fi 13590 13591rm -f conf$$ conf$$.exe conf$$.file 13592echo >conf$$.file 13593if ln -s conf$$.file conf$$ 2>/dev/null; then 13594 # We could just check for DJGPP; but this test a) works b) is more generic 13595 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 13596 if test -f conf$$.exe; then 13597 # Don't use ln at all; we don't have any links 13598 as_ln_s='cp -p' 13599 else 13600 as_ln_s='ln -s' 13601 fi 13602elif ln conf$$.file conf$$ 2>/dev/null; then 13603 as_ln_s=ln 13604else 13605 as_ln_s='cp -p' 13606fi 13607rm -f conf$$ conf$$.exe conf$$.file 13608 13609if mkdir -p . 2>/dev/null; then 13610 as_mkdir_p=: 13611else 13612 test -d ./-p && rmdir ./-p 13613 as_mkdir_p=false 13614fi 13615 13616as_executable_p="test -f" 13617 13618# Sed expression to map a string onto a valid CPP name. 13619as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13620 13621# Sed expression to map a string onto a valid variable name. 13622as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13623 13624 13625# IFS 13626# We need space, tab and new line, in precisely that order. 13627as_nl=' 13628' 13629IFS=" $as_nl" 13630 13631# CDPATH. 13632$as_unset CDPATH 13633 13634exec 6>&1 13635 13636# Open the log real soon, to keep \$[0] and so on meaningful, and to 13637# report actual input values of CONFIG_FILES etc. instead of their 13638# values after options handling. Logging --version etc. is OK. 13639exec 5>>config.log 13640{ 13641 echo 13642 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13643## Running $as_me. ## 13644_ASBOX 13645} >&5 13646cat >&5 <<_CSEOF 13647 13648This file was extended by Hapy $as_me 0.0.8, which was 13649generated by GNU Autoconf 2.59. Invocation command line was 13650 13651 CONFIG_FILES = $CONFIG_FILES 13652 CONFIG_HEADERS = $CONFIG_HEADERS 13653 CONFIG_LINKS = $CONFIG_LINKS 13654 CONFIG_COMMANDS = $CONFIG_COMMANDS 13655 $ $0 $@ 13656 13657_CSEOF 13658echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 13659echo >&5 13660_ACEOF 13661 13662# Files that config.status was made for. 13663if test -n "$ac_config_files"; then 13664 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 13665fi 13666 13667if test -n "$ac_config_headers"; then 13668 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 13669fi 13670 13671if test -n "$ac_config_links"; then 13672 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 13673fi 13674 13675if test -n "$ac_config_commands"; then 13676 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 13677fi 13678 13679cat >>$CONFIG_STATUS <<\_ACEOF 13680 13681ac_cs_usage="\ 13682\`$as_me' instantiates files from templates according to the 13683current configuration. 13684 13685Usage: $0 [OPTIONS] [FILE]... 13686 13687 -h, --help print this help, then exit 13688 -V, --version print version number, then exit 13689 -q, --quiet do not print progress messages 13690 -d, --debug don't remove temporary files 13691 --recheck update $as_me by reconfiguring in the same conditions 13692 --file=FILE[:TEMPLATE] 13693 instantiate the configuration file FILE 13694 --header=FILE[:TEMPLATE] 13695 instantiate the configuration header FILE 13696 13697Configuration files: 13698$config_files 13699 13700Configuration headers: 13701$config_headers 13702 13703Configuration commands: 13704$config_commands 13705 13706Report bugs to <bug-autoconf@gnu.org>." 13707_ACEOF 13708 13709cat >>$CONFIG_STATUS <<_ACEOF 13710ac_cs_version="\\ 13711Hapy config.status 0.0.8 13712configured by $0, generated by GNU Autoconf 2.59, 13713 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 13714 13715Copyright (C) 2003 Free Software Foundation, Inc. 13716This config.status script is free software; the Free Software Foundation 13717gives unlimited permission to copy, distribute and modify it." 13718srcdir=$srcdir 13719INSTALL="$INSTALL" 13720_ACEOF 13721 13722cat >>$CONFIG_STATUS <<\_ACEOF 13723# If no file are specified by the user, then we need to provide default 13724# value. By we need to know if files were specified by the user. 13725ac_need_defaults=: 13726while test $# != 0 13727do 13728 case $1 in 13729 --*=*) 13730 ac_option=`expr "x$1" : 'x\([^=]*\)='` 13731 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 13732 ac_shift=: 13733 ;; 13734 -*) 13735 ac_option=$1 13736 ac_optarg=$2 13737 ac_shift=shift 13738 ;; 13739 *) # This is not an option, so the user has probably given explicit 13740 # arguments. 13741 ac_option=$1 13742 ac_need_defaults=false;; 13743 esac 13744 13745 case $ac_option in 13746 # Handling of the options. 13747_ACEOF 13748cat >>$CONFIG_STATUS <<\_ACEOF 13749 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13750 ac_cs_recheck=: ;; 13751 --version | --vers* | -V ) 13752 echo "$ac_cs_version"; exit 0 ;; 13753 --he | --h) 13754 # Conflict between --help and --header 13755 { { echo "$as_me:$LINENO: error: ambiguous option: $1 13756Try \`$0 --help' for more information." >&5 13757echo "$as_me: error: ambiguous option: $1 13758Try \`$0 --help' for more information." >&2;} 13759 { (exit 1); exit 1; }; };; 13760 --help | --hel | -h ) 13761 echo "$ac_cs_usage"; exit 0 ;; 13762 --debug | --d* | -d ) 13763 debug=: ;; 13764 --file | --fil | --fi | --f ) 13765 $ac_shift 13766 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 13767 ac_need_defaults=false;; 13768 --header | --heade | --head | --hea ) 13769 $ac_shift 13770 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 13771 ac_need_defaults=false;; 13772 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13773 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13774 ac_cs_silent=: ;; 13775 13776 # This is an error. 13777 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 13778Try \`$0 --help' for more information." >&5 13779echo "$as_me: error: unrecognized option: $1 13780Try \`$0 --help' for more information." >&2;} 13781 { (exit 1); exit 1; }; } ;; 13782 13783 *) ac_config_targets="$ac_config_targets $1" ;; 13784 13785 esac 13786 shift 13787done 13788 13789ac_configure_extra_args= 13790 13791if $ac_cs_silent; then 13792 exec 6>/dev/null 13793 ac_configure_extra_args="$ac_configure_extra_args --silent" 13794fi 13795 13796_ACEOF 13797cat >>$CONFIG_STATUS <<_ACEOF 13798if \$ac_cs_recheck; then 13799 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 13800 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13801fi 13802 13803_ACEOF 13804 13805cat >>$CONFIG_STATUS <<_ACEOF 13806# 13807# INIT-COMMANDS section. 13808# 13809 13810PACKAGE="$PACKAGE" 13811AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13812 13813_ACEOF 13814 13815 13816 13817cat >>$CONFIG_STATUS <<\_ACEOF 13818for ac_config_target in $ac_config_targets 13819do 13820 case "$ac_config_target" in 13821 # Handling of arguments. 13822 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13823 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 13824 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 13825 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 13826 "src/include/Hapy/config.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS src/include/Hapy/config.h" ;; 13827 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13828 "src/include/Hapy/ac-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/Hapy/ac-config.h" ;; 13829 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 13830echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 13831 { (exit 1); exit 1; }; };; 13832 esac 13833done 13834 13835# If the user did not use the arguments to specify the items to instantiate, 13836# then the envvar interface is used. Set only those that are not. 13837# We use the long form for the default assignment because of an extremely 13838# bizarre bug on SunOS 4.1.3. 13839if $ac_need_defaults; then 13840 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13841 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13842 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13843fi 13844 13845# Have a temporary directory for convenience. Make it in the build tree 13846# simply because there is no reason to put it here, and in addition, 13847# creating and moving files from /tmp can sometimes cause problems. 13848# Create a temporary directory, and hook for its removal unless debugging. 13849$debug || 13850{ 13851 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 13852 trap '{ (exit 1); exit 1; }' 1 2 13 15 13853} 13854 13855# Create a (secure) tmp directory for tmp files. 13856 13857{ 13858 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 13859 test -n "$tmp" && test -d "$tmp" 13860} || 13861{ 13862 tmp=./confstat$$-$RANDOM 13863 (umask 077 && mkdir $tmp) 13864} || 13865{ 13866 echo "$me: cannot create a temporary directory in ." >&2 13867 { (exit 1); exit 1; } 13868} 13869 13870_ACEOF 13871 13872cat >>$CONFIG_STATUS <<_ACEOF 13873 13874# 13875# CONFIG_FILES section. 13876# 13877 13878# No need to generate the scripts if there are no CONFIG_FILES. 13879# This happens for instance when ./config.status config.h 13880if test -n "\$CONFIG_FILES"; then 13881 # Protect against being on the right side of a sed subst in config.status. 13882 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 13883 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 13884s,@SHELL@,$SHELL,;t t 13885s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 13886s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 13887s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 13888s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 13889s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 13890s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 13891s,@exec_prefix@,$exec_prefix,;t t 13892s,@prefix@,$prefix,;t t 13893s,@program_transform_name@,$program_transform_name,;t t 13894s,@bindir@,$bindir,;t t 13895s,@sbindir@,$sbindir,;t t 13896s,@libexecdir@,$libexecdir,;t t 13897s,@datadir@,$datadir,;t t 13898s,@sysconfdir@,$sysconfdir,;t t 13899s,@sharedstatedir@,$sharedstatedir,;t t 13900s,@localstatedir@,$localstatedir,;t t 13901s,@libdir@,$libdir,;t t 13902s,@includedir@,$includedir,;t t 13903s,@oldincludedir@,$oldincludedir,;t t 13904s,@infodir@,$infodir,;t t 13905s,@mandir@,$mandir,;t t 13906s,@build_alias@,$build_alias,;t t 13907s,@host_alias@,$host_alias,;t t 13908s,@target_alias@,$target_alias,;t t 13909s,@DEFS@,$DEFS,;t t 13910s,@ECHO_C@,$ECHO_C,;t t 13911s,@ECHO_N@,$ECHO_N,;t t 13912s,@ECHO_T@,$ECHO_T,;t t 13913s,@LIBS@,$LIBS,;t t 13914s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 13915s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 13916s,@INSTALL_DATA@,$INSTALL_DATA,;t t 13917s,@CYGPATH_W@,$CYGPATH_W,;t t 13918s,@PACKAGE@,$PACKAGE,;t t 13919s,@VERSION@,$VERSION,;t t 13920s,@ACLOCAL@,$ACLOCAL,;t t 13921s,@AUTOCONF@,$AUTOCONF,;t t 13922s,@AUTOMAKE@,$AUTOMAKE,;t t 13923s,@AUTOHEADER@,$AUTOHEADER,;t t 13924s,@MAKEINFO@,$MAKEINFO,;t t 13925s,@install_sh@,$install_sh,;t t 13926s,@STRIP@,$STRIP,;t t 13927s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 13928s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 13929s,@mkdir_p@,$mkdir_p,;t t 13930s,@AWK@,$AWK,;t t 13931s,@SET_MAKE@,$SET_MAKE,;t t 13932s,@am__leading_dot@,$am__leading_dot,;t t 13933s,@AMTAR@,$AMTAR,;t t 13934s,@am__tar@,$am__tar,;t t 13935s,@am__untar@,$am__untar,;t t 13936s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 13937s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 13938s,@MAINT@,$MAINT,;t t 13939s,@build@,$build,;t t 13940s,@build_cpu@,$build_cpu,;t t 13941s,@build_vendor@,$build_vendor,;t t 13942s,@build_os@,$build_os,;t t 13943s,@host@,$host,;t t 13944s,@host_cpu@,$host_cpu,;t t 13945s,@host_vendor@,$host_vendor,;t t 13946s,@host_os@,$host_os,;t t 13947s,@CC@,$CC,;t t 13948s,@CFLAGS@,$CFLAGS,;t t 13949s,@LDFLAGS@,$LDFLAGS,;t t 13950s,@CPPFLAGS@,$CPPFLAGS,;t t 13951s,@ac_ct_CC@,$ac_ct_CC,;t t 13952s,@EXEEXT@,$EXEEXT,;t t 13953s,@OBJEXT@,$OBJEXT,;t t 13954s,@DEPDIR@,$DEPDIR,;t t 13955s,@am__include@,$am__include,;t t 13956s,@am__quote@,$am__quote,;t t 13957s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 13958s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 13959s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 13960s,@CCDEPMODE@,$CCDEPMODE,;t t 13961s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 13962s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 13963s,@EGREP@,$EGREP,;t t 13964s,@LN_S@,$LN_S,;t t 13965s,@ECHO@,$ECHO,;t t 13966s,@AR@,$AR,;t t 13967s,@ac_ct_AR@,$ac_ct_AR,;t t 13968s,@RANLIB@,$RANLIB,;t t 13969s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 13970s,@CPP@,$CPP,;t t 13971s,@CXX@,$CXX,;t t 13972s,@CXXFLAGS@,$CXXFLAGS,;t t 13973s,@ac_ct_CXX@,$ac_ct_CXX,;t t 13974s,@CXXDEPMODE@,$CXXDEPMODE,;t t 13975s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 13976s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 13977s,@CXXCPP@,$CXXCPP,;t t 13978s,@LIBTOOL@,$LIBTOOL,;t t 13979s,@LIBOBJS@,$LIBOBJS,;t t 13980s,@LTLIBOBJS@,$LTLIBOBJS,;t t 13981CEOF 13982 13983_ACEOF 13984 13985 cat >>$CONFIG_STATUS <<\_ACEOF 13986 # Split the substitutions into bite-sized pieces for seds with 13987 # small command number limits, like on Digital OSF/1 and HP-UX. 13988 ac_max_sed_lines=48 13989 ac_sed_frag=1 # Number of current file. 13990 ac_beg=1 # First line for current file. 13991 ac_end=$ac_max_sed_lines # Line after last line for current file. 13992 ac_more_lines=: 13993 ac_sed_cmds= 13994 while $ac_more_lines; do 13995 if test $ac_beg -gt 1; then 13996 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 13997 else 13998 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 13999 fi 14000 if test ! -s $tmp/subs.frag; then 14001 ac_more_lines=false 14002 else 14003 # The purpose of the label and of the branching condition is to 14004 # speed up the sed processing (if there are no `@' at all, there 14005 # is no need to browse any of the substitutions). 14006 # These are the two extra sed commands mentioned above. 14007 (echo ':t 14008 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 14009 if test -z "$ac_sed_cmds"; then 14010 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 14011 else 14012 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 14013 fi 14014 ac_sed_frag=`expr $ac_sed_frag + 1` 14015 ac_beg=$ac_end 14016 ac_end=`expr $ac_end + $ac_max_sed_lines` 14017 fi 14018 done 14019 if test -z "$ac_sed_cmds"; then 14020 ac_sed_cmds=cat 14021 fi 14022fi # test -n "$CONFIG_FILES" 14023 14024_ACEOF 14025cat >>$CONFIG_STATUS <<\_ACEOF 14026for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 14027 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 14028 case $ac_file in 14029 - | *:- | *:-:* ) # input from stdin 14030 cat >$tmp/stdin 14031 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 14032 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 14033 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 14034 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 14035 * ) ac_file_in=$ac_file.in ;; 14036 esac 14037 14038 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 14039 ac_dir=`(dirname "$ac_file") 2>/dev/null || 14040$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14041 X"$ac_file" : 'X\(//\)[^/]' \| \ 14042 X"$ac_file" : 'X\(//\)$' \| \ 14043 X"$ac_file" : 'X\(/\)' \| \ 14044 . : '\(.\)' 2>/dev/null || 14045echo X"$ac_file" | 14046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14047 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14048 /^X\(\/\/\)$/{ s//\1/; q; } 14049 /^X\(\/\).*/{ s//\1/; q; } 14050 s/.*/./; q'` 14051 { if $as_mkdir_p; then 14052 mkdir -p "$ac_dir" 14053 else 14054 as_dir="$ac_dir" 14055 as_dirs= 14056 while test ! -d "$as_dir"; do 14057 as_dirs="$as_dir $as_dirs" 14058 as_dir=`(dirname "$as_dir") 2>/dev/null || 14059$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14060 X"$as_dir" : 'X\(//\)[^/]' \| \ 14061 X"$as_dir" : 'X\(//\)$' \| \ 14062 X"$as_dir" : 'X\(/\)' \| \ 14063 . : '\(.\)' 2>/dev/null || 14064echo X"$as_dir" | 14065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14066 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14067 /^X\(\/\/\)$/{ s//\1/; q; } 14068 /^X\(\/\).*/{ s//\1/; q; } 14069 s/.*/./; q'` 14070 done 14071 test ! -n "$as_dirs" || mkdir $as_dirs 14072 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 14073echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 14074 { (exit 1); exit 1; }; }; } 14075 14076 ac_builddir=. 14077 14078if test "$ac_dir" != .; then 14079 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 14080 # A "../" for each directory in $ac_dir_suffix. 14081 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 14082else 14083 ac_dir_suffix= ac_top_builddir= 14084fi 14085 14086case $srcdir in 14087 .) # No --srcdir option. We are building in place. 14088 ac_srcdir=. 14089 if test -z "$ac_top_builddir"; then 14090 ac_top_srcdir=. 14091 else 14092 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 14093 fi ;; 14094 [\\/]* | ?:[\\/]* ) # Absolute path. 14095 ac_srcdir=$srcdir$ac_dir_suffix; 14096 ac_top_srcdir=$srcdir ;; 14097 *) # Relative path. 14098 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 14099 ac_top_srcdir=$ac_top_builddir$srcdir ;; 14100esac 14101 14102# Do not use `cd foo && pwd` to compute absolute paths, because 14103# the directories may not exist. 14104case `pwd` in 14105.) ac_abs_builddir="$ac_dir";; 14106*) 14107 case "$ac_dir" in 14108 .) ac_abs_builddir=`pwd`;; 14109 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 14110 *) ac_abs_builddir=`pwd`/"$ac_dir";; 14111 esac;; 14112esac 14113case $ac_abs_builddir in 14114.) ac_abs_top_builddir=${ac_top_builddir}.;; 14115*) 14116 case ${ac_top_builddir}. in 14117 .) ac_abs_top_builddir=$ac_abs_builddir;; 14118 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 14119 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 14120 esac;; 14121esac 14122case $ac_abs_builddir in 14123.) ac_abs_srcdir=$ac_srcdir;; 14124*) 14125 case $ac_srcdir in 14126 .) ac_abs_srcdir=$ac_abs_builddir;; 14127 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 14128 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 14129 esac;; 14130esac 14131case $ac_abs_builddir in 14132.) ac_abs_top_srcdir=$ac_top_srcdir;; 14133*) 14134 case $ac_top_srcdir in 14135 .) ac_abs_top_srcdir=$ac_abs_builddir;; 14136 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 14137 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 14138 esac;; 14139esac 14140 14141 14142 case $INSTALL in 14143 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14144 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 14145 esac 14146 14147 if test x"$ac_file" != x-; then 14148 { echo "$as_me:$LINENO: creating $ac_file" >&5 14149echo "$as_me: creating $ac_file" >&6;} 14150 rm -f "$ac_file" 14151 fi 14152 # Let's still pretend it is `configure' which instantiates (i.e., don't 14153 # use $as_me), people would be surprised to read: 14154 # /* config.h. Generated by config.status. */ 14155 if test x"$ac_file" = x-; then 14156 configure_input= 14157 else 14158 configure_input="$ac_file. " 14159 fi 14160 configure_input=$configure_input"Generated from `echo $ac_file_in | 14161 sed 's,.*/,,'` by configure." 14162 14163 # First look for the input files in the build tree, otherwise in the 14164 # src tree. 14165 ac_file_inputs=`IFS=: 14166 for f in $ac_file_in; do 14167 case $f in 14168 -) echo $tmp/stdin ;; 14169 [\\/$]*) 14170 # Absolute (can't be DOS-style, as IFS=:) 14171 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 14172echo "$as_me: error: cannot find input file: $f" >&2;} 14173 { (exit 1); exit 1; }; } 14174 echo "$f";; 14175 *) # Relative 14176 if test -f "$f"; then 14177 # Build tree 14178 echo "$f" 14179 elif test -f "$srcdir/$f"; then 14180 # Source tree 14181 echo "$srcdir/$f" 14182 else 14183 # /dev/null tree 14184 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 14185echo "$as_me: error: cannot find input file: $f" >&2;} 14186 { (exit 1); exit 1; }; } 14187 fi;; 14188 esac 14189 done` || { (exit 1); exit 1; } 14190_ACEOF 14191cat >>$CONFIG_STATUS <<_ACEOF 14192 sed "$ac_vpsub 14193$extrasub 14194_ACEOF 14195cat >>$CONFIG_STATUS <<\_ACEOF 14196:t 14197/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14198s,@configure_input@,$configure_input,;t t 14199s,@srcdir@,$ac_srcdir,;t t 14200s,@abs_srcdir@,$ac_abs_srcdir,;t t 14201s,@top_srcdir@,$ac_top_srcdir,;t t 14202s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 14203s,@builddir@,$ac_builddir,;t t 14204s,@abs_builddir@,$ac_abs_builddir,;t t 14205s,@top_builddir@,$ac_top_builddir,;t t 14206s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 14207s,@INSTALL@,$ac_INSTALL,;t t 14208" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 14209 rm -f $tmp/stdin 14210 if test x"$ac_file" != x-; then 14211 mv $tmp/out $ac_file 14212 else 14213 cat $tmp/out 14214 rm -f $tmp/out 14215 fi 14216 14217done 14218_ACEOF 14219cat >>$CONFIG_STATUS <<\_ACEOF 14220 14221# 14222# CONFIG_HEADER section. 14223# 14224 14225# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 14226# NAME is the cpp macro being defined and VALUE is the value it is being given. 14227# 14228# ac_d sets the value in "#define NAME VALUE" lines. 14229ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 14230ac_dB='[ ].*$,\1#\2' 14231ac_dC=' ' 14232ac_dD=',;t' 14233# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 14234ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 14235ac_uB='$,\1#\2define\3' 14236ac_uC=' ' 14237ac_uD=',;t' 14238 14239for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 14240 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 14241 case $ac_file in 14242 - | *:- | *:-:* ) # input from stdin 14243 cat >$tmp/stdin 14244 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 14245 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 14246 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 14247 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 14248 * ) ac_file_in=$ac_file.in ;; 14249 esac 14250 14251 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 14252echo "$as_me: creating $ac_file" >&6;} 14253 14254 # First look for the input files in the build tree, otherwise in the 14255 # src tree. 14256 ac_file_inputs=`IFS=: 14257 for f in $ac_file_in; do 14258 case $f in 14259 -) echo $tmp/stdin ;; 14260 [\\/$]*) 14261 # Absolute (can't be DOS-style, as IFS=:) 14262 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 14263echo "$as_me: error: cannot find input file: $f" >&2;} 14264 { (exit 1); exit 1; }; } 14265 # Do quote $f, to prevent DOS paths from being IFS'd. 14266 echo "$f";; 14267 *) # Relative 14268 if test -f "$f"; then 14269 # Build tree 14270 echo "$f" 14271 elif test -f "$srcdir/$f"; then 14272 # Source tree 14273 echo "$srcdir/$f" 14274 else 14275 # /dev/null tree 14276 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 14277echo "$as_me: error: cannot find input file: $f" >&2;} 14278 { (exit 1); exit 1; }; } 14279 fi;; 14280 esac 14281 done` || { (exit 1); exit 1; } 14282 # Remove the trailing spaces. 14283 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 14284 14285_ACEOF 14286 14287# Transform confdefs.h into two sed scripts, `conftest.defines' and 14288# `conftest.undefs', that substitutes the proper values into 14289# config.h.in to produce config.h. The first handles `#define' 14290# templates, and the second `#undef' templates. 14291# And first: Protect against being on the right side of a sed subst in 14292# config.status. Protect against being in an unquoted here document 14293# in config.status. 14294rm -f conftest.defines conftest.undefs 14295# Using a here document instead of a string reduces the quoting nightmare. 14296# Putting comments in sed scripts is not portable. 14297# 14298# `end' is used to avoid that the second main sed command (meant for 14299# 0-ary CPP macros) applies to n-ary macro definitions. 14300# See the Autoconf documentation for `clear'. 14301cat >confdef2sed.sed <<\_ACEOF 14302s/[\\&,]/\\&/g 14303s,[\\$`],\\&,g 14304t clear 14305: clear 14306s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 14307t end 14308s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 14309: end 14310_ACEOF 14311# If some macros were called several times there might be several times 14312# the same #defines, which is useless. Nevertheless, we may not want to 14313# sort them, since we want the *last* AC-DEFINE to be honored. 14314uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 14315sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 14316rm -f confdef2sed.sed 14317 14318# This sed command replaces #undef with comments. This is necessary, for 14319# example, in the case of _POSIX_SOURCE, which is predefined and required 14320# on some systems where configure will not decide to define it. 14321cat >>conftest.undefs <<\_ACEOF 14322s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 14323_ACEOF 14324 14325# Break up conftest.defines because some shells have a limit on the size 14326# of here documents, and old seds have small limits too (100 cmds). 14327echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 14328echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 14329echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 14330echo ' :' >>$CONFIG_STATUS 14331rm -f conftest.tail 14332while grep . conftest.defines >/dev/null 14333do 14334 # Write a limited-size here document to $tmp/defines.sed. 14335 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 14336 # Speed up: don't consider the non `#define' lines. 14337 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 14338 # Work around the forget-to-reset-the-flag bug. 14339 echo 't clr' >>$CONFIG_STATUS 14340 echo ': clr' >>$CONFIG_STATUS 14341 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 14342 echo 'CEOF 14343 sed -f $tmp/defines.sed $tmp/in >$tmp/out 14344 rm -f $tmp/in 14345 mv $tmp/out $tmp/in 14346' >>$CONFIG_STATUS 14347 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 14348 rm -f conftest.defines 14349 mv conftest.tail conftest.defines 14350done 14351rm -f conftest.defines 14352echo ' fi # grep' >>$CONFIG_STATUS 14353echo >>$CONFIG_STATUS 14354 14355# Break up conftest.undefs because some shells have a limit on the size 14356# of here documents, and old seds have small limits too (100 cmds). 14357echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 14358rm -f conftest.tail 14359while grep . conftest.undefs >/dev/null 14360do 14361 # Write a limited-size here document to $tmp/undefs.sed. 14362 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 14363 # Speed up: don't consider the non `#undef' 14364 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 14365 # Work around the forget-to-reset-the-flag bug. 14366 echo 't clr' >>$CONFIG_STATUS 14367 echo ': clr' >>$CONFIG_STATUS 14368 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 14369 echo 'CEOF 14370 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 14371 rm -f $tmp/in 14372 mv $tmp/out $tmp/in 14373' >>$CONFIG_STATUS 14374 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 14375 rm -f conftest.undefs 14376 mv conftest.tail conftest.undefs 14377done 14378rm -f conftest.undefs 14379 14380cat >>$CONFIG_STATUS <<\_ACEOF 14381 # Let's still pretend it is `configure' which instantiates (i.e., don't 14382 # use $as_me), people would be surprised to read: 14383 # /* config.h. Generated by config.status. */ 14384 if test x"$ac_file" = x-; then 14385 echo "/* Generated by configure. */" >$tmp/config.h 14386 else 14387 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 14388 fi 14389 cat $tmp/in >>$tmp/config.h 14390 rm -f $tmp/in 14391 if test x"$ac_file" != x-; then 14392 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 14393 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 14394echo "$as_me: $ac_file is unchanged" >&6;} 14395 else 14396 ac_dir=`(dirname "$ac_file") 2>/dev/null || 14397$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14398 X"$ac_file" : 'X\(//\)[^/]' \| \ 14399 X"$ac_file" : 'X\(//\)$' \| \ 14400 X"$ac_file" : 'X\(/\)' \| \ 14401 . : '\(.\)' 2>/dev/null || 14402echo X"$ac_file" | 14403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14404 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14405 /^X\(\/\/\)$/{ s//\1/; q; } 14406 /^X\(\/\).*/{ s//\1/; q; } 14407 s/.*/./; q'` 14408 { if $as_mkdir_p; then 14409 mkdir -p "$ac_dir" 14410 else 14411 as_dir="$ac_dir" 14412 as_dirs= 14413 while test ! -d "$as_dir"; do 14414 as_dirs="$as_dir $as_dirs" 14415 as_dir=`(dirname "$as_dir") 2>/dev/null || 14416$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14417 X"$as_dir" : 'X\(//\)[^/]' \| \ 14418 X"$as_dir" : 'X\(//\)$' \| \ 14419 X"$as_dir" : 'X\(/\)' \| \ 14420 . : '\(.\)' 2>/dev/null || 14421echo X"$as_dir" | 14422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14423 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14424 /^X\(\/\/\)$/{ s//\1/; q; } 14425 /^X\(\/\).*/{ s//\1/; q; } 14426 s/.*/./; q'` 14427 done 14428 test ! -n "$as_dirs" || mkdir $as_dirs 14429 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 14430echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 14431 { (exit 1); exit 1; }; }; } 14432 14433 rm -f $ac_file 14434 mv $tmp/config.h $ac_file 14435 fi 14436 else 14437 cat $tmp/config.h 14438 rm -f $tmp/config.h 14439 fi 14440# Compute $ac_file's index in $config_headers. 14441_am_stamp_count=1 14442for _am_header in $config_headers :; do 14443 case $_am_header in 14444 $ac_file | $ac_file:* ) 14445 break ;; 14446 * ) 14447 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14448 esac 14449done 14450echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 14451$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14452 X$ac_file : 'X\(//\)[^/]' \| \ 14453 X$ac_file : 'X\(//\)$' \| \ 14454 X$ac_file : 'X\(/\)' \| \ 14455 . : '\(.\)' 2>/dev/null || 14456echo X$ac_file | 14457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14458 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14459 /^X\(\/\/\)$/{ s//\1/; q; } 14460 /^X\(\/\).*/{ s//\1/; q; } 14461 s/.*/./; q'`/stamp-h$_am_stamp_count 14462done 14463_ACEOF 14464cat >>$CONFIG_STATUS <<\_ACEOF 14465 14466# 14467# CONFIG_COMMANDS section. 14468# 14469for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 14470 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 14471 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 14472 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 14473$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14474 X"$ac_dest" : 'X\(//\)[^/]' \| \ 14475 X"$ac_dest" : 'X\(//\)$' \| \ 14476 X"$ac_dest" : 'X\(/\)' \| \ 14477 . : '\(.\)' 2>/dev/null || 14478echo X"$ac_dest" | 14479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14480 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14481 /^X\(\/\/\)$/{ s//\1/; q; } 14482 /^X\(\/\).*/{ s//\1/; q; } 14483 s/.*/./; q'` 14484 { if $as_mkdir_p; then 14485 mkdir -p "$ac_dir" 14486 else 14487 as_dir="$ac_dir" 14488 as_dirs= 14489 while test ! -d "$as_dir"; do 14490 as_dirs="$as_dir $as_dirs" 14491 as_dir=`(dirname "$as_dir") 2>/dev/null || 14492$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14493 X"$as_dir" : 'X\(//\)[^/]' \| \ 14494 X"$as_dir" : 'X\(//\)$' \| \ 14495 X"$as_dir" : 'X\(/\)' \| \ 14496 . : '\(.\)' 2>/dev/null || 14497echo X"$as_dir" | 14498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14499 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14500 /^X\(\/\/\)$/{ s//\1/; q; } 14501 /^X\(\/\).*/{ s//\1/; q; } 14502 s/.*/./; q'` 14503 done 14504 test ! -n "$as_dirs" || mkdir $as_dirs 14505 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 14506echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 14507 { (exit 1); exit 1; }; }; } 14508 14509 ac_builddir=. 14510 14511if test "$ac_dir" != .; then 14512 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 14513 # A "../" for each directory in $ac_dir_suffix. 14514 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 14515else 14516 ac_dir_suffix= ac_top_builddir= 14517fi 14518 14519case $srcdir in 14520 .) # No --srcdir option. We are building in place. 14521 ac_srcdir=. 14522 if test -z "$ac_top_builddir"; then 14523 ac_top_srcdir=. 14524 else 14525 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 14526 fi ;; 14527 [\\/]* | ?:[\\/]* ) # Absolute path. 14528 ac_srcdir=$srcdir$ac_dir_suffix; 14529 ac_top_srcdir=$srcdir ;; 14530 *) # Relative path. 14531 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 14532 ac_top_srcdir=$ac_top_builddir$srcdir ;; 14533esac 14534 14535# Do not use `cd foo && pwd` to compute absolute paths, because 14536# the directories may not exist. 14537case `pwd` in 14538.) ac_abs_builddir="$ac_dir";; 14539*) 14540 case "$ac_dir" in 14541 .) ac_abs_builddir=`pwd`;; 14542 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 14543 *) ac_abs_builddir=`pwd`/"$ac_dir";; 14544 esac;; 14545esac 14546case $ac_abs_builddir in 14547.) ac_abs_top_builddir=${ac_top_builddir}.;; 14548*) 14549 case ${ac_top_builddir}. in 14550 .) ac_abs_top_builddir=$ac_abs_builddir;; 14551 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 14552 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 14553 esac;; 14554esac 14555case $ac_abs_builddir in 14556.) ac_abs_srcdir=$ac_srcdir;; 14557*) 14558 case $ac_srcdir in 14559 .) ac_abs_srcdir=$ac_abs_builddir;; 14560 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 14561 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 14562 esac;; 14563esac 14564case $ac_abs_builddir in 14565.) ac_abs_top_srcdir=$ac_top_srcdir;; 14566*) 14567 case $ac_top_srcdir in 14568 .) ac_abs_top_srcdir=$ac_abs_builddir;; 14569 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 14570 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 14571 esac;; 14572esac 14573 14574 14575 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 14576echo "$as_me: executing $ac_dest commands" >&6;} 14577 case $ac_dest in 14578 src/include/Hapy/config.h ) ac_prefix_conf_OUT=`echo src/include/Hapy/config.h` 14579ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"` 14580ac_prefix_conf_PKG=`echo $PACKAGE` 14581ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"` 14582ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"` 14583ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'` 14584if test ".$ac_prefix_conf_INP" = "."; then 14585 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue 14586 case "$ac_file" in 14587 *.h) ac_prefix_conf_INP=$ac_file ;; 14588 *) 14589 esac 14590 test ".$ac_prefix_conf_INP" != "." && break 14591 done 14592fi 14593if test ".$ac_prefix_conf_INP" = "."; then 14594 case "$ac_prefix_conf_OUT" in 14595 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"` 14596 ;; 14597 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"` 14598 ;; 14599 *) ac_prefix_conf_INP=config.h 14600 ;; 14601 esac 14602fi 14603if test -z "$ac_prefix_conf_PKG" ; then 14604 { { echo "$as_me:$LINENO: error: no prefix for _PREFIX_PKG_CONFIG_H" >&5 14605echo "$as_me: error: no prefix for _PREFIX_PKG_CONFIG_H" >&2;} 14606 { (exit 1); exit 1; }; } 14607else 14608 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then 14609 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP" 14610 fi fi 14611 { echo "$as_me:$LINENO: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5 14612echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;} 14613 if test -f $ac_prefix_conf_INP ; then 14614 echo "s/#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix 14615 echo "s/#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix 14616 echo "s/#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix 14617 echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix 14618 echo "#endif/" >>conftest.prefix 14619 echo "s/#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix 14620 echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix 14621 echo "#endif/" >> conftest.prefix 14622 # now executing _script on _DEF input to create _OUT output file 14623 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h 14624 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h 14625 echo ' ' >>$tmp/pconfig.h 14626 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h 14627 14628 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h 14629 echo ' ' >>$tmp/pconfig.h 14630 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h 14631 echo "#endif" >>$tmp/pconfig.h 14632 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then 14633 { echo "$as_me:$LINENO: $ac_prefix_conf_OUT is unchanged" >&5 14634echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;} 14635 else 14636 ac_dir=`(dirname "$ac_prefix_conf_OUT") 2>/dev/null || 14637$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14638 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \ 14639 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \ 14640 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| \ 14641 . : '\(.\)' 2>/dev/null || 14642echo X"$ac_prefix_conf_OUT" | 14643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14644 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14645 /^X\(\/\/\)$/{ s//\1/; q; } 14646 /^X\(\/\).*/{ s//\1/; q; } 14647 s/.*/./; q'` 14648 { if $as_mkdir_p; then 14649 mkdir -p "$ac_dir" 14650 else 14651 as_dir="$ac_dir" 14652 as_dirs= 14653 while test ! -d "$as_dir"; do 14654 as_dirs="$as_dir $as_dirs" 14655 as_dir=`(dirname "$as_dir") 2>/dev/null || 14656$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14657 X"$as_dir" : 'X\(//\)[^/]' \| \ 14658 X"$as_dir" : 'X\(//\)$' \| \ 14659 X"$as_dir" : 'X\(/\)' \| \ 14660 . : '\(.\)' 2>/dev/null || 14661echo X"$as_dir" | 14662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14663 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14664 /^X\(\/\/\)$/{ s//\1/; q; } 14665 /^X\(\/\).*/{ s//\1/; q; } 14666 s/.*/./; q'` 14667 done 14668 test ! -n "$as_dirs" || mkdir $as_dirs 14669 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 14670echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 14671 { (exit 1); exit 1; }; }; } 14672 14673 rm -f "$ac_prefix_conf_OUT" 14674 mv $tmp/pconfig.h "$ac_prefix_conf_OUT" 14675 fi 14676 cp conftest.prefix _configs.sed 14677 else 14678 { { echo "$as_me:$LINENO: error: input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" >&5 14679echo "$as_me: error: input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" >&2;} 14680 { (exit 1); exit 1; }; } 14681 fi 14682 rm -f conftest.* 14683fi 14684 ;; 14685 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 14686 # Strip MF so we end up with the name of the file. 14687 mf=`echo "$mf" | sed -e 's/:.*$//'` 14688 # Check whether this is an Automake generated Makefile or not. 14689 # We used to match only the files named `Makefile.in', but 14690 # some people rename them; so instead we look at the file content. 14691 # Grep'ing the first line is not enough: some people post-process 14692 # each Makefile.in and add a new line on top of each file to say so. 14693 # So let's grep whole file. 14694 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 14695 dirpart=`(dirname "$mf") 2>/dev/null || 14696$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14697 X"$mf" : 'X\(//\)[^/]' \| \ 14698 X"$mf" : 'X\(//\)$' \| \ 14699 X"$mf" : 'X\(/\)' \| \ 14700 . : '\(.\)' 2>/dev/null || 14701echo X"$mf" | 14702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14703 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14704 /^X\(\/\/\)$/{ s//\1/; q; } 14705 /^X\(\/\).*/{ s//\1/; q; } 14706 s/.*/./; q'` 14707 else 14708 continue 14709 fi 14710 # Extract the definition of DEPDIR, am__include, and am__quote 14711 # from the Makefile without running `make'. 14712 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14713 test -z "$DEPDIR" && continue 14714 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14715 test -z "am__include" && continue 14716 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14717 # When using ansi2knr, U may be empty or an underscore; expand it 14718 U=`sed -n 's/^U = //p' < "$mf"` 14719 # Find all dependency output files, they are included files with 14720 # $(DEPDIR) in their names. We invoke sed twice because it is the 14721 # simplest approach to changing $(DEPDIR) to its actual value in the 14722 # expansion. 14723 for file in `sed -n " 14724 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14725 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 14726 # Make sure the directory exists. 14727 test -f "$dirpart/$file" && continue 14728 fdir=`(dirname "$file") 2>/dev/null || 14729$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14730 X"$file" : 'X\(//\)[^/]' \| \ 14731 X"$file" : 'X\(//\)$' \| \ 14732 X"$file" : 'X\(/\)' \| \ 14733 . : '\(.\)' 2>/dev/null || 14734echo X"$file" | 14735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14736 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14737 /^X\(\/\/\)$/{ s//\1/; q; } 14738 /^X\(\/\).*/{ s//\1/; q; } 14739 s/.*/./; q'` 14740 { if $as_mkdir_p; then 14741 mkdir -p $dirpart/$fdir 14742 else 14743 as_dir=$dirpart/$fdir 14744 as_dirs= 14745 while test ! -d "$as_dir"; do 14746 as_dirs="$as_dir $as_dirs" 14747 as_dir=`(dirname "$as_dir") 2>/dev/null || 14748$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14749 X"$as_dir" : 'X\(//\)[^/]' \| \ 14750 X"$as_dir" : 'X\(//\)$' \| \ 14751 X"$as_dir" : 'X\(/\)' \| \ 14752 . : '\(.\)' 2>/dev/null || 14753echo X"$as_dir" | 14754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14755 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14756 /^X\(\/\/\)$/{ s//\1/; q; } 14757 /^X\(\/\).*/{ s//\1/; q; } 14758 s/.*/./; q'` 14759 done 14760 test ! -n "$as_dirs" || mkdir $as_dirs 14761 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 14762echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 14763 { (exit 1); exit 1; }; }; } 14764 14765 # echo "creating $dirpart/$file" 14766 echo '# dummy' > "$dirpart/$file" 14767 done 14768done 14769 ;; 14770 esac 14771done 14772_ACEOF 14773 14774cat >>$CONFIG_STATUS <<\_ACEOF 14775 14776{ (exit 0); exit 0; } 14777_ACEOF 14778chmod +x $CONFIG_STATUS 14779ac_clean_files=$ac_clean_files_save 14780 14781 14782# configure is writing to config.log, and then calls config.status. 14783# config.status does its own redirection, appending to config.log. 14784# Unfortunately, on DOS this fails, as config.log is still kept open 14785# by configure, so config.status won't be able to write to it; its 14786# output is simply discarded. So we exec the FD to /dev/null, 14787# effectively closing config.log, so it can be properly (re)opened and 14788# appended to by config.status. When coming back to configure, we 14789# need to make the FD available again. 14790if test "$no_create" != yes; then 14791 ac_cs_success=: 14792 ac_config_status_args= 14793 test "$silent" = yes && 14794 ac_config_status_args="$ac_config_status_args --quiet" 14795 exec 5>/dev/null 14796 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14797 exec 5>>config.log 14798 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14799 # would make configure fail if this is the last instruction. 14800 $ac_cs_success || { (exit 1); exit 1; } 14801fi 14802 14803